Phase 1-3 of decoupling plan: - Shared DB, models, infrastructure, browser, config, utils - Event infrastructure (domain_events outbox, bus, processor) - Structured logging - Generic container concept (container_type/container_id) - Alembic migrations for all schema changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1816 lines
2.8 MiB
1816 lines
2.8 MiB
(function(){try{var Ee=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},T=new Ee.Error().stack;T&&(Ee._sentryDebugIds=Ee._sentryDebugIds||{},Ee._sentryDebugIds[T]="cba1bf18-58f3-45fb-ae8d-25c8f6128aa7",Ee._sentryDebugIdIdentifier="sentry-dbid-cba1bf18-58f3-45fb-ae8d-25c8f6128aa7")}catch{}})();(function(Ee,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],T):(Ee=typeof globalThis<"u"?globalThis:Ee||self,T(Ee["@tryghost/koenig-lexical"]={},Ee.React,Ee.ReactDOM))})(this,function(Ee,T,Xs){"use strict";var wHe=Object.defineProperty;var xHe=(Ee,T,Xs)=>T in Ee?wHe(Ee,T,{enumerable:!0,configurable:!0,writable:!0,value:Xs}):Ee[T]=Xs;var ye=(Ee,T,Xs)=>xHe(Ee,typeof T!="symbol"?T+"":T,Xs);var U8=document.createElement("style");U8.textContent=`.koenig-lexical *,.koenig-lexical :before,.koenig-lexical :after{box-sizing:border-box;max-width:revert;max-height:revert;min-width:revert;min-height:revert;border-width:0;border-style:solid;border-color:currentColor}.koenig-lexical :before,.koenig-lexical :after{--tw-content: ""}.koenig-lexical html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical body{margin:0;line-height:inherit}.koenig-lexical hr{height:0;color:inherit;border-top-width:1px}.koenig-lexical abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6{font-size:inherit;font-weight:inherit}.koenig-lexical a{color:inherit;text-decoration:inherit}.koenig-lexical b,.koenig-lexical strong{font-weight:bolder}.koenig-lexical code,.koenig-lexical kbd,.koenig-lexical samp,.koenig-lexical pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.koenig-lexical small{font-size:80%}.koenig-lexical sub,.koenig-lexical sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.koenig-lexical sub{bottom:-.25em}.koenig-lexical sup{top:-.5em}.koenig-lexical table{text-indent:0;border-color:inherit;border-collapse:collapse}.koenig-lexical button,.koenig-lexical input,.koenig-lexical optgroup,.koenig-lexical select,.koenig-lexical textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.koenig-lexical button,.koenig-lexical select{text-transform:none}.koenig-lexical button,.koenig-lexical [type=button],.koenig-lexical [type=reset],.koenig-lexical [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.koenig-lexical :-moz-focusring{outline:none}.koenig-lexical :-moz-ui-invalid{box-shadow:none}.koenig-lexical progress{vertical-align:baseline}.koenig-lexical ::-webkit-inner-spin-button,.koenig-lexical ::-webkit-outer-spin-button{height:auto}.koenig-lexical [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.koenig-lexical ::-webkit-search-decoration{-webkit-appearance:none}.koenig-lexical ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.koenig-lexical summary{display:list-item}.koenig-lexical blockquote,.koenig-lexical dl,.koenig-lexical dd,.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6,.koenig-lexical hr,.koenig-lexical figure,.koenig-lexical p,.koenig-lexical pre{margin:0}.koenig-lexical fieldset{margin:0;padding:0}.koenig-lexical legend{padding:0}.koenig-lexical ol,.koenig-lexical ul,.koenig-lexical menu{list-style:none;margin:0;padding:0}.koenig-lexical textarea{resize:vertical}.koenig-lexical input::-moz-placeholder,.koenig-lexical textarea::-moz-placeholder{opacity:1;color:#aeb7c1}.koenig-lexical input::placeholder,.koenig-lexical textarea::placeholder{opacity:1;color:#aeb7c1}.koenig-lexical button:focus-visible,.koenig-lexical input:focus-visible{outline:none}.koenig-lexical img,.koenig-lexical svg,.koenig-lexical video,.koenig-lexical canvas,.koenig-lexical audio,.koenig-lexical iframe,.koenig-lexical embed,.koenig-lexical object{display:block;vertical-align:middle}.koenig-lexical img,.koenig-lexical video{max-width:100%;height:auto}*,:before,:after{--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: rgb(20 184 255 / .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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::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: rgb(20 184 255 / .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: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 500px){.\\!container{max-width:500px!important}.container{max-width:500px}}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.koenig-lexical .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.koenig-lexical .pointer-events-none{pointer-events:none}.koenig-lexical .pointer-events-auto{pointer-events:auto}.koenig-lexical .visible{visibility:visible}.koenig-lexical .invisible{visibility:hidden}.koenig-lexical .collapse{visibility:collapse}.koenig-lexical .static{position:static}.koenig-lexical .fixed{position:fixed}.koenig-lexical .absolute{position:absolute}.koenig-lexical .relative{position:relative}.koenig-lexical .sticky{position:sticky}.koenig-lexical .inset-0{top:0;right:0;bottom:0;left:0}.koenig-lexical .inset-8{top:3.2rem;right:3.2rem;bottom:3.2rem;left:3.2rem}.koenig-lexical .inset-x-\\[-1px\\]{left:-1px;right:-1px}.koenig-lexical .inset-y-0{top:0;bottom:0}.koenig-lexical .\\!top-\\[-1px\\]{top:-1px!important}.koenig-lexical .-left-2{left:-.8rem}.koenig-lexical .-right-3{right:-1.2rem}.koenig-lexical .-top-0\\.5{top:-.2rem}.koenig-lexical .-top-8{top:-3.2rem}.koenig-lexical .bottom-0{bottom:0}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .bottom-4{bottom:1.6rem}.koenig-lexical .bottom-\\[1\\.1em\\]{bottom:1.1em}.koenig-lexical .bottom-full{bottom:100%}.koenig-lexical .left-0{left:0}.koenig-lexical .left-1\\/2{left:50%}.koenig-lexical .left-4{left:1.6rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .left-\\[-16px\\]{left:-16px}.koenig-lexical .left-\\[-32px\\]{left:-32px}.koenig-lexical .left-\\[-6rem\\]{left:-6rem}.koenig-lexical .left-\\[1em\\]{left:1em}.koenig-lexical .left-\\[22px\\]{left:22px}.koenig-lexical .left-\\[2px\\]{left:2px}.koenig-lexical .left-\\[3px\\]{left:3px}.koenig-lexical .left-\\[55\\%\\]{left:55%}.koenig-lexical .left-\\[6px\\]{left:6px}.koenig-lexical .right-0{right:0}.koenig-lexical .right-1{right:.4rem}.koenig-lexical .right-1\\.5{right:.6rem}.koenig-lexical .right-16{right:6.4rem}.koenig-lexical .right-2{right:.8rem}.koenig-lexical .right-20{right:8rem}.koenig-lexical .right-3{right:1.2rem}.koenig-lexical .right-5{right:2rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .right-\\[6px\\]{right:6px}.koenig-lexical .top-0{top:0}.koenig-lexical .top-1{top:.4rem}.koenig-lexical .top-1\\.5{top:.6rem}.koenig-lexical .top-1\\/2{top:50%}.koenig-lexical .top-2{top:.8rem}.koenig-lexical .top-4{top:1.6rem}.koenig-lexical .top-5{top:2rem}.koenig-lexical .top-6{top:2.4rem}.koenig-lexical .top-\\[-\\.6rem\\]{top:-.6rem}.koenig-lexical .top-\\[-2px\\]{top:-2px}.koenig-lexical .top-\\[-46px\\]{top:-46px}.koenig-lexical .top-\\[-6px\\]{top:-6px}.koenig-lexical .top-\\[1\\.5rem\\]{top:1.5rem}.koenig-lexical .top-\\[2px\\]{top:2px}.koenig-lexical .top-\\[3px\\]{top:3px}.koenig-lexical .top-\\[5px\\]{top:5px}.koenig-lexical .z-0{z-index:0}.koenig-lexical .z-10{z-index:10}.koenig-lexical .z-20{z-index:20}.koenig-lexical .z-40{z-index:40}.koenig-lexical .z-50{z-index:50}.koenig-lexical .z-\\[-1\\]{z-index:-1}.koenig-lexical .z-\\[10000\\]{z-index:10000}.koenig-lexical .z-\\[1000\\]{z-index:1000}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.koenig-lexical .\\!m-0{margin:0!important}.koenig-lexical .-m-1{margin:-.4rem}.koenig-lexical .m-0{margin:0}.koenig-lexical .m-2{margin:.8rem}.koenig-lexical .m-3{margin:1.2rem}.koenig-lexical .m-\\[1rem\\]{margin:1rem}.koenig-lexical .\\!-mx-3{margin-left:-1.2rem!important;margin-right:-1.2rem!important}.koenig-lexical .\\!my-0{margin-top:0!important;margin-bottom:0!important}.koenig-lexical .-mx-1{margin-left:-.4rem;margin-right:-.4rem}.koenig-lexical .-mx-6{margin-left:-2.4rem;margin-right:-2.4rem}.koenig-lexical .mx-1{margin-left:.4rem;margin-right:.4rem}.koenig-lexical .mx-2{margin-left:.8rem;margin-right:.8rem}.koenig-lexical .mx-6{margin-left:2.4rem;margin-right:2.4rem}.koenig-lexical .mx-\\[-\\.2rem\\]{margin-left:-.2rem;margin-right:-.2rem}.koenig-lexical .mx-\\[calc\\(50\\%-\\(50vw-var\\(--kg-breakout-adjustment-with-fallback\\)\\)-\\.8rem\\)\\]{margin-left:calc(50% - (50vw - var(--kg-breakout-adjustment-with-fallback)) - .8rem);margin-right:calc(50% - (50vw - var(--kg-breakout-adjustment-with-fallback)) - .8rem)}.koenig-lexical .mx-\\[calc\\(50\\%-50vw\\)\\]{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}.koenig-lexical .mx-auto{margin-left:auto;margin-right:auto}.koenig-lexical .my-1{margin-top:.4rem;margin-bottom:.4rem}.koenig-lexical .my-2{margin-top:.8rem;margin-bottom:.8rem}.koenig-lexical .my-3{margin-top:1.2rem;margin-bottom:1.2rem}.koenig-lexical .my-4{margin-top:1.6rem;margin-bottom:1.6rem}.koenig-lexical .my-5{margin-top:2rem;margin-bottom:2rem}.koenig-lexical .my-8{margin-top:3.2rem;margin-bottom:3.2rem}.koenig-lexical .my-\\[\\.2rem\\]{margin-top:.2rem;margin-bottom:.2rem}.koenig-lexical .my-auto{margin-top:auto;margin-bottom:auto}.koenig-lexical .\\!mt-0{margin-top:0!important}.koenig-lexical .\\!mt-2{margin-top:.8rem!important}.koenig-lexical .\\!mt-3{margin-top:1.2rem!important}.koenig-lexical .\\!mt-4{margin-top:1.6rem!important}.koenig-lexical .\\!mt-\\[-1px\\]{margin-top:-1px!important}.koenig-lexical .-mb-px{margin-bottom:-1px}.koenig-lexical .-ml-1{margin-left:-.4rem}.koenig-lexical .mb-0{margin-bottom:0}.koenig-lexical .mb-1{margin-bottom:.4rem}.koenig-lexical .mb-1\\.5{margin-bottom:.6rem}.koenig-lexical .mb-10{margin-bottom:4rem}.koenig-lexical .mb-12{margin-bottom:4.8rem}.koenig-lexical .mb-2{margin-bottom:.8rem}.koenig-lexical .mb-3{margin-bottom:1.2rem}.koenig-lexical .mb-4{margin-bottom:1.6rem}.koenig-lexical .mb-6{margin-bottom:2.4rem}.koenig-lexical .mb-\\[1px\\]{margin-bottom:1px}.koenig-lexical .ml-1{margin-left:.4rem}.koenig-lexical .ml-2{margin-left:.8rem}.koenig-lexical .ml-3{margin-left:1.2rem}.koenig-lexical .ml-4{margin-left:1.6rem}.koenig-lexical .ml-\\[\\.7rem\\]{margin-left:.7rem}.koenig-lexical .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .ml-auto{margin-left:auto}.koenig-lexical .ml-px{margin-left:1px}.koenig-lexical .mr-1{margin-right:.4rem}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .mr-3{margin-right:1.2rem}.koenig-lexical .mr-4{margin-right:1.6rem}.koenig-lexical .mr-6{margin-right:2.4rem}.koenig-lexical .mr-9{margin-right:3.6rem}.koenig-lexical .mt-0{margin-top:0}.koenig-lexical .mt-0\\.5{margin-top:.2rem}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-10{margin-top:4rem}.koenig-lexical .mt-12{margin-top:4.8rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mt-20{margin-top:8rem}.koenig-lexical .mt-3{margin-top:1.2rem}.koenig-lexical .mt-4{margin-top:1.6rem}.koenig-lexical .mt-6{margin-top:2.4rem}.koenig-lexical .mt-8{margin-top:3.2rem}.koenig-lexical .mt-\\[-1px\\]{margin-top:-1px}.koenig-lexical .mt-\\[\\.6rem\\]{margin-top:.6rem}.koenig-lexical .mt-\\[20px\\]{margin-top:20px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-auto{margin-top:auto}.koenig-lexical .mt-px{margin-top:1px}.koenig-lexical .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.koenig-lexical .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.koenig-lexical .block{display:block}.koenig-lexical .inline-block{display:inline-block}.koenig-lexical .inline{display:inline}.koenig-lexical .flex{display:flex}.koenig-lexical .table{display:table}.koenig-lexical .grid{display:grid}.koenig-lexical .contents{display:contents}.koenig-lexical .hidden{display:none}.koenig-lexical .aspect-\\[3\\/2\\]{aspect-ratio:3/2}.koenig-lexical .aspect-square{aspect-ratio:1 / 1}.koenig-lexical .size-12{width:4.8rem;height:4.8rem}.koenig-lexical .size-14{width:5.6rem;height:5.6rem}.koenig-lexical .size-16{width:6.4rem;height:6.4rem}.koenig-lexical .size-2{width:.8rem;height:.8rem}.koenig-lexical .size-20{width:8rem;height:8rem}.koenig-lexical .size-3{width:1.2rem;height:1.2rem}.koenig-lexical .size-32{width:12.8rem;height:12.8rem}.koenig-lexical .size-4{width:1.6rem;height:1.6rem}.koenig-lexical .size-5{width:2rem;height:2rem}.koenig-lexical .size-6{width:2.4rem;height:2.4rem}.koenig-lexical .size-7{width:2.8rem;height:2.8rem}.koenig-lexical .size-8{width:3.2rem;height:3.2rem}.koenig-lexical .size-9{width:3.6rem;height:3.6rem}.koenig-lexical .size-\\[1\\.4rem\\]{width:1.4rem;height:1.4rem}.koenig-lexical .size-\\[1\\.5rem\\]{width:1.5rem;height:1.5rem}.koenig-lexical .size-\\[1\\.8rem\\]{width:1.8rem;height:1.8rem}.koenig-lexical .size-\\[18px\\]{width:18px;height:18px}.koenig-lexical .size-\\[1rem\\]{width:1rem;height:1rem}.koenig-lexical .size-\\[3rem\\]{width:3rem;height:3rem}.koenig-lexical .size-\\[50px\\]{width:50px;height:50px}.koenig-lexical .size-full{width:100%;height:100%}.koenig-lexical .\\!h-3{height:1.2rem!important}.koenig-lexical .h-0{height:0px}.koenig-lexical .h-1{height:.4rem}.koenig-lexical .h-10{height:4rem}.koenig-lexical .h-11{height:4.4rem}.koenig-lexical .h-12{height:4.8rem}.koenig-lexical .h-20{height:8rem}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-32{height:12.8rem}.koenig-lexical .h-4{height:1.6rem}.koenig-lexical .h-5{height:2rem}.koenig-lexical .h-7{height:2.8rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-9{height:3.6rem}.koenig-lexical .h-\\[100vh\\]{height:100vh}.koenig-lexical .h-\\[120px\\]{height:120px}.koenig-lexical .h-\\[1px\\]{height:1px}.koenig-lexical .h-\\[1rem\\]{height:1rem}.koenig-lexical .h-\\[22px\\]{height:22px}.koenig-lexical .h-\\[26px\\]{height:26px}.koenig-lexical .h-\\[2px\\]{height:2px}.koenig-lexical .h-\\[30px\\]{height:30px}.koenig-lexical .h-\\[40px\\]{height:40px}.koenig-lexical .h-\\[5\\.2rem\\]{height:5.2rem}.koenig-lexical .h-\\[540px\\]{height:540px}.koenig-lexical .h-\\[64px\\]{height:64px}.koenig-lexical .h-\\[96px\\]{height:96px}.koenig-lexical .h-auto{height:auto}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-screen{height:100vh}.koenig-lexical .max-h-64{max-height:25.6rem}.koenig-lexical .max-h-\\[100\\%\\]{max-height:100%}.koenig-lexical .max-h-\\[214px\\]{max-height:214px}.koenig-lexical .max-h-\\[30vh\\]{max-height:30vh}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .max-h-\\[420px\\]{max-height:420px}.koenig-lexical .max-h-\\[44px\\]{max-height:44px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.koenig-lexical .min-h-\\[170px\\]{min-height:170px}.koenig-lexical .min-h-\\[180px\\]{min-height:180px}.koenig-lexical .min-h-\\[3\\.5vh\\]{min-height:3.5vh}.koenig-lexical .min-h-\\[40px\\]{min-height:40px}.koenig-lexical .min-h-\\[40vh\\]{min-height:40vh}.koenig-lexical .min-h-\\[60vh\\]{min-height:60vh}.koenig-lexical .min-h-\\[80vh\\]{min-height:80vh}.koenig-lexical .\\!w-3{width:1.2rem!important}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-1\\/5{width:20%}.koenig-lexical .w-11\\/12{width:91.666667%}.koenig-lexical .w-16{width:6.4rem}.koenig-lexical .w-20{width:8rem}.koenig-lexical .w-3{width:1.2rem}.koenig-lexical .w-3\\/5{width:60%}.koenig-lexical .w-4{width:1.6rem}.koenig-lexical .w-5{width:2rem}.koenig-lexical .w-7{width:2.8rem}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-9{width:3.6rem}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-\\[136\\%\\]{width:136%}.koenig-lexical .w-\\[1rem\\]{width:1rem}.koenig-lexical .w-\\[240px\\]{width:240px}.koenig-lexical .w-\\[312px\\]{width:312px}.koenig-lexical .w-\\[320px\\]{width:320px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .w-\\[42px\\]{width:42px}.koenig-lexical .w-\\[560px\\]{width:560px}.koenig-lexical .w-\\[60\\%\\]{width:60%}.koenig-lexical .w-\\[7\\.2rem\\]{width:7.2rem}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-\\[80px\\]{width:80px}.koenig-lexical .w-\\[calc\\(100vw\\+2px\\)\\]{width:calc(100vw + 2px)}.koenig-lexical .w-\\[calc\\(740px\\+4rem\\)\\]{width:calc(740px + 4rem)}.koenig-lexical .w-\\[calc\\(75vw-var\\(--kg-breakout-adjustment-with-fallback\\)\\+2px\\)\\]{width:calc(75vw - var(--kg-breakout-adjustment-with-fallback) + 2px)}.koenig-lexical .w-\\[max-content\\]{width:-moz-max-content;width:max-content}.koenig-lexical .w-auto{width:auto}.koenig-lexical .w-full{width:100%}.koenig-lexical .w-px{width:1px}.koenig-lexical .min-w-\\[296px\\]{min-width:296px}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.koenig-lexical .min-w-\\[5\\.2rem\\]{min-width:5.2rem}.koenig-lexical .min-w-\\[5px\\]{min-width:5px}.koenig-lexical .min-w-\\[5rem\\]{min-width:5rem}.koenig-lexical .min-w-\\[6\\.8rem\\]{min-width:6.8rem}.koenig-lexical .min-w-\\[auto\\]{min-width:auto}.koenig-lexical .min-w-\\[calc\\(100\\%\\+3\\.6rem\\)\\]{min-width:calc(100% + 3.6rem)}.koenig-lexical .min-w-\\[initial\\]{min-width:initial}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .max-w-2xl{max-width:67.2rem}.koenig-lexical .max-w-\\[1172px\\]{max-width:1172px}.koenig-lexical .max-w-\\[240px\\]{max-width:240px}.koenig-lexical .max-w-\\[500px\\]{max-width:500px}.koenig-lexical .max-w-\\[550px\\]{max-width:550px}.koenig-lexical .max-w-\\[65\\%\\]{max-width:65%}.koenig-lexical .max-w-\\[740px\\]{max-width:740px}.koenig-lexical .max-w-\\[96px\\]{max-width:96px}.koenig-lexical .max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.koenig-lexical .max-w-sm{max-width:38.4rem}.koenig-lexical .flex-1{flex:1 1 0%}.koenig-lexical .\\!shrink{flex-shrink:1!important}.koenig-lexical .shrink{flex-shrink:1}.koenig-lexical .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .basis-0{flex-basis:0px}.koenig-lexical .basis-full{flex-basis:100%}.koenig-lexical .origin-left{transform-origin:left}.koenig-lexical .-translate-x-1\\/2{--tw-translate-x: -50%;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))}.koenig-lexical .-translate-y-2{--tw-translate-y: -.8rem;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))}.koenig-lexical .-translate-y-full{--tw-translate-y: -100%;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))}.koenig-lexical .translate-x-\\[calc\\(50vw-50\\%\\+\\.8rem-var\\(--kg-breakout-adjustment-with-fallback\\)\\)\\]{--tw-translate-x: calc(50vw - 50% + .8rem - var(--kg-breakout-adjustment-with-fallback));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))}.koenig-lexical .translate-y-\\[-100\\%\\]{--tw-translate-y: -100%;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))}.koenig-lexical .rotate-180{--tw-rotate: 180deg;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))}.koenig-lexical .rotate-45{--tw-rotate: 45deg;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))}.koenig-lexical .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 spin{to{transform:rotate(360deg)}}.koenig-lexical .animate-spin{animation:spin 1s linear infinite}.koenig-lexical .cursor-default{cursor:default}.koenig-lexical .cursor-pointer{cursor:pointer}.koenig-lexical .cursor-text{cursor:text}.koenig-lexical .cursor-zoom-in{cursor:zoom-in}.koenig-lexical .cursor-zoom-out{cursor:zoom-out}.koenig-lexical .touch-none{touch-action:none}.koenig-lexical .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.koenig-lexical .resize-none{resize:none}.koenig-lexical .resize{resize:both}.koenig-lexical .scroll-p-2{scroll-padding:.8rem}.koenig-lexical .\\!list-none{list-style-type:none!important}.koenig-lexical .list-none{list-style-type:none}.koenig-lexical .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.koenig-lexical .flex-row{flex-direction:row}.koenig-lexical .flex-row-reverse{flex-direction:row-reverse}.koenig-lexical .flex-col{flex-direction:column}.koenig-lexical .flex-col-reverse{flex-direction:column-reverse}.koenig-lexical .flex-wrap{flex-wrap:wrap}.koenig-lexical .items-start{align-items:flex-start}.koenig-lexical .items-end{align-items:flex-end}.koenig-lexical .items-center{align-items:center}.koenig-lexical .justify-start{justify-content:flex-start}.koenig-lexical .justify-end{justify-content:flex-end}.koenig-lexical .justify-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.koenig-lexical .gap-1{gap:.4rem}.koenig-lexical .gap-1\\.5{gap:.6rem}.koenig-lexical .gap-2{gap:.8rem}.koenig-lexical .gap-3{gap:1.2rem}.koenig-lexical .gap-4{gap:1.6rem}.koenig-lexical .gap-6{gap:2.4rem}.koenig-lexical .gap-\\[\\.6rem\\]{gap:.6rem}.koenig-lexical :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.4rem * var(--tw-space-x-reverse));margin-left:calc(.4rem * calc(1 - var(--tw-space-x-reverse)))}.koenig-lexical .self-stretch{align-self:stretch}.koenig-lexical .\\!overflow-auto{overflow:auto!important}.koenig-lexical .overflow-auto{overflow:auto}.koenig-lexical .overflow-hidden{overflow:hidden}.koenig-lexical .overflow-visible{overflow:visible}.koenig-lexical .overflow-y-auto{overflow-y:auto}.koenig-lexical .overflow-x-hidden{overflow-x:hidden}.koenig-lexical .overflow-y-hidden{overflow-y:hidden}.koenig-lexical .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koenig-lexical .whitespace-normal{white-space:normal}.koenig-lexical .whitespace-nowrap{white-space:nowrap}.koenig-lexical .whitespace-pre{white-space:pre}.koenig-lexical .whitespace-pre-wrap{white-space:pre-wrap}.koenig-lexical .text-pretty{text-wrap:pretty}.koenig-lexical .rounded{border-radius:.4rem}.koenig-lexical .rounded-full{border-radius:9999px}.koenig-lexical .rounded-lg{border-radius:.8rem}.koenig-lexical .rounded-md{border-radius:.6rem}.koenig-lexical .rounded-sm{border-radius:.2rem}.koenig-lexical .rounded-b{border-bottom-right-radius:.4rem;border-bottom-left-radius:.4rem}.koenig-lexical .rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.koenig-lexical .rounded-r-\\[\\.5rem\\]{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.koenig-lexical .rounded-t{border-top-left-radius:.4rem;border-top-right-radius:.4rem}.koenig-lexical .border{border-width:1px}.koenig-lexical .border-0{border-width:0px}.koenig-lexical .border-2{border-width:2px}.koenig-lexical .border-4{border-width:4px}.koenig-lexical .border-y{border-top-width:1px;border-bottom-width:1px}.koenig-lexical .border-b{border-bottom-width:1px}.koenig-lexical .border-b-2{border-bottom-width:2px}.koenig-lexical .border-t{border-top-width:1px}.koenig-lexical .border-accent{border-color:var(--kg-accent-color, #ff0095)}.koenig-lexical .border-black{--tw-border-opacity: 1;border-color:rgb(21 23 26 / var(--tw-border-opacity, 1))}.koenig-lexical .border-black\\/10{border-color:#15171a1a}.koenig-lexical .border-black\\/15{border-color:#15171a26}.koenig-lexical .border-black\\/5{border-color:#15171a0d}.koenig-lexical .border-black\\/\\[\\.08\\],.koenig-lexical .border-black\\/\\[0\\.08\\]{border-color:#15171a14}.koenig-lexical .border-green{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity, 1))}.koenig-lexical .border-green\\/20{border-color:#30cf4333}.koenig-lexical .border-grey{--tw-border-opacity: 1;border-color:rgb(171 180 190 / var(--tw-border-opacity, 1))}.koenig-lexical .border-grey-100{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity, 1))}.koenig-lexical .border-grey-150{--tw-border-opacity: 1;border-color:rgb(241 243 244 / var(--tw-border-opacity, 1))}.koenig-lexical .border-grey-200{--tw-border-opacity: 1;border-color:rgb(235 238 240 / var(--tw-border-opacity, 1))}.koenig-lexical .border-grey-250{--tw-border-opacity: 1;border-color:rgb(229 233 237 / var(--tw-border-opacity, 1))}.koenig-lexical .border-grey-300{--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity, 1))}.koenig-lexical .border-grey-500\\/30{border-color:#aeb7c14d}.koenig-lexical .border-grey-900\\/15{border-color:#39404726}.koenig-lexical .border-grey-950{--tw-border-opacity: 1;border-color:rgb(35 41 47 / var(--tw-border-opacity, 1))}.koenig-lexical .border-grey\\/20{border-color:#abb4be33}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.koenig-lexical .border-grey\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/50{border-color:#abb4be80}.koenig-lexical .border-red{--tw-border-opacity: 1;border-color:rgb(245 11 35 / var(--tw-border-opacity, 1))}.koenig-lexical .border-transparent{border-color:transparent}.koenig-lexical .border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.koenig-lexical .border-b-red{--tw-border-opacity: 1;border-bottom-color:rgb(245 11 35 / var(--tw-border-opacity, 1))}.koenig-lexical .border-t-grey-300{--tw-border-opacity: 1;border-top-color:rgb(221 225 229 / var(--tw-border-opacity, 1))}.koenig-lexical .bg-\\[\\#ff0\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 0 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-accent{background-color:var(--kg-accent-color, #ff0095)}.koenig-lexical .bg-black{--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-black\\/50{background-color:#15171a80}.koenig-lexical .bg-black\\/60{background-color:#15171a99}.koenig-lexical .bg-black\\/80{background-color:#15171acc}.koenig-lexical .bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 244 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-blue\\/10{background-color:#14b8ff1a}.koenig-lexical .bg-blue\\/20{background-color:#14b8ff33}.koenig-lexical .bg-green{--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-green-100{--tw-bg-opacity: 1;background-color:rgb(225 249 228 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-green\\/10{background-color:#30cf431a}.koenig-lexical .bg-green\\/20{background-color:#30cf4333}.koenig-lexical .bg-grey-100{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-grey-150{--tw-bg-opacity: 1;background-color:rgb(241 243 244 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-grey-200\\/70{background-color:#ebeef0b3}.koenig-lexical .bg-grey-200\\/80{background-color:#ebeef0cc}.koenig-lexical .bg-grey-300{--tw-bg-opacity: 1;background-color:rgb(221 225 229 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-grey-300\\/80{background-color:#dde1e5cc}.koenig-lexical .bg-grey-50{--tw-bg-opacity: 1;background-color:rgb(250 250 251 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-grey-900{--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-grey-950{--tw-bg-opacity: 1;background-color:rgb(35 41 47 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-grey\\/10{background-color:#abb4be1a}.koenig-lexical .bg-grey\\/20{background-color:#abb4be33}.koenig-lexical .bg-grey\\/30{background-color:#abb4be4d}.koenig-lexical .bg-lime-500{--tw-bg-opacity: 1;background-color:rgb(181 255 24 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-pink{--tw-bg-opacity: 1;background-color:rgb(251 45 141 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(255 223 238 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-pink\\/10{background-color:#fb2d8d1a}.koenig-lexical .bg-pink\\/20{background-color:#fb2d8d33}.koenig-lexical .bg-purple{--tw-bg-opacity: 1;background-color:rgb(142 66 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 224 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-purple\\/10{background-color:#8e42ff1a}.koenig-lexical .bg-purple\\/20{background-color:#8e42ff33}.koenig-lexical .bg-red{--tw-bg-opacity: 1;background-color:rgb(245 11 35 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-red-100{--tw-bg-opacity: 1;background-color:rgb(255 224 224 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-red\\/10{background-color:#f50b231a}.koenig-lexical .bg-red\\/20{background-color:#f50b2333}.koenig-lexical .bg-transparent{background-color:transparent}.koenig-lexical .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-white\\/30{background-color:#ffffff4d}.koenig-lexical .bg-white\\/40{background-color:#fff6}.koenig-lexical .bg-white\\/50{background-color:#ffffff80}.koenig-lexical .bg-white\\/70{background-color:#ffffffb3}.koenig-lexical .bg-white\\/90{background-color:#ffffffe6}.koenig-lexical .bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(255 241 214 / var(--tw-bg-opacity, 1))}.koenig-lexical .bg-yellow\\/10{background-color:#ffb41f1a}.koenig-lexical .bg-yellow\\/20{background-color:#ffb41f33}.koenig-lexical .bg-\\[conic-gradient\\(hsl\\(360\\,100\\%\\,50\\%\\)\\,hsl\\(315\\,100\\%\\,50\\%\\)\\,hsl\\(270\\,100\\%\\,50\\%\\)\\,hsl\\(225\\,100\\%\\,50\\%\\)\\,hsl\\(180\\,100\\%\\,50\\%\\)\\,hsl\\(135\\,100\\%\\,50\\%\\)\\,hsl\\(90\\,100\\%\\,50\\%\\)\\,hsl\\(45\\,100\\%\\,50\\%\\)\\,hsl\\(0\\,100\\%\\,50\\%\\)\\)\\]{background-image:conic-gradient(red,#ff00bf,#7f00ff,#0040ff,#0ff,#00ff40,#80ff00,#ffbf00,red)}.koenig-lexical .bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.koenig-lexical .bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.koenig-lexical .from-black\\/0{--tw-gradient-from: rgb(21 23 26 / 0) var(--tw-gradient-from-position);--tw-gradient-to: rgb(21 23 26 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.koenig-lexical .from-black\\/5{--tw-gradient-from: rgb(21 23 26 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(21 23 26 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.koenig-lexical .via-black\\/5{--tw-gradient-to: rgb(21 23 26 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(21 23 26 / .05) var(--tw-gradient-via-position), var(--tw-gradient-to)}.koenig-lexical .to-black\\/30{--tw-gradient-to: rgb(21 23 26 / .3) var(--tw-gradient-to-position)}.koenig-lexical .to-black\\/50{--tw-gradient-to: rgb(21 23 26 / .5) var(--tw-gradient-to-position)}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .bg-clip-content{background-clip:content-box}.koenig-lexical .fill-black{fill:#15171a}.koenig-lexical .fill-grey-200{fill:#ebeef0}.koenig-lexical .fill-grey-700{fill:#7c8b9a}.koenig-lexical .fill-grey-900{fill:#394047}.koenig-lexical .fill-red{fill:#f50b23}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .stroke-green-600{stroke:#2ab23a}.koenig-lexical .stroke-grey-700{stroke:#7c8b9a}.koenig-lexical .stroke-grey-800{stroke:#626d79}.koenig-lexical .stroke-red{stroke:#f50b23}.koenig-lexical .stroke-2{stroke-width:2}.koenig-lexical .stroke-\\[1\\.5\\]{stroke-width:1.5}.koenig-lexical .stroke-\\[1\\.5px\\]{stroke-width:1.5px}.koenig-lexical .stroke-\\[2\\.5\\]{stroke-width:2.5}.koenig-lexical .stroke-\\[3\\]{stroke-width:3}.koenig-lexical .stroke-\\[3px\\]{stroke-width:3px}.koenig-lexical .object-contain{-o-object-fit:contain;object-fit:contain}.koenig-lexical .object-cover{-o-object-fit:cover;object-fit:cover}.koenig-lexical .\\!p-4{padding:1.6rem!important}.koenig-lexical .p-0{padding:0}.koenig-lexical .p-1{padding:.4rem}.koenig-lexical .p-2{padding:.8rem}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-3{padding:1.2rem}.koenig-lexical .p-4{padding:1.6rem}.koenig-lexical .p-5{padding:2rem}.koenig-lexical .p-6{padding:2.4rem}.koenig-lexical .p-8{padding:3.2rem}.koenig-lexical .p-\\[\\.2rem\\]{padding:.2rem}.koenig-lexical .p-\\[12vmin\\]{padding:12vmin}.koenig-lexical .p-\\[14vmin\\]{padding:14vmin}.koenig-lexical .p-\\[18vmin\\]{padding:18vmin}.koenig-lexical .p-\\[1px\\]{padding:1px}.koenig-lexical .p-\\[1rem\\]{padding:1rem}.koenig-lexical .p-\\[2px\\]{padding:2px}.koenig-lexical .p-\\[3px\\]{padding:3px}.koenig-lexical .p-\\[4px\\]{padding:4px}.koenig-lexical .p-\\[4rem\\]{padding:4rem}.koenig-lexical .\\!px-3{padding-left:1.2rem!important;padding-right:1.2rem!important}.koenig-lexical .px-0{padding-left:0;padding-right:0}.koenig-lexical .px-1{padding-left:.4rem;padding-right:.4rem}.koenig-lexical .px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .px-20{padding-left:8rem;padding-right:8rem}.koenig-lexical .px-3{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .px-4{padding-left:1.6rem;padding-right:1.6rem}.koenig-lexical .px-5{padding-left:2rem;padding-right:2rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.koenig-lexical .px-7{padding-left:2.8rem;padding-right:2.8rem}.koenig-lexical .px-9{padding-left:3.6rem;padding-right:3.6rem}.koenig-lexical .px-\\[10px\\]{padding-left:10px;padding-right:10px}.koenig-lexical .px-\\[1rem\\]{padding-left:1rem;padding-right:1rem}.koenig-lexical .px-\\[calc\\(32px-\\(4rem\\/2\\)\\)\\]{padding-left:calc(32px - 2rem);padding-right:calc(32px - 2rem)}.koenig-lexical .py-0{padding-top:0;padding-bottom:0}.koenig-lexical .py-1{padding-top:.4rem;padding-bottom:.4rem}.koenig-lexical .py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.koenig-lexical .py-10{padding-top:4rem;padding-bottom:4rem}.koenig-lexical .py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .py-3{padding-top:1.2rem;padding-bottom:1.2rem}.koenig-lexical .py-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .py-5{padding-top:2rem;padding-bottom:2rem}.koenig-lexical .py-8{padding-top:3.2rem;padding-bottom:3.2rem}.koenig-lexical .py-9{padding-top:3.6rem;padding-bottom:3.6rem}.koenig-lexical .py-\\[\\.6rem\\]{padding-top:.6rem;padding-bottom:.6rem}.koenig-lexical .py-\\[15vmin\\]{padding-top:15vmin;padding-bottom:15vmin}.koenig-lexical .py-\\[1rem\\]{padding-top:1rem;padding-bottom:1rem}.koenig-lexical .py-\\[4rem\\]{padding-top:4rem;padding-bottom:4rem}.koenig-lexical .py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.koenig-lexical .py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.koenig-lexical .py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.koenig-lexical .py-px{padding-top:1px;padding-bottom:1px}.koenig-lexical .pb-1{padding-bottom:.4rem}.koenig-lexical .pb-10{padding-bottom:4rem}.koenig-lexical .pb-16{padding-bottom:6.4rem}.koenig-lexical .pb-2{padding-bottom:.8rem}.koenig-lexical .pb-3{padding-bottom:1.2rem}.koenig-lexical .pb-4{padding-bottom:1.6rem}.koenig-lexical .pb-6{padding-bottom:2.4rem}.koenig-lexical .pb-7{padding-bottom:2.8rem}.koenig-lexical .pb-8{padding-bottom:3.2rem}.koenig-lexical .pb-\\[\\.2rem\\]{padding-bottom:.2rem}.koenig-lexical .pb-\\[8vh\\]{padding-bottom:8vh}.koenig-lexical .pl-1{padding-left:.4rem}.koenig-lexical .pl-10{padding-left:4rem}.koenig-lexical .pl-2{padding-left:.8rem}.koenig-lexical .pl-3{padding-left:1.2rem}.koenig-lexical .pl-\\[1rem\\]{padding-left:1rem}.koenig-lexical .pr-1{padding-right:.4rem}.koenig-lexical .pr-2{padding-right:.8rem}.koenig-lexical .pr-5{padding-right:2rem}.koenig-lexical .pr-8{padding-right:3.2rem}.koenig-lexical .pr-9{padding-right:3.6rem}.koenig-lexical .pt-1{padding-top:.4rem}.koenig-lexical .pt-3{padding-top:1.2rem}.koenig-lexical .pt-4{padding-top:1.6rem}.koenig-lexical .pt-6{padding-top:2.4rem}.koenig-lexical .pt-\\[\\.6rem\\]{padding-top:.6rem}.koenig-lexical .text-left{text-align:left}.koenig-lexical .\\!text-center{text-align:center!important}.koenig-lexical .text-center{text-align:center}.koenig-lexical .\\!font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif!important}.koenig-lexical .font-mono{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace}.koenig-lexical .font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical .font-serif{font-family:Georgia,Times,serif}.koenig-lexical .\\!text-2xl{font-size:2.4rem!important}.koenig-lexical .\\!text-\\[1\\.3rem\\]{font-size:1.3rem!important}.koenig-lexical .\\!text-\\[1\\.6rem\\]{font-size:1.6rem!important}.koenig-lexical .\\!text-sm{font-size:1.4rem!important}.koenig-lexical .\\!text-xs{font-size:1.25rem!important}.koenig-lexical .text-2xl{font-size:2.4rem}.koenig-lexical .text-2xs{font-size:1.2rem}.koenig-lexical .text-3xl{font-size:3rem}.koenig-lexical .text-5xl{font-size:4.8rem;line-height:1.15}.koenig-lexical .text-\\[1\\.1rem\\]{font-size:1.1rem}.koenig-lexical .text-\\[1\\.35rem\\]{font-size:1.35rem}.koenig-lexical .text-\\[1\\.3rem\\]{font-size:1.3rem}.koenig-lexical .text-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.koenig-lexical .text-\\[1\\.7rem\\]{font-size:1.7rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-md{font-size:1.5rem}.koenig-lexical .text-sm{font-size:1.4rem}.koenig-lexical .text-xl{font-size:2rem}.koenig-lexical .text-xs{font-size:1.25rem}.koenig-lexical .\\!font-bold{font-weight:700!important}.koenig-lexical .\\!font-medium{font-weight:500!important}.koenig-lexical .\\!font-normal{font-weight:400!important}.koenig-lexical .font-bold{font-weight:700}.koenig-lexical .font-medium{font-weight:500}.koenig-lexical .font-normal{font-weight:400}.koenig-lexical .font-semibold{font-weight:600}.koenig-lexical .uppercase{text-transform:uppercase}.koenig-lexical .italic{font-style:italic}.koenig-lexical .\\!leading-\\[1\\.1\\]{line-height:1.1!important}.koenig-lexical .\\!leading-\\[1\\.6em\\]{line-height:1.6em!important}.koenig-lexical .\\!leading-snug{line-height:1.375!important}.koenig-lexical .leading-4{line-height:1rem}.koenig-lexical .leading-6{line-height:1.5rem}.koenig-lexical .leading-7{line-height:1.75rem}.koenig-lexical .leading-8{line-height:2rem}.koenig-lexical .leading-9{line-height:2.25rem}.koenig-lexical .leading-\\[1\\.333em\\]{line-height:1.333em}.koenig-lexical .leading-\\[1\\.35\\]{line-height:1.35}.koenig-lexical .leading-\\[1\\.4\\]{line-height:1.4}.koenig-lexical .leading-\\[1\\.5\\]{line-height:1.5}.koenig-lexical .leading-\\[1\\.625\\]{line-height:1.625}.koenig-lexical .leading-\\[1\\.65\\]{line-height:1.65}.koenig-lexical .leading-\\[24px\\]{line-height:24px}.koenig-lexical .leading-\\[4\\.4rem\\]{line-height:4.4rem}.koenig-lexical .leading-\\[4\\.8rem\\]{line-height:4.8rem}.koenig-lexical .leading-\\[4rem\\]{line-height:4rem}.koenig-lexical .leading-loose{line-height:2}.koenig-lexical .leading-none{line-height:1}.koenig-lexical .leading-normal{line-height:1.5}.koenig-lexical .leading-snug{line-height:1.375}.koenig-lexical .leading-tight{line-height:1.25}.koenig-lexical .\\!tracking-tight{letter-spacing:-.025em!important}.koenig-lexical .tracking-\\[\\.02rem\\]{letter-spacing:.02rem}.koenig-lexical .tracking-\\[\\.06rem\\]{letter-spacing:.06rem}.koenig-lexical .tracking-normal{letter-spacing:0em}.koenig-lexical .tracking-tight{letter-spacing:-.025em}.koenig-lexical .tracking-wide{letter-spacing:.025em}.koenig-lexical .\\!text-grey-500{--tw-text-opacity: 1 !important;color:rgb(174 183 193 / var(--tw-text-opacity, 1))!important}.koenig-lexical .text-black{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity, 1))}.koenig-lexical .text-black\\/50{color:#15171a80}.koenig-lexical .text-current{color:currentColor}.koenig-lexical .text-green{--tw-text-opacity: 1;color:rgb(48 207 67 / var(--tw-text-opacity, 1))}.koenig-lexical .text-green-600{--tw-text-opacity: 1;color:rgb(42 178 58 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey{--tw-text-opacity: 1;color:rgb(171 180 190 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-300{--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-400{--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-500{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-600{--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-700{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-900{--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity, 1))}.koenig-lexical .text-grey-900\\/50{color:#39404780}.koenig-lexical .text-red{--tw-text-opacity: 1;color:rgb(245 11 35 / var(--tw-text-opacity, 1))}.koenig-lexical .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.koenig-lexical .text-white\\/60{color:#fff9}.koenig-lexical .underline{text-decoration-line:underline}.koenig-lexical .line-through{text-decoration-line:line-through}.koenig-lexical .caret-black{caret-color:#15171a}.koenig-lexical .caret-current{caret-color:currentColor}.koenig-lexical .caret-grey-800{caret-color:#626d79}.koenig-lexical .caret-white{caret-color:#fff}.koenig-lexical .opacity-0{opacity:0}.koenig-lexical .opacity-100{opacity:1}.koenig-lexical .opacity-25{opacity:.25}.koenig-lexical .opacity-30{opacity:.3}.koenig-lexical .opacity-40{opacity:.4}.koenig-lexical .opacity-50{opacity:.5}.koenig-lexical .opacity-60{opacity:.6}.koenig-lexical .opacity-70{opacity:.7}.koenig-lexical .opacity-80{opacity:.8}.koenig-lexical .opacity-90{opacity:.9}.koenig-lexical .shadow{--tw-shadow: 0 0 1px rgba(0,0,0,.15), 0px 13px 27px -5px rgba(50, 50, 93, .08), 0px 8px 16px -8px rgba(0, 0, 0, .12);--tw-shadow-colored: 0 0 1px var(--tw-shadow-color), 0px 13px 27px -5px var(--tw-shadow-color), 0px 8px 16px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_1px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\,0_1px_3px_rgba\\(0\\,0\\,0\\,0\\.08\\)\\,0_4px_12px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\]{--tw-shadow: 0 0 0 1px rgba(0,0,0,.08),0 1px 3px rgba(0,0,0,.08),0 4px 12px rgba(0,0,0,.04);--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color), 0 1px 3px var(--tw-shadow-color), 0 4px 12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px\\]{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_\\#30cf43\\]{--tw-shadow: 0 0 0 2px #30cf43;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_rgba\\(0\\,0\\,0\\,1\\)\\]{--tw-shadow: 0 0 0 2px rgba(0,0,0,1);--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_rgba\\(48\\,207\\,67\\,\\.25\\)\\]{--tw-shadow: 0 0 0 2px rgba(48,207,67,.25);--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-lg{--tw-shadow: 0px 50px 100px -25px rgba(50, 50, 93, .2), 0px 30px 60px -20px rgba(0, 0, 0, .25);--tw-shadow-colored: 0px 50px 100px -25px var(--tw-shadow-color), 0px 30px 60px -20px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-md{--tw-shadow: 0px 13px 27px -5px rgba(50, 50, 93, .25), 0px 8px 16px -8px rgba(0, 0, 0, .3);--tw-shadow-colored: 0px 13px 27px -5px var(--tw-shadow-color), 0px 8px 16px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-sm{--tw-shadow: 0px 2px 5px -1px rgba(50, 50, 93, .2), 0px 1px 3px -1px rgba(0, 0, 0, .25);--tw-shadow-colored: 0px 2px 5px -1px var(--tw-shadow-color), 0px 1px 3px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-xl{--tw-shadow: 0 2.8px 2.2px rgba(0, 0, 0, .02), 0 6.7px 5.3px rgba(0, 0, 0, .028), 0 12.5px 10px rgba(0, 0, 0, .035), 0 22.3px 17.9px rgba(0, 0, 0, .042), 0 41.8px 33.4px rgba(0, 0, 0, .05), 0 100px 80px rgba(0, 0, 0, .07);--tw-shadow-colored: 0 2.8px 2.2px var(--tw-shadow-color), 0 6.7px 5.3px var(--tw-shadow-color), 0 12.5px 10px var(--tw-shadow-color), 0 22.3px 17.9px var(--tw-shadow-color), 0 41.8px 33.4px var(--tw-shadow-color), 0 100px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-xs{--tw-shadow: 0px 1px 2px rgba(0, 0, 0, .06);--tw-shadow-colored: 0px 1px 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-green{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .outline-none{outline:2px solid transparent;outline-offset:2px}.koenig-lexical .outline{outline-style:solid}.koenig-lexical .outline-2{outline-width:2px}.koenig-lexical .outline-green{outline-color:#30cf43}.koenig-lexical .blur{--tw-blur: blur(8px);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)}.koenig-lexical .drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / .15));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)}.koenig-lexical .\\!filter{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)!important}.koenig-lexical .filter{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)}.koenig-lexical .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .duration-100{transition-duration:.1s}.koenig-lexical .duration-200{transition-duration:.2s}.koenig-lexical .duration-75{transition-duration:75ms}.koenig-lexical .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.koenig-lexical .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.koenig-lexical .ease-linear{transition-timing-function:linear}.koenig-lexical .will-change-transform{will-change:transform}.koenig-lexical{position:relative;--cta-link-color-text: var(--grey-900)}.koenig-lexical .cta-link-color{color:var(--cta-link-color)!important}.koenig-lexical>*{font-size:1.7rem;font-weight:400;letter-spacing:.1px;color:var(--grey-900);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Droid Sans,Helvetica Neue,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}.koenig-lexical.kg-inherit-styles>*{color:inherit;letter-spacing:inherit;font-weight:inherit;font-family:inherit}.koenig-lexical [contenteditable]{outline:none}.koenig-lexical ::-moz-selection{background:var(--grey-300)}.koenig-lexical ::selection{background:var(--grey-300)}.koenig-lexical>.dark,.koenig-lexical.dark,.dark .koenig-lexical{--cta-link-color-text: var(--grey-200)}.koenig-lexical>.dark:not(.kg-inherit-styles)>*,.koenig-lexical.dark:not(.kg-inherit-styles)>*,.dark .koenig-lexical:not(.kg-inherit-styles)>*{color:var(--grey-300)}.koenig-lexical>.dark ::-moz-selection,.koenig-lexical.dark ::-moz-selection,.dark .koenig-lexical ::-moz-selection{background:var(--grey-900)}.koenig-lexical>.dark ::selection,.koenig-lexical.dark ::selection,.dark .koenig-lexical ::selection{background:var(--grey-900)}.koenig-lexical>.dark em-emoji-picker,.koenig-lexical.dark em-emoji-picker,.dark .koenig-lexical em-emoji-picker{--rgb-accent: 48, 207, 67;--rgb-background: 35, 41, 47;--rgb-color: 221, 225, 229;--rgb-input: 57, 64, 71}.koenig-lexical.koenig-lexical-caption{font-size:0}.koenig-lexical.koenig-lexical-caption>*{font-size:1.4rem}.koenig-lexical-caption p{color:var(--grey-800)}.dark .koenig-lexical-caption p{color:var(--grey-500)}em-emoji-picker{--font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Droid Sans", "Helvetica Neue", sans-serif;--border-radius: 5px;--font-size: 13px;--rgb-accent: 57, 64, 71;--rgb-color: 174, 183, 193;--em-rgb-accent: (255,0,0) ;--shadow: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);height:325px}em-emoji-picker #nav button[aria-selected] svg{fill:red}em-emoji-picker .search input[type=search]{border-radius:5px}.search input,.search button{font-size:20px!important}.koenig-lexical .js-embed-placeholder{margin:.4rem 0!important;color:var(--grey-700)!important}.koenig-lexical.dark .js-embed-placeholder{background:var(--grey-900);border:none}.koenig-lexical-cta-label a{text-decoration:underline}.kg-cardmenu-card-hover:hover svg [data-selector=bg]{fill:#fff}.dark .kg-cardmenu-card-hover svg [data-selector=bg]{fill:var(--grey-900)}.dark .kg-cardmenu-card-hover:hover svg [data-selector=bg]{fill:var(--grey-800)}.dark .kg-cardmenu-card-hover svg [data-selector=fold]{fill:var(--grey-800)}.dark .kg-cardmenu-card-hover:hover svg [data-selector=fold]{fill:var(--grey-700)}[data-kg-floating-toolbar=true] .fill-white g,[data-kg-floating-toolbar=true] .fill-white path,[data-kg-card-toolbar] .fill-white g,[data-kg-card-toolbar] .fill-white path{fill:#fff}.kg-cardmenu-card-hover button{display:none}.koenig-lexical table{font-size:1.75rem;margin:0;font-family:georgia,Times,serif;letter-spacing:.02rem;line-height:1.6em}.koenig-lexical table tr td,.koenig-lexical table tr th{vertical-align:top;border-bottom:1px solid var(--grey-200)}.koenig-lexical>.dark table tr td,.koenig-lexical>.dark table tr th,.koenig-lexical.dark table tr td,.koenig-lexical.dark table tr th,.dark .koenig-lexical table tr td,.dark .koenig-lexical table tr th{border-bottom:1px solid var(--grey-900)}.koenig-lexical .kg-prose :where(p,h1,h2,h3,h4,h5,h6,blockquote,aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1.6rem 0 0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;color:var(--black)}.koenig-lexical .kg-prose :where(h1 strong,h2 strong,h3 strong,h4 strong,h5 strong,h6 strong):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2rem;line-height:1.35em;font-weight:700;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose :where(p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,blockquote+h1,blockquote+h2,blockquote+h3,blockquote+h4,blockquote+h5,blockquote+h6,aside+h1,aside+h2,aside+h3,aside+h4,aside+h5,aside+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6,ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1+h1):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1.4rem 0 0}.koenig-lexical .kg-prose :where(h2+h1,h3+h1):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h4+h1,h5+h1):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6+h1):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.6rem 0 0}.koenig-lexical .kg-prose :where(div+h1):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1+h2):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(h2+h2,h3+h2,h4+h2,.koenig-react__editor h5+h2):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6+h2):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div+h2):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1+h3,h2+h3,h1+h4,h2+h4,h1+h5,h2+h5,h1+h6,h2+h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(h3+h4):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3+h3,h4+h3,h5+h3,h4+h4,h5+h4,h3+h5,h4+h5,h5+h5,h3+h6,h4+h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h5+h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(h6+h3,h6+h4,h6+h5,h6+h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div+h3,div+h4,div+h5,div+h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1:first-child,h2:first-child,h3:first-child,h4:first-child,.koenig-react__editor h5:first-child,h6:first-child):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:georgia,Times,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose :where(p strong,blockquote strong,aside strong,ul strong,ol strong):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-weight:700}.koenig-lexical .kg-prose :where(h1+p):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h2+p):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3+p,h4+p,h5+p,h6+p):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(p+p,blockquote+p,aside+p,ul+p,ol+p):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div+p):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div+figure):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(p:first-child):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:1.8rem}}.koenig-lexical .kg-prose :where(ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(ul li):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){display:list-item;list-style-type:disc;margin:1rem 0 0 2.4rem;padding:0 0 0 .6rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ul li:first-child):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:0 0 0 2.4rem}.koenig-lexical .kg-prose :where(ul ul li):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){list-style-type:circle}.koenig-lexical .kg-prose :where(ul ul ul li):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){list-style-type:square}.koenig-lexical .kg-prose :where(ol li):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){display:list-item;list-style-type:decimal;margin:1rem 0 0 2.2rem;padding:0 0 0 .8rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ol li:first-child):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:0 0 0 2.2rem}.koenig-lexical .kg-prose :where(ol ol li):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){list-style-type:lower-alpha}.koenig-lexical .kg-prose :where(ol ol ol li):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){list-style-type:lower-roman}.koenig-lexical .kg-prose :where(p+ul,p+ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(ul+ul,ul+ol,ol+ul,ol+ol,blockquote+ul,blockquote+ol,aside+ul,aside+ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(h1+ul,h1+ol,h2+ul,h2+ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3+ul,h3+ol,h4+ul,h4+ol,h5+ul,h5+ol,h6+ul,h6+ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(div+ul,div+ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:1rem 0 2rem}.koenig-lexical .kg-prose :where(ul:first-child,ol:first-child):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin-top:0rem}.koenig-lexical .kg-prose :where(a):not(.dark a):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose :where(.dark a):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-weight:600;text-decoration:underline}.koenig-lexical .kg-prose :where(blockquote p):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:0}.koenig-lexical .kg-prose :where(blockquote):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose :where(h1+blockquote,h2+blockquote):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3+blockquote,h4+blockquote,.koenig-react__editor h5+blockquote,h6+blockquote):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p+blockquote,blockquote+blockquote):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div+blockquote):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(aside p):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:0}.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:3.2rem 0 0;padding:1rem 6rem 1.25rem;font-style:italic;text-align:center;font-size:2.4rem;color:var(--grey-500)}.koenig-lexical .kg-prose :where(h1+aside,h2+aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3+aside,h4+aside,h5+aside,h6+aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p+aside,blockquote+aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.2rem}}.koenig-lexical .kg-prose :where(div+aside):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(>div):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){line-height:0;min-width:100%}.koenig-lexical .kg-prose>:where(div+div):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){padding:3.2rem 0 0}.koenig-lexical .kg-prose>:where(div[data-kg-card-width=full]+div[data-kg-card-width=full]):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){padding:0}.koenig-lexical .kg-prose :where(p+div,blockquote+div,aside+div,ul+div,ol+div):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){padding:3.2rem 0 0}.koenig-lexical .kg-prose :where(h1+div):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){padding:2.8rem 0 0}.koenig-lexical .kg-prose :where(h2+div,h3+div,h4+div,h5+div,h6+div):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){padding:1.6rem 0 0}.koenig-lexical .kg-prose :where(hr):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){display:block;margin:1.6rem 0;border:0;border-top:1px solid var(--grey-300)}.koenig-lexical .kg-prose :where(code):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;background:var(--grey-100);border:1px solid var(--grey-200);border-radius:2px;color:var(--grey-900);font-size:.8em;line-height:1em;padding:.4rem .4rem .2rem;vertical-align:middle;white-space:pre-wrap}.koenig-lexical .kg-prose :where(pre):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;background:var(--grey-100);border:1px solid var(--grey-200);border-radius:2px;color:var(--grey-900);line-height:1.4em;padding:.8rem .8rem .4rem;vertical-align:middle;white-space:pre-wrap}.koenig-lexical .kg-prose :where(img):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){display:inline}.koenig-lexical .dark :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){color:var(--white)}.koenig-lexical .dark :where(code):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){background:var(--grey-900);border:1px solid var(--grey-900);border-radius:2px;color:var(--grey-300)}.koenig-lexical-caption .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:1.4rem;line-height:24px;letter-spacing:.025em}.koenig-lexical-section-title .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-size:1.5rem;font-weight:700;text-transform:uppercase;line-height:1.5;letter-spacing:-.01em}.koenig-lexical-section-title .kg-prose :where(strong):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-weight:800!important}.koenig-lexical-heading .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;line-height:1.1!important;letter-spacing:-.025em}.koenig-lexical-heading .kg-prose :where(a,a span):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){color:currentColor!important}.koenig-lexical-heading.heading-xsmall .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.4rem}.koenig-lexical-heading.heading-small .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3rem}@media (min-width: 640px){.koenig-lexical-heading.heading-small .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3.6rem}}.koenig-lexical-heading.heading-medium .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3rem}@media (min-width: 640px){.koenig-lexical-heading.heading-medium .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3.6rem}}@media (min-width: 768px){.koenig-lexical-heading.heading-medium .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:4.8rem;line-height:1.15}}.koenig-lexical-heading.heading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3rem}@media (min-width: 640px){.koenig-lexical-heading.heading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:3.6rem}}@media (min-width: 768px){.koenig-lexical-heading.heading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:4.8rem;line-height:1.15}}@media (min-width: 1024px){.koenig-lexical-heading.heading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:6rem;line-height:1}}.koenig-lexical-subheading .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:500;line-height:1.375!important;letter-spacing:-.025em}.koenig-lexical-subheading .kg-prose :where(strong):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-weight:700}.koenig-lexical-subheading .kg-prose :where(a,a span):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){color:currentColor!important}.koenig-lexical-subheading.subheading-xsmall .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:1.6rem;font-weight:400}.koenig-lexical-subheading.subheading-small .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:1.8rem}@media (min-width: 640px){.koenig-lexical-subheading.subheading-small .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2rem}}.koenig-lexical-subheading.subheading-medium .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:1.8rem}@media (min-width: 640px){.koenig-lexical-subheading.subheading-medium .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2rem}}@media (min-width: 768px){.koenig-lexical-subheading.subheading-medium .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.2rem}}.koenig-lexical-subheading.subheading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:1.8rem}@media (min-width: 640px){.koenig-lexical-subheading.subheading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2rem}}@media (min-width: 768px){.koenig-lexical-subheading.subheading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.2rem}}@media (min-width: 1024px){.koenig-lexical-subheading.subheading-large .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~=not-kg-prose] *)){font-size:2.4rem}}.kg-header-accent,.kg-callout-accent{--kg-accent-color: #fff}.koenig-lexical .markdown-editor{position:static;z-index:0;overflow:visible;width:100%;padding-top:2px}.koenig-lexical .markdown-editor div{max-width:initial;line-height:initial}.koenig-lexical .markdown-editor .markdown-editor textarea{opacity:0}.koenig-lexical .markdown-editor .editor-toolbar{position:sticky;position:-webkit-sticky;bottom:0;z-index:2;display:flex;padding:6px;margin:auto -12px;border-top:1px solid var(--grey-200);border-right:none;border-left:none;background:var(--white);opacity:1;border-radius:0}.koenig-lexical .markdown-editor .editor-toolbar:hover{opacity:1}.koenig-lexical .markdown-editor .editor-toolbar a{color:var(--grey-900)!important}.koenig-lexical .markdown-editor .editor-toolbar a.active,.koenig-lexical .markdown-editor .editor-toolbar a:hover{border-color:var(--grey-400)}.koenig-lexical .markdown-editor .editor-toolbar a.disabled{color:var(--lightgrey)!important;pointer-events:none}.koenig-lexical .markdown-editor .editor-toolbar a.disabled:hover{border:none}.koenig-lexical .markdown-editor .editor-toolbar .fa-check{position:relative;margin-left:auto;vertical-align:bottom}.koenig-lexical .markdown-editor .editor-toolbar .fa-check:before{position:absolute;right:3px;bottom:4px;font-size:14px;line-height:14px}.koenig-lexical .markdown-editor .editor-toolbar .fa-check:after{content:"abc";position:absolute;top:6px;left:4px;font-family:var(--font-family);font-size:9px;line-height:9px}.koenig-lexical .markdown-editor .editor-toolbar .separator:last-of-type{display:none}.koenig-lexical .markdown-editor .editor-toolbar i.separator{border-right:none;border-left:color-mod(var(--lightgrey) l(-3%)) 1px solid}.koenig-lexical .markdown-editor .CodeMirror{margin-bottom:49px;overflow:visible;padding:0;background:transparent;border:none}.koenig-lexical .markdown-editor .CodeMirror-code:not([contenteditable=true]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.koenig-lexical .markdown-editor .CodeMirror-code .cm-link{color:var(--green);text-decoration:none}.koenig-lexical .markdown-editor .CodeMirror-cursor{border-width:3px;border-color:var(--green)}.koenig-lexical .markdown-editor .CodeMirror-scroll{overflow:visible!important;padding-bottom:5rem}.koenig-lexical .markdown-editor .CodeMirror-scroll:hover{cursor:text}.koenig-lexical .markdown-editor .CodeMirror-wrap{max-width:740px;margin-right:auto;margin-left:auto;border:none;background:transparent}.koenig-lexical .markdown-editor .CodeMirror-wrap>div>textarea{top:0;height:26px;min-width:0;min-height:26px;margin-bottom:-26px}.koenig-lexical .markdown-editor .CodeMirror pre{padding:0;color:var(--grey-900);font-family:Consolas,monaco,monospace;font-size:1.6rem}.koenig-lexical .markdown-editor .CodeMirror .cm-strong{color:var(--grey-900)}.koenig-lexical .markdown-editor .CodeMirror .cm-url{text-decoration:underline}.koenig-lexical .markdown-editor .CodeMirror-selectedtext{color:#000!important;background:color-mod(var(--blue) lightness(+30%))}.koenig-lexical.dark .markdown-editor .CodeMirror pre,.koenig-lexical.dark .markdown-editor .CodeMirror .cm-strong{color:var(--grey-100)}.koenig-lexical.dark .markdown-editor .editor-toolbar{border-top:1px solid var(--grey-950);background:var(--grey-950)}.koenig-lexical.dark .markdown-editor .editor-toolbar a{color:var(--grey-450)!important}.koenig-lexical.dark .markdown-editor .editor-toolbar a.active,.koenig-lexical.dark .markdown-editor .editor-toolbar a:hover{border-color:var(--black);background:var(--grey-900)}.koenig-lexical.dark .markdown-editor .editor-toolbar a.disabled{color:var(--orange)!important}.koenig-lexical.dark .markdown-editor .editor-toolbar i.separator{border-right:none;border-left:color-mod(var(--yellow) l(-3%)) 1px solid}.koenig-lexical .react-colorful{width:100%;height:140px}.koenig-lexical .react-colorful .react-colorful__saturation{border-radius:4px 4px 0 0;border-bottom:1px solid #000}.koenig-lexical .react-colorful .react-colorful__hue{height:8px;border-radius:0 0 4px 4px}.koenig-lexical .react-colorful .react-colorful__pointer{width:14px;height:14px;border-width:1px}.koenig-lexical{--white: #FFF;--grey-50: #FAFAFB;--grey-100: #F4F5F6;--grey-200: #EBEEF0;--grey-300: #DDE1E5;--grey-400: #CED4D9;--grey-500: #AEB7C1;--grey-600: #95A1AD;--grey-700: #7C8B9A;--grey-800: #626D79;--grey-900: #394047;--grey-950: #23292F;--black: #15171A;--green: #30CF43;--kg-breakout-adjustment-with-fallback: var(--kg-breakout-adjustment, 0px)}.koenig-lexical :is(.selection\\:bg-grey-800 *)::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical :is(.selection\\:bg-grey-800 *)::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical :is(.selection\\:bg-grey\\/40 *)::-moz-selection{background-color:#abb4be66}.koenig-lexical :is(.selection\\:bg-grey\\/40 *)::selection{background-color:#abb4be66}.koenig-lexical .selection\\:bg-grey-800::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical .selection\\:bg-grey-800::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical .selection\\:bg-grey\\/40::-moz-selection{background-color:#abb4be66}.koenig-lexical .selection\\:bg-grey\\/40::selection{background-color:#abb4be66}.koenig-lexical .placeholder\\:text-sm::-moz-placeholder{font-size:1.4rem}.koenig-lexical .placeholder\\:text-sm::placeholder{font-size:1.4rem}.koenig-lexical .placeholder\\:font-medium::-moz-placeholder{font-weight:500}.koenig-lexical .placeholder\\:font-medium::placeholder{font-weight:500}.koenig-lexical .placeholder\\:leading-snug::-moz-placeholder{line-height:1.375}.koenig-lexical .placeholder\\:leading-snug::placeholder{line-height:1.375}.koenig-lexical .placeholder\\:text-grey-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity, 1))}.koenig-lexical .placeholder\\:text-grey-500::placeholder{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity, 1))}.koenig-lexical .before\\:absolute:before{content:var(--tw-content);position:absolute}.koenig-lexical .before\\:bottom-\\[2px\\]:before{content:var(--tw-content);bottom:2px}.koenig-lexical .before\\:left-\\[2px\\]:before{content:var(--tw-content);left:2px}.koenig-lexical .before\\:z-10:before{content:var(--tw-content);z-index:10}.koenig-lexical .before\\:mx-1\\.5:before{content:var(--tw-content);margin-left:.6rem;margin-right:.6rem}.koenig-lexical .before\\:mr-2:before{content:var(--tw-content);margin-right:.8rem}.koenig-lexical .before\\:mt-\\[7px\\]:before{content:var(--tw-content);margin-top:7px}.koenig-lexical .before\\:block:before{content:var(--tw-content);display:block}.koenig-lexical .before\\:size-3:before{content:var(--tw-content);width:1.2rem;height:1.2rem}.koenig-lexical .before\\:size-\\[7px\\]:before{content:var(--tw-content);width:7px;height:7px}.koenig-lexical .before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.koenig-lexical .before\\:border-t:before{content:var(--tw-content);border-top-width:1px}.koenig-lexical .before\\:border-grey-300:before{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity, 1))}.koenig-lexical .before\\:bg-grey-800:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical .before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .before\\:pb-\\[12\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:12.5%}.koenig-lexical .before\\:pb-\\[62\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:62.5%}.koenig-lexical .before\\:text-grey-900:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity, 1))}.koenig-lexical .before\\:transition-all:before{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .before\\:duration-100:before{content:var(--tw-content);transition-duration:.1s}.koenig-lexical .before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.koenig-lexical .before\\:content-\\[\\'•\\'\\]:before{--tw-content: "•";content:var(--tw-content)}.koenig-lexical .after\\:absolute:after{content:var(--tw-content);position:absolute}.koenig-lexical .after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.koenig-lexical .after\\:top-1\\/2:after{content:var(--tw-content);top:50%}.koenig-lexical .after\\:ml-2:after{content:var(--tw-content);margin-left:.8rem}.koenig-lexical .after\\:mt-\\[11px\\]:after{content:var(--tw-content);margin-top:11px}.koenig-lexical .after\\:block:after{content:var(--tw-content);display:block}.koenig-lexical .after\\:size-1:after{content:var(--tw-content);width:.4rem;height:.4rem}.koenig-lexical .after\\:h-\\[1px\\]:after{content:var(--tw-content);height:1px}.koenig-lexical .after\\:w-\\[18px\\]:after{content:var(--tw-content);width:18px}.koenig-lexical .after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x: -50%;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))}.koenig-lexical .after\\:-translate-y-1\\/2:after{content:var(--tw-content);--tw-translate-y: -50%;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))}.koenig-lexical .after\\:-rotate-45:after{content:var(--tw-content);--tw-rotate: -45deg;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))}.koenig-lexical .after\\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.koenig-lexical .after\\:border-t:after{content:var(--tw-content);border-top-width:1px}.koenig-lexical .after\\:border-grey-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity, 1))}.koenig-lexical .after\\:bg-green\\/70:after{content:var(--tw-content);background-color:#30cf43b3}.koenig-lexical .after\\:bg-red-500:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(245 11 35 / var(--tw-bg-opacity, 1))}.koenig-lexical .after\\:pb-1:after{content:var(--tw-content);padding-bottom:.4rem}.koenig-lexical .after\\:text-grey-500:after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity, 1))}.koenig-lexical .after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.koenig-lexical .after\\:content-\\[attr\\(data-placeholder\\)\\]:after{--tw-content: attr(data-placeholder);content:var(--tw-content)}.koenig-lexical .first\\:m-0:first-child{margin:0}.koenig-lexical .odd\\:bg-black:nth-child(odd){--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity, 1))}.koenig-lexical .even\\:bg-grey-200:nth-child(2n){--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity, 1))}.koenig-lexical .first-of-type\\:mr-3:first-of-type{margin-right:1.2rem}.koenig-lexical .first-of-type\\:mt-0:first-of-type{margin-top:0}.koenig-lexical .first-of-type\\:mt-8:first-of-type{margin-top:3.2rem}.koenig-lexical .first-of-type\\:border-t-0:first-of-type{border-top-width:0px}.koenig-lexical .last-of-type\\:mr-0:last-of-type{margin-right:0}.koenig-lexical .focus-within\\:border-green:focus-within{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity, 1))}.koenig-lexical .focus-within\\:bg-white:focus-within{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .focus-within\\:shadow-\\[0_0_0_2px_rgba\\(48\\,207\\,67\\,\\.25\\)\\]:focus-within{--tw-shadow: 0 0 0 2px rgba(48,207,67,.25);--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .focus-within\\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.koenig-lexical .hover\\:-mx-3:hover{margin-left:-1.2rem;margin-right:-1.2rem}.koenig-lexical .hover\\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;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))}.koenig-lexical .hover\\:border-grey-100:hover{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity, 1))}.koenig-lexical .hover\\:border-grey-500:hover{--tw-border-opacity: 1;border-color:rgb(174 183 193 / var(--tw-border-opacity, 1))}.koenig-lexical .hover\\:border-grey-800:hover{--tw-border-opacity: 1;border-color:rgb(98 109 121 / var(--tw-border-opacity, 1))}.koenig-lexical .hover\\:border-grey-900:hover{--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity, 1))}.koenig-lexical .hover\\:bg-grey-100:hover{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity, 1))}.koenig-lexical .hover\\:bg-grey-200:hover{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity, 1))}.koenig-lexical .hover\\:bg-grey-200\\/80:hover{background-color:#ebeef0cc}.koenig-lexical .hover\\:bg-grey-500\\/20:hover{background-color:#aeb7c133}.koenig-lexical .hover\\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .hover\\:px-3:hover{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .hover\\:font-bold:hover{font-weight:700}.koenig-lexical .hover\\:text-black:hover{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity, 1))}.koenig-lexical .hover\\:text-green-600:hover{--tw-text-opacity: 1;color:rgb(42 178 58 / var(--tw-text-opacity, 1))}.koenig-lexical .hover\\:opacity-100:hover{opacity:1}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px\\]:hover{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px_\\#30cf43\\]:hover{--tw-shadow: 0 0 0 1px #30cf43;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-green:hover{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .focus\\:border-green:focus{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity, 1))}.koenig-lexical .focus\\:border-green-600:focus{--tw-border-opacity: 1;border-color:rgb(42 178 58 / var(--tw-border-opacity, 1))}.koenig-lexical .focus\\:border-grey-400:focus{--tw-border-opacity: 1;border-color:rgb(206 212 217 / var(--tw-border-opacity, 1))}.koenig-lexical .focus\\:bg-white:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .focus\\:shadow-\\[0_0_0_2px_rgba\\(48\\,207\\,67\\,\\.25\\)\\]:focus{--tw-shadow: 0 0 0 2px rgba(48,207,67,.25);--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .focus\\:shadow-insetgreen:focus{--tw-shadow: 0px 0px 0px 1px inset var(--green);--tw-shadow-colored: inset 0px 0px 0px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.koenig-lexical :is(.group\\/image:hover .group-hover\\/image\\:visible){visibility:visible}.koenig-lexical :is(.group:hover .group-hover\\:visible){visibility:visible}.koenig-lexical :is(.group:hover .group-hover\\:block){display:block}.koenig-lexical :is(.group:hover .group-hover\\:inline){display:inline}.koenig-lexical :is(.group:hover .group-hover\\:scale-105){--tw-scale-x: 1.05;--tw-scale-y: 1.05;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))}.koenig-lexical :is(.group:hover .group-hover\\:stroke-grey-900){stroke:#394047}.koenig-lexical :is(.group:hover .group-hover\\:font-bold){font-weight:700}.koenig-lexical :is(.group:hover .group-hover\\:text-grey-800){--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity, 1))}.koenig-lexical :is(.group\\/image:hover .group-hover\\/image\\:opacity-100){opacity:1}.koenig-lexical :is(.group:hover .group-hover\\:opacity-100){opacity:1}.koenig-lexical :is(.peer:checked~.peer-checked\\:bg-black){--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity, 1))}.koenig-lexical :is(.peer:checked~.peer-checked\\:before\\:translate-x-\\[12px\\]):before{content:var(--tw-content);--tw-translate-x: 12px;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))}.koenig-lexical :is(.peer.koenig-lexical~.peer-\\[\\.koenig-lexical\\]\\:mt-10){margin-top:4rem}.koenig-lexical :is(.peer.koenig-lexical~.peer-\\[\\.koenig-lexical\\]\\:mt-12){margin-top:4.8rem}.koenig-lexical :is(.peer.koenig-lexical~.peer-\\[\\.koenig-lexical\\]\\:mt-8){margin-top:3.2rem}.koenig-lexical .dark\\:border-none:is(.dark *){border-style:none}.koenig-lexical .dark\\:border-black:is(.dark *){--tw-border-opacity: 1;border-color:rgb(21 23 26 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:border-grey-100\\/20:is(.dark *){border-color:#f4f5f633}.koenig-lexical .dark\\:border-grey-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(98 109 121 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:border-grey-800\\/80:is(.dark *){border-color:#626d79cc}.koenig-lexical .dark\\:border-grey-900:is(.dark *){--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:border-grey-950:is(.dark *){--tw-border-opacity: 1;border-color:rgb(35 41 47 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:border-grey\\/10:is(.dark *){border-color:#abb4be1a}.koenig-lexical .dark\\:border-grey\\/20:is(.dark *){border-color:#abb4be33}.koenig-lexical .dark\\:border-grey\\/30:is(.dark *){border-color:#abb4be4d}.koenig-lexical .dark\\:border-transparent:is(.dark *){border-color:transparent}.koenig-lexical .dark\\:border-white:is(.dark *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:border-white\\/10:is(.dark *){border-color:#ffffff1a}.koenig-lexical .dark\\:border-white\\/15:is(.dark *){border-color:#ffffff26}.koenig-lexical .dark\\:border-t-grey-900:is(.dark *){--tw-border-opacity: 1;border-top-color:rgb(57 64 71 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:bg-black:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-grey-100:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-grey-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-grey-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-grey-925:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(46 51 56 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-grey-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 41 47 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-lime-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(70 102 0 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-transparent:is(.dark *){background-color:transparent}.koenig-lexical .dark\\:bg-white:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:bg-white\\/40:is(.dark *){background-color:#fff6}.koenig-lexical .dark\\:fill-black:is(.dark *){fill:#15171a}.koenig-lexical .dark\\:fill-grey-600:is(.dark *){fill:#95a1ad}.koenig-lexical .dark\\:fill-grey-900:is(.dark *){fill:#394047}.koenig-lexical .dark\\:fill-white:is(.dark *){fill:#fff}.koenig-lexical .dark\\:stroke-grey-300:is(.dark *){stroke:#dde1e5}.koenig-lexical .dark\\:stroke-grey-500:is(.dark *){stroke:#aeb7c1}.koenig-lexical .dark\\:text-black:is(.dark *){--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-green-600:is(.dark *){--tw-text-opacity: 1;color:rgb(42 178 58 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-100:is(.dark *){--tw-text-opacity: 1;color:rgb(244 245 246 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-200:is(.dark *){--tw-text-opacity: 1;color:rgb(235 238 240 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-200\\/40:is(.dark *){color:#ebeef066}.koenig-lexical .dark\\:text-grey-300:is(.dark *){--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-400:is(.dark *){--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-50:is(.dark *){--tw-text-opacity: 1;color:rgb(250 250 251 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-500:is(.dark *){--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-600:is(.dark *){--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-800:is(.dark *){--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey-900:is(.dark *){--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-grey\\/30:is(.dark *){color:#abb4be4d}.koenig-lexical .dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.koenig-lexical .dark\\:caret-grey-300:is(.dark *){caret-color:#dde1e5}.koenig-lexical .dark\\:shadow-\\[0_0_0_1px_rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:is(.dark *){--tw-shadow: 0 0 0 1px rgba(255,255,255,.1);--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .dark\\:shadow-\\[0_0_0_2px_rgba\\(255\\,255\\,255\\,1\\)\\]:is(.dark *){--tw-shadow: 0 0 0 2px rgba(255,255,255,1);--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .dark\\:shadow-xl:is(.dark *){--tw-shadow: 0 2.8px 2.2px rgba(0, 0, 0, .02), 0 6.7px 5.3px rgba(0, 0, 0, .028), 0 12.5px 10px rgba(0, 0, 0, .035), 0 22.3px 17.9px rgba(0, 0, 0, .042), 0 41.8px 33.4px rgba(0, 0, 0, .05), 0 100px 80px rgba(0, 0, 0, .07);--tw-shadow-colored: 0 2.8px 2.2px var(--tw-shadow-color), 0 6.7px 5.3px var(--tw-shadow-color), 0 12.5px 10px var(--tw-shadow-color), 0 22.3px 17.9px var(--tw-shadow-color), 0 41.8px 33.4px var(--tw-shadow-color), 0 100px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical :is(.dark\\:selection\\:bg-grey-600\\/40 *:is(.dark *))::-moz-selection{background-color:#95a1ad66}.koenig-lexical :is(.dark\\:selection\\:bg-grey-600\\/40 *:is(.dark *))::selection{background-color:#95a1ad66}.koenig-lexical :is(.dark\\:selection\\:bg-grey-800 *:is(.dark *))::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical :is(.dark\\:selection\\:bg-grey-800 *:is(.dark *))::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical :is(.dark\\:selection\\:bg-grey-800\\/40 *:is(.dark *))::-moz-selection{background-color:#626d7966}.koenig-lexical :is(.dark\\:selection\\:bg-grey-800\\/40 *:is(.dark *))::selection{background-color:#626d7966}.koenig-lexical :is(.dark\\:selection\\:text-grey-100 *:is(.dark *))::-moz-selection{--tw-text-opacity: 1;color:rgb(244 245 246 / var(--tw-text-opacity, 1))}.koenig-lexical :is(.dark\\:selection\\:text-grey-100 *:is(.dark *))::selection{--tw-text-opacity: 1;color:rgb(244 245 246 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:selection\\:bg-grey-600\\/40:is(.dark *)::-moz-selection{background-color:#95a1ad66}.koenig-lexical .dark\\:selection\\:bg-grey-600\\/40:is(.dark *)::selection{background-color:#95a1ad66}.koenig-lexical .dark\\:selection\\:bg-grey-800:is(.dark *)::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:selection\\:bg-grey-800:is(.dark *)::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:selection\\:bg-grey-800\\/40:is(.dark *)::-moz-selection{background-color:#626d7966}.koenig-lexical .dark\\:selection\\:bg-grey-800\\/40:is(.dark *)::selection{background-color:#626d7966}.koenig-lexical .dark\\:selection\\:text-grey-100:is(.dark *)::-moz-selection{--tw-text-opacity: 1;color:rgb(244 245 246 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:selection\\:text-grey-100:is(.dark *)::selection{--tw-text-opacity: 1;color:rgb(244 245 246 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:placeholder\\:text-grey-700:is(.dark *)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:placeholder\\:text-grey-700:is(.dark *)::placeholder{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:placeholder\\:text-grey-800:is(.dark *)::-moz-placeholder{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:placeholder\\:text-grey-800:is(.dark *)::placeholder{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:before\\:text-grey-100:is(.dark *):before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(244 245 246 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:after\\:text-grey-600:is(.dark *):after{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity, 1))}.koenig-lexical .dark\\:odd\\:bg-white:nth-child(odd):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:even\\:bg-grey-800:nth-child(2n):is(.dark *){--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:focus-within\\:border-green:focus-within:is(.dark *){--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:hover\\:border-grey-400:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(206 212 217 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:hover\\:border-grey-500:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(174 183 193 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:hover\\:bg-black:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:hover\\:bg-grey-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:hover\\:bg-grey-925:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(46 51 56 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:hover\\:bg-grey-950:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(35 41 47 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:focus\\:border-green:focus:is(.dark *){--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity, 1))}.koenig-lexical .dark\\:focus\\:bg-grey-900:focus:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity, 1))}.koenig-lexical .dark\\:focus\\:bg-grey-925:focus:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(46 51 56 / var(--tw-bg-opacity, 1))}.koenig-lexical :is(.group:hover .dark\\:group-hover\\:stroke-grey-100:is(.dark *)){stroke:#f4f5f6}.koenig-lexical :is(.peer:checked~.dark\\:peer-checked\\:bg-green:is(.dark *)){--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity, 1))}@media (min-width: 500px){.koenig-lexical .xs\\:left-\\[-66px\\]{left:-66px}.koenig-lexical .xs\\:w-\\[calc\\(740px\\+8rem\\)\\]{width:calc(740px + 8rem)}.koenig-lexical .xs\\:overflow-visible{overflow:visible}.koenig-lexical .xs\\:px-\\[calc\\(92px-\\(8rem\\/2\\)\\)\\]{padding-left:calc(92px - 4rem);padding-right:calc(92px - 4rem)}}@media (min-width: 640px){.koenig-lexical .sm\\:relative{position:relative}.koenig-lexical .sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.koenig-lexical .sm\\:w-1\\/2{width:50%}.koenig-lexical .sm\\:w-\\[440px\\]{width:440px}.koenig-lexical .sm\\:flex-row{flex-direction:row}.koenig-lexical .sm\\:flex-row-reverse{flex-direction:row-reverse}.koenig-lexical .sm\\:px-\\[calc\\(92px-\\(12rem\\/2\\)\\)\\]{padding-left:calc(92px - 6rem);padding-right:calc(92px - 6rem)}.koenig-lexical .sm\\:py-\\[6rem\\]{padding-top:6rem;padding-bottom:6rem}.koenig-lexical .sm\\:pl-0{padding-left:0}.koenig-lexical .sm\\:pl-\\[calc\\(92px-\\(12rem\\/2\\)\\)\\]{padding-left:calc(92px - 6rem)}.koenig-lexical .sm\\:pr-0{padding-right:0}.koenig-lexical .sm\\:pr-\\[calc\\(92px-\\(12rem\\/2\\)\\)\\]{padding-right:calc(92px - 6rem)}.koenig-lexical .sm\\:text-4xl{font-size:3.6rem}.koenig-lexical .sm\\:text-xl{font-size:2rem}}@media (min-width: 768px){.koenig-lexical .md\\:col-span-2{grid-column:span 2 / span 2}.koenig-lexical .md\\:my-14{margin-top:5.6rem;margin-bottom:5.6rem}.koenig-lexical .md\\:grid{display:grid}.koenig-lexical .md\\:size-9{width:3.6rem;height:3.6rem}.koenig-lexical .md\\:h-\\[38px\\]{height:38px}.koenig-lexical .md\\:w-2\\/3{width:66.666667%}.koenig-lexical .md\\:w-\\[348px\\]{width:348px}.koenig-lexical .md\\:w-\\[calc\\(740px\\+12rem\\)\\]{width:calc(740px + 12rem)}.koenig-lexical .md\\:min-w-\\[calc\\(100\\%\\+10rem\\)\\]{min-width:calc(100% + 10rem)}.koenig-lexical .md\\:gap-y-\\[\\.2rem\\]{row-gap:.2rem}.koenig-lexical .md\\:rounded-md{border-radius:.6rem}.koenig-lexical .md\\:px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .md\\:px-\\[6rem\\]{padding-left:6rem;padding-right:6rem}.koenig-lexical .md\\:px-\\[8rem\\]{padding-left:8rem;padding-right:8rem}.koenig-lexical .md\\:px-\\[calc\\(92px-\\(12rem\\/2\\)\\)\\]{padding-left:calc(92px - 6rem);padding-right:calc(92px - 6rem)}.koenig-lexical .md\\:py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .md\\:py-\\[10rem\\]{padding-top:10rem;padding-bottom:10rem}.koenig-lexical .md\\:py-\\[12rem\\]{padding-top:12rem;padding-bottom:12rem}.koenig-lexical .md\\:py-\\[14rem\\]{padding-top:14rem;padding-bottom:14rem}.koenig-lexical .md\\:py-\\[8rem\\]{padding-top:8rem;padding-bottom:8rem}.koenig-lexical .md\\:pl-\\[calc\\(92px-\\(12rem\\/2\\)\\)\\]{padding-left:calc(92px - 6rem)}.koenig-lexical .md\\:pr-\\[calc\\(92px-\\(12rem\\/2\\)\\)\\]{padding-right:calc(92px - 6rem)}.koenig-lexical .md\\:text-5xl{font-size:4.8rem;line-height:1.15}.koenig-lexical .md\\:text-\\[2\\.2rem\\]{font-size:2.2rem}.koenig-lexical :is(.peer.koenig-lexical~.peer-\\[\\.koenig-lexical\\]\\:md\\:mt-16){margin-top:6.4rem}.koenig-lexical :is(.peer.koenig-lexical~.peer-\\[\\.koenig-lexical\\]\\:md\\:mt-8){margin-top:3.2rem}}@media (min-width: 1024px){.koenig-lexical .lg\\:top-8{top:3.2rem}.koenig-lexical .lg\\:mx-\\[calc\\(50\\%-50vw\\+\\(var\\(--kg-breakout-adjustment-with-fallback\\)\\/2\\)\\)\\]{margin-left:calc(50% - 50vw + (var(--kg-breakout-adjustment-with-fallback) / 2));margin-right:calc(50% - 50vw + (var(--kg-breakout-adjustment-with-fallback) / 2))}.koenig-lexical .lg\\:w-\\[calc\\(100vw-var\\(--kg-breakout-adjustment-with-fallback\\)\\+2px\\)\\]{width:calc(100vw - var(--kg-breakout-adjustment-with-fallback) + 2px)}.koenig-lexical .lg\\:w-\\[calc\\(740px\\+22rem\\)\\]{width:calc(740px + 22rem)}.koenig-lexical .lg\\:min-w-\\[calc\\(100\\%\\+18rem\\)\\]{min-width:calc(100% + 18rem)}.koenig-lexical .lg\\:px-0{padding-left:0;padding-right:0}.koenig-lexical .lg\\:px-\\[8rem\\]{padding-left:8rem;padding-right:8rem}.koenig-lexical .lg\\:py-\\[14rem\\]{padding-top:14rem;padding-bottom:14rem}.koenig-lexical .lg\\:py-\\[16rem\\]{padding-top:16rem;padding-bottom:16rem}.koenig-lexical .lg\\:pl-0{padding-left:0}.koenig-lexical .lg\\:pr-0{padding-right:0}.koenig-lexical .lg\\:text-2xl{font-size:2.4rem}.koenig-lexical .lg\\:text-6xl{font-size:6rem;line-height:1}.koenig-lexical .lg\\:text-\\[2\\.6rem\\]{font-size:2.6rem}}@media (min-width: 1280px){.koenig-lexical .xl\\:w-1\\/2{width:50%}.koenig-lexical .xl\\:w-\\[calc\\(740px\\+40rem\\)\\]{width:calc(740px + 40rem)}.koenig-lexical .xl\\:max-w-\\[880px\\]{max-width:880px}.koenig-lexical .xl\\:py-\\[18rem\\]{padding-top:18rem;padding-bottom:18rem}}.koenig-lexical .\\[\\&\\:has\\(\\.placeholder\\)\\]\\:w-fit:has(.placeholder){width:-moz-fit-content;width:fit-content}.koenig-lexical .\\[\\&\\:has\\(\\.placeholder\\)\\]\\:text-left:has(.placeholder){text-align:left}/**
|
||
* simplemde v1.11.2
|
||
* Copyright Next Step Webs, Inc.
|
||
* @link https://github.com/NextStepWebs/simplemde-markdown-editor
|
||
* @license MIT
|
||
*/.koenig-lexical .CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.koenig-lexical .CodeMirror-lines{padding:4px 0}.koenig-lexical .CodeMirror pre{padding:0 4px}.koenig-lexical .CodeMirror-gutter-filler,.koenig-lexical .CodeMirror-scrollbar-filler{background-color:#fff}.koenig-lexical .CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.koenig-lexical .CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.koenig-lexical .CodeMirror-guttermarker{color:#000}.koenig-lexical .CodeMirror-guttermarker-subtle{color:#999}.koenig-lexical .CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.koenig-lexical .CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.koenig-lexical .cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.koenig-lexical .cm-fat-cursor div.CodeMirror-cursors{z-index:1}.koenig-lexical .cm-fat-cursor-mark{background-color:#14ff1480;animation:blink 1.06s steps(1) infinite}.koenig-lexical .cm-animate-fat-cursor{width:auto;border:0;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@keyframes blink{50%{background-color:transparent}}.koenig-lexical .cm-tab{display:inline-block;text-decoration:inherit}.koenig-lexical .CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.koenig-lexical .CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.koenig-lexical .cm-s-default .cm-header{color:#00f}.koenig-lexical .cm-s-default .cm-quote{color:#090}.koenig-lexical .cm-negative{color:#d44}.koenig-lexical .cm-positive{color:#292}.koenig-lexical .cm-header,.koenig-lexical .cm-strong{font-weight:700}.koenig-lexical .cm-em{font-style:italic}.koenig-lexical .cm-link{text-decoration:underline}.koenig-lexical .cm-strikethrough{text-decoration:line-through}.koenig-lexical .cm-s-default .cm-keyword{color:#708}.koenig-lexical .cm-s-default .cm-atom{color:#219}.koenig-lexical .cm-s-default .cm-number{color:#164}.koenig-lexical .cm-s-default .cm-def{color:#00f}.koenig-lexical .cm-s-default .cm-variable-2{color:#05a}.koenig-lexical .cm-s-default .cm-type,.koenig-lexical .cm-s-default .cm-variable-3{color:#085}.koenig-lexical .cm-s-default .cm-comment{color:#a50}.koenig-lexical .cm-s-default .cm-string{color:#a11}.koenig-lexical .cm-s-default .cm-string-2{color:#f50}.koenig-lexical .cm-s-default .cm-meta,.koenig-lexical .cm-s-default .cm-qualifier{color:#555}.koenig-lexical .cm-s-default .cm-builtin{color:#30a}.koenig-lexical .cm-s-default .cm-bracket{color:#997}.koenig-lexical .cm-s-default .cm-tag{color:#170}.koenig-lexical .cm-s-default .cm-attribute{color:#00c}.koenig-lexical .cm-s-default .cm-hr{color:#999}.koenig-lexical .cm-s-default .cm-link{color:#00c}.koenig-lexical .cm-s-default .cm-error,.koenig-lexical .cm-invalidchar{color:red}.koenig-lexical .CodeMirror-composing{border-bottom:2px solid}.koenig-lexical div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}.koenig-lexical div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.koenig-lexical .CodeMirror-matchingtag{background:#ff96004d}.koenig-lexical .CodeMirror-activeline-background{background:#e8f2ff}.koenig-lexical .CodeMirror{position:relative;overflow:hidden;background:#fff}.koenig-lexical .CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.koenig-lexical .CodeMirror-sizer{position:relative;border-right:30px solid transparent}.koenig-lexical .CodeMirror-gutter-filler,.koenig-lexical .CodeMirror-hscrollbar,.koenig-lexical .CodeMirror-scrollbar-filler,.koenig-lexical .CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.koenig-lexical .CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.koenig-lexical .CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.koenig-lexical .CodeMirror-scrollbar-filler{right:0;bottom:0}.koenig-lexical .CodeMirror-gutter-filler{left:0;bottom:0}.koenig-lexical .CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.koenig-lexical .CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.koenig-lexical .CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:0 0!important;border:none!important}.koenig-lexical .CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.koenig-lexical .CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.koenig-lexical .CodeMirror-gutter-wrapper ::selection{background-color:transparent}.koenig-lexical .CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.koenig-lexical .CodeMirror-lines{cursor:text;min-height:1px}.koenig-lexical .CodeMirror pre{border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;font-variant-ligatures:contextual}.koenig-lexical .CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.koenig-lexical .CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.koenig-lexical .CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.koenig-lexical .CodeMirror-rtl pre{direction:rtl}.koenig-lexical .CodeMirror-code{outline:0}.koenig-lexical .CodeMirror-gutter,.koenig-lexical .CodeMirror-gutters,.koenig-lexical .CodeMirror-linenumber,.koenig-lexical .CodeMirror-scroll,.koenig-lexical .CodeMirror-sizer{box-sizing:content-box}.koenig-lexical .CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.koenig-lexical .CodeMirror-cursor{position:absolute;pointer-events:none}.koenig-lexical .CodeMirror-measure pre{position:static}.koenig-lexical div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.koenig-lexical div.CodeMirror-dragcursors,.koenig-lexical .CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.koenig-lexical .CodeMirror-selected{background:#d9d9d9}.koenig-lexical .CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.koenig-lexical .CodeMirror-crosshair{cursor:crosshair}.koenig-lexical .CodeMirror-line::selection,.koenig-lexical .CodeMirror-line>span::selection,.koenig-lexical .CodeMirror-line>span>span::selection{background:#d7d4f0}.koenig-lexical .CodeMirror-line::-moz-selection,.koenig-lexical .CodeMirror-line>span::-moz-selection,.koenig-lexical .CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.koenig-lexical .cm-searching{background-color:#ffa;background-color:#ff06}.koenig-lexical .cm-force-border{padding-right:.1px}@media print{.koenig-lexical .CodeMirror div.CodeMirror-cursors{visibility:hidden}}.koenig-lexical .cm-tab-wrap-hack:after{content:""}.koenig-lexical span.CodeMirror-selectedtext{background:0 0}.koenig-lexical .CodeMirror{height:auto;min-height:300px;border:1px solid #ddd;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:1}.koenig-lexical .CodeMirror-scroll{min-height:300px}.koenig-lexical .CodeMirror-fullscreen{background:#fff;position:fixed!important;top:50px;left:0;right:0;bottom:0;height:auto;z-index:9}.koenig-lexical .CodeMirror-sided{width:50%!important}.koenig-lexical .editor-toolbar{position:relative;opacity:.6;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;padding:0 10px;border-top:1px solid #bbb;border-left:1px solid #bbb;border-right:1px solid #bbb;border-top-left-radius:4px;border-top-right-radius:4px}.koenig-lexical .editor-toolbar:after,.koenig-lexical .editor-toolbar:before{display:block;content:" ";height:1px}.koenig-lexical .editor-toolbar:before{margin-bottom:8px}.koenig-lexical .editor-toolbar:after{margin-top:8px}.koenig-lexical .editor-toolbar:hover,.koenig-lexical .editor-wrapper input.title:focus,.koenig-lexical .editor-wrapper input.title:hover{opacity:.8}.koenig-lexical .editor-toolbar.fullscreen{width:100%;height:50px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.koenig-lexical .editor-toolbar.fullscreen:before{width:20px;height:50px;background:linear-gradient(to right,#fff 0,#fff0);position:fixed;top:0;left:0;margin:0;padding:0}.koenig-lexical .editor-toolbar.fullscreen:after{width:20px;height:50px;background:linear-gradient(to right,#fff0 0,#fff);position:fixed;top:0;right:0;margin:0;padding:0}.koenig-lexical .editor-toolbar a{display:inline-block;text-align:center;text-decoration:none!important;color:#2c3e50!important;width:30px;height:30px;margin:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.koenig-lexical .editor-toolbar a.active,.koenig-lexical .editor-toolbar a:hover{background:#fcfcfc;border-color:#95a5a6}.koenig-lexical .editor-toolbar a:before{line-height:30px}.koenig-lexical .editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.koenig-lexical .editor-toolbar a.fa-header-x:after{font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.koenig-lexical .editor-toolbar a.fa-header-1:after{content:"1"}.koenig-lexical .editor-toolbar a.fa-header-2:after{content:"2"}.koenig-lexical .editor-toolbar a.fa-header-3:after{content:"3"}.koenig-lexical .editor-toolbar a.fa-header-bigger:after{content:"▲"}.koenig-lexical .editor-toolbar a.fa-header-smaller:after{content:"▼"}.koenig-lexical .editor-toolbar.disabled-for-preview a:not(.no-disable){pointer-events:none;background:#fff;border-color:transparent;text-shadow:inherit}@media only screen and (max-width:700px){.koenig-lexical .editor-toolbar a.no-mobile{display:none}}.koenig-lexical .editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.koenig-lexical .editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.koenig-lexical .editor-statusbar .lines:before{content:"lines: "}.koenig-lexical .editor-statusbar .words:before{content:"words: "}.koenig-lexical .editor-statusbar .characters:before{content:"characters: "}.koenig-lexical .editor-preview{padding:10px;position:absolute;width:100%;height:100%;top:0;left:0;background:#fafafa;z-index:7;overflow:auto;display:none;box-sizing:border-box}.koenig-lexical .editor-preview-side{padding:10px;position:fixed;bottom:0;width:50%;top:50px;right:0;background:#fafafa;z-index:9;overflow:auto;display:none;box-sizing:border-box;border:1px solid #ddd}.koenig-lexical .editor-preview-active-side,.koenig-lexical .editor-preview-active{display:block}.koenig-lexical .editor-preview-side>p,.koenig-lexical .editor-preview>p{margin-top:0}.koenig-lexical .editor-preview pre,.koenig-lexical .editor-preview-side pre{background:#eee;margin-bottom:10px}.koenig-lexical .editor-preview table td,.koenig-lexical .editor-preview table th,.koenig-lexical .editor-preview-side table td,.koenig-lexical .editor-preview-side table th{border:1px solid #ddd;padding:5px}.koenig-lexical .CodeMirror .CodeMirror-code .cm-tag{color:#63a35c}.koenig-lexical .CodeMirror .CodeMirror-code .cm-attribute{color:#795da3}.koenig-lexical .CodeMirror .CodeMirror-code .cm-string{color:#183691}.koenig-lexical .CodeMirror .CodeMirror-selected{background:#d9d9d9}.koenig-lexical .CodeMirror .CodeMirror-code .cm-header-1{font-size:200%;line-height:200%}.koenig-lexical .CodeMirror .CodeMirror-code .cm-header-2{font-size:160%;line-height:160%}.koenig-lexical .CodeMirror .CodeMirror-code .cm-header-3{font-size:125%;line-height:125%}.koenig-lexical .CodeMirror .CodeMirror-code .cm-header-4{font-size:110%;line-height:110%}.koenig-lexical .CodeMirror .CodeMirror-code .cm-comment{background:#0000000d;border-radius:2px}.koenig-lexical .CodeMirror .CodeMirror-code .cm-link{color:#7f8c8d}.koenig-lexical .CodeMirror .CodeMirror-code .cm-url{color:#aab2b3}.koenig-lexical .CodeMirror .CodeMirror-code .cm-strikethrough{text-decoration:line-through}.koenig-lexical .CodeMirror .CodeMirror-placeholder{opacity:.5}.koenig-lexical .CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:#ff000026}
|
||
/*$vite$:1*/`,document.head.appendChild(U8);function Ree(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const J=Ree(T);var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function tv(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var Z8={exports:{}},nv={};/**
|
||
* @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 jee=T,Fee=Symbol.for("react.element"),zee=Symbol.for("react.fragment"),Bee=Object.prototype.hasOwnProperty,Wee=jee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Hee={key:!0,ref:!0,__self:!0,__source:!0};function q8(t,e,n){var i,r={},o=null,s=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(s=e.ref);for(i in e)Bee.call(e,i)&&!Hee.hasOwnProperty(i)&&(r[i]=e[i]);if(t&&t.defaultProps)for(i in e=t.defaultProps,e)r[i]===void 0&&(r[i]=e[i]);return{$$typeof:Fee,type:t,key:o,ref:s,props:r,_owner:Wee.current}}nv.Fragment=zee,nv.jsx=q8,nv.jsxs=q8,Z8.exports=nv;var k=Z8.exports;const Y8=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 2v20m10-10H2"})),e_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},J.createElement("path",{d:"M8 7h15"}),J.createElement("path",{d:"M23 17.5V1H8v18.5","data-cap":"butt"}),J.createElement("circle",{cx:4.5,cy:19.5,r:3.5}),J.createElement("circle",{cx:19.5,cy:17.5,r:3.5}))),V8=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 2v10h8a5 5 0 0 0 0-10H3m2 20V12h9c3.314 0 6 2.238 6 5s-2.686 5-6 5H3"})),t_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m21 22-9-5-9 5V3a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v19Z"})),n_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M22 6H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1ZM7 12h10"})),i_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.8 2H3.2C1.985 2 1 2.895 1 4v16c0 1.105.985 2 2.2 2h17.6c1.215 0 2.2-.895 2.2-2V4c0-1.105-.985-2-2.2-2Z"}),J.createElement("path",{fill:"currentColor",d:"M12 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.5v6"})),X8=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",fill:"#000",fillRule:"nonzero"})),r_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 12h20"})),o_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 5 10 8 10-8"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 4H3c-.53 0-1.04.199-1.414.553A1.837 1.837 0 0 0 1 5.89v13.22c0 .501.21.982.586 1.336C1.96 20.8 2.47 21 3 21h18c.53 0 1.04-.199 1.414-.553.375-.354.586-.835.586-1.336V5.89c0-.501-.21-.982-.586-1.336A2.061 2.061 0 0 0 21 4Z"})),Cp=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 7 2 2l5 18 3-7 8 8 3-3-8-8z"})),s_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m22 11.4-8.8 8.8c-2.5 2.5-6.7 2.5-9.2 0h0c-2.5-2.5-2.5-6.7 0-9.2l7.8-7.8c1.8-1.8 4.6-1.8 6.4 0h0C20 5 20 7.8 18.2 9.6L11 16.7c-1 1-2.6 1-3.5 0h0c-1-1-1-2.6 0-3.5l6-6"})),a_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("g",{clipPath:"url(#a)"},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.8 5H3.2C1.985 5 1 5.806 1 6.8v14.4c0 .994.985 1.8 2.2 1.8h17.6c1.215 0 2.2-.806 2.2-1.8V6.8c0-.994-.985-1.8-2.2-1.8ZM6 1h12"}),J.createElement("path",{fill:"currentColor",d:"M15.142 10.264a.75.75 0 0 1 .529.4l4 8A.75.75 0 0 1 19 19.75H6a.75.75 0 0 1-.498-1.31l9-8a.75.75 0 0 1 .64-.176ZM7 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})),J.createElement("defs",null,J.createElement("clipPath",{id:"a"},J.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"})))),G8=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},J.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},J.createElement("path",{d:"M3 9h42v36H3zm7-6h28"}),J.createElement("path",{d:"m10 38 7-10 5 4 8-11 9 17H10z"}),J.createElement("circle",{cx:17,cy:19,r:3}))),K8=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M1.5 2.75h21m-21 18.5h21M16 17V9a2 2 0 0 1 2-2h2m-4 6h3m-7 4V7m-5 6h1v2a2 2 0 0 1-4 0V9a2 2 0 0 1 2-2h2"})),iv=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M22 7H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1ZM1 21h22M1 3h22"})),J8=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M7 19.5v-6.25M7 7v6.25m0 0h10M17 7v12.5"})),e9=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4 22V12M4 2v10m0 0h16m0-10v20"})),l_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 6-6 6 6 6m8-12 6 6-6 6"})),u_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.8 2H3.2C1.985 2 1 2.895 1 4v16c0 1.105.985 2 2.2 2h17.6c1.215 0 2.2-.895 2.2-2V4c0-1.105-.985-2-2.2-2Z"}),J.createElement("path",{fill:"currentColor",d:"m19.642 16.276-3.85-7a.517.517 0 0 0-.181-.189.585.585 0 0 0-.749.115l-4.533 5.494-2.307-2.516a.548.548 0 0 0-.206-.14.598.598 0 0 0-.499.031.529.529 0 0 0-.183.164l-2.75 4a.468.468 0 0 0-.015.507.526.526 0 0 0 .202.189c.084.045.18.069.28.069H19.15a.594.594 0 0 0 .268-.063.532.532 0 0 0 .2-.174.462.462 0 0 0 .024-.487ZM9.25 9c.911 0 1.65-.672 1.65-1.5S10.161 6 9.25 6c-.91 0-1.65.672-1.65 1.5S8.34 9 9.25 9Z"})),Ep=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M4 12h16m-4-4 4 4-4 4m-8 0-4-4 4-4"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.5,d:"M1 3v18M23 3v18"})),c_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},J.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},J.createElement("circle",{cx:18,cy:16,r:4}),J.createElement("path",{"data-cap":"butt",d:"M20.849 33.164 33 20l13 13M2 38l12-11 10 9"}),J.createElement("path",{d:"M2 6h44v36H2z"}))),Tp=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M23 8H1v8h22V8Z"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.5,d:"M1 21h22M1 3h22"})),$p=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M23 8H1v8h22V8Z"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.5,d:"M8 21h8M8 3h8"})),t9=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M22 2h-9.333m-1.334 20H2m4.667 0L17.333 2"})),f_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M13.54 10.46c2.2 2.2 2.2 5.61 0 7.81l-3.08 3.08c-2.2 2.2-5.61 2.2-7.81 0-2.2-2.2-2.2-5.61 0-7.81L5.4 10.9"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M10.46 13.54c-2.2-2.2-2.2-5.61 0-7.81l3.08-3.08c2.2-2.2 5.61-2.2 7.81 0 2.2 2.2 2.2 5.61 0 7.81L18.6 13.1"})),d_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 6v12m-3-2 2.813 2.813L23.625 16"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14 19V6h-1L8 18.071H7L2 6H1v13"})),Qee=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",fill:"#2081E2"}),J.createElement("path",{d:"M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",fill:"white"}),J.createElement("path",{d:"M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",fill:"white"})),h_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},J.createElement("circle",{cx:12,cy:13,r:2}),J.createElement("circle",{cx:3,cy:13,r:2}),J.createElement("circle",{cx:21,cy:13,r:2}))),rv=t=>J.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("g",{fill:"none",fillRule:"evenodd"},J.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),p_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},J.createElement("path",{d:"M1.373 13.183a2.064 2.064 0 0 1 0-2.366C2.946 8.59 6.819 4 12 4s9.054 4.59 10.627 6.817a2.064 2.064 0 0 1 0 2.366C21.054 15.41 17.181 20 12 20s-9.054-4.59-10.627-6.817Z"}),J.createElement("circle",{cx:12,cy:12,r:4}))),g_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m12 2.489 3.09 6.262L22 9.755l-5 4.874 1.18 6.882-6.18-3.25-6.18 3.25L7 14.629 2 9.755l6.91-1.004L12 2.489z"})),n9=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 12h8v10H1V12Zm0 0C1 5 2.75 3.344 6 2m8 10h8v10h-8V12Zm0 0c0-7 1.75-8.656 5-10"})),i9=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 22H10a5 5 0 0 1-5-5v-7"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m1 14 4-4 4 4m1.5-12H14a5 5 0 0 1 5 5v7"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m23 10-4 4-4-4"})),r9=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M22 13.667V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h9.667M22 13.667 13.667 22M22 13.667h-6.333a2 2 0 0 0-2 2V22"})),ov=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M22 13.667V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h9.667M22 13.667 13.667 22M22 13.667h-6.333a2 2 0 0 0-2 2V22"})),o9=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",fill:"#EE7C25",fillRule:"evenodd"})),s9=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",fill:"#1ED760",fillRule:"nonzero"})),m_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.8 2H3.2C1.985 2 1 2.895 1 4v16c0 1.105.985 2 2.2 2h17.6c1.215 0 2.2-.895 2.2-2V4c0-1.105-.985-2-2.2-2Z"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16.5 11 12 15l-4.5-4"})),Uee=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",fill:"#1DA1F2",fillRule:"nonzero"})),a9=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",...t},J.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),v_=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.555 20.963A1 1 0 0 1 5 20.131V3.87a1 1 0 0 1 1.555-.833l12.197 8.132a1 1 0 0 1 0 1.664l-12.197 8.13Z"})),l9=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("g",{fill:"none",fillRule:"evenodd"},J.createElement("path",{d:"M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",fill:"#0FB7FF"}),J.createElement("path",{d:"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",fill:"#FFFFFE"}))),u9=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("g",{fill:"none",fillRule:"evenodd"},J.createElement("path",{d:"M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",fill:"#D9252A"}),J.createElement("path",{fill:"#FFFFFE",d:"M12.77 20.958l8.291-4.788-8.291-4.788v9.576"}))),Zee=()=>{return k.jsxs("div",{className:"koenig-lexical",children:[k.jsx(t,{label:"Text toolbar"}),k.jsx(e,{}),k.jsx(t,{label:"Image toolbar"}),k.jsx(n,{}),k.jsx(t,{label:"Gallery toolbar"}),k.jsx(i,{}),k.jsx(t,{label:"Plus menu"}),k.jsx(s,{}),k.jsx(t,{label:"Card menu"}),k.jsx(a,{}),k.jsx(t,{label:"Divider card"}),k.jsx("div",{className:"relative max-w-[740px]",children:k.jsx(d,{})}),k.jsx(t,{label:"Code block"}),k.jsx("div",{className:"relative max-w-[740px]",children:k.jsx(h,{})}),k.jsx(t,{label:"Image card"}),k.jsx("div",{className:"relative max-w-[740px]",children:k.jsx(g,{})}),k.jsx(t,{label:"Gallery card"}),k.jsx("div",{className:"relative max-w-[1172px]",children:k.jsx(x,{})})]});function t({label:_}){return k.jsx("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:_})}function e(){return k.jsx("div",{className:"max-w-fit",children:k.jsxs("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[k.jsx(r,{Icon:V8,label:"Format text as bold"}),k.jsx(r,{Icon:t9,label:"Format text as italics"}),k.jsx(r,{Icon:e9,label:"Toggle heading 1"}),k.jsx(r,{Icon:J8,label:"Toggle heading 2"}),k.jsx(o,{}),k.jsx(r,{Icon:n9,label:"Toggle blockquote"}),k.jsx(r,{Icon:f_,label:"Insert link"}),k.jsx(o,{}),k.jsx(r,{Icon:ov,label:"Save as snippet"})]})})}function n(){return k.jsx("div",{className:"max-w-fit",children:k.jsxs("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[k.jsx(r,{Icon:Tp,label:"Set image to regular"}),k.jsx(r,{Icon:$p,label:"Set image to wide"}),k.jsx(r,{Icon:Ep,label:"Set image to full"}),k.jsx(o,{}),k.jsx(r,{Icon:f_,label:"Insert link"}),k.jsx(r,{Icon:i9,label:"Replace image"}),k.jsx(o,{}),k.jsx(r,{Icon:ov,label:"Save as snippet"})]})})}function i(){return k.jsx("div",{className:"max-w-fit",children:k.jsxs("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[k.jsx(r,{Icon:Y8,label:"Add image"}),k.jsx(o,{}),k.jsx(r,{Icon:ov,label:"Save as snippet"})]})})}function r({label:_,Icon:S,...C}){return k.jsx("li",{className:"m-0 flex p-0 first:m-0",...C,children:k.jsx("div",{className:"flex size-9 items-center justify-center",type:"button",children:k.jsx(S,{className:"fill-white"})})})}function o(){return k.jsx("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function s(){return k.jsx("button",{"aria-label":"Add a card",className:"group relative flex size-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:size-9",type:"button",children:k.jsx(rv,{className:"size-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function a(){return k.jsxs("div",{className:"z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 text-sm shadow",children:[k.jsx(l,{label:"Primary"}),k.jsx(u,{desc:"Upload, or embed with /image [url]",Icon:u_,label:"Image"}),k.jsx(u,{desc:"Insert a Markdown editor card",Icon:d_,label:"Markdown"}),k.jsx(u,{desc:"Insert a raw HTML card",Icon:l_,label:"HTML"}),k.jsx(u,{desc:"Create an image gallery",Icon:a_,label:"Gallery"}),k.jsx(u,{desc:"Insert a dividing line",Icon:r_,label:"Divider"}),k.jsx(u,{desc:"Embed a link as a visual bookmark",Icon:t_,label:"Bookmark"}),k.jsx(u,{desc:"Only visible when delivered by email",Icon:o_,label:"Email content"}),k.jsx(u,{desc:"Target free or paid members with a CTA",Icon:Cp,label:"Email call to action"}),k.jsx(u,{desc:"Attract signups with a public intro",Icon:p_,label:"Public preview"}),k.jsx(u,{desc:"Add a button to your post",Icon:n_,label:"Button"}),k.jsx(u,{desc:"Info boxes that stand out",Icon:i_,label:"Callout"}),k.jsx(u,{desc:"Search and embed gifs",Icon:K8,label:"GIF"}),k.jsx(u,{desc:"Add collapsible content",Icon:m_,label:"Toggle"}),k.jsx(u,{desc:"Upload and play a video",Icon:v_,label:"Video"}),k.jsx(u,{desc:"Upload and play an audio file",Icon:e_,label:"Audio"}),k.jsx(u,{desc:"Upload a downloadable file",Icon:s_,label:"File"}),k.jsx(u,{desc:"Add a product recommendation",Icon:g_,label:"Product"}),k.jsx(u,{desc:"Add a bold section header",Icon:iv,label:"Header"}),k.jsx(l,{label:"Embed"}),k.jsx(u,{desc:"/youtube [video url]",Icon:u9,label:"YouTube"}),k.jsx(u,{desc:"/twitter [tweet url]",Icon:Uee,label:"Twitter"}),k.jsx(u,{desc:"/unsplash [search-term or url]",Icon:a9,label:"Unsplash"}),k.jsx(u,{desc:"/vimeo [video url]",Icon:l9,label:"Vimeo"}),k.jsx(u,{desc:"/codepen [pen url]",Icon:X8,label:"CodePen"}),k.jsx(u,{desc:"/spotify [track or playlist url]",Icon:s9,label:"Spotify"}),k.jsx(u,{desc:"/soundcloud [track or playlist url]",Icon:o9,label:"SoundCloud"}),k.jsx(u,{desc:"/nft [opensea url]",Icon:Qee,label:"NFT"}),k.jsx(u,{desc:"/embed [url]",Icon:h_,label:"Other..."}),k.jsx(l,{label:"Snippets"}),k.jsx(f,{Icon:r9,label:"A random snippet"})]})}function l({label:_,...S}){return k.jsx("div",{className:"mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-2xs font-medium uppercase tracking-[.06rem] text-grey",style:{minWidth:"calc(100% - 3.2rem)"},...S,children:_})}function u({label:_,desc:S,Icon:C,...E}){return k.jsxs("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...E,children:[k.jsx("div",{className:"flex items-center",children:k.jsx(C,{className:"size-7"})}),k.jsxs("div",{className:"flex flex-col",children:[k.jsx("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:_}),k.jsx("div",{className:"m-0 ml-4 truncate text-2xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:S})]})]})}function f({label:_,Icon:S,...C}){return k.jsxs("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...C,children:[k.jsx("div",{className:"flex items-center",children:k.jsx(S,{className:"size-7"})}),k.jsx("div",{className:"flex flex-col",children:k.jsx("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:_})})]})}function d(){return k.jsx("div",{children:k.jsx("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function h(){return k.jsxs("div",{className:"border-2 border-green",children:[k.jsx("div",{className:"rounded bg-grey-50 px-3 py-2",children:k.jsx("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),k.jsx(y,{placeholder:"Type caption for code block (optional)"})]})}function g(){const[_,S]=T.useState(!1),[C,E]=T.useState(!1),N=()=>{S(!_)},M=I=>{I.stopPropagation(),E(!C)};return _?k.jsxs("div",{className:`border border-transparent ${_?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:N,children:[k.jsx(m,{desc:"Click to select an image",Icon:c_}),k.jsx(y,{placeholder:"Type caption for image (optional)"}),k.jsx("button",{className:`absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${C?"border-green bg-green text-white":"border-grey text-grey"} `,type:"button",onClick:I=>M(I),children:"Alt"})]}):k.jsx("div",{className:`border border-transparent ${_?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:N,children:k.jsx(m,{desc:"Click to select an image",Icon:c_})})}function m({desc:_,Icon:S,...C}){return k.jsxs("div",{className:"relative",children:[k.jsx("figure",{className:"cursor-pointer border border-transparent",...C,children:k.jsx("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:k.jsxs("button",{className:"group flex flex-col items-center justify-center p-20",type:"button",children:[k.jsx(S,{className:"size-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),k.jsx("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:_})]})})}),k.jsx("form",{children:k.jsx("input",{accept:"image/*",hidden:!0,name:"image",type:"file"})})]})}function y({placeholder:_}){return k.jsx("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:_})}function x(){return k.jsxs("div",{className:"border-2 border-green",children:[k.jsx(m,{desc:"Click to select up to 9 images",Icon:G8}),k.jsx(y,{placeholder:"Type caption for gallery (optional)"})]})}},rn=T.createContext({}),ft=T.createContext({});var ge={};let sv={},c9={},qf={},Mp={},b_={},Yf={},k_={},y_={},Np={},Ap={},Wl={},w_={},x_={},f9={},d9={},h9={},p9={},g9={},m9={},v9={},av={},b9={},k9={},y9={},w9={},x9={},_9={},O9={},S9={},C9={},__={},O_={},S_={},E9={},T9={},$9={};function Le(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Gs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qee=Gs&&"documentMode"in document?document.documentMode:null,mr=Gs&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Hl=Gs&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),lv=Gs&&"InputEvent"in window&&!qee?"getTargetRanges"in new window.InputEvent("input"):!1,C_=Gs&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),uv=Gs&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Yee=Gs&&/Android/.test(navigator.userAgent),Vee=Gs&&/^(?=.*Chrome).*/i.test(navigator.userAgent),E_=Gs&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Vee,cv=C_||uv||E_?" ":"",Xee=Hl?" ":cv,Gee=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Kee=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,Vf={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Jee={directionless:1,unmergeable:2},M9={center:2,end:6,justify:4,left:1,right:3,start:5},ete={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},tte={normal:0,segmented:2,token:1},nte={0:"normal",2:"segmented",1:"token"},T_=!1,$_=0;function ite(t){$_=t.timeStamp}function M_(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function rte(t){return t.getEditorState().read(()=>{let e=on();return e!==null?e.clone():null})}function N9(t,e,n){T_=!0;let i=100<performance.now()-$_;try{Oo(t,()=>{let r=on()||rte(t);var o=new Map,s=t.getRootElement(),a=t._editorState,l=t._blockCursorElement;let u=!1,f="";for(var d=0;d<e.length;d++){var h=e[d],g=h.type,m=h.target,y=Dp(m,a);if(!(y===null&&m!==s||qn(y))){if(g==="characterData"){if(h=i&&qe(y))e:{h=r,g=m;var x=y;if(kt(h)){var _=h.anchor.getNode();if(_.is(x)&&h.format!==_.getFormat()){h=!1;break e}}h=g.nodeType===3&&x.isAttached()}h&&(x=Js(t._window),g=h=null,x!==null&&x.anchorNode===m&&(h=x.anchorOffset,g=x.focusOffset),m=m.nodeValue,m!==null&&R_(y,m,h,g,!1))}else if(g==="childList"){for(u=!0,g=h.addedNodes,x=0;x<g.length;x++){_=g[x];var S=z9(_),C=_.parentNode;C==null||_===l||S!==null||_.nodeName==="BR"&&M_(_,C,t)||(Hl&&(S=_.innerText||_.nodeValue)&&(f+=S),C.removeChild(_))}if(h=h.removedNodes,g=h.length,0<g){for(x=0,_=0;_<g;_++)C=h[_],(C.nodeName==="BR"&&M_(C,m,t)||l===C)&&(m.appendChild(C),x++);g!==x&&(m===s&&(y=a._nodeMap.get("root")),o.set(m,y))}}}}if(0<o.size)for(let[E,N]of o)if(xe(N))for(o=N.getChildrenKeys(),s=E.firstChild,a=0;a<o.length;a++)l=t.getElementByKey(o[a]),l!==null&&(s==null?(E.appendChild(l),s=l):s!==l&&E.replaceChild(l,s),s=s.nextSibling);else qe(N)&&N.markDirty();if(o=n.takeRecords(),0<o.length){for(s=0;s<o.length;s++)for(l=o[s],a=l.addedNodes,l=l.target,d=0;d<a.length;d++)y=a[d],m=y.parentNode,m==null||y.nodeName!=="BR"||M_(y,l,t)||m.removeChild(y);n.takeRecords()}r!==null&&(u&&(r.dirty=!0,Ks(r)),Hl&&Z9(t)&&r.insertRawText(f))})}finally{T_=!1}}function A9(t){let e=t._observer;if(e!==null){let n=e.takeRecords();N9(t,n,e)}}function P9(t){$_===0&&vv(t).addEventListener("textInput",ite,!0),t._observer=new MutationObserver((e,n)=>{N9(t,e,n)})}function D9(t,e){let n=t.__mode,i=t.__format;t=t.__style;let r=e.__mode,o=e.__format;return e=e.__style,(n===null||n===r)&&(i===null||i===o)&&(t===null||t===e)}function I9(t,e){let n=t.mergeWithSibling(e),i=Tn()._normalizedNodes;return i.add(t.__key),i.add(e.__key),n}function L9(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&qe(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{D9(e,t)&&(t=I9(e,t));break}for(var n;(n=t.getNextSibling())!==null&&qe(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{D9(t,n)&&I9(t,n);break}}}function R9(t){return j9(t.anchor),j9(t.focus),t}function j9(t){for(;t.type==="element";){var e=t.getNode(),n=t.offset;if(n===e.getChildrenSize()?(e=e.getChildAtIndex(n-1),n=!0):(e=e.getChildAtIndex(n),n=!1),qe(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!xe(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ote=1,ste=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function N_(t){let e=document.activeElement;if(e===null)return!1;let n=e.nodeName;return qn(Dp(t))&&(n==="INPUT"||n==="TEXTAREA"||e.contentEditable==="true"&&e.__lexicalEditor==null)}function Pp(t,e,n){let i=t.getRootElement();try{return i!==null&&i.contains(e)&&i.contains(n)&&e!==null&&!N_(e)&&A_(e)===t}catch{return!1}}function A_(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=gv(t)}return null}function P_(t){return t.isToken()||t.isSegmented()}function fv(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function D_(t,e,n){let i=Vf[e];return n!==null&&(t&i)===(n&i)||(t^=i,e==="subscript"?t&=-65:e==="superscript"&&(t&=-33)),t}function F9(t,e){if(e!=null)t.__key=e;else{Ir(),99<Up&&Le(14),e=Tn();var n=ea(),i=""+ote++;n._nodeMap.set(i,t),xe(t)?e._dirtyElements.set(i,!0):e._dirtyLeaves.add(i),e._cloneNotNeeded.add(i),e._dirtyType=1,t.__key=i}}function vc(t){var e=t.getParent();if(e!==null){let r=t.getWritable();e=e.getWritable();var n=t.getPreviousSibling();if(t=t.getNextSibling(),n===null)if(t!==null){var i=t.getWritable();e.__first=t.__key,i.__prev=null}else e.__first=null;else{if(i=n.getWritable(),t!==null){let o=t.getWritable();o.__prev=i.__key,i.__next=o.__key}else i.__next=null;r.__prev=null}t===null?n!==null?(t=n.getWritable(),e.__last=n.__key,t.__next=null):e.__last=null:(t=t.getWritable(),n!==null?(n=n.getWritable(),n.__next=t.__key,t.__prev=n.__key):t.__prev=null,r.__next=null),e.__size--,r.__parent=null}}function dv(t){99<Up&&Le(14);var e=t.getLatest(),n=e.__parent,i=ea();let r=Tn(),o=i._nodeMap;if(i=r._dirtyElements,n!==null)e:for(;n!==null;){if(i.has(n))break e;let s=o.get(n);if(s===void 0)break;i.set(n,!1),n=s.__parent}e=e.__key,r._dirtyType=1,xe(t)?i.set(e,!0):r._dirtyLeaves.add(e)}function xi(t){Ir();var e=Tn();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=vr(n),e!==null&&e.getWritable()),t!==null&&(t=vr(t),t!==null&&t.getWritable()))}function Ql(){return rd()?null:Tn()._compositionKey}function vr(t,e){return t=(e||ea())._nodeMap.get(t),t===void 0?null:t}function z9(t,e){let n=Tn();return t=t[`__lexicalKey_${n._key}`],t!==void 0?vr(t,e):null}function Dp(t,e){for(;t!=null;){let n=z9(t,e);if(n!==null)return n;t=gv(t)}return null}function B9(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function W9(t){return t.read(()=>_o().getTextContent())}function ate(t,e){Oo(t,()=>{var n=ea();if(!n.isEmpty())if(e==="root")_o().markDirty();else{n=n._nodeMap;for(let[,i]of n)i.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function _o(){return ea()._nodeMap.get("root")}function Ks(t){Ir();let e=ea();t!==null&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function Xf(t){var e=Tn(),n;e:{for(n=t;n!=null;){let i=n[`__lexicalKey_${e._key}`];if(i!==void 0){n=i;break e}n=gv(n)}n=null}return n===null?(e=e.getRootElement(),t===e?vr("root"):null):vr(n)}function H9(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function I_(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Q9(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function L_(t,e,n){if(e=Js(e._window),e!==null){var i=e.anchorNode,{anchorOffset:r,focusOffset:o}=e;if(i!==null&&(e=i.nodeType===3?i.nodeValue:null,i=Dp(i),e!==null&&qe(i))){if(e===cv&&n){let s=n.length;e=n,o=r=s}e!==null&&R_(i,e,r,o,t)}}}function R_(t,e,n,i,r){let o=t;if(o.isAttached()&&(r||!o.isDirty())){let u=o.isComposing(),f=e;if((u||r)&&e[e.length-1]===cv&&(f=e.slice(0,-1)),e=o.getTextContent(),r||f!==e)if(f==="")if(xi(null),C_||uv||E_)o.remove();else{let d=Tn();setTimeout(()=>{d.update(()=>{o.isAttached()&&o.remove()})},20)}else{r=o.getParent(),e=id();var s=o.getTextContentSize(),a=Ql(),l=o.getKey();o.isToken()||a!==null&&l===a&&!u||kt(e)&&(r!==null&&!r.canInsertTextBefore()&&e.anchor.offset===0||e.anchor.key===t.__key&&e.anchor.offset===0&&!o.canInsertTextBefore()&&!u||e.focus.key===t.__key&&e.focus.offset===s&&!o.canInsertTextAfter()&&!u)?o.markDirty():(t=on(),kt(t)&&n!==null&&i!==null&&(t.setTextNodeRange(o,n,o,i),o.isSegmented()&&(n=o.getTextContent(),n=Gi(n),o.replace(n),o=n)),o.setTextContent(f))}}}function lte(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),i=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||i)||(e=e.getPreviousSibling(),t=(qe(e)||xe(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||i:!1}function Ip(t,e){t.__lexicalClassNameCache===void 0&&(t.__lexicalClassNameCache={});let n=t.__lexicalClassNameCache,i=n[e];return i!==void 0?i:(t=t[e],typeof t=="string"?(t=t.split(" "),n[e]=t):t)}function j_(t,e,n,i,r){n.size!==0&&(n=i.__type,i=i.__key,e=e.get(n),e===void 0&&Le(33,n),n=e.klass,e=t.get(n),e===void 0&&(e=new Map,t.set(n,e)),t=e.get(i),n=t==="destroyed"&&r==="created",(t===void 0||n)&&e.set(i,n?"updated":r))}function U9(t,e,n){let i=t.getParent(),r=n;return i!==null&&(e&&n===0?(r=t.getIndexWithinParent(),t=i):e||n!==t.getChildrenSize()||(r=t.getIndexWithinParent()+1,t=i)),t.getChildAtIndex(e?r-1:r)}function F_(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),U9(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?U9(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function Z9(t){return t=(t=vv(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function hv(t){return!So(t)&&!t.isLastChild()&&!t.isInline()}function pv(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&Le(75,e),t}function gv(t){return t=t.assignedSlot||t.parentElement,t!==null&&t.nodeType===11?t.host:t}function mv(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function vv(t){return t=t._window,t===null&&Le(78),t}function q9(t){for(t=t.getParentOrThrow();t!==null&&!Ul(t);)t=t.getParentOrThrow();return t}function Ul(t){return So(t)||xe(t)&&t.isShadowRoot()}function Y9(t){return t=t.constructor.clone(t),F9(t,null),t}function Lp(t){var e=Tn();let n=t.constructor.getType();return e=e._nodes.get(n),e===void 0&&Le(97),e=e.replace,e!==null?(e=e(t),e instanceof t.constructor||Le(98),e):t}function z_(t,e){t=t.getParent(),!So(t)||xe(e)||qn(e)||Le(99)}function B_(t){return(qn(t)||xe(t)&&!t.canBeEmpty())&&!t.isInline()}function W_(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null,e=t.parentElement,e!==null&&e.removeChild(t)}function Js(t){return Gs?(t||window).getSelection():null}function bv(t){return t.nodeType===1}function Gf(t){if(qn(t)&&!t.isInline())return!0;if(!xe(t)||Ul(t))return!1;var e=t.getFirstChild();return e=e===null||yc(e)||qe(e)||e.isInline(),!t.isInline()&&t.canBeEmpty()!==!1&&e}function H_(t,e){for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function V9(t,e,n,i,r,o){for(t=t.getFirstChild();t!==null;){let s=t.__key;t.__parent===e&&(xe(t)&&V9(t,s,n,i,r,o),n.has(s)||o.delete(s),r.push(s)),t=t.getNextSibling()}}function ute(t,e,n,i){t=t._nodeMap,e=e._nodeMap;let r=[];for(let[o]of i){let s=e.get(o);s===void 0||s.isAttached()||(xe(s)&&V9(s,o,t,e,r,i),t.has(o)||i.delete(o),r.push(o))}for(let o of r)e.delete(o);for(let o of n)i=e.get(o),i===void 0||i.isAttached()||(t.has(o)||n.delete(o),e.delete(o))}let _i="",Dr="",Qa="",Zl,br,Rp,X9=!1,Q_=!1,kv,yv=null,U_,Z_,bc,ql,q_,jp;function wv(t,e){let n=bc.get(t);if(e!==null){let i=G_(t);i.parentNode===e&&e.removeChild(i)}ql.has(t)||br._keyToDOMMap.delete(t),xe(n)&&(t=_v(n,bc),Y_(t,0,t.length-1,null)),n!==void 0&&j_(jp,Rp,kv,n,"destroyed")}function Y_(t,e,n,i){for(;e<=n;++e){let r=t[e];r!==void 0&&wv(r,i)}}function kc(t,e){t.setProperty("text-align",e)}function G9(t,e){var n=Zl.theme.indent;if(typeof n=="string"){let i=t.classList.contains(n);0<e&&!i?t.classList.add(n):1>e&&i&&t.classList.remove(n)}n=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||"40px",t.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${n})`)}function K9(t,e){t=t.style,e===0?kc(t,""):e===1?kc(t,"left"):e===2?kc(t,"center"):e===3?kc(t,"right"):e===4?kc(t,"justify"):e===5?kc(t,"start"):e===6&&kc(t,"end")}function xv(t,e,n){let i=ql.get(t);i===void 0&&Le(60);let r=i.createDOM(Zl,br);var o=br._keyToDOMMap;if(r["__lexicalKey_"+br._key]=t,o.set(t,r),qe(i)?r.setAttribute("data-lexical-text","true"):qn(i)&&r.setAttribute("data-lexical-decorator","true"),xe(i)){if(t=i.__indent,o=i.__size,t!==0&&G9(r,t),o!==0){--o,t=_v(i,ql);var s=Dr;Dr="",V_(t,i,0,o,r,null),t$(i,r),Dr=s}t=i.__format,t!==0&&K9(r,t),i.isInline()||e$(null,i,r),hv(i)&&(_i+=`
|
||
|
||
`,Qa+=`
|
||
|
||
`)}else o=i.getTextContent(),qn(i)?(s=i.decorate(br,Zl),s!==null&&n$(t,s),r.contentEditable="false"):qe(i)&&(i.isDirectionless()||(Dr+=o)),_i+=o,Qa+=o;return e!==null&&(n!=null?e.insertBefore(r,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(r,n):e.appendChild(r))),j_(jp,Rp,kv,i,"created"),r}function V_(t,e,n,i,r,o){let s=_i;for(_i="";n<=i;++n)xv(t[n],r,o);hv(e)&&(_i+=`
|
||
|
||
`),r.__lexicalTextContent=_i,_i=s+_i}function J9(t,e){return t=e.get(t),yc(t)||qn(t)&&t.isInline()}function e$(t,e,n){t=t!==null&&(t.__size===0||J9(t.__last,bc)),e=e.__size===0||J9(e.__last,ql),t?e||(e=n.__lexicalLineBreak,e!=null&&n.removeChild(e),n.__lexicalLineBreak=null):e&&(e=document.createElement("br"),n.__lexicalLineBreak=e,n.appendChild(e))}function t$(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==Dr||n!==yv){let o=Dr==="";if(o)var i=yv;else i=Dr,i=Gee.test(i)?"rtl":Kee.test(i)?"ltr":null;if(i!==n){let s=e.classList,a=Zl.theme;var r=n!==null?a[n]:void 0;let l=i!==null?a[i]:void 0;r!==void 0&&(typeof r=="string"&&(r=r.split(" "),r=a[n]=r),s.remove(...r)),i===null||o&&i==="ltr"?e.removeAttribute("dir"):(l!==void 0&&(typeof l=="string"&&(n=l.split(" "),l=a[i]=n),l!==void 0&&s.add(...l)),e.dir=i),Q_||(t.getWritable().__dir=i)}yv=i,e.__lexicalDirTextContent=Dr,e.__lexicalDir=i}}function _v(t,e){let n=[];for(t=t.__first;t!==null;){let i=e.get(t);i===void 0&&Le(101),n.push(t),t=i.__next}return n}function Fp(t,e){var n=bc.get(t),i=ql.get(t);n!==void 0&&i!==void 0||Le(61);var r=X9||Z_.has(t)||U_.has(t);let o=pv(br,t);if(n===i&&!r)return xe(n)?(i=o.__lexicalTextContent,i!==void 0&&(_i+=i,Qa+=i),i=o.__lexicalDirTextContent,i!==void 0&&(Dr+=i)):(i=n.getTextContent(),qe(n)&&!n.isDirectionless()&&(Dr+=i),Qa+=i,_i+=i),o;if(n!==i&&r&&j_(jp,Rp,kv,i,"updated"),i.updateDOM(n,o,Zl))return i=xv(t,null,null),e===null&&Le(62),e.replaceChild(i,o),wv(t,null),i;if(xe(n)&&xe(i)){if(t=i.__indent,t!==n.__indent&&G9(o,t),t=i.__format,t!==n.__format&&K9(o,t),r){t=Dr,Dr="",r=_i;var s=n.__size,a=i.__size;if(_i="",s===1&&a===1){var l=n.__first;if(e=i.__first,l===e)Fp(l,o);else{var u=G_(l);e=xv(e,null,null),o.replaceChild(e,u),wv(l,null)}}else{e=_v(n,bc);var f=_v(i,ql);if(s===0)a!==0&&V_(f,i,0,a-1,o,null);else if(a===0)s!==0&&(l=o.__lexicalLineBreak==null,Y_(e,0,s-1,l?null:o),l&&(o.textContent=""));else{var d=e;e=f,f=s-1,s=a-1;let g=o.firstChild,m=0;for(a=0;m<=f&&a<=s;){var h=d[m];let y=e[a];if(h===y)g=X_(Fp(y,o)),m++,a++;else{l===void 0&&(l=new Set(d)),u===void 0&&(u=new Set(e));let x=u.has(h),_=l.has(y);x?(_?(h=pv(br,y),h===g?g=X_(Fp(y,o)):(g!=null?o.insertBefore(h,g):o.appendChild(h),Fp(y,o)),m++):xv(y,o,g),a++):(g=X_(G_(h)),wv(h,o),m++)}}l=m>f,u=a>s,l&&!u?(l=e[s+1],l=l===void 0?null:br.getElementByKey(l),V_(e,i,a,s,o,l)):u&&!l&&Y_(d,m,f,o)}}hv(i)&&(_i+=`
|
||
|
||
`),o.__lexicalTextContent=_i,_i=r+_i,t$(i,o),Dr=t,So(i)||i.isInline()||e$(n,i,o)}hv(i)&&(_i+=`
|
||
|
||
`,Qa+=`
|
||
|
||
`)}else n=i.getTextContent(),qn(i)?(r=i.decorate(br,Zl),r!==null&&n$(t,r)):qe(i)&&!i.isDirectionless()&&(Dr+=n),_i+=n,Qa+=n;return!Q_&&So(i)&&i.__cachedText!==Qa&&(i.getWritable().__cachedText=Qa),o}function n$(t,e){let n=br._pendingDecorators,i=br._decorators;if(n===null){if(i[t]===e)return;n=B9(br)}n[t]=e}function X_(t){return t=t.nextSibling,t!==null&&t===br._blockCursorElement&&(t=t.nextSibling),t}function G_(t){let e=q_.get(t);return e===void 0&&Le(75,t),e}let Ua=Object.freeze({}),K_=[["keydown",vte],["pointerdown",fte],["compositionstart",gte],["compositionend",mte],["input",pte],["click",cte],["cut",Ua],["copy",Ua],["dragstart",Ua],["dragover",Ua],["dragend",Ua],["paste",Ua],["focus",Ua],["blur",Ua],["drop",Ua]];lv&&K_.push(["beforeinput",(t,e)=>hte(t,e)]);let zp=0,i$=0,r$=0,Kf=null,Bp=0,J_=!1,e3=!1,Wp=!1,Hp=!1,o$=[0,"",0,"root",0];function s$(t,e,n,i,r){let o=t.anchor,s=t.focus,a=o.getNode();var l=Tn();let u=Js(l._window),f=u!==null?u.anchorNode:null,d=o.key;l=l.getElementByKey(d);let h=n.length;return d!==s.key||!qe(a)||(!r&&(!lv||r$<i+50)||a.isDirty()&&2>h||H9(n))&&o.offset!==s.offset&&!a.isComposing()||P_(a)||a.isDirty()&&1<h||(r||!lv)&&l!==null&&!a.isComposing()&&f!==fv(l)||u!==null&&e!==null&&(!e.collapsed||e.startContainer!==u.anchorNode||e.startOffset!==u.anchorOffset)||a.getFormat()!==t.format||a.getStyle()!==t.style||lte(t,a)}function a$(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function l$(t,e,n){let{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}=t;J_&&(J_=!1,a$(i,r)&&a$(o,s))||Oo(e,()=>{if(!n)Ks(null);else if(Pp(e,i,o)){var a=on();if(kt(a)){var l=a.anchor,u=l.getNode();if(a.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(a.dirty=!0);var f=vv(e).event;f=f?f.timeStamp:performance.now();let[y,x,_,S,C]=o$;var d=_o();d=e.isComposing()===!1&&d.getTextContent()==="",f<C+200&&l.offset===_&&l.key===S?(a.format=y,a.style=x):l.type==="text"?(qe(u)||Le(141),a.format=u.getFormat(),a.style=u.getStyle()):l.type!=="element"||d||(a.format=0,a.style="")}else{var h=l.key,g=a.focus.key;l=a.getNodes(),u=l.length;var m=a.isBackward();f=m?s:r,d=m?r:s;let y=m?g:h;h=m?h:g,g=255,m=!1;for(let x=0;x<u;x++){let _=l[x],S=_.getTextContentSize();if(qe(_)&&S!==0&&!(x===0&&_.__key===y&&f===S||x===u-1&&_.__key===h&&d===0)&&(m=!0,g&=_.getFormat(),g===0))break}a.format=m?g:0}}Ie(e,sv,void 0)}})}function cte(t,e){Oo(e,()=>{let n=on();var i=Js(e._window);let r=id();if(i)if(kt(n)){let s=n.anchor;var o=s.getNode();s.type==="element"&&s.offset===0&&n.isCollapsed()&&!So(o)&&_o().getChildrenSize()===1&&o.getTopLevelElementOrThrow().isEmpty()&&r!==null&&n.is(r)?(i.removeAllRanges(),n.dirty=!0):t.detail!==3||n.isCollapsed()||(i=n.focus.getNode(),o!==i&&(xe(o)?o.select(0):o.getParentOrThrow().select(0)))}else t.pointerType==="touch"&&(o=i.anchorNode,o!==null&&(o=o.nodeType,o===1||o===3))&&(i=c3(r,i,e,t),Ks(i));Ie(e,c9,t)})}function fte(t,e){let n=t.target;t=t.pointerType,n instanceof Node&&t!=="touch"&&Oo(e,()=>{qn(Dp(n))||(e3=!0)})}function u$(t){return t.getTargetRanges?(t=t.getTargetRanges(),t.length===0?null:t[0]):null}function dte(t,e){return t!==e||xe(t)||xe(e)||!t.isToken()||!e.isToken()}function hte(t,e){let n=t.inputType,i=u$(t);n==="deleteCompositionText"||Hl&&Z9(e)||n!=="insertCompositionText"&&Oo(e,()=>{let r=on();if(n==="deleteContentBackward"){if(r===null){var o=id();if(!kt(o))return;Ks(o.clone())}if(kt(r)){Yee&&xi(r.anchor.key),i$===229&&t.timeStamp<zp+30&&e.isComposing()&&r.anchor.key===r.focus.key?(xi(null),zp=0,setTimeout(()=>{Oo(e,()=>{xi(null)})},30),kt(r)&&(o=r.anchor.getNode(),o.markDirty(),r.format=o.getFormat(),qe(o)||Le(142),r.style=o.getStyle()),1>=r.anchor.getNode().getTextContent().length&&(t.preventDefault(),Ie(e,qf,!0))):(xi(null),t.preventDefault(),Ie(e,qf,!0));return}}if(kt(r)){o=t.data,Kf!==null&&L_(!1,e,Kf),r.dirty&&Kf===null||!r.isCollapsed()||So(r.anchor.getNode())||i===null||r.applyDOMRange(i),Kf=null;var s=r.focus,a=r.anchor.getNode();if(s=s.getNode(),n==="insertText"||n==="insertTranspose")o===`
|
||
`?(t.preventDefault(),Ie(e,Mp,!1)):o===`
|
||
|
||
`?(t.preventDefault(),Ie(e,b_,void 0)):o==null&&t.dataTransfer?(o=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(o)):o!=null&&s$(r,i,o,t.timeStamp,!0)?(t.preventDefault(),Ie(e,Yf,o)):Kf=o,r$=t.timeStamp;else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Ie(e,Yf,t);break;case"insertFromComposition":xi(null),Ie(e,Yf,t);break;case"insertLineBreak":xi(null),Ie(e,Mp,!1);break;case"insertParagraph":xi(null),Wp&&!uv?(Wp=!1,Ie(e,Mp,!1)):Ie(e,b_,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Ie(e,k_,t);break;case"deleteByComposition":dte(a,s)&&Ie(e,y_,t);break;case"deleteByDrag":case"deleteByCut":Ie(e,y_,t);break;case"deleteContent":Ie(e,qf,!1);break;case"deleteWordBackward":Ie(e,Np,!0);break;case"deleteWordForward":Ie(e,Np,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Ie(e,Ap,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Ie(e,Ap,!1);break;case"formatStrikeThrough":Ie(e,Wl,"strikethrough");break;case"formatBold":Ie(e,Wl,"bold");break;case"formatItalic":Ie(e,Wl,"italic");break;case"formatUnderline":Ie(e,Wl,"underline");break;case"historyUndo":Ie(e,w_,void 0);break;case"historyRedo":Ie(e,x_,void 0)}}})}function pte(t,e){t.stopPropagation(),Oo(e,()=>{var n=on(),i=t.data,r=u$(t);if(i!=null&&kt(n)&&s$(n,r,i,t.timeStamp,!1)){Hp&&(t3(e,i),Hp=!1);var o=n.anchor,s=o.getNode();if(r=Js(e._window),r===null)return;let a=o.offset;(o=lv&&!n.isCollapsed()&&qe(s)&&r.anchorNode!==null)&&(s=s.getTextContent().slice(0,a)+i+s.getTextContent().slice(a+n.focus.offset),r=r.anchorNode,o=s===(r.nodeType===3?r.nodeValue:null)),o||Ie(e,Yf,i),i=i.length,Hl&&1<i&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=i),C_||uv||E_||!e.isComposing()||(zp=0,xi(null))}else L_(!1,e,i!==null?i:void 0),Hp&&(t3(e,i||void 0),Hp=!1);Ir(),n=Tn(),A9(n)}),Kf=null}function gte(t,e){Oo(e,()=>{let n=on();if(kt(n)&&!e.isComposing()){let i=n.anchor,r=n.anchor.getNode();xi(i.key),(t.timeStamp<zp+30||i.type==="element"||!n.isCollapsed()||r.getFormat()!==n.format||qe(r)&&r.getStyle()!==n.style)&&Ie(e,Yf,Xee)}})}function t3(t,e){var n=t._compositionKey;if(xi(null),n!==null&&e!=null){if(e===""){e=vr(n),t=fv(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&qe(e)&&R_(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
|
||
`&&(n=on(),kt(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),Ie(t,av,null);return}}L_(!0,t,e)}function mte(t,e){Hl?Hp=!0:Oo(e,()=>{t3(e,t.data)})}function vte(t,e){if(zp=t.timeStamp,i$=t.keyCode,!e.isComposing()){var{keyCode:n,shiftKey:i,ctrlKey:r,metaKey:o,altKey:s}=t;if(!Ie(e,f9,t)){if(n!==39||r||o||s)if(n!==39||s||i||!r&&!o)if(n!==37||r||o||s)if(n!==37||s||i||!r&&!o)if(n!==38||r||o)if(n!==40||r||o)if(n===13&&i)Wp=!0,Ie(e,av,t);else if(n===32)Ie(e,b9,t);else if(mr&&r&&n===79)t.preventDefault(),Wp=!0,Ie(e,Mp,!0);else if(n!==13||i){var a=mr?s||o?!1:n===8||n===72&&r:r||s||o?!1:n===8;a?n===8?Ie(e,k9,t):(t.preventDefault(),Ie(e,qf,!0)):n===27?Ie(e,y9,t):(a=mr?i||s||o?!1:n===46||n===68&&r:r||s||o?!1:n===46,a?n===46?Ie(e,w9,t):(t.preventDefault(),Ie(e,qf,!1)):n===8&&(mr?s:r)?(t.preventDefault(),Ie(e,Np,!0)):n===46&&(mr?s:r)?(t.preventDefault(),Ie(e,Np,!1)):mr&&o&&n===8?(t.preventDefault(),Ie(e,Ap,!0)):mr&&o&&n===46?(t.preventDefault(),Ie(e,Ap,!1)):n===66&&!s&&(mr?o:r)?(t.preventDefault(),Ie(e,Wl,"bold")):n===85&&!s&&(mr?o:r)?(t.preventDefault(),Ie(e,Wl,"underline")):n===73&&!s&&(mr?o:r)?(t.preventDefault(),Ie(e,Wl,"italic")):n!==9||s||r||o?n===90&&!i&&(mr?o:r)?(t.preventDefault(),Ie(e,w_,void 0)):(a=mr?n===90&&o&&i:n===89&&r||n===90&&r&&i,a?(t.preventDefault(),Ie(e,x_,void 0)):Qp(e._editorState._selection)?(a=i?!1:n===67?mr?o:r:!1,a?(t.preventDefault(),Ie(e,__,t)):(a=i?!1:n===88?mr?o:r:!1,a?(t.preventDefault(),Ie(e,O_,t)):n===65&&(mr?o:r)&&(t.preventDefault(),Ie(e,S_,t)))):!Hl&&n===65&&(mr?o:r)&&(t.preventDefault(),Ie(e,S_,t))):Ie(e,x9,t))}else Wp=!1,Ie(e,av,t);else Ie(e,v9,t);else Ie(e,m9,t);else Ie(e,g9,t);else Ie(e,p9,t);else Ie(e,h9,t);else Ie(e,d9,t);(r||i||s||o)&&Ie(e,$9,t)}}}function c$(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let Jf=new Map;function f$(t){var e=t.target;let n=Js(e==null?null:e.nodeType===9?e.defaultView:e.ownerDocument.defaultView);if(n!==null){var i=A_(n.anchorNode);if(i!==null){e3&&(e3=!1,Oo(i,()=>{var a=id(),l=n.anchorNode;l!==null&&(l=l.nodeType,l===1||l===3)&&(a=c3(a,n,i,t),Ks(a))})),e=I_(i),e=e[e.length-1];var r=e._key,o=Jf.get(r),s=o||e;s!==i&&l$(n,s,!1),l$(n,i,!0),i!==e?Jf.set(r,i):o&&Jf.delete(r)}}}function bte(t,e){Bp===0&&t.ownerDocument.addEventListener("selectionchange",f$),Bp++,t.__lexicalEditor=e;let n=c$(t);for(let i=0;i<K_.length;i++){let[r,o]=K_[i],s=typeof o=="function"?a=>{a._lexicalHandled!==!0&&(a._lexicalHandled=!0,e.isEditable()&&o(a,e))}:a=>{if(a._lexicalHandled!==!0&&(a._lexicalHandled=!0,e.isEditable()))switch(r){case"cut":return Ie(e,O_,a);case"copy":return Ie(e,__,a);case"paste":return Ie(e,k_,a);case"dragstart":return Ie(e,O9,a);case"dragover":return Ie(e,S9,a);case"dragend":return Ie(e,C9,a);case"focus":return Ie(e,E9,a);case"blur":return Ie(e,T9,a);case"drop":return Ie(e,_9,a)}};t.addEventListener(r,s),n.push(()=>{t.removeEventListener(r,s)})}}function n3(t,e,n){Ir();var i=t.__key;let r=t.getParent();if(r!==null){var o=on();if(kt(o)&&xe(t)){var{anchor:s,focus:a}=o,l=s.getNode(),u=a.getNode();mv(l,t)&&s.set(t.__key,0,"element"),mv(u,t)&&a.set(t.__key,0,"element")}if(l=o,u=!1,kt(l)&&e){o=l.anchor;let f=l.focus;o.key===i&&($v(o,t,r,t.getPreviousSibling(),t.getNextSibling()),u=!0),f.key===i&&($v(f,t,r,t.getPreviousSibling(),t.getNextSibling()),u=!0)}else Qp(l)&&e&&t.isSelected()&&t.selectPrevious();kt(l)&&e&&!u?(i=t.getIndexWithinParent(),vc(t),Tv(l,r,i,-1)):vc(t),n||Ul(r)||r.canBeEmpty()||!r.isEmpty()||n3(r,e),e&&So(r)&&r.isEmpty()&&r.selectEnd()}}class Ov{static getType(){Le(64,this.name)}static clone(){Le(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__next=this.__prev=this.__parent=null,F9(this,e)}getType(){return this.__type}isInline(){Le(137,this.constructor.name)}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=vr(e),e===null)break;e=e.__parent}return!1}isSelected(e){if(e=e||on(),e==null)return!1;let n=e.getNodes().some(i=>i.__key===this.__key);return qe(this)?n:kt(e)&&e.anchor.type==="element"&&e.focus.type==="element"&&e.anchor.key===e.focus.key&&e.anchor.offset===e.focus.offset?!1:n}getKey(){return this.__key}getIndexWithinParent(){var e=this.getParent();if(e===null)return-1;e=e.getFirstChild();let n=0;for(;e!==null;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){let e=this.getLatest().__parent;return e===null?null:vr(e)}getParentOrThrow(){let e=this.getParent();return e===null&&Le(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(Ul(n))return xe(e)||Le(138),e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&Le(67,this.__key),e}getParents(){let e=[],n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return e===null?null:vr(e)}getPreviousSiblings(){let e=[];var n=this.getParent();if(n===null)return e;for(n=n.getFirstChild();n!==null&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return e===null?null:vr(e)}getNextSiblings(){let e=[],n=this.getNextSibling();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getCommonAncestor(e){let n=this.getParents();var i=e.getParents();xe(this)&&n.unshift(this),xe(e)&&i.unshift(e),e=n.length;var r=i.length;if(e===0||r===0||n[e-1]!==i[r-1])return null;for(i=new Set(i),r=0;r<e;r++){let o=n[r];if(i.has(o))return o}return null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var n=this.getCommonAncestor(e);let i=this;for(;;){var r=i.getParentOrThrow();if(r===n){r=i.getIndexWithinParent();break}i=r}for(i=e;;){if(e=i.getParentOrThrow(),e===n){n=i.getIndexWithinParent();break}i=e}return r<n}isParentOf(e){let n=this.__key;if(n===e.__key)return!1;for(;e!==null;){if(e.__key===n)return!0;e=e.getParent()}return!1}getNodesBetween(e){let n=this.isBefore(e),i=[],r=new Set;for(var o=this;;){var s=o.__key;if(r.has(s)||(r.add(s),i.push(o)),o===e)break;if(s=xe(o)?n?o.getFirstChild():o.getLastChild():null,s!==null)o=s;else if(s=n?o.getNextSibling():o.getPreviousSibling(),s!==null)o=s;else{if(o=o.getParentOrThrow(),r.has(o.__key)||i.push(o),o===e)break;s=o;do s===null&&Le(68),o=n?s.getNextSibling():s.getPreviousSibling(),s=s.getParent(),s!==null&&(o!==null||r.has(s.__key)||i.push(s));while(o===null)}}return n||i.reverse(),i}isDirty(){let e=Tn()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=vr(this.__key);return e===null&&Le(113),e}getWritable(){Ir();var e=ea(),n=Tn();e=e._nodeMap;let i=this.__key,r=this.getLatest(),o=r.__parent;n=n._cloneNotNeeded;var s=on();return s!==null&&s.setCachedNodes(null),n.has(i)?(dv(r),r):(s=r.constructor.clone(r),s.__parent=o,s.__next=r.__next,s.__prev=r.__prev,xe(r)&&xe(s)?(s.__first=r.__first,s.__last=r.__last,s.__size=r.__size,s.__indent=r.__indent,s.__format=r.__format,s.__dir=r.__dir):qe(r)&&qe(s)&&(s.__format=r.__format,s.__style=r.__style,s.__mode=r.__mode,s.__detail=r.__detail),n.add(i),s.__key=i,dv(s),e.set(i,s),s)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){Le(70)}updateDOM(){Le(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){Le(72)}static importJSON(){Le(18,this.name)}static transform(){return null}remove(e){n3(this,!0,e)}replace(e,n){Ir();var i=on();i!==null&&(i=i.clone()),z_(this,e);let r=this.getLatest(),o=this.__key,s=e.__key,a=e.getWritable();e=this.getParentOrThrow().getWritable();let l=e.__size;vc(a);let u=r.getPreviousSibling(),f=r.getNextSibling(),d=r.__prev,h=r.__next,g=r.__parent;return n3(r,!1,!0),u===null?e.__first=s:u.getWritable().__next=s,a.__prev=d,f===null?e.__last=s:f.getWritable().__prev=s,a.__next=h,a.__parent=g,e.__size=l,n&&(xe(this)&&xe(a)||Le(139),this.getChildren().forEach(m=>{a.append(m)})),kt(i)&&(Ks(i),n=i.anchor,i=i.focus,n.key===o&&m$(n,a),i.key===o&&m$(i,a)),Ql()===o&&xi(s),a}insertAfter(e,n=!0){Ir(),z_(this,e);var i=this.getWritable();let r=e.getWritable();var o=r.getParent();let s=on();var a=!1,l=!1;if(o!==null){var u=e.getIndexWithinParent();vc(r),kt(s)&&(l=o.__key,a=s.anchor,o=s.focus,a=a.type==="element"&&a.key===l&&a.offset===u+1,l=o.type==="element"&&o.key===l&&o.offset===u+1)}o=this.getNextSibling(),u=this.getParentOrThrow().getWritable();let f=r.__key,d=i.__next;return o===null?u.__last=f:o.getWritable().__prev=f,u.__size++,i.__next=f,r.__next=d,r.__prev=i.__key,r.__parent=i.__parent,n&&kt(s)&&(n=this.getIndexWithinParent(),Tv(s,u,n+1),i=u.__key,a&&s.anchor.set(i,n+2,"element"),l&&s.focus.set(i,n+2,"element")),e}insertBefore(e,n=!0){Ir(),z_(this,e);var i=this.getWritable();let r=e.getWritable(),o=r.__key;vc(r);let s=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),l=i.__prev,u=this.getIndexWithinParent();return s===null?a.__first=o:s.getWritable().__next=o,a.__size++,i.__prev=o,r.__prev=l,r.__next=i.__key,r.__parent=i.__parent,i=on(),n&&kt(i)&&(n=this.getParentOrThrow(),Tv(i,n,u)),e}isParentRequired(){return!1}createParentElementNode(){return Za()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,n){Ir();let i=this.getPreviousSibling(),r=this.getParentOrThrow();return i===null?r.select(0,0):xe(i)?i.select():qe(i)?i.select(e,n):(e=i.getIndexWithinParent()+1,r.select(e,e))}selectNext(e,n){Ir();let i=this.getNextSibling(),r=this.getParentOrThrow();return i===null?r.select():xe(i)?i.select(0,0):qe(i)?i.select(e,n):(e=i.getIndexWithinParent(),r.select(e,e))}markDirty(){this.getWritable()}}function kte(t,e,n){n=n||e.getParentOrThrow().getLastChild();let i=e;for(e=[e];i!==n;)i.getNextSibling()||Le(140),i=i.getNextSibling(),e.push(i);for(let r of e)t=t.insertAfter(r)}class ed extends Ov{static getType(){return"linebreak"}static clone(e){return new ed(e.__key)}constructor(e){super(e)}getTextContent(){return`
|
||
`}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{e:{var n=e.parentElement;if(n!==null){let i=n.firstChild;if((i===e||i.nextSibling===e&&d$(i))&&(n=n.lastChild,n===e||n.previousSibling===e&&d$(n))){e=!0;break e}}e=!1}return e?null:{conversion:yte,priority:0}}}}static importJSON(){return td()}exportJSON(){return{type:"linebreak",version:1}}}function yte(){return{node:td()}}function td(){return Lp(new ed)}function yc(t){return t instanceof ed}function d$(t){return t.nodeType===3&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function i3(t,e){return e&16?"code":e&128?"mark":e&32?"sub":e&64?"sup":null}function r3(t,e){return e&1?"strong":e&2?"em":"span"}function o3(t,e,n,i,r){t=i.classList,i=Ip(r,"base"),i!==void 0&&t.add(...i),i=Ip(r,"underlineStrikethrough");let o=!1,s=e&8&&e&4;var a=n&8&&n&4;i!==void 0&&(a?(o=!0,s||t.add(...i)):s&&t.remove(...i));for(let l in Vf)a=Vf[l],i=Ip(r,l),i!==void 0&&(n&a?!o||l!=="underline"&&l!=="strikethrough"?(!(e&a)||s&&l==="underline"||l==="strikethrough")&&t.add(...i):e&a&&t.remove(...i):e&a&&t.remove(...i))}function s3(t,e,n){let i=e.firstChild;if(n=n.isComposing(),t+=n?cv:"",i==null)e.textContent=t;else if(e=i.nodeValue,e!==t)if(n||Hl){n=e.length;let r=t.length,o=0,s=0;for(;o<n&&o<r&&e[o]===t[o];)o++;for(;s+o<n&&s+o<r&&e[n-s-1]===t[r-s-1];)s++;t=[o,n-o-s,t.slice(o,r-s)];let[a,l,u]=t;l!==0&&i.deleteData(a,l),i.insertData(a,u)}else i.nodeValue=t}function Sv(t,e){return e=document.createElement(e),e.appendChild(t),e}class wc extends Ov{static getType(){return"text"}static clone(e){return new wc(e.__text,e.__key)}constructor(e,n){super(n),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return nte[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Ql()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=Vf[e],(this.getFormat()&e)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){let i=this.getLatest().__format;return D_(i,e,n)}canHaveFormat(){return!0}createDOM(e){var n=this.__format,i=i3(this,n);let r=r3(this,n),o=document.createElement(i===null?r:i),s=o;return this.hasFormat("code")&&o.setAttribute("spellcheck","false"),i!==null&&(s=document.createElement(r),o.appendChild(s)),i=s,s3(this.__text,i,this),e=e.theme.text,e!==void 0&&o3(r,0,n,i,e),n=this.__style,n!==""&&(o.style.cssText=n),o}updateDOM(e,n,i){let r=this.__text;var o=e.__format,s=this.__format,a=i3(this,o);let l=i3(this,s);var u=r3(this,o);let f=r3(this,s);return(a===null?u:a)!==(l===null?f:l)?!0:a===l&&u!==f?(o=n.firstChild,o==null&&Le(48),e=a=document.createElement(f),s3(r,e,this),i=i.theme.text,i!==void 0&&o3(f,0,s,e,i),n.replaceChild(a,o),!1):(u=n,l!==null&&a!==null&&(u=n.firstChild,u==null&&Le(49)),s3(r,u,this),i=i.theme.text,i!==void 0&&o!==s&&o3(f,o,s,u,i),s=this.__style,e.__style!==s&&(n.style.cssText=s),!1)}static importDOM(){return{"#text":()=>({conversion:_te,priority:0}),b:()=>({conversion:xte,priority:0}),code:()=>({conversion:Yl,priority:0}),em:()=>({conversion:Yl,priority:0}),i:()=>({conversion:Yl,priority:0}),s:()=>({conversion:Yl,priority:0}),span:()=>({conversion:wte,priority:0}),strong:()=>({conversion:Yl,priority:0}),sub:()=>({conversion:Yl,priority:0}),sup:()=>({conversion:Yl,priority:0}),u:()=>({conversion:Yl,priority:0})}}static importJSON(e){let n=Gi(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportDOM(e){return{element:e}=super.exportDOM(e),e!==null&&bv(e)||Le(132),e.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(e=Sv(e,"b")),this.hasFormat("italic")&&(e=Sv(e,"i")),this.hasFormat("strikethrough")&&(e=Sv(e,"s")),this.hasFormat("underline")&&(e=Sv(e,"u")),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let n=this.getWritable();return n.__format=typeof e=="string"?Vf[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?Jee[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){let n=this.getFormat();return e=D_(n,e,null),this.setFormat(e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){if(e=tte[e],this.__mode===e)return this;let n=this.getWritable();return n.__mode=e,n}setTextContent(e){if(this.__text===e)return this;let n=this.getWritable();return n.__text=e,n}select(e,n){Ir();let i=on();var r=this.getTextContent();let o=this.__key;if(typeof r=="string"?(r=r.length,e===void 0&&(e=r),n===void 0&&(n=r)):n=e=0,kt(i))r=Ql(),r!==i.anchor.key&&r!==i.focus.key||xi(o),i.setTextNodeRange(this,e,this,n);else return S$(o,e,o,n,"text","text");return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,n,i,r){let o=this.getWritable(),s=o.__text,a=i.length,l=e;0>l&&(l=a+l,0>l&&(l=0));let u=on();return r&&kt(u)&&(e+=a,u.setTextNodeRange(o,e,o,e)),n=s.slice(0,l)+i+s.slice(l+n),o.__text=n,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Ir();var n=this.getLatest(),i=n.getTextContent(),r=n.__key,o=Ql(),s=new Set(e);e=[];for(var a=i.length,l="",u=0;u<a;u++)l!==""&&s.has(u)&&(e.push(l),l=""),l+=i[u];if(l!==""&&e.push(l),s=e.length,s===0)return[];if(e[0]===i)return[n];var f=e[0];i=n.getParentOrThrow(),u=n.getFormat();let d=n.getStyle(),h=n.__detail;a=!1,n.isSegmented()?(l=Gi(f),l.__format=u,l.__style=d,l.__detail=h,a=!0):(l=n.getWritable(),l.__text=f),n=on(),l=[l],f=f.length;for(let y=1;y<s;y++){var g=e[y],m=g.length;g=Gi(g).getWritable(),g.__format=u,g.__style=d,g.__detail=h;let x=g.__key;if(m=f+m,kt(n)){let _=n.anchor,S=n.focus;_.key===r&&_.type==="text"&&_.offset>f&&_.offset<=m&&(_.key=x,_.offset-=f,n.dirty=!0),S.key===r&&S.type==="text"&&S.offset>f&&S.offset<=m&&(S.key=x,S.offset-=f,n.dirty=!0)}o===r&&xi(x),f=m,l.push(g)}return r=this.getPreviousSibling(),o=this.getNextSibling(),r!==null&&dv(r),o!==null&&dv(o),r=i.getWritable(),o=this.getIndexWithinParent(),a?(r.splice(o,0,l),this.remove()):r.splice(o,1,l),kt(n)&&Tv(n,i,o,s-1),l}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||Le(50);var i=this.__key;let r=e.__key,o=this.__text,s=o.length;Ql()===r&&xi(i);let a=on();if(kt(a)){let l=a.anchor,u=a.focus;l!==null&&l.key===r&&(E$(l,n,i,e,s),a.dirty=!0),u!==null&&u.key===r&&(E$(u,n,i,e,s),a.dirty=!0)}return i=e.__text,this.setTextContent(n?i+o:o+i),n=this.getWritable(),e.remove(),n}isTextEntity(){return!1}}function wte(t){let e=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",i=t.style.fontStyle==="italic",r=t.style.textDecoration==="underline",o=t.style.verticalAlign;return{forChild:s=>(qe(s)&&(e&&s.toggleFormat("bold"),n&&s.toggleFormat("strikethrough"),i&&s.toggleFormat("italic"),r&&s.toggleFormat("underline"),o==="sub"&&s.toggleFormat("subscript"),o==="super"&&s.toggleFormat("superscript")),s),node:null}}function xte(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(qe(n)&&!e&&n.toggleFormat("bold"),n),node:null}}let h$=new WeakMap;function _te(t){t.parentElement===null&&Le(129);for(var e=t.textContent||"",n,i=t.parentNode,r=[t];i!==null&&(n=h$.get(i))===void 0&&!(i.nodeName==="PRE"||i.nodeType===1&&i.style!==void 0&&i.style.whiteSpace!==void 0&&i.style.whiteSpace.startsWith("pre"));)r.push(i),i=i.parentNode;for(n=n===void 0?i:n,i=0;i<r.length;i++)h$.set(r[i],n);if(n!==null){for(e=e.split(/(\r?\n|\t)/),t=[],r=e.length,n=0;n<r;n++)i=e[n],i===`
|
||
`||i===`\r
|
||
`?t.push(td()):i===" "?t.push(Ev()):i!==""&&t.push(Gi(i));return{node:t}}if(e=e.replace(/\r/g,"").replace(/[ \t\n]+/g," "),e==="")return{node:null};if(e[0]===" "){for(r=t,n=!0;r!==null&&(r=p$(r,!1))!==null;)if(i=r.textContent||"",0<i.length){/[ \t\n]$/.test(i)&&(e=e.slice(1)),n=!1;break}n&&(e=e.slice(1))}if(e[e.length-1]===" "){for(r=!0;t!==null&&(t=p$(t,!0))!==null;)if(0<(t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length){r=!1;break}r&&(e=e.slice(0,e.length-1))}return e===""?{node:null}:{node:Gi(e)}}let Ote=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/,"i");function p$(t,e){for(;;){for(var n=void 0;(n=e?t.nextSibling:t.previousSibling)===null;)if(t=t.parentElement,t===null)return null;if(t=n,t.nodeType===1&&(n=t.style.display,n===""&&t.nodeName.match(Ote)===null||n!==""&&!n.startsWith("inline")))return null;for(;(n=e?t.firstChild:t.lastChild)!==null;)t=n;if(t.nodeType===3)return t;if(t.nodeName==="BR")return null}}let Ste={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Yl(t){let e=Ste[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(qe(n)&&!n.hasFormat(e)&&n.toggleFormat(e),n),node:null}}function Gi(t=""){return Lp(new wc(t))}function qe(t){return t instanceof wc}let Cv=class _ee extends wc{static getType(){return"tab"}static clone(e){let n=new _ee(e.__key);return n.__text=e.__text,n.__format=e.__format,n.__style=e.__style,n}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let n=Ev();return n.setFormat(e.format),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(){Le(126)}setDetail(){Le(127)}setMode(){Le(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}};function Ev(){return Lp(new Cv)}function g$(t){return t instanceof Cv}class Cte{constructor(e,n,i){this._selection=null,this.key=e,this.offset=n,this.type=i}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),i=e.getNode(),r=this.offset;if(e=e.offset,xe(n)){var o=n.getDescendantByIndex(r);n=o??n}return xe(i)&&(o=i.getDescendantByIndex(e),i=o??i),n===i?r<e:n.isBefore(i)}getNode(){let e=vr(this.key);return e===null&&Le(20),e}set(e,n,i){let r=this._selection,o=this.key;this.key=e,this.offset=n,this.type=i,rd()||(Ql()===o&&xi(e),r!==null&&(r.setCachedNodes(null),r.dirty=!0))}}function ws(t,e,n){return new Cte(t,e,n)}function a3(t,e){let n=e.__key,i=t.offset,r="element";if(qe(e))r="text",e=e.getTextContentSize(),i>e&&(i=e);else if(!xe(e)){var o=e.getNextSibling();qe(o)?(n=o.__key,i=0,r="text"):(o=e.getParent())&&(n=o.__key,i=e.getIndexWithinParent()+1)}t.set(n,i,r)}function m$(t,e){if(xe(e)){let n=e.getLastDescendant();xe(n)||qe(n)?a3(t,n):a3(t,e)}else a3(t,e)}function v$(t,e,n,i){let r=t.getNode(),o=r.getChildAtIndex(t.offset),s=Gi(),a=So(r)?Za().append(s):s;s.setFormat(n),s.setStyle(i),o===null?r.append(a):o.insertBefore(a),t.is(e)&&e.set(s.__key,0,"text"),t.set(s.__key,0,"text")}function Vl(t,e,n,i){t.key=e,t.offset=n,t.type=i}let b$=class Oee{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Qp(e))return!1;let n=this._nodes,i=e._nodes;return n.size===i.size&&Array.from(n).every(r=>i.has(r))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Oee(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e){let n=this.getNodes(),i=n.length;var r=n[i-1];if(qe(r))r=r.select();else{let o=r.getIndexWithinParent()+1;r=r.getParentOrThrow().select(o,o)}for(r.insertNodes(e),e=0;e<i;e++)n[e].remove()}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this._nodes;e=[];for(let i of n)n=vr(i),n!==null&&e.push(n);return rd()||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let i=0;i<e.length;i++)n+=e[i].getTextContent();return n}};function kt(t){return t instanceof nd}let nd=class See{constructor(e,n,i,r){this.anchor=e,this.focus=n,e._selection=this,n._selection=this,this._cachedNodes=null,this.format=i,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return kt(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style:!1}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(e!==null)return e;e=this.anchor;var n=this.focus,i=e.isBefore(n),r=i?e:n;i=i?n:e,e=r.getNode(),n=i.getNode();let o=r.offset;return r=i.offset,xe(e)&&(i=e.getDescendantByIndex(o),e=i??e),xe(n)&&(i=n.getDescendantByIndex(r),i!==null&&i!==e&&n.getChildAtIndex(r)===i&&(i=i.getPreviousSibling()),n=i??n),e=e.is(n)?xe(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(n),rd()||(this._cachedNodes=e),e}setTextNodeRange(e,n,i,r){Vl(this.anchor,e.__key,n,"text"),Vl(this.focus,i.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(e.length===0)return"";let n=e[0],i=e[e.length-1],r=this.anchor,o=this.focus,s=r.isBefore(o),[a,l]=l3(this),u="",f=!0;for(let d=0;d<e.length;d++){let h=e[d];if(xe(h)&&!h.isInline())f||(u+=`
|
||
`),f=!h.isEmpty();else if(f=!1,qe(h)){let g=h.getTextContent();h===n?h===i?(r.type!=="element"||o.type!=="element"||o.offset===r.offset)&&(g=a<l?g.slice(a,l):g.slice(l,a)):g=s?g.slice(a):g.slice(l):h===i&&(g=s?g.slice(0,l):g.slice(0,a)),u+=g}else!qn(h)&&!yc(h)||h===i&&this.isCollapsed()||(u+=h.getTextContent())}return u}applyDOMRange(e){let n=Tn(),i=n.getEditorState()._selection;if(e=O$(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,i),e!==null){var[r,o]=e;Vl(this.anchor,r.key,r.offset,r.type),Vl(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new See(ws(e.key,e.offset,e.type),ws(n.key,n.offset,n.type),this.format,this.style)}toggleFormat(e){this.format=D_(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){return(this.format&Vf[e])!==0}insertRawText(e){e=e.split(/(\r?\n|\t)/);let n=[],i=e.length;for(let r=0;r<i;r++){let o=e[r];o===`
|
||
`||o===`\r
|
||
`?n.push(td()):o===" "?n.push(Ev()):n.push(Gi(o))}this.insertNodes(n)}insertText(e){var n=this.anchor,i=this.focus,r=this.isCollapsed()||n.isBefore(i),o=this.format,s=this.style;r&&n.type==="element"?v$(n,i,o,s):r||i.type!=="element"||v$(i,n,o,s);var a=this.getNodes(),l=a.length,u=r?i:n;i=(r?n:i).offset;var f=u.offset;n=a[0],qe(n)||Le(26),r=n.getTextContent().length;var d=n.getParentOrThrow(),h=a[l-1];if(this.isCollapsed()&&i===r&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!d.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if(qe(g)&&g.canInsertTextBefore()&&!P_(g)||(g=Gi(),g.setFormat(o),d.canInsertTextAfter()?n.insertAfter(g):d.insertAfter(g)),g.select(0,0),n=g,e!==""){this.insertText(e);return}}else if(this.isCollapsed()&&i===0&&(n.isSegmented()||n.isToken()||!n.canInsertTextBefore()||!d.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!qe(g)||P_(g))&&(g=Gi(),g.setFormat(o),d.canInsertTextBefore()?n.insertBefore(g):d.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&i!==r)d=Gi(n.getTextContent()),d.setFormat(o),n.replace(d),n=d;else if(!(this.isCollapsed()||e===""||(g=h.getParent(),d.canInsertTextBefore()&&d.canInsertTextAfter()&&(!xe(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),_$(this.anchor,this.focus,null),this.insertText(e);return}if(l===1)if(n.isToken())e=Gi(e),e.select(),n.replace(e);else{if(a=n.getFormat(),l=n.getStyle(),i===f&&(a!==o||l!==s))if(n.getTextContent()==="")n.setFormat(o),n.setStyle(s);else{a=Gi(e),a.setFormat(o),a.setStyle(s),a.select(),i===0?n.insertBefore(a,!1):([l]=n.splitText(i),l.insertAfter(a,!1)),a.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);return}else if(g$(n)){e=Gi(e),e.setFormat(o),e.setStyle(s),e.select(),n.replace(e);return}n=n.spliceText(i,f-i,e,!0),n.getTextContent()===""?n.remove():this.anchor.type==="text"&&(n.isComposing()?this.anchor.offset-=e.length:(this.format=a,this.style=l))}else{if(o=new Set([...n.getParentKeys(),...h.getParentKeys()]),g=xe(n)?n:n.getParentOrThrow(),s=xe(h)?h:h.getParentOrThrow(),d=h,!g.is(s)&&s.isInline())do d=s,s=s.getParentOrThrow();while(s.isInline());if(u.type==="text"&&(f!==0||h.getTextContent()==="")||u.type==="element"&&h.getIndexWithinParent()<f)if(qe(h)&&!h.isToken()&&f!==h.getTextContentSize()){if(h.isSegmented()){var m=Gi(h.getTextContent());h.replace(m),h=m}So(u.getNode())||u.type!=="text"||(h=h.spliceText(0,f,"")),o.add(h.__key)}else u=h.getParentOrThrow(),u.canBeEmpty()||u.getChildrenSize()!==1?h.remove():u.remove();else o.add(h.__key);for(u=s.getChildren(),f=new Set(a),h=g.is(s),g=g.isInline()&&n.getNextSibling()===null?g:n,m=u.length-1;0<=m;m--){let y=u[m];if(y.is(n)||xe(y)&&y.isParentOf(n))break;y.isAttached()&&(!f.has(y)||y.is(d)?h||g.insertAfter(y,!1):y.remove())}if(!h)for(u=s,s=null;u!==null;)f=u.getChildren(),h=f.length,(h===0||f[h-1].is(s))&&(o.delete(u.__key),s=u),u=u.getParent();for(n.isToken()?i===r?n.select():(e=Gi(e),e.select(),n.replace(e)):(n=n.spliceText(i,r-i,e,!0),n.getTextContent()===""?n.remove():n.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length)),e=1;e<l;e++)n=a[e],o.has(n.__key)||n.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),xi(null);else{var n=this.getNodes(),i=[];for(var r of n)qe(r)&&i.push(r);var o=i.length;if(o===0)this.toggleFormat(e),xi(null);else{r=this.anchor;var s=this.focus,a=this.isBackward();n=a?s:r,r=a?r:s;var l=0,u=i[0];if(s=n.type==="element"?0:n.offset,n.type==="text"&&s===u.getTextContentSize()&&(l=1,u=i[1],s=0),u!=null){a=u.getFormatFlags(e,null);var f=o-1,d=i[f];if(o=r.type==="text"?r.offset:d.getTextContentSize(),u.is(d))s!==o&&(s===0&&o===u.getTextContentSize()?u.setFormat(a):(e=u.splitText(s,o),e=s===0?e[0]:e[1],e.setFormat(a),n.type==="text"&&n.set(e.__key,0,"text"),r.type==="text"&&r.set(e.__key,o-s,"text")),this.format=a);else{s!==0&&([,u]=u.splitText(s),s=0),u.setFormat(a);var h=d.getFormatFlags(e,a);for(0<o&&(o!==d.getTextContentSize()&&([d]=d.splitText(o)),d.setFormat(h)),l+=1;l<f;l++){let g=i[l];if(!g.isToken()){let m=g.getFormatFlags(e,h);g.setFormat(m)}}n.type==="text"&&n.set(u.__key,s,"text"),r.type==="text"&&r.set(d.__key,o,"text"),this.format=a|h}}}}}insertNodes(e){if(e.length!==0){if(this.anchor.key==="root"){this.insertParagraph();var n=on();return kt(n)||Le(134),n.insertNodes(e)}n=this.isBackward()?this.focus:this.anchor;var i=H_(n.getNode(),Gf);if(n=e[e.length-1],"__language"in i&&xe(i))if("__language"in e[0])this.insertText(e[0].getTextContent());else{var r=f3(this);i.splice(r,0,e),n.selectEnd()}else if(e.some(a=>(xe(a)||qn(a))&&!a.isInline())){n=Mte(e),e=n.getLastDescendant();var o=n.getChildren();n=xe(i)&&i.isEmpty()?null:this.insertParagraph(),r=o[o.length-1];var s=o[0];(a=>xe(a)&&Gf(a)&&!a.isEmpty()&&xe(i)&&(!i.isEmpty()||"__value"in i&&"__checked"in i))(s)&&(xe(i)||Le(135),i.append(...s.getChildren()),s=o[1]),s&&kte(i,s),o=H_(e,Gf),n&&xe(o)&&("__value"in n&&"__checked"in n||Gf(r))&&(o.append(...n.getChildren()),n.remove()),xe(i)&&i.isEmpty()&&i.remove(),e.selectEnd(),e=xe(i)?i.getLastChild():null,yc(e)&&o!==i&&e.remove()}else xe(i)||Le(135),r=f3(this),i.splice(r,0,e),n.selectEnd()}}insertParagraph(){if(this.anchor.key==="root"){var e=Za();return _o().splice(this.anchor.offset,0,[e]),e.select(),e}var n=f3(this);return e=H_(this.anchor.getNode(),Gf),xe(e)||Le(136),n=(n=e.getChildAtIndex(n))?[n,...n.getNextSiblings()]:[],(e=e.insertNewAfter(this,!1))?(e.append(...n),e.selectStart(),e):null}insertLineBreak(e){var n=td();this.insertNodes([n]),e&&(e=n.getParentOrThrow(),n=n.getIndexWithinParent(),e.select(n,n))}extract(){var e=this.getNodes(),n=e.length,i=n-1,r=this.anchor;let o=this.focus;var s=e[0];let a=e[i],[l,u]=l3(this);return n===0?[]:n===1?qe(s)&&!this.isCollapsed()?(e=l>u?u:l,i=s.splitText(e,l>u?l:u),e=e===0?i[0]:i[1],e!=null?[e]:[]):[s]:(n=r.isBefore(o),qe(s)&&(r=n?l:u,r===s.getTextContentSize()?e.shift():r!==0&&([,s]=s.splitText(r),e[0]=s)),qe(a)&&(s=a.getTextContent().length,n=n?u:l,n===0?e.pop():n!==s&&([a]=a.splitText(n),e[i]=a)),e)}modify(e,n,i){var r=this.focus,o=this.anchor,s=e==="move",a=F_(r,n);if(qn(a)&&!a.isIsolated())s&&a.isKeyboardSelectable()?(n=u3(),n.add(a.__key),Ks(n)):(e=n?a.getPreviousSibling():a.getNextSibling(),qe(e)?(a=e.__key,n=n?e.getTextContent().length:0,r.set(a,n,"text"),s&&o.set(a,n,"text")):(i=a.getParentOrThrow(),xe(e)?(i=e.__key,a=n?e.getChildrenSize():0):(a=a.getIndexWithinParent(),i=i.__key,n||a++),r.set(i,a,"element"),s&&o.set(i,a,"element")));else if(o=Tn(),r=Js(o._window)){var l=o._blockCursorElement,u=o._rootElement;if(u===null||l===null||!xe(a)||a.isInline()||a.canBeEmpty()||W_(l,o,u),r.modify(e,n?"backward":"forward",i),0<r.rangeCount&&(a=r.getRangeAt(0),o=this.anchor.getNode(),o=So(o)?o:q9(o),this.applyDOMRange(a),this.dirty=!0,!s)){for(s=this.getNodes(),e=[],i=!1,l=0;l<s.length;l++)u=s[l],mv(u,o)?e.push(u):i=!0;i&&0<e.length&&(n?(n=e[0],xe(n)?n.selectStart():n.getParentOrThrow().selectStart()):(n=e[e.length-1],xe(n)?n.selectEnd():n.getParentOrThrow().selectEnd())),(r.anchorNode!==a.startContainer||r.anchorOffset!==a.startOffset)&&(n=this.focus,s=this.anchor,r=s.key,a=s.offset,o=s.type,Vl(s,n.key,n.offset,n.type),Vl(n,r,a,o),this._cachedNodes=null)}}}deleteCharacter(e){let n=this.isCollapsed();if(this.isCollapsed()){var i=this.anchor,r=this.focus,o=i.getNode();if(!e&&(i.type==="element"&&xe(o)&&i.offset===o.getChildrenSize()||i.type==="text"&&i.offset===o.getTextContentSize())){var s=o.getParent();if(s=o.getNextSibling()||(s===null?null:s.getNextSibling()),xe(s)&&s.isShadowRoot())return}if(s=F_(r,e),qn(s)&&!s.isIsolated()){s.isKeyboardSelectable()&&xe(o)&&o.getChildrenSize()===0?(o.remove(),e=u3(),e.add(s.__key),Ks(e)):(s.remove(),Tn().dispatchCommand(sv,void 0));return}if(!e&&xe(s)&&xe(o)&&o.isEmpty()){o.remove(),s.selectStart();return}if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&i.offset===0&&(i.type==="element"?i.getNode():i.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(s=r.type==="text"?r.getNode():null,o=i.type==="text"?i.getNode():null,s!==null&&s.isSegmented()){if(i=r.offset,r=s.getTextContentSize(),s.is(o)||e&&i!==r||!e&&i!==0){y$(s,e,i);return}}else if(o!==null&&o.isSegmented()&&(i=i.offset,r=o.getTextContentSize(),o.is(s)||e&&i!==0||!e&&i!==r)){y$(o,e,i);return}if(o=this.anchor,s=this.focus,i=o.getNode(),r=s.getNode(),i===r&&o.type==="text"&&s.type==="text"){var a=o.offset,l=s.offset;let u=a<l;r=u?a:l,l=u?l:a,a=l-1,r!==a&&(i=i.getTextContent().slice(r,l),H9(i)||(e?s.offset=a:o.offset=a))}}}this.removeText(),e&&!n&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0&&(e=this.anchor.getNode(),e.isEmpty()&&So(e.getParent())&&e.getIndexWithinParent()===0&&e.collapseAtStart(this))}deleteLine(e){this.isCollapsed()&&(this.anchor.type==="text"&&this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}};function Qp(t){return t instanceof b$}function k$(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function l3(t){if(t=t.getStartEndPoints(),t===null)return[0,0];let[e,n]=t;return e.type==="element"&&n.type==="element"&&e.key===n.key&&e.offset===n.offset?[0,0]:[k$(e),k$(n)]}function y$(t,e,n){let i=t.getTextContent().split(/(?=\s)/g),r=i.length,o=0,s=0;for(let a=0;a<r;a++){let l=i[a],u=a===r-1;if(s=o,o+=l.length,e&&o===n||o>n||u){i.splice(a,1),u&&(s=void 0);break}}e=i.join("").trim(),e===""?t.remove():(t.setTextContent(e),t.select(s,s))}function w$(t,e,n,i){var r=e;if(t.nodeType===1){let a=!1;var o=t.childNodes,s=o.length;r===s&&(a=!0,r=s-1);let l=o[r];if(s=!1,l===i._blockCursorElement?(l=o[r+1],s=!0):i._blockCursorElement!==null&&r--,i=Xf(l),qe(i))r=a?i.getTextContentSize():0;else{if(o=Xf(t),o===null)return null;if(xe(o)?(t=o.getChildAtIndex(r),(e=xe(t))&&(e=t.getParent(),e=n===null||e===null||!e.canBeEmpty()||e!==n.getNode()),e&&(n=a?t.getLastDescendant():t.getFirstDescendant(),n===null?(o=t,r=0):(t=n,o=xe(t)?t:t.getParentOrThrow())),qe(t)?(i=t,o=null,r=a?t.getTextContentSize():0):t!==o&&a&&!s&&r++):(r=o.getIndexWithinParent(),r=e===0&&qn(o)&&Xf(t)===o?r:r+1,o=o.getParentOrThrow()),xe(o))return ws(o.__key,r,"element")}}else i=Xf(t);return qe(i)?ws(i.__key,r,"text"):null}function x$(t,e,n){var i=t.offset,r=t.getNode();i===0?(i=r.getPreviousSibling(),r=r.getParent(),e?(n||!e)&&i===null&&xe(r)&&r.isInline()&&(e=r.getPreviousSibling(),qe(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):xe(i)&&!n&&i.isInline()?(t.key=i.__key,t.offset=i.getChildrenSize(),t.type="element"):qe(i)&&(t.key=i.__key,t.offset=i.getTextContent().length)):i===r.getTextContent().length&&(i=r.getNextSibling(),r=r.getParent(),e&&xe(i)&&i.isInline()?(t.key=i.__key,t.offset=0,t.type="element"):(n||e)&&i===null&&xe(r)&&r.isInline()&&!r.canInsertTextAfter()&&(e=r.getNextSibling(),qe(e)&&(t.key=e.__key,t.offset=0)))}function _$(t,e,n){if(t.type==="text"&&e.type==="text"){var i=t.isBefore(e);let r=t.is(e);x$(t,i,r),x$(e,!i,r),r&&(e.key=t.key,e.offset=t.offset,e.type=t.type),i=Tn(),i.isComposing()&&i._compositionKey!==t.key&&kt(n)&&(i=n.anchor,n=n.focus,Vl(t,i.key,i.offset,i.type),Vl(e,n.key,n.offset,n.type))}}function O$(t,e,n,i,r,o){return t===null||n===null||!Pp(r,t,n)||(e=w$(t,e,kt(o)?o.anchor:null,r),e===null)||(i=w$(n,i,kt(o)?o.focus:null,r),i===null||e.type==="element"&&i.type==="element"&&(t=Xf(t),n=Xf(n),qn(t)&&qn(n)))?null:(_$(e,i,o),[e,i])}function S$(t,e,n,i,r,o){let s=ea();return t=new nd(ws(t,e,r),ws(n,i,o),0,""),t.dirty=!0,s._selection=t}function u3(){return new b$(new Set)}function Ete(t){let e=t.getEditorState()._selection,n=Js(t._window);return kt(e)||e==null?c3(e,n,t,null):e.clone()}function c3(t,e,n,i){var r=n._window;if(r===null)return null;var o=(r=i||r.event)?r.type:void 0;i=o==="selectionchange",r=!T_&&(i||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&r&&r.detail===3||o==="drop"||o===void 0);let s;if(!kt(t)||r){if(e===null)return null;if(r=e.anchorNode,o=e.focusNode,s=e.anchorOffset,e=e.focusOffset,i&&kt(t)&&!Pp(n,r,o))return t.clone()}else return t.clone();if(n=O$(r,s,o,e,n,t),n===null)return null;let[a,l]=n;return new nd(a,l,kt(t)?t.format:0,kt(t)?t.style:"")}function on(){return ea()._selection}function id(){return Tn()._editorState._selection}function Tv(t,e,n,i=1){var r=t.anchor,o=t.focus,s=r.getNode(),a=o.getNode();if(e.is(s)||e.is(a)){if(s=e.__key,t.isCollapsed())e=r.offset,(n<=e&&0<i||n<e&&0>i)&&(n=Math.max(0,e+i),r.set(s,n,"element"),o.set(s,n,"element"),C$(t));else{let u=t.isBackward();a=u?o:r;var l=a.getNode();r=u?r:o,o=r.getNode(),e.is(l)&&(l=a.offset,(n<=l&&0<i||n<l&&0>i)&&a.set(s,Math.max(0,l+i),"element")),e.is(o)&&(e=r.offset,(n<=e&&0<i||n<e&&0>i)&&r.set(s,Math.max(0,e+i),"element"))}C$(t)}}function C$(t){var e=t.anchor,n=e.offset;let i=t.focus;var r=i.offset,o=e.getNode(),s=i.getNode();if(t.isCollapsed())xe(o)&&(s=o.getChildrenSize(),s=(r=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),qe(s)&&(n=0,r&&(n=s.getTextContentSize()),e.set(s.__key,n,"text"),i.set(s.__key,n,"text")));else{if(xe(o)){let a=o.getChildrenSize();n=(t=n>=a)?o.getChildAtIndex(a-1):o.getChildAtIndex(n),qe(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}xe(s)&&(n=s.getChildrenSize(),r=(e=r>=n)?s.getChildAtIndex(n-1):s.getChildAtIndex(r),qe(r)&&(s=0,e&&(s=r.getTextContentSize()),i.set(r.__key,s,"text")))}}function Tte(t,e){if(e=e.getEditorState()._selection,t=t._selection,kt(t)){var n=t.anchor;let i=t.focus,r;n.type==="text"&&(r=n.getNode(),r.selectionTransform(e,t)),i.type==="text"&&(n=i.getNode(),r!==n&&n.selectionTransform(e,t))}}function $v(t,e,n,i,r){let o=null,s=0,a=null;i!==null?(o=i.__key,qe(i)?(s=i.getTextContentSize(),a="text"):xe(i)&&(s=i.getChildrenSize(),a="element")):r!==null&&(o=r.__key,qe(r)?a="text":xe(r)&&(a="element")),o!==null&&a!==null?t.set(o,s,a):(s=e.getIndexWithinParent(),s===-1&&(s=n.getChildrenSize()),t.set(n.__key,s,"element"))}function E$(t,e,n,i,r){t.type==="text"?(t.key=n,e||(t.offset+=r)):t.offset>i.getIndexWithinParent()&&--t.offset}function f3(t){t.isCollapsed()||t.removeText();var e=t.anchor;for(t=e.getNode(),e=e.offset;!Gf(t);)[t,e]=$te(t,e);return e}function $te(t,e){var n=t.getParent();if(!n)return n=Za(),_o().append(n),n.select(),[_o(),0];if(qe(t)){var i=t.splitText(e);return i.length===0?[n,t.getIndexWithinParent()]:(t=e===0?0:1,t=i[0].getIndexWithinParent()+t,[n,t])}return!xe(t)||e===0?[n,t.getIndexWithinParent()]:((i=t.getChildAtIndex(e))&&(e=new nd(ws(t.__key,e,"element"),ws(t.__key,e,"element"),0,""),(e=t.insertNewAfter(e))&&e.append(i,...i.getNextSiblings())),[n,t.getIndexWithinParent()+1])}function Mte(t){let e=Za(),n=null;for(let i=0;i<t.length;i++){let r=t[i],o=yc(r);if(o||qn(r)&&r.isInline()||xe(r)&&r.isInline()||qe(r)||r.isParentRequired()){if(n===null&&(n=r.createParentElementNode(),e.append(n),o))continue;n!==null&&n.append(r)}else e.append(r),n=null}return e}let Li=null,Ri=null,so=!1,d3=!1,Up=0,T$={characterData:!0,childList:!0,subtree:!0};function rd(){return so||Li!==null&&Li._readOnly}function Ir(){so&&Le(13)}function ea(){return Li===null&&Le(15),Li}function Tn(){return Ri===null&&Le(16),Ri}function $$(t,e,n){var i=e.__type;let r=t._nodes.get(i);for(r===void 0&&Le(30,i),t=n.get(i),t===void 0&&(t=Array.from(r.transforms),n.set(i,t)),n=t.length,i=0;i<n&&(t[i](e),e.isAttached());i++);}function Nte(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),qe(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&L9(e)}function Ate(t,e){let n=e._dirtyLeaves,i=e._dirtyElements;t=t._nodeMap;let r=Ql(),o=new Map;var s=n;let a=s.size;for(var l=i,u=l.size;0<a||0<u;){if(0<a){e._dirtyLeaves=new Set;for(let f of s)s=t.get(f),qe(s)&&s.isAttached()&&s.isSimpleText()&&!s.isUnmergeable()&&L9(s),s!==void 0&&s!==void 0&&s.__key!==r&&s.isAttached()&&$$(e,s,o),n.add(f);if(s=e._dirtyLeaves,a=s.size,0<a){Up++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let f of l)l=f[0],u=f[1],(l==="root"||u)&&(s=t.get(l),s!==void 0&&s!==void 0&&s.__key!==r&&s.isAttached()&&$$(e,s,o),i.set(l,u));s=e._dirtyLeaves,a=s.size,l=e._dirtyElements,u=l.size,Up++}e._dirtyLeaves=n,e._dirtyElements=i}function h3(t,e){var n=t.type,i=e.get(n);if(i===void 0&&Le(17,n),n=i.klass,t.type!==n.getType()&&Le(18,n.name),n=n.importJSON(t),t=t.children,xe(n)&&Array.isArray(t))for(i=0;i<t.length;i++){let r=h3(t[i],e);n.append(r)}return n}function M$(t,e){let n=Li,i=so,r=Ri;Li=t,so=!0,Ri=null;try{return e()}finally{Li=n,so=i,Ri=r}}function xc(t,e){let n=t._pendingEditorState,i=t._rootElement,r=t._headless||i===null;if(n!==null){var o=t._editorState,s=o._selection,a=n._selection,l=t._dirtyType!==0,u=Li,f=so,d=Ri,h=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=n,!r&&l&&g!==null){Ri=t,Li=n,so=!1,t._updating=!0;try{let Ue=t._dirtyType,St=t._dirtyElements,Lt=t._dirtyLeaves;g.disconnect();var y=Ue,x=St,_=Lt;Dr=Qa=_i="",X9=y===2,yv=null,br=t,Zl=t._config,Rp=t._nodes,kv=br._listeners.mutation,U_=x,Z_=_,bc=o._nodeMap,ql=n._nodeMap,Q_=n._readOnly,q_=new Map(t._keyToDOMMap);let Be=new Map;jp=Be,Fp("root",null),jp=q_=Zl=ql=bc=Z_=U_=Rp=br=void 0,m=Be}catch(Ue){if(Ue instanceof Error&&t._onError(Ue),d3)throw Ue;L$(t,null,i,n),P9(t),t._dirtyType=2,d3=!0,xc(t,o),d3=!1;return}finally{g.observe(i,T$),t._updating=h,Li=u,so=f,Ri=d}}n._readOnly||(n._readOnly=!0);var S=t._dirtyLeaves,C=t._dirtyElements,E=t._normalizedNodes,N=t._updateTags,M=t._deferred;l&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set);var I=t._decorators,W=t._pendingDecorators||I,B=n._nodeMap,Z;for(Z in W)B.has(Z)||(W===I&&(W=B9(t)),delete W[Z]);var R=r?null:Js(t._window);if(t._editable&&R!==null&&(l||a===null||a.dirty)){Ri=t,Li=n;try{if(g!==null&&g.disconnect(),l||a===null||a.dirty){let Ue=t._blockCursorElement;Ue!==null&&W_(Ue,t,i);e:{let St=R.anchorNode,Lt=R.focusNode,Be=R.anchorOffset,Re=R.focusOffset,ae=document.activeElement;if(!(N.has("collaboration")&&ae!==i||ae!==null&&N_(ae)))if(kt(a)){var Q=a.anchor,V=a.focus,H=Q.key,j=V.key,q=pv(t,H),Y=pv(t,j),K=Q.offset,te=V.offset,oe=a.format,ce=a.style,U=a.isCollapsed(),F=q,se=Y,le=!1;if(Q.type==="text"){F=fv(q);let Ze=Q.getNode();le=Ze.getFormat()!==oe||Ze.getStyle()!==ce}else kt(s)&&s.anchor.type==="text"&&(le=!0);if(V.type==="text"&&(se=fv(Y)),F!==null&&se!==null){if(U&&(s===null||le||kt(s)&&(s.format!==oe||s.style!==ce))){var pe=performance.now();o$=[oe,ce,K,H,pe]}if(Be===K&&Re===te&&St===F&&Lt===se&&(R.type!=="Range"||!U)&&(ae!==null&&i.contains(ae)||i.focus({preventScroll:!0}),Q.type!=="element"))break e;try{R.setBaseAndExtent(F,K,se,te)}catch{}if(!N.has("skip-scroll-into-view")&&a.isCollapsed()&&i!==null&&i===document.activeElement){let Ze=a instanceof nd&&a.anchor.type==="element"?F.childNodes[K]||null:0<R.rangeCount?R.getRangeAt(0):null;if(Ze!==null){let Ut;if(Ze instanceof Text){let On=document.createRange();On.selectNode(Ze),Ut=On.getBoundingClientRect()}else Ut=Ze.getBoundingClientRect();let ii=i.ownerDocument,Nt=ii.defaultView;if(Nt!==null)for(var{top:je,bottom:He}=Ut,ot,ht,ve=i;ve!==null;){let On=ve===ii.body;if(On)ot=0,ht=vv(t).innerHeight;else{let Nl=ve.getBoundingClientRect();ot=Nl.top,ht=Nl.bottom}let Zo=0;if(je<ot?Zo=-(ot-je):He>ht&&(Zo=He-ht),Zo!==0)if(On)Nt.scrollBy(0,Zo);else{let Nl=ve.scrollTop;ve.scrollTop+=Zo;let Al=ve.scrollTop-Nl;je-=Al,He-=Al}if(On)break;ve=gv(ve)}}}J_=!0}}else s!==null&&Pp(t,St,Lt)&&R.removeAllRanges()}}e:{let Ue=t._blockCursorElement;if(kt(a)&&a.isCollapsed()&&a.anchor.type==="element"&&i.contains(document.activeElement)){let St=a.anchor,Lt=St.getNode(),Be=St.offset,Re=Lt.getChildrenSize(),ae=!1,Ze=null;if(Be===Re){let Ut=Lt.getChildAtIndex(Be-1);B_(Ut)&&(ae=!0)}else{let Ut=Lt.getChildAtIndex(Be);if(B_(Ut)){let ii=Ut.getPreviousSibling();(ii===null||B_(ii))&&(ae=!0,Ze=t.getElementByKey(Ut.__key))}}if(ae){let Ut=t.getElementByKey(Lt.__key);if(Ue===null){let ii=t._config.theme,Nt=document.createElement("div");Nt.contentEditable="false",Nt.setAttribute("data-lexical-cursor","true");let On=ii.blockCursor;if(On!==void 0){if(typeof On=="string"){let Zo=On.split(" ");On=ii.blockCursor=Zo}On!==void 0&&Nt.classList.add(...On)}t._blockCursorElement=Ue=Nt}i.style.caretColor="transparent",Ze===null?Ut.appendChild(Ue):Ut.insertBefore(Ue,Ze);break e}}Ue!==null&&W_(Ue,t,i)}g!==null&&g.observe(i,T$)}finally{Ri=d,Li=u}}if(m!==null){var De=m;let Ue=Array.from(t._listeners.mutation),St=Ue.length;for(let Lt=0;Lt<St;Lt++){let[Be,Re]=Ue[Lt],ae=De.get(Re);ae!==void 0&&Be(ae,{dirtyLeaves:S,prevEditorState:o,updateTags:N})}}kt(a)||a===null||s!==null&&s.is(a)||t.dispatchCommand(sv,void 0);var st=t._pendingDecorators;st!==null&&(t._decorators=st,t._pendingDecorators=null,Zp("decorator",t,!0,st));var It=W9(e||o),Mt=W9(n);if(It!==Mt&&Zp("textcontent",t,!0,Mt),Zp("update",t,!0,{dirtyElements:C,dirtyLeaves:S,editorState:n,normalizedNodes:E,prevEditorState:e||o,tags:N}),t._deferred=[],M.length!==0){let Ue=t._updating;t._updating=!0;try{for(let St=0;St<M.length;St++)M[St]()}finally{t._updating=Ue}}var Wt=t._updates;if(Wt.length!==0){let Ue=Wt.shift();if(Ue){let[St,Lt]=Ue;A$(t,St,Lt)}}}}function Zp(t,e,n,...i){let r=e._updating;e._updating=n;try{let o=Array.from(e._listeners[t]);for(t=0;t<o.length;t++)o[t].apply(null,i)}finally{e._updating=r}}function Ie(t,e,n){if(t._updating===!1||Ri!==t){let o=!1;return t.update(()=>{o=Ie(t,e,n)}),o}let i=I_(t);for(let o=4;0<=o;o--)for(let s=0;s<i.length;s++){var r=i[s]._commands.get(e);if(r!==void 0&&(r=r[o],r!==void 0)){r=Array.from(r);let a=r.length;for(let l=0;l<a;l++)if(r[l](n,t)===!0)return!0}}return!1}function N$(t,e){let n=t._updates;for(e=e||!1;n.length!==0;){var i=n.shift();if(i){let[r,o]=i,s;o!==void 0&&(i=o.onUpdate,s=o.tag,o.skipTransforms&&(e=!0),i&&t._deferred.push(i),s&&t._updateTags.add(s)),r()}}return e}function A$(t,e,n){let i=t._updateTags;var r,o=r=!1;if(n!==void 0){var s=n.onUpdate;r=n.tag,r!=null&&i.add(r),r=n.skipTransforms||!1,o=n.discrete||!1}s&&t._deferred.push(s),n=t._editorState,s=t._pendingEditorState;let a=!1;(s===null||s._readOnly)&&(s=t._pendingEditorState=new Nv(new Map((s||n)._nodeMap)),a=!0),s._flushSync=o,o=Li;let l=so,u=Ri,f=t._updating;Li=s,so=!1,t._updating=!0,Ri=t;try{a&&(t._headless?n._selection!==null&&(s._selection=n._selection.clone()):s._selection=Ete(t));let d=t._compositionKey;e(),r=N$(t,r),Tte(s,t),t._dirtyType!==0&&(r?Nte(s,t):Ate(s,t),N$(t),ute(n,s,t._dirtyLeaves,t._dirtyElements)),d!==t._compositionKey&&(s._flushSync=!0);let h=s._selection;if(kt(h)){let g=s._nodeMap,m=h.focus.key;g.get(h.anchor.key)!==void 0&&g.get(m)!==void 0||Le(19)}else Qp(h)&&h._nodes.size===0&&(s._selection=null)}catch(d){d instanceof Error&&t._onError(d),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),xc(t);return}finally{Li=o,so=l,Ri=u,t._updating=f,Up=0}t._dirtyType!==0||Pte(s,t)?s._flushSync?(s._flushSync=!1,xc(t)):a&&ste(()=>{xc(t)}):(s._flushSync=!1,a&&(i.clear(),t._deferred=[],t._pendingEditorState=null))}function Oo(t,e,n){t._updating?t._updates.push([e,n]):A$(t,e,n)}class P$ extends Ov{constructor(e){super(e)}decorate(){Le(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function qn(t){return t instanceof P$}class Mv extends Ov{constructor(e){super(e),this.__last=this.__first=null,this.__indent=this.__format=this.__size=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return ete[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],n=this.getFirstChild();for(;n!==null;)e.push(n),n=n.getNextSibling();return e}getChildrenKeys(){let e=[],n=this.getFirstChild();for(;n!==null;)e.push(n.__key),n=n.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=Tn()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),n=this.getParentOrThrow().getLastChild();return n!==null&&n.is(e)}getAllTextNodes(){let e=[],n=this.getFirstChild();for(;n!==null;){if(qe(n)&&e.push(n),xe(n)){let i=n.getAllTextNodes();e.push(...i)}n=n.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(xe(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(xe(e)){let n=e.getLastChild();if(n!==null){e=n;continue}}break}return e}getDescendantByIndex(e){let n=this.getChildren(),i=n.length;return e>=i?(e=n[i-1],xe(e)&&e.getLastDescendant()||e||null):(e=n[e],xe(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__first;return e===null?null:vr(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&Le(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return e===null?null:vr(e)}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&Le(96,this.__key),e}getChildAtIndex(e){var n=this.getChildrenSize();let i;if(e<n/2){for(i=this.getFirstChild(),n=0;i!==null&&n<=e;){if(n===e)return i;i=i.getNextSibling(),n++}return null}for(i=this.getLastChild(),--n;i!==null&&n>=e;){if(n===e)return i;i=i.getPreviousSibling(),n--}return null}getTextContent(){let e="",n=this.getChildren(),i=n.length;for(let r=0;r<i;r++){let o=n[r];e+=o.getTextContent(),xe(o)&&r!==i-1&&!o.isInline()&&(e+=`
|
||
|
||
`)}return e}getTextContentSize(){let e=0,n=this.getChildren(),i=n.length;for(let r=0;r<i;r++){let o=n[r];e+=o.getTextContentSize(),xe(o)&&r!==i-1&&!o.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=M9[e],(this.getFormat()&e)!==0):!1}select(e,n){Ir();let i=on(),r=e,o=n;var s=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&n===0){if(e=this.getFirstChild(),qe(e)||xe(e))return e.select(0,0)}else if(!(e!==void 0&&e!==s||n!==void 0&&n!==s)&&(e=this.getLastChild(),qe(e)||xe(e)))return e.select()}if(r===void 0&&(r=s),o===void 0&&(o=s),s=this.__key,kt(i))i.anchor.set(s,r,"element"),i.focus.set(s,o,"element"),i.dirty=!0;else return S$(s,r,s,o,"element","element");return i}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?M9[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,i){let r=i.length,o=this.getChildrenSize(),s=this.getWritable(),a=s.__key;var l=[],u=[];let f=this.getChildAtIndex(e+n),d=null,h=o-n+r;if(e!==0)if(e===o)d=this.getLastChild();else{var g=this.getChildAtIndex(e);g!==null&&(d=g.getPreviousSibling())}if(0<n){var m=d===null?this.getFirstChild():d.getNextSibling();for(g=0;g<n;g++){m===null&&Le(100);var y=m.getNextSibling(),x=m.__key;m=m.getWritable(),vc(m),u.push(x),m=y}}for(g=d,y=0;y<r;y++){x=i[y],g!==null&&x.is(g)&&(d=g=g.getPreviousSibling()),m=x.getWritable(),m.__parent===a&&h--,vc(m);let _=x.__key;g===null?(s.__first=_,m.__prev=null):(g=g.getWritable(),g.__next=_,m.__prev=g.__key),x.__key===a&&Le(76),m.__parent=a,l.push(_),g=x}if(e+n===o?g!==null&&(g.getWritable().__next=null,s.__last=g.__key):f!==null&&(e=f.getWritable(),g!==null?(n=g.getWritable(),e.__prev=g.__key,n.__next=f.__key):e.__prev=null),s.__size=h,u.length&&(e=on(),kt(e))){u=new Set(u),l=new Set(l);let{anchor:_,focus:S}=e;D$(_,u,l)&&$v(_,_.getNode(),this,d,f),D$(S,u,l)&&$v(S,S.getNode(),this,d,f),h!==0||this.canBeEmpty()||Ul(this)||this.remove()}return s}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function xe(t){return t instanceof Mv}function D$(t,e,n){for(t=t.getNode();t;){let i=t.__key;if(e.has(i)&&!n.has(i))return!0;t=t.getParent()}return!1}class od extends Mv{static getType(){return"root"}static clone(){return new od}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Le(51)}getTextContent(){let e=this.__cachedText;return!rd()&&Tn()._dirtyType!==0||e===null?super.getTextContent():e}remove(){Le(52)}replace(){Le(53)}insertBefore(){Le(54)}insertAfter(){Le(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let i=e[n];xe(i)||qn(i)||Le(56)}return super.append(...e)}static importJSON(e){let n=_o();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function So(t){return t instanceof od}function Pte(t,e){if(e=e.getEditorState()._selection,t=t._selection,t!==null){if(t.dirty||!t.is(e))return!0}else if(e!==null)return!0;return!1}function p3(){return new Nv(new Map([["root",new od]]))}function I$(t){let e=t.exportJSON();var n=t.constructor;if(e.type!==n.getType()&&Le(130,n.name),xe(t)){let i=e.children;for(Array.isArray(i)||Le(59,n.name),t=t.getChildren(),n=0;n<t.length;n++){let r=I$(t[n]);i.push(r)}}return e}class Nv{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._readOnly=this._flushSync=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e){return M$(this,e)}clone(e){return e=new Nv(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return M$(this,()=>({root:I$(_o())}))}}class sd extends Mv{static getType(){return"paragraph"}static clone(e){return new sd(e.__key)}createDOM(e){let n=document.createElement("p");return e=Ip(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:Dte,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&bv(e)){this.isEmpty()&&e.append(document.createElement("br"));var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n),n=this.getIndent(),0<n&&(e.style.textIndent=`${20*n}px`)}return{element:e}}static importJSON(e){let n=Za();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,n){e=Za();let i=this.getDirection();return e.setDirection(i),this.insertAfter(e,n),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||qe(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Dte(t){let e=Za();return t.style&&(e.setFormat(t.style.textAlign),t=parseInt(t.style.textIndent,10)/20,0<t&&e.setIndent(t)),{node:e}}function Za(){return Lp(new sd)}function L$(t,e,n,i){let r=t._keyToDOMMap;r.clear(),t._editorState=p3(),t._pendingEditorState=i,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null,i=t._observer,i!==null&&(i.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",r.set("root",n))}function Ite(t,e){let n=new Map,i=new Set,r=o=>{Object.keys(o).forEach(s=>{let a=n.get(s);a===void 0&&(a=[],n.set(s,a)),a.push(o[s])})};return t.forEach(o=>{o=o.klass.importDOM!=null?o.klass.importDOM.bind(o.klass):null,o==null||i.has(o)||(i.add(o),o=o(),o!==null&&r(o))}),e&&r(e),n}class Lte{constructor(e,n,i,r,o,s,a){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=i,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Q9(),this._onError=o,this._htmlConversions=s,this._editable=a,this._headless=n!==null&&n._headless,this._blockCursorElement=this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){let n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){let n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){let n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){let n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,i){i===void 0&&Le(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=r.get(e);o===void 0&&Le(36,String(e));let s=o[i];return s.add(n),()=>{s.delete(n),o.every(a=>a.size===0)&&r.delete(e)}}registerMutationListener(e,n){this._nodes.get(e.getType())===void 0&&Le(37,e.name);let i=this._listeners.mutation;return i.set(n,e),()=>{i.delete(n)}}registerNodeTransformToKlass(e,n){var i=e.getType();return i=this._nodes.get(i),i===void 0&&Le(37,e.name),i.transforms.add(n),i}registerNodeTransform(e,n){var i=this.registerNodeTransformToKlass(e,n);let r=[i];return i=i.replaceWithKlass,i!=null&&(i=this.registerNodeTransformToKlass(i,n),r.push(i)),ate(this,e.getType()),()=>{r.forEach(o=>o.transforms.delete(n))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,n){return Ie(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){let s=Ip(this._config.theme,"root");var i=this._pendingEditorState||this._editorState;if(this._rootElement=e,L$(this,n,e,i),n!==null){if(!this._config.disableEvents){Bp!==0&&(Bp--,Bp===0&&n.ownerDocument.removeEventListener("selectionchange",f$));var r=n.__lexicalEditor;if(r!=null){if(r._parentEditor!==null){var o=I_(r);o=o[o.length-1]._key,Jf.get(o)===r&&Jf.delete(o)}else Jf.delete(r._key);n.__lexicalEditor=null}for(r=c$(n),o=0;o<r.length;o++)r[o]();n.__lexicalEventHandles=[]}s!=null&&n.classList.remove(...s)}e!==null?(i=(i=e.ownerDocument)&&i.defaultView||null,r=e.style,r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=2,P9(this),this._updateTags.add("history-merge"),xc(this),this._config.disableEvents||bte(e,this),s!=null&&e.classList.add(...s)):(this._editorState=i,this._window=this._pendingEditorState=null),Zp("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&Le(38),A9(this);let i=this._pendingEditorState,r=this._updateTags;n=n!==void 0?n.tag:null,i===null||i.isEmpty()||(n!=null&&r.add(n),xc(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&r.add(n),xc(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let i=p3(),r=Li,o=so,s=Ri,a=this._dirtyElements,l=this._dirtyLeaves,u=this._cloneNotNeeded,f=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,Li=i,so=!1,Ri=this;try{h3(e.root,this._nodes),n&&n(),i._readOnly=!0}catch(d){d instanceof Error&&this._onError(d)}finally{this._dirtyElements=a,this._dirtyLeaves=l,this._cloneNotNeeded=u,this._dirtyType=f,Li=r,so=o,Ri=s}return i}update(e,n){Oo(this,e,n)}focus(e,n={}){let i=this._rootElement;i!==null&&(i.setAttribute("autocapitalize","off"),Oo(this,()=>{let r=on(),o=_o();r!==null?r.dirty=!0:o.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{i.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),this._pendingEditorState===null&&i.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;e!==null&&e.blur(),e=Js(this._window),e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Zp("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}ge.$addUpdateTag=function(t){Ir(),Tn()._updateTags.add(t)},ge.$applyNodeReplacement=Lp,ge.$copyNode=Y9,ge.$createLineBreakNode=td,ge.$createNodeSelection=u3,ge.$createParagraphNode=Za,ge.$createPoint=ws,ge.$createRangeSelection=function(){let t=ws("root",0,"element"),e=ws("root",0,"element");return new nd(t,e,0,"")},ge.$createTabNode=Ev,ge.$createTextNode=Gi,ge.$getAdjacentNode=F_,ge.$getCharacterOffsets=l3,ge.$getEditor=function(){return Tn()},ge.$getNearestNodeFromDOMNode=Dp,ge.$getNearestRootOrShadowRoot=q9,ge.$getNodeByKey=vr,ge.$getPreviousSelection=id,ge.$getRoot=_o,ge.$getSelection=on,ge.$getTextContent=function(){let t=on();return t===null?"":t.getTextContent()},ge.$hasAncestor=mv,ge.$hasUpdateTag=function(t){return Tn()._updateTags.has(t)},ge.$insertNodes=function(t){let e=on()||id();e===null&&(e=_o().selectEnd()),e.insertNodes(t)},ge.$isBlockElementNode=function(t){return xe(t)&&!t.isInline()},ge.$isDecoratorNode=qn,ge.$isElementNode=xe,ge.$isInlineElementOrDecoratorNode=function(t){return xe(t)&&t.isInline()||qn(t)&&t.isInline()},ge.$isLeafNode=function(t){return qe(t)||yc(t)||qn(t)},ge.$isLineBreakNode=yc,ge.$isNodeSelection=Qp,ge.$isParagraphNode=function(t){return t instanceof sd},ge.$isRangeSelection=kt,ge.$isRootNode=So,ge.$isRootOrShadowRoot=Ul,ge.$isTabNode=g$,ge.$isTextNode=qe,ge.$nodesOfType=function(t){var e=ea();let n=e._readOnly,i=t.getType();e=e._nodeMap;let r=[];for(let[,o]of e)o instanceof t&&o.__type===i&&(n||o.isAttached())&&r.push(o);return r},ge.$normalizeSelection__EXPERIMENTAL=R9,ge.$parseSerializedNode=function(t){return h3(t,Tn()._nodes)},ge.$selectAll=function(){var t=_o();t=t.select(0,t.getChildrenSize()),Ks(R9(t))},ge.$setCompositionKey=xi,ge.$setSelection=Ks,ge.$splitNode=function(t,e){let n=t.getChildAtIndex(e);n==null&&(n=t),Ul(t)&&Le(102);let i=s=>{const a=s.getParentOrThrow(),l=Ul(a),u=s!==n||l?Y9(s):s;if(l)return xe(s)&&xe(u)||Le(133),s.insertAfter(u),[s,u,u];const[f,d,h]=i(a);return s=s.getNextSiblings(),h.append(u,...s),[f,d,u]},[r,o]=i(n);return[r,o]},ge.BLUR_COMMAND=T9,ge.CAN_REDO_COMMAND={},ge.CAN_UNDO_COMMAND={},ge.CLEAR_EDITOR_COMMAND={},ge.CLEAR_HISTORY_COMMAND={},ge.CLICK_COMMAND=c9,ge.COMMAND_PRIORITY_CRITICAL=4,ge.COMMAND_PRIORITY_EDITOR=0,ge.COMMAND_PRIORITY_HIGH=3,ge.COMMAND_PRIORITY_LOW=1,ge.COMMAND_PRIORITY_NORMAL=2,ge.CONTROLLED_TEXT_INSERTION_COMMAND=Yf,ge.COPY_COMMAND=__,ge.CUT_COMMAND=O_,ge.DELETE_CHARACTER_COMMAND=qf,ge.DELETE_LINE_COMMAND=Ap,ge.DELETE_WORD_COMMAND=Np,ge.DRAGEND_COMMAND=C9,ge.DRAGOVER_COMMAND=S9,ge.DRAGSTART_COMMAND=O9,ge.DROP_COMMAND=_9,ge.DecoratorNode=P$,ge.ElementNode=Mv,ge.FOCUS_COMMAND=E9,ge.FORMAT_ELEMENT_COMMAND={},ge.FORMAT_TEXT_COMMAND=Wl,ge.INDENT_CONTENT_COMMAND={},ge.INSERT_LINE_BREAK_COMMAND=Mp,ge.INSERT_PARAGRAPH_COMMAND=b_,ge.INSERT_TAB_COMMAND={},ge.KEY_ARROW_DOWN_COMMAND=v9,ge.KEY_ARROW_LEFT_COMMAND=p9,ge.KEY_ARROW_RIGHT_COMMAND=d9,ge.KEY_ARROW_UP_COMMAND=m9,ge.KEY_BACKSPACE_COMMAND=k9,ge.KEY_DELETE_COMMAND=w9,ge.KEY_DOWN_COMMAND=f9,ge.KEY_ENTER_COMMAND=av,ge.KEY_ESCAPE_COMMAND=y9,ge.KEY_MODIFIER_COMMAND=$9,ge.KEY_SPACE_COMMAND=b9,ge.KEY_TAB_COMMAND=x9,ge.LineBreakNode=ed,ge.MOVE_TO_END=h9,ge.MOVE_TO_START=g9,ge.OUTDENT_CONTENT_COMMAND={},ge.PASTE_COMMAND=k_,ge.ParagraphNode=sd,ge.REDO_COMMAND=x_,ge.REMOVE_TEXT_COMMAND=y_,ge.RootNode=od,ge.SELECTION_CHANGE_COMMAND=sv,ge.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND={},ge.SELECT_ALL_COMMAND=S_,ge.TabNode=Cv,ge.TextNode=wc,ge.UNDO_COMMAND=w_,ge.createCommand=function(){return{}},ge.createEditor=function(t){var e=t||{},n=Ri,i=e.theme||{};let r=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,s=p3(),a=e.namespace||(r!==null?r._config.namespace:Q9()),l=e.editorState,u=[od,wc,ed,Cv,sd,...e.nodes||[]],{onError:f,html:d}=e;if(e=e.editable!==void 0?e.editable:!0,t===void 0&&n!==null)t=n._nodes;else for(t=new Map,n=0;n<u.length;n++){let g=u[n],m=null;var h=null;typeof g!="function"&&(h=g,g=h.replace,m=h.with,h=h.withKlass||null);let y=g.getType(),x=g.transform(),_=new Set;x!==null&&_.add(x),t.set(y,{exportDOM:d&&d.export?d.export.get(g):void 0,klass:g,replace:m,replaceWithKlass:h,transforms:_})}return i=new Lte(s,r,t,{disableEvents:o,namespace:a,theme:i},f||console.error,Ite(t,d?d.import:void 0),e),l!==void 0&&(i._pendingEditorState=l,i._dirtyType=2),i},ge.getNearestEditorFromDOMNode=A_,ge.isCurrentlyReadOnlyMode=rd,ge.isHTMLAnchorElement=function(t){return bv(t)&&t.tagName==="A"},ge.isHTMLElement=bv,ge.isSelectionCapturedInDecoratorInput=N_,ge.isSelectionWithinEditor=Pp;var A=ge,R$={exports:{}},Rte="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jte=Rte,Fte=jte;function j$(){}function F$(){}F$.resetWarningCache=j$;var zte=function(){function t(i,r,o,s,a,l){if(l!==Fte){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:F$,resetWarningCache:j$};return n.PropTypes=n,n};R$.exports=zte();var Bte=R$.exports;const P=xo(Bte),Wte=t=>J.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M9 20.4214C9.93991 20.785 10.9427 21 12 21C17.1812 21 21.0543 15.8362 22.6273 13.3309C22.8699 12.9407 23 12.4761 23 12C23 11.5239 22.8699 11.0593 22.6273 10.6691C22.2278 10.0328 21.68 9.22509 21 8.37401M5.63183 18.3627C3.66995 16.7105 2.20181 14.6514 1.37268 13.3309C1.1301 12.9407 1 12.4761 1 12C1 11.5239 1.1301 11.0593 1.37268 10.6691C2.94573 8.16375 6.81884 3 12 3C14.4123 3 16.5411 4.11939 18.2862 5.56867",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M17 12C17 14.7614 14.7614 17 12 17M8.42928 15.5C7.54516 14.5981 7 13.3627 7 12C7 9.23858 9.23858 7 12 7C13.3627 7 14.5981 7.54516 15.5 8.42928",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M2 22L22 2",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Hte={wide:["w-[calc(75vw-var(--kg-breakout-adjustment-with-fallback)+2px)] mx-[calc(50%-(50vw-var(--kg-breakout-adjustment-with-fallback))-.8rem)] min-w-[calc(100%+3.6rem)] translate-x-[calc(50vw-50%+.8rem-var(--kg-breakout-adjustment-with-fallback))]","md:min-w-[calc(100%+10rem)]","lg:min-w-[calc(100%+18rem)]"].join(" "),full:"inset-x-[-1px] mx-[calc(50%-50vw)] w-[calc(100vw+2px)] lg:mx-[calc(50%-50vw+(var(--kg-breakout-adjustment-with-fallback)/2))] lg:w-[calc(100vw-var(--kg-breakout-adjustment-with-fallback)+2px)]"},z$={top:".6rem"},g3=T.forwardRef(({cardType:t,cardWidth:e="regular",feature:n,IndicatorIcon:i,indicatorPosition:r=z$,isDragging:o,isEditing:s,isSelected:a,isVisibilityActive:l,onIndicatorClick:u,wrapperStyle:f,children:d,...h},g)=>{const m=()=>f==="wide"&&(s||a)?"!-mx-3 !px-3":f==="code-card"&&s?"-mx-6":f==="wide"?"hover:-mx-3 hover:px-3":"border",y=["relative border-transparent caret-grey-800",a?"z-20":"z-10",a&&!o?"shadow-[0_0_0_2px] shadow-green":"",!a&&!o?"hover:shadow-[0_0_0_1px] hover:shadow-green":"",Hte[e]||"",m()].join(" "),x={...z$,...r||{},...t==="call-to-action"&&{top:"1.4rem"}};let _;return l?_=k.jsx("div",{className:"sticky top-0 lg:top-8",children:k.jsx(Wte,{"aria-label":"Card is hidden for select audiences",className:"absolute left-[-6rem] size-5 cursor-pointer text-grey","data-testid":"visibility-indicator",style:{left:x.left,top:x.top},onClick:u})}):i&&(_=k.jsx("div",{className:"sticky top-0 lg:top-8",children:k.jsx(i,{"aria-label":`${t} indicator`,className:"absolute left-[-6rem] size-5 text-grey",style:{left:x.left,top:x.top}})})),k.jsxs(k.Fragment,{children:[_,k.jsx("div",{ref:g,className:y,"data-kg-card":t,"data-kg-card-editing":s,"data-kg-card-selected":a,...h,children:d})]})});g3.displayName="CardWrapper",g3.propTypes={isSelected:P.bool,isEditing:P.bool,cardWidth:P.oneOf(["regular","wide","full"]),icon:P.string,indicatorPosition:P.shape({left:P.string,top:P.string})};function Qte(t){return t.replace(/<code\b[^>]*>((.*?){.*?}(.*?))<\/code>/gi,"$1")}function si(t="",e={}){const i=Object.assign({},{},e);if(!i.createDocument){const o=typeof DOMParser<"u"&&DOMParser||typeof window<"u"&&window.DOMParser;if(!o)throw new Error("cleanBasicHtml() must be passed a `createDocument` function as an option when used in a non-browser environment");i.createDocument=function(s){return new o().parseFromString(s,"text/html")}}let r=t;if((!i.allowBr||r==="<br>")&&(r=r.replace(/<br\s?\/?>/g," ")),i.removeCodeWrappers&&(r=Qte(r)),r=r.replace(/(\s| ){2,}/g," ").trim().replace(/^ | $/g,"").trim(),r){let o=i.createDocument(r);if(o.body.textContent==="")return null;o.body.querySelectorAll("*").forEach(s=>{if(!s.textContent.trim().replace(/\u200c+/g,"")){if(i.allowBr&&s.tagName==="BR")return;if(i.allowBr&&s.querySelector("br"))return s.replaceWith(o.createElement("br"));if(s.textContent.length>0){let a=o.createTextNode(" ");return s.replaceWith(a)}return s.remove()}}),i.firstChildInnerContent&&o.body.firstElementChild?r=o.body.firstElementChild.innerHTML.trim():r=o.body.innerHTML.trim()}return r}var qp={};const B$={};function Ute(t){let e=B$[t];if(e)return e;e=B$[t]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);e.push(i)}for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e[i]="%"+("0"+i.toString(16).toUpperCase()).slice(-2)}return e}function Av(t,e){typeof e!="string"&&(e=Av.defaultChars);const n=Ute(e);return t.replace(/(%[a-f0-9]{2})+/gi,function(i){let r="";for(let o=0,s=i.length;o<s;o+=3){const a=parseInt(i.slice(o+1,o+3),16);if(a<128){r+=n[a];continue}if((a&224)===192&&o+3<s){const l=parseInt(i.slice(o+4,o+6),16);if((l&192)===128){const u=a<<6&1984|l&63;u<128?r+="<22><>":r+=String.fromCharCode(u),o+=3;continue}}if((a&240)===224&&o+6<s){const l=parseInt(i.slice(o+4,o+6),16),u=parseInt(i.slice(o+7,o+9),16);if((l&192)===128&&(u&192)===128){const f=a<<12&61440|l<<6&4032|u&63;f<2048||f>=55296&&f<=57343?r+="<22><><EFBFBD>":r+=String.fromCharCode(f),o+=6;continue}}if((a&248)===240&&o+9<s){const l=parseInt(i.slice(o+4,o+6),16),u=parseInt(i.slice(o+7,o+9),16),f=parseInt(i.slice(o+10,o+12),16);if((l&192)===128&&(u&192)===128&&(f&192)===128){let d=a<<18&1835008|l<<12&258048|u<<6&4032|f&63;d<65536||d>1114111?r+="<22><><EFBFBD><EFBFBD>":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}r+="<22>"}return r})}Av.defaultChars=";/?:@&=+$,#",Av.componentChars="";const W$={};function Zte(t){let e=W$[t];if(e)return e;e=W$[t]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?e.push(i):e.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<t.length;n++)e[t.charCodeAt(n)]=t[n];return e}function Pv(t,e,n){typeof e!="string"&&(n=e,e=Pv.defaultChars),typeof n>"u"&&(n=!0);const i=Zte(e);let r="";for(let o=0,s=t.length;o<s;o++){const a=t.charCodeAt(o);if(n&&a===37&&o+2<s&&/^[0-9a-f]{2}$/i.test(t.slice(o+1,o+3))){r+=t.slice(o,o+3),o+=2;continue}if(a<128){r+=i[a];continue}if(a>=55296&&a<=57343){if(a>=55296&&a<=56319&&o+1<s){const l=t.charCodeAt(o+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(t[o]+t[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(t[o])}return r}Pv.defaultChars=";/?:@&=+$,-_.!~*'()#",Pv.componentChars="-_.!~*'()";function qte(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function Dv(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Yte=/^([a-z0-9.+-]+:)/i,Vte=/:[0-9]*$/,Xte=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Gte=["<",">",'"',"`"," ","\r",`
|
||
`," "],Kte=["{","}","|","\\","^","`"].concat(Gte),Jte=["'"].concat(Kte),H$=["%","/","?",";","#"].concat(Jte),Q$=["/","?","#"],ene=255,U$=/^[+a-z0-9A-Z_-]{0,63}$/,tne=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Z$={javascript:!0,"javascript:":!0},q$={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function nne(t,e){if(t&&t instanceof Dv)return t;const n=new Dv;return n.parse(t,e),n}Dv.prototype.parse=function(t,e){let n,i,r,o=t;if(o=o.trim(),!e&&t.split("#").length===1){const u=Xte.exec(o);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let s=Yte.exec(o);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,o=o.substr(s.length)),(e||s||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(s&&Z$[s])&&(o=o.substr(2),this.slashes=!0)),!Z$[s]&&(r||s&&!q$[s])){let u=-1;for(let m=0;m<Q$.length;m++)i=o.indexOf(Q$[m]),i!==-1&&(u===-1||i<u)&&(u=i);let f,d;u===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",u),d!==-1&&(f=o.slice(0,d),o=o.slice(d+1),this.auth=f),u=-1;for(let m=0;m<H$.length;m++)i=o.indexOf(H$[m]),i!==-1&&(u===-1||i<u)&&(u=i);u===-1&&(u=o.length),o[u-1]===":"&&u--;const h=o.slice(0,u);o=o.slice(u),this.parseHost(h),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const m=this.hostname.split(/\./);for(let y=0,x=m.length;y<x;y++){const _=m[y];if(_&&!_.match(U$)){let S="";for(let C=0,E=_.length;C<E;C++)_.charCodeAt(C)>127?S+="x":S+=_[C];if(!S.match(U$)){const C=m.slice(0,y),E=m.slice(y+1),N=_.match(tne);N&&(C.push(N[1]),E.unshift(N[2])),E.length&&(o=E.join(".")+o),this.hostname=C.join(".");break}}}}this.hostname.length>ene&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=o.indexOf("#");a!==-1&&(this.hash=o.substr(a),o=o.slice(0,a));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),q$[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Dv.prototype.parseHost=function(t){let e=Vte.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},qp.decode=Av,qp.encode=Pv,qp.format=qte,qp.parse=nne;var _c={},ine=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,rne=/[\0-\x1F\x7F-\x9F]/,one=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,sne=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ane=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;_c.Any=ine,_c.Cc=rne,_c.Cf=one,_c.P=sne,_c.Z=ane;var Y$={},m3={},v3={};Object.defineProperty(v3,"__esModule",{value:!0}),v3.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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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(t){return t.charCodeAt(0)}));var b3={};Object.defineProperty(b3,"__esModule",{value:!0}),b3.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var k3={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var n=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]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(o){var s="";return o>65535&&(o-=65536,s+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),s+=String.fromCharCode(o),s};function i(o){var s;return o>=55296&&o<=57343||o>1114111?65533:(s=n.get(o))!==null&&s!==void 0?s:o}t.replaceCodePoint=i;function r(o){return(0,t.fromCodePoint)(i(o))}t.default=r})(k3),function(t){var e=tn&&tn.__createBinding||(Object.create?function(R,Q,V,H){H===void 0&&(H=V);var j=Object.getOwnPropertyDescriptor(Q,V);(!j||("get"in j?!Q.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return Q[V]}}),Object.defineProperty(R,H,j)}:function(R,Q,V,H){H===void 0&&(H=V),R[H]=Q[V]}),n=tn&&tn.__setModuleDefault||(Object.create?function(R,Q){Object.defineProperty(R,"default",{enumerable:!0,value:Q})}:function(R,Q){R.default=Q}),i=tn&&tn.__importStar||function(R){if(R&&R.__esModule)return R;var Q={};if(R!=null)for(var V in R)V!=="default"&&Object.prototype.hasOwnProperty.call(R,V)&&e(Q,R,V);return n(Q,R),Q},r=tn&&tn.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var o=r(v3);t.htmlDecodeTree=o.default;var s=r(b3);t.xmlDecodeTree=s.default;var a=i(k3);t.decodeCodePoint=a.default;var l=k3;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return l.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return l.fromCodePoint}});var u;(function(R){R[R.NUM=35]="NUM",R[R.SEMI=59]="SEMI",R[R.EQUALS=61]="EQUALS",R[R.ZERO=48]="ZERO",R[R.NINE=57]="NINE",R[R.LOWER_A=97]="LOWER_A",R[R.LOWER_F=102]="LOWER_F",R[R.LOWER_X=120]="LOWER_X",R[R.LOWER_Z=122]="LOWER_Z",R[R.UPPER_A=65]="UPPER_A",R[R.UPPER_F=70]="UPPER_F",R[R.UPPER_Z=90]="UPPER_Z"})(u||(u={}));var f=32,d;(function(R){R[R.VALUE_LENGTH=49152]="VALUE_LENGTH",R[R.BRANCH_LENGTH=16256]="BRANCH_LENGTH",R[R.JUMP_TABLE=127]="JUMP_TABLE"})(d=t.BinTrieFlags||(t.BinTrieFlags={}));function h(R){return R>=u.ZERO&&R<=u.NINE}function g(R){return R>=u.UPPER_A&&R<=u.UPPER_F||R>=u.LOWER_A&&R<=u.LOWER_F}function m(R){return R>=u.UPPER_A&&R<=u.UPPER_Z||R>=u.LOWER_A&&R<=u.LOWER_Z||h(R)}function y(R){return R===u.EQUALS||m(R)}var x;(function(R){R[R.EntityStart=0]="EntityStart",R[R.NumericStart=1]="NumericStart",R[R.NumericDecimal=2]="NumericDecimal",R[R.NumericHex=3]="NumericHex",R[R.NamedEntity=4]="NamedEntity"})(x||(x={}));var _;(function(R){R[R.Legacy=0]="Legacy",R[R.Strict=1]="Strict",R[R.Attribute=2]="Attribute"})(_=t.DecodingMode||(t.DecodingMode={}));var S=function(){function R(Q,V,H){this.decodeTree=Q,this.emitCodePoint=V,this.errors=H,this.state=x.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_.Strict}return R.prototype.startEntity=function(Q){this.decodeMode=Q,this.state=x.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},R.prototype.write=function(Q,V){switch(this.state){case x.EntityStart:return Q.charCodeAt(V)===u.NUM?(this.state=x.NumericStart,this.consumed+=1,this.stateNumericStart(Q,V+1)):(this.state=x.NamedEntity,this.stateNamedEntity(Q,V));case x.NumericStart:return this.stateNumericStart(Q,V);case x.NumericDecimal:return this.stateNumericDecimal(Q,V);case x.NumericHex:return this.stateNumericHex(Q,V);case x.NamedEntity:return this.stateNamedEntity(Q,V)}},R.prototype.stateNumericStart=function(Q,V){return V>=Q.length?-1:(Q.charCodeAt(V)|f)===u.LOWER_X?(this.state=x.NumericHex,this.consumed+=1,this.stateNumericHex(Q,V+1)):(this.state=x.NumericDecimal,this.stateNumericDecimal(Q,V))},R.prototype.addToNumericResult=function(Q,V,H,j){if(V!==H){var q=H-V;this.result=this.result*Math.pow(j,q)+parseInt(Q.substr(V,q),j),this.consumed+=q}},R.prototype.stateNumericHex=function(Q,V){for(var H=V;V<Q.length;){var j=Q.charCodeAt(V);if(h(j)||g(j))V+=1;else return this.addToNumericResult(Q,H,V,16),this.emitNumericEntity(j,3)}return this.addToNumericResult(Q,H,V,16),-1},R.prototype.stateNumericDecimal=function(Q,V){for(var H=V;V<Q.length;){var j=Q.charCodeAt(V);if(h(j))V+=1;else return this.addToNumericResult(Q,H,V,10),this.emitNumericEntity(j,2)}return this.addToNumericResult(Q,H,V,10),-1},R.prototype.emitNumericEntity=function(Q,V){var H;if(this.consumed<=V)return(H=this.errors)===null||H===void 0||H.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(Q===u.SEMI)this.consumed+=1;else if(this.decodeMode===_.Strict)return 0;return this.emitCodePoint((0,a.replaceCodePoint)(this.result),this.consumed),this.errors&&(Q!==u.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},R.prototype.stateNamedEntity=function(Q,V){for(var H=this.decodeTree,j=H[this.treeIndex],q=(j&d.VALUE_LENGTH)>>14;V<Q.length;V++,this.excess++){var Y=Q.charCodeAt(V);if(this.treeIndex=E(H,j,this.treeIndex+Math.max(1,q),Y),this.treeIndex<0)return this.result===0||this.decodeMode===_.Attribute&&(q===0||y(Y))?0:this.emitNotTerminatedNamedEntity();if(j=H[this.treeIndex],q=(j&d.VALUE_LENGTH)>>14,q!==0){if(Y===u.SEMI)return this.emitNamedEntityData(this.treeIndex,q,this.consumed+this.excess);this.decodeMode!==_.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},R.prototype.emitNotTerminatedNamedEntity=function(){var Q,V=this,H=V.result,j=V.decodeTree,q=(j[H]&d.VALUE_LENGTH)>>14;return this.emitNamedEntityData(H,q,this.consumed),(Q=this.errors)===null||Q===void 0||Q.missingSemicolonAfterCharacterReference(),this.consumed},R.prototype.emitNamedEntityData=function(Q,V,H){var j=this.decodeTree;return this.emitCodePoint(V===1?j[Q]&~d.VALUE_LENGTH:j[Q+1],H),V===3&&this.emitCodePoint(j[Q+2],H),H},R.prototype.end=function(){var Q;switch(this.state){case x.NamedEntity:return this.result!==0&&(this.decodeMode!==_.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case x.NumericDecimal:return this.emitNumericEntity(0,2);case x.NumericHex:return this.emitNumericEntity(0,3);case x.NumericStart:return(Q=this.errors)===null||Q===void 0||Q.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case x.EntityStart:return 0}},R}();t.EntityDecoder=S;function C(R){var Q="",V=new S(R,function(H){return Q+=(0,a.fromCodePoint)(H)});return function(j,q){for(var Y=0,K=0;(K=j.indexOf("&",K))>=0;){Q+=j.slice(Y,K),V.startEntity(q);var te=V.write(j,K+1);if(te<0){Y=K+V.end();break}Y=K+te,K=te===0?Y+1:Y}var oe=Q+j.slice(Y);return Q="",oe}}function E(R,Q,V,H){var j=(Q&d.BRANCH_LENGTH)>>7,q=Q&d.JUMP_TABLE;if(j===0)return q!==0&&H===q?V:-1;if(q){var Y=H-q;return Y<0||Y>=j?-1:R[V+Y]-1}for(var K=V,te=K+j-1;K<=te;){var oe=K+te>>>1,ce=R[oe];if(ce<H)K=oe+1;else if(ce>H)te=oe-1;else return R[oe+j]}return-1}t.determineBranch=E;var N=C(o.default),M=C(s.default);function I(R,Q){return Q===void 0&&(Q=_.Legacy),N(R,Q)}t.decodeHTML=I;function W(R){return N(R,_.Attribute)}t.decodeHTMLAttribute=W;function B(R){return N(R,_.Strict)}t.decodeHTMLStrict=B;function Z(R){return M(R,_.Strict)}t.decodeXML=Z}(m3);var Oc={},y3={};Object.defineProperty(y3,"__esModule",{value:!0});function Iv(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}y3.default=new Map(Iv([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(Iv([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Iv([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(Iv([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Lv={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(r,o){return r.codePointAt(o)}:function(r,o){return(r.charCodeAt(o)&64512)===55296?(r.charCodeAt(o)-55296)*1024+r.charCodeAt(o+1)-56320+65536:r.charCodeAt(o)};function n(r){for(var o="",s=0,a;(a=t.xmlReplacer.exec(r))!==null;){var l=a.index,u=r.charCodeAt(l),f=e.get(u);f!==void 0?(o+=r.substring(s,l)+f,s=l+1):(o+="".concat(r.substring(s,l),"&#x").concat((0,t.getCodePoint)(r,l).toString(16),";"),s=t.xmlReplacer.lastIndex+=+((u&64512)===55296))}return o+r.substr(s)}t.encodeXML=n,t.escape=n;function i(r,o){return function(a){for(var l,u=0,f="";l=r.exec(a);)u!==l.index&&(f+=a.substring(u,l.index)),f+=o.get(l[0].charCodeAt(0)),u=l.index+1;return f+a.substring(u)}}t.escapeUTF8=i(/[&<>'"]/g,e),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Lv);var lne=tn&&tn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.encodeNonAsciiHTML=Oc.encodeHTML=void 0;var une=lne(y3),V$=Lv,cne=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function fne(t){return X$(cne,t)}Oc.encodeHTML=fne;function dne(t){return X$(V$.xmlReplacer,t)}Oc.encodeNonAsciiHTML=dne;function X$(t,e){for(var n="",i=0,r;(r=t.exec(e))!==null;){var o=r.index;n+=e.substring(i,o);var s=e.charCodeAt(o),a=une.default.get(s);if(typeof a=="object"){if(o+1<e.length){var l=e.charCodeAt(o+1),u=typeof a.n=="number"?a.n===l?a.o:void 0:a.n.get(l);if(u!==void 0){n+=u,i=t.lastIndex+=1;continue}}a=a.v}if(a!==void 0)n+=a,i=o+1;else{var f=(0,V$.getCodePoint)(e,o);n+="&#x".concat(f.toString(16),";"),i=t.lastIndex+=+(f!==s)}}return n+e.substr(i)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=m3,n=Oc,i=Lv,r;(function(h){h[h.XML=0]="XML",h[h.HTML=1]="HTML"})(r=t.EntityLevel||(t.EntityLevel={}));var o;(function(h){h[h.UTF8=0]="UTF8",h[h.ASCII=1]="ASCII",h[h.Extensive=2]="Extensive",h[h.Attribute=3]="Attribute",h[h.Text=4]="Text"})(o=t.EncodingMode||(t.EncodingMode={}));function s(h,g){g===void 0&&(g=r.XML);var m=typeof g=="number"?g:g.level;if(m===r.HTML){var y=typeof g=="object"?g.mode:void 0;return(0,e.decodeHTML)(h,y)}return(0,e.decodeXML)(h)}t.decode=s;function a(h,g){var m;g===void 0&&(g=r.XML);var y=typeof g=="number"?{level:g}:g;return(m=y.mode)!==null&&m!==void 0||(y.mode=e.DecodingMode.Strict),s(h,y)}t.decodeStrict=a;function l(h,g){g===void 0&&(g=r.XML);var m=typeof g=="number"?{level:g}:g;return m.mode===o.UTF8?(0,i.escapeUTF8)(h):m.mode===o.Attribute?(0,i.escapeAttribute)(h):m.mode===o.Text?(0,i.escapeText)(h):m.level===r.HTML?m.mode===o.ASCII?(0,n.encodeNonAsciiHTML)(h):(0,n.encodeHTML)(h):(0,i.encodeXML)(h)}t.encode=l;var u=Lv;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return u.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return u.escapeText}});var f=Oc;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=m3;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})})(Y$);var Rv=_c;function hne(t){const e={};t=t||{},e.src_Any=Rv.Any.source,e.src_Cc=Rv.Cc.source,e.src_Z=Rv.Z.source,e.src_P=Rv.P.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");const n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+n+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function w3(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(i){t[i]=n[i]})}),t}function jv(t){return Object.prototype.toString.call(t)}function pne(t){return jv(t)==="[object String]"}function gne(t){return jv(t)==="[object Object]"}function mne(t){return jv(t)==="[object RegExp]"}function G$(t){return jv(t)==="[object Function]"}function vne(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const K$={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function bne(t){return Object.keys(t||{}).reduce(function(e,n){return e||K$.hasOwnProperty(n)},!1)}const kne={"http:":{validate:function(t,e,n){const i=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){const i=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){const i=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},yne="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",wne="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function xne(t){t.__index__=-1,t.__text_cache__=""}function _ne(t){return function(e,n){const i=e.slice(n);return t.test(i)?i.match(t)[0].length:0}}function J$(){return function(t,e){e.normalize(t)}}function Fv(t){const e=t.re=hne(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(yne),n.push(e.src_xn),e.src_tlds=n.join("|");function i(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(i(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(i(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(i(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(i(e.tpl_host_fuzzy_test),"i");const r=[];t.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(t.__schemas__).forEach(function(a){const l=t.__schemas__[a];if(l===null)return;const u={validate:null,link:null};if(t.__compiled__[a]=u,gne(l)){mne(l.validate)?u.validate=_ne(l.validate):G$(l.validate)?u.validate=l.validate:o(a,l),G$(l.normalize)?u.normalize=l.normalize:l.normalize?o(a,l):u.normalize=J$();return}if(pne(l)){r.push(a);return}o(a,l)}),r.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:J$()};const s=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(vne).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),xne(t)}function One(t,e){const n=t.__index__,i=t.__last_index__,r=t.__text_cache__.slice(n,i);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=i+e,this.raw=r,this.text=r,this.url=r}function x3(t,e){const n=new One(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function Co(t,e){if(!(this instanceof Co))return new Co(t,e);e||bne(t)&&(e=t,t={}),this.__opts__=w3({},K$,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=w3({},kne,t),this.__compiled__={},this.__tlds__=wne,this.__tlds_replaced__=!1,this.re={},Fv(this)}Co.prototype.add=function(e,n){return this.__schemas__[e]=n,Fv(this),this},Co.prototype.set=function(e){return this.__opts__=w3(this.__opts__,e),this},Co.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let n,i,r,o,s,a,l,u,f;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(e))!==null;)if(o=this.testSchemaAt(e,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(i=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=i.index+i[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=i.index+i[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=e.indexOf("@"),f>=0&&(r=e.match(this.re.email_fuzzy))!==null&&(s=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0},Co.prototype.pretest=function(e){return this.re.pretest.test(e)},Co.prototype.testSchemaAt=function(e,n,i){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,i,this):0},Co.prototype.match=function(e){const n=[];let i=0;this.__index__>=0&&this.__text_cache__===e&&(n.push(x3(this,i)),i=this.__last_index__);let r=i?e.slice(i):e;for(;this.test(r);)n.push(x3(this,i)),r=r.slice(this.__last_index__),i+=this.__last_index__;return n.length?n:null},Co.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const n=this.re.schema_at_start.exec(e);if(!n)return null;const i=this.testSchemaAt(e,n[2],n[0].length);return i?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+i,x3(this,0)):null},Co.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(i,r,o){return i!==o[r-1]}).reverse(),Fv(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Fv(this),this)},Co.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Co.prototype.onCompile=function(){};var Sne=Co;const ad=2147483647,ta=36,_3=1,Yp=26,Cne=38,Ene=700,eM=72,tM=128,nM="-",Tne=/^xn--/,$ne=/[^\0-\x7F]/,Mne=/[\x2E\u3002\uFF0E\uFF61]/g,Nne={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O3=ta-_3,na=Math.floor,S3=String.fromCharCode;function Xl(t){throw new RangeError(Nne[t])}function Ane(t,e){const n=[];let i=t.length;for(;i--;)n[i]=e(t[i]);return n}function iM(t,e){const n=t.split("@");let i="";n.length>1&&(i=n[0]+"@",t=n[1]),t=t.replace(Mne,".");const r=t.split("."),o=Ane(r,e).join(".");return i+o}function C3(t){const e=[];let n=0;const i=t.length;for(;n<i;){const r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){const o=t.charCodeAt(n++);(o&64512)==56320?e.push(((r&1023)<<10)+(o&1023)+65536):(e.push(r),n--)}else e.push(r)}return e}const rM=t=>String.fromCodePoint(...t),Pne=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:ta},oM=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},sM=function(t,e,n){let i=0;for(t=n?na(t/Ene):t>>1,t+=na(t/e);t>O3*Yp>>1;i+=ta)t=na(t/O3);return na(i+(O3+1)*t/(t+Cne))},E3=function(t){const e=[],n=t.length;let i=0,r=tM,o=eM,s=t.lastIndexOf(nM);s<0&&(s=0);for(let a=0;a<s;++a)t.charCodeAt(a)>=128&&Xl("not-basic"),e.push(t.charCodeAt(a));for(let a=s>0?s+1:0;a<n;){const l=i;for(let f=1,d=ta;;d+=ta){a>=n&&Xl("invalid-input");const h=Pne(t.charCodeAt(a++));h>=ta&&Xl("invalid-input"),h>na((ad-i)/f)&&Xl("overflow"),i+=h*f;const g=d<=o?_3:d>=o+Yp?Yp:d-o;if(h<g)break;const m=ta-g;f>na(ad/m)&&Xl("overflow"),f*=m}const u=e.length+1;o=sM(i-l,u,l==0),na(i/u)>ad-r&&Xl("overflow"),r+=na(i/u),i%=u,e.splice(i++,0,r)}return String.fromCodePoint(...e)},T3=function(t){const e=[];t=C3(t);const n=t.length;let i=tM,r=0,o=eM;for(const l of t)l<128&&e.push(S3(l));const s=e.length;let a=s;for(s&&e.push(nM);a<n;){let l=ad;for(const f of t)f>=i&&f<l&&(l=f);const u=a+1;l-i>na((ad-r)/u)&&Xl("overflow"),r+=(l-i)*u,i=l;for(const f of t)if(f<i&&++r>ad&&Xl("overflow"),f===i){let d=r;for(let h=ta;;h+=ta){const g=h<=o?_3:h>=o+Yp?Yp:h-o;if(d<g)break;const m=d-g,y=ta-g;e.push(S3(oM(g+m%y,0))),d=na(m/y)}e.push(S3(oM(d,0))),o=sM(r,u,a===s),r=0,++a}++r,++i}return e.join("")},aM=function(t){return iM(t,function(e){return Tne.test(e)?E3(e.slice(4).toLowerCase()):e})},lM=function(t){return iM(t,function(e){return $ne.test(e)?"xn--"+T3(e):e})},Dne=tv(Object.freeze(Object.defineProperty({__proto__:null,decode:E3,default:{version:"2.3.1",ucs2:{decode:C3,encode:rM},decode:E3,encode:T3,toASCII:lM,toUnicode:aM},encode:T3,toASCII:lM,toUnicode:aM,ucs2decode:C3,ucs2encode:rM},Symbol.toStringTag,{value:"Module"})));var Ine=qp,Lne=_c,uM=Y$,Rne=Sne,cM=Dne;function fM(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(n){if(n!=="default"){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}}),e.default=t,Object.freeze(e)}var Gl=fM(Ine),dM=fM(Lne);function jne(t){return Object.prototype.toString.call(t)}function $3(t){return jne(t)==="[object String]"}const Fne=Object.prototype.hasOwnProperty;function zne(t,e){return Fne.call(t,e)}function zv(t){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(i){t[i]=n[i]})}}),t}function hM(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function M3(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Bv(t){if(t>65535){t-=65536;const e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const pM=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Bne=/&([a-z#][a-z0-9]{1,31});/gi,Wne=new RegExp(pM.source+"|"+Bne.source,"gi"),Hne=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Qne(t,e){if(e.charCodeAt(0)===35&&Hne.test(e)){const i=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return M3(i)?Bv(i):t}const n=uM.decodeHTML(t);return n!==t?n:t}function Une(t){return t.indexOf("\\")<0?t:t.replace(pM,"$1")}function Vp(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(Wne,function(e,n,i){return n||Qne(e,i)})}const Zne=/[&<>"]/,qne=/[&<>"]/g,Yne={"&":"&","<":"<",">":">",'"':"""};function Vne(t){return Yne[t]}function Kl(t){return Zne.test(t)?t.replace(qne,Vne):t}const Xne=/[.?*+^$[\]\\(){}|-]/g;function Gne(t){return t.replace(Xne,"\\$&")}function sn(t){switch(t){case 9:case 32:return!0}return!1}function Xp(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Gp(t){return dM.P.test(t)}function Kp(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Wv(t){return t=t.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}var Kne=Object.freeze({__proto__:null,arrayReplaceAt:hM,assign:zv,escapeHtml:Kl,escapeRE:Gne,fromCodePoint:Bv,has:zne,isMdAsciiPunct:Kp,isPunctChar:Gp,isSpace:sn,isString:$3,isValidEntityCode:M3,isWhiteSpace:Xp,lib:{mdurl:Gl,ucmicro:dM},normalizeReference:Wv,unescapeAll:Vp,unescapeMd:Une});function Jne(t,e,n){let i,r,o,s;const a=t.posMax,l=t.pos;for(t.pos=e+1,i=1;t.pos<a;){if(o=t.src.charCodeAt(t.pos),o===93&&(i--,i===0)){r=!0;break}if(s=t.pos,t.md.inline.skipToken(t),o===91){if(s===t.pos-1)i++;else if(n)return t.pos=l,-1}}let u=-1;return r&&(u=t.pos),t.pos=l,u}function eie(t,e,n){let i,r=e;const o={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(r)===60){for(r++;r<n;){if(i=t.charCodeAt(r),i===10||i===60)return o;if(i===62)return o.pos=r+1,o.str=Vp(t.slice(e+1,r)),o.ok=!0,o;if(i===92&&r+1<n){r+=2;continue}r++}return o}let s=0;for(;r<n&&(i=t.charCodeAt(r),!(i===32||i<32||i===127));){if(i===92&&r+1<n){if(t.charCodeAt(r+1)===32)break;r+=2;continue}if(i===40&&(s++,s>32))return o;if(i===41){if(s===0)break;s--}r++}return e===r||s!==0||(o.str=Vp(t.slice(e,r)),o.pos=r,o.ok=!0),o}function tie(t,e,n){let i,r,o=0,s=e;const a={ok:!1,pos:0,lines:0,str:""};if(s>=n||(r=t.charCodeAt(s),r!==34&&r!==39&&r!==40))return a;for(s++,r===40&&(r=41);s<n;){if(i=t.charCodeAt(s),i===r)return a.pos=s+1,a.lines=o,a.str=Vp(t.slice(e+1,s)),a.ok=!0,a;if(i===40&&r===41)return a;i===10?o++:i===92&&s+1<n&&(s++,t.charCodeAt(s)===10&&o++),s++}return a}var nie=Object.freeze({__proto__:null,parseLinkDestination:eie,parseLinkLabel:Jne,parseLinkTitle:tie});const ia={};ia.code_inline=function(t,e,n,i,r){const o=t[e];return"<code"+r.renderAttrs(o)+">"+Kl(o.content)+"</code>"},ia.code_block=function(t,e,n,i,r){const o=t[e];return"<pre"+r.renderAttrs(o)+"><code>"+Kl(t[e].content)+`</code></pre>
|
||
`},ia.fence=function(t,e,n,i,r){const o=t[e],s=o.info?Vp(o.info).trim():"";let a="",l="";if(s){const f=s.split(/(\s+)/g);a=f[0],l=f.slice(2).join("")}let u;if(n.highlight?u=n.highlight(o.content,a,l)||Kl(o.content):u=Kl(o.content),u.indexOf("<pre")===0)return u+`
|
||
`;if(s){const f=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];f<0?d.push(["class",n.langPrefix+a]):(d[f]=d[f].slice(),d[f][1]+=" "+n.langPrefix+a);const h={attrs:d};return`<pre><code${r.renderAttrs(h)}>${u}</code></pre>
|
||
`}return`<pre><code${r.renderAttrs(o)}>${u}</code></pre>
|
||
`},ia.image=function(t,e,n,i,r){const o=t[e];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,i),r.renderToken(t,e,n)},ia.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`},ia.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
||
`:`<br>
|
||
`:`
|
||
`},ia.text=function(t,e){return Kl(t[e].content)},ia.html_block=function(t,e){return t[e].content},ia.html_inline=function(t,e){return t[e].content};function ld(){this.rules=zv({},ia)}ld.prototype.renderAttrs=function(e){let n,i,r;if(!e.attrs)return"";for(r="",n=0,i=e.attrs.length;n<i;n++)r+=" "+Kl(e.attrs[n][0])+'="'+Kl(e.attrs[n][1])+'"';return r},ld.prototype.renderToken=function(e,n,i){const r=e[n];let o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&e[n-1].hidden&&(o+=`
|
||
`),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&i.xhtmlOut&&(o+=" /");let s=!1;if(r.block&&(s=!0,r.nesting===1&&n+1<e.length)){const a=e[n+1];(a.type==="inline"||a.hidden||a.nesting===-1&&a.tag===r.tag)&&(s=!1)}return o+=s?`>
|
||
`:">",o},ld.prototype.renderInline=function(t,e,n){let i="";const r=this.rules;for(let o=0,s=t.length;o<s;o++){const a=t[o].type;typeof r[a]<"u"?i+=r[a](t,o,e,n,this):i+=this.renderToken(t,o,e)}return i},ld.prototype.renderInlineAsText=function(t,e,n){let i="";for(let r=0,o=t.length;r<o;r++)switch(t[r].type){case"text":i+=t[r].content;break;case"image":i+=this.renderInlineAsText(t[r].children,e,n);break;case"html_inline":case"html_block":i+=t[r].content;break;case"softbreak":case"hardbreak":i+=`
|
||
`;break}return i},ld.prototype.render=function(t,e,n){let i="";const r=this.rules;for(let o=0,s=t.length;o<s;o++){const a=t[o].type;a==="inline"?i+=this.renderInline(t[o].children,e,n):typeof r[a]<"u"?i+=r[a](t,o,e,n,this):i+=this.renderToken(t,o,e,n)}return i};function ao(){this.__rules__=[],this.__cache__=null}ao.prototype.__find__=function(t){for(let e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},ao.prototype.__compile__=function(){const t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(i){e.indexOf(i)<0&&e.push(i)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(i){i.enabled&&(n&&i.alt.indexOf(n)<0||t.__cache__[n].push(i.fn))})})},ao.prototype.at=function(t,e,n){const i=this.__find__(t),r=n||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=e,this.__rules__[i].alt=r.alt||[],this.__cache__=null},ao.prototype.before=function(t,e,n,i){const r=this.__find__(t),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},ao.prototype.after=function(t,e,n,i){const r=this.__find__(t),o=i||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(r+1,0,{name:e,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},ao.prototype.push=function(t,e,n){const i=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:i.alt||[]}),this.__cache__=null},ao.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(i){const r=this.__find__(i);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!0,n.push(i)},this),this.__cache__=null,n},ao.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},ao.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);const n=[];return t.forEach(function(i){const r=this.__find__(i);if(r<0){if(e)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[r].enabled=!1,n.push(i)},this),this.__cache__=null,n},ao.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function xs(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}xs.prototype.attrIndex=function(e){if(!this.attrs)return-1;const n=this.attrs;for(let i=0,r=n.length;i<r;i++)if(n[i][0]===e)return i;return-1},xs.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},xs.prototype.attrSet=function(e,n){const i=this.attrIndex(e),r=[e,n];i<0?this.attrPush(r):this.attrs[i]=r},xs.prototype.attrGet=function(e){const n=this.attrIndex(e);let i=null;return n>=0&&(i=this.attrs[n][1]),i},xs.prototype.attrJoin=function(e,n){const i=this.attrIndex(e);i<0?this.attrPush([e,n]):this.attrs[i][1]=this.attrs[i][1]+" "+n};function gM(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}gM.prototype.Token=xs;const iie=/\r\n?|\n/g,rie=/\0/g;function oie(t){let e;e=t.src.replace(iie,`
|
||
`),e=e.replace(rie,"<22>"),t.src=e}function sie(t){let e;t.inlineMode?(e=new t.Token("inline","",0),e.content=t.src,e.map=[0,1],e.children=[],t.tokens.push(e)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function aie(t){const e=t.tokens;for(let n=0,i=e.length;n<i;n++){const r=e[n];r.type==="inline"&&t.md.inline.parse(r.content,t.md,t.env,r.children)}}function lie(t){return/^<a[>\s]/i.test(t)}function uie(t){return/^<\/a\s*>/i.test(t)}function cie(t){const e=t.tokens;if(t.md.options.linkify)for(let n=0,i=e.length;n<i;n++){if(e[n].type!=="inline"||!t.md.linkify.pretest(e[n].content))continue;let r=e[n].children,o=0;for(let s=r.length-1;s>=0;s--){const a=r[s];if(a.type==="link_close"){for(s--;r[s].level!==a.level&&r[s].type!=="link_open";)s--;continue}if(a.type==="html_inline"&&(lie(a.content)&&o>0&&o--,uie(a.content)&&o++),!(o>0)&&a.type==="text"&&t.md.linkify.test(a.content)){const l=a.content;let u=t.md.linkify.match(l);const f=[];let d=a.level,h=0;u.length>0&&u[0].index===0&&s>0&&r[s-1].type==="text_special"&&(u=u.slice(1));for(let g=0;g<u.length;g++){const m=u[g].url,y=t.md.normalizeLink(m);if(!t.md.validateLink(y))continue;let x=u[g].text;u[g].schema?u[g].schema==="mailto:"&&!/^mailto:/i.test(x)?x=t.md.normalizeLinkText("mailto:"+x).replace(/^mailto:/,""):x=t.md.normalizeLinkText(x):x=t.md.normalizeLinkText("http://"+x).replace(/^http:\/\//,"");const _=u[g].index;if(_>h){const N=new t.Token("text","",0);N.content=l.slice(h,_),N.level=d,f.push(N)}const S=new t.Token("link_open","a",1);S.attrs=[["href",y]],S.level=d++,S.markup="linkify",S.info="auto",f.push(S);const C=new t.Token("text","",0);C.content=x,C.level=d,f.push(C);const E=new t.Token("link_close","a",-1);E.level=--d,E.markup="linkify",E.info="auto",f.push(E),h=u[g].lastIndex}if(h<l.length){const g=new t.Token("text","",0);g.content=l.slice(h),g.level=d,f.push(g)}e[n].children=r=hM(r,s,f)}}}}const mM=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,fie=/\((c|tm|r)\)/i,die=/\((c|tm|r)\)/ig,hie={c:"©",r:"®",tm:"™"};function pie(t,e){return hie[e.toLowerCase()]}function gie(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];i.type==="text"&&!e&&(i.content=i.content.replace(die,pie)),i.type==="link_open"&&i.info==="auto"&&e--,i.type==="link_close"&&i.info==="auto"&&e++}}function mie(t){let e=0;for(let n=t.length-1;n>=0;n--){const i=t[n];i.type==="text"&&!e&&mM.test(i.content)&&(i.content=i.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),i.type==="link_open"&&i.info==="auto"&&e--,i.type==="link_close"&&i.info==="auto"&&e++}}function vie(t){let e;if(t.md.options.typographer)for(e=t.tokens.length-1;e>=0;e--)t.tokens[e].type==="inline"&&(fie.test(t.tokens[e].content)&&gie(t.tokens[e].children),mM.test(t.tokens[e].content)&&mie(t.tokens[e].children))}const bie=/['"]/,vM=/['"]/g,bM="’";function Hv(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function kie(t,e){let n;const i=[];for(let r=0;r<t.length;r++){const o=t[r],s=t[r].level;for(n=i.length-1;n>=0&&!(i[n].level<=s);n--);if(i.length=n+1,o.type!=="text")continue;let a=o.content,l=0,u=a.length;e:for(;l<u;){vM.lastIndex=l;const f=vM.exec(a);if(!f)break;let d=!0,h=!0;l=f.index+1;const g=f[0]==="'";let m=32;if(f.index-1>=0)m=a.charCodeAt(f.index-1);else for(n=r-1;n>=0&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n--)if(t[n].content){m=t[n].content.charCodeAt(t[n].content.length-1);break}let y=32;if(l<u)y=a.charCodeAt(l);else for(n=r+1;n<t.length&&!(t[n].type==="softbreak"||t[n].type==="hardbreak");n++)if(t[n].content){y=t[n].content.charCodeAt(0);break}const x=Kp(m)||Gp(String.fromCharCode(m)),_=Kp(y)||Gp(String.fromCharCode(y)),S=Xp(m),C=Xp(y);if(C?d=!1:_&&(S||x||(d=!1)),S?h=!1:x&&(C||_||(h=!1)),y===34&&f[0]==='"'&&m>=48&&m<=57&&(h=d=!1),d&&h&&(d=x,h=_),!d&&!h){g&&(o.content=Hv(o.content,f.index,bM));continue}if(h)for(n=i.length-1;n>=0;n--){let E=i[n];if(i[n].level<s)break;if(E.single===g&&i[n].level===s){E=i[n];let N,M;g?(N=e.md.options.quotes[2],M=e.md.options.quotes[3]):(N=e.md.options.quotes[0],M=e.md.options.quotes[1]),o.content=Hv(o.content,f.index,M),t[E.token].content=Hv(t[E.token].content,E.pos,N),l+=M.length-1,E.token===r&&(l+=N.length-1),a=o.content,u=a.length,i.length=n;continue e}}d?i.push({token:r,pos:f.index,single:g,level:s}):h&&g&&(o.content=Hv(o.content,f.index,bM))}}}function yie(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)t.tokens[e].type!=="inline"||!bie.test(t.tokens[e].content)||kie(t.tokens[e].children,t)}function wie(t){let e,n;const i=t.tokens,r=i.length;for(let o=0;o<r;o++){if(i[o].type!=="inline")continue;const s=i[o].children,a=s.length;for(e=0;e<a;e++)s[e].type==="text_special"&&(s[e].type="text");for(e=n=0;e<a;e++)s[e].type==="text"&&e+1<a&&s[e+1].type==="text"?s[e+1].content=s[e].content+s[e+1].content:(e!==n&&(s[n]=s[e]),n++);e!==n&&(s.length=n)}}const N3=[["normalize",oie],["block",sie],["inline",aie],["linkify",cie],["replacements",vie],["smartquotes",yie],["text_join",wie]];function A3(){this.ruler=new ao;for(let t=0;t<N3.length;t++)this.ruler.push(N3[t][0],N3[t][1])}A3.prototype.process=function(t){const e=this.ruler.getRules("");for(let n=0,i=e.length;n<i;n++)e[n](t)},A3.prototype.State=gM;function ra(t,e,n,i){this.src=t,this.md=e,this.env=n,this.tokens=i,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,s=0,a=0,l=0,u=r.length,f=!1;s<u;s++){const d=r.charCodeAt(s);if(!f)if(sn(d)){a++,d===9?l+=4-l%4:l++;continue}else f=!0;(d===10||s===u-1)&&(d!==10&&s++,this.bMarks.push(o),this.eMarks.push(s),this.tShift.push(a),this.sCount.push(l),this.bsCount.push(0),f=!1,a=0,l=0,o=s+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ra.prototype.push=function(t,e,n){const i=new xs(t,e,n);return i.block=!0,n<0&&this.level--,i.level=this.level,n>0&&this.level++,this.tokens.push(i),i},ra.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ra.prototype.skipEmptyLines=function(e){for(let n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ra.prototype.skipSpaces=function(e){for(let n=this.src.length;e<n;e++){const i=this.src.charCodeAt(e);if(!sn(i))break}return e},ra.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!sn(this.src.charCodeAt(--e)))return e+1;return e},ra.prototype.skipChars=function(e,n){for(let i=this.src.length;e<i&&this.src.charCodeAt(e)===n;e++);return e},ra.prototype.skipCharsBack=function(e,n,i){if(e<=i)return e;for(;e>i;)if(n!==this.src.charCodeAt(--e))return e+1;return e},ra.prototype.getLines=function(e,n,i,r){if(e>=n)return"";const o=new Array(n-e);for(let s=0,a=e;a<n;a++,s++){let l=0;const u=this.bMarks[a];let f=u,d;for(a+1<n||r?d=this.eMarks[a]+1:d=this.eMarks[a];f<d&&l<i;){const h=this.src.charCodeAt(f);if(sn(h))h===9?l+=4-(l+this.bsCount[a])%4:l++;else if(f-u<this.tShift[a])l++;else break;f++}l>i?o[s]=new Array(l-i+1).join(" ")+this.src.slice(f,d):o[s]=this.src.slice(f,d)}return o.join("")},ra.prototype.Token=xs;function P3(t,e){const n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return t.src.slice(n,i)}function kM(t){const e=[],n=t.length;let i=0,r=t.charCodeAt(i),o=!1,s=0,a="";for(;i<n;)r===124&&(o?(a+=t.substring(s,i-1),s=i):(e.push(a+t.substring(s,i)),a="",s=i+1)),o=r===92,i++,r=t.charCodeAt(i);return e.push(a+t.substring(s)),e}function xie(t,e,n,i){if(e+2>n)return!1;let r=e+1;if(t.sCount[r]<t.blkIndent||t.sCount[r]-t.blkIndent>=4)return!1;let o=t.bMarks[r]+t.tShift[r];if(o>=t.eMarks[r])return!1;const s=t.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58||o>=t.eMarks[r])return!1;const a=t.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58&&!sn(a)||s===45&&sn(a))return!1;for(;o<t.eMarks[r];){const C=t.src.charCodeAt(o);if(C!==124&&C!==45&&C!==58&&!sn(C))return!1;o++}let l=P3(t,e+1),u=l.split("|");const f=[];for(let C=0;C<u.length;C++){const E=u[C].trim();if(!E){if(C===0||C===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?f.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=P3(t,e).trim(),l.indexOf("|")===-1||t.sCount[e]-t.blkIndent>=4)return!1;u=kM(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const d=u.length;if(d===0||d!==f.length)return!1;if(i)return!0;const h=t.parentType;t.parentType="table";const g=t.md.block.ruler.getRules("blockquote"),m=t.push("table_open","table",1),y=[e,0];m.map=y;const x=t.push("thead_open","thead",1);x.map=[e,e+1];const _=t.push("tr_open","tr",1);_.map=[e,e+1];for(let C=0;C<u.length;C++){const E=t.push("th_open","th",1);f[C]&&(E.attrs=[["style","text-align:"+f[C]]]);const N=t.push("inline","",0);N.content=u[C].trim(),N.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let S;for(r=e+2;r<n&&!(t.sCount[r]<t.blkIndent);r++){let C=!1;for(let N=0,M=g.length;N<M;N++)if(g[N](t,r,n,!0)){C=!0;break}if(C||(l=P3(t,r).trim(),!l)||t.sCount[r]-t.blkIndent>=4)break;if(u=kM(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),r===e+2){const N=t.push("tbody_open","tbody",1);N.map=S=[e+2,0]}const E=t.push("tr_open","tr",1);E.map=[r,r+1];for(let N=0;N<d;N++){const M=t.push("td_open","td",1);f[N]&&(M.attrs=[["style","text-align:"+f[N]]]);const I=t.push("inline","",0);I.content=u[N]?u[N].trim():"",I.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return S&&(t.push("tbody_close","tbody",-1),S[1]=r),t.push("table_close","table",-1),y[1]=r,t.parentType=h,t.line=r,!0}function _ie(t,e,n){if(t.sCount[e]-t.blkIndent<4)return!1;let i=e+1,r=i;for(;i<n;){if(t.isEmpty(i)){i++;continue}if(t.sCount[i]-t.blkIndent>=4){i++,r=i;continue}break}t.line=r;const o=t.push("code_block","code",0);return o.content=t.getLines(e,r,4+t.blkIndent,!1)+`
|
||
`,o.map=[e,t.line],!0}function Oie(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||r+3>o)return!1;const s=t.src.charCodeAt(r);if(s!==126&&s!==96)return!1;let a=r;r=t.skipChars(r,s);let l=r-a;if(l<3)return!1;const u=t.src.slice(a,r),f=t.src.slice(r,o);if(s===96&&f.indexOf(String.fromCharCode(s))>=0)return!1;if(i)return!0;let d=e,h=!1;for(;d++,!(d>=n||(r=a=t.bMarks[d]+t.tShift[d],o=t.eMarks[d],r<o&&t.sCount[d]<t.blkIndent));)if(t.src.charCodeAt(r)===s&&!(t.sCount[d]-t.blkIndent>=4)&&(r=t.skipChars(r,s),!(r-a<l)&&(r=t.skipSpaces(r),!(r<o)))){h=!0;break}l=t.sCount[e],t.line=d+(h?1:0);const g=t.push("fence","code",0);return g.info=f,g.content=t.getLines(e+1,d,l,!0),g.markup=u,g.map=[e,t.line],!0}function Sie(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];const s=t.lineMax;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(r)!==62)return!1;if(i)return!0;const a=[],l=[],u=[],f=[],d=t.md.block.ruler.getRules("blockquote"),h=t.parentType;t.parentType="blockquote";let g=!1,m;for(m=e;m<n;m++){const C=t.sCount[m]<t.blkIndent;if(r=t.bMarks[m]+t.tShift[m],o=t.eMarks[m],r>=o)break;if(t.src.charCodeAt(r++)===62&&!C){let N=t.sCount[m]+1,M,I;t.src.charCodeAt(r)===32?(r++,N++,I=!1,M=!0):t.src.charCodeAt(r)===9?(M=!0,(t.bsCount[m]+N)%4===3?(r++,N++,I=!1):I=!0):M=!1;let W=N;for(a.push(t.bMarks[m]),t.bMarks[m]=r;r<o;){const B=t.src.charCodeAt(r);if(sn(B))B===9?W+=4-(W+t.bsCount[m]+(I?1:0))%4:W++;else break;r++}g=r>=o,l.push(t.bsCount[m]),t.bsCount[m]=t.sCount[m]+1+(M?1:0),u.push(t.sCount[m]),t.sCount[m]=W-N,f.push(t.tShift[m]),t.tShift[m]=r-t.bMarks[m];continue}if(g)break;let E=!1;for(let N=0,M=d.length;N<M;N++)if(d[N](t,m,n,!0)){E=!0;break}if(E){t.lineMax=m,t.blkIndent!==0&&(a.push(t.bMarks[m]),l.push(t.bsCount[m]),f.push(t.tShift[m]),u.push(t.sCount[m]),t.sCount[m]-=t.blkIndent);break}a.push(t.bMarks[m]),l.push(t.bsCount[m]),f.push(t.tShift[m]),u.push(t.sCount[m]),t.sCount[m]=-1}const y=t.blkIndent;t.blkIndent=0;const x=t.push("blockquote_open","blockquote",1);x.markup=">";const _=[e,0];x.map=_,t.md.block.tokenize(t,e,m);const S=t.push("blockquote_close","blockquote",-1);S.markup=">",t.lineMax=s,t.parentType=h,_[1]=t.line;for(let C=0;C<f.length;C++)t.bMarks[C+e]=a[C],t.tShift[C+e]=f[C],t.sCount[C+e]=u[C],t.bsCount[C+e]=l[C];return t.blkIndent=y,!0}function Cie(t,e,n,i){const r=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let o=t.bMarks[e]+t.tShift[e];const s=t.src.charCodeAt(o++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;o<r;){const u=t.src.charCodeAt(o++);if(u!==s&&!sn(u))return!1;u===s&&a++}if(a<3)return!1;if(i)return!0;t.line=e+1;const l=t.push("hr","hr",0);return l.map=[e,t.line],l.markup=Array(a+1).join(String.fromCharCode(s)),!0}function yM(t,e){const n=t.eMarks[e];let i=t.bMarks[e]+t.tShift[e];const r=t.src.charCodeAt(i++);if(r!==42&&r!==45&&r!==43)return-1;if(i<n){const o=t.src.charCodeAt(i);if(!sn(o))return-1}return i}function wM(t,e){const n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];let r=n;if(r+1>=i)return-1;let o=t.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=i)return-1;if(o=t.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<i&&(o=t.src.charCodeAt(r),!sn(o))?-1:r}function Eie(t,e){const n=t.level+2;for(let i=e+2,r=t.tokens.length-2;i<r;i++)t.tokens[i].level===n&&t.tokens[i].type==="paragraph_open"&&(t.tokens[i+2].hidden=!0,t.tokens[i].hidden=!0,i+=2)}function Tie(t,e,n,i){let r,o,s,a,l=e,u=!0;if(t.sCount[l]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]<t.blkIndent)return!1;let f=!1;i&&t.parentType==="paragraph"&&t.sCount[l]>=t.blkIndent&&(f=!0);let d,h,g;if((g=wM(t,l))>=0){if(d=!0,s=t.bMarks[l]+t.tShift[l],h=Number(t.src.slice(s,g-1)),f&&h!==1)return!1}else if((g=yM(t,l))>=0)d=!1;else return!1;if(f&&t.skipSpaces(g)>=t.eMarks[l])return!1;if(i)return!0;const m=t.src.charCodeAt(g-1),y=t.tokens.length;d?(a=t.push("ordered_list_open","ol",1),h!==1&&(a.attrs=[["start",h]])):a=t.push("bullet_list_open","ul",1);const x=[l,0];a.map=x,a.markup=String.fromCharCode(m);let _=!1;const S=t.md.block.ruler.getRules("list"),C=t.parentType;for(t.parentType="list";l<n;){o=g,r=t.eMarks[l];const E=t.sCount[l]+g-(t.bMarks[l]+t.tShift[l]);let N=E;for(;o<r;){const j=t.src.charCodeAt(o);if(j===9)N+=4-(N+t.bsCount[l])%4;else if(j===32)N++;else break;o++}const M=o;let I;M>=r?I=1:I=N-E,I>4&&(I=1);const W=E+I;a=t.push("list_item_open","li",1),a.markup=String.fromCharCode(m);const B=[l,0];a.map=B,d&&(a.info=t.src.slice(s,g-1));const Z=t.tight,R=t.tShift[l],Q=t.sCount[l],V=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=W,t.tight=!0,t.tShift[l]=M-t.bMarks[l],t.sCount[l]=N,M>=r&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),(!t.tight||_)&&(u=!1),_=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=V,t.tShift[l]=R,t.sCount[l]=Q,t.tight=Z,a=t.push("list_item_close","li",-1),a.markup=String.fromCharCode(m),l=t.line,B[1]=l,l>=n||t.sCount[l]<t.blkIndent||t.sCount[l]-t.blkIndent>=4)break;let H=!1;for(let j=0,q=S.length;j<q;j++)if(S[j](t,l,n,!0)){H=!0;break}if(H)break;if(d){if(g=wM(t,l),g<0)break;s=t.bMarks[l]+t.tShift[l]}else if(g=yM(t,l),g<0)break;if(m!==t.src.charCodeAt(g-1))break}return d?a=t.push("ordered_list_close","ol",-1):a=t.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(m),x[1]=l,t.line=l,t.parentType=C,u&&Eie(t,y),!0}function $ie(t,e,n,i){let r=0,o=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],a=e+1;if(t.sCount[e]-t.blkIndent>=4||t.src.charCodeAt(o)!==91)return!1;for(;++o<s;)if(t.src.charCodeAt(o)===93&&t.src.charCodeAt(o-1)!==92){if(o+1===s||t.src.charCodeAt(o+1)!==58)return!1;break}const l=t.lineMax,u=t.md.block.ruler.getRules("reference"),f=t.parentType;for(t.parentType="reference";a<l&&!t.isEmpty(a);a++){if(t.sCount[a]-t.blkIndent>3||t.sCount[a]<0)continue;let N=!1;for(let M=0,I=u.length;M<I;M++)if(u[M](t,a,l,!0)){N=!0;break}if(N)break}const d=t.getLines(e,a,t.blkIndent,!1).trim();s=d.length;let h=-1;for(o=1;o<s;o++){const N=d.charCodeAt(o);if(N===91)return!1;if(N===93){h=o;break}else N===10?r++:N===92&&(o++,o<s&&d.charCodeAt(o)===10&&r++)}if(h<0||d.charCodeAt(h+1)!==58)return!1;for(o=h+2;o<s;o++){const N=d.charCodeAt(o);if(N===10)r++;else if(!sn(N))break}const g=t.md.helpers.parseLinkDestination(d,o,s);if(!g.ok)return!1;const m=t.md.normalizeLink(g.str);if(!t.md.validateLink(m))return!1;o=g.pos,r+=g.lines;const y=o,x=r,_=o;for(;o<s;o++){const N=d.charCodeAt(o);if(N===10)r++;else if(!sn(N))break}const S=t.md.helpers.parseLinkTitle(d,o,s);let C;for(o<s&&_!==o&&S.ok?(C=S.str,o=S.pos,r+=S.lines):(C="",o=y,r=x);o<s;){const N=d.charCodeAt(o);if(!sn(N))break;o++}if(o<s&&d.charCodeAt(o)!==10&&C)for(C="",o=y,r=x;o<s;){const N=d.charCodeAt(o);if(!sn(N))break;o++}if(o<s&&d.charCodeAt(o)!==10)return!1;const E=Wv(d.slice(1,h));return E?(i||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[E]>"u"&&(t.env.references[E]={title:C,href:m}),t.parentType=f,t.line=e+r+1),!0):!1}var Mie=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];const Nie="[a-zA-Z_:][a-zA-Z0-9:._-]*",Aie="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",xM="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+Nie+"(?:\\s*=\\s*"+Aie+")?)")+"*\\s*\\/?>",_M="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Pie="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Die="<[?][\\s\\S]*?[?]>",Iie="<![A-Z]+\\s+[^>]*>",Lie="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Rie=new RegExp("^(?:"+xM+"|"+_M+"|"+Pie+"|"+Die+"|"+Iie+"|"+Lie+")"),jie=new RegExp("^(?:"+xM+"|"+_M+")"),ud=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Mie.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(jie.source+"\\s*$"),/^$/,!1]];function Fie(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(r)!==60)return!1;let s=t.src.slice(r,o),a=0;for(;a<ud.length&&!ud[a][0].test(s);a++);if(a===ud.length)return!1;if(i)return ud[a][2];let l=e+1;if(!ud[a][1].test(s)){for(;l<n&&!(t.sCount[l]<t.blkIndent);l++)if(r=t.bMarks[l]+t.tShift[l],o=t.eMarks[l],s=t.src.slice(r,o),ud[a][1].test(s)){s.length!==0&&l++;break}}t.line=l;const u=t.push("html_block","",0);return u.map=[e,l],u.content=t.getLines(e,l,t.blkIndent,!0),!0}function zie(t,e,n,i){let r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;let s=t.src.charCodeAt(r);if(s!==35||r>=o)return!1;let a=1;for(s=t.src.charCodeAt(++r);s===35&&r<o&&a<=6;)a++,s=t.src.charCodeAt(++r);if(a>6||r<o&&!sn(s))return!1;if(i)return!0;o=t.skipSpacesBack(o,r);const l=t.skipCharsBack(o,35,r);l>r&&sn(t.src.charCodeAt(l-1))&&(o=l),t.line=e+1;const u=t.push("heading_open","h"+String(a),1);u.markup="########".slice(0,a),u.map=[e,t.line];const f=t.push("inline","",0);f.content=t.src.slice(r,o).trim(),f.map=[e,t.line],f.children=[];const d=t.push("heading_close","h"+String(a),-1);return d.markup="########".slice(0,a),!0}function Bie(t,e,n){const i=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const r=t.parentType;t.parentType="paragraph";let o=0,s,a=e+1;for(;a<n&&!t.isEmpty(a);a++){if(t.sCount[a]-t.blkIndent>3)continue;if(t.sCount[a]>=t.blkIndent){let g=t.bMarks[a]+t.tShift[a];const m=t.eMarks[a];if(g<m&&(s=t.src.charCodeAt(g),(s===45||s===61)&&(g=t.skipChars(g,s),g=t.skipSpaces(g),g>=m))){o=s===61?1:2;break}}if(t.sCount[a]<0)continue;let h=!1;for(let g=0,m=i.length;g<m;g++)if(i[g](t,a,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=t.getLines(e,a,t.blkIndent,!1).trim();t.line=a+1;const u=t.push("heading_open","h"+String(o),1);u.markup=String.fromCharCode(s),u.map=[e,t.line];const f=t.push("inline","",0);f.content=l,f.map=[e,t.line-1],f.children=[];const d=t.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(s),t.parentType=r,!0}function Wie(t,e,n){const i=t.md.block.ruler.getRules("paragraph"),r=t.parentType;let o=e+1;for(t.parentType="paragraph";o<n&&!t.isEmpty(o);o++){if(t.sCount[o]-t.blkIndent>3||t.sCount[o]<0)continue;let u=!1;for(let f=0,d=i.length;f<d;f++)if(i[f](t,o,n,!0)){u=!0;break}if(u)break}const s=t.getLines(e,o,t.blkIndent,!1).trim();t.line=o;const a=t.push("paragraph_open","p",1);a.map=[e,t.line];const l=t.push("inline","",0);return l.content=s,l.map=[e,t.line],l.children=[],t.push("paragraph_close","p",-1),t.parentType=r,!0}const Qv=[["table",xie,["paragraph","reference"]],["code",_ie],["fence",Oie,["paragraph","reference","blockquote","list"]],["blockquote",Sie,["paragraph","reference","blockquote","list"]],["hr",Cie,["paragraph","reference","blockquote","list"]],["list",Tie,["paragraph","reference","blockquote"]],["reference",$ie],["html_block",Fie,["paragraph","reference","blockquote"]],["heading",zie,["paragraph","reference","blockquote"]],["lheading",Bie],["paragraph",Wie]];function Uv(){this.ruler=new ao;for(let t=0;t<Qv.length;t++)this.ruler.push(Qv[t][0],Qv[t][1],{alt:(Qv[t][2]||[]).slice()})}Uv.prototype.tokenize=function(t,e,n){const i=this.ruler.getRules(""),r=i.length,o=t.md.options.maxNesting;let s=e,a=!1;for(;s<n&&(t.line=s=t.skipEmptyLines(s),!(s>=n||t.sCount[s]<t.blkIndent));){if(t.level>=o){t.line=n;break}const l=t.line;let u=!1;for(let f=0;f<r;f++)if(u=i[f](t,s,n,!1),u){if(l>=t.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),s=t.line,s<n&&t.isEmpty(s)&&(a=!0,s++,t.line=s)}},Uv.prototype.parse=function(t,e,n,i){if(!t)return;const r=new this.State(t,e,n,i);this.tokenize(r,r.line,r.lineMax)},Uv.prototype.State=ra;function Jp(t,e,n,i){this.src=t,this.env=n,this.md=e,this.tokens=i,this.tokens_meta=Array(i.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Jp.prototype.pushPending=function(){const t=new xs("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},Jp.prototype.push=function(t,e,n){this.pending&&this.pushPending();const i=new xs(t,e,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),i.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(r),i},Jp.prototype.scanDelims=function(t,e){let n,i,r=!0,o=!0;const s=this.posMax,a=this.src.charCodeAt(t),l=t>0?this.src.charCodeAt(t-1):32;let u=t;for(;u<s&&this.src.charCodeAt(u)===a;)u++;const f=u-t,d=u<s?this.src.charCodeAt(u):32,h=Kp(l)||Gp(String.fromCharCode(l)),g=Kp(d)||Gp(String.fromCharCode(d)),m=Xp(l),y=Xp(d);return y?r=!1:g&&(m||h||(r=!1)),m?o=!1:h&&(y||g||(o=!1)),e?(n=r,i=o):(n=r&&(!o||h),i=o&&(!r||g)),{can_open:n,can_close:i,length:f}},Jp.prototype.Token=xs;function Hie(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function Qie(t,e){let n=t.pos;for(;n<t.posMax&&!Hie(t.src.charCodeAt(n));)n++;return n===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,n)),t.pos=n,!0)}const Uie=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Zie(t,e){if(!t.md.options.linkify||t.linkLevel>0)return!1;const n=t.pos,i=t.posMax;if(n+3>i||t.src.charCodeAt(n)!==58||t.src.charCodeAt(n+1)!==47||t.src.charCodeAt(n+2)!==47)return!1;const r=t.pending.match(Uie);if(!r)return!1;const o=r[1],s=t.md.linkify.matchAtStart(t.src.slice(n-o.length));if(!s)return!1;let a=s.url;if(a.length<=o.length)return!1;a=a.replace(/\*+$/,"");const l=t.md.normalizeLink(a);if(!t.md.validateLink(l))return!1;if(!e){t.pending=t.pending.slice(0,-o.length);const u=t.push("link_open","a",1);u.attrs=[["href",l]],u.markup="linkify",u.info="auto";const f=t.push("text","",0);f.content=t.md.normalizeLinkText(a);const d=t.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return t.pos+=a.length-o.length,!0}function qie(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==10)return!1;const i=t.pending.length-1,r=t.posMax;if(!e)if(i>=0&&t.pending.charCodeAt(i)===32)if(i>=1&&t.pending.charCodeAt(i-1)===32){let o=i-1;for(;o>=1&&t.pending.charCodeAt(o-1)===32;)o--;t.pending=t.pending.slice(0,o),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n<r&&sn(t.src.charCodeAt(n));)n++;return t.pos=n,!0}const D3=[];for(let t=0;t<256;t++)D3.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){D3[t.charCodeAt(0)]=1});function Yie(t,e){let n=t.pos;const i=t.posMax;if(t.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let r=t.src.charCodeAt(n);if(r===10){for(e||t.push("hardbreak","br",0),n++;n<i&&(r=t.src.charCodeAt(n),!!sn(r));)n++;return t.pos=n,!0}let o=t.src[n];if(r>=55296&&r<=56319&&n+1<i){const a=t.src.charCodeAt(n+1);a>=56320&&a<=57343&&(o+=t.src[n+1],n++)}const s="\\"+o;if(!e){const a=t.push("text_special","",0);r<256&&D3[r]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"}return t.pos=n+1,!0}function Vie(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==96)return!1;const r=n;n++;const o=t.posMax;for(;n<o&&t.src.charCodeAt(n)===96;)n++;const s=t.src.slice(r,n),a=s.length;if(t.backticksScanned&&(t.backticks[a]||0)<=r)return e||(t.pending+=s),t.pos+=a,!0;let l=n,u;for(;(u=t.src.indexOf("`",l))!==-1;){for(l=u+1;l<o&&t.src.charCodeAt(l)===96;)l++;const f=l-u;if(f===a){if(!e){const d=t.push("code_inline","code",0);d.markup=s,d.content=t.src.slice(n,u).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=l,!0}t.backticks[f]=u}return t.backticksScanned=!0,e||(t.pending+=s),t.pos+=a,!0}function Xie(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e||i!==126)return!1;const r=t.scanDelims(t.pos,!0);let o=r.length;const s=String.fromCharCode(i);if(o<2)return!1;let a;o%2&&(a=t.push("text","",0),a.content=s,o--);for(let l=0;l<o;l+=2)a=t.push("text","",0),a.content=s+s,t.delimiters.push({marker:i,length:0,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return t.pos+=r.length,!0}function OM(t,e){let n;const i=[],r=e.length;for(let o=0;o<r;o++){const s=e[o];if(s.marker!==126||s.end===-1)continue;const a=e[s.end];n=t.tokens[s.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=t.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",t.tokens[a.token-1].type==="text"&&t.tokens[a.token-1].content==="~"&&i.push(a.token-1)}for(;i.length;){const o=i.pop();let s=o+1;for(;s<t.tokens.length&&t.tokens[s].type==="s_close";)s++;s--,o!==s&&(n=t.tokens[s],t.tokens[s]=t.tokens[o],t.tokens[o]=n)}}function Gie(t){const e=t.tokens_meta,n=t.tokens_meta.length;OM(t,t.delimiters);for(let i=0;i<n;i++)e[i]&&e[i].delimiters&&OM(t,e[i].delimiters)}var SM={tokenize:Xie,postProcess:Gie};function Kie(t,e){const n=t.pos,i=t.src.charCodeAt(n);if(e||i!==95&&i!==42)return!1;const r=t.scanDelims(t.pos,i===42);for(let o=0;o<r.length;o++){const s=t.push("text","",0);s.content=String.fromCharCode(i),t.delimiters.push({marker:i,length:r.length,token:t.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return t.pos+=r.length,!0}function CM(t,e){const n=e.length;for(let i=n-1;i>=0;i--){const r=e[i];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=e[r.end],s=i>0&&e[i-1].end===r.end+1&&e[i-1].marker===r.marker&&e[i-1].token===r.token-1&&e[r.end+1].token===o.token+1,a=String.fromCharCode(r.marker),l=t.tokens[r.token];l.type=s?"strong_open":"em_open",l.tag=s?"strong":"em",l.nesting=1,l.markup=s?a+a:a,l.content="";const u=t.tokens[o.token];u.type=s?"strong_close":"em_close",u.tag=s?"strong":"em",u.nesting=-1,u.markup=s?a+a:a,u.content="",s&&(t.tokens[e[i-1].token].content="",t.tokens[e[r.end+1].token].content="",i--)}}function Jie(t){const e=t.tokens_meta,n=t.tokens_meta.length;CM(t,t.delimiters);for(let i=0;i<n;i++)e[i]&&e[i].delimiters&&CM(t,e[i].delimiters)}var EM={tokenize:Kie,postProcess:Jie};function ere(t,e){let n,i,r,o,s="",a="",l=t.pos,u=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const f=t.pos,d=t.posMax,h=t.pos+1,g=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(g<0)return!1;let m=g+1;if(m<d&&t.src.charCodeAt(m)===40){for(u=!1,m++;m<d&&(n=t.src.charCodeAt(m),!(!sn(n)&&n!==10));m++);if(m>=d)return!1;if(l=m,r=t.md.helpers.parseLinkDestination(t.src,m,t.posMax),r.ok){for(s=t.md.normalizeLink(r.str),t.md.validateLink(s)?m=r.pos:s="",l=m;m<d&&(n=t.src.charCodeAt(m),!(!sn(n)&&n!==10));m++);if(r=t.md.helpers.parseLinkTitle(t.src,m,t.posMax),m<d&&l!==m&&r.ok)for(a=r.str,m=r.pos;m<d&&(n=t.src.charCodeAt(m),!(!sn(n)&&n!==10));m++);}(m>=d||t.src.charCodeAt(m)!==41)&&(u=!0),m++}if(u){if(typeof t.env.references>"u")return!1;if(m<d&&t.src.charCodeAt(m)===91?(l=m+1,m=t.md.helpers.parseLinkLabel(t,m),m>=0?i=t.src.slice(l,m++):m=g+1):m=g+1,i||(i=t.src.slice(h,g)),o=t.env.references[Wv(i)],!o)return t.pos=f,!1;s=o.href,a=o.title}if(!e){t.pos=h,t.posMax=g;const y=t.push("link_open","a",1),x=[["href",s]];y.attrs=x,a&&x.push(["title",a]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=m,t.posMax=d,!0}function tre(t,e){let n,i,r,o,s,a,l,u,f="";const d=t.pos,h=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const g=t.pos+2,m=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(m<0)return!1;if(o=m+1,o<h&&t.src.charCodeAt(o)===40){for(o++;o<h&&(n=t.src.charCodeAt(o),!(!sn(n)&&n!==10));o++);if(o>=h)return!1;for(u=o,a=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),a.ok&&(f=t.md.normalizeLink(a.str),t.md.validateLink(f)?o=a.pos:f=""),u=o;o<h&&(n=t.src.charCodeAt(o),!(!sn(n)&&n!==10));o++);if(a=t.md.helpers.parseLinkTitle(t.src,o,t.posMax),o<h&&u!==o&&a.ok)for(l=a.str,o=a.pos;o<h&&(n=t.src.charCodeAt(o),!(!sn(n)&&n!==10));o++);else l="";if(o>=h||t.src.charCodeAt(o)!==41)return t.pos=d,!1;o++}else{if(typeof t.env.references>"u")return!1;if(o<h&&t.src.charCodeAt(o)===91?(u=o+1,o=t.md.helpers.parseLinkLabel(t,o),o>=0?r=t.src.slice(u,o++):o=m+1):o=m+1,r||(r=t.src.slice(g,m)),s=t.env.references[Wv(r)],!s)return t.pos=d,!1;f=s.href,l=s.title}if(!e){i=t.src.slice(g,m);const y=[];t.md.inline.parse(i,t.md,t.env,y);const x=t.push("image","img",0),_=[["src",f],["alt",""]];x.attrs=_,x.children=y,x.content=i,l&&_.push(["title",l])}return t.pos=o,t.posMax=h,!0}const nre=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ire=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function rre(t,e){let n=t.pos;if(t.src.charCodeAt(n)!==60)return!1;const i=t.pos,r=t.posMax;for(;;){if(++n>=r)return!1;const s=t.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const o=t.src.slice(i+1,n);if(ire.test(o)){const s=t.md.normalizeLink(o);if(!t.md.validateLink(s))return!1;if(!e){const a=t.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=o.length+2,!0}if(nre.test(o)){const s=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(s))return!1;if(!e){const a=t.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const l=t.push("text","",0);l.content=t.md.normalizeLinkText(o);const u=t.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return t.pos+=o.length+2,!0}return!1}function ore(t){return/^<a[>\s]/i.test(t)}function sre(t){return/^<\/a\s*>/i.test(t)}function are(t){const e=t|32;return e>=97&&e<=122}function lre(t,e){if(!t.md.options.html)return!1;const n=t.posMax,i=t.pos;if(t.src.charCodeAt(i)!==60||i+2>=n)return!1;const r=t.src.charCodeAt(i+1);if(r!==33&&r!==63&&r!==47&&!are(r))return!1;const o=t.src.slice(i).match(Rie);if(!o)return!1;if(!e){const s=t.push("html_inline","",0);s.content=o[0],ore(s.content)&&t.linkLevel++,sre(s.content)&&t.linkLevel--}return t.pos+=o[0].length,!0}const ure=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,cre=/^&([a-z][a-z0-9]{1,31});/i;function fre(t,e){const n=t.pos,i=t.posMax;if(t.src.charCodeAt(n)!==38||n+1>=i)return!1;if(t.src.charCodeAt(n+1)===35){const o=t.src.slice(n).match(ure);if(o){if(!e){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=t.push("text_special","",0);a.content=M3(s)?Bv(s):Bv(65533),a.markup=o[0],a.info="entity"}return t.pos+=o[0].length,!0}}else{const o=t.src.slice(n).match(cre);if(o){const s=uM.decodeHTML(o[0]);if(s!==o[0]){if(!e){const a=t.push("text_special","",0);a.content=s,a.markup=o[0],a.info="entity"}return t.pos+=o[0].length,!0}}}return!1}function TM(t){const e={},n=t.length;if(!n)return;let i=0,r=-2;const o=[];for(let s=0;s<n;s++){const a=t[s];if(o.push(0),(t[i].marker!==a.marker||r!==a.token-1)&&(i=s),r=a.token,a.length=a.length||0,!a.close)continue;e.hasOwnProperty(a.marker)||(e[a.marker]=[-1,-1,-1,-1,-1,-1]);const l=e[a.marker][(a.open?3:0)+a.length%3];let u=i-o[i]-1,f=u;for(;u>l;u-=o[u]+1){const d=t[u];if(d.marker===a.marker&&d.open&&d.end<0){let h=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(h=!0),!h){const g=u>0&&!t[u-1].open?o[u-1]+1:0;o[s]=s-u+g,o[u]=g,a.open=!1,d.end=s,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(e[a.marker][(a.open?3:0)+(a.length||0)%3]=f)}}function dre(t){const e=t.tokens_meta,n=t.tokens_meta.length;TM(t.delimiters);for(let i=0;i<n;i++)e[i]&&e[i].delimiters&&TM(e[i].delimiters)}function hre(t){let e,n,i=0;const r=t.tokens,o=t.tokens.length;for(e=n=0;e<o;e++)r[e].nesting<0&&i--,r[e].level=i,r[e].nesting>0&&i++,r[e].type==="text"&&e+1<o&&r[e+1].type==="text"?r[e+1].content=r[e].content+r[e+1].content:(e!==n&&(r[n]=r[e]),n++);e!==n&&(r.length=n)}const I3=[["text",Qie],["linkify",Zie],["newline",qie],["escape",Yie],["backticks",Vie],["strikethrough",SM.tokenize],["emphasis",EM.tokenize],["link",ere],["image",tre],["autolink",rre],["html_inline",lre],["entity",fre]],L3=[["balance_pairs",dre],["strikethrough",SM.postProcess],["emphasis",EM.postProcess],["fragments_join",hre]];function eg(){this.ruler=new ao;for(let t=0;t<I3.length;t++)this.ruler.push(I3[t][0],I3[t][1]);this.ruler2=new ao;for(let t=0;t<L3.length;t++)this.ruler2.push(L3[t][0],L3[t][1])}eg.prototype.skipToken=function(t){const e=t.pos,n=this.ruler.getRules(""),i=n.length,r=t.md.options.maxNesting,o=t.cache;if(typeof o[e]<"u"){t.pos=o[e];return}let s=!1;if(t.level<r){for(let a=0;a<i;a++)if(t.level++,s=n[a](t,!0),t.level--,s){if(e>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;s||t.pos++,o[e]=t.pos},eg.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,i=t.posMax,r=t.md.options.maxNesting;for(;t.pos<i;){const o=t.pos;let s=!1;if(t.level<r){for(let a=0;a<n;a++)if(s=e[a](t,!1),s){if(o>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(t.pos>=i)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},eg.prototype.parse=function(t,e,n,i){const r=new this.State(t,e,n,i);this.tokenize(r);const o=this.ruler2.getRules(""),s=o.length;for(let a=0;a<s;a++)o[a](r)},eg.prototype.State=Jp;var pre={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},gre={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},mre={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}};const vre={default:pre,zero:gre,commonmark:mre},bre=/^(vbscript|javascript|file|data):/,kre=/^data:image\/(gif|png|jpeg|webp);/;function yre(t){const e=t.trim().toLowerCase();return bre.test(e)?kre.test(e):!0}const $M=["http:","https:","mailto:"];function wre(t){const e=Gl.parse(t,!0);if(e.hostname&&(!e.protocol||$M.indexOf(e.protocol)>=0))try{e.hostname=cM.toASCII(e.hostname)}catch{}return Gl.encode(Gl.format(e))}function xre(t){const e=Gl.parse(t,!0);if(e.hostname&&(!e.protocol||$M.indexOf(e.protocol)>=0))try{e.hostname=cM.toUnicode(e.hostname)}catch{}return Gl.decode(Gl.format(e),Gl.decode.defaultChars+"%")}function Xo(t,e){if(!(this instanceof Xo))return new Xo(t,e);e||$3(t)||(e=t||{},t="default"),this.inline=new eg,this.block=new Uv,this.core=new A3,this.renderer=new ld,this.linkify=new Rne,this.validateLink=yre,this.normalizeLink=wre,this.normalizeLinkText=xre,this.utils=Kne,this.helpers=zv({},nie),this.options={},this.configure(t),e&&this.set(e)}Xo.prototype.set=function(t){return zv(this.options,t),this},Xo.prototype.configure=function(t){const e=this;if($3(t)){const n=t;if(t=vre[n],!t)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this},Xo.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));const i=t.filter(function(r){return n.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},Xo.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));const i=t.filter(function(r){return n.indexOf(r)<0});if(i.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},Xo.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},Xo.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},Xo.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Xo.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},Xo.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var MM=Xo,R3={exports:{}};const _re="2.0.0",NM=256,Ore=Number.MAX_SAFE_INTEGER||9007199254740991,Sre=16,Cre=NM-6;var Zv={MAX_LENGTH:NM,MAX_SAFE_COMPONENT_LENGTH:Sre,MAX_SAFE_BUILD_LENGTH:Cre,MAX_SAFE_INTEGER:Ore,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:_re,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},qv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:r}=Zv,o=qv;e=t.exports={};const s=e.re=[],a=e.safeRe=[],l=e.src=[],u=e.safeSrc=[],f=e.t={};let d=0;const h="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",r],[h,i]],m=x=>{for(const[_,S]of g)x=x.split(`${_}*`).join(`${_}{0,${S}}`).split(`${_}+`).join(`${_}{1,${S}}`);return x},y=(x,_,S)=>{const C=m(_),E=d++;o(x,E,_),f[x]=E,l[E]=_,u[E]=C,s[E]=new RegExp(_,S?"g":void 0),a[E]=new RegExp(C,S?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),y("MAINVERSION",`(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})\\.(${l[f.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})\\.(${l[f.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[f.NONNUMERICIDENTIFIER]}|${l[f.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${l[f.PRERELEASEIDENTIFIER]}(?:\\.${l[f.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[f.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${h}+`),y("BUILD",`(?:\\+(${l[f.BUILDIDENTIFIER]}(?:\\.${l[f.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[f.MAINVERSION]}${l[f.PRERELEASE]}?${l[f.BUILD]}?`),y("FULL",`^${l[f.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[f.MAINVERSIONLOOSE]}${l[f.PRERELEASELOOSE]}?${l[f.BUILD]}?`),y("LOOSE",`^${l[f.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[f.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:\\.(${l[f.XRANGEIDENTIFIER]})(?:${l[f.PRERELEASE]})?${l[f.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[f.XRANGEIDENTIFIERLOOSE]})(?:${l[f.PRERELEASELOOSE]})?${l[f.BUILD]}?)?)?`),y("XRANGE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[f.GTLT]}\\s*${l[f.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),y("COERCE",`${l[f.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[f.COERCEPLAIN]+`(?:${l[f.PRERELEASE]})?(?:${l[f.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[f.COERCE],!0),y("COERCERTLFULL",l[f.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[f.LONETILDE]}${l[f.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[f.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${l[f.LONECARET]}${l[f.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[f.LONECARET]}${l[f.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[f.GTLT]}\\s*(${l[f.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[f.GTLT]}\\s*(${l[f.LOOSEPLAIN]}|${l[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[f.XRANGEPLAIN]})\\s+-\\s+(${l[f.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[f.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(R3,R3.exports);var tg=R3.exports;const Ere=Object.freeze({loose:!0}),Tre=Object.freeze({});var j3=t=>t?typeof t!="object"?Ere:t:Tre;const AM=/^[0-9]+$/,PM=(t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;const n=AM.test(t),i=AM.test(e);return n&&i&&(t=+t,e=+e),t===e?0:n&&!i?-1:i&&!n?1:t<e?-1:1};var DM={compareIdentifiers:PM,rcompareIdentifiers:(t,e)=>PM(e,t)};const Yv=qv,{MAX_LENGTH:IM,MAX_SAFE_INTEGER:Vv}=Zv,{safeRe:Xv,t:Gv}=tg,$re=j3,{compareIdentifiers:F3}=DM;var Lr=class Ha{constructor(e,n){if(n=$re(n),e instanceof Ha){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>IM)throw new TypeError(`version is longer than ${IM} characters`);Yv("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const i=e.trim().match(n.loose?Xv[Gv.LOOSE]:Xv[Gv.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>Vv||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Vv||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Vv||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){const o=+r;if(o>=0&&o<Vv)return o}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Yv("SemVer.compare",this.version,this.options,e),!(e instanceof Ha)){if(typeof e=="string"&&e===this.version)return 0;e=new Ha(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Ha||(e=new Ha(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof Ha||(e=new Ha(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{const i=this.prerelease[n],r=e.prerelease[n];if(Yv("prerelease compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return F3(i,r)}while(++n)}compareBuild(e){e instanceof Ha||(e=new Ha(e,this.options));let n=0;do{const i=this.build[n],r=e.build[n];if(Yv("build compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return F3(i,r)}while(++n)}inc(e,n,i){if(e.startsWith("pre")){if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(n){const r=`-${n}`.match(this.options.loose?Xv[Gv.PRERELEASELOOSE]:Xv[Gv.PRERELEASE]);if(!r||r[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const r=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let o=[n,r];i===!1&&(o=[n]),F3(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const LM=Lr;var cd=(t,e,n=!1)=>{if(t instanceof LM)return t;try{return new LM(t,e)}catch(i){if(!n)return null;throw i}};const Mre=cd;var Nre=(t,e)=>{const n=Mre(t,e);return n?n.version:null};const Are=cd;var Pre=(t,e)=>{const n=Are(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};const RM=Lr;var Dre=(t,e,n,i,r)=>{typeof n=="string"&&(r=i,i=n,n=void 0);try{return new RM(t instanceof RM?t.version:t,n).inc(e,i,r).version}catch{return null}};const jM=cd;var Ire=(t,e)=>{const n=jM(t,null,!0),i=jM(e,null,!0),r=n.compare(i);if(r===0)return null;const o=r>0,s=o?n:i,a=o?i:n,l=!!s.prerelease.length;if(!!a.prerelease.length&&!l){if(!a.patch&&!a.minor)return"major";if(a.compareMain(s)===0)return a.minor&&!a.patch?"minor":"patch"}const f=l?"pre":"";return n.major!==i.major?f+"major":n.minor!==i.minor?f+"minor":n.patch!==i.patch?f+"patch":"prerelease"};const Lre=Lr;var Rre=(t,e)=>new Lre(t,e).major;const jre=Lr;var Fre=(t,e)=>new jre(t,e).minor;const zre=Lr;var Bre=(t,e)=>new zre(t,e).patch;const Wre=cd;var Hre=(t,e)=>{const n=Wre(t,e);return n&&n.prerelease.length?n.prerelease:null};const FM=Lr;var _s=(t,e,n)=>new FM(t,n).compare(new FM(e,n));const Qre=_s;var Ure=(t,e,n)=>Qre(e,t,n);const Zre=_s;var qre=(t,e)=>Zre(t,e,!0);const zM=Lr;var z3=(t,e,n)=>{const i=new zM(t,n),r=new zM(e,n);return i.compare(r)||i.compareBuild(r)};const Yre=z3;var Vre=(t,e)=>t.sort((n,i)=>Yre(n,i,e));const Xre=z3;var Gre=(t,e)=>t.sort((n,i)=>Xre(i,n,e));const Kre=_s;var Kv=(t,e,n)=>Kre(t,e,n)>0;const Jre=_s;var B3=(t,e,n)=>Jre(t,e,n)<0;const eoe=_s;var BM=(t,e,n)=>eoe(t,e,n)===0;const toe=_s;var WM=(t,e,n)=>toe(t,e,n)!==0;const noe=_s;var W3=(t,e,n)=>noe(t,e,n)>=0;const ioe=_s;var H3=(t,e,n)=>ioe(t,e,n)<=0;const roe=BM,ooe=WM,soe=Kv,aoe=W3,loe=B3,uoe=H3;var HM=(t,e,n,i)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return roe(t,n,i);case"!=":return ooe(t,n,i);case">":return soe(t,n,i);case">=":return aoe(t,n,i);case"<":return loe(t,n,i);case"<=":return uoe(t,n,i);default:throw new TypeError(`Invalid operator: ${e}`)}};const coe=Lr,foe=cd,{safeRe:Jv,t:eb}=tg;var doe=(t,e)=>{if(t instanceof coe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Jv[eb.COERCEFULL]:Jv[eb.COERCE]);else{const l=e.includePrerelease?Jv[eb.COERCERTLFULL]:Jv[eb.COERCERTL];let u;for(;(u=l.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),l.lastIndex=u.index+u[1].length+u[2].length;l.lastIndex=-1}if(n===null)return null;const i=n[2],r=n[3]||"0",o=n[4]||"0",s=e.includePrerelease&&n[5]?`-${n[5]}`:"",a=e.includePrerelease&&n[6]?`+${n[6]}`:"";return foe(`${i}.${r}.${o}${s}${a}`,e)};class hoe{constructor(){this.max=1e3,this.map=new Map}get(e){const n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){const r=this.map.keys().next().value;this.delete(r)}this.map.set(e,n)}return this}}var poe=hoe,Q3,QM;function Os(){if(QM)return Q3;QM=1;const t=/\s+/g;class e{constructor(j,q){if(q=r(q),j instanceof e)return j.loose===!!q.loose&&j.includePrerelease===!!q.includePrerelease?j:new e(j.raw,q);if(j instanceof o)return this.raw=j.value,this.set=[[j]],this.formatted=void 0,this;if(this.options=q,this.loose=!!q.loose,this.includePrerelease=!!q.includePrerelease,this.raw=j.trim().replace(t," "),this.set=this.raw.split("||").map(Y=>this.parseRange(Y.trim())).filter(Y=>Y.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const Y=this.set[0];if(this.set=this.set.filter(K=>!y(K[0])),this.set.length===0)this.set=[Y];else if(this.set.length>1){for(const K of this.set)if(K.length===1&&x(K[0])){this.set=[K];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let j=0;j<this.set.length;j++){j>0&&(this.formatted+="||");const q=this.set[j];for(let Y=0;Y<q.length;Y++)Y>0&&(this.formatted+=" "),this.formatted+=q[Y].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(j){const Y=((this.options.includePrerelease&&g)|(this.options.loose&&m))+":"+j,K=i.get(Y);if(K)return K;const te=this.options.loose,oe=te?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];j=j.replace(oe,Q(this.options.includePrerelease)),s("hyphen replace",j),j=j.replace(l[u.COMPARATORTRIM],f),s("comparator trim",j),j=j.replace(l[u.TILDETRIM],d),s("tilde trim",j),j=j.replace(l[u.CARETTRIM],h),s("caret trim",j);let ce=j.split(" ").map(le=>S(le,this.options)).join(" ").split(/\s+/).map(le=>R(le,this.options));te&&(ce=ce.filter(le=>(s("loose invalid filter",le,this.options),!!le.match(l[u.COMPARATORLOOSE])))),s("range list",ce);const U=new Map,F=ce.map(le=>new o(le,this.options));for(const le of F){if(y(le))return[le];U.set(le.value,le)}U.size>1&&U.has("")&&U.delete("");const se=[...U.values()];return i.set(Y,se),se}intersects(j,q){if(!(j instanceof e))throw new TypeError("a Range is required");return this.set.some(Y=>_(Y,q)&&j.set.some(K=>_(K,q)&&Y.every(te=>K.every(oe=>te.intersects(oe,q)))))}test(j){if(!j)return!1;if(typeof j=="string")try{j=new a(j,this.options)}catch{return!1}for(let q=0;q<this.set.length;q++)if(V(this.set[q],j,this.options))return!0;return!1}}Q3=e;const n=poe,i=new n,r=j3,o=tb(),s=qv,a=Lr,{safeRe:l,t:u,comparatorTrimReplace:f,tildeTrimReplace:d,caretTrimReplace:h}=tg,{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:m}=Zv,y=H=>H.value==="<0.0.0-0",x=H=>H.value==="",_=(H,j)=>{let q=!0;const Y=H.slice();let K=Y.pop();for(;q&&Y.length;)q=Y.every(te=>K.intersects(te,j)),K=Y.pop();return q},S=(H,j)=>(H=H.replace(l[u.BUILD],""),s("comp",H,j),H=M(H,j),s("caret",H),H=E(H,j),s("tildes",H),H=W(H,j),s("xrange",H),H=Z(H,j),s("stars",H),H),C=H=>!H||H.toLowerCase()==="x"||H==="*",E=(H,j)=>H.trim().split(/\s+/).map(q=>N(q,j)).join(" "),N=(H,j)=>{const q=j.loose?l[u.TILDELOOSE]:l[u.TILDE];return H.replace(q,(Y,K,te,oe,ce)=>{s("tilde",H,Y,K,te,oe,ce);let U;return C(K)?U="":C(te)?U=`>=${K}.0.0 <${+K+1}.0.0-0`:C(oe)?U=`>=${K}.${te}.0 <${K}.${+te+1}.0-0`:ce?(s("replaceTilde pr",ce),U=`>=${K}.${te}.${oe}-${ce} <${K}.${+te+1}.0-0`):U=`>=${K}.${te}.${oe} <${K}.${+te+1}.0-0`,s("tilde return",U),U})},M=(H,j)=>H.trim().split(/\s+/).map(q=>I(q,j)).join(" "),I=(H,j)=>{s("caret",H,j);const q=j.loose?l[u.CARETLOOSE]:l[u.CARET],Y=j.includePrerelease?"-0":"";return H.replace(q,(K,te,oe,ce,U)=>{s("caret",H,K,te,oe,ce,U);let F;return C(te)?F="":C(oe)?F=`>=${te}.0.0${Y} <${+te+1}.0.0-0`:C(ce)?te==="0"?F=`>=${te}.${oe}.0${Y} <${te}.${+oe+1}.0-0`:F=`>=${te}.${oe}.0${Y} <${+te+1}.0.0-0`:U?(s("replaceCaret pr",U),te==="0"?oe==="0"?F=`>=${te}.${oe}.${ce}-${U} <${te}.${oe}.${+ce+1}-0`:F=`>=${te}.${oe}.${ce}-${U} <${te}.${+oe+1}.0-0`:F=`>=${te}.${oe}.${ce}-${U} <${+te+1}.0.0-0`):(s("no pr"),te==="0"?oe==="0"?F=`>=${te}.${oe}.${ce}${Y} <${te}.${oe}.${+ce+1}-0`:F=`>=${te}.${oe}.${ce}${Y} <${te}.${+oe+1}.0-0`:F=`>=${te}.${oe}.${ce} <${+te+1}.0.0-0`),s("caret return",F),F})},W=(H,j)=>(s("replaceXRanges",H,j),H.split(/\s+/).map(q=>B(q,j)).join(" ")),B=(H,j)=>{H=H.trim();const q=j.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return H.replace(q,(Y,K,te,oe,ce,U)=>{s("xRange",H,Y,K,te,oe,ce,U);const F=C(te),se=F||C(oe),le=se||C(ce),pe=le;return K==="="&&pe&&(K=""),U=j.includePrerelease?"-0":"",F?K===">"||K==="<"?Y="<0.0.0-0":Y="*":K&&pe?(se&&(oe=0),ce=0,K===">"?(K=">=",se?(te=+te+1,oe=0,ce=0):(oe=+oe+1,ce=0)):K==="<="&&(K="<",se?te=+te+1:oe=+oe+1),K==="<"&&(U="-0"),Y=`${K+te}.${oe}.${ce}${U}`):se?Y=`>=${te}.0.0${U} <${+te+1}.0.0-0`:le&&(Y=`>=${te}.${oe}.0${U} <${te}.${+oe+1}.0-0`),s("xRange return",Y),Y})},Z=(H,j)=>(s("replaceStars",H,j),H.trim().replace(l[u.STAR],"")),R=(H,j)=>(s("replaceGTE0",H,j),H.trim().replace(l[j.includePrerelease?u.GTE0PRE:u.GTE0],"")),Q=H=>(j,q,Y,K,te,oe,ce,U,F,se,le,pe)=>(C(Y)?q="":C(K)?q=`>=${Y}.0.0${H?"-0":""}`:C(te)?q=`>=${Y}.${K}.0${H?"-0":""}`:oe?q=`>=${q}`:q=`>=${q}${H?"-0":""}`,C(F)?U="":C(se)?U=`<${+F+1}.0.0-0`:C(le)?U=`<${F}.${+se+1}.0-0`:pe?U=`<=${F}.${se}.${le}-${pe}`:H?U=`<${F}.${se}.${+le+1}-0`:U=`<=${U}`,`${q} ${U}`.trim()),V=(H,j,q)=>{for(let Y=0;Y<H.length;Y++)if(!H[Y].test(j))return!1;if(j.prerelease.length&&!q.includePrerelease){for(let Y=0;Y<H.length;Y++)if(s(H[Y].semver),H[Y].semver!==o.ANY&&H[Y].semver.prerelease.length>0){const K=H[Y].semver;if(K.major===j.major&&K.minor===j.minor&&K.patch===j.patch)return!0}return!1}return!0};return Q3}var U3,UM;function tb(){if(UM)return U3;UM=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(f,d){if(d=n(d),f instanceof e){if(f.loose===!!d.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),s("comparator",f,d),this.options=d,this.loose=!!d.loose,this.parse(f),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(f){const d=this.options.loose?i[r.COMPARATORLOOSE]:i[r.COMPARATOR],h=f.match(d);if(!h)throw new TypeError(`Invalid comparator: ${f}`);this.operator=h[1]!==void 0?h[1]:"",this.operator==="="&&(this.operator=""),h[2]?this.semver=new a(h[2],this.options.loose):this.semver=t}toString(){return this.value}test(f){if(s("Comparator.test",f,this.options.loose),this.semver===t||f===t)return!0;if(typeof f=="string")try{f=new a(f,this.options)}catch{return!1}return o(f,this.operator,this.semver,this.options)}intersects(f,d){if(!(f instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(f.value,d).test(this.value):f.operator===""?f.value===""?!0:new l(this.value,d).test(f.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||o(this.semver,"<",f.semver,d)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||o(this.semver,">",f.semver,d)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}U3=e;const n=j3,{safeRe:i,t:r}=tg,o=HM,s=qv,a=Lr,l=Os();return U3}const goe=Os();var nb=(t,e,n)=>{try{e=new goe(e,n)}catch{return!1}return e.test(t)};const moe=Os();var voe=(t,e)=>new moe(t,e).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" "));const boe=Lr,koe=Os();var yoe=(t,e,n)=>{let i=null,r=null,o=null;try{o=new koe(e,n)}catch{return null}return t.forEach(s=>{o.test(s)&&(!i||r.compare(s)===-1)&&(i=s,r=new boe(i,n))}),i};const woe=Lr,xoe=Os();var _oe=(t,e,n)=>{let i=null,r=null,o=null;try{o=new xoe(e,n)}catch{return null}return t.forEach(s=>{o.test(s)&&(!i||r.compare(s)===1)&&(i=s,r=new woe(i,n))}),i};const Z3=Lr,Ooe=Os(),ZM=Kv;var Soe=(t,e)=>{t=new Ooe(t,e);let n=new Z3("0.0.0");if(t.test(n)||(n=new Z3("0.0.0-0"),t.test(n)))return n;n=null;for(let i=0;i<t.set.length;++i){const r=t.set[i];let o=null;r.forEach(s=>{const a=new Z3(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!o||ZM(a,o))&&(o=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),o&&(!n||ZM(n,o))&&(n=o)}return n&&t.test(n)?n:null};const Coe=Os();var Eoe=(t,e)=>{try{return new Coe(t,e).range||"*"}catch{return null}};const Toe=Lr,qM=tb(),{ANY:$oe}=qM,Moe=Os(),Noe=nb,YM=Kv,VM=B3,Aoe=H3,Poe=W3;var q3=(t,e,n,i)=>{t=new Toe(t,i),e=new Moe(e,i);let r,o,s,a,l;switch(n){case">":r=YM,o=Aoe,s=VM,a=">",l=">=";break;case"<":r=VM,o=Poe,s=YM,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Noe(t,e,i))return!1;for(let u=0;u<e.set.length;++u){const f=e.set[u];let d=null,h=null;if(f.forEach(g=>{g.semver===$oe&&(g=new qM(">=0.0.0")),d=d||g,h=h||g,r(g.semver,d.semver,i)?d=g:s(g.semver,h.semver,i)&&(h=g)}),d.operator===a||d.operator===l||(!h.operator||h.operator===a)&&o(t,h.semver))return!1;if(h.operator===l&&s(t,h.semver))return!1}return!0};const Doe=q3;var Ioe=(t,e,n)=>Doe(t,e,">",n);const Loe=q3;var Roe=(t,e,n)=>Loe(t,e,"<",n);const XM=Os();var joe=(t,e,n)=>(t=new XM(t,n),e=new XM(e,n),t.intersects(e,n));const Foe=nb,zoe=_s;var Boe=(t,e,n)=>{const i=[];let r=null,o=null;const s=t.sort((f,d)=>zoe(f,d,n));for(const f of s)Foe(f,e,n)?(o=f,r||(r=f)):(o&&i.push([r,o]),o=null,r=null);r&&i.push([r,null]);const a=[];for(const[f,d]of i)f===d?a.push(f):!d&&f===s[0]?a.push("*"):d?f===s[0]?a.push(`<=${d}`):a.push(`${f} - ${d}`):a.push(`>=${f}`);const l=a.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e};const GM=Os(),Y3=tb(),{ANY:V3}=Y3,ng=nb,X3=_s,Woe=(t,e,n={})=>{if(t===e)return!0;t=new GM(t,n),e=new GM(e,n);let i=!1;e:for(const r of t.set){for(const o of e.set){const s=Qoe(r,o,n);if(i=i||s!==null,s)continue e}if(i)return!1}return!0},Hoe=[new Y3(">=0.0.0-0")],KM=[new Y3(">=0.0.0")],Qoe=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===V3){if(e.length===1&&e[0].semver===V3)return!0;n.includePrerelease?t=Hoe:t=KM}if(e.length===1&&e[0].semver===V3){if(n.includePrerelease)return!0;e=KM}const i=new Set;let r,o;for(const g of t)g.operator===">"||g.operator===">="?r=JM(r,g,n):g.operator==="<"||g.operator==="<="?o=e7(o,g,n):i.add(g.semver);if(i.size>1)return null;let s;if(r&&o){if(s=X3(r.semver,o.semver,n),s>0)return null;if(s===0&&(r.operator!==">="||o.operator!=="<="))return null}for(const g of i){if(r&&!ng(g,String(r),n)||o&&!ng(g,String(o),n))return null;for(const m of e)if(!ng(g,String(m),n))return!1;return!0}let a,l,u,f,d=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,h=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;d&&d.prerelease.length===1&&o.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const g of e){if(f=f||g.operator===">"||g.operator===">=",u=u||g.operator==="<"||g.operator==="<=",r){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator===">"||g.operator===">="){if(a=JM(r,g,n),a===g&&a!==r)return!1}else if(r.operator===">="&&!ng(r.semver,String(g),n))return!1}if(o){if(d&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===d.major&&g.semver.minor===d.minor&&g.semver.patch===d.patch&&(d=!1),g.operator==="<"||g.operator==="<="){if(l=e7(o,g,n),l===g&&l!==o)return!1}else if(o.operator==="<="&&!ng(o.semver,String(g),n))return!1}if(!g.operator&&(o||r)&&s!==0)return!1}return!(r&&u&&!o&&s!==0||o&&f&&!r&&s!==0||h||d)},JM=(t,e,n)=>{if(!t)return e;const i=X3(t.semver,e.semver,n);return i>0?t:i<0||e.operator===">"&&t.operator===">="?e:t},e7=(t,e,n)=>{if(!t)return e;const i=X3(t.semver,e.semver,n);return i<0?t:i>0||e.operator==="<"&&t.operator==="<="?e:t};var Uoe=Woe;const G3=tg,t7=Zv,Zoe=Lr,n7=DM,qoe=cd,Yoe=Nre,Voe=Pre,Xoe=Dre,Goe=Ire,Koe=Rre,Joe=Fre,ese=Bre,tse=Hre,nse=_s,ise=Ure,rse=qre,ose=z3,sse=Vre,ase=Gre,lse=Kv,use=B3,cse=BM,fse=WM,dse=W3,hse=H3,pse=HM,gse=doe,mse=tb(),vse=Os();var ib={parse:qoe,valid:Yoe,clean:Voe,inc:Xoe,diff:Goe,major:Koe,minor:Joe,patch:ese,prerelease:tse,compare:nse,rcompare:ise,compareLoose:rse,compareBuild:ose,sort:sse,rsort:ase,gt:lse,lt:use,eq:cse,neq:fse,gte:dse,lte:hse,cmp:pse,coerce:gse,Comparator:mse,Range:vse,satisfies:nb,toComparators:voe,maxSatisfying:yoe,minSatisfying:_oe,minVersion:Soe,validRange:Eoe,outside:q3,gtr:Ioe,ltr:Roe,intersects:joe,simplifyRange:Boe,subset:Uoe,SemVer:Zoe,re:G3.re,src:G3.src,tokens:G3.t,SEMVER_SPEC_VERSION:t7.SEMVER_SPEC_VERSION,RELEASE_TYPES:t7.RELEASE_TYPES,compareIdentifiers:n7.compareIdentifiers,rcompareIdentifiers:n7.rcompareIdentifiers};const i7=ib;var bse=function(t="",{ghostVersion:e="4.0",type:n="mobiledoc"}={}){const i=i7.coerce(e);return typeof t!="string"||(t||"").trim()===""?"":i7.satisfies(i,"<4.x")?n==="markdown"?t.replace(/[^\w]/g,"").toLowerCase():t.replace(/[<>&"?]/g,"").trim().replace(/[^\w]/g,"-").replace(/-{2,}/g,"-").toLowerCase():encodeURIComponent(t.trim().toLowerCase().replace(/[\][!"#$%&'()*+,./:;<=>?@\\^_{|}~]/g,"").replace(/\s+/g,"-").replace(/^-|-{2,}|-$/g,""))},kse={slugify:bse},yse=kse,K3,r7;function rb(){if(r7)return K3;r7=1;function t(u,f,d,h){const g=Number(u[f].meta.id+1).toString();let m="";return typeof h.docId=="string"&&(m=`-${h.docId}-`),m+g}function e(u,f){let d=Number(u[f].meta.id+1).toString();return u[f].meta.subId>0&&(d+=`:${u[f].meta.subId}`),`[${d}]`}function n(u,f,d,h,g){const m=g.rules.footnote_anchor_name(u,f,d,h,g),y=g.rules.footnote_caption(u,f,d,h,g);let x=m;return u[f].meta.subId>0&&(x+=`:${u[f].meta.subId}`),`<sup class="footnote-ref"><a href="#fn${m}" id="fnref${x}">${y}</a></sup>`}function i(u,f,d){return(d.xhtmlOut?`<hr class="footnotes-sep" />
|
||
`:`<hr class="footnotes-sep">
|
||
`)+`<section class="footnotes">
|
||
<ol class="footnotes-list">
|
||
`}function r(){return`</ol>
|
||
</section>
|
||
`}function o(u,f,d,h,g){let m=g.rules.footnote_anchor_name(u,f,d,h,g);return u[f].meta.subId>0&&(m+=`:${u[f].meta.subId}`),`<li id="fn${m}" class="footnote-item">`}function s(){return`</li>
|
||
`}function a(u,f,d,h,g){let m=g.rules.footnote_anchor_name(u,f,d,h,g);return u[f].meta.subId>0&&(m+=`:${u[f].meta.subId}`),` <a href="#fnref${m}" class="footnote-backref">↩︎</a>`}function l(u){const f=u.helpers.parseLinkLabel,d=u.utils.isSpace;u.renderer.rules.footnote_ref=n,u.renderer.rules.footnote_block_open=i,u.renderer.rules.footnote_block_close=r,u.renderer.rules.footnote_open=o,u.renderer.rules.footnote_close=s,u.renderer.rules.footnote_anchor=a,u.renderer.rules.footnote_caption=e,u.renderer.rules.footnote_anchor_name=t;function h(x,_,S,C){const E=x.bMarks[_]+x.tShift[_],N=x.eMarks[_];if(E+4>N||x.src.charCodeAt(E)!==91||x.src.charCodeAt(E+1)!==94)return!1;let M;for(M=E+2;M<N;M++){if(x.src.charCodeAt(M)===32)return!1;if(x.src.charCodeAt(M)===93)break}if(M===E+2||M+1>=N||x.src.charCodeAt(++M)!==58)return!1;if(C)return!0;M++,x.env.footnotes||(x.env.footnotes={}),x.env.footnotes.refs||(x.env.footnotes.refs={});const I=x.src.slice(E+2,M-2);x.env.footnotes.refs[`:${I}`]=-1;const W=new x.Token("footnote_reference_open","",1);W.meta={label:I},W.level=x.level++,x.tokens.push(W);const B=x.bMarks[_],Z=x.tShift[_],R=x.sCount[_],Q=x.parentType,V=M,H=x.sCount[_]+M-(x.bMarks[_]+x.tShift[_]);let j=H;for(;M<N;){const Y=x.src.charCodeAt(M);if(d(Y))Y===9?j+=4-j%4:j++;else break;M++}x.tShift[_]=M-V,x.sCount[_]=j-H,x.bMarks[_]=V,x.blkIndent+=4,x.parentType="footnote",x.sCount[_]<x.blkIndent&&(x.sCount[_]+=x.blkIndent),x.md.block.tokenize(x,_,S,!0),x.parentType=Q,x.blkIndent-=4,x.tShift[_]=Z,x.sCount[_]=R,x.bMarks[_]=B;const q=new x.Token("footnote_reference_close","",-1);return q.level=--x.level,x.tokens.push(q),!0}function g(x,_){const S=x.posMax,C=x.pos;if(C+2>=S||x.src.charCodeAt(C)!==94||x.src.charCodeAt(C+1)!==91)return!1;const E=C+2,N=f(x,C+1);if(N<0)return!1;if(!_){x.env.footnotes||(x.env.footnotes={}),x.env.footnotes.list||(x.env.footnotes.list=[]);const M=x.env.footnotes.list.length,I=[];x.md.inline.parse(x.src.slice(E,N),x.md,x.env,I);const W=x.push("footnote_ref","",0);W.meta={id:M},x.env.footnotes.list[M]={content:x.src.slice(E,N),tokens:I}}return x.pos=N+1,x.posMax=S,!0}function m(x,_){const S=x.posMax,C=x.pos;if(C+3>S||!x.env.footnotes||!x.env.footnotes.refs||x.src.charCodeAt(C)!==91||x.src.charCodeAt(C+1)!==94)return!1;let E;for(E=C+2;E<S;E++){if(x.src.charCodeAt(E)===32||x.src.charCodeAt(E)===10)return!1;if(x.src.charCodeAt(E)===93)break}if(E===C+2||E>=S)return!1;E++;const N=x.src.slice(C+2,E-1);if(typeof x.env.footnotes.refs[`:${N}`]>"u")return!1;if(!_){x.env.footnotes.list||(x.env.footnotes.list=[]);let M;x.env.footnotes.refs[`:${N}`]<0?(M=x.env.footnotes.list.length,x.env.footnotes.list[M]={label:N,count:0},x.env.footnotes.refs[`:${N}`]=M):M=x.env.footnotes.refs[`:${N}`];const I=x.env.footnotes.list[M].count;x.env.footnotes.list[M].count++;const W=x.push("footnote_ref","",0);W.meta={id:M,subId:I,label:N}}return x.pos=E,x.posMax=S,!0}function y(x){let _,S,C,E=!1;const N={};if(!x.env.footnotes||(x.tokens=x.tokens.filter(function(I){return I.type==="footnote_reference_open"?(E=!0,S=[],C=I.meta.label,!1):I.type==="footnote_reference_close"?(E=!1,N[":"+C]=S,!1):(E&&S.push(I),!E)}),!x.env.footnotes.list))return;const M=x.env.footnotes.list;x.tokens.push(new x.Token("footnote_block_open","",1));for(let I=0,W=M.length;I<W;I++){const B=new x.Token("footnote_open","",1);if(B.meta={id:I,label:M[I].label},x.tokens.push(B),M[I].tokens){_=[];const Q=new x.Token("paragraph_open","p",1);Q.block=!0,_.push(Q);const V=new x.Token("inline","",0);V.children=M[I].tokens,V.content=M[I].content,_.push(V);const H=new x.Token("paragraph_close","p",-1);H.block=!0,_.push(H)}else M[I].label&&(_=N[`:${M[I].label}`]);_&&(x.tokens=x.tokens.concat(_));let Z;x.tokens[x.tokens.length-1].type==="paragraph_close"?Z=x.tokens.pop():Z=null;const R=M[I].count>0?M[I].count:1;for(let Q=0;Q<R;Q++){const V=new x.Token("footnote_anchor","",0);V.meta={id:I,subId:Q,label:M[I].label},x.tokens.push(V)}Z&&x.tokens.push(Z),x.tokens.push(new x.Token("footnote_close","",-1))}x.tokens.push(new x.Token("footnote_block_close","",-1))}u.block.ruler.before("reference","footnote_def",h,{alt:["paragraph","reference"]}),u.inline.ruler.after("image","footnote_inline",g),u.inline.ruler.after("footnote_inline","footnote_ref",m),u.core.ruler.after("inline","footnote_tail",y)}return K3=l,K3}var J3,o7;function ob(){return o7||(o7=1,J3=function(e){function n(i,r,o,s){var a,l,u,f,d=i.bMarks[r]+i.tShift[r],h=i.eMarks[r];if(a=i.src.charCodeAt(d),a!==35||d>=h)return!1;for(l=1,a=i.src.charCodeAt(++d);a===35&&d<h&&l<=6;)l++,a=i.src.charCodeAt(++d);return l>6?!1:(s||(h=i.skipCharsBack(h,32,d),u=i.skipCharsBack(h,35,d),u>d&&i.src.charCodeAt(u-1)===32&&(h=u),i.line=r+1,f=i.push("heading_open","h"+String(l),1),f.markup="########".slice(0,l),f.map=[r,i.line],f=i.push("inline","",0),f.content=i.src.slice(d,h).trim(),f.map=[r,i.line],f.children=[],f=i.push("heading_close","h"+String(l),-1),f.markup="########".slice(0,l)),!0)}e.block.ruler.at("heading",n,{alt:["paragraph","reference","blockquote"]})}),J3}var eO,s7;function sb(){if(s7)return eO;s7=1;function t(e){function n(r,o){const s=r.pos,a=r.src.charCodeAt(s);if(o||a!==61)return!1;const l=r.scanDelims(r.pos,!0);let u=l.length;const f=String.fromCharCode(a);if(u<2)return!1;if(u%2){const d=r.push("text","",0);d.content=f,u--}for(let d=0;d<u;d+=2){const h=r.push("text","",0);h.content=f+f,!(!l.can_open&&!l.can_close)&&r.delimiters.push({marker:a,length:0,jump:d/2,token:r.tokens.length-1,end:-1,open:l.can_open,close:l.can_close})}return r.pos+=l.length,!0}function i(r,o){const s=[],a=o.length;for(let l=0;l<a;l++){const u=o[l];if(u.marker!==61||u.end===-1)continue;const f=o[u.end],d=r.tokens[u.token];d.type="mark_open",d.tag="mark",d.nesting=1,d.markup="==",d.content="";const h=r.tokens[f.token];h.type="mark_close",h.tag="mark",h.nesting=-1,h.markup="==",h.content="",r.tokens[f.token-1].type==="text"&&r.tokens[f.token-1].content==="="&&s.push(f.token-1)}for(;s.length;){const l=s.pop();let u=l+1;for(;u<r.tokens.length&&r.tokens[u].type==="mark_close";)u++;if(u--,l!==u){const f=r.tokens[u];r.tokens[u]=r.tokens[l],r.tokens[l]=f}}}e.inline.ruler.before("emphasis","mark",n),e.inline.ruler2.before("emphasis","mark",function(r){let o;const s=r.tokens_meta,a=(r.tokens_meta||[]).length;for(i(r,r.delimiters),o=0;o<a;o++)s[o]&&s[o].delimiters&&i(r,s[o].delimiters)})}return eO=t,eO}var ab={exports:{}};const ig=tv(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var lb={exports:{}},ub={exports:{}},a7;function wse(){return a7||(a7=1,typeof Object.create=="function"?ub.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ub.exports=function(e,n){if(n){e.super_=n;var i=function(){};i.prototype=n.prototype,e.prototype=new i,e.prototype.constructor=e}}),ub.exports}var cb={exports:{}},l7;function xse(){if(l7)return cb.exports;l7=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(N,M,I){return Function.prototype.apply.call(N,M,I)},n;t&&typeof t.ownKeys=="function"?n=t.ownKeys:Object.getOwnPropertySymbols?n=function(N){return Object.getOwnPropertyNames(N).concat(Object.getOwnPropertySymbols(N))}:n=function(N){return Object.getOwnPropertyNames(N)};function i(E){console&&console.warn&&console.warn(E)}var r=Number.isNaN||function(N){return N!==N};function o(){o.init.call(this)}cb.exports=o,cb.exports.once=_,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(E){if(typeof E!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof E)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(E){if(typeof E!="number"||E<0||r(E))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+E+".");s=E}}),o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(N){if(typeof N!="number"||N<0||r(N))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+N+".");return this._maxListeners=N,this};function l(E){return E._maxListeners===void 0?o.defaultMaxListeners:E._maxListeners}o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(N){for(var M=[],I=1;I<arguments.length;I++)M.push(arguments[I]);var W=N==="error",B=this._events;if(B!==void 0)W=W&&B.error===void 0;else if(!W)return!1;if(W){var Z;if(M.length>0&&(Z=M[0]),Z instanceof Error)throw Z;var R=new Error("Unhandled error."+(Z?" ("+Z.message+")":""));throw R.context=Z,R}var Q=B[N];if(Q===void 0)return!1;if(typeof Q=="function")e(Q,this,M);else for(var V=Q.length,H=m(Q,V),I=0;I<V;++I)e(H[I],this,M);return!0};function u(E,N,M,I){var W,B,Z;if(a(M),B=E._events,B===void 0?(B=E._events=Object.create(null),E._eventsCount=0):(B.newListener!==void 0&&(E.emit("newListener",N,M.listener?M.listener:M),B=E._events),Z=B[N]),Z===void 0)Z=B[N]=M,++E._eventsCount;else if(typeof Z=="function"?Z=B[N]=I?[M,Z]:[Z,M]:I?Z.unshift(M):Z.push(M),W=l(E),W>0&&Z.length>W&&!Z.warned){Z.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(N)+" listeners added. Use emitter.setMaxListeners() to increase limit");R.name="MaxListenersExceededWarning",R.emitter=E,R.type=N,R.count=Z.length,i(R)}return E}o.prototype.addListener=function(N,M){return u(this,N,M,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(N,M){return u(this,N,M,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(E,N,M){var I={fired:!1,wrapFn:void 0,target:E,type:N,listener:M},W=f.bind(I);return W.listener=M,I.wrapFn=W,W}o.prototype.once=function(N,M){return a(M),this.on(N,d(this,N,M)),this},o.prototype.prependOnceListener=function(N,M){return a(M),this.prependListener(N,d(this,N,M)),this},o.prototype.removeListener=function(N,M){var I,W,B,Z,R;if(a(M),W=this._events,W===void 0)return this;if(I=W[N],I===void 0)return this;if(I===M||I.listener===M)--this._eventsCount===0?this._events=Object.create(null):(delete W[N],W.removeListener&&this.emit("removeListener",N,I.listener||M));else if(typeof I!="function"){for(B=-1,Z=I.length-1;Z>=0;Z--)if(I[Z]===M||I[Z].listener===M){R=I[Z].listener,B=Z;break}if(B<0)return this;B===0?I.shift():y(I,B),I.length===1&&(W[N]=I[0]),W.removeListener!==void 0&&this.emit("removeListener",N,R||M)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(N){var M,I,W;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[N]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[N]),this;if(arguments.length===0){var B=Object.keys(I),Z;for(W=0;W<B.length;++W)Z=B[W],Z!=="removeListener"&&this.removeAllListeners(Z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(M=I[N],typeof M=="function")this.removeListener(N,M);else if(M!==void 0)for(W=M.length-1;W>=0;W--)this.removeListener(N,M[W]);return this};function h(E,N,M){var I=E._events;if(I===void 0)return[];var W=I[N];return W===void 0?[]:typeof W=="function"?M?[W.listener||W]:[W]:M?x(W):m(W,W.length)}o.prototype.listeners=function(N){return h(this,N,!0)},o.prototype.rawListeners=function(N){return h(this,N,!1)},o.listenerCount=function(E,N){return typeof E.listenerCount=="function"?E.listenerCount(N):g.call(E,N)},o.prototype.listenerCount=g;function g(E){var N=this._events;if(N!==void 0){var M=N[E];if(typeof M=="function")return 1;if(M!==void 0)return M.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function m(E,N){for(var M=new Array(N),I=0;I<N;++I)M[I]=E[I];return M}function y(E,N){for(;N+1<E.length;N++)E[N]=E[N+1];E.pop()}function x(E){for(var N=new Array(E.length),M=0;M<N.length;++M)N[M]=E[M].listener||E[M];return N}function _(E,N){return new Promise(function(M,I){function W(Z){E.removeListener(N,B),I(Z)}function B(){typeof E.removeListener=="function"&&E.removeListener("error",W),M([].slice.call(arguments))}C(E,N,B,{once:!0}),N!=="error"&&S(E,W,{once:!0})})}function S(E,N,M){typeof E.on=="function"&&C(E,"error",N,M)}function C(E,N,M,I){if(typeof E.on=="function")I.once?E.once(N,M):E.on(N,M);else if(typeof E.addEventListener=="function")E.addEventListener(N,function W(B){I.once&&E.removeEventListener(N,W),M(B)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof E)}return cb.exports}var u7;function _se(){if(u7)return lb.exports;u7=1;var t=wse(),e=xse().EventEmitter;lb.exports=n,lb.exports.default=n;function n(l){if(!(this instanceof n))return new n(l);e.call(this),l=l||{},this.concurrency=l.concurrency||1/0,this.timeout=l.timeout||0,this.autostart=l.autostart||!1,this.results=l.results||null,this.pending=0,this.session=0,this.running=!1,this.jobs=[],this.timers={}}t(n,e);var i=["pop","shift","indexOf","lastIndexOf"];i.forEach(function(l){n.prototype[l]=function(){return Array.prototype[l].apply(this.jobs,arguments)}}),n.prototype.slice=function(l,u){return this.jobs=this.jobs.slice(l,u),this},n.prototype.reverse=function(){return this.jobs.reverse(),this};var r=["push","unshift","splice"];r.forEach(function(l){n.prototype[l]=function(){var u=Array.prototype[l].apply(this.jobs,arguments);return this.autostart&&this.start(),u}}),Object.defineProperty(n.prototype,"length",{get:function(){return this.pending+this.jobs.length}}),n.prototype.start=function(l){if(l&&s.call(this,l),this.running=!0,this.pending>=this.concurrency)return;if(this.jobs.length===0){this.pending===0&&a.call(this);return}var u=this,f=this.jobs.shift(),d=!0,h=this.session,g=null,m=!1,y=null,x=f.hasOwnProperty("timeout")?f.timeout:this.timeout;function _(C,E){d&&u.session===h&&(d=!1,u.pending--,g!==null&&(delete u.timers[g],clearTimeout(g)),C?u.emit("error",C,f):m===!1&&(y!==null&&(u.results[y]=Array.prototype.slice.call(arguments,1)),u.emit("success",E,f)),u.session===h&&(u.pending===0&&u.jobs.length===0?a.call(u):u.running&&u.start()))}x&&(g=setTimeout(function(){m=!0,u.listeners("timeout").length>0?u.emit("timeout",_,f):_()},x),this.timers[g]=g),this.results&&(y=this.results.length,this.results[y]=null),this.pending++,u.emit("start",f);var S=f(_);S&&S.then&&typeof S.then=="function"&&S.then(function(C){return _(null,C)}).catch(function(C){return _(C||!0)}),this.running&&this.jobs.length>0&&this.start()},n.prototype.stop=function(){this.running=!1},n.prototype.end=function(l){o.call(this),this.jobs.length=0,this.pending=0,a.call(this,l)};function o(){for(var l in this.timers){var u=this.timers[l];delete this.timers[l],clearTimeout(u)}}function s(l){var u=this;this.on("error",f),this.on("end",d);function f(h){u.end(h)}function d(h){u.removeListener("error",f),u.removeListener("end",d),l(h,this.results)}}function a(l){this.session++,this.running=!1,this.emit("end",l)}return lb.exports}var rg={},og={},tO={},c7;function ji(){return c7||(c7=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.findBox=t.readUInt=t.readUInt32LE=t.readUInt32BE=t.readInt32LE=t.readUInt24LE=t.readUInt16LE=t.readUInt16BE=t.readInt16LE=t.toHexString=t.toUTF8String=void 0;const e=new TextDecoder,n=(y,x=0,_=y.length)=>e.decode(y.slice(x,_));t.toUTF8String=n;const i=(y,x=0,_=y.length)=>y.slice(x,_).reduce((S,C)=>S+("0"+C.toString(16)).slice(-2),"");t.toHexString=i;const r=(y,x=0)=>{const _=y[x]+y[x+1]*256;return _|(_&2**15)*131070};t.readInt16LE=r;const o=(y,x=0)=>y[x]*2**8+y[x+1];t.readUInt16BE=o;const s=(y,x=0)=>y[x]+y[x+1]*2**8;t.readUInt16LE=s;const a=(y,x=0)=>y[x]+y[x+1]*2**8+y[x+2]*2**16;t.readUInt24LE=a;const l=(y,x=0)=>y[x]+y[x+1]*2**8+y[x+2]*2**16+(y[x+3]<<24);t.readInt32LE=l;const u=(y,x=0)=>y[x]*2**24+y[x+1]*2**16+y[x+2]*2**8+y[x+3];t.readUInt32BE=u;const f=(y,x=0)=>y[x]+y[x+1]*2**8+y[x+2]*2**16+y[x+3]*2**24;t.readUInt32LE=f;const d={readUInt16BE:t.readUInt16BE,readUInt16LE:t.readUInt16LE,readUInt32BE:t.readUInt32BE,readUInt32LE:t.readUInt32LE};function h(y,x,_,S){_=_||0;const C=S?"BE":"LE",E="readUInt"+x+C;return d[E](y,_)}t.readUInt=h;function g(y,x){if(y.length-x<4)return;const _=(0,t.readUInt32BE)(y,x);if(!(y.length-x<_))return{name:(0,t.toUTF8String)(y,4+x,8+x),offset:x,size:_}}function m(y,x,_){for(;_<y.length;){const S=g(y,_);if(!S)break;if(S.name===x)return S;_+=S.size}}t.findBox=m}(tO)),tO}var f7;function Ose(){if(f7)return og;f7=1,Object.defineProperty(og,"__esModule",{value:!0}),og.BMP=void 0;const t=ji();return og.BMP={validate:e=>(0,t.toUTF8String)(e,0,2)==="BM",calculate:e=>({height:Math.abs((0,t.readInt32LE)(e,22)),width:(0,t.readUInt32LE)(e,18)})},og}var sg={},ag={},d7;function h7(){if(d7)return ag;d7=1,Object.defineProperty(ag,"__esModule",{value:!0}),ag.ICO=void 0;const t=ji(),e=1,n=6,i=16;function r(s,a){const l=s[a];return l===0?256:l}function o(s,a){const l=n+a*i;return{height:r(s,l+1),width:r(s,l)}}return ag.ICO={validate(s){const a=(0,t.readUInt16LE)(s,0),l=(0,t.readUInt16LE)(s,4);return a!==0||l===0?!1:(0,t.readUInt16LE)(s,2)===e},calculate(s){const a=(0,t.readUInt16LE)(s,4),l=o(s,0);if(a===1)return l;const u=[l];for(let f=1;f<a;f+=1)u.push(o(s,f));return{height:l.height,images:u,width:l.width}}},ag}var p7;function Sse(){if(p7)return sg;p7=1,Object.defineProperty(sg,"__esModule",{value:!0}),sg.CUR=void 0;const t=h7(),e=ji(),n=2;return sg.CUR={validate(i){const r=(0,e.readUInt16LE)(i,0),o=(0,e.readUInt16LE)(i,4);return r!==0||o===0?!1:(0,e.readUInt16LE)(i,2)===n},calculate:i=>t.ICO.calculate(i)},sg}var lg={},g7;function Cse(){if(g7)return lg;g7=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.DDS=void 0;const t=ji();return lg.DDS={validate:e=>(0,t.readUInt32LE)(e,0)===542327876,calculate:e=>({height:(0,t.readUInt32LE)(e,12),width:(0,t.readUInt32LE)(e,16)})},lg}var ug={},m7;function Ese(){if(m7)return ug;m7=1,Object.defineProperty(ug,"__esModule",{value:!0}),ug.GIF=void 0;const t=ji(),e=/^GIF8[79]a/;return ug.GIF={validate:n=>e.test((0,t.toUTF8String)(n,0,6)),calculate:n=>({height:(0,t.readUInt16LE)(n,8),width:(0,t.readUInt16LE)(n,6)})},ug}var cg={},v7;function Tse(){if(v7)return cg;v7=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.HEIF=void 0;const t=ji(),e={avif:"avif",mif1:"heif",msf1:"heif",heic:"heic",heix:"heic",hevc:"heic",hevx:"heic"};return cg.HEIF={validate(n){const i=(0,t.toUTF8String)(n,4,8),r=(0,t.toUTF8String)(n,8,12);return i==="ftyp"&&r in e},calculate(n){const i=(0,t.findBox)(n,"meta",0),r=i&&(0,t.findBox)(n,"iprp",i.offset+12),o=r&&(0,t.findBox)(n,"ipco",r.offset+8),s=o&&(0,t.findBox)(n,"ispe",o.offset+8);if(s)return{height:(0,t.readUInt32BE)(n,s.offset+16),width:(0,t.readUInt32BE)(n,s.offset+12),type:(0,t.toUTF8String)(n,8,12)};throw new TypeError("Invalid HEIF, no size found")}},cg}var fg={},b7;function $se(){if(b7)return fg;b7=1,Object.defineProperty(fg,"__esModule",{value:!0}),fg.ICNS=void 0;const t=ji(),e=8,n=4,i=4,r={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function o(a,l){const u=l+i;return[(0,t.toUTF8String)(a,l,u),(0,t.readUInt32BE)(a,u)]}function s(a){const l=r[a];return{width:l,height:l,type:a}}return fg.ICNS={validate:a=>(0,t.toUTF8String)(a,0,4)==="icns",calculate(a){const l=a.length,u=(0,t.readUInt32BE)(a,n);let f=e,d=o(a,f),h=s(d[0]);if(f+=d[1],f===u)return h;const g={height:h.height,images:[h],width:h.width};for(;f<u&&f<l;)d=o(a,f),h=s(d[0]),f+=d[1],g.images.push(h);return g}},fg}var dg={},k7;function Mse(){if(k7)return dg;k7=1,Object.defineProperty(dg,"__esModule",{value:!0}),dg.J2C=void 0;const t=ji();return dg.J2C={validate:e=>(0,t.toHexString)(e,0,4)==="ff4fff51",calculate:e=>({height:(0,t.readUInt32BE)(e,12),width:(0,t.readUInt32BE)(e,8)})},dg}var hg={},y7;function Nse(){if(y7)return hg;y7=1,Object.defineProperty(hg,"__esModule",{value:!0}),hg.JP2=void 0;const t=ji();return hg.JP2={validate(e){if((0,t.readUInt32BE)(e,4)!==1783636e3||(0,t.readUInt32BE)(e,0)<1)return!1;const n=(0,t.findBox)(e,"ftyp",0);return n?(0,t.readUInt32BE)(e,n.offset+4)===1718909296:!1},calculate(e){const n=(0,t.findBox)(e,"jp2h",0),i=n&&(0,t.findBox)(e,"ihdr",n.offset+8);if(i)return{height:(0,t.readUInt32BE)(e,i.offset+8),width:(0,t.readUInt32BE)(e,i.offset+12)};throw new TypeError("Unsupported JPEG 2000 format")}},hg}var pg={},w7;function Ase(){if(w7)return pg;w7=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.JPG=void 0;const t=ji(),e="45786966",n=2,i=6,r=2,o="4d4d",s="4949",a=12,l=2;function u(m){return(0,t.toHexString)(m,2,6)===e}function f(m,y){return{height:(0,t.readUInt16BE)(m,y),width:(0,t.readUInt16BE)(m,y+2)}}function d(m,y){const _=i+8,S=(0,t.readUInt)(m,16,_,y);for(let C=0;C<S;C++){const E=_+l+C*a,N=E+a;if(E>m.length)return;const M=m.slice(E,N);if((0,t.readUInt)(M,16,0,y)===274)return(0,t.readUInt)(M,16,2,y)!==3||(0,t.readUInt)(M,32,4,y)!==1?void 0:(0,t.readUInt)(M,16,8,y)}}function h(m,y){const x=m.slice(n,y),_=(0,t.toHexString)(x,i,i+r),S=_===o;if(S||_===s)return d(x,S)}function g(m,y){if(y>m.length)throw new TypeError("Corrupt JPG, exceeded buffer limits")}return pg.JPG={validate:m=>(0,t.toHexString)(m,0,2)==="ffd8",calculate(m){m=m.slice(4);let y,x;for(;m.length;){const _=(0,t.readUInt16BE)(m,0);if(m[_]!==255){m=m.slice(1);continue}if(u(m)&&(y=h(m,_)),g(m,_),x=m[_+1],x===192||x===193||x===194){const S=f(m,_+5);return y?{height:S.height,orientation:y,width:S.width}:S}m=m.slice(_+2)}throw new TypeError("Invalid JPG, no size found")}},pg}var gg={},x7;function Pse(){if(x7)return gg;x7=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.KTX=void 0;const t=ji();return gg.KTX={validate:e=>{const n=(0,t.toUTF8String)(e,1,7);return["KTX 11","KTX 20"].includes(n)},calculate:e=>{const n=e[5]===49?"ktx":"ktx2",i=n==="ktx"?36:20;return{height:(0,t.readUInt32LE)(e,i+4),width:(0,t.readUInt32LE)(e,i),type:n}}},gg}var mg={},_7;function Dse(){if(_7)return mg;_7=1,Object.defineProperty(mg,"__esModule",{value:!0}),mg.PNG=void 0;const t=ji(),e=`PNG\r
|
||
|
||
`,n="IHDR",i="CgBI";return mg.PNG={validate(r){if(e===(0,t.toUTF8String)(r,1,8)){let o=(0,t.toUTF8String)(r,12,16);if(o===i&&(o=(0,t.toUTF8String)(r,28,32)),o!==n)throw new TypeError("Invalid PNG");return!0}return!1},calculate(r){return(0,t.toUTF8String)(r,12,16)===i?{height:(0,t.readUInt32BE)(r,36),width:(0,t.readUInt32BE)(r,32)}:{height:(0,t.readUInt32BE)(r,20),width:(0,t.readUInt32BE)(r,16)}}},mg}var vg={},O7;function Ise(){if(O7)return vg;O7=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.PNM=void 0;const t=ji(),e={P1:"pbm/ascii",P2:"pgm/ascii",P3:"ppm/ascii",P4:"pbm",P5:"pgm",P6:"ppm",P7:"pam",PF:"pfm"},n={default:i=>{let r=[];for(;i.length>0;){const o=i.shift();if(o[0]!=="#"){r=o.split(" ");break}}if(r.length===2)return{height:parseInt(r[1],10),width:parseInt(r[0],10)};throw new TypeError("Invalid PNM")},pam:i=>{const r={};for(;i.length>0;){const o=i.shift();if(o.length>16||o.charCodeAt(0)>128)continue;const[s,a]=o.split(" ");if(s&&a&&(r[s.toLowerCase()]=parseInt(a,10)),r.height&&r.width)break}if(r.height&&r.width)return{height:r.height,width:r.width};throw new TypeError("Invalid PAM")}};return vg.PNM={validate:i=>(0,t.toUTF8String)(i,0,2)in e,calculate(i){const r=(0,t.toUTF8String)(i,0,2),o=e[r],s=(0,t.toUTF8String)(i,3).split(/[\r\n]+/);return(n[o]||n.default)(s)}},vg}var bg={},S7;function Lse(){if(S7)return bg;S7=1,Object.defineProperty(bg,"__esModule",{value:!0}),bg.PSD=void 0;const t=ji();return bg.PSD={validate:e=>(0,t.toUTF8String)(e,0,4)==="8BPS",calculate:e=>({height:(0,t.readUInt32BE)(e,14),width:(0,t.readUInt32BE)(e,18)})},bg}var kg={},C7;function Rse(){if(C7)return kg;C7=1,Object.defineProperty(kg,"__esModule",{value:!0}),kg.SVG=void 0;const t=ji(),e=/<svg\s([^>"']|"[^"]*"|'[^']*')*>/,n={height:/\sheight=(['"])([^%]+?)\1/,root:e,viewbox:/\sviewBox=(['"])(.+?)\1/i,width:/\swidth=(['"])([^%]+?)\1/},i=2.54,r={in:96,cm:96/i,em:16,ex:8,m:96/i*100,mm:96/i/10,pc:96/72/12,pt:96/72,px:1},o=new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(r).join("|")})?$`);function s(d){const h=o.exec(d);if(h)return Math.round(Number(h[1])*(r[h[2]]||1))}function a(d){const h=d.split(" ");return{height:s(h[3]),width:s(h[2])}}function l(d){const h=d.match(n.width),g=d.match(n.height),m=d.match(n.viewbox);return{height:g&&s(g[2]),viewbox:m&&a(m[2]),width:h&&s(h[2])}}function u(d){return{height:d.height,width:d.width}}function f(d,h){const g=h.width/h.height;return d.width?{height:Math.floor(d.width/g),width:d.width}:d.height?{height:d.height,width:Math.floor(d.height*g)}:{height:h.height,width:h.width}}return kg.SVG={validate:d=>e.test((0,t.toUTF8String)(d,0,1e3)),calculate(d){const h=(0,t.toUTF8String)(d).match(n.root);if(h){const g=l(h[0]);if(g.width&&g.height)return u(g);if(g.viewbox)return f(g,g.viewbox)}throw new TypeError("Invalid SVG")}},kg}var yg={},E7;function jse(){if(E7)return yg;E7=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.TGA=void 0;const t=ji();return yg.TGA={validate(e){return(0,t.readUInt16LE)(e,0)===0&&(0,t.readUInt16LE)(e,4)===0},calculate(e){return{height:(0,t.readUInt16LE)(e,14),width:(0,t.readUInt16LE)(e,12)}}},yg}var wg={},T7;function Fse(){if(T7)return wg;T7=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.TIFF=void 0;const t=ig,e=ji();function n(l,u,f){const d=(0,e.readUInt)(l,32,4,f);let h=1024;const g=t.statSync(u).size;d+h>g&&(h=g-d-10);const m=new Uint8Array(h),y=t.openSync(u,"r");return t.readSync(y,m,0,h,d),t.closeSync(y),m.slice(2)}function i(l,u){const f=(0,e.readUInt)(l,16,8,u);return((0,e.readUInt)(l,16,10,u)<<16)+f}function r(l){if(l.length>24)return l.slice(12)}function o(l,u){const f={};let d=l;for(;d&&d.length;){const h=(0,e.readUInt)(d,16,0,u),g=(0,e.readUInt)(d,16,2,u),m=(0,e.readUInt)(d,32,4,u);if(h===0)break;m===1&&(g===3||g===4)&&(f[h]=i(d,u)),d=r(d)}return f}function s(l){const u=(0,e.toUTF8String)(l,0,2);if(u==="II")return"LE";if(u==="MM")return"BE"}const a=["49492a00","4d4d002a"];return wg.TIFF={validate:l=>a.includes((0,e.toHexString)(l,0,4)),calculate(l,u){if(!u)throw new TypeError("Tiff doesn't support buffer");const f=s(l)==="BE",d=n(l,u,f),h=o(d,f),g=h[256],m=h[257];if(!g||!m)throw new TypeError("Invalid Tiff. Missing tags");return{height:m,width:g}}},wg}var xg={},$7;function zse(){if($7)return xg;$7=1,Object.defineProperty(xg,"__esModule",{value:!0}),xg.WEBP=void 0;const t=ji();function e(r){return{height:1+(0,t.readUInt24LE)(r,7),width:1+(0,t.readUInt24LE)(r,4)}}function n(r){return{height:1+((r[4]&15)<<10|r[3]<<2|(r[2]&192)>>6),width:1+((r[2]&63)<<8|r[1])}}function i(r){return{height:(0,t.readInt16LE)(r,8)&16383,width:(0,t.readInt16LE)(r,6)&16383}}return xg.WEBP={validate(r){const o=(0,t.toUTF8String)(r,0,4)==="RIFF",s=(0,t.toUTF8String)(r,8,12)==="WEBP",a=(0,t.toUTF8String)(r,12,15)==="VP8";return o&&s&&a},calculate(r){const o=(0,t.toUTF8String)(r,12,16);if(r=r.slice(20,30),o==="VP8X"){const a=r[0],l=(a&192)===0,u=(a&1)===0;if(l&&u)return e(r);throw new TypeError("Invalid WebP")}if(o==="VP8 "&&r[0]!==47)return i(r);const s=(0,t.toHexString)(r,3,6);if(o==="VP8L"&&s!=="9d012a")return n(r);throw new TypeError("Invalid WebP")}},xg}var M7;function N7(){if(M7)return rg;M7=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.typeHandlers=void 0;const t=Ose(),e=Sse(),n=Cse(),i=Ese(),r=Tse(),o=$se(),s=h7(),a=Mse(),l=Nse(),u=Ase(),f=Pse(),d=Dse(),h=Ise(),g=Lse(),m=Rse(),y=jse(),x=Fse(),_=zse();return rg.typeHandlers={bmp:t.BMP,cur:e.CUR,dds:n.DDS,gif:i.GIF,heif:r.HEIF,icns:o.ICNS,ico:s.ICO,j2c:a.J2C,jp2:l.JP2,jpg:u.JPG,ktx:f.KTX,png:d.PNG,pnm:h.PNM,psd:g.PSD,svg:m.SVG,tga:y.TGA,tiff:x.TIFF,webp:_.WEBP},rg}var _g={},A7;function Bse(){if(A7)return _g;A7=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.detector=void 0;const t=N7(),e=Object.keys(t.typeHandlers),n={56:"psd",66:"bmp",68:"dds",71:"gif",73:"tiff",77:"tiff",82:"webp",105:"icns",137:"png",255:"jpg"};function i(r){const o=r[0];if(o in n){const a=n[o];if(a&&t.typeHandlers[a].validate(r))return a}const s=a=>t.typeHandlers[a].validate(r);return e.find(s)}return _g.detector=i,_g}var P7;function Wse(){return P7||(P7=1,function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.types=e.setConcurrency=e.disableTypes=e.disableFS=e.imageSize=void 0;const n=ig,i=ig,r=_se(),o=N7(),s=Bse(),a=512*1024,l=new r.default({concurrency:100,autostart:!0}),u={disabledFS:!1,disabledTypes:[]};function f(_,S){const C=(0,s.detector)(_);if(typeof C<"u"){if(u.disabledTypes.indexOf(C)>-1)throw new TypeError("disabled file type: "+C);if(C in o.typeHandlers){const E=o.typeHandlers[C].calculate(_,S);if(E!==void 0)return E.type=E.type??C,E}}throw new TypeError("unsupported file type: "+C+" (file: "+S+")")}async function d(_){const S=await n.promises.open(_,"r");try{const{size:C}=await S.stat();if(C<=0)throw new Error("Empty file");const E=Math.min(C,a),N=new Uint8Array(E);return await S.read(N,0,E,0),N}finally{await S.close()}}function h(_){const S=n.openSync(_,"r");try{const{size:C}=n.fstatSync(S);if(C<=0)throw new Error("Empty file");const E=Math.min(C,a),N=new Uint8Array(E);return n.readSync(S,N,0,E,0),N}finally{n.closeSync(S)}}t.exports=e=g,e.default=g;function g(_,S){if(_ instanceof Uint8Array)return f(_);if(typeof _!="string"||u.disabledFS)throw new TypeError("invalid invocation. input should be a Uint8Array");const C=i.resolve(_);if(typeof S=="function")l.push(()=>d(C).then(E=>process.nextTick(S,null,f(E,C))).catch(S));else{const E=h(C);return f(E,C)}}e.imageSize=g;const m=_=>{u.disabledFS=_};e.disableFS=m;const y=_=>{u.disabledTypes=_};e.disableTypes=y;const x=_=>{l.concurrency=_};e.setConcurrency=x,e.types=Object.keys(o.typeHandlers)}(ab,ab.exports)),ab.exports}var nO,D7;function fb(){if(D7)return nO;D7=1;var t=Wse(),e=ig;function n(i,r){var o=i.renderer.rules.image;i.renderer.rules.image=function(s,a,l,u,f){var d=s[a];if(d.attrSet("loading","lazy"),r&&r.decoding===!0&&d.attrSet("decoding","async"),r&&r.base_path&&r.image_size===!0){const h=d.attrGet("src"),g=e.join(r.base_path,h),m=t(g);d.attrSet("width",m.width),d.attrSet("height",m.height)}return o(s,a,l,u,f)}}return nO=n,nO}var iO,I7;function db(){if(I7)return iO;I7=1;const t=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function e(i,r){const o=i.posMax,s=i.pos;if(i.src.charCodeAt(s)!==126||r||s+2>=o)return!1;i.pos=s+1;let a=!1;for(;i.pos<o;){if(i.src.charCodeAt(i.pos)===126){a=!0;break}i.md.inline.skipToken(i)}if(!a||s+1===i.pos)return i.pos=s,!1;const l=i.src.slice(s+1,i.pos);if(l.match(/(^|[^\\])(\\\\)*\s/))return i.pos=s,!1;i.posMax=i.pos,i.pos=s+1;const u=i.push("sub_open","sub",1);u.markup="~";const f=i.push("text","",0);f.content=l.replace(t,"$1");const d=i.push("sub_close","sub",-1);return d.markup="~",i.pos=i.posMax+1,i.posMax=o,!0}function n(i){i.inline.ruler.after("emphasis","sub",e)}return iO=n,iO}var rO,L7;function hb(){if(L7)return rO;L7=1;const t=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/g;function e(i,r){const o=i.posMax,s=i.pos;if(i.src.charCodeAt(s)!==94||r||s+2>=o)return!1;i.pos=s+1;let a=!1;for(;i.pos<o;){if(i.src.charCodeAt(i.pos)===94){a=!0;break}i.md.inline.skipToken(i)}if(!a||s+1===i.pos)return i.pos=s,!1;const l=i.src.slice(s+1,i.pos);if(l.match(/(^|[^\\])(\\\\)*\s/))return i.pos=s,!1;i.posMax=i.pos,i.pos=s+1;const u=i.push("sup_open","sup",1);u.markup="^";const f=i.push("text","",0);f.content=l.replace(t,"$1");const d=i.push("sup_close","sup",-1);return d.markup="^",i.pos=i.posMax+1,i.posMax=o,!0}function n(i){i.inline.ruler.after("emphasis","sup",e)}return rO=n,rO}const R7=MM,j7=ib,{slugify:Hse}=yse,fd={},F7=function({ghostVersion:t}={}){const e=function(n,i={}){let r=Hse(n,{ghostVersion:t,type:"markdown"});return i[r]&&(i[r]+=1,r+=i[r]),r};return function(n){const i=n.renderer.rules.heading_open;n.renderer.rules.heading_open=function(r,o,s,a,l){const u={};r[o].attrs=r[o].attrs||[];const f=r[o+1].children.reduce(function(h,g){return h+g.content},""),d=e(f,u);return r[o].attrs.push(["id",d]),i?i.apply(this,arguments):l.renderToken.apply(l,arguments)}}},Qse=function(t){const e=j7.coerce(t.ghostVersion||"4.0");if(j7.satisfies(e,"<4.x")){if(fd["<4.x"])return fd["<4.x"];const n=new R7({html:!0,breaks:!0,linkify:!0}).use(rb()).use(ob()).use(sb()).use(fb()).use(F7(t)).use(db()).use(hb());return n.linkify.set({fuzzyLink:!1}),fd["<4.x"]=n,n}else{if(fd.latest)return fd.latest;const n=new R7({html:!0,breaks:!0,linkify:!0}).use(rb()).use(ob()).use(sb()).use(fb()).use(F7(t)).use(db()).use(hb());return n.linkify.set({fuzzyLink:!1}),fd.latest=n,n}};var Use={render:function(t,e={}){return Qse(e).render(t)}},Zse=Use;const qse=xo(Zse);function z7(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=z7(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function nt(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=z7(t))&&(i&&(i+=" "),i+=e);return i}class Sc extends Error{}class Yse extends Sc{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Vse extends Sc{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Xse extends Sc{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class dd extends Sc{}class B7 extends Sc{constructor(e){super(`Invalid unit ${e}`)}}class kr extends Sc{}class Jl extends Sc{constructor(){super("Zone is an abstract class")}}const Ne="numeric",Ss="short",Eo="long",pb={year:Ne,month:Ne,day:Ne},W7={year:Ne,month:Ss,day:Ne},Gse={year:Ne,month:Ss,day:Ne,weekday:Ss},H7={year:Ne,month:Eo,day:Ne},Q7={year:Ne,month:Eo,day:Ne,weekday:Eo},U7={hour:Ne,minute:Ne},Z7={hour:Ne,minute:Ne,second:Ne},q7={hour:Ne,minute:Ne,second:Ne,timeZoneName:Ss},Y7={hour:Ne,minute:Ne,second:Ne,timeZoneName:Eo},V7={hour:Ne,minute:Ne,hourCycle:"h23"},X7={hour:Ne,minute:Ne,second:Ne,hourCycle:"h23"},G7={hour:Ne,minute:Ne,second:Ne,hourCycle:"h23",timeZoneName:Ss},K7={hour:Ne,minute:Ne,second:Ne,hourCycle:"h23",timeZoneName:Eo},J7={year:Ne,month:Ne,day:Ne,hour:Ne,minute:Ne},eN={year:Ne,month:Ne,day:Ne,hour:Ne,minute:Ne,second:Ne},tN={year:Ne,month:Ss,day:Ne,hour:Ne,minute:Ne},nN={year:Ne,month:Ss,day:Ne,hour:Ne,minute:Ne,second:Ne},Kse={year:Ne,month:Ss,day:Ne,weekday:Ss,hour:Ne,minute:Ne},iN={year:Ne,month:Eo,day:Ne,hour:Ne,minute:Ne,timeZoneName:Ss},rN={year:Ne,month:Eo,day:Ne,hour:Ne,minute:Ne,second:Ne,timeZoneName:Ss},oN={year:Ne,month:Eo,day:Ne,weekday:Eo,hour:Ne,minute:Ne,timeZoneName:Eo},sN={year:Ne,month:Eo,day:Ne,weekday:Eo,hour:Ne,minute:Ne,second:Ne,timeZoneName:Eo};class Og{get type(){throw new Jl}get name(){throw new Jl}get ianaName(){return this.name}get isUniversal(){throw new Jl}offsetName(e,n){throw new Jl}formatOffset(e,n){throw new Jl}offset(e){throw new Jl}equals(e){throw new Jl}get isValid(){throw new Jl}}let oO=null;class gb extends Og{static get instance(){return oO===null&&(oO=new gb),oO}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return NN(e,n,i)}formatOffset(e,n){return Tg(this.offset(e),n)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}let mb={};function Jse(t){return mb[t]||(mb[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),mb[t]}const eae={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function tae(t,e){const n=t.format(e).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,r,o,s,a,l,u,f]=i;return[s,r,o,a,l,u,f]}function nae(t,e){const n=t.formatToParts(e),i=[];for(let r=0;r<n.length;r++){const{type:o,value:s}=n[r],a=eae[o];o==="era"?i[a]=s:bt(a)||(i[a]=parseInt(s,10))}return i}let vb={};class qa extends Og{static create(e){return vb[e]||(vb[e]=new qa(e)),vb[e]}static resetCache(){vb={},mb={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=qa.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:n,locale:i}){return NN(e,n,i,this.name)}formatOffset(e,n){return Tg(this.offset(e),n)}offset(e){const n=new Date(e);if(isNaN(n))return NaN;const i=Jse(this.name);let[r,o,s,a,l,u,f]=i.formatToParts?nae(i,n):tae(i,n);a==="BC"&&(r=-Math.abs(r)+1);const h=xb({year:r,month:o,day:s,hour:l===24?0:l,minute:u,second:f,millisecond:0});let g=+n;const m=g%1e3;return g-=m>=0?m:1e3+m,(h-g)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}let aN={};function iae(t,e={}){const n=JSON.stringify([t,e]);let i=aN[n];return i||(i=new Intl.ListFormat(t,e),aN[n]=i),i}let sO={};function aO(t,e={}){const n=JSON.stringify([t,e]);let i=sO[n];return i||(i=new Intl.DateTimeFormat(t,e),sO[n]=i),i}let lO={};function rae(t,e={}){const n=JSON.stringify([t,e]);let i=lO[n];return i||(i=new Intl.NumberFormat(t,e),lO[n]=i),i}let uO={};function oae(t,e={}){const{base:n,...i}=e,r=JSON.stringify([t,i]);let o=uO[r];return o||(o=new Intl.RelativeTimeFormat(t,e),uO[r]=o),o}let Sg=null;function sae(){return Sg||(Sg=new Intl.DateTimeFormat().resolvedOptions().locale,Sg)}let lN={};function aae(t){let e=lN[t];if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,lN[t]=e}return e}function lae(t){const e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(n===-1)return[t];{let i,r;try{i=aO(t).resolvedOptions(),r=t}catch{const l=t.substring(0,n);i=aO(l).resolvedOptions(),r=l}const{numberingSystem:o,calendar:s}=i;return[r,o,s]}}function uae(t,e,n){return(n||e)&&(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`)),t}function cae(t){const e=[];for(let n=1;n<=12;n++){const i=dt.utc(2009,n,1);e.push(t(i))}return e}function fae(t){const e=[];for(let n=1;n<=7;n++){const i=dt.utc(2016,11,13+n);e.push(t(i))}return e}function bb(t,e,n,i){const r=t.listingMode();return r==="error"?null:r==="en"?n(e):i(e)}function dae(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem==="latn"}class hae{constructor(e,n,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:r,floor:o,...s}=i;if(!n||Object.keys(s).length>0){const a={useGrouping:!1,...i};i.padTo>0&&(a.minimumIntegerDigits=i.padTo),this.inf=rae(e,a)}}format(e){if(this.inf){const n=this.floor?Math.floor(e):e;return this.inf.format(n)}else{const n=this.floor?Math.floor(e):vO(e,3);return gi(n,this.padTo)}}}class pae{constructor(e,n,i){this.opts=i,this.originalZone=void 0;let r;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){const s=-1*(e.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&qa.create(a).valid?(r=a,this.dt=e):(r="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,r=e.zone.name):(r="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const o={...this.opts};o.timeZone=o.timeZone||r,this.dtf=aO(n,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(n=>{if(n.type==="timeZoneName"){const i=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:i}}else return n}):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class gae{constructor(e,n,i){this.opts={style:"long",...i},!n&&EN()&&(this.rtf=oae(e,i))}format(e,n){return this.rtf?this.rtf.format(e,n):jae(n,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]}}const mae={firstDay:1,minimalDays:4,weekend:[6,7]};class qt{static fromOpts(e){return qt.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,n,i,r,o=!1){const s=e||Yn.defaultLocale,a=s||(o?"en-US":sae()),l=n||Yn.defaultNumberingSystem,u=i||Yn.defaultOutputCalendar,f=gO(r)||Yn.defaultWeekSettings;return new qt(a,l,u,f,s)}static resetCache(){Sg=null,sO={},lO={},uO={}}static fromObject({locale:e,numberingSystem:n,outputCalendar:i,weekSettings:r}={}){return qt.create(e,n,i,r)}constructor(e,n,i,r,o){const[s,a,l]=lae(e);this.locale=s,this.numberingSystem=n||a||null,this.outputCalendar=i||l||null,this.weekSettings=r,this.intl=uae(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=dae(this)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&n?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:qt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,gO(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,n=!1){return bb(this,e,DN,()=>{const i=n?{month:e,day:"numeric"}:{month:e},r=n?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=cae(o=>this.extract(o,i,"month"))),this.monthsCache[r][e]})}weekdays(e,n=!1){return bb(this,e,RN,()=>{const i=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=n?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=fae(o=>this.extract(o,i,"weekday"))),this.weekdaysCache[r][e]})}meridiems(){return bb(this,void 0,()=>jN,()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[dt.utc(2016,11,13,9),dt.utc(2016,11,13,19)].map(n=>this.extract(n,e,"dayperiod"))}return this.meridiemCache})}eras(e){return bb(this,e,FN,()=>{const n={era:e};return this.eraCache[e]||(this.eraCache[e]=[dt.utc(-40,1,1),dt.utc(2017,1,1)].map(i=>this.extract(i,n,"era"))),this.eraCache[e]})}extract(e,n,i){const r=this.dtFormatter(e,n),o=r.formatToParts(),s=o.find(a=>a.type.toLowerCase()===i);return s?s.value:null}numberFormatter(e={}){return new hae(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,n={}){return new pae(e,this.intl,n)}relFormatter(e={}){return new gae(this.intl,this.isEnglish(),e)}listFormatter(e={}){return iae(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:TN()?aae(this.locale):mae}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let cO=null;class Rr extends Og{static get utcInstance(){return cO===null&&(cO=new Rr(0)),cO}static instance(e){return e===0?Rr.utcInstance:new Rr(e)}static parseSpecifier(e){if(e){const n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Rr(_b(n[1],n[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Tg(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Tg(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,n){return Tg(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}class vae extends Og{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function eu(t,e){if(bt(t)||t===null)return e;if(t instanceof Og)return t;if(_ae(t)){const n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?gb.instance:n==="utc"||n==="gmt"?Rr.utcInstance:Rr.parseSpecifier(n)||qa.create(t)}else return tu(t)?Rr.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new vae(t)}const fO={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},uN={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},bae=fO.hanidec.replace(/[\[|\]]/g,"").split("");function kae(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);if(t[n].search(fO.hanidec)!==-1)e+=bae.indexOf(t[n]);else for(const r in uN){const[o,s]=uN[r];i>=o&&i<=s&&(e+=i-o)}}return parseInt(e,10)}else return e}let hd={};function yae(){hd={}}function Cs({numberingSystem:t},e=""){const n=t||"latn";return hd[n]||(hd[n]={}),hd[n][e]||(hd[n][e]=new RegExp(`${fO[n]}${e}`)),hd[n][e]}let cN=()=>Date.now(),fN="system",dN=null,hN=null,pN=null,gN=60,mN,vN=null;class Yn{static get now(){return cN}static set now(e){cN=e}static set defaultZone(e){fN=e}static get defaultZone(){return eu(fN,gb.instance)}static get defaultLocale(){return dN}static set defaultLocale(e){dN=e}static get defaultNumberingSystem(){return hN}static set defaultNumberingSystem(e){hN=e}static get defaultOutputCalendar(){return pN}static set defaultOutputCalendar(e){pN=e}static get defaultWeekSettings(){return vN}static set defaultWeekSettings(e){vN=gO(e)}static get twoDigitCutoffYear(){return gN}static set twoDigitCutoffYear(e){gN=e%100}static get throwOnInvalid(){return mN}static set throwOnInvalid(e){mN=e}static resetCaches(){qt.resetCache(),qa.resetCache(),dt.resetCache(),yae()}}class Es{constructor(e,n){this.reason=e,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const bN=[0,31,59,90,120,151,181,212,243,273,304,334],kN=[0,31,60,91,121,152,182,213,244,274,305,335];function Go(t,e){return new Es("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function dO(t,e,n){const i=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const r=i.getUTCDay();return r===0?7:r}function yN(t,e,n){return n+(Cg(t)?kN:bN)[e-1]}function wN(t,e){const n=Cg(t)?kN:bN,i=n.findIndex(o=>o<e),r=e-n[i];return{month:i+1,day:r}}function hO(t,e){return(t-e+7)%7+1}function kb(t,e=4,n=1){const{year:i,month:r,day:o}=t,s=yN(i,r,o),a=hO(dO(i,r,o),n);let l=Math.floor((s-a+14-e)/7),u;return l<1?(u=i-1,l=Eg(u,e,n)):l>Eg(i,e,n)?(u=i+1,l=1):u=i,{weekYear:u,weekNumber:l,weekday:a,...Sb(t)}}function xN(t,e=4,n=1){const{weekYear:i,weekNumber:r,weekday:o}=t,s=hO(dO(i,1,e),n),a=gd(i);let l=r*7+o-s-7+e,u;l<1?(u=i-1,l+=gd(u)):l>a?(u=i+1,l-=gd(i)):u=i;const{month:f,day:d}=wN(u,l);return{year:u,month:f,day:d,...Sb(t)}}function pO(t){const{year:e,month:n,day:i}=t,r=yN(e,n,i);return{year:e,ordinal:r,...Sb(t)}}function _N(t){const{year:e,ordinal:n}=t,{month:i,day:r}=wN(e,n);return{year:e,month:i,day:r,...Sb(t)}}function ON(t,e){if(!bt(t.localWeekday)||!bt(t.localWeekNumber)||!bt(t.localWeekYear)){if(!bt(t.weekday)||!bt(t.weekNumber)||!bt(t.weekYear))throw new dd("Cannot mix locale-based week fields with ISO-based week fields");return bt(t.localWeekday)||(t.weekday=t.localWeekday),bt(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),bt(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function wae(t,e=4,n=1){const i=yb(t.weekYear),r=Ko(t.weekNumber,1,Eg(t.weekYear,e,n)),o=Ko(t.weekday,1,7);return i?r?o?!1:Go("weekday",t.weekday):Go("week",t.weekNumber):Go("weekYear",t.weekYear)}function xae(t){const e=yb(t.year),n=Ko(t.ordinal,1,gd(t.year));return e?n?!1:Go("ordinal",t.ordinal):Go("year",t.year)}function SN(t){const e=yb(t.year),n=Ko(t.month,1,12),i=Ko(t.day,1,wb(t.year,t.month));return e?n?i?!1:Go("day",t.day):Go("month",t.month):Go("year",t.year)}function CN(t){const{hour:e,minute:n,second:i,millisecond:r}=t,o=Ko(e,0,23)||e===24&&n===0&&i===0&&r===0,s=Ko(n,0,59),a=Ko(i,0,59),l=Ko(r,0,999);return o?s?a?l?!1:Go("millisecond",r):Go("second",i):Go("minute",n):Go("hour",e)}function bt(t){return typeof t>"u"}function tu(t){return typeof t=="number"}function yb(t){return typeof t=="number"&&t%1===0}function _ae(t){return typeof t=="string"}function Oae(t){return Object.prototype.toString.call(t)==="[object Date]"}function EN(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function TN(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Sae(t){return Array.isArray(t)?t:[t]}function $N(t,e,n){if(t.length!==0)return t.reduce((i,r)=>{const o=[e(r),r];return i&&n(i[0],o[0])===i[0]?i:o},null)[1]}function Cae(t,e){return e.reduce((n,i)=>(n[i]=t[i],n),{})}function pd(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gO(t){if(t==null)return null;if(typeof t!="object")throw new kr("Week settings must be an object");if(!Ko(t.firstDay,1,7)||!Ko(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Ko(e,1,7)))throw new kr("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Ko(t,e,n){return yb(t)&&t>=e&&t<=n}function Eae(t,e){return t-e*Math.floor(t/e)}function gi(t,e=2){const n=t<0;let i;return n?i="-"+(""+-t).padStart(e,"0"):i=(""+t).padStart(e,"0"),i}function nu(t){if(!(bt(t)||t===null||t===""))return parseInt(t,10)}function Cc(t){if(!(bt(t)||t===null||t===""))return parseFloat(t)}function mO(t){if(!(bt(t)||t===null||t==="")){const e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function vO(t,e,n=!1){const i=10**e;return(n?Math.trunc:Math.round)(t*i)/i}function Cg(t){return t%4===0&&(t%100!==0||t%400===0)}function gd(t){return Cg(t)?366:365}function wb(t,e){const n=Eae(e-1,12)+1,i=t+(e-n)/12;return n===2?Cg(i)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xb(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function MN(t,e,n){return-hO(dO(t,1,e),n)+e-1}function Eg(t,e=4,n=1){const i=MN(t,e,n),r=MN(t+1,e,n);return(gd(t)-i+r)/7}function bO(t){return t>99?t:t>Yn.twoDigitCutoffYear?1900+t:2e3+t}function NN(t,e,n,i=null){const r=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const s={timeZoneName:e,...o},a=new Intl.DateTimeFormat(n,s).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function _b(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const i=parseInt(e,10)||0,r=n<0||Object.is(n,-0)?-i:i;return n*60+r}function AN(t){const e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new kr(`Invalid unit value ${t}`);return e}function Ob(t,e){const n={};for(const i in t)if(pd(t,i)){const r=t[i];if(r==null)continue;n[e(i)]=AN(r)}return n}function Tg(t,e){const n=Math.trunc(Math.abs(t/60)),i=Math.trunc(Math.abs(t%60)),r=t>=0?"+":"-";switch(e){case"short":return`${r}${gi(n,2)}:${gi(i,2)}`;case"narrow":return`${r}${n}${i>0?`:${i}`:""}`;case"techie":return`${r}${gi(n,2)}${gi(i,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Sb(t){return Cae(t,["hour","minute","second","millisecond"])}const Tae=["January","February","March","April","May","June","July","August","September","October","November","December"],PN=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],$ae=["J","F","M","A","M","J","J","A","S","O","N","D"];function DN(t){switch(t){case"narrow":return[...$ae];case"short":return[...PN];case"long":return[...Tae];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const IN=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],LN=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Mae=["M","T","W","T","F","S","S"];function RN(t){switch(t){case"narrow":return[...Mae];case"short":return[...LN];case"long":return[...IN];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const jN=["AM","PM"],Nae=["Before Christ","Anno Domini"],Aae=["BC","AD"],Pae=["B","A"];function FN(t){switch(t){case"narrow":return[...Pae];case"short":return[...Aae];case"long":return[...Nae];default:return null}}function Dae(t){return jN[t.hour<12?0:1]}function Iae(t,e){return RN(e)[t.weekday-1]}function Lae(t,e){return DN(e)[t.month-1]}function Rae(t,e){return FN(e)[t.year<0?0:1]}function jae(t,e,n="always",i=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(n==="auto"&&o){const d=t==="days";switch(e){case 1:return d?"tomorrow":`next ${r[t][0]}`;case-1:return d?"yesterday":`last ${r[t][0]}`;case 0:return d?"today":`this ${r[t][0]}`}}const s=Object.is(e,-0)||e<0,a=Math.abs(e),l=a===1,u=r[t],f=i?l?u[1]:u[2]||u[1]:l?r[t][0]:t;return s?`${a} ${f} ago`:`in ${a} ${f}`}function zN(t,e){let n="";for(const i of t)i.literal?n+=i.val:n+=e(i.val);return n}const Fae={D:pb,DD:W7,DDD:H7,DDDD:Q7,t:U7,tt:Z7,ttt:q7,tttt:Y7,T:V7,TT:X7,TTT:G7,TTTT:K7,f:J7,ff:tN,fff:iN,ffff:oN,F:eN,FF:nN,FFF:rN,FFFF:sN};class yr{static create(e,n={}){return new yr(e,n)}static parseFormat(e){let n=null,i="",r=!1;const o=[];for(let s=0;s<e.length;s++){const a=e.charAt(s);a==="'"?(i.length>0&&o.push({literal:r||/^\s+$/.test(i),val:i}),n=null,i="",r=!r):r||a===n?i+=a:(i.length>0&&o.push({literal:/^\s+$/.test(i),val:i}),i=a,n=a)}return i.length>0&&o.push({literal:r||/^\s+$/.test(i),val:i}),o}static macroTokenToFormatOpts(e){return Fae[e]}constructor(e,n){this.opts=n,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...n}).format()}dtFormatter(e,n={}){return this.loc.dtFormatter(e,{...this.opts,...n})}formatDateTime(e,n){return this.dtFormatter(e,n).format()}formatDateTimeParts(e,n){return this.dtFormatter(e,n).formatToParts()}formatInterval(e,n){return this.dtFormatter(e.start,n).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,n){return this.dtFormatter(e,n).resolvedOptions()}num(e,n=0){if(this.opts.forceSimple)return gi(e,n);const i={...this.opts};return n>0&&(i.padTo=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,n){const i=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(g,m)=>this.loc.extract(e,g,m),s=g=>e.isOffsetFixed&&e.offset===0&&g.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,g.format):"",a=()=>i?Dae(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(g,m)=>i?Lae(e,g):o(m?{month:g}:{month:g,day:"numeric"},"month"),u=(g,m)=>i?Iae(e,g):o(m?{weekday:g}:{weekday:g,month:"long",day:"numeric"},"weekday"),f=g=>{const m=yr.macroTokenToFormatOpts(g);return m?this.formatWithSystemDefault(e,m):g},d=g=>i?Rae(e,g):o({era:g},"era"),h=g=>{switch(g){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return r?o({day:"numeric"},"day"):this.num(e.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(e.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(e.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return f(g)}};return zN(yr.parseFormat(n),h)}formatDurationFromString(e,n){const i=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=l=>u=>{const f=i(u);return f?this.num(l.get(f),u.length):u},o=yr.parseFormat(n),s=o.reduce((l,{literal:u,val:f})=>u?l:l.concat(f),[]),a=e.shiftTo(...s.map(i).filter(l=>l));return zN(o,r(a))}}const BN=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function md(...t){const e=t.reduce((n,i)=>n+i.source,"");return RegExp(`^${e}$`)}function vd(...t){return e=>t.reduce(([n,i,r],o)=>{const[s,a,l]=o(e,r);return[{...n,...s},a||i,l]},[{},null,1]).slice(0,2)}function bd(t,...e){if(t==null)return[null,null];for(const[n,i]of e){const r=n.exec(t);if(r)return i(r)}return[null,null]}function WN(...t){return(e,n)=>{const i={};let r;for(r=0;r<t.length;r++)i[t[r]]=nu(e[n+r]);return[i,null,n+r]}}const HN=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,zae=`(?:${HN.source}?(?:\\[(${BN.source})\\])?)?`,kO=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,QN=RegExp(`${kO.source}${zae}`),yO=RegExp(`(?:T${QN.source})?`),Bae=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Wae=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Hae=/(\d{4})-?(\d{3})/,Qae=WN("weekYear","weekNumber","weekDay"),Uae=WN("year","ordinal"),Zae=/(\d{4})-(\d\d)-(\d\d)/,UN=RegExp(`${kO.source} ?(?:${HN.source}|(${BN.source}))?`),qae=RegExp(`(?: ${UN.source})?`);function kd(t,e,n){const i=t[e];return bt(i)?n:nu(i)}function Yae(t,e){return[{year:kd(t,e),month:kd(t,e+1,1),day:kd(t,e+2,1)},null,e+3]}function yd(t,e){return[{hours:kd(t,e,0),minutes:kd(t,e+1,0),seconds:kd(t,e+2,0),milliseconds:mO(t[e+3])},null,e+4]}function $g(t,e){const n=!t[e]&&!t[e+1],i=_b(t[e+1],t[e+2]),r=n?null:Rr.instance(i);return[{},r,e+3]}function Mg(t,e){const n=t[e]?qa.create(t[e]):null;return[{},n,e+1]}const Vae=RegExp(`^T?${kO.source}$`),Xae=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Gae(t){const[e,n,i,r,o,s,a,l,u]=t,f=e[0]==="-",d=l&&l[0]==="-",h=(g,m=!1)=>g!==void 0&&(m||g&&f)?-g:g;return[{years:h(Cc(n)),months:h(Cc(i)),weeks:h(Cc(r)),days:h(Cc(o)),hours:h(Cc(s)),minutes:h(Cc(a)),seconds:h(Cc(l),l==="-0"),milliseconds:h(mO(u),d)}]}const Kae={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function wO(t,e,n,i,r,o,s){const a={year:e.length===2?bO(nu(e)):nu(e),month:PN.indexOf(n)+1,day:nu(i),hour:nu(r),minute:nu(o)};return s&&(a.second=nu(s)),t&&(a.weekday=t.length>3?IN.indexOf(t)+1:LN.indexOf(t)+1),a}const Jae=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ele(t){const[,e,n,i,r,o,s,a,l,u,f,d]=t,h=wO(e,r,i,n,o,s,a);let g;return l?g=Kae[l]:u?g=0:g=_b(f,d),[h,new Rr(g)]}function tle(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const nle=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ile=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,rle=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ZN(t){const[,e,n,i,r,o,s,a]=t;return[wO(e,r,i,n,o,s,a),Rr.utcInstance]}function ole(t){const[,e,n,i,r,o,s,a]=t;return[wO(e,a,n,i,r,o,s),Rr.utcInstance]}const sle=md(Bae,yO),ale=md(Wae,yO),lle=md(Hae,yO),ule=md(QN),qN=vd(Yae,yd,$g,Mg),cle=vd(Qae,yd,$g,Mg),fle=vd(Uae,yd,$g,Mg),dle=vd(yd,$g,Mg);function hle(t){return bd(t,[sle,qN],[ale,cle],[lle,fle],[ule,dle])}function ple(t){return bd(tle(t),[Jae,ele])}function gle(t){return bd(t,[nle,ZN],[ile,ZN],[rle,ole])}function mle(t){return bd(t,[Xae,Gae])}const vle=vd(yd);function ble(t){return bd(t,[Vae,vle])}const kle=md(Zae,qae),yle=md(UN),wle=vd(yd,$g,Mg);function xle(t){return bd(t,[kle,qN],[yle,wle])}const YN="Invalid Duration",VN={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},_le={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...VN},Jo=146097/400,wd=146097/4800,Ole={years:{quarters:4,months:12,weeks:Jo/7,days:Jo,hours:Jo*24,minutes:Jo*24*60,seconds:Jo*24*60*60,milliseconds:Jo*24*60*60*1e3},quarters:{months:3,weeks:Jo/28,days:Jo/4,hours:Jo*24/4,minutes:Jo*24*60/4,seconds:Jo*24*60*60/4,milliseconds:Jo*24*60*60*1e3/4},months:{weeks:wd/7,days:wd,hours:wd*24,minutes:wd*24*60,seconds:wd*24*60*60,milliseconds:wd*24*60*60*1e3},...VN},Ec=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Sle=Ec.slice(0).reverse();function iu(t,e,n=!1){const i={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ft(i)}function XN(t,e){let n=e.milliseconds??0;for(const i of Sle.slice(1))e[i]&&(n+=e[i]*t[i].milliseconds);return n}function GN(t,e){const n=XN(t,e)<0?-1:1;Ec.reduceRight((i,r)=>{if(bt(e[r]))return i;if(i){const o=e[i]*n,s=t[r][i],a=Math.floor(o/s);e[r]+=a*n,e[i]-=a*s*n}return r},null),Ec.reduce((i,r)=>{if(bt(e[r]))return i;if(i){const o=e[i]%1;e[i]-=o,e[r]+=o*t[i][r]}return r},null)}function Cle(t){const e={};for(const[n,i]of Object.entries(t))i!==0&&(e[n]=i);return e}class Ft{constructor(e){const n=e.conversionAccuracy==="longterm"||!1;let i=n?Ole:_le;e.matrix&&(i=e.matrix),this.values=e.values,this.loc=e.loc||qt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=i,this.isLuxonDuration=!0}static fromMillis(e,n){return Ft.fromObject({milliseconds:e},n)}static fromObject(e,n={}){if(e==null||typeof e!="object")throw new kr(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new Ft({values:Ob(e,Ft.normalizeUnit),loc:qt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(e){if(tu(e))return Ft.fromMillis(e);if(Ft.isDuration(e))return e;if(typeof e=="object")return Ft.fromObject(e);throw new kr(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,n){const[i]=mle(e);return i?Ft.fromObject(i,n):Ft.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,n){const[i]=ble(e);return i?Ft.fromObject(i,n):Ft.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,n=null){if(!e)throw new kr("need to specify a reason the Duration is invalid");const i=e instanceof Es?e:new Es(e,n);if(Yn.throwOnInvalid)throw new Xse(i);return new Ft({invalid:i})}static normalizeUnit(e){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!n)throw new B7(e);return n}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,n={}){const i={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?yr.create(this.loc,i).formatDurationFromString(this,e):YN}toHuman(e={}){if(!this.isValid)return YN;const n=Ec.map(i=>{const r=this.values[i];return bt(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(r)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=vO(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},dt.fromMillis(n,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?XN(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const n=Ft.fromDurationLike(e),i={};for(const r of Ec)(pd(n.values,r)||pd(this.values,r))&&(i[r]=n.get(r)+this.get(r));return iu(this,{values:i},!0)}minus(e){if(!this.isValid)return this;const n=Ft.fromDurationLike(e);return this.plus(n.negate())}mapUnits(e){if(!this.isValid)return this;const n={};for(const i of Object.keys(this.values))n[i]=AN(e(this.values[i],i));return iu(this,{values:n},!0)}get(e){return this[Ft.normalizeUnit(e)]}set(e){if(!this.isValid)return this;const n={...this.values,...Ob(e,Ft.normalizeUnit)};return iu(this,{values:n})}reconfigure({locale:e,numberingSystem:n,conversionAccuracy:i,matrix:r}={}){const s={loc:this.loc.clone({locale:e,numberingSystem:n}),matrix:r,conversionAccuracy:i};return iu(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return GN(this.matrix,e),iu(this,{values:e},!0)}rescale(){if(!this.isValid)return this;const e=Cle(this.normalize().shiftToAll().toObject());return iu(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>Ft.normalizeUnit(s));const n={},i={},r=this.toObject();let o;for(const s of Ec)if(e.indexOf(s)>=0){o=s;let a=0;for(const u in i)a+=this.matrix[u][s]*i[u],i[u]=0;tu(r[s])&&(a+=r[s]);const l=Math.trunc(a);n[s]=l,i[s]=(a*1e3-l*1e3)/1e3}else tu(r[s])&&(i[s]=r[s]);for(const s in i)i[s]!==0&&(n[o]+=s===o?i[s]:i[s]/this.matrix[o][s]);return GN(this.matrix,n),iu(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=this.values[n]===0?0:-this.values[n];return iu(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function n(i,r){return i===void 0||i===0?r===void 0||r===0:i===r}for(const i of Ec)if(!n(this.values[i],e.values[i]))return!1;return!0}}const xd="Invalid Interval";function Ele(t,e){return!t||!t.isValid?Vn.invalid("missing or invalid start"):!e||!e.isValid?Vn.invalid("missing or invalid end"):e<t?Vn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}class Vn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,n=null){if(!e)throw new kr("need to specify a reason the Interval is invalid");const i=e instanceof Es?e:new Es(e,n);if(Yn.throwOnInvalid)throw new Vse(i);return new Vn({invalid:i})}static fromDateTimes(e,n){const i=Ag(e),r=Ag(n),o=Ele(i,r);return o??new Vn({start:i,end:r})}static after(e,n){const i=Ft.fromDurationLike(n),r=Ag(e);return Vn.fromDateTimes(r,r.plus(i))}static before(e,n){const i=Ft.fromDurationLike(n),r=Ag(e);return Vn.fromDateTimes(r.minus(i),r)}static fromISO(e,n){const[i,r]=(e||"").split("/",2);if(i&&r){let o,s;try{o=dt.fromISO(i,n),s=o.isValid}catch{s=!1}let a,l;try{a=dt.fromISO(r,n),l=a.isValid}catch{l=!1}if(s&&l)return Vn.fromDateTimes(o,a);if(s){const u=Ft.fromISO(r,n);if(u.isValid)return Vn.after(o,u)}else if(l){const u=Ft.fromISO(i,n);if(u.isValid)return Vn.before(a,u)}}return Vn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",n){if(!this.isValid)return NaN;const i=this.start.startOf(e,n);let r;return n!=null&&n.useLocaleWeeks?r=this.end.reconfigure({locale:i.locale}):r=this.end,r=r.startOf(e,n),Math.floor(r.diff(i,e).get(e))+(r.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:n}={}){return this.isValid?Vn.fromDateTimes(e||this.s,n||this.e):this}splitAt(...e){if(!this.isValid)return[];const n=e.map(Ag).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),i=[];let{s:r}=this,o=0;for(;r<this.e;){const s=n[o]||this.e,a=+s>+this.e?this.e:s;i.push(Vn.fromDateTimes(r,a)),r=a,o+=1}return i}splitBy(e){const n=Ft.fromDurationLike(e);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:i}=this,r=1,o;const s=[];for(;i<this.e;){const a=this.start.plus(n.mapUnits(l=>l*r));o=+a>+this.e?this.e:a,s.push(Vn.fromDateTimes(i,o)),i=o,r+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const n=this.s>e.s?this.s:e.s,i=this.e<e.e?this.e:e.e;return n>=i?null:Vn.fromDateTimes(n,i)}union(e){if(!this.isValid)return this;const n=this.s<e.s?this.s:e.s,i=this.e>e.e?this.e:e.e;return Vn.fromDateTimes(n,i)}static merge(e){const[n,i]=e.sort((r,o)=>r.s-o.s).reduce(([r,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[r,o.union(s)]:[r.concat([o]),s]:[r,s],[[],null]);return i&&n.push(i),n}static xor(e){let n=null,i=0;const r=[],o=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((l,u)=>l.time-u.time);for(const l of a)i+=l.type==="s"?1:-1,i===1?n=l.time:(n&&+n!=+l.time&&r.push(Vn.fromDateTimes(n,l.time)),n=null);return Vn.merge(r)}difference(...e){return Vn.xor([this].concat(e)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:xd}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=pb,n={}){return this.isValid?yr.create(this.s.loc.clone(n),e).formatInterval(this):xd}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:xd}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:xd}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:xd}toFormat(e,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${n}${this.e.toFormat(e)}`:xd}toDuration(e,n){return this.isValid?this.e.diff(this.s,e,n):Ft.invalid(this.invalidReason)}mapEndpoints(e){return Vn.fromDateTimes(e(this.s),e(this.e))}}class Cb{static hasDST(e=Yn.defaultZone){const n=dt.now().setZone(e).set({month:12});return!e.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(e){return qa.isValidZone(e)}static normalizeZone(e){return eu(e,Yn.defaultZone)}static getStartOfWeek({locale:e=null,locObj:n=null}={}){return(n||qt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:n=null}={}){return(n||qt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:n=null}={}){return(n||qt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:n=null,numberingSystem:i=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||qt.create(n,i,o)).months(e)}static monthsFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||qt.create(n,i,o)).months(e,!0)}static weekdays(e="long",{locale:n=null,numberingSystem:i=null,locObj:r=null}={}){return(r||qt.create(n,i,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:n=null,numberingSystem:i=null,locObj:r=null}={}){return(r||qt.create(n,i,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return qt.create(e).meridiems()}static eras(e="short",{locale:n=null}={}){return qt.create(n,null,"gregory").eras(e)}static features(){return{relative:EN(),localeWeek:TN()}}}function KN(t,e){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(e)-n(t);return Math.floor(Ft.fromMillis(i).as("days"))}function Tle(t,e,n){const i=[["years",(l,u)=>u.year-l.year],["quarters",(l,u)=>u.quarter-l.quarter+(u.year-l.year)*4],["months",(l,u)=>u.month-l.month+(u.year-l.year)*12],["weeks",(l,u)=>{const f=KN(l,u);return(f-f%7)/7}],["days",KN]],r={},o=t;let s,a;for(const[l,u]of i)n.indexOf(l)>=0&&(s=l,r[l]=u(t,e),a=o.plus(r),a>e?(r[l]--,t=o.plus(r),t>e&&(a=t,r[l]--,t=o.plus(r))):t=a);return[t,r,a,s]}function $le(t,e,n,i){let[r,o,s,a]=Tle(t,e,n);const l=e-r,u=n.filter(d=>["hours","minutes","seconds","milliseconds"].indexOf(d)>=0);u.length===0&&(s<e&&(s=r.plus({[a]:1})),s!==r&&(o[a]=(o[a]||0)+l/(s-r)));const f=Ft.fromObject(o,i);return u.length>0?Ft.fromMillis(l,i).shiftTo(...u).plus(f):f}const Mle="missing Intl.DateTimeFormat.formatToParts support";function Qt(t,e=n=>n){return{regex:t,deser:([n])=>e(kae(n))}}const JN="[ ]",eA=new RegExp(JN,"g");function Nle(t){return t.replace(/\./g,"\\.?").replace(eA,JN)}function tA(t){return t.replace(/\./g,"").replace(eA," ").toLowerCase()}function Ts(t,e){return t===null?null:{regex:RegExp(t.map(Nle).join("|")),deser:([n])=>t.findIndex(i=>tA(n)===tA(i))+e}}function nA(t,e){return{regex:t,deser:([,n,i])=>_b(n,i),groups:e}}function Eb(t){return{regex:t,deser:([e])=>e}}function Ale(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Ple(t,e){const n=Cs(e),i=Cs(e,"{2}"),r=Cs(e,"{3}"),o=Cs(e,"{4}"),s=Cs(e,"{6}"),a=Cs(e,"{1,2}"),l=Cs(e,"{1,3}"),u=Cs(e,"{1,6}"),f=Cs(e,"{1,9}"),d=Cs(e,"{2,4}"),h=Cs(e,"{4,6}"),g=x=>({regex:RegExp(Ale(x.val)),deser:([_])=>_,literal:!0}),y=(x=>{if(t.literal)return g(x);switch(x.val){case"G":return Ts(e.eras("short"),0);case"GG":return Ts(e.eras("long"),0);case"y":return Qt(u);case"yy":return Qt(d,bO);case"yyyy":return Qt(o);case"yyyyy":return Qt(h);case"yyyyyy":return Qt(s);case"M":return Qt(a);case"MM":return Qt(i);case"MMM":return Ts(e.months("short",!0),1);case"MMMM":return Ts(e.months("long",!0),1);case"L":return Qt(a);case"LL":return Qt(i);case"LLL":return Ts(e.months("short",!1),1);case"LLLL":return Ts(e.months("long",!1),1);case"d":return Qt(a);case"dd":return Qt(i);case"o":return Qt(l);case"ooo":return Qt(r);case"HH":return Qt(i);case"H":return Qt(a);case"hh":return Qt(i);case"h":return Qt(a);case"mm":return Qt(i);case"m":return Qt(a);case"q":return Qt(a);case"qq":return Qt(i);case"s":return Qt(a);case"ss":return Qt(i);case"S":return Qt(l);case"SSS":return Qt(r);case"u":return Eb(f);case"uu":return Eb(a);case"uuu":return Qt(n);case"a":return Ts(e.meridiems(),0);case"kkkk":return Qt(o);case"kk":return Qt(d,bO);case"W":return Qt(a);case"WW":return Qt(i);case"E":case"c":return Qt(n);case"EEE":return Ts(e.weekdays("short",!1),1);case"EEEE":return Ts(e.weekdays("long",!1),1);case"ccc":return Ts(e.weekdays("short",!0),1);case"cccc":return Ts(e.weekdays("long",!0),1);case"Z":case"ZZ":return nA(new RegExp(`([+-]${a.source})(?::(${i.source}))?`),2);case"ZZZ":return nA(new RegExp(`([+-]${a.source})(${i.source})?`),2);case"z":return Eb(/[a-z_+-/]{1,256}?/i);case" ":return Eb(/[^\S\n\r]/);default:return g(x)}})(t)||{invalidReason:Mle};return y.token=t,y}const Dle={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function Ile(t,e,n){const{type:i,value:r}=t;if(i==="literal"){const l=/^\s+$/.test(r);return{literal:!l,val:l?" ":r}}const o=e[i];let s=i;i==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=n.hour12?"hour12":"hour24");let a=Dle[s];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function Lle(t){return[`^${t.map(n=>n.regex).reduce((n,i)=>`${n}(${i.source})`,"")}$`,t]}function Rle(t,e,n){const i=t.match(e);if(i){const r={};let o=1;for(const s in n)if(pd(n,s)){const a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(i.slice(o,o+l))),o+=l}return[i,r]}else return[i,{}]}function jle(t){const e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,i;return bt(t.z)||(n=qa.create(t.z)),bt(t.Z)||(n||(n=new Rr(t.Z)),i=t.Z),bt(t.q)||(t.M=(t.q-1)*3+1),bt(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),bt(t.u)||(t.S=mO(t.u)),[Object.keys(t).reduce((o,s)=>{const a=e(s);return a&&(o[a]=t[s]),o},{}),n,i]}let xO=null;function Fle(){return xO||(xO=dt.fromMillis(1555555555555)),xO}function zle(t,e){if(t.literal)return t;const n=yr.macroTokenToFormatOpts(t.val),i=sA(n,e);return i==null||i.includes(void 0)?t:i}function iA(t,e){return Array.prototype.concat(...t.map(n=>zle(n,e)))}class rA{constructor(e,n){if(this.locale=e,this.format=n,this.tokens=iA(yr.parseFormat(n),e),this.units=this.tokens.map(i=>Ple(i,e)),this.disqualifyingUnit=this.units.find(i=>i.invalidReason),!this.disqualifyingUnit){const[i,r]=Lle(this.units);this.regex=RegExp(i,"i"),this.handlers=r}}explainFromTokens(e){if(this.isValid){const[n,i]=Rle(e,this.regex,this.handlers),[r,o,s]=i?jle(i):[null,null,void 0];if(pd(i,"a")&&pd(i,"H"))throw new dd("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:n,matches:i,result:r,zone:o,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function oA(t,e,n){return new rA(t,n).explainFromTokens(e)}function Ble(t,e,n){const{result:i,zone:r,specificOffset:o,invalidReason:s}=oA(t,e,n);return[i,r,o,s]}function sA(t,e){if(!t)return null;const i=yr.create(e,t).dtFormatter(Fle()),r=i.formatToParts(),o=i.resolvedOptions();return r.map(s=>Ile(s,t,o))}const _O="Invalid DateTime",aA=864e13;function Ng(t){return new Es("unsupported zone",`the zone "${t.name}" is not supported`)}function OO(t){return t.weekData===null&&(t.weekData=kb(t.c)),t.weekData}function SO(t){return t.localWeekData===null&&(t.localWeekData=kb(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Tc(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new dt({...n,...e,old:n})}function lA(t,e,n){let i=t-e*60*1e3;const r=n.offset(i);if(e===r)return[i,e];i-=(r-e)*60*1e3;const o=n.offset(i);return r===o?[i,r]:[t-Math.min(r,o)*60*1e3,Math.max(r,o)]}function Tb(t,e){t+=e*60*1e3;const n=new Date(t);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function $b(t,e,n){return lA(xb(t),e,n)}function uA(t,e){const n=t.o,i=t.c.year+Math.trunc(e.years),r=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:i,month:r,day:Math.min(t.c.day,wb(i,r))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ft.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=xb(o);let[l,u]=lA(a,n,t.zone);return s!==0&&(l+=s,u=t.zone.offset(l)),{ts:l,o:u}}function _d(t,e,n,i,r,o){const{setZone:s,zone:a}=n;if(t&&Object.keys(t).length!==0||e){const l=e||a,u=dt.fromObject(t,{...n,zone:l,specificOffset:o});return s?u:u.setZone(a)}else return dt.invalid(new Es("unparsable",`the input "${r}" can't be parsed as ${i}`))}function Mb(t,e,n=!0){return t.isValid?yr.create(qt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function CO(t,e){const n=t.c.year>9999||t.c.year<0;let i="";return n&&t.c.year>=0&&(i+="+"),i+=gi(t.c.year,n?6:4),e?(i+="-",i+=gi(t.c.month),i+="-",i+=gi(t.c.day)):(i+=gi(t.c.month),i+=gi(t.c.day)),i}function cA(t,e,n,i,r,o){let s=gi(t.c.hour);return e?(s+=":",s+=gi(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(s+=":")):s+=gi(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!n)&&(s+=gi(t.c.second),(t.c.millisecond!==0||!i)&&(s+=".",s+=gi(t.c.millisecond,3))),r&&(t.isOffsetFixed&&t.offset===0&&!o?s+="Z":t.o<0?(s+="-",s+=gi(Math.trunc(-t.o/60)),s+=":",s+=gi(Math.trunc(-t.o%60))):(s+="+",s+=gi(Math.trunc(t.o/60)),s+=":",s+=gi(Math.trunc(t.o%60)))),o&&(s+="["+t.zone.ianaName+"]"),s}const fA={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wle={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Hle={ordinal:1,hour:0,minute:0,second:0,millisecond:0},dA=["year","month","day","hour","minute","second","millisecond"],Qle=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ule=["year","ordinal","hour","minute","second","millisecond"];function Zle(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new B7(t);return e}function hA(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return Zle(t)}}function qle(t){return Ab[t]||(Nb===void 0&&(Nb=Yn.now()),Ab[t]=t.offset(Nb)),Ab[t]}function pA(t,e){const n=eu(e.zone,Yn.defaultZone);if(!n.isValid)return dt.invalid(Ng(n));const i=qt.fromObject(e);let r,o;if(bt(t.year))r=Yn.now();else{for(const l of dA)bt(t[l])&&(t[l]=fA[l]);const s=SN(t)||CN(t);if(s)return dt.invalid(s);const a=qle(n);[r,o]=$b(t,a,n)}return new dt({ts:r,zone:n,loc:i,o})}function gA(t,e,n){const i=bt(n.round)?!0:n.round,r=(s,a)=>(s=vO(s,i||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(s,a)),o=s=>n.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(n.unit)return r(o(n.unit),n.unit);for(const s of n.units){const a=o(s);if(Math.abs(a)>=1)return r(a,s)}return r(t>e?-0:0,n.units[n.units.length-1])}function mA(t){let e={},n;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}let Nb,Ab={};class dt{constructor(e){const n=e.zone||Yn.defaultZone;let i=e.invalid||(Number.isNaN(e.ts)?new Es("invalid input"):null)||(n.isValid?null:Ng(n));this.ts=bt(e.ts)?Yn.now():e.ts;let r=null,o=null;if(!i)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n))[r,o]=[e.old.c,e.old.o];else{const a=tu(e.o)&&!e.old?e.o:n.offset(this.ts);r=Tb(this.ts,a),i=Number.isNaN(r.year)?new Es("invalid input"):null,r=i?null:r,o=i?null:a}this._zone=n,this.loc=e.loc||qt.create(),this.invalid=i,this.weekData=null,this.localWeekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new dt({})}static local(){const[e,n]=mA(arguments),[i,r,o,s,a,l,u]=n;return pA({year:i,month:r,day:o,hour:s,minute:a,second:l,millisecond:u},e)}static utc(){const[e,n]=mA(arguments),[i,r,o,s,a,l,u]=n;return e.zone=Rr.utcInstance,pA({year:i,month:r,day:o,hour:s,minute:a,second:l,millisecond:u},e)}static fromJSDate(e,n={}){const i=Oae(e)?e.valueOf():NaN;if(Number.isNaN(i))return dt.invalid("invalid input");const r=eu(n.zone,Yn.defaultZone);return r.isValid?new dt({ts:i,zone:r,loc:qt.fromObject(n)}):dt.invalid(Ng(r))}static fromMillis(e,n={}){if(tu(e))return e<-aA||e>aA?dt.invalid("Timestamp out of range"):new dt({ts:e,zone:eu(n.zone,Yn.defaultZone),loc:qt.fromObject(n)});throw new kr(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,n={}){if(tu(e))return new dt({ts:e*1e3,zone:eu(n.zone,Yn.defaultZone),loc:qt.fromObject(n)});throw new kr("fromSeconds requires a numerical input")}static fromObject(e,n={}){e=e||{};const i=eu(n.zone,Yn.defaultZone);if(!i.isValid)return dt.invalid(Ng(i));const r=qt.fromObject(n),o=Ob(e,hA),{minDaysInFirstWeek:s,startOfWeek:a}=ON(o,r),l=Yn.now(),u=bt(n.specificOffset)?i.offset(l):n.specificOffset,f=!bt(o.ordinal),d=!bt(o.year),h=!bt(o.month)||!bt(o.day),g=d||h,m=o.weekYear||o.weekNumber;if((g||f)&&m)throw new dd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&f)throw new dd("Can't mix ordinal dates with month/day");const y=m||o.weekday&&!g;let x,_,S=Tb(l,u);y?(x=Qle,_=Wle,S=kb(S,s,a)):f?(x=Ule,_=Hle,S=pO(S)):(x=dA,_=fA);let C=!1;for(const Z of x){const R=o[Z];bt(R)?C?o[Z]=_[Z]:o[Z]=S[Z]:C=!0}const E=y?wae(o,s,a):f?xae(o):SN(o),N=E||CN(o);if(N)return dt.invalid(N);const M=y?xN(o,s,a):f?_N(o):o,[I,W]=$b(M,u,i),B=new dt({ts:I,zone:i,o:W,loc:r});return o.weekday&&g&&e.weekday!==B.weekday?dt.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${B.toISO()}`):B.isValid?B:dt.invalid(B.invalid)}static fromISO(e,n={}){const[i,r]=hle(e);return _d(i,r,n,"ISO 8601",e)}static fromRFC2822(e,n={}){const[i,r]=ple(e);return _d(i,r,n,"RFC 2822",e)}static fromHTTP(e,n={}){const[i,r]=gle(e);return _d(i,r,n,"HTTP",n)}static fromFormat(e,n,i={}){if(bt(e)||bt(n))throw new kr("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=i,s=qt.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[a,l,u,f]=Ble(s,e,n);return f?dt.invalid(f):_d(a,l,i,`format ${n}`,e,u)}static fromString(e,n,i={}){return dt.fromFormat(e,n,i)}static fromSQL(e,n={}){const[i,r]=xle(e);return _d(i,r,n,"SQL",e)}static invalid(e,n=null){if(!e)throw new kr("need to specify a reason the DateTime is invalid");const i=e instanceof Es?e:new Es(e,n);if(Yn.throwOnInvalid)throw new Yse(i);return new dt({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,n={}){const i=sA(e,qt.fromObject(n));return i?i.map(r=>r?r.val:null).join(""):null}static expandFormat(e,n={}){return iA(yr.parseFormat(e),qt.fromObject(n)).map(r=>r.val).join("")}static resetCache(){Nb=void 0,Ab={}}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?OO(this).weekYear:NaN}get weekNumber(){return this.isValid?OO(this).weekNumber:NaN}get weekday(){return this.isValid?OO(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?SO(this).weekday:NaN}get localWeekNumber(){return this.isValid?SO(this).weekNumber:NaN}get localWeekYear(){return this.isValid?SO(this).weekYear:NaN}get ordinal(){return this.isValid?pO(this.c).ordinal:NaN}get monthShort(){return this.isValid?Cb.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Cb.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Cb.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Cb.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,n=6e4,i=xb(this.c),r=this.zone.offset(i-e),o=this.zone.offset(i+e),s=this.zone.offset(i-r*n),a=this.zone.offset(i-o*n);if(s===a)return[this];const l=i-s*n,u=i-a*n,f=Tb(l,s),d=Tb(u,a);return f.hour===d.hour&&f.minute===d.minute&&f.second===d.second&&f.millisecond===d.millisecond?[Tc(this,{ts:l}),Tc(this,{ts:u})]:[this]}get isInLeapYear(){return Cg(this.year)}get daysInMonth(){return wb(this.year,this.month)}get daysInYear(){return this.isValid?gd(this.year):NaN}get weeksInWeekYear(){return this.isValid?Eg(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Eg(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:n,numberingSystem:i,calendar:r}=yr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n,numberingSystem:i,outputCalendar:r}}toUTC(e=0,n={}){return this.setZone(Rr.instance(e),n)}toLocal(){return this.setZone(Yn.defaultZone)}setZone(e,{keepLocalTime:n=!1,keepCalendarTime:i=!1}={}){if(e=eu(e,Yn.defaultZone),e.equals(this.zone))return this;if(e.isValid){let r=this.ts;if(n||i){const o=e.offset(this.ts),s=this.toObject();[r]=$b(s,o,e)}return Tc(this,{ts:r,zone:e})}else return dt.invalid(Ng(e))}reconfigure({locale:e,numberingSystem:n,outputCalendar:i}={}){const r=this.loc.clone({locale:e,numberingSystem:n,outputCalendar:i});return Tc(this,{loc:r})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const n=Ob(e,hA),{minDaysInFirstWeek:i,startOfWeek:r}=ON(n,this.loc),o=!bt(n.weekYear)||!bt(n.weekNumber)||!bt(n.weekday),s=!bt(n.ordinal),a=!bt(n.year),l=!bt(n.month)||!bt(n.day),u=a||l,f=n.weekYear||n.weekNumber;if((u||s)&&f)throw new dd("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new dd("Can't mix ordinal dates with month/day");let d;o?d=xN({...kb(this.c,i,r),...n},i,r):bt(n.ordinal)?(d={...this.toObject(),...n},bt(n.day)&&(d.day=Math.min(wb(d.year,d.month),d.day))):d=_N({...pO(this.c),...n});const[h,g]=$b(d,this.o,this.zone);return Tc(this,{ts:h,o:g})}plus(e){if(!this.isValid)return this;const n=Ft.fromDurationLike(e);return Tc(this,uA(this,n))}minus(e){if(!this.isValid)return this;const n=Ft.fromDurationLike(e).negate();return Tc(this,uA(this,n))}startOf(e,{useLocaleWeeks:n=!1}={}){if(!this.isValid)return this;const i={},r=Ft.normalizeUnit(e);switch(r){case"years":i.month=1;case"quarters":case"months":i.day=1;case"weeks":case"days":i.hour=0;case"hours":i.minute=0;case"minutes":i.second=0;case"seconds":i.millisecond=0;break}if(r==="weeks")if(n){const o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(i.weekNumber=this.weekNumber-1),i.weekday=o}else i.weekday=1;if(r==="quarters"){const o=Math.ceil(this.month/3);i.month=(o-1)*3+1}return this.set(i)}endOf(e,n){return this.isValid?this.plus({[e]:1}).startOf(e,n).minus(1):this}toFormat(e,n={}){return this.isValid?yr.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):_O}toLocaleString(e=pb,n={}){return this.isValid?yr.create(this.loc.clone(n),e).formatDateTime(this):_O}toLocaleParts(e={}){return this.isValid?yr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:n=!1,suppressMilliseconds:i=!1,includeOffset:r=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const s=e==="extended";let a=CO(this,s);return a+="T",a+=cA(this,s,n,i,r,o),a}toISODate({format:e="extended"}={}){return this.isValid?CO(this,e==="extended"):null}toISOWeekDate(){return Mb(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:n=!1,includeOffset:i=!0,includePrefix:r=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(r?"T":"")+cA(this,s==="extended",n,e,i,o):null}toRFC2822(){return Mb(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Mb(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?CO(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:n=!1,includeOffsetSpace:i=!0}={}){let r="HH:mm:ss.SSS";return(n||e)&&(i&&(r+=" "),n?r+="z":e&&(r+="ZZ")),Mb(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():_O}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const n={...this.c};return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,n="milliseconds",i={}){if(!this.isValid||!e.isValid)return Ft.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=Sae(n).map(Ft.normalizeUnit),s=e.valueOf()>this.valueOf(),a=s?this:e,l=s?e:this,u=$le(a,l,o,r);return s?u.negate():u}diffNow(e="milliseconds",n={}){return this.diff(dt.now(),e,n)}until(e){return this.isValid?Vn.fromDateTimes(this,e):this}hasSame(e,n,i){if(!this.isValid)return!1;const r=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(n,i)<=r&&r<=o.endOf(n,i)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const n=e.base||dt.fromObject({},{zone:this.zone}),i=e.padding?this<n?-e.padding:e.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(r=e.unit,o=void 0),gA(n,this.plus(i),{...e,numeric:"always",units:r,unit:o})}toRelativeCalendar(e={}){return this.isValid?gA(e.base||dt.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(dt.isDateTime))throw new kr("min requires all arguments be DateTimes");return $N(e,n=>n.valueOf(),Math.min)}static max(...e){if(!e.every(dt.isDateTime))throw new kr("max requires all arguments be DateTimes");return $N(e,n=>n.valueOf(),Math.max)}static fromFormatExplain(e,n,i={}){const{locale:r=null,numberingSystem:o=null}=i,s=qt.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return oA(s,e,n)}static fromStringExplain(e,n,i={}){return dt.fromFormatExplain(e,n,i)}static buildFormatParser(e,n={}){const{locale:i=null,numberingSystem:r=null}=n,o=qt.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return new rA(o,e)}static fromFormatParser(e,n,i={}){if(bt(e)||bt(n))throw new kr("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:o=null}=i,s=qt.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});if(!s.equals(n.locale))throw new kr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${n.locale}`);const{result:a,zone:l,specificOffset:u,invalidReason:f}=n.explainFromTokens(e);return f?dt.invalid(f):_d(a,l,i,`format ${n.format}`,e,u)}static get DATE_SHORT(){return pb}static get DATE_MED(){return W7}static get DATE_MED_WITH_WEEKDAY(){return Gse}static get DATE_FULL(){return H7}static get DATE_HUGE(){return Q7}static get TIME_SIMPLE(){return U7}static get TIME_WITH_SECONDS(){return Z7}static get TIME_WITH_SHORT_OFFSET(){return q7}static get TIME_WITH_LONG_OFFSET(){return Y7}static get TIME_24_SIMPLE(){return V7}static get TIME_24_WITH_SECONDS(){return X7}static get TIME_24_WITH_SHORT_OFFSET(){return G7}static get TIME_24_WITH_LONG_OFFSET(){return K7}static get DATETIME_SHORT(){return J7}static get DATETIME_SHORT_WITH_SECONDS(){return eN}static get DATETIME_MED(){return tN}static get DATETIME_MED_WITH_SECONDS(){return nN}static get DATETIME_MED_WITH_WEEKDAY(){return Kse}static get DATETIME_FULL(){return iN}static get DATETIME_FULL_WITH_SECONDS(){return rN}static get DATETIME_HUGE(){return oN}static get DATETIME_HUGE_WITH_SECONDS(){return sN}}function Ag(t){if(dt.isDateTime(t))return t;if(t&&t.valueOf&&tu(t.valueOf()))return dt.fromJSDate(t);if(t&&typeof t=="object")return dt.fromObject(t);throw new kr(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var Yle=typeof tn=="object"&&tn&&tn.Object===Object&&tn,vA=Yle,Vle=vA,Xle=typeof self=="object"&&self&&self.Object===Object&&self,Gle=Vle||Xle||Function("return this")(),$s=Gle,Kle=$s,Jle=Kle.Symbol,Od=Jle;function eue(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}var bA=eue,kA=Od,yA=Object.prototype,tue=yA.hasOwnProperty,nue=yA.toString,Pg=kA?kA.toStringTag:void 0;function iue(t){var e=tue.call(t,Pg),n=t[Pg];try{t[Pg]=void 0;var i=!0}catch{}var r=nue.call(t);return i&&(e?t[Pg]=n:delete t[Pg]),r}var rue=iue,oue=Object.prototype,sue=oue.toString;function aue(t){return sue.call(t)}var lue=aue,wA=Od,uue=rue,cue=lue,fue="[object Null]",due="[object Undefined]",xA=wA?wA.toStringTag:void 0;function hue(t){return t==null?t===void 0?due:fue:xA&&xA in Object(t)?uue(t):cue(t)}var Sd=hue;function pue(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ya=pue,gue=Sd,mue=Ya,vue="[object AsyncFunction]",bue="[object Function]",kue="[object GeneratorFunction]",yue="[object Proxy]";function wue(t){if(!mue(t))return!1;var e=gue(t);return e==bue||e==kue||e==vue||e==yue}var _A=wue,xue=$s,_ue=xue["__core-js_shared__"],Oue=_ue,EO=Oue,OA=function(){var t=/[^.]+$/.exec(EO&&EO.keys&&EO.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Sue(t){return!!OA&&OA in t}var Cue=Sue,Eue=Function.prototype,Tue=Eue.toString;function $ue(t){if(t!=null){try{return Tue.call(t)}catch{}try{return t+""}catch{}}return""}var SA=$ue,Mue=_A,Nue=Cue,Aue=Ya,Pue=SA,Due=/[\\^$.*+?()[\]{}|]/g,Iue=/^\[object .+?Constructor\]$/,Lue=Function.prototype,Rue=Object.prototype,jue=Lue.toString,Fue=Rue.hasOwnProperty,zue=RegExp("^"+jue.call(Fue).replace(Due,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bue(t){if(!Aue(t)||Nue(t))return!1;var e=Mue(t)?zue:Iue;return e.test(Pue(t))}var Wue=Bue;function Hue(t,e){return t==null?void 0:t[e]}var Que=Hue,Uue=Wue,Zue=Que;function que(t,e){var n=Zue(t,e);return Uue(n)?n:void 0}var $c=que,Yue=$c,Vue=$s,Xue=Yue(Vue,"DataView"),Gue=Xue,Kue=$c,Jue=$s,ece=Kue(Jue,"Map"),TO=ece,tce=$c,nce=$s,ice=tce(nce,"Promise"),rce=ice,oce=$c,sce=$s,ace=oce(sce,"Set"),lce=ace,uce=$c,cce=$s,fce=uce(cce,"WeakMap"),dce=fce,$O=Gue,MO=TO,NO=rce,AO=lce,PO=dce,CA=Sd,Cd=SA,EA="[object Map]",hce="[object Object]",TA="[object Promise]",$A="[object Set]",MA="[object WeakMap]",NA="[object DataView]",pce=Cd($O),gce=Cd(MO),mce=Cd(NO),vce=Cd(AO),bce=Cd(PO),Mc=CA;($O&&Mc(new $O(new ArrayBuffer(1)))!=NA||MO&&Mc(new MO)!=EA||NO&&Mc(NO.resolve())!=TA||AO&&Mc(new AO)!=$A||PO&&Mc(new PO)!=MA)&&(Mc=function(t){var e=CA(t),n=e==hce?t.constructor:void 0,i=n?Cd(n):"";if(i)switch(i){case pce:return NA;case gce:return EA;case mce:return TA;case vce:return $A;case bce:return MA}return e});var Pb=Mc,kce=9007199254740991;function yce(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=kce}var DO=yce,wce=_A,xce=DO;function _ce(t){return t!=null&&xce(t.length)&&!wce(t)}var IO=_ce,Oce=Array.isArray,Va=Oce;function Sce(t){return t!=null&&typeof t=="object"}var Nc=Sce,Cce=Sd,Ece=Va,Tce=Nc,$ce="[object String]";function Mce(t){return typeof t=="string"||!Ece(t)&&Tce(t)&&Cce(t)==$ce}var Nce=Mce;function Ace(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}var Pce=Ace;function Dce(t){var e=-1,n=Array(t.size);return t.forEach(function(i,r){n[++e]=[r,i]}),n}var Ice=Dce;function Lce(t){var e=-1,n=Array(t.size);return t.forEach(function(i){n[++e]=i}),n}var Rce=Lce;function jce(t){return t.split("")}var Fce=jce,zce="\\ud800-\\udfff",Bce="\\u0300-\\u036f",Wce="\\ufe20-\\ufe2f",Hce="\\u20d0-\\u20ff",Qce=Bce+Wce+Hce,Uce="\\ufe0e\\ufe0f",Zce="\\u200d",qce=RegExp("["+Zce+zce+Qce+Uce+"]");function Yce(t){return qce.test(t)}var Vce=Yce,AA="\\ud800-\\udfff",Xce="\\u0300-\\u036f",Gce="\\ufe20-\\ufe2f",Kce="\\u20d0-\\u20ff",Jce=Xce+Gce+Kce,efe="\\ufe0e\\ufe0f",tfe="["+AA+"]",LO="["+Jce+"]",RO="\\ud83c[\\udffb-\\udfff]",nfe="(?:"+LO+"|"+RO+")",PA="[^"+AA+"]",DA="(?:\\ud83c[\\udde6-\\uddff]){2}",IA="[\\ud800-\\udbff][\\udc00-\\udfff]",ife="\\u200d",LA=nfe+"?",RA="["+efe+"]?",rfe="(?:"+ife+"(?:"+[PA,DA,IA].join("|")+")"+RA+LA+")*",ofe=RA+LA+rfe,sfe="(?:"+[PA+LO+"?",LO,DA,IA,tfe].join("|")+")",afe=RegExp(RO+"(?="+RO+")|"+sfe+ofe,"g");function lfe(t){return t.match(afe)||[]}var ufe=lfe,cfe=Fce,ffe=Vce,dfe=ufe;function hfe(t){return ffe(t)?dfe(t):cfe(t)}var pfe=hfe;function gfe(t,e){for(var n=-1,i=t==null?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}var jA=gfe,mfe=jA;function vfe(t,e){return mfe(e,function(n){return t[n]})}var bfe=vfe;function kfe(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var yfe=kfe,wfe=Sd,xfe=Nc,_fe="[object Arguments]";function Ofe(t){return xfe(t)&&wfe(t)==_fe}var Sfe=Ofe,FA=Sfe,Cfe=Nc,zA=Object.prototype,Efe=zA.hasOwnProperty,Tfe=zA.propertyIsEnumerable,$fe=FA(function(){return arguments}())?FA:function(t){return Cfe(t)&&Efe.call(t,"callee")&&!Tfe.call(t,"callee")},jO=$fe,Db={exports:{}};function Mfe(){return!1}var Nfe=Mfe;Db.exports,function(t,e){var n=$s,i=Nfe,r=e&&!e.nodeType&&e,o=r&&!0&&t&&!t.nodeType&&t,s=o&&o.exports===r,a=s?n.Buffer:void 0,l=a?a.isBuffer:void 0,u=l||i;t.exports=u}(Db,Db.exports);var BA=Db.exports,Afe=9007199254740991,Pfe=/^(?:0|[1-9]\d*)$/;function Dfe(t,e){var n=typeof t;return e=e??Afe,!!e&&(n=="number"||n!="symbol"&&Pfe.test(t))&&t>-1&&t%1==0&&t<e}var FO=Dfe,Ife=Sd,Lfe=DO,Rfe=Nc,jfe="[object Arguments]",Ffe="[object Array]",zfe="[object Boolean]",Bfe="[object Date]",Wfe="[object Error]",Hfe="[object Function]",Qfe="[object Map]",Ufe="[object Number]",Zfe="[object Object]",qfe="[object RegExp]",Yfe="[object Set]",Vfe="[object String]",Xfe="[object WeakMap]",Gfe="[object ArrayBuffer]",Kfe="[object DataView]",Jfe="[object Float32Array]",ede="[object Float64Array]",tde="[object Int8Array]",nde="[object Int16Array]",ide="[object Int32Array]",rde="[object Uint8Array]",ode="[object Uint8ClampedArray]",sde="[object Uint16Array]",ade="[object Uint32Array]",pn={};pn[Jfe]=pn[ede]=pn[tde]=pn[nde]=pn[ide]=pn[rde]=pn[ode]=pn[sde]=pn[ade]=!0,pn[jfe]=pn[Ffe]=pn[Gfe]=pn[zfe]=pn[Kfe]=pn[Bfe]=pn[Wfe]=pn[Hfe]=pn[Qfe]=pn[Ufe]=pn[Zfe]=pn[qfe]=pn[Yfe]=pn[Vfe]=pn[Xfe]=!1;function lde(t){return Rfe(t)&&Lfe(t.length)&&!!pn[Ife(t)]}var ude=lde;function cde(t){return function(e){return t(e)}}var zO=cde,Ib={exports:{}};Ib.exports,function(t,e){var n=vA,i=e&&!e.nodeType&&e,r=i&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===i,s=o&&n.process,a=function(){try{var l=r&&r.require&&r.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();t.exports=a}(Ib,Ib.exports);var BO=Ib.exports,fde=ude,dde=zO,WA=BO,HA=WA&&WA.isTypedArray,hde=HA?dde(HA):fde,pde=hde,gde=yfe,mde=jO,vde=Va,bde=BA,kde=FO,yde=pde,wde=Object.prototype,xde=wde.hasOwnProperty;function _de(t,e){var n=vde(t),i=!n&&mde(t),r=!n&&!i&&bde(t),o=!n&&!i&&!r&&yde(t),s=n||i||r||o,a=s?gde(t.length,String):[],l=a.length;for(var u in t)(e||xde.call(t,u))&&!(s&&(u=="length"||r&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||kde(u,l)))&&a.push(u);return a}var QA=_de,Ode=Object.prototype;function Sde(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Ode;return t===n}var WO=Sde;function Cde(t,e){return function(n){return t(e(n))}}var UA=Cde,Ede=UA,Tde=Ede(Object.keys,Object),$de=Tde,Mde=WO,Nde=$de,Ade=Object.prototype,Pde=Ade.hasOwnProperty;function Dde(t){if(!Mde(t))return Nde(t);var e=[];for(var n in Object(t))Pde.call(t,n)&&n!="constructor"&&e.push(n);return e}var Ide=Dde,Lde=QA,Rde=Ide,jde=IO;function Fde(t){return jde(t)?Lde(t):Rde(t)}var Lb=Fde,zde=bfe,Bde=Lb;function Wde(t){return t==null?[]:zde(t,Bde(t))}var Hde=Wde,ZA=Od,Qde=bA,Ude=Pb,Zde=IO,qde=Nce,Yde=Pce,Vde=Ice,Xde=Rce,Gde=pfe,Kde=Hde,Jde="[object Map]",ehe="[object Set]",HO=ZA?ZA.iterator:void 0;function the(t){if(!t)return[];if(Zde(t))return qde(t)?Gde(t):Qde(t);if(HO&&t[HO])return Yde(t[HO]());var e=Ude(t),n=e==Jde?Vde:e==ehe?Xde:Kde;return n(t)}var nhe=the;const ihe=xo(nhe);function rhe(){this.__data__=[],this.size=0}var ohe=rhe;function she(t,e){return t===e||t!==t&&e!==e}var qA=she,ahe=qA;function lhe(t,e){for(var n=t.length;n--;)if(ahe(t[n][0],e))return n;return-1}var Rb=lhe,uhe=Rb,che=Array.prototype,fhe=che.splice;function dhe(t){var e=this.__data__,n=uhe(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():fhe.call(e,n,1),--this.size,!0}var hhe=dhe,phe=Rb;function ghe(t){var e=this.__data__,n=phe(e,t);return n<0?void 0:e[n][1]}var mhe=ghe,vhe=Rb;function bhe(t){return vhe(this.__data__,t)>-1}var khe=bhe,yhe=Rb;function whe(t,e){var n=this.__data__,i=yhe(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var xhe=whe,_he=ohe,Ohe=hhe,She=mhe,Che=khe,Ehe=xhe;function Ed(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ed.prototype.clear=_he,Ed.prototype.delete=Ohe,Ed.prototype.get=She,Ed.prototype.has=Che,Ed.prototype.set=Ehe;var jb=Ed,The=jb;function $he(){this.__data__=new The,this.size=0}var Mhe=$he;function Nhe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var Ahe=Nhe;function Phe(t){return this.__data__.get(t)}var Dhe=Phe;function Ihe(t){return this.__data__.has(t)}var Lhe=Ihe,Rhe=$c,jhe=Rhe(Object,"create"),Fb=jhe,YA=Fb;function Fhe(){this.__data__=YA?YA(null):{},this.size=0}var zhe=Fhe;function Bhe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Whe=Bhe,Hhe=Fb,Qhe="__lodash_hash_undefined__",Uhe=Object.prototype,Zhe=Uhe.hasOwnProperty;function qhe(t){var e=this.__data__;if(Hhe){var n=e[t];return n===Qhe?void 0:n}return Zhe.call(e,t)?e[t]:void 0}var Yhe=qhe,Vhe=Fb,Xhe=Object.prototype,Ghe=Xhe.hasOwnProperty;function Khe(t){var e=this.__data__;return Vhe?e[t]!==void 0:Ghe.call(e,t)}var Jhe=Khe,epe=Fb,tpe="__lodash_hash_undefined__";function npe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=epe&&e===void 0?tpe:e,this}var ipe=npe,rpe=zhe,ope=Whe,spe=Yhe,ape=Jhe,lpe=ipe;function Td(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Td.prototype.clear=rpe,Td.prototype.delete=ope,Td.prototype.get=spe,Td.prototype.has=ape,Td.prototype.set=lpe;var upe=Td,VA=upe,cpe=jb,fpe=TO;function dpe(){this.size=0,this.__data__={hash:new VA,map:new(fpe||cpe),string:new VA}}var hpe=dpe;function ppe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var gpe=ppe,mpe=gpe;function vpe(t,e){var n=t.__data__;return mpe(e)?n[typeof e=="string"?"string":"hash"]:n.map}var zb=vpe,bpe=zb;function kpe(t){var e=bpe(this,t).delete(t);return this.size-=e?1:0,e}var ype=kpe,wpe=zb;function xpe(t){return wpe(this,t).get(t)}var _pe=xpe,Ope=zb;function Spe(t){return Ope(this,t).has(t)}var Cpe=Spe,Epe=zb;function Tpe(t,e){var n=Epe(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}var $pe=Tpe,Mpe=hpe,Npe=ype,Ape=_pe,Ppe=Cpe,Dpe=$pe;function $d(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}$d.prototype.clear=Mpe,$d.prototype.delete=Npe,$d.prototype.get=Ape,$d.prototype.has=Ppe,$d.prototype.set=Dpe;var XA=$d,Ipe=jb,Lpe=TO,Rpe=XA,jpe=200;function Fpe(t,e){var n=this.__data__;if(n instanceof Ipe){var i=n.__data__;if(!Lpe||i.length<jpe-1)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rpe(i)}return n.set(t,e),this.size=n.size,this}var zpe=Fpe,Bpe=jb,Wpe=Mhe,Hpe=Ahe,Qpe=Dhe,Upe=Lhe,Zpe=zpe;function Md(t){var e=this.__data__=new Bpe(t);this.size=e.size}Md.prototype.clear=Wpe,Md.prototype.delete=Hpe,Md.prototype.get=Qpe,Md.prototype.has=Upe,Md.prototype.set=Zpe;var qpe=Md;function Ype(t,e){for(var n=-1,i=t==null?0:t.length;++n<i&&e(t[n],n,t)!==!1;);return t}var Vpe=Ype,Xpe=$c,Gpe=function(){try{var t=Xpe(Object,"defineProperty");return t({},"",{}),t}catch{}}(),GA=Gpe,KA=GA;function Kpe(t,e,n){e=="__proto__"&&KA?KA(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var JA=Kpe,Jpe=JA,ege=qA,tge=Object.prototype,nge=tge.hasOwnProperty;function ige(t,e,n){var i=t[e];(!(nge.call(t,e)&&ege(i,n))||n===void 0&&!(e in t))&&Jpe(t,e,n)}var QO=ige,rge=QO,oge=JA;function sge(t,e,n,i){var r=!n;n||(n={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=i?i(n[a],t[a],a,n,t):void 0;l===void 0&&(l=t[a]),r?oge(n,a,l):rge(n,a,l)}return n}var Bb=sge,age=Bb,lge=Lb;function uge(t,e){return t&&age(e,lge(e),t)}var cge=uge;function fge(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var dge=fge,hge=Ya,pge=WO,gge=dge,mge=Object.prototype,vge=mge.hasOwnProperty;function bge(t){if(!hge(t))return gge(t);var e=pge(t),n=[];for(var i in t)i=="constructor"&&(e||!vge.call(t,i))||n.push(i);return n}var kge=bge,yge=QA,wge=kge,xge=IO;function _ge(t){return xge(t)?yge(t,!0):wge(t)}var UO=_ge,Oge=Bb,Sge=UO;function Cge(t,e){return t&&Oge(e,Sge(e),t)}var Ege=Cge,Wb={exports:{}};Wb.exports,function(t,e){var n=$s,i=e&&!e.nodeType&&e,r=i&&!0&&t&&!t.nodeType&&t,o=r&&r.exports===i,s=o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var d=u.length,h=a?a(d):new u.constructor(d);return u.copy(h),h}t.exports=l}(Wb,Wb.exports);var Tge=Wb.exports;function $ge(t,e){for(var n=-1,i=t==null?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}var Mge=$ge;function Nge(){return[]}var eP=Nge,Age=Mge,Pge=eP,Dge=Object.prototype,Ige=Dge.propertyIsEnumerable,tP=Object.getOwnPropertySymbols,Lge=tP?function(t){return t==null?[]:(t=Object(t),Age(tP(t),function(e){return Ige.call(t,e)}))}:Pge,ZO=Lge,Rge=Bb,jge=ZO;function Fge(t,e){return Rge(t,jge(t),e)}var zge=Fge;function Bge(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}var qO=Bge,Wge=UA,Hge=Wge(Object.getPrototypeOf,Object),nP=Hge,Qge=qO,Uge=nP,Zge=ZO,qge=eP,Yge=Object.getOwnPropertySymbols,Vge=Yge?function(t){for(var e=[];t;)Qge(e,Zge(t)),t=Uge(t);return e}:qge,iP=Vge,Xge=Bb,Gge=iP;function Kge(t,e){return Xge(t,Gge(t),e)}var Jge=Kge,eme=qO,tme=Va;function nme(t,e,n){var i=e(t);return tme(t)?i:eme(i,n(t))}var rP=nme,ime=rP,rme=ZO,ome=Lb;function sme(t){return ime(t,ome,rme)}var ame=sme,lme=rP,ume=iP,cme=UO;function fme(t){return lme(t,cme,ume)}var dme=fme,hme=Object.prototype,pme=hme.hasOwnProperty;function gme(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&pme.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var mme=gme,vme=$s,bme=vme.Uint8Array,kme=bme,oP=kme;function yme(t){var e=new t.constructor(t.byteLength);return new oP(e).set(new oP(t)),e}var YO=yme,wme=YO;function xme(t,e){var n=e?wme(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var _me=xme,Ome=/\w*$/;function Sme(t){var e=new t.constructor(t.source,Ome.exec(t));return e.lastIndex=t.lastIndex,e}var Cme=Sme,sP=Od,aP=sP?sP.prototype:void 0,lP=aP?aP.valueOf:void 0;function Eme(t){return lP?Object(lP.call(t)):{}}var Tme=Eme,$me=YO;function Mme(t,e){var n=e?$me(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Nme=Mme,Ame=YO,Pme=_me,Dme=Cme,Ime=Tme,Lme=Nme,Rme="[object Boolean]",jme="[object Date]",Fme="[object Map]",zme="[object Number]",Bme="[object RegExp]",Wme="[object Set]",Hme="[object String]",Qme="[object Symbol]",Ume="[object ArrayBuffer]",Zme="[object DataView]",qme="[object Float32Array]",Yme="[object Float64Array]",Vme="[object Int8Array]",Xme="[object Int16Array]",Gme="[object Int32Array]",Kme="[object Uint8Array]",Jme="[object Uint8ClampedArray]",e0e="[object Uint16Array]",t0e="[object Uint32Array]";function n0e(t,e,n){var i=t.constructor;switch(e){case Ume:return Ame(t);case Rme:case jme:return new i(+t);case Zme:return Pme(t,n);case qme:case Yme:case Vme:case Xme:case Gme:case Kme:case Jme:case e0e:case t0e:return Lme(t,n);case Fme:return new i;case zme:case Hme:return new i(t);case Bme:return Dme(t);case Wme:return new i;case Qme:return Ime(t)}}var i0e=n0e,r0e=Ya,uP=Object.create,o0e=function(){function t(){}return function(e){if(!r0e(e))return{};if(uP)return uP(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),s0e=o0e,a0e=s0e,l0e=nP,u0e=WO;function c0e(t){return typeof t.constructor=="function"&&!u0e(t)?a0e(l0e(t)):{}}var f0e=c0e,d0e=Pb,h0e=Nc,p0e="[object Map]";function g0e(t){return h0e(t)&&d0e(t)==p0e}var m0e=g0e,v0e=m0e,b0e=zO,cP=BO,fP=cP&&cP.isMap,k0e=fP?b0e(fP):v0e,y0e=k0e,w0e=Pb,x0e=Nc,_0e="[object Set]";function O0e(t){return x0e(t)&&w0e(t)==_0e}var S0e=O0e,C0e=S0e,E0e=zO,dP=BO,hP=dP&&dP.isSet,T0e=hP?E0e(hP):C0e,$0e=T0e,M0e=qpe,N0e=Vpe,A0e=QO,P0e=cge,D0e=Ege,I0e=Tge,L0e=bA,R0e=zge,j0e=Jge,F0e=ame,z0e=dme,B0e=Pb,W0e=mme,H0e=i0e,Q0e=f0e,U0e=Va,Z0e=BA,q0e=y0e,Y0e=Ya,V0e=$0e,X0e=Lb,G0e=UO,K0e=1,J0e=2,e1e=4,pP="[object Arguments]",t1e="[object Array]",n1e="[object Boolean]",i1e="[object Date]",r1e="[object Error]",gP="[object Function]",o1e="[object GeneratorFunction]",s1e="[object Map]",a1e="[object Number]",mP="[object Object]",l1e="[object RegExp]",u1e="[object Set]",c1e="[object String]",f1e="[object Symbol]",d1e="[object WeakMap]",h1e="[object ArrayBuffer]",p1e="[object DataView]",g1e="[object Float32Array]",m1e="[object Float64Array]",v1e="[object Int8Array]",b1e="[object Int16Array]",k1e="[object Int32Array]",y1e="[object Uint8Array]",w1e="[object Uint8ClampedArray]",x1e="[object Uint16Array]",_1e="[object Uint32Array]",an={};an[pP]=an[t1e]=an[h1e]=an[p1e]=an[n1e]=an[i1e]=an[g1e]=an[m1e]=an[v1e]=an[b1e]=an[k1e]=an[s1e]=an[a1e]=an[mP]=an[l1e]=an[u1e]=an[c1e]=an[f1e]=an[y1e]=an[w1e]=an[x1e]=an[_1e]=!0,an[r1e]=an[gP]=an[d1e]=!1;function Hb(t,e,n,i,r,o){var s,a=e&K0e,l=e&J0e,u=e&e1e;if(n&&(s=r?n(t,i,r,o):n(t)),s!==void 0)return s;if(!Y0e(t))return t;var f=U0e(t);if(f){if(s=W0e(t),!a)return L0e(t,s)}else{var d=B0e(t),h=d==gP||d==o1e;if(Z0e(t))return I0e(t,a);if(d==mP||d==pP||h&&!r){if(s=l||h?{}:Q0e(t),!a)return l?j0e(t,D0e(s,t)):R0e(t,P0e(s,t))}else{if(!an[d])return r?t:{};s=H0e(t,d,a)}}o||(o=new M0e);var g=o.get(t);if(g)return g;o.set(t,s),V0e(t)?t.forEach(function(x){s.add(Hb(x,e,n,x,t,o))}):q0e(t)&&t.forEach(function(x,_){s.set(_,Hb(x,e,n,_,t,o))});var m=u?l?z0e:F0e:l?G0e:X0e,y=f?void 0:m(t);return N0e(y||t,function(x,_){y&&(_=x,x=t[_]),A0e(s,_,Hb(x,e,n,_,t,o))}),s}var O1e=Hb,S1e=O1e,C1e=1,E1e=4;function T1e(t){return S1e(t,C1e|E1e)}var $1e=T1e;const vP=xo($1e);var oa={},Xa={},VO={},Fi={},tt=A;let Qb=new Map;function bP(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function kP(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}function yP(t){let e={};t=t.split(";");for(let n of t)if(n!==""){let[i,r]=n.split(/:([^]+)/);i&&r&&(e[i.trim()]=r.trim())}return e}function Ub(t){let e=Qb.get(t);return e===void 0&&(e=yP(t),Qb.set(t,e)),e}function M1e(t){let e="";for(let n in t)n&&(e+=`${n}: ${t[n]};`);return e}function Nd(t,e){let n=Ub("getStyle"in t?t.getStyle():t.style);e=Object.entries(e).reduce((r,[o,s])=>(s instanceof Function?r[o]=s(n[o]):s===null?delete r[o]:r[o]=s,r),{...n});let i=M1e(e);t.setStyle(i),Qb.set(i,e)}function N1e(t){for(;t!==null&&!tt.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.getChildrenSize()===0&&t.remove(!0),t=n}}function XO(t,e,n,i,r=null){if(e.length!==0){var o=e[0],s=new Map,a=[];o=tt.$isElementNode(o)?o:o.getParentOrThrow(),o.isInline()&&(o=o.getParentOrThrow());for(var l=!1;o!==null;){var u=o.getPreviousSibling();if(u!==null){o=u,l=!0;break}if(o=o.getParentOrThrow(),tt.$isRootOrShadowRoot(o))break}u=new Set;for(var f=0;f<n;f++){var d=e[f];tt.$isElementNode(d)&&d.getChildrenSize()===0&&u.add(d.getKey())}var h=new Set;for(f=0;f<n;f++){d=e[f];var g=d.getParent();if(g!==null&&g.isInline()&&(g=g.getParent()),g!==null&&tt.$isLeafNode(d)&&!h.has(d.getKey())){if(d=g.getKey(),s.get(d)===void 0){let m=i();m.setFormat(g.getFormatType()),m.setIndent(g.getIndent()),a.push(m),s.set(d,m),g.getChildren().forEach(y=>{m.append(y),h.add(y.getKey()),tt.$isElementNode(y)&&y.getChildrenKeys().forEach(x=>h.add(x))}),N1e(g)}}else if(u.has(d.getKey())){if(!tt.$isElementNode(d))throw Error("Expected node in emptyElements to be an ElementNode");g=i(),g.setFormat(d.getFormatType()),g.setIndent(d.getIndent()),a.push(g),d.remove(!0)}}if(r!==null)for(e=0;e<a.length;e++)r.append(a[e]);if(e=null,tt.$isRootOrShadowRoot(o))if(l)if(r!==null)o.insertAfter(r);else for(r=a.length-1;0<=r;r--)o.insertAfter(a[r]);else if(l=o.getFirstChild(),tt.$isElementNode(l)&&(o=l),l===null)if(r)o.append(r);else for(r=0;r<a.length;r++)l=a[r],o.append(l),e=l;else if(r!==null)l.insertBefore(r);else for(o=0;o<a.length;o++)r=a[o],l.insertBefore(r),e=r;else if(r)o.insertAfter(r);else for(r=a.length-1;0<=r;r--)l=a[r],o.insertAfter(l),e=l;a=tt.$getPreviousSelection(),tt.$isRangeSelection(a)&&a.anchor.getNode().isAttached()&&a.focus.getNode().isAttached()?tt.$setSelection(a.clone()):e!==null?e.selectEnd():t.dirty=!0}}function wP(t,e,n,i){t.modify(e?"extend":"move",n,i)}function xP(t){return t=t.anchor.getNode(),(tt.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function GO(t){if(tt.$isDecoratorNode(t)||!tt.$isElementNode(t)||tt.$isRootOrShadowRoot(t))return!1;var e=t.getFirstChild();return e=e===null||tt.$isLineBreakNode(e)||tt.$isTextNode(e)||e.isInline(),!t.isInline()&&t.canBeEmpty()!==!1&&e}Fi.$addNodeStyle=function(t){t=t.getStyle();let e=yP(t);Qb.set(t,e)},Fi.$cloneWithProperties=function(t){let e=t.constructor.clone(t);return e.__parent=t.__parent,e.__next=t.__next,e.__prev=t.__prev,tt.$isElementNode(t)&&tt.$isElementNode(e)?(e.__first=t.__first,e.__last=t.__last,e.__size=t.__size,e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir,e):(tt.$isTextNode(t)&&tt.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e)},Fi.$getSelectionStyleValueForProperty=function(t,e,n=""){let i=null,r=t.getNodes();var o=t.anchor,s=t.focus,a=t.isBackward();let l=a?s.offset:o.offset;if(o=a?s.getNode():o.getNode(),t.isCollapsed()&&t.style!==""&&(t=Ub(t.style),t!==null&&e in t))return t[e];for(t=0;t<r.length;t++){var u=r[t];if((t===0||l!==0||!u.is(o))&&tt.$isTextNode(u)){if(s=e,a=n,u=u.getStyle(),u=Ub(u),s=u!==null&&u[s]||a,i===null)i=s;else if(i!==s){i="";break}}}return i===null?n:i},Fi.$isAtNodeEnd=function(t){if(t.type==="text")return t.offset===t.getNode().getTextContentSize();let e=t.getNode();if(!tt.$isElementNode(e))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return t.offset===e.getChildrenSize()},Fi.$isParentElementRTL=xP,Fi.$moveCaretSelection=wP,Fi.$moveCharacter=function(t,e,n){let i=xP(t);wP(t,e,n?!i:i,"character")},Fi.$patchStyleText=function(t,e){var n=t.getNodes(),i=n.length,r=t.getStartEndPoints();if(r!==null){var[o,s]=r;--i,r=n[0];var a=n[i];if(t.isCollapsed()&&tt.$isRangeSelection(t))Nd(t,e);else{var l=r.getTextContent().length,u=s.offset,f=o.offset,d=o.isBefore(s),h=d?f:u;t=d?u:f;var g=d?o.type:s.type,m=d?s.type:o.type;if(d=d?s.key:o.key,tt.$isTextNode(r)&&h===l){let y=r.getNextSibling();tt.$isTextNode(y)&&(h=f=0,r=y)}if(n.length===1)tt.$isTextNode(r)&&r.canHaveFormat()&&(h=g==="element"?0:f>u?u:f,t=m==="element"?l:f>u?f:u,h!==t&&(h===0&&t===l?(Nd(r,e),r.select(h,t)):(n=r.splitText(h,t),n=h===0?n[0]:n[1],Nd(n,e),n.select(0,t-h))));else for(tt.$isTextNode(r)&&h<r.getTextContentSize()&&r.canHaveFormat()&&(h!==0&&(r=r.splitText(h)[1],h=0,o.set(r.getKey(),h,"text")),Nd(r,e)),tt.$isTextNode(a)&&a.canHaveFormat()&&(h=a.getTextContent().length,a.__key!==d&&t!==0&&(t=h),t!==h&&([a]=a.splitText(t)),t===0&&m!=="element"||Nd(a,e)),t=1;t<i;t++)h=n[t],m=h.getKey(),tt.$isTextNode(h)&&h.canHaveFormat()&&m!==r.getKey()&&m!==a.getKey()&&!h.isToken()&&Nd(h,e)}}},Fi.$selectAll=function(t){let e=t.anchor;t=t.focus;var n=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();let i=n.getFirstDescendant();n=n.getLastDescendant();let r="element",o="element",s=0;tt.$isTextNode(i)?r="text":tt.$isElementNode(i)||i===null||(i=i.getParentOrThrow()),tt.$isTextNode(n)?(o="text",s=n.getTextContentSize()):tt.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),i&&n&&(e.set(i.getKey(),0,r),t.set(n.getKey(),s,o))},Fi.$setBlocksType=function(t,e){if(t!==null){var n=t.getStartEndPoints();if(n=n?n[0]:null,n!==null&&n.key==="root")e=e(),t=tt.$getRoot(),(n=t.getFirstChild())?n.replace(e,!0):t.append(e);else{if(t=t.getNodes(),n!==null){for(n=n.getNode();n!==null&&n.getParent()!==null&&!GO(n);)n=n.getParentOrThrow();n=GO(n)?n:null}else n=!1;for(n&&t.indexOf(n)===-1&&t.push(n),n=0;n<t.length;n++){let i=t[n];if(!GO(i))continue;if(!tt.$isElementNode(i))throw Error("Expected block node to be an ElementNode");let r=e();r.setFormat(i.getFormatType()),r.setIndent(i.getIndent()),i.replace(r,!0)}}}},Fi.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=tt.$getAdjacentNode(t.focus,e),tt.$isDecoratorNode(t)&&!t.isIsolated()||tt.$isElementNode(t)&&!t.isInline()&&!t.canBeEmpty()},Fi.$sliceSelectedTextNodeContent=function(t,e){var n=t.getStartEndPoints();if(e.isSelected(t)&&!e.isSegmented()&&!e.isToken()&&n!==null){let[a,l]=n;n=t.isBackward();var i=a.getNode(),r=l.getNode(),o=e.is(i),s=e.is(r);if(o||s){let[u,f]=tt.$getCharacterOffsets(t);t=i.is(r),o=e.is(n?r:i),r=e.is(n?i:r),i=0,s=void 0,t?(i=u>f?f:u,s=u>f?u:f):o?(i=n?f:u,s=void 0):r&&(n=n?u:f,i=0,s=n),e.__text=e.__text.slice(i,s)}}return e},Fi.$wrapNodes=function(t,e,n=null){var i=t.getStartEndPoints(),r=i?i[0]:null;i=t.getNodes();let o=i.length;if(r!==null&&(o===0||o===1&&r.type==="element"&&r.getNode().getChildrenSize()===0)){t=r.type==="text"?r.getNode().getParentOrThrow():r.getNode(),i=t.getChildren();let a=e();a.setFormat(t.getFormatType()),a.setIndent(t.getIndent()),i.forEach(l=>a.append(l)),n&&(a=n.append(a)),t.replace(a)}else{r=null;var s=[];for(let a=0;a<o;a++){let l=i[a];tt.$isRootOrShadowRoot(l)?(XO(t,s,s.length,e,n),s=[],r=l):r===null||r!==null&&tt.$hasAncestor(l,r)?s.push(l):(XO(t,s,s.length,e,n),s=[l])}XO(t,s,s.length,e,n)}},Fi.createDOMRange=function(t,e,n,i,r){let o=e.getKey(),s=i.getKey(),a=document.createRange(),l=t.getElementByKey(o);if(t=t.getElementByKey(s),tt.$isTextNode(e)&&(l=bP(l)),tt.$isTextNode(i)&&(t=bP(t)),e===void 0||i===void 0||l===null||t===null)return null;l.nodeName==="BR"&&([l,n]=kP(l)),t.nodeName==="BR"&&([t,r]=kP(t)),e=l.firstChild,l===t&&e!=null&&e.nodeName==="BR"&&n===0&&r===0&&(r=1);try{a.setStart(l,n),a.setEnd(t,r)}catch{return null}return!a.collapsed||n===r&&o===s||(a.setStart(t,r),a.setEnd(l,n)),a},Fi.createRectsFromDOMRange=function(t,e){var n=t.getRootElement();if(n===null)return[];t=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e=Array.from(e.getClientRects());let i=e.length;e.sort((o,s)=>{let a=o.top-s.top;return 3>=Math.abs(a)?o.left-s.left:a});let r;for(let o=0;o<i;o++){let s=e[o],a=s.width+n===t.width;r&&r.top<=s.top&&r.top+r.height>s.top&&r.left+r.width>s.left||a?(e.splice(o--,1),i--):r=s}return e},Fi.getStyleObjectFromCSS=Ub,Fi.trimTextContentFromAnchor=function(t,e,n){let i=e.getNode();if(tt.$isElementNode(i)){var r=i.getDescendantByIndex(e.offset);r!==null&&(i=r)}for(;0<n&&i!==null;){tt.$isElementNode(i)&&(r=i.getLastDescendant(),r!==null&&(i=r));var o=i.getPreviousSibling(),s=0;if(o===null){r=i.getParentOrThrow();for(var a=r.getPreviousSibling();a===null;){if(r=r.getParent(),r===null){o=null;break}a=r.getPreviousSibling()}r!==null&&(s=r.isInline()?0:2,o=a)}if(a=i.getTextContent(),a===""&&tt.$isElementNode(i)&&!i.isInline()&&(a=`
|
||
|
||
`),r=a.length,!tt.$isTextNode(i)||n>=r)a=i.getParent(),i.remove(),a==null||a.getChildrenSize()!==0||tt.$isRootNode(a)||a.remove(),n-=r+s,i=o;else{let l=i.getKey();s=t.getEditorState().read(()=>{const f=tt.$getNodeByKey(l);return tt.$isTextNode(f)&&f.isSimpleText()?f.getTextContent():null}),o=r-n;let u=a.slice(0,o);s!==null&&s!==a?(n=tt.$getPreviousSelection(),r=i,i.isSimpleText()?i.setTextContent(s):(r=tt.$createTextNode(s),i.replace(r)),tt.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,r.select(n,n))):i.isSimpleText()?(s=e.key===l,a=e.offset,a<n&&(a=r),n=s?a-n:0,r=s?a:o,s&&n===0?([n]=i.splitText(n,r),n.remove()):([,n]=i.splitText(n,r),n.remove())):(n=tt.$createTextNode(u),i.replace(n)),n=0}}};var Oi=Fi,Xn={},_P=Oi,$n=A;function A1e(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function OP(...t){return()=>{t.forEach(e=>e())}}let P1e={attributes:!0,characterData:!0,childList:!0,subtree:!0};function SP(t,e,n){function i(){if(s===null)throw Error("Unexpected null rootDOMNode");if(a===null)throw Error("Unexpected null parentDOMNode");let{left:h,top:g}=s.getBoundingClientRect();var m=a;let y=_P.createRectsFromDOMRange(t,e);f.isConnected||m.append(f),m=!1;for(let S=0;S<y.length;S++){var x=y[S];let C=u[S]||document.createElement("div"),E=C.style;E.position!=="absolute"&&(E.position="absolute",m=!0);var _=`${x.left-h}px`;E.left!==_&&(E.left=_,m=!0),_=`${x.top-g}px`,E.top!==_&&(C.style.top=_,m=!0),_=`${x.width}px`,E.width!==_&&(C.style.width=_,m=!0),x=`${x.height}px`,E.height!==x&&(C.style.height=x,m=!0),C.parentNode!==f&&(f.append(C),m=!0),u[S]=C}for(;u.length>y.length;)u.pop();m&&n(u)}function r(){s=a=null,l!==null&&l.disconnect(),l=null,f.remove();for(let h of u)h.remove();u=[]}function o(){let h=t.getRootElement();if(h===null)return r();let g=h.parentElement;if(!(g instanceof HTMLElement))return r();r(),s=h,a=g,l=new MutationObserver(m=>{let y=t.getRootElement(),x=y&&y.parentElement;if(y!==s||x!==a)return o();for(let _ of m)if(!f.contains(_.target))return i()}),l.observe(g,P1e),i()}let s=null,a=null,l=null,u=[],f=document.createElement("div"),d=t.registerRootListener(o);return()=>{d(),r()}}function CP(t,e){for(let n of e)if(t.type.startsWith(n))return!0;return!1}let EP=(t,e)=>{for(;t!==$n.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null};Xn.$splitNode=$n.$splitNode,Xn.isHTMLAnchorElement=$n.isHTMLAnchorElement,Xn.isHTMLElement=$n.isHTMLElement,Xn.$dfs=function(t,e){let n=[];t=(t||$n.$getRoot()).getLatest(),e=e||($n.$isElementNode(t)?t.getLastDescendant():t);for(var i=t,r=0;(i=i.getParent())!==null;)r++;for(i=r;t!==null&&!t.is(e);)if(n.push({depth:i,node:t}),$n.$isElementNode(t)&&0<t.getChildrenSize())t=t.getFirstChild(),i++;else for(r=null;r===null&&t!==null;)r=t.getNextSibling(),r===null?(t=t.getParent(),i--):t=r;return t!==null&&t.is(e)&&n.push({depth:i,node:t}),n},Xn.$filter=function(t,e){let n=[];for(let i=0;i<t.length;i++){let r=e(t[i]);r!==null&&n.push(r)}return n},Xn.$findMatchingParent=EP,Xn.$getNearestBlockElementAncestorOrThrow=function(t){let e=EP(t,n=>$n.$isElementNode(n)&&!n.isInline());return $n.$isElementNode(e)||A1e(4,t.__key),e},Xn.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},Xn.$insertFirst=function(t,e){let n=t.getFirstChild();n!==null?n.insertBefore(e):t.append(e)},Xn.$insertNodeToNearestRoot=function(t){var e=$n.$getSelection()||$n.$getPreviousSelection();if($n.$isRangeSelection(e)){var{focus:n}=e;if(e=n.getNode(),n=n.offset,$n.$isRootOrShadowRoot(e))n=e.getChildAtIndex(n),n==null?e.append(t):n.insertBefore(t),t.selectNext();else{let i,r;$n.$isTextNode(e)?(i=e.getParentOrThrow(),r=e.getIndexWithinParent(),0<n&&(r+=1,e.splitText(n))):(i=e,r=n),[,e]=$n.$splitNode(i,r),e.insertBefore(t),e.selectStart()}}else e!=null?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):$n.$getRoot().append(t),e=$n.$createParagraphNode(),t.insertAfter(e),e.select();return t.getLatest()},Xn.$restoreEditorState=function(t,e){let n=new Map,i=t._pendingEditorState;for(let[r,o]of e._nodeMap){let s=_P.$cloneWithProperties(o);if($n.$isTextNode(s)){if(!$n.$isTextNode(o))throw Error("Expected node be a TextNode");s.__text=o.__text}n.set(r,s)}i&&(i._nodeMap=n),t._dirtyType=2,t=e._selection,$n.$setSelection(t===null?null:t.clone())},Xn.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},Xn.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&(n=n.split(" ").filter(i=>i!==""),t.classList.add(...n))})},Xn.isMimeType=CP,Xn.markSelection=function(t,e){function n(l){l.read(()=>{var u=$n.$getSelection();if($n.$isRangeSelection(u)){var{anchor:f,focus:d}=u;u=f.getNode();var h=u.getKey(),g=f.offset,m=d.getNode(),y=m.getKey(),x=d.offset,_=t.getElementByKey(h),S=t.getElementByKey(y);if(h=i===null||_===null||g!==r||h!==i.getKey()||u!==i&&(!(i instanceof $n.TextNode)||u.updateDOM(i,_,t._config)),y=o===null||S===null||x!==s||y!==o.getKey()||m!==o&&(!(o instanceof $n.TextNode)||m.updateDOM(o,S,t._config)),h||y){_=t.getElementByKey(f.getNode().getKey());var C=t.getElementByKey(d.getNode().getKey());if(_!==null&&C!==null&&_.tagName==="SPAN"&&C.tagName==="SPAN"){if(y=document.createRange(),d.isBefore(f)?(h=C,S=d.offset,C=_,_=f.offset):(h=_,S=f.offset,_=d.offset),h=h.firstChild,h===null||(C=C.firstChild,C===null))throw Error("Expected text node to be first child of span");y.setStart(h,S),y.setEnd(C,_),a(),a=SP(t,y,E=>{for(let N of E){let M=N.style;M.background!=="Highlight"&&(M.background="Highlight"),M.color!=="HighlightText"&&(M.color="HighlightText"),M.zIndex!=="-1"&&(M.zIndex="-1"),M.pointerEvents!=="none"&&(M.pointerEvents="none"),M.marginTop!=="-1.5px"&&(M.marginTop="-1.5px"),M.paddingTop!=="4px"&&(M.paddingTop="4px"),M.paddingBottom!=="0px"&&(M.paddingBottom="0px")}e!==void 0&&e(E)})}}i=u,r=g,o=m,s=x}else s=o=r=i=null,a(),a=()=>{}})}let i=null,r=null,o=null,s=null,a=()=>{};return n(t.getEditorState()),OP(t.registerUpdateListener(({editorState:l})=>n(l)),a,()=>{a()})},Xn.mediaFileReader=function(t,e){let n=t[Symbol.iterator]();return new Promise((i,r)=>{let o=[],s=()=>{const{done:a,value:l}=n.next();if(a)return i(o);const u=new FileReader;u.addEventListener("error",r),u.addEventListener("load",()=>{const f=u.result;typeof f=="string"&&o.push({file:l,result:f}),s()}),CP(l,e)?u.readAsDataURL(l):s()};s()})},Xn.mergeRegister=OP,Xn.objectKlassEquals=function(t,e){return t!==null?Object.getPrototypeOf(t).constructor.name===e.name:!1},Xn.positionNodeOnRange=SP,Xn.registerNestedElementResolver=function(t,e,n,i){return t.registerNodeTransform(e,r=>{e:{for(var o=r.getChildren(),s=0;s<o.length;s++)if(o[s]instanceof e){o=null;break e}for(o=r;o!==null;)if(s=o,o=o.getParent(),o instanceof e){o={child:s,parent:o};break e}o=null}if(o!==null){const{child:a,parent:l}=o;if(a.is(r)){if(i(l,r),r=a.getNextSiblings(),o=r.length,l.insertAfter(a),o!==0){s=n(l),a.insertAfter(s);for(let u=0;u<o;u++)s.append(r[u])}l.canBeEmpty()||l.getChildrenSize()!==0||l.remove()}}})},Xn.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})};var ut=Xn,TP=Oi,D1e=ut,Ad=A;function $P(t,e,n,i=null){let r=i!==null?e.isSelected(i):!0,o=Ad.$isElementNode(e)&&e.excludeFromCopy("html");var s=e;i!==null&&(s=TP.$cloneWithProperties(e),s=Ad.$isTextNode(s)&&i!==null?TP.$sliceSelectedTextNodeContent(i,s):s);let a=Ad.$isElementNode(s)?s.getChildren():[];var l=t._nodes.get(s.getType());l=l&&l.exportDOM!==void 0?l.exportDOM(t,s):s.exportDOM(t);let{element:u,after:f}=l;if(!u)return!1;l=document.createDocumentFragment();for(let d=0;d<a.length;d++){let h=a[d],g=$P(t,h,l,i);!r&&Ad.$isElementNode(e)&&g&&e.extractWithChild(h,i,"html")&&(r=!0)}return r&&!o?(D1e.isHTMLElement(u)&&u.append(l),n.append(u),f&&(t=f.call(s,u))&&u.replaceWith(t)):n.append(l),r}let MP=new Set(["STYLE","SCRIPT"]);function NP(t,e,n=new Map,i){let r=[];if(MP.has(t.nodeName))return r;let o=null;var s,{nodeName:a}=t,l=e._htmlConversions.get(a.toLowerCase());if(a=null,l!==void 0)for(s of l)l=s(t),l!==null&&(a===null||(a.priority||0)<(l.priority||0))&&(a=l);if(a=(s=a!==null?a.conversion:null)?s(t):null,s=null,a!==null){if(s=a.after,l=a.node,o=Array.isArray(l)?l[l.length-1]:l,o!==null){for(var[,u]of n)if(o=u(o,i),!o)break;o&&r.push(...Array.isArray(l)?l:[o])}a.forChild!=null&&n.set(t.nodeName,a.forChild)}for(t=t.childNodes,i=[],u=0;u<t.length;u++)i.push(...NP(t[u],e,new Map(n),o));return s!=null&&(i=s(i)),o==null?r=r.concat(i):Ad.$isElementNode(o)&&o.append(...i),r}VO.$generateHtmlFromNodes=function(t,e){if(typeof document>"u"||typeof window>"u"&&typeof tn.window>"u")throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),i=Ad.$getRoot().getChildren();for(let r=0;r<i.length;r++)$P(t,i[r],n,e);return n.innerHTML},VO.$generateNodesFromDOM=function(t,e){e=e.body?e.body.childNodes:[];let n=[];for(let r=0;r<e.length;r++){var i=e[r];MP.has(i.nodeName)||(i=NP(i,t),i!==null&&(n=n.concat(i)))}return n};var Mn=VO,AP=Mn,KO=Oi,I1e=ut,mi=A;function PP(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let DP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function IP(t){let e=mi.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return mi.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?"":AP.$generateHtmlFromNodes(t,e)}function LP(t){let e=mi.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return mi.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(jP(t,e))}function JO(t,e,n){t.dispatchCommand(mi.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,{nodes:e,selection:n})||n.insertNodes(e)}function RP(t,e,n,i=[]){let r=e!==null?n.isSelected(e):!0,o=mi.$isElementNode(n)&&n.excludeFromCopy("html");var s=n;if(e!==null){var a=KO.$cloneWithProperties(n);s=a=mi.$isTextNode(a)&&e!==null?KO.$sliceSelectedTextNodeContent(e,a):a}let l=mi.$isElementNode(s)?s.getChildren():[];var u=s;a=u.exportJSON();var f=u.constructor;for(a.type!==f.getType()&&PP(58,f.name),mi.$isElementNode(u)&&(Array.isArray(a.children)||PP(59,f.name)),mi.$isTextNode(s)&&(s=s.__text,0<s.length?a.text=s:r=!1),s=0;s<l.length;s++)u=l[s],f=RP(t,e,u,a.children),!r&&mi.$isElementNode(n)&&f&&n.extractWithChild(u,e,"clone")&&(r=!0);if(r&&!o)i.push(a);else if(Array.isArray(a.children))for(t=0;t<a.children.length;t++)i.push(a.children[t]);return r}function jP(t,e){let n=[],i=mi.$getRoot().getChildren();for(let r=0;r<i.length;r++)RP(t,e,i[r],n);return{namespace:t._config.namespace,nodes:n}}function FP(t){let e=[];for(let n=0;n<t.length;n++){let i=mi.$parseSerializedNode(t[n]);mi.$isTextNode(i)&&KO.$addNodeStyle(i),e.push(i)}return e}let Pd=null;function zP(t,e){var n=DP?(t._window||window).getSelection():null;if(!n)return!1;var i=n.anchorNode;if(n=n.focusNode,i!==null&&n!==null&&!mi.isSelectionWithinEditor(t,i,n)||(e.preventDefault(),e=e.clipboardData,i=mi.$getSelection(),e===null||i===null))return!1;n=IP(t),t=LP(t);let r="";return i!==null&&(r=i.getTextContent()),n!==null&&e.setData("text/html",n),t!==null&&e.setData("application/x-lexical-editor",t),e.setData("text/plain",r),!0}Xa.$generateJSONFromSelectedNodes=jP,Xa.$generateNodesFromSerializedNodes=FP,Xa.$getHtmlContent=IP,Xa.$getLexicalContent=LP,Xa.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain")||t.getData("text/uri-list"),t!=null&&e.insertRawText(t)},Xa.$insertDataTransferForRichText=function(t,e,n){var i=t.getData("application/x-lexical-editor");if(i)try{let o=JSON.parse(i);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes)){let s=FP(o.nodes);return JO(n,s,e)}}catch{}if(i=t.getData("text/html"))try{var r=new DOMParser().parseFromString(i,"text/html");let o=AP.$generateNodesFromDOM(n,r);return JO(n,o,e)}catch{}if(t=t.getData("text/plain")||t.getData("text/uri-list"),t!=null)if(mi.$isRangeSelection(e))for(t=t.split(/(\r?\n|\t)/),t[t.length-1]===""&&t.pop(),n=0;n<t.length;n++)r=t[n],r===`
|
||
`||r===`\r
|
||
`?e.insertParagraph():r===" "?e.insertNodes([mi.$createTabNode()]):e.insertText(r);else e.insertRawText(t)},Xa.$insertGeneratedNodes=JO,Xa.copyToClipboard=async function(t,e){if(Pd!==null)return!1;if(e!==null)return new Promise(s=>{t.update(()=>{s(zP(t,e))})});var n=t.getRootElement();let i=t._window==null?window.document:t._window.document,r=DP?(t._window||window).getSelection():null;if(n===null||r===null)return!1;let o=i.createElement("span");return o.style.cssText="position: fixed; top: -1000px;",o.append(i.createTextNode("#")),n.append(o),n=new Range,n.setStart(o,0),n.setEnd(o,1),r.removeAllRanges(),r.addRange(n),new Promise(s=>{let a=t.registerCommand(mi.COPY_COMMAND,l=>(I1e.objectKlassEquals(l,ClipboardEvent)&&(a(),Pd!==null&&(window.clearTimeout(Pd),Pd=null),s(zP(t,l))),!0),mi.COMMAND_PRIORITY_CRITICAL);Pd=window.setTimeout(()=>{a(),Pd=null,s(!1)},50),i.execCommand("copy"),o.remove()})};var Ac=Xa,Zb=Ac,qb=Oi,sa=ut,ue=A;function BP(t,e){return typeof document.caretRangeFromPoint<"u"?(t=document.caretRangeFromPoint(t,e),t===null?null:{node:t.startContainer,offset:t.startOffset}):document.caretPositionFromPoint!=="undefined"?(t=document.caretPositionFromPoint(t,e),t===null?null:{node:t.offsetNode,offset:t.offset}):null}let Dd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",L1e=Dd&&"documentMode"in document?document.documentMode:null,R1e=Dd&&"InputEvent"in window&&!L1e?"getTargetRanges"in new window.InputEvent("input"):!1,j1e=Dd&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),F1e=Dd&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,z1e=Dd&&/^(?=.*Chrome).*/i.test(navigator.userAgent),B1e=Dd&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!z1e,eS=ue.createCommand("DRAG_DROP_PASTE_FILE"),tS=class Cee extends ue.ElementNode{static getType(){return"quote"}static clone(e){return new Cee(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return sa.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:W1e,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&sa.isHTMLElement(e)){this.isEmpty()&&e.append(document.createElement("br"));var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n)}return{element:e}}static importJSON(e){let n=nS();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,n){e=ue.$createParagraphNode();let i=this.getDirection();return e.setDirection(i),this.insertAfter(e,n),e}collapseAtStart(){let e=ue.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}};function nS(){return ue.$applyNodeReplacement(new tS)}let iS=class Eee extends ue.ElementNode{static getType(){return"heading"}static clone(e){return new Eee(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}createDOM(e){let n=this.__tag,i=document.createElement(n);return e=e.theme.heading,e!==void 0&&sa.addClassNamesToElement(i,e[n]),i}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:Id,priority:0}),h2:()=>({conversion:Id,priority:0}),h3:()=>({conversion:Id,priority:0}),h4:()=>({conversion:Id,priority:0}),h5:()=>({conversion:Id,priority:0}),h6:()=>({conversion:Id,priority:0}),p:e=>(e=e.firstChild,e!==null&&WP(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>WP(e)?{conversion:()=>({node:Ld("h1")}),priority:3}:null}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&sa.isHTMLElement(e)){this.isEmpty()&&e.append(document.createElement("br"));var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n)}return{element:e}}static importJSON(e){let n=Ld(e.tag);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,n=!0){let i=e?e.anchor.offset:0,r=i!==this.getTextContentSize()&&e?Ld(this.getTag()):ue.$createParagraphNode(),o=this.getDirection();return r.setDirection(o),this.insertAfter(r,n),i===0&&!this.isEmpty()&&e&&(e=ue.$createParagraphNode(),e.select(),this.replace(e,!0)),r}collapseAtStart(){let e=this.isEmpty()?ue.$createParagraphNode():Ld(this.getTag());return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}};function WP(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function Id(t){let e=t.nodeName.toLowerCase(),n=null;return(e==="h1"||e==="h2"||e==="h3"||e==="h4"||e==="h5"||e==="h6")&&(n=Ld(e),t.style!==null&&n.setFormat(t.style.textAlign)),{node:n}}function W1e(t){let e=nS();return t.style!==null&&e.setFormat(t.style.textAlign),{node:e}}function Ld(t){return ue.$applyNodeReplacement(new iS(t))}function H1e(t,e){t.preventDefault(),e.update(()=>{let n=ue.$getSelection(),i=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;i!=null&&n!==null&&Zb.$insertDataTransferForRichText(i,n,e)},{tag:"paste"})}async function Q1e(t,e){await Zb.copyToClipboard(e,sa.objectKlassEquals(t,ClipboardEvent)?t:null),e.update(()=>{let n=ue.$getSelection();ue.$isRangeSelection(n)?n.removeText():ue.$isNodeSelection(n)&&n.getNodes().forEach(i=>i.remove())})}function Dg(t){let e=null;if(t instanceof DragEvent?e=t.dataTransfer:t instanceof ClipboardEvent&&(e=t.clipboardData),e===null)return[!1,[],!1];var n=e.types;return t=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[t,Array.from(e.files),n]}function HP(t){var e=ue.$getSelection();if(!ue.$isRangeSelection(e))return!1;let n=new Set;e=e.getNodes();for(let o=0;o<e.length;o++){var i=e[o],r=i.getKey();n.has(r)||(i=sa.$getNearestBlockElementAncestorOrThrow(i),r=i.getKey(),i.canIndent()&&!n.has(r)&&(n.add(r),t(i)))}return 0<n.size}function Yb(t){return t=ue.$getNearestNodeFromDOMNode(t),ue.$isDecoratorNode(t)}oa.$createHeadingNode=Ld,oa.$createQuoteNode=nS,oa.$isHeadingNode=function(t){return t instanceof iS},oa.$isQuoteNode=function(t){return t instanceof tS},oa.DRAG_DROP_PASTE=eS,oa.HeadingNode=iS,oa.QuoteNode=tS,oa.eventFiles=Dg,oa.registerRichText=function(t){return sa.mergeRegister(t.registerCommand(ue.CLICK_COMMAND,()=>{const e=ue.$getSelection();return ue.$isNodeSelection(e)?(e.clear(),!0):!1},0),t.registerCommand(ue.DELETE_CHARACTER_COMMAND,e=>{const n=ue.$getSelection();return ue.$isRangeSelection(n)?(n.deleteCharacter(e),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.DELETE_WORD_COMMAND,e=>{const n=ue.$getSelection();return ue.$isRangeSelection(n)?(n.deleteWord(e),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.DELETE_LINE_COMMAND,e=>{const n=ue.$getSelection();return ue.$isRangeSelection(n)?(n.deleteLine(e),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=ue.$getSelection();if(typeof e=="string")n!==null&&n.insertText(e);else{if(n===null)return!1;const i=e.dataTransfer;i!=null?Zb.$insertDataTransferForRichText(i,n,t):ue.$isRangeSelection(n)&&(e=e.data)&&n.insertText(e)}return!0},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.REMOVE_TEXT_COMMAND,()=>{const e=ue.$getSelection();return ue.$isRangeSelection(e)?(e.removeText(),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.FORMAT_TEXT_COMMAND,e=>{const n=ue.$getSelection();return ue.$isRangeSelection(n)?(n.formatText(e),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.FORMAT_ELEMENT_COMMAND,e=>{var n=ue.$getSelection();if(!ue.$isRangeSelection(n)&&!ue.$isNodeSelection(n))return!1;n=n.getNodes();for(const i of n)n=sa.$findMatchingParent(i,r=>ue.$isElementNode(r)&&!r.isInline()),n!==null&&n.setFormat(e);return!0},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.INSERT_LINE_BREAK_COMMAND,e=>{const n=ue.$getSelection();return ue.$isRangeSelection(n)?(n.insertLineBreak(e),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.INSERT_PARAGRAPH_COMMAND,()=>{const e=ue.$getSelection();return ue.$isRangeSelection(e)?(e.insertParagraph(),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.INSERT_TAB_COMMAND,()=>(ue.$insertNodes([ue.$createTabNode()]),!0),ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.INDENT_CONTENT_COMMAND,()=>HP(e=>{const n=e.getIndent();e.setIndent(n+1)}),ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.OUTDENT_CONTENT_COMMAND,()=>HP(e=>{const n=e.getIndent();0<n&&e.setIndent(n-1)}),ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_ARROW_UP_COMMAND,e=>{var n=ue.$getSelection();if(ue.$isNodeSelection(n)&&!Yb(e.target)){if(e=n.getNodes(),0<e.length)return e[0].selectPrevious(),!0}else if(ue.$isRangeSelection(n)&&(n=ue.$getAdjacentNode(n.focus,!0),!e.shiftKey&&ue.$isDecoratorNode(n)&&!n.isIsolated()&&!n.isInline()))return n.selectPrevious(),e.preventDefault(),!0;return!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_ARROW_DOWN_COMMAND,e=>{var n=ue.$getSelection();if(ue.$isNodeSelection(n)){if(e=n.getNodes(),0<e.length)return e[0].selectNext(0,0),!0}else if(ue.$isRangeSelection(n)){let i=n.focus;if(i.key==="root"&&i.offset===ue.$getRoot().getChildrenSize())return e.preventDefault(),!0;if(n=ue.$getAdjacentNode(n.focus,!1),!e.shiftKey&&ue.$isDecoratorNode(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_ARROW_LEFT_COMMAND,e=>{const n=ue.$getSelection();if(ue.$isNodeSelection(n)){var i=n.getNodes();if(0<i.length)return e.preventDefault(),i[0].selectPrevious(),!0}return ue.$isRangeSelection(n)&&qb.$shouldOverrideDefaultCharacterSelection(n,!0)?(i=e.shiftKey,e.preventDefault(),qb.$moveCharacter(n,i,!0),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_ARROW_RIGHT_COMMAND,e=>{const n=ue.$getSelection();if(ue.$isNodeSelection(n)&&!Yb(e.target)){var i=n.getNodes();if(0<i.length)return e.preventDefault(),i[0].selectNext(0,0),!0}return ue.$isRangeSelection(n)?(i=e.shiftKey,qb.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),qb.$moveCharacter(n,i,!1),!0):!1):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_BACKSPACE_COMMAND,e=>{if(Yb(e.target))return!1;const n=ue.$getSelection();if(!ue.$isRangeSelection(n))return!1;e.preventDefault(),{anchor:e}=n;const i=e.getNode();return n.isCollapsed()&&e.offset===0&&!ue.$isRootNode(i)&&0<sa.$getNearestBlockElementAncestorOrThrow(i).getIndent()?t.dispatchCommand(ue.OUTDENT_CONTENT_COMMAND,void 0):t.dispatchCommand(ue.DELETE_CHARACTER_COMMAND,!0)},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_DELETE_COMMAND,e=>{if(Yb(e.target))return!1;const n=ue.$getSelection();return ue.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(ue.DELETE_CHARACTER_COMMAND,!1)):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_ENTER_COMMAND,e=>{const n=ue.$getSelection();if(!ue.$isRangeSelection(n))return!1;if(e!==null){if((F1e||j1e||B1e)&&R1e)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(ue.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(ue.INSERT_PARAGRAPH_COMMAND,void 0)},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.KEY_ESCAPE_COMMAND,()=>{const e=ue.$getSelection();return ue.$isRangeSelection(e)?(t.blur(),!0):!1},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.DROP_COMMAND,e=>{const[,n]=Dg(e);if(0<n.length){var i=BP(e.clientX,e.clientY);if(i!==null){const{offset:o,node:s}=i;var r=ue.$getNearestNodeFromDOMNode(s);if(r!==null){if(i=ue.$createRangeSelection(),ue.$isTextNode(r))i.anchor.set(r.getKey(),o,"text"),i.focus.set(r.getKey(),o,"text");else{const a=r.getParentOrThrow().getKey();r=r.getIndexWithinParent()+1,i.anchor.set(a,r,"element"),i.focus.set(a,r,"element")}i=ue.$normalizeSelection__EXPERIMENTAL(i),ue.$setSelection(i)}t.dispatchCommand(eS,n)}return e.preventDefault(),!0}return e=ue.$getSelection(),!!ue.$isRangeSelection(e)},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.DRAGSTART_COMMAND,e=>{[e]=Dg(e);const n=ue.$getSelection();return!(e&&!ue.$isRangeSelection(n))},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.DRAGOVER_COMMAND,e=>{var[n]=Dg(e);const i=ue.$getSelection();return n&&!ue.$isRangeSelection(i)?!1:(n=BP(e.clientX,e.clientY),n!==null&&(n=ue.$getNearestNodeFromDOMNode(n.node),ue.$isDecoratorNode(n)&&e.preventDefault()),!0)},ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.SELECT_ALL_COMMAND,()=>(ue.$selectAll(),!0),ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.COPY_COMMAND,e=>(Zb.copyToClipboard(t,sa.objectKlassEquals(e,ClipboardEvent)?e:null),!0),ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.CUT_COMMAND,e=>(Q1e(e,t),!0),ue.COMMAND_PRIORITY_EDITOR),t.registerCommand(ue.PASTE_COMMAND,e=>{const[,n,i]=Dg(e);return 0<n.length&&!i?(t.dispatchCommand(eS,n),!0):ue.isSelectionCapturedInDecoratorInput(e.target)?!1:ue.$getSelection()!==null?(H1e(e,t),!0):!1},ue.COMMAND_PRIORITY_EDITOR))};var Kt=oa;class rS extends A.DecoratorNode{}function Pc(t){return t instanceof rS}function U1e(t,e){const n=`__${e}`,i=`${n}Editor`,r=t[i]||t[n];if(!r)return"";if(typeof r=="string")return r;if(typeof r=="number")return r.toString();if(typeof r.getEditorState=="function"){let o="";return r.getEditorState().read(()=>{o=A.$getRoot().getTextContent()}),o}return""}function wr(t){return{element:t.createElement("span"),type:"inner"}}const es="status:free,status:-free",QP="status:-free",UP="status:free",Dc="",Z1e={web:{nonMember:!0,memberSegment:es},email:{memberSegment:es}};function Ic(t){return t==null}function Vb(){return JSON.parse(JSON.stringify(Z1e))}function oS(t){return!Object.prototype.hasOwnProperty.call(t,"web")||!Object.prototype.hasOwnProperty.call(t,"email")||!Object.prototype.hasOwnProperty.call(t.web,"nonMember")||Ic(t.web.memberSegment)||Ic(t.email.memberSegment)}function ZP(t){return oS(t)?t.showOnEmail===!1||t.showOnWeb===!1||t.emailOnly===!0||t.segment!=="":t.web.nonMember===!1||t.web.memberSegment!==es||t.email.memberSegment!==es}function sS(t){if(!t||!oS(t))return t;const e=JSON.parse(JSON.stringify(t));return e.web??(e.web={}),e.email??(e.email={}),Ic(t.showOnWeb)&&Ic(t.emailOnly)?e.web=Vb().web:Ic(t.emailOnly)?(e.web.nonMember=t.showOnWeb,e.web.memberSegment=t.showOnWeb?es:Dc):(e.web.nonMember=!t.emailOnly,e.web.memberSegment=t.emailOnly?Dc:es),Ic(t.showOnEmail)&&Ic(t.emailOnly)?e.email=Vb().email:t.showOnEmail===!1||t.segment==="status:-free+status:-paid"?e.email.memberSegment=Dc:t.segment==="status:free"?e.email.memberSegment=UP:t.segment==="status:paid"||t.segment==="status:-free"?e.email.memberSegment=QP:t.segment||(e.email.memberSegment=es),e}function Ig(t,e,n){const i=t.element.ownerDocument,r=q1e(t);return e=sS(e),n.target==="email"?e.email.memberSegment===Dc?wr(i):e.email.memberSegment===es?t:Y1e(i,r,e.email):e.web.nonMember===!1&&e.web.memberSegment===Dc?wr(i):e.web.nonMember!==!0||e.web.memberSegment!==es?V1e(i,r,e.web):t}function q1e({element:t,type:e}){return e==="inner"?t.innerHTML:e==="value"?"value"in t?t.value:"":t.outerHTML}function Y1e(t,e,n){const{memberSegment:i}=n,r=t.createElement("div");return r.innerHTML=e,r.setAttribute("data-gh-segment",i),r.classList.add("kg-visibility-wrapper"),{element:r,type:"html"}}function V1e(t,e,n){const{nonMember:i,memberSegment:r}=n,o=`
|
||
<!--kg-gated-block:begin nonMember:${i} memberSegment:"${r}" -->${e}<!--kg-gated-block:end-->
|
||
`,s=t.createElement("textarea");return s.value=o,{element:s,type:"value"}}var X1e=Object.freeze({__proto__:null,ALL_MEMBERS_SEGMENT:es,FREE_MEMBERS_SEGMENT:UP,NO_MEMBERS_SEGMENT:Dc,PAID_MEMBERS_SEGMENT:QP,buildDefaultVisibility:Vb,isOldVisibilityFormat:oS,isVisibilityRestricted:ZP,migrateOldVisibilityFormat:sS,renderWithVisibility:Ig});function G1e(t,e){if(!t)throw new Error({message:'[generateDecoratorNode] A unique "nodeType" should be provided'});e.forEach(n=>{if(!("name"in n)||!("default"in n))throw new Error({message:'[generateDecoratorNode] Properties should have both "name" and "default" attributes.'});if(n.urlType&&!["url","html","markdown"].includes(n.urlType))throw new Error({message:'[generateDecoratorNode] "urlType" should be either "url", "html" or "markdown"'});if("wordCount"in n&&typeof n.wordCount!="boolean")throw new Error({message:'[generateDecoratorNode] "wordCount" should be of boolean type.'})})}function Rn({nodeType:t,properties:e=[],defaultRenderFn:n,version:i=1,hasVisibility:r=!1}){G1e(t,e),e=e.map(s=>({...s,privateName:`__${s.name}`})),r&&e.push({name:"visibility",get default(){return Vb()},privateName:"__visibility"});class o extends rS{constructor(a={},l){super(l),e.forEach(u=>{typeof u.default=="boolean"?this[u.privateName]=a[u.name]??u.default:this[u.privateName]=a[u.name]||u.default})}static getType(){return t}static clone(a){return new this(a.getDataset(),a.__key)}static getPropertyDefaults(){return e.reduce((a,l)=>(a[l.name]=l.default,a),{})}static get urlTransformMap(){let a={};return e.forEach(l=>{l.urlType&&(l.urlPath?a[l.urlPath]=l.urlType:a[l.name]=l.urlType)}),a}getDataset(){const a=this.getLatest();let l={};return e.forEach(u=>{l[u.name]=a[u.privateName]}),l}static importJSON(a){const l={};return a.visibility=sS(a.visibility),e.forEach(u=>{l[u.name]=a[u.name]}),new this(l)}exportJSON(){return{type:t,version:i,...e.reduce((l,u)=>(l[u.name]=this[u.name],l),{})}}exportDOM(a={}){var f;const l=this.__version||i;if((f=a.nodeRenderers)!=null&&f[t]){const d=a.nodeRenderers[t];if(typeof d=="object"){const h=d[l];if(!h)throw new Error(`[generateDecoratorNode] ${t}: options.nodeRenderers['${t}'] for version ${l} is required`);return h(this,a)}else return d(this,a)}if(typeof n=="object"){const d=n[l];if(!d)throw new Error(`[generateDecoratorNode] ${t}: "defaultRenderFn" for version ${l} is required`);return d(this,a)}if(!n)throw new Error(`[generateDecoratorNode] ${t}: "defaultRenderFn" is required`);return n(this,a)}createDOM(){return document.createElement("div")}updateDOM(){return!1}isInline(){return!1}hasDynamicData(){return!1}hasEditMode(){return!0}getTextContent(){const a=this.getLatest(),u=e.filter(f=>!!f.wordCount).map(f=>U1e(a,f.name)).filter(Boolean).join(`
|
||
`);return u?`${u}
|
||
|
||
`:""}getIsVisibilityActive(){if(!e.some(u=>u.name==="visibility"))return!1;const l=this.getLatest().__visibility;return ZP(l)}}return e.forEach(s=>{Object.defineProperty(o.prototype,s.name,{get:function(){return this.getLatest()[s.privateName]},set:function(a){const l=this.getWritable();l[s.privateName]=a}})}),o}function qP(t){return function(n,i={}){return si(n,{createDocument:o=>{const s=t.ownerDocument.implementation.createHTMLDocument();return s.body.innerHTML=o,s},...i})}}function Ms(t,{selector:e="figcaption"}={}){const n=qP(t);let i;const r=Array.from(t.querySelectorAll(e));return r.length&&r.forEach(o=>{const s=n(o.innerHTML);i=i?`${i} / ${s}`:s}),i}function Xb(t){const e={};if(t.src&&(e.src=t.src),t.width?e.width=t.width:t.dataset&&t.dataset.width&&(e.width=parseInt(t.dataset.width,10)),t.height?e.height=t.height:t.dataset&&t.dataset.height&&(e.height=parseInt(t.dataset.height,10)),!t.width&&!t.height&&t.getAttribute("data-image-dimensions")){const[,n,i]=/^(\d*)x(\d*)$/gi.exec(t.getAttribute("data-image-dimensions"));e.width=parseInt(n,10),e.height=parseInt(i,10)}if(t.alt&&(e.alt=t.alt),t.title&&(e.title=t.title),t.parentNode.tagName==="A"){const n=t.parentNode.href;n!==e.src&&(e.href=n)}return e}function K1e(t){return{img:()=>({conversion(e){if(e.tagName==="IMG"){const{src:n,width:i,height:r,alt:o,title:s,href:a}=Xb(e);return{node:new t({alt:o,src:n,title:s,width:i,height:r,href:a})}}return null},priority:1}),figure:e=>{const n=e.querySelector("img");return n?{conversion(i){const r=i.className.match(/kg-width-(wide|full)/),o=i.className.match(/graf--layout(FillWidth|OutsetCenter)/);if(!n)return null;const s=Xb(n);r?s.cardWidth=r[1]:o&&(s.cardWidth=o[1]==="FillWidth"?"full":"wide"),s.caption=Ms(i);const{src:a,width:l,height:u,alt:f,title:d,caption:h,cardWidth:g,href:m}=s;return{node:new t({alt:f,src:a,title:d,width:l,height:u,caption:h,cardWidth:g,href:m})}},priority:0}:null}}}const aS=function(t,e){const n=Object.values(e).map(({width:r})=>r).sort((r,o)=>r-o),i=n.filter(r=>r<=t.width);return t.width>i[i.length-1]&&t.width<n[n.length-1]&&i.push(t.width),i},Lc=function(t,e=""){const n=e.replace(/\/$/,""),i=t.replace(n,"");return/^(\/.*|__GHOST_URL__)\/?content\/images\//.test(i)},YP=function(t){return/images\.unsplash\.com/.test(t)},VP=function({src:t,width:e,options:n}){if(!n.imageOptimization||n.imageOptimization.srcsets===!1||!e||!n.imageOptimization.contentImageSizes||Lc(t,n.siteUrl)&&n.canTransformImage&&!n.canTransformImage(t))return;const i=aS({width:e},n.imageOptimization.contentImageSizes);if(Lc(t,n.siteUrl)){const[,r,o]=t.match(/(.*\/content\/images)\/(.*)/),s=[];if(i.forEach(a=>{a===e?s.push(`${t} ${a}w`):a<=e&&s.push(`${r}/size/w${a}/${o} ${a}w`)}),s.length)return s.join(", ")}if(YP(t)){const r=new URL(t),o=[];return i.forEach(s=>{r.searchParams.set("w",s),o.push(`${r.href} ${s}w`)}),o.join(", ")}},XP=function(t,e,n){if(!t||!["IMG","SOURCE"].includes(t.tagName)||!t.getAttribute("src")||!e)return;const{src:i,width:r}=e,o=VP({src:i,width:r,options:n});o&&t.setAttribute("srcset",o)},Rd=function(t,{width:e,height:n}={}){const{width:i,height:r}=t,o=i/r;if(e){const s=Math.round(e/o);return{width:e,height:s}}if(n)return{width:Math.round(n*o),height:n}};function jn(t){if(!t.createDocument&&t.dom&&(t.createDocument=function(){return t.dom.window.document}),!t.createDocument){let e=typeof window<"u"&&window.document;if(!e)throw new Error("Must be passed a `createDocument` function as an option when used in a non-browser environment");t.createDocument=function(){return e}}}function J1e(t,e={}){var l;jn(e);const n=e.createDocument();if(!t.src||t.src.trim()==="")return wr(n);const i=n.createElement("figure");let r="kg-card kg-image-card";t.cardWidth!=="regular"&&(r+=` kg-width-${t.cardWidth}`),t.caption&&(r+=" kg-card-hascaption"),i.setAttribute("class",r);const o=n.createElement("img");o.setAttribute("src",t.src),o.setAttribute("class","kg-image"),o.setAttribute("alt",t.alt),o.setAttribute("loading","lazy"),t.title&&o.setAttribute("title",t.title),t.width&&t.height&&(o.setAttribute("width",t.width),o.setAttribute("height",t.height));const{canTransformImage:s}=e,{defaultMaxWidth:a}=e.imageOptimization||{};if(a&&t.width>a&&Lc(t.src,e.siteUrl)&&s&&s(t.src)){const u={width:t.width,height:t.height},{width:f,height:d}=Rd(u,{width:a});o.setAttribute("width",f),o.setAttribute("height",d)}if(e.target!=="email"){const u={src:t.src,width:t.width,height:t.height};XP(o,u,e),o.getAttribute("srcset")&&t.width&&t.width>=720&&((!t.cardWidth||t.cardWidth==="regular")&&o.setAttribute("sizes","(min-width: 720px) 720px"),t.cardWidth==="wide"&&t.width>=1200&&o.setAttribute("sizes","(min-width: 1200px) 1200px"))}if(e.target==="email"&&t.width&&t.height){let u={width:t.width,height:t.height};if(t.width>=600&&(u=Rd(u,{width:600})),o.setAttribute("width",u.width),o.setAttribute("height",u.height),Lc(t.src,e.siteUrl)&&((l=e.canTransformImage)!=null&&l.call(e,t.src))){const d=aS(t,e.imageOptimization.contentImageSizes).find(h=>h>=1200);if(!(!d||d===t.width)){const[,h,g]=t.src.match(/(.*\/content\/images)\/(.*)/);o.setAttribute("src",`${h}/size/w${d}/${g}`)}}}if(t.href){const u=n.createElement("a");u.setAttribute("href",t.href),u.appendChild(o),i.appendChild(u)}else i.appendChild(o);if(t.caption){const u=n.createElement("figcaption");u.innerHTML=t.caption,i.appendChild(u)}return{element:i}}let Lg=class extends Rn({nodeType:"image",properties:[{name:"src",default:"",urlType:"url"},{name:"caption",default:"",urlType:"html",wordCount:!0},{name:"title",default:""},{name:"alt",default:""},{name:"cardWidth",default:"regular"},{name:"width",default:null},{name:"height",default:null},{name:"href",default:"",urlType:"url"}],defaultRenderFn:J1e}){exportJSON(){const{src:e,width:n,height:i,title:r,alt:o,caption:s,cardWidth:a,href:l}=this;return{type:"image",version:1,src:e&&e.startsWith("data:")?"<base64String>":e,width:n,height:i,title:r,alt:o,caption:s,cardWidth:a,href:l}}static importDOM(){return K1e(this)}hasEditMode(){return!1}};const eve=t=>new Lg(t);function tve(t){return t instanceof Lg}function nve(t){return{figure:e=>{const n=e.querySelector("pre");return e.tagName==="FIGURE"&&n?{conversion(i){let r=n.querySelector("code"),o=i.querySelector("figcaption");if(!r||!o)return null;let s={code:r.textContent,caption:Ms(i)},a=n.getAttribute("class")||"",l=r.getAttribute("class")||"",u=/lang(?:uage)?-(.*?)(?:\s|$)/i,f=a.match(u)||l.match(u);return f&&(s.language=f[1].toLowerCase()),{node:new t(s)}},priority:2}:null},pre:()=>({conversion(e){if(e.tagName==="PRE"){let[n]=e.children;if(n&&n.tagName==="CODE"){let i={code:n.textContent},r=e.getAttribute("class")||"",o=n.getAttribute("class")||"",s=/lang(?:uage)?-(.*?)(?:\s|$)/i,a=r.match(s)||o.match(s);return a&&(i.language=a[1].toLowerCase()),{node:new t(i)}}}return null},priority:1})}}function ive(t,e={}){jn(e);const n=e.createDocument();if(!t.code||t.code.trim()==="")return wr(n);const i=n.createElement("pre"),r=n.createElement("code");if(t.language&&r.setAttribute("class",`language-${t.language}`),r.appendChild(n.createTextNode(t.code)),i.appendChild(r),t.caption){let o=n.createElement("figure");o.setAttribute("class","kg-card kg-code-card"),o.appendChild(i);let s=n.createElement("figcaption");return s.innerHTML=t.caption,o.appendChild(s),{element:o}}else return{element:i}}let Rg=class extends Rn({nodeType:"codeblock",properties:[{name:"code",default:"",wordCount:!0},{name:"language",default:""},{name:"caption",default:"",urlType:"html",wordCount:!0}],defaultRenderFn:ive}){static importDOM(){return nve(this)}isEmpty(){return!this.__code}};function rve(t){return new Rg(t)}function ove(t){return t instanceof Rg}function sve(t,e={}){jn(e);const n=e.createDocument(),i=qse.render(t.markdown||"",e),r=n.createElement("div");return r.innerHTML=i,{element:r,type:"inner"}}let jg=class extends Rn({nodeType:"markdown",properties:[{name:"markdown",default:"",urlType:"markdown",wordCount:!0}],defaultRenderFn:sve}){isEmpty(){return!this.__markdown}};function ave(t){return new jg(t)}function lve(t){return t instanceof jg}function uve(t){return{figure:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-video-card");return e.tagName==="FIGURE"&&n?{conversion(r){const o=r.querySelector(".kg-video-container video"),s=r.querySelector(".kg-video-duration"),a=o&&o.src,l=o&&o.width,u=o&&o.height,f=s&&s.innerHTML.trim(),d=Ms(r);if(!a)return null;const h={src:a,loop:!!o.loop,cardWidth:cve(o)};if(f){const[m,y]=f.split(":");try{h.duration=parseInt(m)*60+parseInt(y)}catch{}}return r.dataset.kgThumbnail&&(h.thumbnailSrc=r.dataset.kgThumbnail),r.dataset.kgCustomThumbnail&&(h.customThumbnailSrc=r.dataset.kgCustomThumbnail),d&&(h.caption=d),l&&(h.width=l),u&&(h.height=u),{node:new t(h)}},priority:1}:null}}}function cve(t){return t.classList.contains("kg-width-full")?"full":t.classList.contains("kg-width-wide")?"wide":"regular"}function fve(t,e={}){jn(e);const n=e.createDocument();if(!t.src||t.src.trim()==="")return wr(n);const i=pve(t).join(" "),r=e.target==="email"?hve({node:t,options:e,cardClasses:i}):dve({node:t,cardClasses:i}),o=n.createElement("div");return o.innerHTML=r.trim(),{element:o.firstElementChild}}function dve({node:t,cardClasses:e}){const n=t.width,i=t.height,r=`https://img.spacergif.org/v1/${n}x${i}/0a/spacer.png`,o=t.loop?"loop autoplay muted":"",s=t.customThumbnailSrc||t.thumbnailSrc,a=t.loop?" kg-video-hide":"";return`
|
||
<figure class="${e}" data-kg-thumbnail=${t.thumbnailSrc} data-kg-custom-thumbnail=${t.customThumbnailSrc}>
|
||
<div class="kg-video-container">
|
||
<video
|
||
src="${t.src}"
|
||
poster="${r}"
|
||
width="${n}"
|
||
height="${i}"
|
||
${o}
|
||
playsinline
|
||
preload="metadata"
|
||
style="background: transparent url('${s}') 50% 50% / cover no-repeat;"
|
||
></video>
|
||
<div class="kg-video-overlay">
|
||
<button class="kg-video-large-play-icon" aria-label="Play video">
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||
<path d="M23.14 10.608 2.253.164A1.559 1.559 0 0 0 0 1.557v20.887a1.558 1.558 0 0 0 2.253 1.392L23.14 13.393a1.557 1.557 0 0 0 0-2.785Z"/>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
<div class="kg-video-player-container${a}">
|
||
<div class="kg-video-player">
|
||
<button class="kg-video-play-icon" aria-label="Play video">
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||
<path d="M23.14 10.608 2.253.164A1.559 1.559 0 0 0 0 1.557v20.887a1.558 1.558 0 0 0 2.253 1.392L23.14 13.393a1.557 1.557 0 0 0 0-2.785Z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="kg-video-pause-icon kg-video-hide" aria-label="Pause video">
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||
<rect x="3" y="1" width="7" height="22" rx="1.5" ry="1.5"></rect>
|
||
<rect x="14" y="1" width="7" height="22" rx="1.5" ry="1.5"></rect>
|
||
</svg>
|
||
</button>
|
||
<span class="kg-video-current-time">0:00</span>
|
||
<div class="kg-video-time">
|
||
/<span class="kg-video-duration">${t.formattedDuration}</span>
|
||
</div>
|
||
<input type="range" class="kg-video-seek-slider" max="100" value="0">
|
||
<button class="kg-video-playback-rate" aria-label="Adjust playback speed">1×</button>
|
||
<button class="kg-video-unmute-icon" aria-label="Unmute">
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||
<path d="M15.189 2.021a9.728 9.728 0 0 0-7.924 4.85.249.249 0 0 1-.221.133H5.25a3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1.794a.249.249 0 0 1 .221.133 9.73 9.73 0 0 0 7.924 4.85h.06a1 1 0 0 0 1-1V3.02a1 1 0 0 0-1.06-.998Z"></path>
|
||
</svg>
|
||
</button>
|
||
<button class="kg-video-mute-icon kg-video-hide" aria-label="Mute">
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||
<path d="M16.177 4.3a.248.248 0 0 0 .073-.176v-1.1a1 1 0 0 0-1.061-1 9.728 9.728 0 0 0-7.924 4.85.249.249 0 0 1-.221.133H5.25a3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h.114a.251.251 0 0 0 .177-.073ZM23.707 1.706A1 1 0 0 0 22.293.292l-22 22a1 1 0 0 0 0 1.414l.009.009a1 1 0 0 0 1.405-.009l6.63-6.631A.251.251 0 0 1 8.515 17a.245.245 0 0 1 .177.075 10.081 10.081 0 0 0 6.5 2.92 1 1 0 0 0 1.061-1V9.266a.247.247 0 0 1 .073-.176Z"></path>
|
||
</svg>
|
||
</button>
|
||
<input type="range" class="kg-video-volume-slider" max="100" value="100"/>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
${t.caption?`<figcaption>${t.caption}</figcaption>`:""}
|
||
</figure>
|
||
`}function hve({node:t,options:e,cardClasses:n}){const i=t.customThumbnailSrc||t.thumbnailSrc,r=600,o=t.width/t.height,s=Math.round(r/4),a=Math.round(r/o),l=`https://img.spacergif.org/v1/${s}x${a}/0a/spacer.png`,u=Math.round(r/2-39),f=Math.round(a/2-39),d=Math.round(r/2-11),h=Math.round(a/2-17);return`
|
||
<figure class="${n}">
|
||
<!--[if !mso !vml]-->
|
||
<a class="kg-video-preview" href="${e.postUrl}" aria-label="Play video" style="mso-hide: all">
|
||
<table
|
||
cellpadding="0"
|
||
cellspacing="0"
|
||
border="0"
|
||
width="100%"
|
||
background="${i}"
|
||
role="presentation"
|
||
style="background: url('${i}') left top / cover; mso-hide: all"
|
||
>
|
||
<tr style="mso-hide: all">
|
||
<td width="25%" style="visibility: hidden; mso-hide: all">
|
||
<img src="${l}" alt="" width="100%" border="0" style="display:block; height: auto; opacity: 0; visibility: hidden; mso-hide: all;">
|
||
</td>
|
||
<td width="50%" align="center" valign="middle" style="vertical-align: middle; mso-hide: all;">
|
||
<div class="kg-video-play-button" style="mso-hide: all"><div style="mso-hide: all"></div></div>
|
||
</td>
|
||
<td width="25%" style="mso-hide: all"> </td>
|
||
</tr>
|
||
</table>
|
||
</a>
|
||
<!--[endif]-->
|
||
|
||
<!--[if vml]>
|
||
<v:group xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" coordsize="${r},${a}" coordorigin="0,0" href="${e.postUrl}" style="width:${r}px;height:${a}px;">
|
||
<v:rect fill="t" stroked="f" style="position:absolute;width:${r};height:${a};"><v:fill src="${i}" type="frame"/></v:rect>
|
||
<v:oval fill="t" strokecolor="white" strokeweight="4px" style="position:absolute;left:${u};top:${f};width:78;height:78"><v:fill color="black" opacity="30%" /></v:oval>
|
||
<v:shape coordsize="24,32" path="m,l,32,24,16,xe" fillcolor="white" stroked="f" style="position:absolute;left:${d};top:${h};width:30;height:34;" />
|
||
</v:group>
|
||
<![endif]-->
|
||
|
||
${t.caption?`<figcaption>${t.caption}</figcaption>`:""}
|
||
</figure>
|
||
`}function pve(t){let e=["kg-card kg-video-card"];return t.cardWidth&&e.push(`kg-width-${t.cardWidth}`),t.caption&&e.push("kg-card-hascaption"),e}let Fg=class extends Rn({nodeType:"video",properties:[{name:"src",default:"",urlType:"url"},{name:"caption",default:"",urlType:"html",wordCount:!0},{name:"fileName",default:""},{name:"mimeType",default:""},{name:"width",default:null},{name:"height",default:null},{name:"duration",default:0},{name:"thumbnailSrc",default:"",urlType:"url"},{name:"customThumbnailSrc",default:"",urlType:"url"},{name:"thumbnailWidth",default:null},{name:"thumbnailHeight",default:null},{name:"cardWidth",default:"regular"},{name:"loop",default:!1}],defaultRenderFn:fve}){exportJSON(){const{src:e,caption:n,fileName:i,mimeType:r,width:o,height:s,duration:a,thumbnailSrc:l,customThumbnailSrc:u,thumbnailWidth:f,thumbnailHeight:d,cardWidth:h,loop:g}=this;return{type:"video",version:1,src:e&&e.startsWith("data:")?"<base64String>":e,caption:n,fileName:i,mimeType:r,width:o,height:s,duration:a,thumbnailSrc:l,customThumbnailSrc:u,thumbnailWidth:f,thumbnailHeight:d,cardWidth:h,loop:g}}static importDOM(){return uve(this)}get formattedDuration(){const e=Math.floor(this.duration/60),n=Math.floor(this.duration-e*60),i=String(n).padStart(2,"0");return`${e}:${i}`}};const gve=t=>new Fg(t);function mve(t){return t instanceof Fg}function vve(t){return{div:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-audio-card");return e.tagName==="DIV"&&n?{conversion(r){const o=r==null?void 0:r.querySelector(".kg-audio-title"),s=r==null?void 0:r.querySelector(".kg-audio-player-container audio"),a=r==null?void 0:r.querySelector(".kg-audio-duration"),l=r==null?void 0:r.querySelector(".kg-audio-thumbnail"),u=o&&o.innerHTML.trim(),f=s&&s.src,d=l&&l.src,h=a&&a.innerHTML.trim(),g={src:f,title:u};if(d&&(g.thumbnailSrc=d),h){const[y,x=0]=h.split(":");try{g.duration=parseInt(y)*60+parseInt(x)}catch{}}return{node:new t(g)}},priority:1}:null}}}function bve(t,e={}){jn(e);const n=e.createDocument();if(!t.src||t.src.trim()==="")return wr(n);const i=wve(t),r=xve(t);return e.target==="email"?yve(t,n,e,i,r):kve(t,n,i,r)}function kve(t,e,n,i){const r=e.createElement("div");r.setAttribute("class","kg-card kg-audio-card");const o=e.createElement("img");o.src=t.thumbnailSrc,o.alt="audio-thumbnail",o.setAttribute("class",n),r.appendChild(o);const s=e.createElement("div");s.setAttribute("class",i);const a=e.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("width","24"),a.setAttribute("height","24"),a.setAttribute("fill","none");const l=e.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("fill-rule","evenodd"),l.setAttribute("clip-rule","evenodd"),l.setAttribute("d","M7.5 15.33a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm-2.25.75a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0ZM15 13.83a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm-2.25.75a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"),a.appendChild(l);const u=e.createElementNS("http://www.w3.org/2000/svg","path");u.setAttribute("fill-rule","evenodd"),u.setAttribute("clip-rule","evenodd"),u.setAttribute("d","M14.486 6.81A2.25 2.25 0 0 1 17.25 9v5.579a.75.75 0 0 1-1.5 0v-5.58a.75.75 0 0 0-.932-.727.755.755 0 0 1-.059.013l-4.465.744a.75.75 0 0 0-.544.72v6.33a.75.75 0 0 1-1.5 0v-6.33a2.25 2.25 0 0 1 1.763-2.194l4.473-.746Z"),a.appendChild(u);const f=e.createElementNS("http://www.w3.org/2000/svg","path");f.setAttribute("fill-rule","evenodd"),f.setAttribute("clip-rule","evenodd"),f.setAttribute("d","M3 1.5a.75.75 0 0 0-.75.75v19.5a.75.75 0 0 0 .75.75h18a.75.75 0 0 0 .75-.75V5.133a.75.75 0 0 0-.225-.535l-.002-.002-3-2.883A.75.75 0 0 0 18 1.5H3ZM1.409.659A2.25 2.25 0 0 1 3 0h15a2.25 2.25 0 0 1 1.568.637l.003.002 3 2.883a2.25 2.25 0 0 1 .679 1.61V21.75A2.25 2.25 0 0 1 21 24H3a2.25 2.25 0 0 1-2.25-2.25V2.25c0-.597.237-1.169.659-1.591Z"),a.appendChild(f),s.appendChild(a),r.appendChild(s);const d=e.createElement("div");d.setAttribute("class","kg-audio-player-container");const h=e.createElement("audio");h.setAttribute("src",t.src),h.setAttribute("preload","metadata"),d.appendChild(h);const g=e.createElement("div");g.setAttribute("class","kg-audio-title"),g.textContent=t.title,d.appendChild(g);const m=e.createElement("div");m.setAttribute("class","kg-audio-player");const y=e.createElement("button");y.setAttribute("class","kg-audio-play-icon"),y.setAttribute("aria-label","Play audio");const x=e.createElementNS("http://www.w3.org/2000/svg","svg");x.setAttribute("viewBox","0 0 24 24");const _=e.createElementNS("http://www.w3.org/2000/svg","path");_.setAttribute("d","M23.14 10.608 2.253.164A1.559 1.559 0 0 0 0 1.557v20.887a1.558 1.558 0 0 0 2.253 1.392L23.14 13.393a1.557 1.557 0 0 0 0-2.785Z"),x.appendChild(_),y.appendChild(x),m.appendChild(y);const S=e.createElement("button");S.setAttribute("class","kg-audio-pause-icon kg-audio-hide"),S.setAttribute("aria-label","Pause audio");const C=e.createElementNS("http://www.w3.org/2000/svg","svg");C.setAttribute("viewBox","0 0 24 24");const E=e.createElementNS("http://www.w3.org/2000/svg","rect");E.setAttribute("x","3"),E.setAttribute("y","1"),E.setAttribute("width","7"),E.setAttribute("height","22"),E.setAttribute("rx","1.5"),E.setAttribute("ry","1.5"),C.appendChild(E);const N=e.createElementNS("http://www.w3.org/2000/svg","rect");N.setAttribute("x","14"),N.setAttribute("y","1"),N.setAttribute("width","7"),N.setAttribute("height","22"),N.setAttribute("rx","1.5"),N.setAttribute("ry","1.5"),C.appendChild(N),S.appendChild(C),m.appendChild(S);const M=e.createElement("span");M.setAttribute("class","kg-audio-current-time"),M.textContent="0:00",m.appendChild(M);const I=e.createElement("div");I.setAttribute("class","kg-audio-time"),I.textContent="/";const W=e.createElement("span");W.setAttribute("class","kg-audio-duration"),W.textContent=t.duration,I.appendChild(W),m.appendChild(I);const B=e.createElement("input");B.setAttribute("type","range"),B.setAttribute("class","kg-audio-seek-slider"),B.setAttribute("max","100"),B.setAttribute("value","0"),m.appendChild(B);const Z=e.createElement("button");Z.setAttribute("class","kg-audio-playback-rate"),Z.setAttribute("aria-label","Adjust playback speed"),Z.innerHTML="1×",m.appendChild(Z);const R=e.createElement("button");R.setAttribute("class","kg-audio-unmute-icon"),R.setAttribute("aria-label","Unmute");const Q=e.createElementNS("http://www.w3.org/2000/svg","svg");Q.setAttribute("viewBox","0 0 24 24");const V=e.createElementNS("http://www.w3.org/2000/svg","path");V.setAttribute("d","M15.189 2.021a9.728 9.728 0 0 0-7.924 4.85.249.249 0 0 1-.221.133H5.25a3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1.794a.249.249 0 0 1 .221.133 9.73 9.73 0 0 0 7.924 4.85h.06a1 1 0 0 0 1-1V3.02a1 1 0 0 0-1.06-.998Z"),Q.appendChild(V),R.appendChild(Q),m.appendChild(R);const H=e.createElement("button");H.setAttribute("class","kg-audio-mute-icon kg-audio-hide"),H.setAttribute("aria-label","Mute");const j=e.createElementNS("http://www.w3.org/2000/svg","svg");j.setAttribute("viewBox","0 0 24 24");const q=e.createElementNS("http://www.w3.org/2000/svg","path");q.setAttribute("d","M16.177 4.3a.248.248 0 0 0 .073-.176v-1.1a1 1 0 0 0-1.061-1 9.728 9.728 0 0 0-7.924 4.85.249.249 0 0 1-.221.133H5.25a3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h.114a.251.251 0 0 0 .177-.073ZM23.707 1.706A1 1 0 0 0 22.293.292l-22 22a1 1 0 0 0 0 1.414l.009.009a1 1 0 0 0 1.405-.009l6.63-6.631A.251.251 0 0 1 8.515 17a.245.245 0 0 1 .177.075 10.081 10.081 0 0 0 6.5 2.92 1 1 0 0 0 1.061-1V9.266a.247.247 0 0 1 .073-.176Z"),j.appendChild(q),H.appendChild(j),m.appendChild(H);const Y=e.createElement("input");return Y.setAttribute("type","range"),Y.setAttribute("class","kg-audio-volume-slider"),Y.setAttribute("max","100"),Y.setAttribute("value","100"),m.appendChild(Y),d.appendChild(m),r.appendChild(d),{element:r}}function yve(t,e,n,i,r){const o=`
|
||
<table cellspacing="0" cellpadding="0" border="0" class="kg-audio-card">
|
||
<tr>
|
||
<td>
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||
<tr>
|
||
<td width="60">
|
||
<a href="${n.postUrl}" style="display: block; width: 60px; height: 60px; padding-top: 4px; padding-right: 16px; padding-bottom: 4px; padding-left: 4px; border-radius: 2px;">
|
||
${t.thumbnailSrc?`
|
||
<img src="${t.thumbnailSrc}" class="${i}" style="width: 60px; height: 60px; object-fit: cover; border: 0; border-radius: 2px;">
|
||
`:`
|
||
<img src="https://static.ghost.org/v4.0.0/images/audio-file-icon.png" class="${r}" style="width: 24px; height: 24px; padding: 18px; border-radius: 2px;">
|
||
`}
|
||
</a>
|
||
</td>
|
||
<td style="position: relative; vertical-align: center;" valign="middle">
|
||
<a href="${n.postUrl}" style="position: absolute; display: block; top: 0; right: 0; bottom: 0; left: 0;"></a>
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||
<tr>
|
||
<td>
|
||
<a href="${n.postUrl}" class="kg-audio-title">${t.title}</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||
<tr>
|
||
<td width="24" style="vertical-align: middle;" valign="middle">
|
||
<a href="${n.postUrl}" class="kg-audio-play-button"></a>
|
||
</td>
|
||
<td style="vertical-align: middle;" valign="middle">
|
||
<a href="${n.postUrl}" class="kg-audio-duration">${_ve(t.duration)}<span class="kg-audio-link"> • Click to play audio</span></a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
`,s=e.createElement("div");return s.innerHTML=o.trim(),{element:s.firstElementChild}}function wve(t){let e="kg-audio-thumbnail";return t.thumbnailSrc||(e+=" kg-audio-hide"),e}function xve(t){let e="kg-audio-thumbnail placeholder";return t.thumbnailSrc&&(e+=" kg-audio-hide"),e}function _ve(t=200){const e=Math.floor(t/60),n=Math.floor(t-e*60),i=String(n).padStart(2,"0");return`${e}:${i}`}let zg=class extends Rn({nodeType:"audio",properties:[{name:"duration",default:0},{name:"mimeType",default:""},{name:"src",default:"",urlType:"url"},{name:"title",default:""},{name:"thumbnailSrc",default:""}],defaultRenderFn:bve}){static importDOM(){return vve(this)}};const Ove=t=>new zg(t);function Sve(t){return t instanceof zg}function GP(t,e){for(let n=0;n<t.childNodes.length;n++){let i=t.childNodes[n];if(i.nodeType===1&&!e.includes(i.tagName)){for(;i.firstChild;)t.insertBefore(i.firstChild,i);t.removeChild(i),n-=1}else i.nodeType===1&&GP(i,e)}}function Cve(t,e={}){jn(e);const n=e.createDocument(),i=n.createElement("div");if((!t.backgroundColor||!t.backgroundColor.match(/^[a-zA-Z\d-]+$/))&&(t.backgroundColor="white"),i.classList.add("kg-card","kg-callout-card",`kg-callout-card-${t.backgroundColor}`),t.calloutEmoji){const a=n.createElement("div");a.classList.add("kg-callout-emoji"),a.textContent=t.calloutEmoji,i.appendChild(a)}const r=n.createElement("div");r.classList.add("kg-callout-text");const o=n.createElement("div");return o.innerHTML=t.calloutText,GP(o,["A","STRONG","EM","B","I","BR","CODE","MARK","S","DEL","U","SUP","SUB"]),r.innerHTML=o.innerHTML,i.appendChild(r),{element:i}}const Eve=t=>{var n,i;const e=(i=(n=t.classList)==null?void 0:n.value)==null?void 0:i.match(/kg-callout-card-(\w+)/);return e&&e[1]};function Tve(t){return{div:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-callout-card");return e.tagName==="DIV"&&n?{conversion(r){const o=r==null?void 0:r.querySelector(".kg-callout-text"),s=r==null?void 0:r.querySelector(".kg-callout-emoji"),a=Eve(r),l={calloutText:o&&o.innerHTML.trim()||"",calloutEmoji:s&&s.innerHTML.trim()||"",backgroundColor:a};return{node:new t(l)}},priority:1}:null}}}let Bg=class extends Rn({nodeType:"callout",properties:[{name:"calloutText",default:"",wordCount:!0},{name:"calloutEmoji",default:"💡"},{name:"backgroundColor",default:"blue"}],defaultRenderFn:Cve}){constructor({calloutText:e,calloutEmoji:n,backgroundColor:i}={},r){super(r),this.__calloutText=e||"",this.__calloutEmoji=n!==void 0?n:"💡",this.__backgroundColor=i||"blue"}static importDOM(){return Tve(this)}};function $ve(t){return t instanceof Bg}const Mve=t=>new Bg(t),jd=t=>t.showButton&&t.buttonUrl&&t.buttonText,Wg=(t,e)=>jd(t)?`<a href="${t.buttonUrl}">${e}</a>`:e;function Nve(t){(!t.buttonColor||!t.buttonColor.match(/^[a-zA-Z\d-]+|#([a-fA-F\d]{3}|[a-fA-F\d]{6})$/))&&(t.buttonColor="accent");const e=t.buttonColor==="accent"?"kg-style-accent":"",n=t.buttonColor==="accent"?`style="color: ${t.buttonTextColor};"`:`style="background-color: ${t.buttonColor}; color: ${t.buttonTextColor};"`;return`
|
||
<div class="kg-card kg-cta-card kg-cta-bg-${t.backgroundColor} kg-cta-${t.layout} ${t.showDividers?"":"kg-cta-no-dividers"} ${t.imageUrl?"kg-cta-has-img":""} ${t.linkColor==="accent"?"kg-cta-link-accent":""} ${t.alignment==="center"?"kg-cta-centered":""}" data-layout="${t.layout}">
|
||
${t.hasSponsorLabel?`
|
||
<div class="kg-cta-sponsor-label-wrapper">
|
||
<div class="kg-cta-sponsor-label">
|
||
${t.sponsorLabel}
|
||
</div>
|
||
</div>
|
||
`:""}
|
||
<div class="kg-cta-content">
|
||
${t.imageUrl?`
|
||
<div class="kg-cta-image-container">
|
||
${Wg(t,`<img src="${t.imageUrl}" alt="CTA Image" ${t!=null&&t.imageWidth&&t.imageHeight?`data-image-dimensions="${t.imageWidth}x${t.imageHeight}"`:""}>`)}
|
||
</div>
|
||
`:""}
|
||
${t.textValue||t.showButton?`
|
||
<div class="kg-cta-content-inner">
|
||
${t.textValue?`
|
||
<div class="kg-cta-text">
|
||
${t.textValue}
|
||
</div>
|
||
`:""}
|
||
${jd(t)?`
|
||
<a href="${t.buttonUrl}" class="kg-cta-button ${e}" ${n}>
|
||
${t.buttonText}
|
||
</a>
|
||
`:""}
|
||
</div>
|
||
`:""}
|
||
</div>
|
||
</div>
|
||
`}function Ave(t,e={}){var o,s,a,l,u,f,d,h;let n=t.buttonColor==="accent"?`color: ${t.buttonTextColor};`:`background-color: ${t.buttonColor}; color: ${t.buttonTextColor};`,i=n;((o=e==null?void 0:e.feature)!=null&&o.emailCustomization||(s=e==null?void 0:e.feature)!=null&&s.emailCustomizationAlpha)&&((a=e==null?void 0:e.design)==null?void 0:a.buttonStyle)==="outline"&&t.buttonColor!=="accent"&&(n=`
|
||
border: 1px solid ${t.buttonColor};
|
||
background-color: transparent;
|
||
color: ${t.buttonColor};
|
||
`,i=`
|
||
background-color: transparent;
|
||
color: ${t.buttonColor};
|
||
`);let r;if(t.imageUrl&&t.imageWidth&&t.imageHeight&&(r={width:t.imageWidth,height:t.imageHeight},t.imageWidth>=560&&(r=Rd(r,{width:560}))),t.layout==="minimal"&&t.imageUrl&&Lc(t.imageUrl,e.siteUrl)&&(l=e.canTransformImage)!=null&&l.call(e,t.imageUrl)){const[,g,m]=t.imageUrl.match(/(.*\/content\/images)\/(.*)/),y=((f=(u=e==null?void 0:e.imageOptimization)==null?void 0:u.internalImageSizes)==null?void 0:f["email-cta-minimal-image"])||{width:256,height:256};t.imageUrl=`${g}/size/w${y.width}h${y.height}/${m}`}if((d=e.feature)!=null&&d.emailCustomization||(h=e.feature)!=null&&h.emailCustomizationAlpha){const g=()=>t.layout==="minimal"?`
|
||
<tr>
|
||
<td class="kg-cta-content">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="kg-cta-content-wrapper">
|
||
<tr>
|
||
${t.imageUrl?`
|
||
<td class="kg-cta-image-container" width="64">
|
||
${Wg(t,`<img src="${t.imageUrl}" alt="CTA Image" class="kg-cta-image" width="64" height="64">`)}
|
||
</td>
|
||
`:""}
|
||
<td class="kg-cta-content-inner">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
${t.textValue?`
|
||
<tr>
|
||
<td class="kg-cta-text">
|
||
${t.textValue}
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
${jd(t)?`
|
||
<tr>
|
||
<td class="kg-cta-button-container">
|
||
<table border="0" cellpadding="0" cellspacing="0" class="btn">
|
||
<tr>
|
||
<td class="${t.buttonColor==="accent"?"kg-style-accent":""}" style="${n}">
|
||
<a href="${t.buttonUrl}"
|
||
class="${t.buttonColor==="accent"?"kg-style-accent":""}"
|
||
style="${i}"
|
||
>
|
||
${t.buttonText}
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:`
|
||
<tr>
|
||
<td class="kg-cta-content">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="kg-cta-content-wrapper">
|
||
${t.imageUrl?`
|
||
<tr>
|
||
<td class="kg-cta-image-container">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
<tr>
|
||
<td>
|
||
${Wg(t,`<img src="${t.imageUrl}" alt="CTA Image" class="kg-cta-image" ${r?`width="${r.width}"`:""} ${r?`height="${r.height}"`:""}>`)}
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
<tr>
|
||
<td class="kg-cta-text">
|
||
${t.textValue}
|
||
</td>
|
||
</tr>
|
||
${jd(t)?`
|
||
<tr>
|
||
<td class="kg-cta-button-container" align="${t.alignment}">
|
||
<table class="btn" border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td class="${t.buttonColor==="accent"?"kg-style-accent":""}" style="${n}" align="${t.alignment}">
|
||
<a href="${t.buttonUrl}"
|
||
class="${t.buttonColor==="accent"?"kg-style-accent":""}"
|
||
style="${i}"
|
||
>
|
||
${t.buttonText}
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`;return`
|
||
<table class="kg-card kg-cta-card kg-cta-bg-${t.backgroundColor} ${t.showDividers?"":"kg-cta-no-dividers"} kg-cta-${t.layout} ${t.hasSponsorLabel?"":"kg-cta-no-label"} ${t.textValue?"":"kg-cta-no-text"} ${t.imageUrl?"kg-cta-has-img":""} ${t.linkColor==="accent"?"kg-cta-link-accent":""} ${t.alignment==="center"?"kg-cta-centered":""}" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
${t.hasSponsorLabel?`
|
||
<tr>
|
||
<td>
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
<tr>
|
||
<td class="kg-cta-sponsor-label">
|
||
${t.sponsorLabel}
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
${g()}
|
||
</table>
|
||
`}else{const g=()=>t.layout==="minimal"?`
|
||
<tr>
|
||
<td class="kg-cta-content">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="kg-cta-content-wrapper">
|
||
<tr>
|
||
${t.imageUrl?`
|
||
<td class="kg-cta-image-container" width="64">
|
||
${Wg(t,`<img src="${t.imageUrl}" alt="CTA Image" class="kg-cta-image" width="64" height="64">`)}
|
||
</td>
|
||
`:""}
|
||
<td class="kg-cta-content-inner">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
${t.textValue?`
|
||
<tr>
|
||
<td class="kg-cta-text">
|
||
${t.textValue}
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
${jd(t)?`
|
||
<tr>
|
||
<td class="kg-cta-button-container">
|
||
<table border="0" cellpadding="0" cellspacing="0" class="kg-cta-button-wrapper">
|
||
<tr>
|
||
<td class="${t.buttonColor==="accent"?"kg-style-accent":""}" style="${n}">
|
||
<a href="${t.buttonUrl}"
|
||
class="kg-cta-button ${t.buttonColor==="accent"?"kg-style-accent":""}"
|
||
style="${n}"
|
||
>
|
||
${t.buttonText}
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:`
|
||
<tr>
|
||
<td class="kg-cta-content">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="kg-cta-content-wrapper">
|
||
${t.imageUrl?`
|
||
<tr>
|
||
<td class="kg-cta-image-container">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
<tr>
|
||
<td>
|
||
${Wg(t,`<img src="${t.imageUrl}" alt="CTA Image" class="kg-cta-image" ${r?`width="${r.width}"`:""} ${r?`height="${r.height}"`:""}>`)}
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
<tr>
|
||
<td class="kg-cta-text">
|
||
${t.textValue}
|
||
</td>
|
||
</tr>
|
||
${jd(t)?`
|
||
<tr>
|
||
<td class="kg-cta-button-container">
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td class="kg-cta-button-wrapper ${t.buttonColor==="accent"?"kg-style-accent":""}" style="${n}">
|
||
<a href="${t.buttonUrl}"
|
||
class="kg-cta-button ${t.buttonColor==="accent"?"kg-style-accent":""}"
|
||
style="${n}"
|
||
>
|
||
${t.buttonText}
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`;return`
|
||
<table class="kg-card kg-cta-card kg-cta-bg-${t.backgroundColor} ${t.showDividers?"":"kg-cta-no-dividers"} kg-cta-${t.layout} ${t.hasSponsorLabel?"":"kg-cta-no-label"} ${t.textValue?"":"kg-cta-no-text"} ${t.imageUrl?"kg-cta-has-img":""} ${t.linkColor==="accent"?"kg-cta-link-accent":""} ${t.alignment==="center"?"kg-cta-centered":""}" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
${t.hasSponsorLabel?`
|
||
<tr>
|
||
<td>
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
<tr>
|
||
<td class="kg-cta-sponsor-label">
|
||
${t.sponsorLabel}
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
${g()}
|
||
</table>
|
||
`}}function Pve(t,e={}){jn(e);const n=e.createDocument(),i={layout:t.layout,alignment:t.alignment,textValue:t.textValue,showButton:t.showButton,showDividers:t.showDividers,buttonText:t.buttonText,buttonUrl:t.buttonUrl,buttonColor:t.buttonColor,buttonTextColor:t.buttonTextColor,hasSponsorLabel:t.hasSponsorLabel,backgroundColor:t.backgroundColor,sponsorLabel:t.sponsorLabel,imageUrl:t.imageUrl,imageWidth:t.imageWidth,imageHeight:t.imageHeight,linkColor:t.linkColor};if((!i.backgroundColor||!i.backgroundColor.match(/^[a-zA-Z\d-]+|#([a-fA-F\d]{3}|[a-fA-F\d]{6})$/))&&(i.backgroundColor="white"),e.target==="email"){const a=e.createDocument().createElement("div");return a.innerHTML=Ave(i,e),Ig({element:a.firstElementChild},t.visibility,e)}const r=n.createElement("div");if(i.hasSponsorLabel){const a=qP(r)(i.sponsorLabel,{firstChildInnerContent:!0});i.sponsorLabel=a}const o=Nve(i);return r.innerHTML=o==null?void 0:o.trim(),Ig({element:r.firstElementChild},t.visibility,e)}const Rc=t=>{if(t==="transparent")return t;try{const[e,n,i]=t.match(/\d+/g),r=parseInt(e,10).toString(16).padStart(2,"0"),o=parseInt(n,10).toString(16).padStart(2,"0"),s=parseInt(i,10).toString(16).padStart(2,"0");return`#${r}${o}${s}`}catch{return null}};function Dve(t){return{div:e=>{var i;return((i=e.classList)==null?void 0:i.contains("kg-cta-card"))?{conversion(r){const o=r,s=o.getAttribute("data-layout")||"minimal",a=o.getAttribute("data-alignment")||"left",l=r.querySelector(".kg-cta-text"),u=r.querySelector(".kg-cta-button"),f=(u==null?void 0:u.style)||{},d=f.backgroundColor||"#000000",h=f.color||"#ffffff",g=r.querySelector(".kg-cta-sponsor-label"),m=o.className.match(/kg-cta-bg-(\w+)/),y=m?m[1]:"grey",x=o.classList.contains("kg-cta-has-dividers"),_=r.querySelector(".kg-cta-image-container"),S=_==null?void 0:_.querySelector("img");let C={imageUrl:"",imageWidth:null,imageHeight:null};if(S){const{src:M,width:I,height:W}=Xb(S);C.imageUrl=M,C.imageWidth=I||null,C.imageHeight=W||null}g&&(g.innerHTML=`<p>${g.innerHTML.trim()}</p>`);const E={layout:s,alignment:a,textValue:l.textContent.trim()||"",showButton:!!u,showDividers:x,buttonText:(u==null?void 0:u.textContent.trim())||"",buttonUrl:u==null?void 0:u.getAttribute("href"),buttonColor:Rc(d),buttonTextColor:Rc(h),hasSponsorLabel:!!g,sponsorLabel:(g==null?void 0:g.innerHTML)||"",backgroundColor:y,imageUrl:C.imageUrl,imageWidth:C.imageWidth,imageHeight:C.imageHeight};return{node:new t(E)}},priority:1}:null}}}let Hg=class extends Rn({nodeType:"call-to-action",hasVisibility:!0,properties:[{name:"layout",default:"minimal"},{name:"alignment",default:"left"},{name:"textValue",default:"",wordCount:!0},{name:"showButton",default:!0},{name:"showDividers",default:!0},{name:"buttonText",default:"Learn more"},{name:"buttonUrl",default:""},{name:"buttonColor",default:"#000000"},{name:"buttonTextColor",default:"#ffffff"},{name:"hasSponsorLabel",default:!0},{name:"sponsorLabel",default:'<p><span style="white-space: pre-wrap;">SPONSORED</span></p>'},{name:"backgroundColor",default:"grey"},{name:"linkColor",default:"text"},{name:"imageUrl",default:""},{name:"imageWidth",default:null},{name:"imageHeight",default:null}],defaultRenderFn:Pve}){static importDOM(){return Dve(this)}};const Ive=t=>new Hg(t),Lve=t=>t instanceof Hg;class Rve{constructor(e){this.NodeClass=e}get DOMConversionMap(){const e=this;return{blockquote:()=>({conversion(n){var r;const i=(r=n.classList)==null?void 0:r.contains("kg-blockquote-alt");return n.tagName==="BLOCKQUOTE"&&i?{node:new e.NodeClass}:null},priority:0})}}}let Qg=class extends A.ElementNode{static getType(){return"aside"}static clone(e){return new this(e.__key)}static get urlTransformMap(){return{}}constructor(e){super(e)}static importJSON(e){const n=new this;return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"aside",version:1}}static importDOM(){return new Rve(this).DOMConversionMap}createDOM(){return document.createElement("div")}updateDOM(){return!1}isInline(){return!1}extractWithChild(){return!0}};function jve(){return new Qg}function Fve(t){return t instanceof Qg}function zve(t,e={}){return jn(e),{element:e.createDocument().createElement("hr")}}function Bve(t){return{hr:()=>({conversion(){return{node:new t}},priority:0})}}let Ug=class extends Rn({nodeType:"horizontalrule",defaultRenderFn:zve}){static importDOM(){return Bve(this)}getTextContent(){return`---
|
||
|
||
`}hasEditMode(){return!1}};function Wve(){return new Ug}function Hve(t){return t instanceof Ug}function Qve(t,e={}){jn(e);const n=e.createDocument(),i=t.html;if(!i)return wr(n);const r=`
|
||
<!--kg-card-begin: html-->
|
||
${i}
|
||
<!--kg-card-end: html-->
|
||
`,o=n.createElement("textarea");return o.value=r,t.visibility?Ig({element:o,type:"value"},t.visibility,e):{element:o,type:"value"}}function Uve(t){return{"#comment":e=>e.nodeType===8&&e.nodeValue.trim().match(/^kg-card-begin:\s?html$/)?{conversion(n){let i=[],r=n.nextSibling;for(;r&&!Zve(r);){let a=r;i.push(a.outerHTML),r=a.nextSibling,a.remove()}let o={html:i.join(`
|
||
`).trim()};return{node:new t(o)}},priority:0}:null,table:e=>e.nodeType===1&&e.tagName==="TABLE"&&e.parentNode.tagName!=="TABLE"?{conversion(n){const i={html:n.outerHTML};return{node:new t(i)}},priority:0}:null}}function Zve(t){return t&&t.nodeType===8&&t.nodeValue.trim().match(/^kg-card-end:\s?html$/)}let Zg=class extends Rn({nodeType:"html",hasVisibility:!0,properties:[{name:"html",default:"",urlType:"html",wordCount:!0}],defaultRenderFn:Qve}){static importDOM(){return Uve(this)}isEmpty(){return!this.__html}};function qve(t){return new Zg(t)}function Yve(t){return t instanceof Zg}function Vve(t){return{div:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-toggle-card");return e.tagName==="DIV"&&n?{conversion(r){const s=r.querySelector(".kg-toggle-heading-text").textContent,l=r.querySelector(".kg-toggle-content").textContent,u={heading:s,content:l};return{node:new t(u)}},priority:1}:null}}}const KP=function(t,...e){return typeof t=="string"?t.replace(/\n\s+/g,"").trim():t.reduce((i,r,o)=>i+r+(e[o]||""),"").replace(/\n\s+/g,"").trim()},Fd=KP;var Xve=Object.freeze({__proto__:null,html:Fd,oneline:KP});function Gve({node:t}){return`
|
||
<div class="kg-card kg-toggle-card" data-kg-toggle-state="close">
|
||
<div class="kg-toggle-heading">
|
||
<h4 class="kg-toggle-heading-text">${t.heading}</h4>
|
||
<button class="kg-toggle-card-icon" aria-label="Expand toggle to read content">
|
||
<svg id="Regular" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
||
<path class="cls-1" d="M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311"></path>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
<div class="kg-toggle-content">${t.content}</div>
|
||
</div>
|
||
`}function Kve({node:t},e={}){var n,i;return(n=e.feature)!=null&&n.emailCustomization||(i=e.feature)!=null&&i.emailCustomizationAlpha?Fd`
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="kg-toggle-card">
|
||
<tbody>
|
||
<tr>
|
||
<td class="kg-toggle-heading">
|
||
<h4>${t.heading}</h4>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="kg-toggle-content">
|
||
${t.content}
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
`:`
|
||
<div style="background: transparent;
|
||
border: 1px solid rgba(124, 139, 154, 0.25); border-radius: 4px; padding: 20px; margin-bottom: 1.5em;">
|
||
<h4 style="font-size: 1.375rem; font-weight: 600; margin-bottom: 8px; margin-top:0px">${t.heading}</h4>
|
||
<div style="font-size: 1rem; line-height: 1.5; margin-bottom: -1.5em;">${t.content}</div>
|
||
</div>
|
||
`}function Jve(t,e={}){jn(e);const n=e.createDocument(),i=e.target==="email"?Kve({node:t},e):Gve({node:t}),r=n.createElement("div");return r.innerHTML=i.trim(),{element:r.firstElementChild}}let qg=class extends Rn({nodeType:"toggle",properties:[{name:"heading",default:"",urlType:"html",wordCount:!0},{name:"content",default:"",urlType:"html",wordCount:!0}],defaultRenderFn:Jve}){static importDOM(){return Vve(this)}};const ebe=t=>new qg(t);function tbe(t){return t instanceof qg}function nbe(t){return{div:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-button-card");return e.tagName==="DIV"&&n?{conversion(r){const o=e.className.match(/kg-align-(left|center)/);let s;o&&(s=o[1]);const a=r==null?void 0:r.querySelector(".kg-btn"),l=a.getAttribute("href"),f={buttonText:a.textContent,alignment:s,buttonUrl:l};return{node:new t(f)}},priority:1}:null}}}function ibe({alignment:t="",color:e="accent",text:n="",url:i=""}={}){const r=nt("btn",e==="accent"&&"btn-accent");return Fd`
|
||
<table class="${r}" border="0" cellspacing="0" cellpadding="0" align="${t}">
|
||
<tbody>
|
||
<tr>
|
||
<td align="center">
|
||
<a href="${i}">${n}</a>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
`}function rbe(t,e={}){jn(e);const n=e.createDocument();return!t.buttonUrl||t.buttonUrl.trim()===""?wr(n):e.target==="email"?sbe(t,e,n):obe(t,n)}function obe(t,e){const n=abe(t),i=e.createElement("div");i.setAttribute("class",n);const r=e.createElement("a");return r.setAttribute("href",t.buttonUrl),r.setAttribute("class","kg-btn kg-btn-accent"),r.textContent=t.buttonText||"Button Title",i.appendChild(r),{element:i}}function sbe(t,e,n){var s,a;const{buttonUrl:i,buttonText:r}=t;let o;if((s=e.feature)!=null&&s.emailCustomization){o=Fd`
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td>
|
||
<table class="btn btn-accent" border="0" cellspacing="0" cellpadding="0" align="${t.alignment}">
|
||
<tr>
|
||
<td align="center">
|
||
<a href="${i}">${r}</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>`;const l=n.createElement("p");return l.innerHTML=o,{element:l}}else if((a=e.feature)!=null&&a.emailCustomizationAlpha){const l=ibe({alignment:t.alignment,color:"accent",url:i,text:r});o=Fd`
|
||
<table border="0" cellpadding="0" cellspacing="0">
|
||
<tbody>
|
||
<tr>
|
||
<td>
|
||
${l}
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
`;const u=n.createElement("div");return u.innerHTML=o,{element:u,type:"inner"}}else{o=Fd`
|
||
<div class="btn btn-accent">
|
||
<table border="0" cellspacing="0" cellpadding="0" align="${t.alignment}">
|
||
<tr>
|
||
<td align="center">
|
||
<a href="${i}">${r}</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
`;const l=n.createElement("p");return l.innerHTML=o,{element:l}}}function abe(t){let e=["kg-card kg-button-card"];return t.alignment&&e.push(`kg-align-${t.alignment}`),e.join(" ")}let Yg=class extends Rn({nodeType:"button",properties:[{name:"buttonText",default:""},{name:"alignment",default:"center"},{name:"buttonUrl",default:"",urlType:"url"}],defaultRenderFn:rbe}){static importDOM(){return nbe(this)}};const lbe=t=>new Yg(t);function ube(t){return t instanceof Yg}function cbe(t){return{figure:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-bookmark-card");return e.tagName==="FIGURE"&&n?{conversion(r){var y,x,_,S,C,E,N,M;const o=(y=r==null?void 0:r.querySelector(".kg-bookmark-container"))==null?void 0:y.getAttribute("href"),s=(x=r==null?void 0:r.querySelector(".kg-bookmark-icon"))==null?void 0:x.src,a=(_=r==null?void 0:r.querySelector(".kg-bookmark-title"))==null?void 0:_.textContent,l=(S=r==null?void 0:r.querySelector(".kg-bookmark-description"))==null?void 0:S.textContent,u=(C=r==null?void 0:r.querySelector(".kg-bookmark-publisher"))==null?void 0:C.textContent,f=(E=r==null?void 0:r.querySelector(".kg-bookmark-author"))==null?void 0:E.textContent,d=(N=r==null?void 0:r.querySelector(".kg-bookmark-thumbnail img"))==null?void 0:N.src,h=(M=r==null?void 0:r.querySelector("figure.kg-bookmark-card figcaption"))==null?void 0:M.textContent,g={url:o,metadata:{icon:s,title:a,description:l,author:u,publisher:f,thumbnail:d},caption:h};return{node:new t(g)}},priority:1}:null},div:e=>e.nodeType===1&&e.tagName==="DIV"&&e.className.match(/graf--mixtapeEmbed/)?{conversion(n){const i=n.querySelector(".markup--mixtapeEmbed-anchor"),r=i.querySelector(".markup--mixtapeEmbed-strong"),o=i.querySelector(".markup--mixtapeEmbed-em"),s=n.querySelector(".mixtapeImage");n.querySelector("br").remove();const a=i.getAttribute("href");let l="",u="",f="";r&&r.innerHTML&&(l=r.innerHTML.trim(),i.removeChild(r)),o&&o.innerHTML&&(u=o.innerHTML.trim(),i.removeChild(o));let d=i.innerHTML.trim();s&&s.style["background-image"]&&(f=s.style["background-image"].match(/url\(([^)]*?)\)/)[1]);let h={url:a,metadata:{title:l,description:u,publisher:d,thumbnail:f}};return{node:new t(h)}},priority:1}:null}}function Si(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function JP(t,e,n){if(t.length<=n)return Si(t);if(t&&t.length>n){let i="";return t.length>n&&t.length<=e?i='<span class="hide-desktop">…</span>':t.length>e&&(i="…"),Si(t.substring(0,n-1))+'<span class="desktop-only">'+Si(t.substring(n-1,e-1))+"</span>"+i}else return Si(t??"")}function fbe(t,e={}){jn(e);const n=e.createDocument();return!t.url||t.url.trim()===""?wr(n):e.target==="email"?dbe(t,n):hbe(t,n)}function dbe(t,e){const n=Si(t.title),i=Si(t.publisher),r=Si(t.author),o=Si(t.description),s=t.icon,a=t.url,l=t.thumbnail,u=t.caption,f=e.createElement("div"),d=`
|
||
<!--[if !mso !vml]-->
|
||
<figure class="kg-card kg-bookmark-card ${u?"kg-card-hascaption":""}">
|
||
<a class="kg-bookmark-container" href="${a}">
|
||
<div class="kg-bookmark-content">
|
||
<div class="kg-bookmark-title">${n}</div>
|
||
<div class="kg-bookmark-description">${JP(o,120,90)}</div>
|
||
<div class="kg-bookmark-metadata">
|
||
${s?`<img class="kg-bookmark-icon" src="${s}" alt="">`:""}
|
||
${i?`<span class="kg-bookmark-author" src="${i}">${i}</span>`:""}
|
||
${r?`<span class="kg-bookmark-publisher" src="${r}">${r}</span>`:""}
|
||
</div>
|
||
</div>
|
||
${l?`<div class="kg-bookmark-thumbnail" style="background-image: url('${l}')">
|
||
<img src="${l}" alt="" onerror="this.style.display='none'"></div>`:""}
|
||
</a>
|
||
${u?`<figcaption>${u}</figcaption>`:""}
|
||
</figure>
|
||
<!--[endif]-->
|
||
<!--[if vml]>
|
||
<table class="kg-card kg-bookmark-card--outlook" style="margin: 0; padding: 0; width: 100%; border: 1px solid #e5eff5; background: #ffffff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; border-collapse: collapse; border-spacing: 0;" width="100%">
|
||
<tr>
|
||
<td width="100%" style="padding: 20px;">
|
||
<table style="margin: 0; padding: 0; border-collapse: collapse; border-spacing: 0;">
|
||
<tr>
|
||
<td class="kg-bookmark-title--outlook">
|
||
<a href="${a}" style="text-decoration: none; color: #15212A; font-size: 15px; line-height: 1.5em; font-weight: 600;">
|
||
${n}
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<div class="kg-bookmark-description--outlook">
|
||
<a href="${a}" style="text-decoration: none; margin-top: 12px; color: #738a94; font-size: 13px; line-height: 1.5em; font-weight: 400;">
|
||
${JP(o,120,90)}
|
||
</a>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="kg-bookmark-metadata--outlook" style="padding-top: 14px; color: #15212A; font-size: 13px; font-weight: 400; line-height: 1.5em;">
|
||
<table style="margin: 0; padding: 0; border-collapse: collapse; border-spacing: 0;">
|
||
<tr>
|
||
${s?`
|
||
<td valign="middle" class="kg-bookmark-icon--outlook" style="padding-right: 8px; font-size: 0; line-height: 1.5em;">
|
||
<a href="${a}" style="text-decoration: none; color: #15212A;">
|
||
<img src="${s}" width="22" height="22" alt=" ">
|
||
</a>
|
||
</td>
|
||
`:""}
|
||
<td valign="middle" class="kg-bookmark-byline--outlook">
|
||
<a href="${a}" style="text-decoration: none; color: #15212A;">
|
||
${i}
|
||
${r?" • ":""}
|
||
${r}
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
<div class="kg-bookmark-spacer--outlook" style="height: 1.5em;"> </div>
|
||
<![endif]-->`;return f.innerHTML=d,{element:f}}function hbe(t,e){const n=e.createElement("figure"),i=t.caption;let r="kg-card kg-bookmark-card";i&&(r+=" kg-card-hascaption"),n.setAttribute("class",r);const o=e.createElement("a");o.setAttribute("class","kg-bookmark-container"),o.href=t.url,n.appendChild(o);const s=e.createElement("div");s.setAttribute("class","kg-bookmark-content"),o.appendChild(s);const a=e.createElement("div");a.setAttribute("class","kg-bookmark-title"),a.textContent=t.title,s.appendChild(a);const l=e.createElement("div");l.setAttribute("class","kg-bookmark-description"),l.textContent=t.description,s.appendChild(l);const u=e.createElement("div");if(u.setAttribute("class","kg-bookmark-metadata"),s.appendChild(u),u.icon=t.icon,u.icon){const f=e.createElement("img");f.setAttribute("class","kg-bookmark-icon"),f.src=u.icon,f.alt="",u.appendChild(f)}if(u.publisher=t.publisher,u.publisher){const f=e.createElement("span");f.setAttribute("class","kg-bookmark-author"),f.textContent=u.publisher,u.appendChild(f)}if(u.author=t.author,u.author){const f=e.createElement("span");f.setAttribute("class","kg-bookmark-publisher"),f.textContent=u.author,u.appendChild(f)}if(u.thumbnail=t.thumbnail,u.thumbnail){const f=e.createElement("div");f.setAttribute("class","kg-bookmark-thumbnail"),o.appendChild(f);const d=e.createElement("img");d.src=u.thumbnail,d.alt="",d.setAttribute("onerror","this.style.display = 'none'"),f.appendChild(d)}if(i){const f=e.createElement("figcaption");f.innerHTML=i,n.appendChild(f)}return{element:n}}let Vg=class extends Rn({nodeType:"bookmark",properties:[{name:"title",default:"",wordCount:!0},{name:"description",default:"",wordCount:!0},{name:"url",default:"",urlType:"url",wordCount:!0},{name:"caption",default:"",wordCount:!0},{name:"author",default:""},{name:"publisher",default:""},{name:"icon",urlPath:"metadata.icon",default:"",urlType:"url"},{name:"thumbnail",urlPath:"metadata.thumbnail",default:"",urlType:"url"}],defaultRenderFn:fbe}){static importDOM(){return cbe(this)}constructor({url:e,metadata:n,caption:i}={},r){super(r),this.__url=e||"",this.__icon=(n==null?void 0:n.icon)||"",this.__title=(n==null?void 0:n.title)||"",this.__description=(n==null?void 0:n.description)||"",this.__author=(n==null?void 0:n.author)||"",this.__publisher=(n==null?void 0:n.publisher)||"",this.__thumbnail=(n==null?void 0:n.thumbnail)||"",this.__caption=i||""}getDataset(){const e=this.getLatest();return{url:e.__url,metadata:{icon:e.__icon,title:e.__title,description:e.__description,author:e.__author,publisher:e.__publisher,thumbnail:e.__thumbnail},caption:e.__caption}}static importJSON(e){const{url:n,metadata:i,caption:r}=e;return new this({url:n,metadata:i,caption:r})}exportJSON(){return{type:"bookmark",version:1,url:this.url,metadata:{icon:this.icon,title:this.title,description:this.description,author:this.author,publisher:this.publisher,thumbnail:this.thumbnail},caption:this.caption}}isEmpty(){return!this.url}};const pbe=t=>new Vg(t);function gbe(t){return t instanceof Vg}function mbe(t){if(!t)return 0;const e=["Bytes","KB","MB","GB","TB"],n=t.split(" "),i=parseFloat(n[0]),r=n[1],o=e.indexOf(r);return o===-1?0:Math.round(i*Math.pow(1024,o))}function eD(t){if(!t)return"0 Byte";const e=["Bytes","KB","MB","GB","TB"];if(t===0)return"0 Byte";const n=parseInt(Math.floor(Math.log(t)/Math.log(1024)));return Math.round(t/Math.pow(1024,n))+" "+e[n]}function vbe(t,e={}){jn(e);const n=e.createDocument();return!t.src||t.src.trim()===""?wr(n):e.target==="email"?bbe(t,n,e):kbe(t,n)}function bbe(t,e,n){let i;!t.fileTitle&&!t.fileCaption?i="margin-top: 6px; height: 20px; width: 20px; max-width: 20px; padding-top: 4px; padding-bottom: 4px;":i="margin-top: 6px; height: 24px; width: 24px; max-width: 24px;";const r=`
|
||
<table cellspacing="0" cellpadding="4" border="0" class="kg-file-card" width="100%">
|
||
<tr>
|
||
<td>
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||
<tr>
|
||
<td valign="middle" style="vertical-align: middle;">
|
||
${t.fileTitle?`
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>
|
||
<a href="${Si(n.postUrl)}" class="kg-file-title">${Si(t.fileTitle)}</a>
|
||
</td></tr></table>
|
||
`:""}
|
||
${t.fileCaption?`
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>
|
||
<a href="${Si(n.postUrl)}" class="kg-file-description">${Si(t.fileCaption)}</a>
|
||
</td></tr></table>
|
||
`:""}
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>
|
||
<a href="${Si(n.postUrl)}" class="kg-file-meta"><span class="kg-file-name">${Si(t.fileName)}</span> • ${eD(t.fileSize)}</a>
|
||
</td></tr></table>
|
||
</td>
|
||
<td width="80" valign="middle" class="kg-file-thumbnail">
|
||
<a href="${Si(n.postUrl)}" style="display: block; top: 0; right: 0; bottom: 0; left: 0;">
|
||
<img src="https://static.ghost.org/v4.0.0/images/download-icon-darkmode.png" style="${Si(i)}">
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
`,o=e.createElement("div");return o.innerHTML=r.trim(),{element:o.firstElementChild}}function kbe(t,e){const n=e.createElement("div");n.setAttribute("class","kg-card kg-file-card");const i=e.createElement("a");i.setAttribute("class","kg-file-card-container"),i.setAttribute("href",t.src),i.setAttribute("title","Download"),i.setAttribute("download","");const r=e.createElement("div");r.setAttribute("class","kg-file-card-contents");const o=e.createElement("div");o.setAttribute("class","kg-file-card-title"),o.textContent=t.fileTitle||"";const s=e.createElement("div");s.setAttribute("class","kg-file-card-caption"),s.textContent=t.fileCaption||"";const a=e.createElement("div");a.setAttribute("class","kg-file-card-metadata");const l=e.createElement("div");l.setAttribute("class","kg-file-card-filename"),l.textContent=t.fileName||"";const u=e.createElement("div");u.setAttribute("class","kg-file-card-filesize"),u.textContent=t.formattedFileSize||"",a.appendChild(l),a.appendChild(u),r.appendChild(o),r.appendChild(s),r.appendChild(a),i.appendChild(r);const f=e.createElement("div");f.setAttribute("class","kg-file-card-icon");const d=e.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("viewBox","0 0 24 24");const h=e.createElementNS("http://www.w3.org/2000/svg","defs"),g=e.createElementNS("http://www.w3.org/2000/svg","style");g.textContent=".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}",h.appendChild(g);const m=e.createElementNS("http://www.w3.org/2000/svg","title");m.textContent="download-circle";const y=e.createElementNS("http://www.w3.org/2000/svg","polyline");y.setAttribute("class","a"),y.setAttribute("points","8.25 14.25 12 18 15.75 14.25");const x=e.createElementNS("http://www.w3.org/2000/svg","line");x.setAttribute("class","a"),x.setAttribute("x1","12"),x.setAttribute("y1","6.75"),x.setAttribute("x2","12"),x.setAttribute("y2","18");const _=e.createElementNS("http://www.w3.org/2000/svg","circle");return _.setAttribute("class","a"),_.setAttribute("cx","12"),_.setAttribute("cy","12"),_.setAttribute("r","11.25"),d.appendChild(h),d.appendChild(m),d.appendChild(y),d.appendChild(x),d.appendChild(_),f.appendChild(d),i.appendChild(f),n.appendChild(i),{element:n}}function ybe(t){return{div:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-file-card");return e.tagName==="DIV"&&n?{conversion(r){var g,m,y,x;const s=r.querySelector("a").getAttribute("href"),a=((g=r.querySelector(".kg-file-card-title"))==null?void 0:g.textContent)||"",l=((m=r.querySelector(".kg-file-card-caption"))==null?void 0:m.textContent)||"",u=((y=r.querySelector(".kg-file-card-filename"))==null?void 0:y.textContent)||"";let f=mbe(((x=r.querySelector(".kg-file-card-filesize"))==null?void 0:x.textContent)||"");const d={src:s,fileTitle:a,fileCaption:l,fileName:u,fileSize:f};return{node:new t(d)}},priority:1}:null}}}let Xg=class extends Rn({nodeType:"file",properties:[{name:"src",default:"",urlType:"url"},{name:"fileTitle",default:"",wordCount:!0},{name:"fileCaption",default:"",wordCount:!0},{name:"fileName",default:""},{name:"fileSize",default:""}],defaultRenderFn:vbe}){exportJSON(){const{src:e,fileTitle:n,fileCaption:i,fileName:r,fileSize:o}=this;return{type:"file",src:e&&e.startsWith("data:")?"<base64String>":e,fileTitle:n,fileCaption:i,fileName:r,fileSize:o}}static importDOM(){return ybe(this)}get formattedFileSize(){return eD(this.fileSize)}};function wbe(t){return t instanceof Xg}const xbe=t=>new Xg(t);function Gb(t){return t=t.replace(/<[^>]*>?/gm,""),t=t.replace(/[^\w\s]/gi,""),t=t.replace(/\s+/g,"-"),t=t.toLowerCase(),t}function _be(t,e={}){jn(e);const n=e.createDocument();if(!t.header&&!t.subheader&&(!t.buttonEnabled||!t.buttonUrl||!t.buttonText))return wr(n);const i={size:t.size,style:t.style,buttonEnabled:t.buttonEnabled&&!!t.buttonUrl&&!!t.buttonText,buttonUrl:t.buttonUrl,buttonText:t.buttonText,header:t.header,headerSlug:Gb(t.header),subheader:t.subheader,subheaderSlug:Gb(t.subheader),hasHeader:!!t.header,hasSubheader:!!t.subheader&&!!t.subheader.replace(/(<br>)+$/g).trim(),backgroundImageStyle:t.style==="image"?`background-image: url(${t.backgroundImageSrc})`:"",backgroundImageSrc:t.backgroundImageSrc},r=n.createElement("div");if(r.classList.add("kg-card","kg-header-card","kg-width-full",`kg-size-${i.size}`,`kg-style-${i.style}`),r.setAttribute("data-kg-background-image",i.backgroundImageSrc),r.setAttribute("style",i.backgroundImageStyle),i.hasHeader){const o=n.createElement("h2");o.classList.add("kg-header-card-header"),o.setAttribute("id",i.headerSlug),o.innerHTML=i.header,r.appendChild(o)}if(i.hasSubheader){const o=n.createElement("h3");o.classList.add("kg-header-card-subheader"),o.setAttribute("id",i.subheaderSlug),o.innerHTML=i.subheader,r.appendChild(o)}if(i.buttonEnabled){const o=n.createElement("a");o.classList.add("kg-header-card-button"),o.setAttribute("href",i.buttonUrl),o.textContent=i.buttonText,r.appendChild(o)}return{element:r}}function Obe(t){return{div:e=>{var r,o,s,a;const n=((r=e.classList)==null?void 0:r.contains("kg-header-card"))&&!((o=e.classList)!=null&&o.contains("kg-v2")),i=((s=e.classList)==null?void 0:s.contains("kg-header-card"))&&((a=e.classList)==null?void 0:a.contains("kg-v2"));return e.tagName==="DIV"&&n?{conversion(l){const u=l,f=l.querySelector(".kg-header-card-header"),d=l.querySelector(".kg-header-card-subheader"),h=l.querySelector(".kg-header-card-button"),g=u.classList.contains("kg-size-large")?"large":"small",m=u.classList.contains("kg-style-image")?"image":"text",y=u.getAttribute("data-kg-background-image"),_=!!f?f.textContent:"",C=!!d?d.textContent:"",E=!!h,N=E?h.getAttribute("href"):"",M=E?h.textContent:"",I={size:g,style:m,backgroundImageSrc:y,header:_,subheader:C,buttonEnabled:E,buttonUrl:N,buttonText:M,version:1};return{node:new t(I)}},priority:1}:e.tagName==="DIV"&&i?{conversion(l){var R;const u=l,f=u.querySelector(".kg-header-card-heading"),d=u.querySelector(".kg-header-card-subheading"),h=u.querySelector(".kg-header-card-button"),g=u.classList.contains("kg-align-center")?"center":"",m=(R=u.querySelector(".kg-header-card-image"))==null?void 0:R.getAttribute("src"),y=m?"split":"",x=u.classList.contains("kg-style-accent")?"accent":u.getAttribute("data-background-color"),_=(h==null?void 0:h.getAttribute("data-button-color"))||"",S=(f==null?void 0:f.getAttribute("data-text-color"))||"",C=(h==null?void 0:h.getAttribute("data-button-text-color"))||"",E=(f==null?void 0:f.textContent)||"",N=(d==null?void 0:d.textContent)||"",M=!!h,I=M?h.getAttribute("href"):"",W=M?h.textContent:"",B={backgroundColor:x,buttonColor:_,alignment:g,backgroundImageSrc:m,layout:y,textColor:S,header:E,subheader:N,buttonEnabled:M,buttonUrl:I,buttonText:W,buttonTextColor:C,version:2};return{node:new t(B)}},priority:1}:null}}}function Sbe(t,e={}){const n=Tbe(t).join(" "),i=t.backgroundColor==="accent"?"kg-style-accent":"",r=t.buttonColor==="accent"?"kg-style-accent":"",o=t.buttonColor!=="accent"?`background-color: ${t.buttonColor};`:"",s=t.alignment==="center"?"kg-align-center":"",a=t.backgroundColor!=="accent"&&(!t.backgroundImageSrc||t.layout==="split")?`background-color: ${t.backgroundColor}`:"";let l="";if(t.backgroundImageSrc){const g={src:t.backgroundImageSrc,width:t.backgroundImageWidth,height:t.backgroundImageHeight},m=VP({...g,options:e}),y=m?`srcset="${m}"`:"";l=`
|
||
<picture><img class="kg-header-card-image" src="${g.src}" ${y} loading="lazy" alt="" /></picture>
|
||
`}const u=()=>t.header?`<h2 id="${Gb(t.header)}" class="kg-header-card-heading" style="color: ${t.textColor};" data-text-color="${t.textColor}">${t.header}</h2>`:"",f=()=>t.subheader?`<p id="${Gb(t.subheader)}" class="kg-header-card-subheading" style="color: ${t.textColor};" data-text-color="${t.textColor}">${t.subheader}</p>`:"",d=()=>t.buttonEnabled&&t.buttonUrl&&t.buttonUrl.trim()!==""?`<a href="${t.buttonUrl}" class="kg-header-card-button ${r}" style="${o}color: ${t.buttonTextColor};" data-button-color="${t.buttonColor}" data-button-text-color="${t.buttonTextColor}">${t.buttonText}</a>`:"",h=a?`style="${a};"`:"";return`
|
||
<div class="${n} ${i}" ${h} data-background-color="${t.backgroundColor}">
|
||
${t.layout!=="split"?l:""}
|
||
<div class="kg-header-card-content">
|
||
${t.layout==="split"?l:""}
|
||
<div class="kg-header-card-text ${s}">
|
||
${u()}
|
||
${f()}
|
||
${d()}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
`}function Cbe(t,e){var u,f,d,h,g;const n=t.backgroundColor==="accent"?`background-color: ${t.accentColor};`:"";let i=t.buttonColor==="accent"?`background-color: ${t.accentColor};`:t.buttonColor,r=t.buttonColor!=="accent"?`background-color: ${t.buttonColor};`:"",o=t.buttonTextColor;const s=t.alignment==="center"?"text-align: center;":"",a=t.backgroundImageSrc?t.layout!=="split"?`background-image: url(${t.backgroundImageSrc}); background-size: cover; background-position: center center;`:`background-color: ${t.backgroundColor};`:`background-color: ${t.backgroundColor};`,l=`background-image: url(${t.backgroundImageSrc}); background-size: ${t.backgroundSize!=="contain"?"cover":"50%"}; background-position: center`;return((u=e==null?void 0:e.feature)!=null&&u.emailCustomization||(f=e==null?void 0:e.feature)!=null&&f.emailCustomizationAlpha)&&((d=e==null?void 0:e.design)==null?void 0:d.buttonStyle)==="outline"&&(t.buttonColor==="accent"?(i="",r=`
|
||
border: 1px solid ${t.accentColor};
|
||
background-color: transparent;
|
||
color: ${t.accentColor} !important;
|
||
`,o=t.accentColor):(r=`
|
||
border: 1px solid ${t.buttonColor};
|
||
background-color: transparent;
|
||
color: ${t.buttonColor} !important;
|
||
`,o=t.buttonColor)),(h=e==null?void 0:e.feature)!=null&&h.emailCustomization||(g=e==null?void 0:e.feature)!=null&&g.emailCustomizationAlpha?`
|
||
<div class="kg-header-card kg-v2" style="color:${t.textColor}; ${s} ${a} ${n}">
|
||
${t.layout==="split"&&t.backgroundImageSrc?`
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
<tr>
|
||
<td background="${t.backgroundImageSrc}" style="${l}" class="kg-header-card-image"></td>
|
||
</tr>
|
||
</table>
|
||
`:""}
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="color:${t.textColor}; ${s} ${a} ${n}">
|
||
<tr>
|
||
<td class="kg-header-card-content" style="${t.layout==="split"&&t.backgroundSize==="contain"?"padding-top: 0;":""}">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||
<tr>
|
||
<td align="${t.alignment}">
|
||
<h2 class="kg-header-card-heading" style="color:${t.textColor};">${t.header}</h2>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="kg-header-card-subheading-wrapper" align="${t.alignment}">
|
||
<p class="kg-header-card-subheading" style="color:${t.textColor};">${t.subheader}</p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
${t.buttonEnabled&&t.buttonUrl&&t.buttonUrl.trim()!==""?`
|
||
<td class="kg-header-button-wrapper">
|
||
<table class="btn" border="0" cellspacing="0" cellpadding="0" align="${t.alignment}">
|
||
<tr>
|
||
<td align="center" style="${r} ${i}">
|
||
<a href="${t.buttonUrl}" style="color: ${o};">${t.buttonText}</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
`:""}
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
`:`
|
||
<div class="kg-header-card kg-v2" style="color:${t.textColor}; ${s} ${a} ${n}">
|
||
${t.layout==="split"&&t.backgroundImageSrc?`
|
||
<div class="kg-header-card-image" background="${t.backgroundImageSrc}" style="${l}"></div>
|
||
`:""}
|
||
<div class="kg-header-card-content" style="${t.layout==="split"&&t.backgroundSize==="contain"?"padding-top: 0;":""}">
|
||
<h2 class="kg-header-card-heading" style="color:${t.textColor};">${t.header}</h2>
|
||
<p class="kg-header-card-subheading" style="color:${t.textColor};">${t.subheader}</p>
|
||
${t.buttonEnabled&&t.buttonUrl&&t.buttonUrl.trim()!==""?`
|
||
<a class="kg-header-card-button" href="${t.buttonUrl}" style="color: ${t.buttonTextColor}; ${r} ${i}">${t.buttonText}</a>
|
||
`:""}
|
||
</div>
|
||
</div>
|
||
`}function Ebe(t,e={}){var s;jn(e);const n=e.createDocument(),i={alignment:t.__alignment,buttonText:t.__buttonText,buttonEnabled:t.__buttonEnabled,buttonUrl:t.__buttonUrl,header:t.__header,subheader:t.__subheader,backgroundImageSrc:t.__backgroundImageSrc,backgroundImageWidth:t.__backgroundImageWidth,backgroundImageHeight:t.__backgroundImageHeight,backgroundSize:t.__backgroundSize,backgroundColor:t.__backgroundColor,buttonColor:t.__buttonColor,layout:t.__layout,textColor:t.__textColor,buttonTextColor:t.__buttonTextColor,swapped:t.__swapped,accentColor:t.__accentColor};if(e.target==="email"){const l=e.createDocument().createElement("div");return l.innerHTML=(s=Cbe(i,e))==null?void 0:s.trim(),{element:l.firstElementChild}}const r=Sbe(i,e),o=n.createElement("div");if(o.innerHTML=r==null?void 0:r.trim(),i.header===""){const a=o.querySelector(".kg-header-card-heading");a&&a.remove()}if(i.subheader===""){const a=o.querySelector(".kg-header-card-subheading");a&&a.remove()}return{element:o.firstElementChild}}function Tbe(t){let e=["kg-card kg-header-card kg-v2"];return t.layout&&t.layout!=="split"&&e.push(`kg-width-${t.layout}`),t.layout==="split"&&e.push("kg-layout-split kg-width-full"),t.swapped&&t.layout==="split"&&e.push("kg-swapped"),t.layout&&t.layout==="full"&&e.push("kg-content-wide"),t.layout==="split"&&t.backgroundSize==="contain"&&e.push("kg-content-wide"),e}let Gg=class extends Rn({nodeType:"header",properties:[{name:"size",default:"small"},{name:"style",default:"dark"},{name:"buttonEnabled",default:!1},{name:"buttonUrl",default:"",urlType:"url"},{name:"buttonText",default:""},{name:"header",default:"",urlType:"html",wordCount:!0},{name:"subheader",default:"",urlType:"html",wordCount:!0},{name:"backgroundImageSrc",default:"",urlType:"url"},{name:"version",default:1},{name:"accentColor",default:"#FF1A75"},{name:"alignment",default:"center"},{name:"backgroundColor",default:"#000000"},{name:"backgroundImageWidth",default:null},{name:"backgroundImageHeight",default:null},{name:"backgroundSize",default:"cover"},{name:"textColor",default:"#FFFFFF"},{name:"buttonColor",default:"#ffffff"},{name:"buttonTextColor",default:"#000000"},{name:"layout",default:"full"},{name:"swapped",default:!1}],defaultRenderFn:{1:_be,2:Ebe}}){static importDOM(){return Obe(this)}};const $be=t=>new Gg(t);function Mbe(t){return t instanceof Gg}function Nbe(t){return{"#comment":e=>e.nodeType===8&&e.nodeValue.trim()==="members-only"?{conversion(){return{node:new t}},priority:0}:null}}function Abe(t,e={}){jn(e);const i=e.createDocument().createElement("div");return i.innerHTML="<!--members-only-->",{element:i,type:"inner"}}let Kg=class extends Rn({nodeType:"paywall",defaultRenderFn:Abe}){static importDOM(){return Nbe(this)}};const Pbe=t=>new Kg(t);function Dbe(t){return t instanceof Kg}function Ibe(t){return{div:e=>{var i;const n=(i=e.classList)==null?void 0:i.contains("kg-product-card");return e.tagName==="DIV"&&n?{conversion(r){const o=Ms(r,{selector:".kg-product-card-title"}),s=Ms(r,{selector:".kg-product-card-description"}),a={productButtonEnabled:!1,productRatingEnabled:!1,productTitle:o,productDescription:s},l=r.querySelector(".kg-product-card-image");l&&l.getAttribute("src")&&(a.productImageSrc=l.getAttribute("src"),l.getAttribute("width")&&(a.productImageWidth=l.getAttribute("width")),l.getAttribute("height")&&(a.productImageHeight=l.getAttribute("height")));const u=[...r.querySelectorAll(".kg-product-card-rating-active")].length;u&&(a.productRatingEnabled=!0,a.productStarRating=u);const f=r.querySelector("a");if(f){const h=f.getAttribute("href"),g=Lbe(f);h&&g&&(a.productButtonEnabled=!0,a.productButton=g,a.productUrl=h)}return!o&&!s&&!l&&!f?null:{node:new t(a)}},priority:1}:null}}}function Lbe(t){let e=t.textContent;return e&&(e=e.replace(/\n/g," ").replace(/\s+/g," ").trim()),e}function Rbe(t,e={}){var l,u,f;jn(e);const n=e.createDocument();if(t.isEmpty())return wr(n);let i="5px";((l=e.design)==null?void 0:l.buttonCorners)==="rounded"?i="6px":((u=e.design)==null?void 0:u.buttonCorners)==="square"?i="0px":((f=e.design)==null?void 0:f.buttonCorners)==="pill"&&(i="9999px");const r={...t.getDataset(),starIcon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.729,1.2l3.346,6.629,6.44.638a.805.805,0,0,1,.5,1.374l-5.3,5.253,1.965,7.138a.813.813,0,0,1-1.151.935L12,19.934,5.48,23.163a.813.813,0,0,1-1.151-.935L6.294,15.09.99,9.837a.805.805,0,0,1,.5-1.374l6.44-.638L11.271,1.2A.819.819,0,0,1,12.729,1.2Z"/></svg>',buttonBorderRadius:i},o="kg-product-card-rating-active";for(let d=1;d<=5;d++)r["star"+d]="",t.productStarRating>=d&&(r["star"+d]=o);const s=e.target==="email"?Fbe({data:r,feature:e.feature}):jbe({data:r,feature:e.feature}),a=n.createElement("div");return a.innerHTML=s.trim(),{element:a.firstElementChild}}function jbe({data:t}){return`
|
||
<div class="kg-card kg-product-card">
|
||
<div class="kg-product-card-container">
|
||
${t.productImageSrc?`<img src="${t.productImageSrc}" ${t.productImageWidth?`width="${t.productImageWidth}"`:""} ${t.productImageHeight?`height="${t.productImageHeight}"`:""} class="kg-product-card-image" loading="lazy" />`:""}
|
||
<div class="kg-product-card-title-container">
|
||
<h4 class="kg-product-card-title">${t.productTitle}</h4>
|
||
</div>
|
||
${t.productRatingEnabled?`
|
||
<div class="kg-product-card-rating">
|
||
<span class="${t.star1} kg-product-card-rating-star">${t.starIcon}</span>
|
||
<span class="${t.star2} kg-product-card-rating-star">${t.starIcon}</span>
|
||
<span class="${t.star3} kg-product-card-rating-star">${t.starIcon}</span>
|
||
<span class="${t.star4} kg-product-card-rating-star">${t.starIcon}</span>
|
||
<span class="${t.star5} kg-product-card-rating-star">${t.starIcon}</span>
|
||
</div>
|
||
`:""}
|
||
|
||
<div class="kg-product-card-description">${t.productDescription}</div>
|
||
${t.productButtonEnabled?`
|
||
<a href="${t.productUrl}" class="kg-product-card-button kg-product-card-btn-accent" target="_blank" rel="noopener noreferrer"><span>${t.productButton}</span></a>
|
||
`:""}
|
||
</div>
|
||
</div>
|
||
`}function Fbe({data:t,feature:e}){let n;return t.productImageWidth&&t.productImageHeight&&(n={width:t.productImageWidth,height:t.productImageHeight},t.productImageWidth>=560&&(n=Rd(n,{width:560}))),e!=null&&e.emailCustomization||e!=null&&e.emailCustomizationAlpha?`
|
||
<table class="kg-product-card" cellspacing="0" cellpadding="0" border="0">
|
||
<tr>
|
||
<td class="kg-product-card-container">
|
||
<table cellspacing="0" cellpadding="0" border="0">
|
||
${t.productImageSrc?`
|
||
<tr>
|
||
<td class="kg-product-image" align="center">
|
||
<img src="${t.productImageSrc}" ${n?`width="${n.width}"`:""} ${n?`height="${n.height}"`:""} border="0"/>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
<tr>
|
||
<td valign="top">
|
||
<h4 class="kg-product-title">${t.productTitle}</h4>
|
||
</td>
|
||
</tr>
|
||
${t.productRatingEnabled?`
|
||
<tr class="kg-product-rating">
|
||
<td valign="top">
|
||
<img src="${`https://static.ghost.org/v4.0.0/images/star-rating-${t.productStarRating}.png`}" border="0" />
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
<tr>
|
||
<td class="kg-product-description-wrapper">${t.productDescription}</td>
|
||
</tr>
|
||
${t.productButtonEnabled?`
|
||
<tr>
|
||
<td class="kg-product-button-wrapper">
|
||
<table class="btn btn-accent" border="0" cellspacing="0" cellpadding="0">
|
||
<tr>
|
||
<td align="center" width="100%">
|
||
<a href="${t.productUrl}">${t.productButton}</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
`:`
|
||
<table cellspacing="0" cellpadding="0" border="0" style="width:100%; padding:20px; border:1px solid #E9E9E9; border-radius: 5px; margin: 0 0 1.5em; width: 100%;">
|
||
${t.productImageSrc?`
|
||
<tr>
|
||
<td align="center" style="padding-top:0; padding-bottom:0; margin-bottom:0; padding-bottom:0;">
|
||
<img src="${t.productImageSrc}" ${n?`width="${n.width}"`:""} ${n?`height="${n.height}"`:""} style="display: block; width: 100%; height: auto; max-width: 100%; border: none; padding-bottom: 16px;" border="0"/>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
<tr>
|
||
<td valign="top">
|
||
<h4 style="font-size: 22px !important; margin-top: 0 !important; margin-bottom: 0 !important; font-weight: 700;">${t.productTitle}</h4>
|
||
</td>
|
||
</tr>
|
||
${t.productRatingEnabled?`
|
||
<tr style="padding-top:0; padding-bottom:0; margin-bottom:0; padding-bottom:0;">
|
||
<td valign="top">
|
||
<img src="${`https://static.ghost.org/v4.0.0/images/star-rating-${t.productStarRating}.png`}" style="border: none; width: 96px;" border="0" />
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
<tr>
|
||
<td style="padding-top:0; padding-bottom:0; margin-bottom:0; padding-bottom:0;">
|
||
<div style="padding-top: 8px; opacity: 0.7; font-size: 17px; line-height: 1.4; margin-bottom: -24px;">${t.productDescription}</div>
|
||
</td>
|
||
</tr>
|
||
${t.productButtonEnabled?`
|
||
<tr>
|
||
<td style="padding-top:0; padding-bottom:0; margin-bottom:0; padding-bottom:0;">
|
||
<div class="btn btn-accent" style="box-sizing: border-box;display: table;width: 100%;padding-top: 16px;">
|
||
<a href="${t.productUrl}" style="overflow-wrap: anywhere;border: solid 1px;border-radius: ${t.buttonBorderRadius};box-sizing: border-box;cursor: pointer;display: inline-block;font-size: 14px;font-weight: bold;margin: 0;padding: 0;text-decoration: none;color: #FFFFFF; width: 100%; text-align: center;"><span style="display: block;padding: 12px 25px;">${t.productButton}</span></a>
|
||
</div>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
</table>
|
||
`}let Jg=class extends Rn({nodeType:"product",properties:[{name:"productImageSrc",default:"",urlType:"url"},{name:"productImageWidth",default:null},{name:"productImageHeight",default:null},{name:"productTitle",default:"",urlType:"html",wordCount:!0},{name:"productDescription",default:"",urlType:"html",wordCount:!0},{name:"productRatingEnabled",default:!1},{name:"productStarRating",default:5},{name:"productButtonEnabled",default:!1},{name:"productButton",default:""},{name:"productUrl",default:""}],defaultRenderFn:Rbe}){exportJSON(){const{productImageSrc:e,productImageWidth:n,productImageHeight:i,productTitle:r,productDescription:o,productRatingEnabled:s,productStarRating:a,productButtonEnabled:l,productButton:u,productUrl:f}=this;return{type:"product",version:1,productImageSrc:e&&e.startsWith("data:")?"<base64String>":e,productImageWidth:n,productImageHeight:i,productTitle:r,productDescription:o,productRatingEnabled:s,productStarRating:a,productButtonEnabled:l,productButton:u,productUrl:f}}static importDOM(){return Ibe(this)}isEmpty(){const e=this.__productButtonEnabled&&this.__productUrl&&this.__productButton;return!this.__productTitle&&!this.__productDescription&&!e&&!this.__productImageSrc&&!this.__productRatingEnabled}};const zbe=t=>new Jg(t);function Bbe(t){return t instanceof Jg}function Wbe(t){return{figure:e=>{if(e.nodeType===1&&e.tagName==="FIGURE"){const n=e.querySelector("iframe");if(n)return{conversion(r){const o=tD(n);return o?(o.caption=Ms(r),{node:new t(o)}):null},priority:1};if(e.querySelector("blockquote"))return{conversion(r){const o=r.querySelector("a");if(!o)return null;let s=o.getAttribute("href");if(!s||!s.match(/^https?:\/\//i))return null;let a={url:s};a.caption=Ms(r);let l=r.querySelector("figcaption");return l==null||l.remove(),a.html=r.innerHTML,{node:new t(a)}},priority:1}}return null},iframe:e=>e.nodeType===1&&e.tagName==="IFRAME"?{conversion(n){const i=tD(n);return i?{node:new t(i)}:null},priority:1}:null}}function tD(t){if(!t.src||!t.src.match(/^(https?:)?\/\//i))return;t.src.match(/^\/\//)&&(t.src=`https:${t.src}`);let e={url:t.src};return e.html=t.outerHTML,e}function Hbe(t,e,n){const i=t.metadata,r=e.createElement("figure");r.setAttribute("class","kg-card kg-embed-card");let o=t.html;const s=i&&i.tweet_data,a=n.target==="email";if(s&&a){const u=s.id,f=new Intl.NumberFormat("en-US",{style:"decimal",notation:"compact",unitDisplay:"narrow",maximumFractionDigits:1}),d=f.format(s.public_metrics.retweet_count),h=f.format(s.public_metrics.like_count),g=s.users&&s.users.find(W=>W.id===s.author_id),m=dt.fromISO(s.created_at).toLocaleString(dt.TIME_SIMPLE),y=dt.fromISO(s.created_at).toLocaleString(dt.DATE_MED),x=s.entities&&s.entities.mentions||[],_=s.entities&&s.entities.urls||[],S=s.entities&&s.entities.hashtags||[],C=x.concat(_).concat(S).sort((W,B)=>W.start-B.start);let E=s.text,N=null;const M=s.attachments&&s.attachments&&s.attachments.media_keys;M&&(N=s.includes.media[0].preview_image_url||s.includes.media[0].url);const I=s.attachments&&s.attachments&&s.attachments.poll_ids;if(x){let W=0,B=[],Z=ihe(E);for(const R of C){let Q="text",V=Z.slice(R.start,R.end+1).join("").replace(/\n/g,"<br>");R.url&&(!R.display_url||R.display_url.startsWith("pic.twitter.com")?Q="img_url":(Q="url",V=V.replace(R.url,R.display_url))),R.username&&(Q="mention"),R.tag&&(Q="hashtag"),B.push({type:"text",data:Z.slice(W,R.start).join("").replace(/\n/g,"<br>")}),B.push({type:Q,data:V}),W=R.end+1}B.push({type:"text",data:Z.slice(W,Z.length).join("").replace(/\n/g,"<br>")}),E=B.reduce((R,Q)=>Q.type==="text"?R+Q.data:Q.type==="mention"?R+`<span style="color: #1DA1F2;">${Q.data}</span>`:Q.type==="hashtag"?R+`<span style="color: #1DA1F2;">${Q.data}</span>`:Q.type==="url"?R+`<span style="color: #1DA1F2; word-break: break-all;">${Q.data}</span>`:R,"")}o=`
|
||
<table cellspacing="0" cellpadding="0" border="0" class="kg-twitter-card">
|
||
<tr>
|
||
<td>
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||
${g?`
|
||
<tr>
|
||
${g.profile_image_url?`<td width="48" style="width: 48px;">
|
||
<a href="https://twitter.com/twitter/status/${u}" class="kg-twitter-link" style="padding-left: 16px; padding-top: 16px;"><img src="${g.profile_image_url}" style="max-width: 512px; border: none; width: 48px; height: 48px; border-radius: 999px;" border="0"></a>
|
||
</td>`:""}
|
||
${g.name?`
|
||
<td style="line-height: 1.3em; width: 100%;">
|
||
<a href="https://twitter.com/twitter/status/${u}" class="kg-twitter-link" style="font-size: 15px !important; font-weight: 600; width: 100%; padding-top: 20px; padding-bottom: 18px;">${g.name} <br> <span style="color: #ABB4BE; font-size: 14px; font-weight: 500;">@${g.username}</span></a>
|
||
</td>`:""}
|
||
<td align="right" width="24" style="width: 24px;">
|
||
<a href="https://twitter.com/twitter/status/${u}" class="kg-twitter-link" style="padding-right: 16px; padding-top: 20px; width: 24px; height: 38px;"><img src="https://static.ghost.org/v4.0.0/images/twitter-logo-small.png" width="24" border="0"></a>
|
||
</td>
|
||
</tr>
|
||
`:""}
|
||
<tr>
|
||
<td colspan="3">
|
||
<a href="https://twitter.com/twitter/status/${u}" class="kg-twitter-link" style="font-size: 15px; line-height: 1.4em; padding-top: 8px; padding-left: 16px; padding-right: 16px; padding-bottom: 16px;">${E}
|
||
${I?'<br><span style="color: #1DA1F2;">View poll →</span>':""}
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
${M?`<tr>
|
||
<td colspan="3" align="center" style="width: 100%;">
|
||
<a href="https://twitter.com/twitter/status/${u}" style="display: block; padding-top: 0; padding-left: 16px; padding-right: 16px; padding-bottom: 0;"><img src="${N}" style="width: 100%; border: 1px solid #E9E9E9; max-width: 528px; border-radius: 10px;" border="0"></a>
|
||
</td>
|
||
</tr>`:""}
|
||
<tr>
|
||
<td colspan="3" style="width: 100%;">
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||
<tr>
|
||
<td>
|
||
<a href="https://twitter.com/twitter/status/${u}" class="kg-twitter-link" style="padding-top: 4px; padding-right: 16px; padding-bottom: 12px; padding-left: 16px;"><span style="color: #838383;">${m} • ${y}</span></a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td colspan="3" style="width: 100%;">
|
||
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="border-top: 1px solid #E9E9E9;">
|
||
<tr>
|
||
<td>
|
||
<a href="https://twitter.com/twitter/status/${u}" class="kg-twitter-link" style="padding-top: 12px; padding-right: 16px; padding-bottom: 12px; padding-left: 16px;">
|
||
<span style="font-weight: 600;">${h}</span> <span style="color: #838383;">likes •</span>
|
||
<span style="font-weight: 600;">${d}</span> <span style="color: #838383;">retweets</span>
|
||
</a>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
`}r.innerHTML=o.trim();const l=t.caption;if(l){const u=e.createElement("figcaption");u.innerHTML=l,r.appendChild(u),r.setAttribute("class",`${r.getAttribute("class")} kg-card-hascaption`)}return{element:r}}function Qbe(t,e={}){jn(e);const n=e.createDocument();return t.embedType==="twitter"?Hbe(t,n,e):Ube(t,n,e)}function Ube(t,e,n){if(t.isEmpty())return wr(e);const i=n.target==="email",r=t.metadata,o=t.url,s=t.embedType==="video"&&r&&r.thumbnail_url,a=e.createElement("figure");if(a.setAttribute("class","kg-card kg-embed-card"),i&&s){const f=r.thumbnail_width/r.thumbnail_height,d=Math.round(600/4),h=Math.round(600/f),g=`
|
||
<!--[if !mso !vml]-->
|
||
<a class="kg-video-preview" href="${o}" aria-label="Play video" style="mso-hide: all">
|
||
<table cellpadding="0" cellspacing="0" border="0" width="100%" background="${r.thumbnail_url}" role="presentation" style="background: url('${r.thumbnail_url}') left top / cover; mso-hide: all">
|
||
<tr style="mso-hide: all">
|
||
<td width="25%" style="visibility: hidden; mso-hide: all">
|
||
<img src="https://img.spacergif.org/v1/${d}x${h}/0a/spacer.png" alt="" width="100%" border="0" style="display:block; height: auto; opacity: 0; visibility: hidden; mso-hide: all;">
|
||
</td>
|
||
<td width="50%" align="center" valign="middle" style="vertical-align: middle; mso-hide: all;">
|
||
<div class="kg-video-play-button" style="mso-hide: all"><div style="mso-hide: all"></div></div>
|
||
</td>
|
||
<td width="25%" style="mso-hide: all"> </td>
|
||
</tr>
|
||
</table>
|
||
</a>
|
||
<!--[endif]-->
|
||
|
||
<!--[if vml]>
|
||
<v:group xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" coordsize="600,${h}" coordorigin="0,0" href="${o}" style="width:600px;height:${h}px;">
|
||
<v:rect fill="t" stroked="f" style="position:absolute;width:600;height:${h};"><v:fill src="${r.thumbnail_url}" type="frame"/></v:rect>
|
||
<v:oval fill="t" strokecolor="white" strokeweight="4px" style="position:absolute;left:${Math.round(600/2-39)};top:${Math.round(h/2-39)};width:78;height:78"><v:fill color="black" opacity="30%" /></v:oval>
|
||
<v:shape coordsize="24,32" path="m,l,32,24,16,xe" fillcolor="white" stroked="f" style="position:absolute;left:${Math.round(600/2-11)};top:${Math.round(h/2-17)};width:30;height:34;" />
|
||
</v:group>
|
||
<![endif]-->
|
||
`;a.innerHTML=g.trim()}else a.innerHTML=t.html;const l=t.caption;if(l){const u=e.createElement("figcaption");u.innerHTML=l,a.appendChild(u),a.setAttribute("class",`${a.getAttribute("class")} kg-card-hascaption`)}return{element:a}}let em=class extends Rn({nodeType:"embed",properties:[{name:"url",default:"",urlType:"url"},{name:"embedType",default:""},{name:"html",default:""},{name:"metadata",default:{}},{name:"caption",default:"",wordCount:!0}],defaultRenderFn:Qbe}){static importDOM(){return Wbe(this)}isEmpty(){return!this.__url&&!this.__html}};const Zbe=t=>new em(t);function qbe(t){return t instanceof em}function lS(t){return t.replace(/\n/g," ").replace(/\s+/g," ").trim()}function uS(t){return t.replace(/\{(\w*?)(?:,? *"(.*?)")?\}/g,"%%$&%%")}function cS(t,e){const n=e.createElement("div");return n.innerHTML=t,n.querySelectorAll("code").forEach(o=>{if(o.textContent.match(/((.*?){.*?}(.*?))/gi)){const a=o.innerHTML;o.parentNode.replaceChild(e.createRange().createContextualFragment(a),o)}}),n.innerHTML}function Ybe(t,e={}){jn(e);const n=e.createDocument(),i=t.html;if(!i||e.target!=="email")return wr(n);const r=uS(cS(lS(i),n)),o=n.createElement("div");return o.innerHTML=r,{element:o,type:"inner"}}let tm=class extends Rn({nodeType:"email",properties:[{name:"html",default:"",urlType:"html"}],defaultRenderFn:Ybe}){};const Vbe=t=>new tm(t);function Xbe(t){return t instanceof tm}function fS(t,e){const n=Xb(t);return n.fileName=t.src.match(/[^/]*$/)[0],n.row=Math.floor(e/3),n}function Gbe(t){return{figure:e=>{var n;return(n=e.classList)!=null&&n.contains("kg-gallery-card")?{conversion(i){const r={},o=Array.from(i.querySelectorAll("img"));return r.images=o.map(fS),r.caption=Ms(i),{node:new t(r)}},priority:1}:null},div:e=>{function n(r){var o;return r.tagName==="DIV"&&((o=r.dataset)==null?void 0:o.paragraphCount)&&r.querySelectorAll("img").length>0}if(n(e))return{conversion(r){const o={caption:Ms(r)};let s=Array.from(r.querySelectorAll("img")),a=r.nextElementSibling;for(;a&&n(a);){let u=a;s=s.concat(Array.from(u.querySelectorAll("img")));const f=Ms(u);f&&(o.caption=`${o.caption} / ${f}`),a=u.nextElementSibling,u.remove()}return o.images=s.map(fS),{node:new t(o)}},priority:1};function i(r){return r.tagName==="DIV"&&r.className.match(/sqs-gallery-container/)&&!r.className.match(/summary-/)}return i(e)?{conversion(r){const o={};let s=Array.from(r.querySelectorAll("img.thumb-image"));return s=s.map(l=>{if(!l.getAttribute("src"))if(l.previousElementSibling.tagName==="NOSCRIPT"&&l.previousElementSibling.getElementsByTagName("img").length){const u=l.previousElementSibling;l.setAttribute("src",l.getAttribute("data-src")),u.remove()}else return;return l}).filter(l=>l!==void 0),o.images=s.map(fS),o.caption=Ms(r,{selector:".meta-title"}),{node:new t(o)}},priority:1}:null}}}const Kbe=3;function Jbe(t){return t.fileName&&t.src&&t.width&&t.height}function eke(t){const e=[],n=t.length;return t.forEach((i,r)=>{let o=i.row;n>1&&n%Kbe===1&&r===n-2&&(o=o+1),e[o]||(e[o]=[]),e[o].push(i)}),e}function tke(t,e={}){jn(e);const n=e.createDocument(),i=t.images.filter(Jbe);if(!i.length)return wr(n);const r=n.createElement("figure");r.setAttribute("class","kg-card kg-gallery-card kg-width-wide");const o=n.createElement("div");o.setAttribute("class","kg-gallery-container"),r.appendChild(o);const s=eke(i);if(s.forEach(a=>{const l=n.createElement("div");l.setAttribute("class","kg-gallery-row"),a.forEach(u=>{const f=n.createElement("div");f.setAttribute("class","kg-gallery-image");const d=n.createElement("img");d.setAttribute("src",u.src),d.setAttribute("width",u.width),d.setAttribute("height",u.height),d.setAttribute("loading","lazy"),d.setAttribute("alt",u.alt||""),u.title&&d.setAttribute("title",u.title);const{canTransformImage:h}=e,{defaultMaxWidth:g}=e.imageOptimization||{};if(g&&u.width>g&&Lc(u.src,e.siteUrl)&&h&&h(u.src)){const{width:m,height:y}=Rd(u,{width:g});d.setAttribute("width",m),d.setAttribute("height",y)}if(e.target!=="email"&&(XP(d,u,e),d.getAttribute("srcset")&&u.width>=720&&(s.length===1&&a.length===1&&u.width>=1200?d.setAttribute("sizes","(min-width: 1200px) 1200px"):d.setAttribute("sizes","(min-width: 720px) 720px"))),e.target==="email"){if(u.width>600){const m=Rd(u,{width:600});d.setAttribute("width",m.width),d.setAttribute("height",m.height)}if(Lc(u.src,e.siteUrl)&&e.canTransformImage&&e.canTransformImage(u.src)){const y=aS(u,e.imageOptimization.contentImageSizes).find(x=>x>=1200);if(!(!y||y===u.width)){const[,x,_]=u.src.match(/(.*\/content\/images)\/(.*)/);d.setAttribute("src",`${x}/size/w${y}/${_}`)}}if(YP(u.src)){const m=new URL(u.src);m.searchParams.set("w",1200),d.setAttribute("src",m.href)}}if(u.href){const m=n.createElement("a");m.setAttribute("href",u.href),m.appendChild(d),f.appendChild(m)}else f.appendChild(d);l.appendChild(f)}),o.appendChild(l)}),t.caption){let a=n.createElement("figcaption");a.innerHTML=t.caption,r.appendChild(a),r.setAttribute("class",`${r.getAttribute("class")} kg-card-hascaption`)}return{element:r}}let nm=class extends Rn({nodeType:"gallery",properties:[{name:"images",default:[]},{name:"caption",default:"",wordCount:!0}],defaultRenderFn:tke}){static get urlTransformMap(){return{caption:"html",images:{src:"url",caption:"html"}}}static importDOM(){return Gbe(this)}hasEditMode(){return!1}};const nke=t=>new nm(t);function ike(t){return t instanceof nm}function rke(t,e={}){jn(e);const n=e.createDocument(),{html:i,buttonText:r,buttonUrl:o,showButton:s,alignment:a,segment:l,showDividers:u}=t,f=s&&!!r&&!!o;if(!i&&!f||e.target!=="email")return wr(n);const d=n.createElement("div");l&&d.setAttribute("data-gh-segment",l),a==="center"&&d.setAttribute("class","align-center"),u&&d.appendChild(n.createElement("hr"));const h=uS(cS(lS(i),n));if(d.innerHTML=d.innerHTML+h,f){const g=`
|
||
<div class="btn btn-accent">
|
||
<table border="0" cellspacing="0" cellpadding="0" align="${Si(a)}">
|
||
<tbody>
|
||
<tr>
|
||
<td align="center">
|
||
<a href="${Si(o)}">${Si(r)}</a>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p></p>
|
||
`,m=uS(cS(lS(g),n));d.innerHTML=d.innerHTML+m}return u&&d.appendChild(n.createElement("hr")),{element:d}}let im=class extends Rn({nodeType:"email-cta",properties:[{name:"alignment",default:"left"},{name:"buttonText",default:""},{name:"buttonUrl",default:"",urlType:"url"},{name:"html",default:"",urlType:"html"},{name:"segment",default:"status:free"},{name:"showButton",default:!1},{name:"showDividers",default:!0}],defaultRenderFn:rke}){};const oke=t=>new im(t);function ske(t){return t instanceof im}function ake(t){return t.classList.contains("kg-layout-split")?"split":t.classList.contains("kg-layout-full")?"full":t.classList.contains("kg-layout-wide")?"wide":"regular"}function lke(t){return{div:e=>{var i;const n=((i=e.dataset)==null?void 0:i.lexicalSignupForm)==="";return e.tagName==="DIV"&&n?{conversion(r){var W,B,Z,R,Q,V,H,j,q,Y,K,te,oe,ce,U;const o=ake(r),s=((W=r.querySelector("h2"))==null?void 0:W.textContent)||"",a=((B=r.querySelector("h3"))==null?void 0:B.textContent)||"",l=((Z=r.querySelector("p"))==null?void 0:Z.textContent)||"",u=(R=r.querySelector(".kg-signup-card-image"))==null?void 0:R.getAttribute("src"),f=r.style.backgroundColor||"",d=((Q=r.querySelector(".kg-signup-card-button"))==null?void 0:Q.style.backgroundColor)||"",h=((H=(V=r.querySelector(".kg-signup-card-button-default"))==null?void 0:V.textContent)==null?void 0:H.trim())||"Subscribe",g=((j=r.querySelector(".kg-signup-card-button"))==null?void 0:j.style.color)||"",m=((q=r.querySelector(".kg-signup-card-success"))==null?void 0:q.style.color)||"",y=(Y=r.querySelector(".kg-signup-card-text"))!=null&&Y.classList.contains("kg-align-center")?"center":"left",x=((te=(K=r.querySelector(".kg-signup-card-success"))==null?void 0:K.textContent)==null?void 0:te.trim())||"",_=[...r.querySelectorAll("input[data-members-label]")].map(F=>F.value),S=((oe=r.classList)==null?void 0:oe.contains("kg-style-accent"))??!1,C=((U=(ce=r.querySelector(".kg-signup-card-button"))==null?void 0:ce.classList)==null?void 0:U.contains("kg-style-accent"))??!1,E=r.classList.contains("kg-swapped"),N=r.classList.contains("kg-content-wide")?"contain":"cover",M={layout:o,buttonText:h,header:s,subheader:a,disclaimer:l,backgroundImageSrc:u,backgroundSize:N,backgroundColor:S?"accent":Rc(f)||"#ffffff",buttonColor:C?"accent":Rc(d)||"#ffffff",textColor:Rc(m)||"#ffffff",buttonTextColor:Rc(g)||"#000000",alignment:y,successMessage:x,labels:_,swapped:E};return{node:new t(M)}},priority:1}:null}}}function uke(t){const e=dke(t).join(" "),n=hke(t),i=t.buttonColor==="accent"?"kg-style-accent":"",r=t.buttonColor!=="accent"?`background-color: ${t.buttonColor};`:"",o=t.alignment==="center"?"kg-align-center":"",s=t.backgroundColor!=="accent"&&(!t.backgroundImageSrc||t.layout==="split")?`background-color: ${t.backgroundColor}`:"",a=t.backgroundImageSrc?`
|
||
<picture><img class="kg-signup-card-image" src="${t.backgroundImageSrc}" alt="" /></picture>
|
||
`:"",l=`
|
||
<form class="kg-signup-card-form" data-members-form="signup">
|
||
${t.labels.map(u=>`<input data-members-label type="hidden" value="${u}" />`).join(`
|
||
`)}
|
||
<div class="kg-signup-card-fields">
|
||
<input class="kg-signup-card-input" id="email" data-members-email="" type="email" required="true" placeholder="Your email" />
|
||
<button class="kg-signup-card-button ${i}" style="${r}color: ${t.buttonTextColor};" type="submit">
|
||
<span class="kg-signup-card-button-default">${t.buttonText||"Subscribe"}</span>
|
||
<span class="kg-signup-card-button-loading">${cke()}</span>
|
||
</button>
|
||
</div>
|
||
<div class="kg-signup-card-success" ${t.textColor?`style="color: ${t.textColor};"`:""}>
|
||
${t.successMessage||"Thanks! Now check your email to confirm."}
|
||
</div>
|
||
<div class="kg-signup-card-error" ${t.textColor?`style="color: ${t.textColor};"`:""} data-members-error></div>
|
||
</form>
|
||
`;return`
|
||
<div class="${e} ${n}" data-lexical-signup-form style="${s}; display: none;">
|
||
${t.layout!=="split"?a:""}
|
||
<div class="kg-signup-card-content">
|
||
${t.layout==="split"?a:""}
|
||
<div class="kg-signup-card-text ${o}">
|
||
<h2 class="kg-signup-card-heading" ${t.textColor?`style="color: ${t.textColor};"`:""}>${t.header}</h2>
|
||
<p class="kg-signup-card-subheading" ${t.textColor?`style="color: ${t.textColor};"`:""}>${t.subheader}</p>
|
||
${l}
|
||
<p class="kg-signup-card-disclaimer" ${t.textColor?`style="color: ${t.textColor};"`:""}>${t.disclaimer}</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
`}function cke(){return`<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24">
|
||
<g stroke-linecap="round" stroke-width="2" fill="currentColor" stroke="none" stroke-linejoin="round" class="nc-icon-wrapper">
|
||
<g class="nc-loop-dots-4-24-icon-o">
|
||
<circle cx="4" cy="12" r="3"></circle>
|
||
<circle cx="12" cy="12" r="3"></circle>
|
||
<circle cx="20" cy="12" r="3"></circle>
|
||
</g>
|
||
<style data-cap="butt">
|
||
.nc-loop-dots-4-24-icon-o{--animation-duration:0.8s}
|
||
.nc-loop-dots-4-24-icon-o *{opacity:.4;transform:scale(.75);animation:nc-loop-dots-4-anim var(--animation-duration) infinite}
|
||
.nc-loop-dots-4-24-icon-o :nth-child(1){transform-origin:4px 12px;animation-delay:-.3s;animation-delay:calc(var(--animation-duration)/-2.666)}
|
||
.nc-loop-dots-4-24-icon-o :nth-child(2){transform-origin:12px 12px;animation-delay:-.15s;animation-delay:calc(var(--animation-duration)/-5.333)}
|
||
.nc-loop-dots-4-24-icon-o :nth-child(3){transform-origin:20px 12px}
|
||
@keyframes nc-loop-dots-4-anim{0%,100%{opacity:.4;transform:scale(.75)}50%{opacity:1;transform:scale(1)}}
|
||
</style>
|
||
</g>
|
||
</svg>`}function fke(t,e={}){jn(e);const n=e.createDocument(),i={alignment:t.__alignment,buttonText:t.__buttonText,header:t.__header,subheader:t.__subheader,disclaimer:t.__disclaimer,backgroundImageSrc:t.__backgroundImageSrc,backgroundSize:t.__backgroundSize,backgroundColor:t.__backgroundColor,buttonColor:t.__buttonColor,labels:t.__labels,layout:t.__layout,textColor:t.__textColor,buttonTextColor:t.__buttonTextColor,successMessage:t.__successMessage,swapped:t.__swapped};if(e.target==="email")return{element:n.createElement("div")};const r=uke(i),o=n.createElement("div");if(o.innerHTML=r==null?void 0:r.trim(),i.header===""){const s=o.querySelector(".kg-signup-card-heading");s&&s.remove()}if(i.subheader===""){const s=o.querySelector(".kg-signup-card-subheading");s&&s.remove()}if(i.disclaimer===""){const s=o.querySelector(".kg-signup-card-disclaimer");s&&s.remove()}return{element:o.firstElementChild}}function dke(t){let e=["kg-card kg-signup-card"];return t.layout&&t.layout!=="split"&&e.push(`kg-width-${t.layout}`),t.layout==="split"&&e.push("kg-layout-split kg-width-full"),t.swapped&&t.layout==="split"&&e.push("kg-swapped"),t.layout&&t.layout==="full"&&e.push("kg-content-wide"),t.layout==="split"&&t.backgroundSize==="contain"&&e.push("kg-content-wide"),e}const hke=t=>t.layout==="split"&&t.backgroundColor==="accent"||t.layout!=="split"&&!t.backgroundImageSrc&&t.backgroundColor==="accent"?"kg-style-accent":"";let rm=class extends Rn({nodeType:"signup",properties:[{name:"alignment",default:"left"},{name:"backgroundColor",default:"#F0F0F0"},{name:"backgroundImageSrc",default:""},{name:"backgroundSize",default:"cover"},{name:"textColor",default:""},{name:"buttonColor",default:"accent"},{name:"buttonTextColor",default:"#FFFFFF"},{name:"buttonText",default:"Subscribe"},{name:"disclaimer",default:"",wordCount:!0},{name:"header",default:"",wordCount:!0},{name:"labels",default:[]},{name:"layout",default:"wide"},{name:"subheader",default:"",wordCount:!0},{name:"successMessage",default:"Email sent! Check your inbox to complete your signup."},{name:"swapped",default:!1}],defaultRenderFn:fke}){constructor({alignment:e,backgroundColor:n,backgroundImageSrc:i,backgroundSize:r,textColor:o,buttonColor:s,buttonTextColor:a,buttonText:l,disclaimer:u,header:f,labels:d,layout:h,subheader:g,successMessage:m,swapped:y}={},x){super(x),this.__alignment=e||"left",this.__backgroundColor=n||"#F0F0F0",this.__backgroundImageSrc=i||"",this.__backgroundSize=r||"cover",this.__textColor=n==="transparent"&&(h==="split"||!i)?"":o||"#000000",this.__buttonColor=s||"accent",this.__buttonTextColor=a||"#FFFFFF",this.__buttonText=l||"Subscribe",this.__disclaimer=u||"",this.__header=f||"",this.__labels=d||[],this.__layout=h||"wide",this.__subheader=g||"",this.__successMessage=m||"Email sent! Check your inbox to complete your signup.",this.__swapped=y||!1}static importDOM(){return lke(this)}setLabels(e){if(!Array.isArray(e)||!e.every(i=>typeof i=="string"))throw new Error("Invalid argument: Expected an array of strings.");const n=this.getWritable();n.__labels=e}addLabel(e){this.getWritable().__labels.push(e)}removeLabel(e){const n=this.getWritable();n.__labels=n.__labels.filter(i=>i!==e)}};const pke=t=>new rm(t);function gke(t){return t instanceof rm}function mke(t,e){jn(e);const n=e.createDocument(),i=t.accentColor,r=t.backgroundColor,o="https://partner.transistor.fm/ghost/embed/{uuid}",s=new URLSearchParams;i&&s.set("color",i.replace(/^#/,"")),r&&s.set("background",r.replace(/^#/,""));const a=s.toString(),l=a?`${o}?${a}`:o,u=n.createElement("iframe");u.setAttribute("width","100%"),u.setAttribute("height","180"),u.setAttribute("frameborder","no"),u.setAttribute("scrolling","no"),u.setAttribute("seamless",""),u.setAttribute("src",l);const f=n.createElement("figure");return f.setAttribute("class","kg-card kg-transistor-card"),f.appendChild(u),Ig({element:f,type:"inner"},t.visibility,e)}const nD={web:{nonMember:!1,memberSegment:es},email:{memberSegment:es}};let om=class extends Rn({nodeType:"transistor",hasVisibility:!0,properties:[{name:"accentColor",default:""},{name:"backgroundColor",default:""}],defaultRenderFn:mke}){constructor(e={},n){super(e,n),e.visibility||(this.__visibility=vP(nD))}static getPropertyDefaults(){const e=super.getPropertyDefaults();return e.visibility=vP(nD),e}isEmpty(){return!1}hasEditMode(){return!0}};const vke=t=>new om(t),bke=t=>t instanceof om,Kb={replace:A.TextNode,with:t=>new Ns(t.__text)};class Ns extends A.TextNode{constructor(e,n){super(e,n)}static getType(){return"extended-text"}static clone(e){return new Ns(e.__text,e.__key)}static importDOM(){const e=A.TextNode.importDOM();return{...e,span:()=>({conversion:kke(e==null?void 0:e.span,yke),priority:1})}}static importJSON(e){return A.TextNode.importJSON(e)}exportJSON(){const e=super.exportJSON();return e.type="extended-text",e}isSimpleText(){return(this.__type==="text"||this.__type==="extended-text")&&this.__mode===0}isInline(){return!0}}function kke(t,e){return n=>{const i=t==null?void 0:t(n);if(!i)return null;const r=i.conversion(n);return r&&{...r,forChild:(o,s)=>{const l=((r==null?void 0:r.forChild)??(u=>u))(o,s);return A.$isTextNode(l)?e(l,n):l}}}}function yke(t,e){var l,u,f,d,h;const n=e,i=n.style.fontWeight==="bold"||((l=n.parentElement)==null?void 0:l.style.fontWeight)==="bold",r=n.style.fontStyle==="italic"||((u=n.parentElement)==null?void 0:u.style.fontStyle)==="italic",o=n.style.textDecoration==="underline"||((f=n.parentElement)==null?void 0:f.style.textDecoration)==="underline",s=n.classList.contains("Strikethrough")||((d=n.parentElement)==null?void 0:d.classList.contains("Strikethrough")),a=n.classList.contains("Highlight")||((h=n.parentElement)==null?void 0:h.classList.contains("Highlight"));return i&&!t.hasFormat("bold")&&(t=t.toggleFormat("bold")),r&&!t.hasFormat("italic")&&(t=t.toggleFormat("italic")),o&&!t.hasFormat("underline")&&(t=t.toggleFormat("underline")),s&&!t.hasFormat("strikethrough")&&(t=t.toggleFormat("strikethrough")),a&&!t.hasFormat("highlight")&&(t=t.toggleFormat("highlight")),t}const Jb={replace:Kt.HeadingNode,with:t=>new ru(t.__tag)};class ru extends Kt.HeadingNode{constructor(e,n){super(e,n)}static getType(){return"extended-heading"}static clone(e){return new ru(e.__tag,e.__key)}static importDOM(){const e=Kt.HeadingNode.importDOM();return{...e,p:wke(e==null?void 0:e.p)}}static importJSON(e){return Kt.HeadingNode.importJSON(e)}exportJSON(){const e=super.exportJSON();return e.type="extended-heading",e}}function wke(t){return e=>{const n=t==null?void 0:t(e);if(n)return n;const i=e,r=i.getAttribute("role")==="heading",o=i.getAttribute("aria-level");if(r&&o){const s=parseInt(o,10);if(s>0&&s<7)return{conversion:()=>({node:new ru(`h${s}`)}),priority:1}}return null}}const dS={replace:Kt.QuoteNode,with:()=>new jc};class jc extends Kt.QuoteNode{constructor(e){super(e)}static getType(){return"extended-quote"}static clone(e){return new jc(e.__key)}static importDOM(){return{...Kt.QuoteNode.importDOM(),blockquote:xke}}static importJSON(e){return Kt.QuoteNode.importJSON(e)}exportJSON(){const e=super.exportJSON();return e.type="extended-quote",e}extractWithChild(){return!0}}function xke(){return{conversion:()=>({node:new jc,after:e=>{const n=[];return e.forEach(i=>{A.$isParagraphNode(i)?(n.length>0&&(n.push(A.$createLineBreakNode()),n.push(A.$createLineBreakNode())),n.push(...i.getChildren())):n.push(i)}),n}}),priority:1}}class ts extends A.TextNode{static getType(){return"tk"}static clone(e){return new ts(e.__text,e.__key)}constructor(e,n){super(e,n)}createDOM(e){var r;const n=super.createDOM(e),i=((r=e.theme.tk)==null?void 0:r.split(" "))||[];return n.classList.add(...i),n.dataset.kgTk=!0,n}static importJSON(e){const n=hS(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),type:"tk"}}canInsertTextBefore(){return!1}isTextEntity(){return!0}}function hS(t){return A.$applyNodeReplacement(new ts(t))}function iD(t){return t instanceof ts}var _ke=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.54 10.46c2.2 2.2 2.2 5.61 0 7.81l-3.08 3.08c-2.2 2.2-5.61 2.2-7.81 0-2.2-2.2-2.2-5.61 0-7.81L5.4 10.9"/>
|
||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M10.46 13.54c-2.2-2.2-2.2-5.61 0-7.81l3.08-3.08c2.2-2.2 5.61-2.2 7.81 0 2.2 2.2 2.2 5.61 0 7.81L18.6 13.1"/>
|
||
</svg>`;class aa extends A.ElementNode{constructor(n,i){super(i);ye(this,"__linkFormat",null);this.__linkFormat=n}static getType(){return"at-link"}static clone(n){return new aa(n.__linkFormat,n.__key)}static importJSON({linkFormat:n}){return pS(n)}exportJSON(){return{...super.exportJSON(),type:"at-link",version:1,linkFormat:this.__linkFormat}}createDOM(n){const i=document.createElement("span"),r=(n.theme.atLink||"").split(" ").filter(Boolean),o=(n.theme.atLinkIcon||"").split(" ").filter(Boolean);i.classList.add(...r);const s=new DOMParser().parseFromString(_ke,"image/svg+xml").documentElement;return s.classList.add(...o),i.appendChild(s),i}updateDOM(){return!1}exportDOM(){return null}static importDOM(){return null}getTextContent(){return""}isInline(){return!0}canBeEmpty(){return!1}setLinkFormat(n){const i=this.getWritable();i.__linkFormat=n}getLinkFormat(){return this.getLatest().__linkFormat}}function pS(t){return A.$applyNodeReplacement(new aa(t))}function Ga(t){return t instanceof aa}class ou extends A.TextNode{constructor(n,i,r){super(n,r);ye(this,"__placeholder",null);ye(this,"defaultPlaceholder","Find a post, tag or author");this.__placeholder=i}static getType(){return"at-link-search"}static clone(n){return new ou(n.__text,n.__placeholder,n.__key)}static importJSON({text:n,placeholder:i}){return sm(n,i)}exportJSON(){return{...super.exportJSON(),type:"at-link-search",version:1,placeholder:this.__placeholder}}createDOM(n){const i=super.createDOM(n);return i.dataset.placeholder="",this.__text?i.dataset.placeholder=this.__placeholder||"":i.dataset.placeholder=this.__placeholder??this.defaultPlaceholder,i.classList.add(...n.theme.atLinkSearch.split(" ")),i}updateDOM(n,i){return this.__text&&(i.dataset.placeholder=this.__placeholder??""),super.updateDOM(...arguments)}exportDOM(){return null}static importDOM(){return null}canHaveFormat(){return!1}setPlaceholder(n){const i=this.getWritable();i.__placeholder=n}getPlaceholder(){return this.getLatest().__placeholder}getChildrenSize(){return 0}getChildAtIndex(){return null}}function sm(t="",e=null){return A.$applyNodeReplacement(new ou(t,e))}function Ka(t){return t instanceof ou}class Fc extends A.TextNode{static getType(){return"zwnj"}static clone(e){return new Fc("",e.__key)}createDOM(e){const n=super.createDOM(e);return n.innerHTML="‌",n}updateDOM(){return!1}exportJSON(){return{...super.exportJSON(),type:"zwnj",version:1}}getTextContent(){return""}isToken(){return!0}}function gS(){return new Fc("")}function zd(t){return t instanceof Fc}var Oke={import:{br:t=>{var s,a;const e=!!t.closest('[id^="docs-internal-guid-"]'),n=(s=t.previousElementSibling)==null?void 0:s.nodeName,i=(a=t.nextElementSibling)==null?void 0:a.nodeName,r=["H1","H2","H3","H4","H5","H6"],o=["UL","OL","DL"];return e&&(n==="P"&&i==="P"||n==="BR"||i==="BR"||[...r,...o].includes(n)&&i==="P"||n==="P"&&[...r,...o].includes(i))?{conversion:()=>null,priority:1}:null}}},Ske={import:{p:t=>!!t.closest('[id^="docs-internal-guid-"]')&&t.textContent===""?{conversion:()=>null,priority:1}:null}};const rD={generateDecoratorNode:Rn,visibility:X1e,rgbToHex:Rc,taggedTemplateFns:Xve},mS={linebreak:Oke,paragraph:Ske},oD={html:{import:{...mS.linebreak.import,...mS.paragraph.import}}},Cke=Object.freeze(Object.defineProperty({__proto__:null,$createAsideNode:jve,$createAtLinkNode:pS,$createAtLinkSearchNode:sm,$createAudioNode:Ove,$createBookmarkNode:pbe,$createButtonNode:lbe,$createCallToActionNode:Ive,$createCalloutNode:Mve,$createCodeBlockNode:rve,$createEmailCtaNode:oke,$createEmailNode:Vbe,$createEmbedNode:Zbe,$createFileNode:xbe,$createGalleryNode:nke,$createHeaderNode:$be,$createHorizontalRuleNode:Wve,$createHtmlNode:qve,$createImageNode:eve,$createMarkdownNode:ave,$createPaywallNode:Pbe,$createProductNode:zbe,$createSignupNode:pke,$createTKNode:hS,$createToggleNode:ebe,$createTransistorNode:vke,$createVideoNode:gve,$createZWNJNode:gS,$isAsideNode:Fve,$isAtLinkNode:Ga,$isAtLinkSearchNode:Ka,$isAudioNode:Sve,$isBookmarkNode:gbe,$isButtonNode:ube,$isCallToActionNode:Lve,$isCalloutNode:$ve,$isCodeBlockNode:ove,$isEmailCtaNode:ske,$isEmailNode:Xbe,$isEmbedNode:qbe,$isFileNode:wbe,$isGalleryNode:ike,$isHeaderNode:Mbe,$isHorizontalRuleNode:Hve,$isHtmlNode:Yve,$isImageNode:tve,$isKoenigCard:Pc,$isMarkdownNode:lve,$isPaywallNode:Dbe,$isProductNode:Bbe,$isSignupNode:gke,$isTKNode:iD,$isToggleNode:tbe,$isTransistorNode:bke,$isVideoNode:mve,$isZWNJNode:zd,AsideNode:Qg,AtLinkNode:aa,AtLinkSearchNode:ou,AudioNode:zg,BookmarkNode:Vg,ButtonNode:Yg,CallToActionNode:Hg,CalloutNode:Bg,CodeBlockNode:Rg,DEFAULT_CONFIG:oD,DEFAULT_NODES:[Ns,Kb,ru,Jb,jc,dS,Rg,Lg,jg,Fg,zg,Bg,Hg,Qg,Ug,Zg,Xg,qg,Yg,Gg,Vg,Kg,Jg,em,tm,nm,im,rm,om,ts,aa,ou,Fc],EmailCtaNode:im,EmailNode:tm,EmbedNode:em,ExtendedHeadingNode:ru,ExtendedQuoteNode:jc,ExtendedTextNode:Ns,FileNode:Xg,GalleryNode:nm,HeaderNode:Gg,HorizontalRuleNode:Ug,HtmlNode:Zg,ImageNode:Lg,KoenigDecoratorNode:rS,MarkdownNode:jg,PaywallNode:Kg,ProductNode:Jg,SignupNode:rm,TKNode:ts,ToggleNode:qg,TransistorNode:om,VideoNode:Fg,ZWNJNode:Fc,extendedHeadingNodeReplacement:Jb,extendedQuoteNodeReplacement:dS,extendedTextNodeReplacement:Kb,serializers:mS,utils:rD},Symbol.toStringTag,{value:"Module"}));class vS extends Qg{createDOM(e){const n=document.createElement("aside");return ut.addClassNamesToElement(n,e.theme.aside),n}insertNewAfter(){const e=A.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){const e=A.$createParagraphNode();return this.getChildren().forEach(i=>e.append(i)),this.replace(e),!0}}function sD(){return new vS}function aD(t){return t instanceof vS}const Eke=t=>J.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("g",{fill:"none",fillRule:"evenodd"},J.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#465961",fillRule:"nonzero"}),J.createElement("path",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 12l-4 4.333 4 3.667M21.5 12l4 4.333-4 3.667M18 11l-4 10"}))),lD=T.createContext({}),Tke=({children:t})=>{const[e,n]=T.useState(null),[i,r]=T.useState(!1),[o,s]=T.useState(!1),[a,l]=T.useState(!1),u=T.useMemo(()=>({selectedCardKey:e,setSelectedCardKey:n,isEditingCard:i,setIsEditingCard:r,isDragging:o,setIsDragging:s,showVisibilitySettings:a,setShowVisibilitySettings:l}),[e,n,i,r,o,s,a,l]);return k.jsx(lD.Provider,{value:u,children:t})},zc=()=>T.useContext(lD);function xt({isVisible:t,children:e,...n}){const{isDragging:i}=zc();if(t&&!i)return k.jsx("div",{className:"not-kg-prose absolute left-1/2 top-[-46px] z-[1000] -translate-x-1/2",...n,children:e})}function bS(){return bS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},bS.apply(this,arguments)}function $ke(t,e){if(t==null)return{};var n={},i=Object.keys(t),r,o;for(o=0;o<i.length;o++)r=i[o],!(e.indexOf(r)>=0)&&(n[r]=t[r]);return n}let Yt=class Tee{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=Bd(this,e,n);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(n,this.length,r,1),la.from(r,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=Bd(this,e,n);let i=[];return this.decompose(e,n,i,0),la.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new am(this),o=new am(e);for(let s=n,a=n;;){if(r.next(s),o.next(s),s=0,r.lineBreak!=o.lineBreak||r.done!=o.done||r.value!=o.value)return!1;if(a+=r.value.length,r.done||a>=i)return!0}}iter(e=1){return new am(this,e)}iterRange(e,n=this.length){return new cD(this,e,n)}iterLines(e,n){let i;if(e==null)i=this.iter();else{n==null&&(n=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new fD(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Tee.empty:e.length<=32?new ai(e):la.from(ai.split(e,[]))}};class ai extends Yt{constructor(e,n=Mke(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,r){for(let o=0;;o++){let s=this.text[o],a=r+s.length;if((n?i:a)>=e)return new Nke(r,a,i,s);r=a+1,i++}}decompose(e,n,i,r){let o=e<=0&&n>=this.length?this:new ai(uD(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(r&1){let s=i.pop(),a=ek(o.text,s.text.slice(),0,o.length);if(a.length<=32)i.push(new ai(a,s.length+o.length));else{let l=a.length>>1;i.push(new ai(a.slice(0,l)),new ai(a.slice(l)))}}else i.push(o)}replace(e,n,i){if(!(i instanceof ai))return super.replace(e,n,i);[e,n]=Bd(this,e,n);let r=ek(this.text,ek(i.text,uD(this.text,0,e)),n),o=this.length+i.length-(n-e);return r.length<=32?new ai(r,o):la.from(ai.split(r,[]),o)}sliceString(e,n=this.length,i=`
|
||
`){[e,n]=Bd(this,e,n);let r="";for(let o=0,s=0;o<=n&&s<this.text.length;s++){let a=this.text[s],l=o+a.length;o>e&&s&&(r+=i),e<l&&n>o&&(r+=a.slice(Math.max(0,e-o),n-o)),o=l+1}return r}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],r=-1;for(let o of e)i.push(o),r+=o.length+1,i.length==32&&(n.push(new ai(i,r)),i=[],r=-1);return r>-1&&n.push(new ai(i,r)),n}}class la extends Yt{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,r){for(let o=0;;o++){let s=this.children[o],a=r+s.length,l=i+s.lines-1;if((n?l:a)>=e)return s.lineInner(e,n,i,r);r=a+1,i=l+1}}decompose(e,n,i,r){for(let o=0,s=0;s<=n&&o<this.children.length;o++){let a=this.children[o],l=s+a.length;if(e<=l&&n>=s){let u=r&((s<=e?1:0)|(l>=n?2:0));s>=e&&l<=n&&!u?i.push(a):a.decompose(e-s,n-s,i,u)}s=l+1}}replace(e,n,i){if([e,n]=Bd(this,e,n),i.lines<this.lines)for(let r=0,o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.length;if(e>=o&&n<=a){let l=s.replace(e-o,n-o,i),u=this.lines-s.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let f=this.children.slice();return f[r]=l,new la(f,this.length-(n-e)+i.length)}return super.replace(o,a,l)}o=a+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i=`
|
||
`){[e,n]=Bd(this,e,n);let r="";for(let o=0,s=0;o<this.children.length&&s<=n;o++){let a=this.children[o],l=s+a.length;s>e&&o&&(r+=i),e<l&&n>s&&(r+=a.sliceString(e-s,n-s,i)),s=l+1}return r}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof la))return 0;let i=0,[r,o,s,a]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=n,o+=n){if(r==s||o==a)return i;let l=this.children[r],u=e.children[o];if(l!=u)return i+l.scanIdentical(u,n);i+=l.length+1}}static from(e,n=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let g of e)i+=g.lines;if(i<32){let g=[];for(let m of e)m.flatten(g);return new ai(g,n)}let r=Math.max(32,i>>5),o=r<<1,s=r>>1,a=[],l=0,u=-1,f=[];function d(g){let m;if(g.lines>o&&g instanceof la)for(let y of g.children)d(y);else g.lines>s&&(l>s||!l)?(h(),a.push(g)):g instanceof ai&&l&&(m=f[f.length-1])instanceof ai&&g.lines+m.lines<=32?(l+=g.lines,u+=g.length+1,f[f.length-1]=new ai(m.text.concat(g.text),m.length+1+g.length)):(l+g.lines>r&&h(),l+=g.lines,u+=g.length+1,f.push(g))}function h(){l!=0&&(a.push(f.length==1?f[0]:la.from(f,u)),u=-1,l=f.length=0)}for(let g of e)d(g);return h(),a.length==1?a[0]:new la(a,n)}}Yt.empty=new ai([""],0);function Mke(t){let e=-1;for(let n of t)e+=n.length+1;return e}function ek(t,e,n=0,i=1e9){for(let r=0,o=0,s=!0;o<t.length&&r<=i;o++){let a=t[o],l=r+a.length;l>=n&&(l>i&&(a=a.slice(0,i-r)),r<n&&(a=a.slice(n-r)),s?(e[e.length-1]+=a,s=!1):e.push(a)),r=l+1}return e}function uD(t,e,n){return ek(t,[""],e,n)}class am{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof ai?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],o=this.offsets[i],s=o>>1,a=r instanceof ai?r.text.length:r.children.length;if(s==(n>0?a:0)){if(i==0)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[i]+=n,e==0)return this.lineBreak=!0,this.value=`
|
||
`,this;e--}else if(r instanceof ai){let l=r.text[s+(n<0?-1:0)];if(this.offsets[i]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=r.children[s+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof ai?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class cD{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new am(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*n,this.value=r.length<=i?r:n<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class fD{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:r}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Yt.prototype[Symbol.iterator]=function(){return this.iter()},am.prototype[Symbol.iterator]=cD.prototype[Symbol.iterator]=fD.prototype[Symbol.iterator]=function(){return this});class Nke{constructor(e,n,i,r){this.from=e,this.to=n,this.number=i,this.text=r}get length(){return this.to-this.from}}function Bd(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let Wd="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;t<Wd.length;t++)Wd[t]+=Wd[t-1];function Ake(t){for(let e=1;e<Wd.length;e+=2)if(Wd[e]>t)return Wd[e-1]<=t;return!1}function dD(t){return t>=127462&&t<=127487}const hD=8205;function Ki(t,e,n=!0,i=!0){return(n?pD:Pke)(t,e,i)}function pD(t,e,n){if(e==t.length)return e;e&&gD(t.charCodeAt(e))&&mD(t.charCodeAt(e-1))&&e--;let i=Ji(t,e);for(e+=ns(i);e<t.length;){let r=Ji(t,e);if(i==hD||r==hD||n&&Ake(r))e+=ns(r),i=r;else if(dD(r)){let o=0,s=e-2;for(;s>=0&&dD(Ji(t,s));)o++,s-=2;if(o%2==0)break;e+=2}else break}return e}function Pke(t,e,n){for(;e>0;){let i=pD(t,e-2,n);if(i<e)return i;e--}return 0}function gD(t){return t>=56320&&t<57344}function mD(t){return t>=55296&&t<56320}function Ji(t,e){let n=t.charCodeAt(e);if(!mD(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return gD(i)?(n-55296<<10)+(i-56320)+65536:n}function kS(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function ns(t){return t<65536?1:2}const yS=/\r\n?|\n/;var er=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(er||(er={}));class ua{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n+1];e+=i<0?this.sections[n]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,i=0,r=0;n<this.sections.length;){let o=this.sections[n++],s=this.sections[n++];s<0?(e(i,r,o),r+=o):r+=s,i+=o}}iterChangedRanges(e,n=!1){wS(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];r<0?e.push(i,r):e.push(r,i)}return new ua(e)}composeDesc(e){return this.empty?e:e.empty?this:vD(this,e)}mapDesc(e,n=!1){return e.empty?this:xS(this,e,n)}mapPos(e,n=-1,i=er.Simple){let r=0,o=0;for(let s=0;s<this.sections.length;){let a=this.sections[s++],l=this.sections[s++],u=r+a;if(l<0){if(u>e)return o+(e-r);o+=a}else{if(i!=er.Simple&&u>=e&&(i==er.TrackDel&&r<e&&u>e||i==er.TrackBefore&&r<e||i==er.TrackAfter&&u>e))return null;if(u>e||u==e&&n<0&&!a)return e==r||n<0?o:o+l;o+=l}r=u}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return o}touchesRange(e,n=e){for(let i=0,r=0;i<this.sections.length&&r<=n;){let o=this.sections[i++],s=this.sections[i++],a=r+o;if(s>=0&&r<=n&&a>=e)return r<e&&a>n?"cover":!0;r=a}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ua(e)}static create(e){return new ua(e)}}class Ci extends ua{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return wS(this,(n,i,r,o,s)=>e=e.replace(r,r+(i-n),s),!1),e}mapDesc(e,n=!1){return xS(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let r=0,o=0;r<n.length;r+=2){let s=n[r],a=n[r+1];if(a>=0){n[r]=a,n[r+1]=s;let l=r>>1;for(;i.length<l;)i.push(Yt.empty);i.push(s?e.slice(o,o+s):Yt.empty)}o+=s}return new Ci(n,i)}compose(e){return this.empty?e:e.empty?this:vD(this,e,!0)}map(e,n=!1){return e.empty?this:xS(this,e,n,!0)}iterChanges(e,n=!1){wS(this,e,n)}get desc(){return ua.create(this.sections)}filter(e){let n=[],i=[],r=[],o=new lm(this);e:for(let s=0,a=0;;){let l=s==e.length?1e9:e[s++];for(;a<l||a==l&&o.len==0;){if(o.done)break e;let f=Math.min(o.len,l-a);xr(r,f,-1);let d=o.ins==-1?-1:o.off==0?o.ins:0;xr(n,f,d),d>0&&su(i,n,o.text),o.forward(f),a+=f}let u=e[s++];for(;a<u;){if(o.done)break e;let f=Math.min(o.len,u-a);xr(n,f,-1),xr(r,f,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(f),a+=f}}return{changes:new Ci(n,i),filtered:ua.create(r)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n],r=this.sections[n+1];r<0?e.push(i):r==0?e.push([i]):e.push([i].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,i){let r=[],o=[],s=0,a=null;function l(f=!1){if(!f&&!r.length)return;s<n&&xr(r,n-s,-1);let d=new Ci(r,o);a=a?a.compose(d.map(a)):d,r=[],o=[],s=0}function u(f){if(Array.isArray(f))for(let d of f)u(d);else if(f instanceof Ci){if(f.length!=n)throw new RangeError(`Mismatched change set length (got ${f.length}, expected ${n})`);l(),a=a?a.compose(f.map(a)):f}else{let{from:d,to:h=d,insert:g}=f;if(d>h||d<0||h>n)throw new RangeError(`Invalid change range ${d} to ${h} (in doc of length ${n})`);let m=g?typeof g=="string"?Yt.of(g.split(i||yS)):g:Yt.empty,y=m.length;if(d==h&&y==0)return;d<s&&l(),d>s&&xr(r,d-s,-1),xr(r,h-d,y),su(o,r,m),s=h}}return u(e),l(!a),a}static empty(e){return new Ci(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let r=0;r<e.length;r++){let o=e[r];if(typeof o=="number")n.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((s,a)=>a&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;i.length<r;)i.push(Yt.empty);i[r]=Yt.of(o.slice(1)),n.push(o[0],i[r].length)}}}return new Ci(n,i)}static createSet(e,n){return new Ci(e,n)}}function xr(t,e,n,i=!1){if(e==0&&n<=0)return;let r=t.length-2;r>=0&&n<=0&&n==t[r+1]?t[r]+=e:e==0&&t[r]==0?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function su(t,e,n){if(n.length==0)return;let i=e.length-2>>1;if(i<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<i;)t.push(Yt.empty);t.push(n)}}function wS(t,e,n){let i=t.inserted;for(let r=0,o=0,s=0;s<t.sections.length;){let a=t.sections[s++],l=t.sections[s++];if(l<0)r+=a,o+=a;else{let u=r,f=o,d=Yt.empty;for(;u+=a,f+=l,l&&i&&(d=d.append(i[s-2>>1])),!(n||s==t.sections.length||t.sections[s+1]<0);)a=t.sections[s++],l=t.sections[s++];e(r,u,o,f,d),r=u,o=f}}}function xS(t,e,n,i=!1){let r=[],o=i?[]:null,s=new lm(t),a=new lm(e);for(let l=-1;;)if(s.ins==-1&&a.ins==-1){let u=Math.min(s.len,a.len);xr(r,u,-1),s.forward(u),a.forward(u)}else if(a.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(a.len<s.len||a.len==s.len&&!n))){let u=a.len;for(xr(r,a.ins,-1);u;){let f=Math.min(s.len,u);s.ins>=0&&l<s.i&&s.len<=f&&(xr(r,0,s.ins),o&&su(o,r,s.text),l=s.i),s.forward(f),u-=f}a.next()}else if(s.ins>=0){let u=0,f=s.len;for(;f;)if(a.ins==-1){let d=Math.min(f,a.len);u+=d,f-=d,a.forward(d)}else if(a.ins==0&&a.len<f)f-=a.len,a.next();else break;xr(r,u,l<s.i?s.ins:0),o&&l<s.i&&su(o,r,s.text),l=s.i,s.forward(s.len-f)}else{if(s.done&&a.done)return o?Ci.createSet(r,o):ua.create(r);throw new Error("Mismatched change set lengths")}}function vD(t,e,n=!1){let i=[],r=n?[]:null,o=new lm(t),s=new lm(e);for(let a=!1;;){if(o.done&&s.done)return r?Ci.createSet(i,r):ua.create(i);if(o.ins==0)xr(i,o.len,0,a),o.next();else if(s.len==0&&!s.done)xr(i,0,s.ins,a),r&&su(r,i,s.text),s.next();else{if(o.done||s.done)throw new Error("Mismatched change set lengths");{let l=Math.min(o.len2,s.len),u=i.length;if(o.ins==-1){let f=s.ins==-1?-1:s.off?0:s.ins;xr(i,l,f,a),r&&f&&su(r,i,s.text)}else s.ins==-1?(xr(i,o.off?0:o.len,l,a),r&&su(r,i,o.textBit(l))):(xr(i,o.off?0:o.len,s.off?0:s.ins,a),r&&!s.off&&su(r,i,s.text));a=(o.ins>l||s.ins>=0&&s.len>l)&&(a||i.length>u),o.forward2(l),s.forward(l)}}}}class lm{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?Yt.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?Yt.empty:n[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Bc{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new Bc(i,r,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return he.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return he.range(this.anchor,i)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return he.range(e.anchor,e.head)}static create(e,n,i){return new Bc(e,n,i)}}class he{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:he.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new he([this.main],0)}addRange(e,n=!0){return he.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let i=this.ranges.slice();return i[n]=e,he.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new he(e.ranges.map(n=>Bc.fromJSON(n)),e.main)}static single(e,n=e){return new he([he.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;r<e.length;r++){let o=e[r];if(o.empty?o.from<=i:o.from<i)return he.normalized(e.slice(),n);i=o.to}return new he(e,n)}static cursor(e,n=0,i,r){return Bc.create(e,e,(n==0?0:n<0?8:16)|(i==null?7:Math.min(6,i))|(r??16777215)<<6)}static range(e,n,i,r){let o=(i??16777215)<<6|(r==null?7:Math.min(6,r));return n<e?Bc.create(n,e,48|o):Bc.create(e,n,(n>e?8:0)|o)}static normalized(e,n=0){let i=e[n];e.sort((r,o)=>r.from-o.from),n=e.indexOf(i);for(let r=1;r<e.length;r++){let o=e[r],s=e[r-1];if(o.empty?o.from<=s.to:o.from<s.to){let a=s.from,l=Math.max(o.to,s.to);r<=n&&n--,e.splice(--r,2,o.anchor>o.head?he.range(l,a):he.range(a,l))}}return new he(e,n)}}function bD(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let _S=0;class Qe{constructor(e,n,i,r,o){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=r,this.id=_S++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new Qe(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:OS),!!e.static,e.enables)}of(e){return new tk([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new tk(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new tk(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function OS(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class tk{constructor(e,n,i,r){this.dependencies=e,this.facet=n,this.type=i,this.value=r,this.id=_S++}dynamicSlot(e){var n;let i=this.value,r=this.facet.compareInput,o=this.id,s=e[o]>>1,a=this.type==2,l=!1,u=!1,f=[];for(let d of this.dependencies)d=="doc"?l=!0:d=="selection"?u=!0:((n=e[d.id])!==null&&n!==void 0?n:1)&1||f.push(e[d.id]);return{create(d){return d.values[s]=i(d),1},update(d,h){if(l&&h.docChanged||u&&(h.docChanged||h.selection)||SS(d,f)){let g=i(d);if(a?!kD(g,d.values[s],r):!r(g,d.values[s]))return d.values[s]=g,1}return 0},reconfigure:(d,h)=>{let g,m=h.config.address[o];if(m!=null){let y=rk(h,m);if(this.dependencies.every(x=>x instanceof Qe?h.facet(x)===d.facet(x):x instanceof zi?h.field(x,!1)==d.field(x,!1):!0)||(a?kD(g=i(d),y,r):r(g=i(d),y)))return d.values[s]=y,0}else g=i(d);return d.values[s]=g,1}}}}function kD(t,e,n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!n(t[i],e[i]))return!1;return!0}function SS(t,e){let n=!1;for(let i of e)cm(t,i)&1&&(n=!0);return n}function Dke(t,e,n){let i=n.map(l=>t[l.id]),r=n.map(l=>l.type),o=i.filter(l=>!(l&1)),s=t[e.id]>>1;function a(l){let u=[];for(let f=0;f<i.length;f++){let d=rk(l,i[f]);if(r[f]==2)for(let h of d)u.push(h);else u.push(d)}return e.combine(u)}return{create(l){for(let u of i)cm(l,u);return l.values[s]=a(l),1},update(l,u){if(!SS(l,o))return 0;let f=a(l);return e.compare(f,l.values[s])?0:(l.values[s]=f,1)},reconfigure(l,u){let f=SS(l,i),d=u.config.facets[e.id],h=u.facet(e);if(d&&!f&&OS(n,d))return l.values[s]=h,0;let g=a(l);return e.compare(g,h)?(l.values[s]=h,0):(l.values[s]=g,1)}}}const yD=Qe.define({static:!0});class zi{constructor(e,n,i,r,o){this.id=e,this.createF=n,this.updateF=i,this.compareF=r,this.spec=o,this.provides=void 0}static define(e){let n=new zi(_S++,e.create,e.update,e.compare||((i,r)=>i===r),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(yD).find(i=>i.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,r)=>{let o=i.values[n],s=this.updateF(o,r);return this.compareF(o,s)?0:(i.values[n]=s,1)},reconfigure:(i,r)=>r.config.address[this.id]!=null?(i.values[n]=r.field(this),0):(i.values[n]=this.create(i),1)}}init(e){return[this,yD.of({field:this,create:e})]}get extension(){return this}}const Wc={lowest:4,low:3,default:2,high:1,highest:0};function um(t){return e=>new wD(e,t)}const Hc={highest:um(Wc.highest),high:um(Wc.high),default:um(Wc.default),low:um(Wc.low),lowest:um(Wc.lowest)};class wD{constructor(e,n){this.inner=e,this.prec=n}}class nk{of(e){return new CS(this,e)}reconfigure(e){return nk.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class CS{constructor(e,n){this.compartment=e,this.inner=n}}class ik{constructor(e,n,i,r,o,s){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=r,this.staticValues=o,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,i){let r=[],o=Object.create(null),s=new Map;for(let h of Ike(e,n,s))h instanceof zi?r.push(h):(o[h.facet.id]||(o[h.facet.id]=[])).push(h);let a=Object.create(null),l=[],u=[];for(let h of r)a[h.id]=u.length<<1,u.push(g=>h.slot(g));let f=i==null?void 0:i.config.facets;for(let h in o){let g=o[h],m=g[0].facet,y=f&&f[h]||[];if(g.every(x=>x.type==0))if(a[m.id]=l.length<<1|1,OS(y,g))l.push(i.facet(m));else{let x=m.combine(g.map(_=>_.value));l.push(i&&m.compare(x,i.facet(m))?i.facet(m):x)}else{for(let x of g)x.type==0?(a[x.id]=l.length<<1|1,l.push(x.value)):(a[x.id]=u.length<<1,u.push(_=>x.dynamicSlot(_)));a[m.id]=u.length<<1,u.push(x=>Dke(x,m,g))}}let d=u.map(h=>h(a));return new ik(e,s,d,a,l,o)}}function Ike(t,e,n){let i=[[],[],[],[],[]],r=new Map;function o(s,a){let l=r.get(s);if(l!=null){if(l<=a)return;let u=i[l].indexOf(s);u>-1&&i[l].splice(u,1),s instanceof CS&&n.delete(s.compartment)}if(r.set(s,a),Array.isArray(s))for(let u of s)o(u,a);else if(s instanceof CS){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(s.compartment)||s.inner;n.set(s.compartment,u),o(u,a)}else if(s instanceof wD)o(s.inner,s.prec);else if(s instanceof zi)i[a].push(s),s.provides&&o(s.provides,a);else if(s instanceof tk)i[a].push(s),s.facet.extensions&&o(s.facet.extensions,Wc.default);else{let u=s.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,a)}}return o(t,Wc.default),i.reduce((s,a)=>s.concat(a))}function cm(t,e){if(e&1)return 2;let n=e>>1,i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function rk(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const xD=Qe.define(),ES=Qe.define({combine:t=>t.some(e=>e),static:!0}),_D=Qe.define({combine:t=>t.length?t[0]:void 0,static:!0}),OD=Qe.define(),SD=Qe.define(),CD=Qe.define(),ED=Qe.define({combine:t=>t.length?t[0]:!1});class ca{constructor(e,n){this.type=e,this.value=n}static define(){return new Lke}}class Lke{of(e){return new ca(this,e)}}class Rke{constructor(e){this.map=e}of(e){return new _t(this,e)}}class _t{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new _t(this.type,n)}is(e){return this.type==e}static define(e={}){return new Rke(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let i=[];for(let r of e){let o=r.map(n);o&&i.push(o)}return i}}_t.reconfigure=_t.define(),_t.appendConfig=_t.define();let jr=class ev{constructor(e,n,i,r,o,s){this.startState=e,this.changes=n,this.selection=i,this.effects=r,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,i&&bD(i,n.newLength),o.some(a=>a.type==ev.time)||(this.annotations=o.concat(ev.time.of(Date.now())))}static create(e,n,i,r,o,s){return new ev(e,n,i,r,o,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(ev.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}};jr.time=ca.define(),jr.userEvent=ca.define(),jr.addToHistory=ca.define(),jr.remote=ca.define();function jke(t,e){let n=[];for(let i=0,r=0;;){let o,s;if(i<t.length&&(r==e.length||e[r]>=t[i]))o=t[i++],s=t[i++];else if(r<e.length)o=e[r++],s=e[r++];else return n;!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function TD(t,e,n){var i;let r,o,s;return n?(r=e.changes,o=Ci.empty(e.changes.length),s=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),o=t.changes.mapDesc(e.changes,!0),s=t.changes.compose(r)),{changes:s,selection:e.selection?e.selection.map(o):(i=t.selection)===null||i===void 0?void 0:i.map(r),effects:_t.mapEffects(t.effects,r).concat(_t.mapEffects(e.effects,o)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function TS(t,e,n){let i=e.selection,r=Hd(e.annotations);return e.userEvent&&(r=r.concat(jr.userEvent.of(e.userEvent))),{changes:e.changes instanceof Ci?e.changes:Ci.of(e.changes||[],n,t.facet(_D)),selection:i&&(i instanceof he?i:he.single(i.anchor,i.head)),effects:Hd(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function $D(t,e,n){let i=TS(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(n=!1);let s=!!e[o].sequential;i=TD(i,TS(t,e[o],s?i.changes.newLength:t.doc.length),s)}let r=jr.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return zke(n?Fke(r):r)}function Fke(t){let e=t.startState,n=!0;for(let r of e.facet(OD)){let o=r(t);if(o===!1){n=!1;break}Array.isArray(o)&&(n=n===!0?o:jke(n,o))}if(n!==!0){let r,o;if(n===!1)o=t.changes.invertedDesc,r=Ci.empty(e.doc.length);else{let s=t.changes.filter(n);r=s.changes,o=s.filtered.mapDesc(s.changes).invertedDesc}t=jr.create(e,r,t.selection&&t.selection.map(o),_t.mapEffects(t.effects,o),t.annotations,t.scrollIntoView)}let i=e.facet(SD);for(let r=i.length-1;r>=0;r--){let o=i[r](t);o instanceof jr?t=o:Array.isArray(o)&&o.length==1&&o[0]instanceof jr?t=o[0]:t=$D(e,Hd(o),!1)}return t}function zke(t){let e=t.startState,n=e.facet(CD),i=t;for(let r=n.length-1;r>=0;r--){let o=n[r](t);o&&Object.keys(o).length&&(i=TD(i,TS(e,o,t.changes.newLength),!0))}return i==t?t:jr.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const Bke=[];function Hd(t){return t==null?Bke:Array.isArray(t)?t:[t]}var Nn=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Nn||(Nn={}));const Wke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $S;try{$S=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Hke(t){if($S)return $S.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Wke.test(n)))return!0}return!1}function Qke(t){return e=>{if(!/\S/.test(e))return Nn.Space;if(Hke(e))return Nn.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Nn.Word;return Nn.Other}}class jt{constructor(e,n,i,r,o,s){this.config=e,this.doc=n,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=o,s&&(s._state=this);for(let a=0;a<this.config.dynamicSlots.length;a++)cm(this,a<<1);this.computeSlot=null}field(e,n=!0){let i=this.config.address[e.id];if(i==null){if(n)throw new RangeError("Field is not present in this state");return}return cm(this,i),rk(this,i)}update(...e){return $D(this,e,!0)}applyTransaction(e){let n=this.config,{base:i,compartments:r}=n;for(let a of e.effects)a.is(nk.reconfigure)?(n&&(r=new Map,n.compartments.forEach((l,u)=>r.set(u,l)),n=null),r.set(a.value.compartment,a.value.extension)):a.is(_t.reconfigure)?(n=null,i=a.value):a.is(_t.appendConfig)&&(n=null,i=Hd(i).concat(a.value));let o;n?o=e.startState.values.slice():(n=ik.resolve(i,r,this),o=new jt(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=e.startState.facet(ES)?e.newSelection:e.newSelection.asSingle();new jt(n,e.newDoc,s,o,(a,l)=>l.update(a,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:he.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,i=e(n.ranges[0]),r=this.changes(i.changes),o=[i.range],s=Hd(i.effects);for(let a=1;a<n.ranges.length;a++){let l=e(n.ranges[a]),u=this.changes(l.changes),f=u.map(r);for(let h=0;h<a;h++)o[h]=o[h].map(f);let d=r.mapDesc(u,!0);o.push(l.range.map(d)),r=r.compose(f),s=_t.mapEffects(s,f).concat(_t.mapEffects(Hd(l.effects),d))}return{changes:r,selection:he.create(o,n.mainIndex),effects:s}}changes(e=[]){return e instanceof Ci?e:Ci.of(e,this.doc.length,this.facet(jt.lineSeparator))}toText(e){return Yt.of(e.split(this.facet(jt.lineSeparator)||yS))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(cm(this,n),rk(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let r=e[i];r instanceof zi&&this.config.address[r.id]!=null&&(n[i]=r.spec.toJSON(this.field(e[i]),this))}return n}static fromJSON(e,n={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(i){for(let o in i)if(Object.prototype.hasOwnProperty.call(e,o)){let s=i[o],a=e[o];r.push(s.init(l=>s.spec.fromJSON(a,l)))}}return jt.create({doc:e.doc,selection:he.fromJSON(e.selection),extensions:n.extensions?r.concat([n.extensions]):r})}static create(e={}){let n=ik.resolve(e.extensions||[],new Map),i=e.doc instanceof Yt?e.doc:Yt.of((e.doc||"").split(n.staticFacet(jt.lineSeparator)||yS)),r=e.selection?e.selection instanceof he?e.selection:he.single(e.selection.anchor,e.selection.head):he.single(0);return bD(r,i.length),n.staticFacet(ES)||(r=r.asSingle()),new jt(n,i,r,n.dynamicSlots.map(()=>null),(o,s)=>s.create(o),null)}get tabSize(){return this.facet(jt.tabSize)}get lineBreak(){return this.facet(jt.lineSeparator)||`
|
||
`}get readOnly(){return this.facet(ED)}phrase(e,...n){for(let i of this.facet(jt.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let o=+(r||1);return!o||o>n.length?i:n[o-1]})),e}languageDataAt(e,n,i=-1){let r=[];for(let o of this.facet(xD))for(let s of o(this,n,i))Object.prototype.hasOwnProperty.call(s,e)&&r.push(s[e]);return r}charCategorizer(e){return Qke(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:i,length:r}=this.doc.lineAt(e),o=this.charCategorizer(e),s=e-i,a=e-i;for(;s>0;){let l=Ki(n,s,!1);if(o(n.slice(l,s))!=Nn.Word)break;s=l}for(;a<r;){let l=Ki(n,a);if(o(n.slice(a,l))!=Nn.Word)break;a=l}return s==a?null:he.range(s+i,a+i)}}jt.allowMultipleSelections=ES,jt.tabSize=Qe.define({combine:t=>t.length?t[0]:4}),jt.lineSeparator=_D,jt.readOnly=ED,jt.phrases=Qe.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(r=>t[r]==e[r])}}),jt.languageData=xD,jt.changeFilter=OD,jt.transactionFilter=SD,jt.transactionExtender=CD,nk.reconfigure=_t.define();function fa(t,e,n={}){let i={};for(let r of t)for(let o of Object.keys(r)){let s=r[o],a=i[o];if(a===void 0)i[o]=s;else if(!(a===s||s===void 0))if(Object.hasOwnProperty.call(n,o))i[o]=n[o](a,s);else throw new Error("Config merge conflict for field "+o)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class Qc{eq(e){return this==e}range(e,n=e){return MS.create(e,n,this)}}Qc.prototype.startSide=Qc.prototype.endSide=0,Qc.prototype.point=!1,Qc.prototype.mapMode=er.TrackDel;let MS=class $ee{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new $ee(e,n,i)}};function NS(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class AS{constructor(e,n,i,r){this.from=e,this.to=n,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,r=0){let o=i?this.to:this.from;for(let s=r,a=o.length;;){if(s==a)return s;let l=s+a>>1,u=o[l]-e||(i?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:a;u>=0?a=l:s=l+1}}between(e,n,i,r){for(let o=this.findIndex(n,-1e9,!0),s=this.findIndex(i,1e9,!1,o);o<s;o++)if(r(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,n){let i=[],r=[],o=[],s=-1,a=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],f=this.from[l]+e,d=this.to[l]+e,h,g;if(f==d){let m=n.mapPos(f,u.startSide,u.mapMode);if(m==null||(h=g=m,u.startSide!=u.endSide&&(g=n.mapPos(f,u.endSide),g<h)))continue}else if(h=n.mapPos(f,u.startSide),g=n.mapPos(d,u.endSide),h>g||h==g&&u.startSide>0&&u.endSide<=0)continue;(g-h||u.endSide-u.startSide)<0||(s<0&&(s=h),u.point&&(a=Math.max(a,g-h)),i.push(u),r.push(h-s),o.push(g-s))}return{mapped:i.length?new AS(r,o,i,a):null,pos:s}}}class zt{constructor(e,n,i,r){this.chunkPos=e,this.chunk=n,this.nextLayer=i,this.maxPoint=r}static create(e,n,i,r){return new zt(e,n,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:i=!1,filterFrom:r=0,filterTo:o=this.length}=e,s=e.filter;if(n.length==0&&!s)return this;if(i&&(n=n.slice().sort(NS)),this.isEmpty)return n.length?zt.of(n):this;let a=new ND(this,null,-1).goto(0),l=0,u=[],f=new au;for(;a.value||l<n.length;)if(l<n.length&&(a.from-n[l].from||a.startSide-n[l].value.startSide)>=0){let d=n[l++];f.addInner(d.from,d.to,d.value)||u.push(d)}else a.rangeIndex==1&&a.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(a.chunkIndex)<n[l].from)&&(!s||r>this.chunkEnd(a.chunkIndex)||o<this.chunkPos[a.chunkIndex])&&f.addChunk(this.chunkPos[a.chunkIndex],this.chunk[a.chunkIndex])?a.nextChunk():((!s||r>a.to||o<a.from||s(a.from,a.to,a.value))&&(f.addInner(a.from,a.to,a.value)||u.push(MS.create(a.from,a.to,a.value))),a.next());return f.finishInner(this.nextLayer.isEmpty&&!u.length?zt.empty:this.nextLayer.update({add:u,filter:s,filterFrom:r,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],i=[],r=-1;for(let s=0;s<this.chunk.length;s++){let a=this.chunkPos[s],l=this.chunk[s],u=e.touchesRange(a,a+l.length);if(u===!1)r=Math.max(r,l.maxPoint),n.push(l),i.push(e.mapPos(a));else if(u===!0){let{mapped:f,pos:d}=l.map(a,e);f&&(r=Math.max(r,f.maxPoint),n.push(f),i.push(d))}}let o=this.nextLayer.map(e);return n.length==0?o:new zt(i,n,o||zt.empty,r)}between(e,n,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let o=this.chunkPos[r],s=this.chunk[r];if(n>=o&&e<=o+s.length&&s.between(o,e-o,n-o,i)===!1)return}this.nextLayer.between(e,n,i)}}iter(e=0){return fm.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return fm.from(e).goto(n)}static compare(e,n,i,r,o=-1){let s=e.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),a=n.filter(d=>d.maxPoint>0||!d.isEmpty&&d.maxPoint>=o),l=MD(s,a,i),u=new dm(s,l,o),f=new dm(a,l,o);i.iterGaps((d,h,g)=>AD(u,d,f,h,g,r)),i.empty&&i.length==0&&AD(u,0,f,0,0,r)}static eq(e,n,i=0,r){r==null&&(r=999999999);let o=e.filter(f=>!f.isEmpty&&n.indexOf(f)<0),s=n.filter(f=>!f.isEmpty&&e.indexOf(f)<0);if(o.length!=s.length)return!1;if(!o.length)return!0;let a=MD(o,s),l=new dm(o,a,0).goto(i),u=new dm(s,a,0).goto(i);for(;;){if(l.to!=u.to||!DS(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>r)return!0;l.next(),u.next()}}static spans(e,n,i,r,o=-1){let s=new dm(e,null,o).goto(n),a=n,l=s.openStart;for(;;){let u=Math.min(s.to,i);if(s.point){let f=s.activeForPoint(s.to),d=s.pointFrom<n?f.length+1:Math.min(f.length,l);r.point(a,u,s.point,f,d,s.pointRank),l=Math.min(s.openEnd(u),f.length)}else u>a&&(r.span(a,u,s.active,l),l=s.openEnd(u));if(s.to>i)return l+(s.point&&s.to>i?1:0);a=s.to,s.next()}}static of(e,n=!1){let i=new au;for(let r of e instanceof MS?[e]:n?Uke(e):e)i.add(r.from,r.to,r.value);return i.finish()}static join(e){if(!e.length)return zt.empty;let n=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let r=e[i];r!=zt.empty;r=r.nextLayer)n=new zt(r.chunkPos,r.chunk,n,Math.max(r.maxPoint,n.maxPoint));return n}}zt.empty=new zt([],[],null,-1);function Uke(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let i=t[n];if(NS(e,i)>0)return t.slice().sort(NS);e=i}return t}zt.empty.nextLayer=zt.empty;class au{finishChunk(e){this.chunks.push(new AS(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new au)).add(e,n,i)}addInner(e,n,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(zt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=zt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function MD(t,e,n){let i=new Map;for(let o of t)for(let s=0;s<o.chunk.length;s++)o.chunk[s].maxPoint<=0&&i.set(o.chunk[s],o.chunkPos[s]);let r=new Set;for(let o of e)for(let s=0;s<o.chunk.length;s++){let a=i.get(o.chunk[s]);a!=null&&(n?n.mapPos(a):a)==o.chunkPos[s]&&!(n!=null&&n.touchesRange(a,a+o.chunk[s].length))&&r.add(o.chunk[s])}return r}class ND{constructor(e,n,i,r=0){this.layer=e,this.skip=n,this.minPoint=i,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,i){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!i||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],i=e+n.from[this.rangeIndex];if(this.from=i,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class fm{constructor(e){this.heap=e}static from(e,n=null,i=-1){let r=[];for(let o=0;o<e.length;o++)for(let s=e[o];!s.isEmpty;s=s.nextLayer)s.maxPoint>=i&&r.push(new ND(s,n,i,o));return r.length==1?r[0]:new fm(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)PS(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)PS(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),PS(this.heap,0)}}}function PS(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let r=t[i];if(i+1<t.length&&r.compare(t[i+1])>=0&&(r=t[i+1],i++),n.compare(r)<0)break;t[i]=n,t[e]=r,e=i}}class dm{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=fm.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){ok(this.active,e),ok(this.activeTo,e),ok(this.activeRank,e),this.minActive=PD(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:r,rank:o}=this.cursor;for(;n<this.activeRank.length&&(o-this.activeRank[n]||r-this.activeTo[n])>0;)n++;sk(this.active,n,i),sk(this.activeTo,n,r),sk(this.activeRank,n,o),e&&sk(e,n,this.cursor.from),this.minActive=PD(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&ok(i,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(i),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let r=i.length-1;r>=0&&i[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function AD(t,e,n,i,r,o){t.goto(e),n.goto(i);let s=i+r,a=i,l=i-e;for(;;){let u=t.to+l-n.to||t.endSide-n.endSide,f=u<0?t.to+l:n.to,d=Math.min(f,s);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&DS(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(a,d,t.point,n.point):d>a&&!DS(t.active,n.active)&&o.compareRange(a,d,t.active,n.active),f>s)break;a=f,u<=0&&t.next(),u>=0&&n.next()}}function DS(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function ok(t,e){for(let n=e,i=t.length-1;n<i;n++)t[n]=t[n+1];t.pop()}function sk(t,e,n){for(let i=t.length-1;i>=e;i--)t[i+1]=t[i];t[e]=n}function PD(t,e){let n=-1,i=1e9;for(let r=0;r<e.length;r++)(e[r]-i||t[r].endSide-t[n].endSide)<0&&(n=r,i=e[r]);return n}function Qd(t,e,n=t.length){let i=0;for(let r=0;r<n;)t.charCodeAt(r)==9?(i+=e-i%e,r++):(i++,r=Ki(t,r));return i}function IS(t,e,n,i){for(let r=0,o=0;;){if(o>=e)return r;if(r==t.length)break;o+=t.charCodeAt(r)==9?n-o%n:1,r=Ki(t,r)}return i===!0?-1:t.length}const LS="ͼ",DD=typeof Symbol>"u"?"__"+LS:Symbol.for(LS),RS=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),ID=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class lu{constructor(e,n){this.rules=[];let{finish:i}=n||{};function r(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function o(s,a,l,u){let f=[],d=/^@(\w+)\b/.exec(s[0]),h=d&&d[1]=="keyframes";if(d&&a==null)return l.push(s[0]+";");for(let g in a){let m=a[g];if(/&/.test(g))o(g.split(/,\s*/).map(y=>s.map(x=>y.replace(/&/,x))).reduce((y,x)=>y.concat(x)),m,l);else if(m&&typeof m=="object"){if(!d)throw new RangeError("The value of a property ("+g+") should be a primitive value.");o(r(g),m,f,h)}else m!=null&&f.push(g.replace(/_.*/,"").replace(/[A-Z]/g,y=>"-"+y.toLowerCase())+": "+m+";")}(f.length||h)&&l.push((i&&!d&&!u?s.map(i):s).join(", ")+" {"+f.join(" ")+"}")}for(let s in e)o(r(s),e[s],this.rules)}getRules(){return this.rules.join(`
|
||
`)}static newName(){let e=ID[DD]||1;return ID[DD]=e+1,LS+e.toString(36)}static mount(e,n,i){let r=e[RS],o=i&&i.nonce;r?o&&r.setNonce(o):r=new Zke(e,o),r.mount(Array.isArray(n)?n:[n])}}let LD=new Map;class Zke{constructor(e,n){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let o=LD.get(i);if(o)return e.adoptedStyleSheets=[o.sheet,...e.adoptedStyleSheets],e[RS]=o;this.sheet=new r.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],LD.set(i,this)}else{this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let o=e.head||e;o.insertBefore(this.styleTag,o.firstChild)}this.modules=[],e[RS]=this}mount(e){let n=this.sheet,i=0,r=0;for(let o=0;o<e.length;o++){let s=e[o],a=this.modules.indexOf(s);if(a<r&&a>-1&&(this.modules.splice(a,1),r--,a=-1),a==-1){if(this.modules.splice(r++,0,s),n)for(let l=0;l<s.rules.length;l++)n.insertRule(s.rules[l],i++)}else{for(;r<a;)i+=this.modules[r++].rules.length;i+=s.rules.length,r++}}if(!n){let o="";for(let s=0;s<this.modules.length;s++)o+=this.modules[s].getRules()+`
|
||
`;this.styleTag.textContent=o}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var uu={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},hm={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},qke=typeof navigator<"u"&&/Mac/.test(navigator.platform),Yke=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),tr=0;tr<10;tr++)uu[48+tr]=uu[96+tr]=String(tr);for(var tr=1;tr<=24;tr++)uu[tr+111]="F"+tr;for(var tr=65;tr<=90;tr++)uu[tr]=String.fromCharCode(tr+32),hm[tr]=String.fromCharCode(tr);for(var jS in uu)hm.hasOwnProperty(jS)||(hm[jS]=uu[jS]);function Vke(t){var e=qke&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Yke&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?hm:uu)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function ak(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function FS(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function Xke(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function lk(t,e){if(!e.anchorNode)return!1;try{return FS(t,e.anchorNode)}catch{return!1}}function Ud(t){return t.nodeType==3?Uc(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function pm(t,e,n,i){return n?RD(t,e,n,i,-1)||RD(t,e,n,i,1):!1}function gm(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function RD(t,e,n,i,r){for(;;){if(t==n&&e==i)return!0;if(e==(r<0?0:Ja(t))){if(t.nodeName=="DIV")return!1;let o=t.parentNode;if(!o||o.nodeType!=1)return!1;e=gm(t)+(r<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=r<0?Ja(t):0}else return!1}}function Ja(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function uk(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Gke(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function jD(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function Kke(t,e,n,i,r,o,s,a){let l=t.ownerDocument,u=l.defaultView||window;for(let f=t,d=!1;f&&!d;)if(f.nodeType==1){let h,g=f==l.body,m=1,y=1;if(g)h=Gke(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(d=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let S=f.getBoundingClientRect();({scaleX:m,scaleY:y}=jD(f,S)),h={left:S.left,right:S.left+f.clientWidth*m,top:S.top,bottom:S.top+f.clientHeight*y}}let x=0,_=0;if(r=="nearest")e.top<h.top?(_=-(h.top-e.top+s),n>0&&e.bottom>h.bottom+_&&(_=e.bottom-h.bottom+_+s)):e.bottom>h.bottom&&(_=e.bottom-h.bottom+s,n<0&&e.top-_<h.top&&(_=-(h.top+_-e.top+s)));else{let S=e.bottom-e.top,C=h.bottom-h.top;_=(r=="center"&&S<=C?e.top+S/2-C/2:r=="start"||r=="center"&&n<0?e.top-s:e.bottom-C+s)-h.top}if(i=="nearest"?e.left<h.left?(x=-(h.left-e.left+o),n>0&&e.right>h.right+x&&(x=e.right-h.right+x+o)):e.right>h.right&&(x=e.right-h.right+o,n<0&&e.left<h.left+x&&(x=-(h.left+x-e.left+o))):x=(i=="center"?e.left+(e.right-e.left)/2-(h.right-h.left)/2:i=="start"==a?e.left-o:e.right-(h.right-h.left)+o)-h.left,x||_)if(g)u.scrollBy(x,_);else{let S=0,C=0;if(_){let E=f.scrollTop;f.scrollTop+=_/y,C=(f.scrollTop-E)*y}if(x){let E=f.scrollLeft;f.scrollLeft+=x/m,S=(f.scrollLeft-E)*m}e={left:e.left-S,top:e.top-C,right:e.right-S,bottom:e.bottom-C},S&&Math.abs(S-x)<1&&(i="nearest"),C&&Math.abs(C-_)<1&&(r="nearest")}if(g)break;f=f.assignedSlot||f.parentNode}else if(f.nodeType==11)f=f.host;else break}function Jke(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class eye{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?Ja(n):0),i,Math.min(e.focusOffset,i?Ja(i):0))}set(e,n,i,r){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=r}}let Zd=null;function FD(t){if(t.setActive)return t.setActive();if(Zd)return t.focus(Zd);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Zd==null?{get preventScroll(){return Zd={preventScroll:!0},!0}}:void 0),!Zd){Zd=!1;for(let n=0;n<e.length;){let i=e[n++],r=e[n++],o=e[n++];i.scrollTop!=r&&(i.scrollTop=r),i.scrollLeft!=o&&(i.scrollLeft=o)}}}let zD;function Uc(t,e,n=e){let i=zD||(zD=document.createRange());return i.setEnd(t,n),i.setStart(t,e),i}function qd(t,e,n){let i={key:e,code:e,keyCode:n,which:n,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,t.dispatchEvent(r);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),r.defaultPrevented||o.defaultPrevented}function tye(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function BD(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function nye(t,e){let n=e.focusNode,i=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=i)return!1;for(i=Math.min(i,Ja(n));;)if(i){if(n.nodeType!=1)return!1;let r=n.childNodes[i-1];r.contentEditable=="false"?i--:(n=r,i=Ja(n))}else{if(n==t)return!0;i=gm(n),n=n.parentNode}}function WD(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}class _r{constructor(e,n,i=!0){this.node=e,this.offset=n,this.precise=i}static before(e,n){return new _r(e.parentNode,gm(e),n)}static after(e,n){return new _r(e.parentNode,gm(e)+1,n)}}const zS=[];class gn{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let i of this.children){if(i==e)return n;n+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let i=this.dom,r=null,o;for(let s of this.children){if(s.flags&7){if(!s.dom&&(o=r?r.nextSibling:i.firstChild)){let a=gn.get(o);(!a||!a.parent&&a.canReuseDOM(s))&&s.reuseDOM(o)}s.sync(e,n),s.flags&=-8}if(o=r?r.nextSibling:i.firstChild,n&&!n.written&&n.node==i&&o!=s.dom&&(n.written=!0),s.dom.parentNode==i)for(;o&&o!=s.dom;)o=HD(o);else i.insertBefore(s.dom,o);r=s.dom}for(o=r?r.nextSibling:i.firstChild,o&&n&&n.node==i&&(n.written=!0);o;)o=HD(o)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,n),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let i;if(e==this.dom)i=this.dom.childNodes[n];else{let r=Ja(e)==0?0:n==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;r==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?r=-1:r=1),e=o}r<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!gn.get(i);)i=i.nextSibling;if(!i)return this.length;for(let r=0,o=0;;r++){let s=this.children[r];if(s.dom==i)return o;o+=s.length+s.breakAfter}}domBoundsAround(e,n,i=0){let r=-1,o=-1,s=-1,a=-1;for(let l=0,u=i,f=i;l<this.children.length;l++){let d=this.children[l],h=u+d.length;if(u<e&&h>n)return d.domBoundsAround(e,n,u);if(h>=e&&r==-1&&(r=l,o=u),u>n&&d.dom.parentNode==this.dom){s=l,a=f;break}f=h,u=h+d.breakAfter}return{from:o,to:a<0?i+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s<this.children.length&&s>=0?this.children[s].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=zS){this.markDirty();for(let r=e;r<n;r++){let o=this.children[r];o.parent==this&&i.indexOf(o)<0&&o.destroy()}this.children.splice(e,n-e,...i);for(let r=0;r<i.length;r++)i[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new QD(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,i,r,o,s){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}gn.prototype.breakAfter=0;function HD(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class QD{constructor(e,n,i){this.children=e,this.pos=n,this.i=i,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function UD(t,e,n,i,r,o,s,a,l){let{children:u}=t,f=u.length?u[e]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:s;if(!(e==i&&f&&!s&&!h&&o.length<2&&f.merge(n,r,o.length?d:null,n==0,a,l))){if(i<u.length){let g=u[i];g&&(r<g.length||g.breakAfter&&(d!=null&&d.breakAfter))?(e==i&&(g=g.split(r),r=0),!h&&d&&g.merge(0,r,d,!0,0,l)?o[o.length-1]=g:((r||g.children.length&&!g.children[0].length)&&g.merge(0,r,null,!1,0,l),o.push(g))):g!=null&&g.breakAfter&&(d?d.breakAfter=1:s=1),i++}for(f&&(f.breakAfter=s,n>0&&(!s&&o.length&&f.merge(n,f.length,o[0],!1,a,0)?f.breakAfter=o.shift().breakAfter:(n<f.length||f.children.length&&f.children[f.children.length-1].length==0)&&f.merge(n,f.length,null,!1,a,0),e++));e<i&&o.length;)if(u[i-1].become(o[o.length-1]))i--,o.pop(),l=o.length?0:a;else if(u[e].become(o[0]))e++,o.shift(),a=o.length?0:l;else break;!o.length&&e&&i<u.length&&!u[e-1].breakAfter&&u[i].merge(0,0,u[e-1],!1,a,l)&&e--,(e<i||o.length)&&t.replaceChildren(e,i,o)}}function ZD(t,e,n,i,r,o){let s=t.childCursor(),{i:a,off:l}=s.findPos(n,1),{i:u,off:f}=s.findPos(e,-1),d=e-n;for(let h of i)d+=h.length;t.length+=d,UD(t,u,f,a,l,i,0,r,o)}let To=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},BS=typeof document<"u"?document:{documentElement:{style:{}}};const WS=/Edge\/(\d+)/.exec(To.userAgent),qD=/MSIE \d/.test(To.userAgent),HS=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(To.userAgent),ck=!!(qD||HS||WS),YD=!ck&&/gecko\/(\d+)/i.test(To.userAgent),QS=!ck&&/Chrome\/(\d+)/.exec(To.userAgent),iye="webkitFontSmoothing"in BS.documentElement.style,VD=!ck&&/Apple Computer/.test(To.vendor),XD=VD&&(/Mobile\/\w+/.test(To.userAgent)||To.maxTouchPoints>2);var Ye={mac:XD||/Mac/.test(To.platform),windows:/Win/.test(To.platform),linux:/Linux|X11/.test(To.platform),ie:ck,ie_version:qD?BS.documentMode||6:HS?+HS[1]:WS?+WS[1]:0,gecko:YD,gecko_version:YD?+(/Firefox\/(\d+)/.exec(To.userAgent)||[0,0])[1]:0,chrome:!!QS,chrome_version:QS?+QS[1]:0,ios:XD,android:/Android\b/.test(To.userAgent),safari:VD,webkit_version:iye?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:BS.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const rye=256;class el extends gn{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,i){return this.flags&8||i&&(!(i instanceof el)||this.length-(n-e)+i.length>rye||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new el(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new _r(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return oye(this.dom,e,n)}}class tl extends gn{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let r of n)r.setParent(this)}setAttrs(e){if(BD(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,r,o,s){return i&&(!(i instanceof tl&&i.mark.eq(this.mark))||e&&o<=0||n<this.length&&s<=0)?!1:(ZD(this,e,n,i?i.children.slice():[],o-1,s-1),this.markDirty(),!0)}split(e){let n=[],i=0,r=-1,o=0;for(let a of this.children){let l=i+a.length;l>e&&n.push(i<e?a.split(e-i):a),r<0&&i>=e&&(r=o),i=l,o++}let s=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new tl(this.mark,n,s)}domAtPos(e){return GD(this,e)}coordsAt(e,n){return JD(this,e,n)}}function oye(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let r=e,o=e,s=0;e==0&&n<0||e==i&&n>=0?Ye.chrome||Ye.gecko||(e?(r--,s=1):o<i&&(o++,s=-1)):n<0?r--:o<i&&o++;let a=Uc(t,r,o).getClientRects();if(!a.length)return null;let l=a[(s?s<0:n>=0)?0:a.length-1];return Ye.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(a,u=>u.width)||l),s?uk(l,s<0):l||null}class cu extends gn{static create(e,n,i){return new cu(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=cu.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,r,o,s){return i&&(!(i instanceof cu)||!this.widget.compare(i.widget)||e>0&&o<=0||n<this.length&&s<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}become(e){return e instanceof cu&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Yt.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,i=n&&n.state.doc,r=this.posAtStart;return i?i.slice(r,r+this.length):Yt.empty}domAtPos(e){return(this.length?e==0:this.side>0)?_r.before(this.dom):_r.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let r=this.dom.getClientRects(),o=null;if(!r.length)return null;let s=this.side?this.side<0:e>0;for(let a=s?r.length-1:0;o=r[a],!(e>0?a==0:a==r.length-1||o.top<o.bottom);a+=s?-1:1);return uk(o,!s)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Yd extends gn{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Yd&&e.side==this.side}split(){return new Yd(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?_r.before(this.dom):_r.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Yt.empty}get isHidden(){return!0}}el.prototype.children=cu.prototype.children=Yd.prototype.children=zS;function GD(t,e){let n=t.dom,{children:i}=t,r=0;for(let o=0;r<i.length;r++){let s=i[r],a=o+s.length;if(!(a==o&&s.getSide()<=0)){if(e>o&&e<a&&s.dom.parentNode==n)return s.domAtPos(e-o);if(e<=o)break;o=a}}for(let o=r;o>0;o--){let s=i[o-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let o=r;o<i.length;o++){let s=i[o];if(s.dom.parentNode==n)return s.domAtPos(0)}return new _r(n,0)}function KD(t,e,n){let i,{children:r}=t;n>0&&e instanceof tl&&r.length&&(i=r[r.length-1])instanceof tl&&i.mark.eq(e.mark)?KD(i,e.children[0],n-1):(r.push(e),e.setParent(t)),t.length+=e.length}function JD(t,e,n){let i=null,r=-1,o=null,s=-1;function a(u,f){for(let d=0,h=0;d<u.children.length&&h<=f;d++){let g=u.children[d],m=h+g.length;m>=f&&(g.children.length?a(g,f-h):(!o||o.isHidden&&n>0)&&(m>f||h==m&&g.getSide()>0)?(o=g,s=f-h):(h<f||h==m&&g.getSide()<0&&!g.isHidden)&&(i=g,r=f-h)),h=m}}a(t,e);let l=(n<0?i:o)||i||o;return l?l.coordsAt(Math.max(0,l==i?r:s),n):sye(t)}function sye(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=Ud(e);return n[n.length-1]||null}function US(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const eI=Object.create(null);function ZS(t,e,n){if(t==e)return!0;t||(t=eI),e||(e=eI);let i=Object.keys(t),r=Object.keys(e);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let o of i)if(o!=n&&(r.indexOf(o)==-1||t[o]!==e[o]))return!1;return!0}function qS(t,e,n){let i=!1;if(e)for(let r in e)n&&r in n||(i=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(n)for(let r in n)e&&e[r]==n[r]||(i=!0,r=="style"?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i}function aye(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let i=t.attributes[n];e[i.name]=i.value}return e}class Ei extends gn{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,i,r,o,s){if(i){if(!(i instanceof Ei))return!1;this.dom||i.transferDOM(this)}return r&&this.setDeco(i?i.attrs:null),ZD(this,e,n,i?i.children.slice():[],o,s),!0}split(e){let n=new Ei;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i,off:r}=this.childPos(e);r&&(n.append(this.children[i].split(r),0),this.children[i].merge(r,this.children[i].length,null,!1,0,0),i++);for(let o=i;o<this.children.length;o++)n.append(this.children[o],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){ZS(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){KD(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=US(n,this.attrs||{})),i&&(this.attrs=US({class:i},this.attrs||{}))}domAtPos(e){return GD(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?this.flags&4&&(BD(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(qS(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let r=this.dom.lastChild;for(;r&&gn.get(r)instanceof tl;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=gn.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!Ye.ios||!this.children.some(o=>o instanceof el))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let i of this.children){if(!(i instanceof el)||/[^ -~]/.test(i.text))return null;let r=Ud(i.dom);if(r.length!=1)return null;e+=r[0].width,n=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=JD(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,o=i.bottom-i.top;if(Math.abs(o-r.lineHeight)<2&&r.textHeight<o){let s=(o-r.textHeight)/2;return{top:i.top+s,bottom:i.bottom-s,left:i.left,right:i.left}}}return i}become(e){return!1}covers(){return!0}static find(e,n){for(let i=0,r=0;i<e.children.length;i++){let o=e.children[i],s=r+o.length;if(s>=n){if(o instanceof Ei)return o;if(s>n)break}r=s+o.breakAfter}return null}}class fu extends gn{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,r,o,s){return i&&(!(i instanceof fu)||!this.widget.compare(i.widget)||e>0&&o<=0||n<this.length&&s<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?_r.before(this.dom):_r.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let i=new fu(this.widget,n,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return zS}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Yt.empty}domBoundsAround(){return null}become(e){return e instanceof fu&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){return this.widget.coordsAt(this.dom,e,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:i}=this.deco;return n==i?!1:e<0?n<0:i>0}}class da{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Fr=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Fr||(Fr={}));class it extends Qc{constructor(e,n,i,r){super(),this.startSide=e,this.endSide=n,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new mm(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return n+=i&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new du(e,n,n,i,e.widget||null,!1)}static replace(e){let n=!!e.block,i,r;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:o,end:s}=tI(e,n);i=(o?n?-3e8:-1:5e8)-1,r=(s?n?2e8:1:-6e8)+1}return new du(e,i,r,n,e.widget||null,!0)}static line(e){return new vm(e)}static set(e,n=!1){return zt.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}it.none=zt.empty;class mm extends it{constructor(e){let{start:n,end:i}=tI(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof mm&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&ZS(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}mm.prototype.point=!1;class vm extends it{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof vm&&this.spec.class==e.spec.class&&ZS(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}vm.prototype.mapMode=er.TrackBefore,vm.prototype.point=!0;class du extends it{constructor(e,n,i,r,o,s){super(n,i,o,e),this.block=r,this.isReplace=s,this.mapMode=r?n<=0?er.TrackBefore:er.TrackAfter:er.TrackDel}get type(){return this.startSide!=this.endSide?Fr.WidgetRange:this.startSide<=0?Fr.WidgetBefore:Fr.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof du&&lye(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}du.prototype.point=!0;function tI(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return n==null&&(n=t.inclusive),i==null&&(i=t.inclusive),{start:n??e,end:i??e}}function lye(t,e){return t==e||!!(t&&e&&t.compare(e))}function YS(t,e,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=t?n[r]=Math.max(n[r],e):n.push(t,e)}class bm{constructor(e,n,i,r){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof fu&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Ei),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(fk(new Yd(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof fu)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:s,done:a}=this.cursor.next(this.skip);if(this.skip=0,a)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(fk(new el(this.text.slice(this.textOff,this.textOff+r)),n),i),this.atCursorPos=!0,this.textOff+=r,e-=r,i=0}}span(e,n,i,r){this.buildText(n-e,i,r),this.pos=n,this.openStart<0&&(this.openStart=r)}point(e,n,i,r,o,s){if(this.disallowBlockEffectsFor[s]&&i instanceof du){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=n-e;if(i instanceof du)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new fu(i.widget||new nI("div"),a,i));else{let l=cu.create(i.widget||new nI("span"),a,a?0:i.startSide),u=this.atCursorPos&&!l.isEditable&&o<=r.length&&(e<n||i.startSide>0),f=!l.isEditable&&(e<n||o>r.length||i.startSide<=0),d=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),u&&(d.append(fk(new Yd(1),r),o),o=r.length+Math.max(0,o-r.length)),d.append(fk(l,r),o),this.atCursorPos=f,this.pendingBuffer=f?e<n||o>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(e,n,i,r,o){let s=new bm(e,n,i,o);return s.openEnd=zt.spans(r,n,i,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function fk(t,e){for(let n of e)t=new tl(n,[t],t.length);return t}class nI extends da{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var mn=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(mn||(mn={}));const Zc=mn.LTR,VS=mn.RTL;function iI(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const uye=iI("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),cye=iI("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),XS=Object.create(null),ha=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);XS[e]=n,XS[n]=-e}function rI(t){return t<=247?uye[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?cye[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const fye=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class hu{get dir(){return this.level%2?VS:Zc}constructor(e,n,i){this.from=e,this.to=n,this.level=i}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,i,r){let o=-1;for(let s=0;s<e.length;s++){let a=e[s];if(a.from<=n&&a.to>=n){if(a.level==i)return s;(o<0||(r!=0?r<0?a.from<n:a.to>n:e[o].level>a.level))&&(o=s)}}if(o<0)throw new RangeError("Index out of range");return o}}function oI(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let i=t[n],r=e[n];if(i.from!=r.from||i.to!=r.to||i.direction!=r.direction||!oI(i.inner,r.inner))return!1}return!0}const nn=[];function dye(t,e,n,i,r){for(let o=0;o<=i.length;o++){let s=o?i[o-1].to:e,a=o<i.length?i[o].from:n,l=o?256:r;for(let u=s,f=l,d=l;u<a;u++){let h=rI(t.charCodeAt(u));h==512?h=f:h==8&&d==4&&(h=16),nn[u]=h==4?2:h,h&7&&(d=h),f=h}for(let u=s,f=l,d=l;u<a;u++){let h=nn[u];if(h==128)u<a-1&&f==nn[u+1]&&f&24?h=nn[u]=f:nn[u]=256;else if(h==64){let g=u+1;for(;g<a&&nn[g]==64;)g++;let m=u&&f==8||g<n&&nn[g]==8?d==1?1:8:256;for(let y=u;y<g;y++)nn[y]=m;u=g-1}else h==8&&d==1&&(nn[u]=1);f=h,h&7&&(d=h)}}}function hye(t,e,n,i,r){let o=r==1?2:1;for(let s=0,a=0,l=0;s<=i.length;s++){let u=s?i[s-1].to:e,f=s<i.length?i[s].from:n;for(let d=u,h,g,m;d<f;d++)if(g=XS[h=t.charCodeAt(d)])if(g<0){for(let y=a-3;y>=0;y-=3)if(ha[y+1]==-g){let x=ha[y+2],_=x&2?r:x&4?x&1?o:r:0;_&&(nn[d]=nn[ha[y]]=_),a=y;break}}else{if(ha.length==189)break;ha[a++]=d,ha[a++]=h,ha[a++]=l}else if((m=nn[d])==2||m==1){let y=m==r;l=y?0:1;for(let x=a-3;x>=0;x-=3){let _=ha[x+2];if(_&2)break;if(y)ha[x+2]|=2;else{if(_&4)break;ha[x+2]|=4}}}}}function pye(t,e,n,i){for(let r=0,o=i;r<=n.length;r++){let s=r?n[r-1].to:t,a=r<n.length?n[r].from:e;for(let l=s;l<a;){let u=nn[l];if(u==256){let f=l+1;for(;;)if(f==a){if(r==n.length)break;f=n[r++].to,a=r<n.length?n[r].from:e}else if(nn[f]==256)f++;else break;let d=o==1,h=(f<e?nn[f]:i)==1,g=d==h?d?1:2:i;for(let m=f,y=r,x=y?n[y-1].to:t;m>l;)m==x&&(m=n[--y].from,x=y?n[y-1].to:t),nn[--m]=g;l=f}else o=u,l++}}}function GS(t,e,n,i,r,o,s){let a=i%2?2:1;if(i%2==r%2)for(let l=e,u=0;l<n;){let f=!0,d=!1;if(u==o.length||l<o[u].from){let y=nn[l];y!=a&&(f=!1,d=y==16)}let h=!f&&a==1?[]:null,g=f?i:i+1,m=l;e:for(;;)if(u<o.length&&m==o[u].from){if(d)break e;let y=o[u];if(!f)for(let x=y.to,_=u+1;;){if(x==n)break e;if(_<o.length&&o[_].from==x)x=o[_++].to;else{if(nn[x]==a)break e;break}}if(u++,h)h.push(y);else{y.from>l&&s.push(new hu(l,y.from,g));let x=y.direction==Zc!=!(g%2);KS(t,x?i+1:i,r,y.inner,y.from,y.to,s),l=y.to}m=y.to}else{if(m==n||(f?nn[m]!=a:nn[m]==a))break;m++}h?GS(t,l,m,i+1,r,h,s):l<m&&s.push(new hu(l,m,g)),l=m}else for(let l=n,u=o.length;l>e;){let f=!0,d=!1;if(!u||l>o[u-1].to){let y=nn[l-1];y!=a&&(f=!1,d=y==16)}let h=!f&&a==1?[]:null,g=f?i:i+1,m=l;e:for(;;)if(u&&m==o[u-1].to){if(d)break e;let y=o[--u];if(!f)for(let x=y.from,_=u;;){if(x==e)break e;if(_&&o[_-1].to==x)x=o[--_].from;else{if(nn[x-1]==a)break e;break}}if(h)h.push(y);else{y.to<l&&s.push(new hu(y.to,l,g));let x=y.direction==Zc!=!(g%2);KS(t,x?i+1:i,r,y.inner,y.from,y.to,s),l=y.from}m=y.from}else{if(m==e||(f?nn[m-1]!=a:nn[m-1]==a))break;m--}h?GS(t,m,l,i+1,r,h,s):m<l&&s.push(new hu(m,l,g)),l=m}}function KS(t,e,n,i,r,o,s){let a=e%2?2:1;dye(t,r,o,i,a),hye(t,r,o,i,a),pye(r,o,i,a),GS(t,r,o,e,n,i,s)}function gye(t,e,n){if(!t)return[new hu(0,0,e==VS?1:0)];if(e==Zc&&!n.length&&!fye.test(t))return sI(t.length);if(n.length)for(;t.length>nn.length;)nn[nn.length]=256;let i=[],r=e==Zc?0:1;return KS(t,r,r,n,0,t.length,i),i}function sI(t){return[new hu(0,t,0)]}let aI="";function mye(t,e,n,i,r){var o;let s=i.head-t.from,a=hu.find(e,s,(o=i.bidiLevel)!==null&&o!==void 0?o:-1,i.assoc),l=e[a],u=l.side(r,n);if(s==u){let h=a+=r?1:-1;if(h<0||h>=e.length)return null;l=e[a=h],s=l.side(!r,n),u=l.side(r,n)}let f=Ki(t.text,s,l.forward(r,n));(f<l.from||f>l.to)&&(f=u),aI=t.text.slice(Math.min(s,f),Math.max(s,f));let d=a==(r?e.length-1:0)?null:e[a+(r?1:-1)];return d&&f==u&&d.level+(r?0:1)<l.level?he.cursor(d.side(!r,n)+t.from,d.forward(r,n)?1:-1,d.level):he.cursor(f+t.from,l.forward(r,n)?-1:1,l.level)}function vye(t,e,n){for(let i=e;i<n;i++){let r=rI(t.charCodeAt(i));if(r==1)return Zc;if(r==2||r==4)return VS}return Zc}const lI=Qe.define(),uI=Qe.define(),cI=Qe.define(),fI=Qe.define(),JS=Qe.define(),dI=Qe.define(),hI=Qe.define(),pI=Qe.define({combine:t=>t.some(e=>e)}),gI=Qe.define({combine:t=>t.some(e=>e)});class Vd{constructor(e,n="nearest",i="nearest",r=5,o=5,s=!1){this.range=e,this.y=n,this.x=i,this.yMargin=r,this.xMargin=o,this.isSnapshot=s}map(e){return e.empty?this:new Vd(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Vd(he.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const dk=_t.define({map:(t,e)=>t.map(e)});function is(t,e,n){let i=t.facet(fI);i.length?i[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const hk=Qe.define({combine:t=>t.length?t[0]:!0});let bye=0;const km=Qe.define();class li{constructor(e,n,i,r,o){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=r,this.extension=o(this)}static define(e,n){const{eventHandlers:i,eventObservers:r,provide:o,decorations:s}=n||{};return new li(bye++,e,i,r,a=>{let l=[km.of(a)];return s&&l.push(ym.of(u=>{let f=u.plugin(a);return f?s(f):it.none})),o&&l.push(o(a)),l})}static fromClass(e,n){return li.define(i=>new e(i),n)}}class e4{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(is(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){is(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(i){is(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const mI=Qe.define(),t4=Qe.define(),ym=Qe.define(),vI=Qe.define(),n4=Qe.define(),bI=Qe.define();function kI(t,e){let n=t.state.facet(bI);if(!n.length)return n;let i=n.map(o=>o instanceof Function?o(t):o),r=[];return zt.spans(i,e.from,e.to,{point(){},span(o,s,a,l){let u=o-e.from,f=s-e.from,d=r;for(let h=a.length-1;h>=0;h--,l--){let g=a[h].spec.bidiIsolate,m;if(g==null&&(g=vye(e.text,u,f)),l>0&&d.length&&(m=d[d.length-1]).to==u&&m.direction==g)m.to=f,d=m.inner;else{let y={from:u,to:f,direction:g,inner:[]};d.push(y),d=y.inner}}}}),r}const yI=Qe.define();function wI(t){let e=0,n=0,i=0,r=0;for(let o of t.state.facet(yI)){let s=o(t);s&&(s.left!=null&&(e=Math.max(e,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(i=Math.max(i,s.top)),s.bottom!=null&&(r=Math.max(r,s.bottom)))}return{left:e,right:n,top:i,bottom:r}}const wm=Qe.define();class rs{constructor(e,n,i,r){this.fromA=e,this.toA=n,this.fromB=i,this.toB=r}join(e){return new rs(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let r=e[n-1];if(!(r.fromA>i.toA)){if(r.toA<i.fromA)break;i=i.join(r),e.splice(n-1,1)}}return e.splice(n,0,i),e}static extendWithRanges(e,n){if(n.length==0)return e;let i=[];for(let r=0,o=0,s=0,a=0;;r++){let l=r==e.length?null:e[r],u=s-a,f=l?l.fromB:1e9;for(;o<n.length&&n[o]<f;){let d=n[o],h=n[o+1],g=Math.max(a,d),m=Math.min(f,h);if(g<=m&&new rs(g+u,m+u,g,m).addToSet(i),h>f)break;o+=2}if(!l)return i;new rs(l.fromA,l.toA,l.fromB,l.toB).addToSet(i),s=l.toA,a=l.toB}}}class pk{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Ci.empty(this.startState.doc.length);for(let o of i)this.changes=this.changes.compose(o.changes);let r=[];this.changes.iterChangedRanges((o,s,a,l)=>r.push(new rs(o,s,a,l))),this.changedRanges=r}static create(e,n,i){return new pk(e,n,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class xI extends gn{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new Ei],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new rs(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:u,toA:f})=>f<this.minWidthFrom||u>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let r=-1;this.view.inputState.composing>=0&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?r=this.domChanged.newSel.head:!Sye(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let o=r>-1?yye(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:f}=this.hasComposition;i=new rs(u,f,e.changes.mapPos(u,-1),e.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Ye.ie||Ye.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,a=this.updateDeco(),l=_ye(s,a,e.changes);return i=rs.extendWithRanges(i,l),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=Ye.chrome||Ye.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||r.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.children)s instanceof fu&&s.widget instanceof _I&&o.push(s.dom);r.updateGaps(o)}updateChildren(e,n,i){let r=i?i.range.addToSet(e.slice()):e,o=this.childCursor(n);for(let s=r.length-1;;s--){let a=s>=0?r[s]:null;if(!a)break;let{fromA:l,toA:u,fromB:f,toB:d}=a,h,g,m,y;if(i&&i.range.fromB<d&&i.range.toB>f){let E=bm.build(this.view.state.doc,f,i.range.fromB,this.decorations,this.dynamicDecorationMap),N=bm.build(this.view.state.doc,i.range.toB,d,this.decorations,this.dynamicDecorationMap);g=E.breakAtStart,m=E.openStart,y=N.openEnd;let M=this.compositionView(i);N.breakAtStart?M.breakAfter=1:N.content.length&&M.merge(M.length,M.length,N.content[0],!1,N.openStart,0)&&(M.breakAfter=N.content[0].breakAfter,N.content.shift()),E.content.length&&M.merge(0,0,E.content[E.content.length-1],!0,0,E.openEnd)&&E.content.pop(),h=E.content.concat(M).concat(N.content)}else({content:h,breakAtStart:g,openStart:m,openEnd:y}=bm.build(this.view.state.doc,f,d,this.decorations,this.dynamicDecorationMap));let{i:x,off:_}=o.findPos(u,1),{i:S,off:C}=o.findPos(l,-1);UD(this,S,C,x,_,h,g,m,y)}i&&this.fixCompositionDOM(i)}compositionView(e){let n=new el(e.text.nodeValue);n.flags|=8;for(let{deco:r}of e.marks)n=new tl(r,[n],n.length);let i=new Ei;return i.append(n,0),i}fixCompositionDOM(e){let n=(o,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let a=gn.get(o);a&&a!=s&&(a.dom=null),s.setDOM(o)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];n(e.line,r);for(let o=e.marks.length-1;o>=-1;o--)i=r.childPos(i.off,1),r=r.children[i.i],n(o>=0?e.marks[o].node:e.text,r)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,o=!r&&lk(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||n||o))return;let s=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(a.anchor)),u=a.empty?l:this.moveToLine(this.domAtPos(a.head));if(Ye.gecko&&a.empty&&!this.hasComposition&&kye(l)){let d=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(d,l.node.childNodes[l.offset]||null)),l=u=new _r(d,0),s=!0}let f=this.view.observer.selectionRange;(s||!f.focusNode||(!pm(l.node,l.offset,f.anchorNode,f.anchorOffset)||!pm(u.node,u.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,a))&&(this.view.observer.ignore(()=>{Ye.android&&Ye.chrome&&this.dom.contains(f.focusNode)&&Oye(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let d=ak(this.view.root);if(d)if(a.empty){if(Ye.gecko){let h=wye(l.node,l.offset);if(h&&h!=3){let g=SI(l.node,l.offset,h==1?1:-1);g&&(l=new _r(g.node,g.offset))}}d.collapse(l.node,l.offset),a.bidiLevel!=null&&d.caretBidiLevel!==void 0&&(d.caretBidiLevel=a.bidiLevel)}else if(d.extend){d.collapse(l.node,l.offset);try{d.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();a.anchor>a.head&&([l,u]=[u,l]),h.setEnd(u.node,u.offset),h.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(h)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new _r(f.anchorNode,f.anchorOffset),this.impreciseHead=u.precise?null:new _r(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&pm(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=ak(e.root),{anchorNode:r,anchorOffset:o}=e.observer.selectionRange;if(!i||!n.empty||!n.assoc||!i.modify)return;let s=Ei.find(this,n.head);if(!s)return;let a=s.posAtStart;if(n.head==a||n.head==a+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let f=this.domAtPos(n.head+n.assoc);i.collapse(f.node,f.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let d=e.observer.selectionRange;e.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=n.from&&i.collapse(r,o)}moveToLine(e){let n=this.dom,i;if(e.node!=n)return e;for(let r=e.offset;!i&&r<n.childNodes.length;r++){let o=gn.get(n.childNodes[r]);o instanceof Ei&&(i=o.domAtPos(0))}for(let r=e.offset-1;!i&&r>=0;r--){let o=gn.get(n.childNodes[r]);o instanceof Ei&&(i=o.domAtPos(o.length))}return i?new _r(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=gn.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let r=this.children[n];if(i<r.length||r instanceof Ei)break;n++,i=0}return this.children[n].domAtPos(i)}coordsAt(e,n){let i=null,r=0;for(let o=this.length,s=this.children.length-1;s>=0;s--){let a=this.children[s],l=o-a.breakAfter,u=l-a.length;if(l<e)break;u<=e&&(u<e||a.covers(-1))&&(l>e||a.covers(1))&&(!i||a instanceof Ei&&!(i instanceof Ei&&n>=0))&&(i=a,r=u),o=u}return i?i.coordsAt(e-r,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),r=this.children[n];if(!(r instanceof Ei))return null;for(;r.children.length;){let{i:a,off:l}=r.childPos(i,1);for(;;a++){if(a==r.children.length)return null;if((r=r.children[a]).length)break}i=l}if(!(r instanceof el))return null;let o=Ki(r.text,i);if(o==i)return null;let s=Uc(r.dom,i,o).getClientRects();for(let a=0;a<s.length;a++){let l=s[a];if(a==s.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:i,to:r}=e,o=this.view.contentDOM.clientWidth,s=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,l=this.view.textDirection==mn.LTR;for(let u=0,f=0;f<this.children.length;f++){let d=this.children[f],h=u+d.length;if(h>r)break;if(u>=i){let g=d.dom.getBoundingClientRect();if(n.push(g.height),s){let m=d.dom.lastChild,y=m?Ud(m):[];if(y.length){let x=y[y.length-1],_=l?x.right-g.left:g.right-x.left;_>a&&(a=_,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+d.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?mn.RTL:mn.LTR}measureTextSize(){for(let o of this.children)if(o instanceof Ei){let s=o.measureTextSize();if(s)return s}let e=document.createElement("div"),n,i,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=Ud(e.firstChild)[0];n=e.getBoundingClientRect().height,i=o?o.width/27:7,r=o?o.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:r}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new QD(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,r=0;;r++){let o=r==n.viewports.length?null:n.viewports[r],s=o?o.from-1:this.length;if(s>i){let a=(n.lineBlockAt(s).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(it.replace({widget:new _I(a),block:!0,inclusive:!0,isBlockGap:!0}).range(i,s))}if(!o)break;i=o.to+1}return it.set(e)}updateDeco(){let e=this.view.state.facet(ym).map((r,o)=>(this.dynamicDecorationMap[o]=typeof r=="function")?r(this.view):r),n=!1,i=this.view.state.facet(vI).map((r,o)=>{let s=typeof r=="function";return s&&(n=!0),s?r(this.view):r});i.length&&(this.dynamicDecorationMap[e.length]=n,e.push(zt.join(i)));for(let r=e.length;r<e.length+3;r++)this.dynamicDecorationMap[r]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){if(e.isSnapshot){let u=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=u.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}let{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),r;if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let o=wI(this.view),s={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;Kke(this.view.scrollDOM,s,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==mn.LTR)}}function kye(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}class _I extends da{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}}function OI(t,e){let n=t.observer.selectionRange,i=n.focusNode&&SI(n.focusNode,n.focusOffset,0);if(!i)return null;let r=e-i.offset;return{from:r,to:r+i.node.nodeValue.length,node:i.node}}function yye(t,e,n){let i=OI(t,n);if(!i)return null;let{node:r,from:o,to:s}=i,a=r.nodeValue;if(/[\n\r]/.test(a)||t.state.doc.sliceString(i.from,i.to)!=a)return null;let l=e.invertedDesc,u=new rs(l.mapPos(o),l.mapPos(s),o,s),f=[];for(let d=r.parentNode;;d=d.parentNode){let h=gn.get(d);if(h instanceof tl)f.push({node:d,deco:h.mark});else{if(h instanceof Ei||d.nodeName=="DIV"&&d.parentNode==t.contentDOM)return{range:u,text:r,marks:f,line:d};if(d!=t.contentDOM)f.push({node:d,deco:new mm({inclusive:!0,attributes:aye(d),tagName:d.tagName.toLowerCase()})});else return null}}}function SI(t,e,n){if(n<=0)for(let i=t,r=e;;){if(i.nodeType==3)return{node:i,offset:r};if(i.nodeType==1&&r>0)i=i.childNodes[r-1],r=Ja(i);else break}if(n>=0)for(let i=t,r=e;;){if(i.nodeType==3)return{node:i,offset:r};if(i.nodeType==1&&r<i.childNodes.length&&n>=0)i=i.childNodes[r],r=0;else break}return null}function wye(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let xye=class{constructor(){this.changes=[]}compareRange(e,n){YS(e,n,this.changes)}comparePoint(e,n){YS(e,n,this.changes)}};function _ye(t,e,n){let i=new xye;return zt.compare(t,e,n,i),i.changes}function Oye(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function Sye(t,e){let n=!1;return e&&t.iterChangedRanges((i,r)=>{i<e.to&&r>e.from&&(n=!0)}),n}function Cye(t,e,n=1){let i=t.charCategorizer(e),r=t.doc.lineAt(e),o=e-r.from;if(r.length==0)return he.cursor(e);o==0?n=1:o==r.length&&(n=-1);let s=o,a=o;n<0?s=Ki(r.text,o,!1):a=Ki(r.text,o);let l=i(r.text.slice(s,a));for(;s>0;){let u=Ki(r.text,s,!1);if(i(r.text.slice(u,s))!=l)break;s=u}for(;a<r.length;){let u=Ki(r.text,a);if(i(r.text.slice(a,u))!=l)break;a=u}return he.range(s+r.from,a+r.from)}function Eye(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function Tye(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function i4(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function CI(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function EI(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function r4(t,e,n){let i,r,o,s,a=!1,l,u,f,d;for(let m=t.firstChild;m;m=m.nextSibling){let y=Ud(m);for(let x=0;x<y.length;x++){let _=y[x];r&&i4(r,_)&&(_=CI(EI(_,r.bottom),r.top));let S=Eye(e,_),C=Tye(n,_);if(S==0&&C==0)return m.nodeType==3?TI(m,e,n):r4(m,e,n);if(!i||s>C||s==C&&o>S){i=m,r=_,o=S,s=C;let E=C?n<_.top?-1:1:S?e<_.left?-1:1:0;a=!E||(E>0?x<y.length-1:x>0)}S==0?n>_.bottom&&(!f||f.bottom<_.bottom)?(l=m,f=_):n<_.top&&(!d||d.top>_.top)&&(u=m,d=_):f&&i4(f,_)?f=EI(f,_.bottom):d&&i4(d,_)&&(d=CI(d,_.top))}}if(f&&f.bottom>=n?(i=l,r=f):d&&d.top<=n&&(i=u,r=d),!i)return{node:t,offset:0};let h=Math.max(r.left,Math.min(r.right,e));if(i.nodeType==3)return TI(i,h,n);if(a&&i.contentEditable!="false")return r4(i,h,n);let g=Array.prototype.indexOf.call(t.childNodes,i)+(e>=(r.left+r.right)/2?1:0);return{node:t,offset:g}}function TI(t,e,n){let i=t.nodeValue.length,r=-1,o=1e9,s=0;for(let a=0;a<i;a++){let l=Uc(t,a,a+1).getClientRects();for(let u=0;u<l.length;u++){let f=l[u];if(f.top==f.bottom)continue;s||(s=e-f.left);let d=(f.top>n?f.top-n:n-f.bottom)-1;if(f.left-1<=e&&f.right+1>=e&&d<o){let h=e>=(f.left+f.right)/2,g=h;if((Ye.chrome||Ye.gecko)&&Uc(t,a).getBoundingClientRect().left==f.right&&(g=!h),d<=0)return{node:t,offset:a+(g?1:0)};r=a+(g?1:0),o=d}}}return{node:t,offset:r>-1?r:s>0?t.nodeValue.length:0}}function $I(t,e,n,i=-1){var r,o;let s=t.contentDOM.getBoundingClientRect(),a=s.top+t.viewState.paddingTop,l,{docHeight:u}=t.viewState,{x:f,y:d}=e,h=d-a;if(h<0)return 0;if(h>u)return t.state.doc.length;for(let E=t.viewState.heightOracle.textHeight/2,N=!1;l=t.elementAtHeight(h),l.type!=Fr.Text;)for(;h=i>0?l.bottom+E:l.top-E,!(h>=0&&h<=u);){if(N)return n?null:0;N=!0,i=-i}d=a+h;let g=l.from;if(g<t.viewport.from)return t.viewport.from==0?0:n?null:MI(t,s,l,f,d);if(g>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:MI(t,s,l,f,d);let m=t.dom.ownerDocument,y=t.root.elementFromPoint?t.root:m,x=y.elementFromPoint(f,d);x&&!t.contentDOM.contains(x)&&(x=null),x||(f=Math.max(s.left+1,Math.min(s.right-1,f)),x=y.elementFromPoint(f,d),x&&!t.contentDOM.contains(x)&&(x=null));let _,S=-1;if(x&&((r=t.docView.nearest(x))===null||r===void 0?void 0:r.isEditable)!=!1){if(m.caretPositionFromPoint){let E=m.caretPositionFromPoint(f,d);E&&({offsetNode:_,offset:S}=E)}else if(m.caretRangeFromPoint){let E=m.caretRangeFromPoint(f,d);E&&({startContainer:_,startOffset:S}=E,(!t.contentDOM.contains(_)||Ye.safari&&$ye(_,S,f)||Ye.chrome&&Mye(_,S,f))&&(_=void 0))}}if(!_||!t.docView.dom.contains(_)){let E=Ei.find(t.docView,g);if(!E)return h>l.top+l.height/2?l.to:l.from;({node:_,offset:S}=r4(E.dom,f,d))}let C=t.docView.nearest(_);if(!C)return null;if(C.isWidget&&((o=C.dom)===null||o===void 0?void 0:o.nodeType)==1){let E=C.dom.getBoundingClientRect();return e.y<E.top||e.y<=E.bottom&&e.x<=(E.left+E.right)/2?C.posAtStart:C.posAtEnd}else return C.localPosFromDOM(_,S)+C.posAtStart}function MI(t,e,n,i,r){let o=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let a=t.viewState.heightOracle.textHeight,l=Math.floor((r-n.top-(t.defaultLineHeight-a)*.5)/a);o+=l*t.viewState.heightOracle.lineLength}let s=t.state.sliceDoc(n.from,n.to);return n.from+IS(s,o,t.state.tabSize)}function $ye(t,e,n){let i;if(t.nodeType!=3||e!=(i=t.nodeValue.length))return!1;for(let r=t.nextSibling;r;r=r.nextSibling)if(r.nodeType!=1||r.nodeName!="BR")return!1;return Uc(t,i-1,i).getBoundingClientRect().left>n}function Mye(t,e,n){if(e!=0)return!1;for(let r=t;;){let o=r.parentNode;if(!o||o.nodeType!=1||o.firstChild!=r)return!1;if(o.classList.contains("cm-line"))break;r=o}let i=t.nodeType==1?t.getBoundingClientRect():Uc(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}function o4(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let i of n.type)if(i.to>e||i.to==e&&(i.to==n.to||i.type==Fr.Text))return i}return n}function Nye(t,e,n,i){let r=o4(t,e.head),o=!i||r.type!=Fr.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(o){let s=t.dom.getBoundingClientRect(),a=t.textDirectionAt(r.from),l=t.posAtCoords({x:n==(a==mn.LTR)?s.right-1:s.left+1,y:(o.top+o.bottom)/2});if(l!=null)return he.cursor(l,n?-1:1)}return he.cursor(n?r.to:r.from,n?-1:1)}function NI(t,e,n,i){let r=t.state.doc.lineAt(e.head),o=t.bidiSpans(r),s=t.textDirectionAt(r.from);for(let a=e,l=null;;){let u=mye(r,o,s,a,n),f=aI;if(!u){if(r.number==(n?t.state.doc.lines:1))return a;f=`
|
||
`,r=t.state.doc.line(r.number+(n?1:-1)),o=t.bidiSpans(r),u=t.visualLineSide(r,!n)}if(l){if(!l(f))return a}else{if(!i)return u;l=i(f)}a=u}}function Aye(t,e,n){let i=t.state.charCategorizer(e),r=i(n);return o=>{let s=i(o);return r==Nn.Space&&(r=s),r==s}}function Pye(t,e,n,i){let r=e.head,o=n?1:-1;if(r==(n?t.state.doc.length:0))return he.cursor(r,e.assoc);let s=e.goalColumn,a,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(r,e.assoc||-1),f=t.documentTop;if(u)s==null&&(s=u.left-l.left),a=o<0?u.top:u.bottom;else{let g=t.viewState.lineBlockAt(r);s==null&&(s=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-g.from))),a=(o<0?g.top:g.bottom)+f}let d=l.left+s,h=i??t.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let m=a+(h+g)*o,y=$I(t,{x:d,y:m},!1,o);if(m<l.top||m>l.bottom||(o<0?y<r:y>r)){let x=t.docView.coordsForChar(y),_=!x||m<x.top?-1:1;return he.cursor(y,_,void 0,s)}}}function gk(t,e,n){for(;;){let i=0;for(let r of t)r.between(e-1,e+1,(o,s,a)=>{if(e>o&&e<s){let l=i||n||(e-o<s-e?-1:1);e=l<0?o:s,i=l}});if(!i)return e}}function s4(t,e,n){let i=gk(t.state.facet(n4).map(r=>r(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:he.cursor(i,i<n.from?1:-1)}class Dye{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Ye.safari&&e.contentDOM.addEventListener("input",()=>null),Ye.gecko&&Xye(e.contentDOM.ownerDocument)}handleEvent(e){!Wye(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,n);for(let r of i.handlers){if(n.defaultPrevented)break;if(r(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=Iye(e),i=this.handlers,r=this.view.contentDOM;for(let o in n)if(o!="scroll"){let s=!n[o].handlers.length,a=i[o];a&&s!=!a.handlers.length&&(r.removeEventListener(o,this.handleEvent),a=null),a||r.addEventListener(o,this.handleEvent,{passive:s})}for(let o in i)o!="scroll"&&!n[o]&&r.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()<this.lastEscPress+2e3)return!0;if(e.keyCode!=27&&DI.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),Ye.android&&Ye.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return Ye.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=PI.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||Lye.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,qd(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ye.safari&&!Ye.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function AI(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(r){is(n.state,r)}}}function Iye(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let r=i.spec;if(r&&r.domEventHandlers)for(let o in r.domEventHandlers){let s=r.domEventHandlers[o];s&&n(o).handlers.push(AI(i.value,s))}if(r&&r.domEventObservers)for(let o in r.domEventObservers){let s=r.domEventObservers[o];s&&n(o).observers.push(AI(i.value,s))}}for(let i in As)n(i).handlers.push(As[i]);for(let i in Ps)n(i).observers.push(Ps[i]);return e}const PI=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Lye="dthko",DI=[16,17,18,20,91,92,224,225],mk=6;function vk(t){return Math.max(0,t)*.7+8}function Rye(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class jye{constructor(e,n,i,r){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=Jke(e.contentDOM),this.atoms=e.state.facet(n4).map(s=>s(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(jt.allowMultipleSelections)&&Fye(e,n),this.dragging=Bye(e,n)&&QI(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var n;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Rye(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let i=0,r=0,o=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=wI(this.view);e.clientX-s.left<=o.left+mk?i=-vk(o.left-e.clientX):e.clientX+s.right>=o.right-mk&&(i=vk(e.clientX-o.right)),e.clientY-s.top<=o.top+mk?r=-vk(o.top-e.clientY):e.clientY+s.bottom>=o.bottom-mk&&(r=vk(e.clientY-o.bottom)),this.setScrollSpeed(i,r)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],o=null;if(r.empty){let s=gk(this.atoms,r.from,0);s!=r.from&&(o=he.cursor(s,-1))}else{let s=gk(this.atoms,r.from,-1),a=gk(this.atoms,r.to,1);(s!=r.from||a!=r.to)&&(o=he.range(r.from==r.anchor?s:a,r.from==r.head?s:a))}o&&(n||(n=e.ranges.slice()),n[i]=o)}return n?he.create(n,e.mainIndex):e}select(e){let{view:n}=this,i=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function Fye(t,e){let n=t.state.facet(lI);return n.length?n[0](e):Ye.mac?e.metaKey:e.ctrlKey}function zye(t,e){let n=t.state.facet(uI);return n.length?n[0](e):Ye.mac?!e.altKey:!e.ctrlKey}function Bye(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=ak(t.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let o=0;o<r.length;o++){let s=r[o];if(s.left<=e.clientX&&s.right>=e.clientX&&s.top<=e.clientY&&s.bottom>=e.clientY)return!0}return!1}function Wye(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,i;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(i=gn.get(n))&&i.ignoreEvent(e))return!1;return!0}const As=Object.create(null),Ps=Object.create(null),II=Ye.ie&&Ye.ie_version<15||Ye.ios&&Ye.webkit_version<604;function Hye(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),LI(t,n.value)},50)}function LI(t,e){let{state:n}=t,i,r=1,o=n.toText(e),s=o.lines==n.selection.ranges.length;if(a4!=null&&n.selection.ranges.every(l=>l.empty)&&a4==o.toString()){let l=-1;i=n.changeByRange(u=>{let f=n.doc.lineAt(u.from);if(f.from==l)return{range:u};l=f.from;let d=n.toText((s?o.line(r++).text:e)+n.lineBreak);return{changes:{from:f.from,insert:d},range:he.cursor(u.from+d.length)}})}else s?i=n.changeByRange(l=>{let u=o.line(r++);return{changes:{from:l.from,to:l.to,insert:u.text},range:he.cursor(l.from+u.length)}}):i=n.replaceSelection(o);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Ps.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},As.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1),Ps.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},Ps.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},As.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(cI))if(n=i(t,e),n)break;if(!n&&e.button==0&&(n=Zye(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new jye(t,e,n,i)),i&&t.observer.ignore(()=>FD(t.contentDOM));let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}return!1};function RI(t,e,n,i){if(i==1)return he.cursor(e,n);if(i==2)return Cye(t.state,e,n);{let r=Ei.find(t.docView,e),o=t.state.doc.lineAt(r?r.posAtEnd:e),s=r?r.posAtStart:o.from,a=r?r.posAtEnd:o.to;return a<t.state.doc.length&&a==o.to&&a++,he.range(s,a)}}let jI=(t,e)=>t>=e.top&&t<=e.bottom,FI=(t,e,n)=>jI(e,n)&&t>=n.left&&t<=n.right;function Qye(t,e,n,i){let r=Ei.find(t.docView,e);if(!r)return 1;let o=e-r.posAtStart;if(o==0)return 1;if(o==r.length)return-1;let s=r.coordsAt(o,-1);if(s&&FI(n,i,s))return-1;let a=r.coordsAt(o,1);return a&&FI(n,i,a)?1:s&&jI(i,s)?-1:1}function zI(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:Qye(t,n,e.clientX,e.clientY)}}const Uye=Ye.ie&&Ye.ie_version<=11;let BI=null,WI=0,HI=0;function QI(t){if(!Uye)return t.detail;let e=BI,n=HI;return BI=t,HI=Date.now(),WI=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(WI+1)%3:1}function Zye(t,e){let n=zI(t,e),i=QI(e),r=t.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),r=r.map(o.changes))},get(o,s,a){let l=zI(t,o),u,f=RI(t,l.pos,l.bias,i);if(n.pos!=l.pos&&!s){let d=RI(t,n.pos,n.bias,i),h=Math.min(d.from,f.from),g=Math.max(d.to,f.to);f=h<f.from?he.range(h,g):he.range(g,h)}return s?r.replaceRange(r.main.extend(f.from,f.to)):a&&i==1&&r.ranges.length>1&&(u=qye(r,l.pos))?u:a?r.addRange(f):he.create([f])}}}function qye(t,e){for(let n=0;n<t.ranges.length;n++){let{from:i,to:r}=t.ranges[n];if(i<=e&&r>=e)return he.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}As.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let o=r.posAtStart,s=o+r.length;(o>=n.to||s<=n.from)&&(n=he.range(o,s))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1},As.dragend=t=>(t.inputState.draggedContent=null,!1);function UI(t,e,n,i){if(!n)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,s=i&&o&&zye(t,e)?{from:o.from,to:o.to}:null,a={from:r,insert:n},l=t.state.changes(s?[s,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"}),t.inputState.draggedContent=null}As.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),r=0,o=()=>{++r==n.length&&UI(t,e,i.filter(s=>s!=null).join(t.state.lineBreak),!1)};for(let s=0;s<n.length;s++){let a=new FileReader;a.onerror=o,a.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(a.result)||(i[s]=a.result),o()},a.readAsText(n[s])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return UI(t,e,i,!0),!0}return!1},As.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=II?null:e.clipboardData;return n?(LI(t,n.getData("text/plain")||n.getData("text/uri-text")),!0):(Hye(t),!1)};function Yye(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}function Vye(t){let e=[],n=[],i=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let r=-1;for(let{from:o}of t.selection.ranges){let s=t.doc.lineAt(o);s.number>r&&(e.push(s.text),n.push({from:s.from,to:Math.min(t.doc.length,s.to+1)})),r=s.number}i=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:i}}let a4=null;As.copy=As.cut=(t,e)=>{let{text:n,ranges:i,linewise:r}=Vye(t.state);if(!n&&!r)return!1;a4=r?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let o=II?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Yye(t,n),!1)};const ZI=ca.define();function qI(t,e){let n=[];for(let i of t.facet(hI)){let r=i(t,e);r&&n.push(r)}return n?t.update({effects:n,annotations:ZI.of(!0)}):null}function YI(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=qI(t.state,e);n?t.dispatch(n):t.update([])}},10)}Ps.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),YI(t)},Ps.blur=t=>{t.observer.clearSelectionRange(),YI(t)},Ps.compositionstart=Ps.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)},Ps.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Ye.chrome&&Ye.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)},Ps.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},As.beforeinput=(t,e)=>{var n;let i;if(Ye.chrome&&Ye.android&&(i=PI.find(r=>r.inputType==e.inputType))&&(t.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let r=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>r+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const VI=new Set;function Xye(t){VI.has(t)||(VI.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const XI=["pre-wrap","normal","pre-line","break-spaces"];class Gye{constructor(e){this.lineWrapping=e,this.doc=Yt.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return XI.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i<e.length;i++){let r=e[i];r<0?i++:this.heightSamples[Math.floor(r*10)]||(n=!0,this.heightSamples[Math.floor(r*10)]=!0)}return n}refresh(e,n,i,r,o,s){let a=XI.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=n,this.charWidth=i,this.textHeight=r,this.lineLength=o,l){this.heightSamples={};for(let u=0;u<s.length;u++){let f=s[u];f<0?u++:this.heightSamples[Math.floor(f*10)]=!0}}return l}}class Kye{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class pa{constructor(e,n,i,r,o){this.from=e,this.length=n,this.top=i,this.height=r,this._content=o}get type(){return typeof this._content=="number"?Fr.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof du?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new pa(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var vn=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(vn||(vn={}));const bk=.001;class zr{constructor(e,n,i=2){this.length=e,this.height=n,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>bk&&(e.heightChanged=!0),this.height=n)}replace(e,n,i){return zr.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,r){let o=this,s=i.doc;for(let a=r.length-1;a>=0;a--){let{fromA:l,toA:u,fromB:f,toB:d}=r[a],h=o.lineAt(l,vn.ByPosNoHeight,i.setDoc(n),0,0),g=h.to>=u?h:o.lineAt(u,vn.ByPosNoHeight,i,0,0);for(d+=g.to-u,u=g.to;a>0&&h.from<=r[a-1].toA;)l=r[a-1].fromA,f=r[a-1].fromB,a--,l<h.from&&(h=o.lineAt(l,vn.ByPosNoHeight,i,0,0));f+=h.from-l,l=h.from;let m=l4.build(i.setDoc(s),e,f,d);o=o.replace(l,u,m)}return o.updateHeight(i,0)}static empty(){return new $o(0,0)}static of(e){if(e.length==1)return e[0];let n=0,i=e.length,r=0,o=0;for(;;)if(n==i)if(r>o*2){let a=e[n-1];a.break?e.splice(--n,1,a.left,null,a.right):e.splice(--n,1,a.left,a.right),i+=1+a.break,r-=a.size}else if(o>r*2){let a=e[i];a.break?e.splice(i,1,a.left,null,a.right):e.splice(i,1,a.left,a.right),i+=2+a.break,o-=a.size}else break;else if(r<o){let a=e[n++];a&&(r+=a.size)}else{let a=e[--i];a&&(o+=a.size)}let s=0;return e[n-1]==null?(s=1,n--):e[n]==null&&(s=1,i++),new Jye(zr.of(e.slice(0,n)),s,zr.of(e.slice(i)))}}zr.prototype.size=1;class GI extends zr{constructor(e,n,i){super(e,n),this.deco=i}blockAt(e,n,i,r){return new pa(r,this.length,i,this.height,this.deco||0)}lineAt(e,n,i,r,o){return this.blockAt(0,i,r,o)}forEachLine(e,n,i,r,o,s){e<=o+this.length&&n>=o&&s(this.blockAt(0,i,r,o))}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more&&this.setHeight(e,r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class $o extends GI{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,r){return new pa(r,this.length,i,this.height,this.breaks)}replace(e,n,i){let r=i[0];return i.length==1&&(r instanceof $o||r instanceof nr&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof nr?r=new $o(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):zr.of(i)}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more?this.setHeight(e,r.heights[r.index++]):(i||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class nr extends zr{constructor(e){super(e,0)}heightMetrics(e,n){let i=e.doc.lineAt(n).number,r=e.doc.lineAt(n+this.length).number,o=r-i+1,s,a=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*o);s=l/o,this.length>o+1&&(a=(this.height-l)/(this.length-o-1))}else s=this.height/o;return{firstLine:i,lastLine:r,perLine:s,perChar:a}}blockAt(e,n,i,r){let{firstLine:o,lastLine:s,perLine:a,perChar:l}=this.heightMetrics(n,r);if(n.lineWrapping){let u=r+Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length),f=n.doc.lineAt(u),d=a+f.length*l,h=Math.max(i,e-d/2);return new pa(f.from,f.length,h,d,0)}else{let u=Math.max(0,Math.min(s-o,Math.floor((e-i)/a))),{from:f,length:d}=n.doc.line(o+u);return new pa(f,d,i+a*u,a,0)}}lineAt(e,n,i,r,o){if(n==vn.ByHeight)return this.blockAt(e,i,r,o);if(n==vn.ByPosNoHeight){let{from:g,to:m}=i.doc.lineAt(e);return new pa(g,m-g,0,0,0)}let{firstLine:s,perLine:a,perChar:l}=this.heightMetrics(i,o),u=i.doc.lineAt(e),f=a+u.length*l,d=u.number-s,h=r+a*d+l*(u.from-o-d);return new pa(u.from,u.length,Math.max(r,Math.min(h,r+this.height-f)),f,0)}forEachLine(e,n,i,r,o,s){e=Math.max(e,o),n=Math.min(n,o+this.length);let{firstLine:a,perLine:l,perChar:u}=this.heightMetrics(i,o);for(let f=e,d=r;f<=n;){let h=i.doc.lineAt(f);if(f==e){let m=h.number-a;d+=l*m+u*(e-o-m)}let g=l+u*h.length;s(new pa(h.from,h.length,d,g,0)),d+=g,f=h.to+1}}replace(e,n,i){let r=this.length-n;if(r>0){let o=i[i.length-1];o instanceof nr?i[i.length-1]=new nr(o.length+r):i.push(null,new nr(r-1))}if(e>0){let o=i[0];o instanceof nr?i[0]=new nr(e+o.length):i.unshift(new nr(e-1),null)}return zr.of(i)}decomposeLeft(e,n){n.push(new nr(e-1),null)}decomposeRight(e,n){n.push(null,new nr(this.length-e-1))}updateHeight(e,n=0,i=!1,r){let o=n+this.length;if(r&&r.from<=n+this.length&&r.more){let s=[],a=Math.max(n,r.from),l=-1;for(r.from>n&&s.push(new nr(r.from-n-1).updateHeight(e,n));a<=o&&r.more;){let f=e.doc.lineAt(a).length;s.length&&s.push(null);let d=r.heights[r.index++];l==-1?l=d:Math.abs(d-l)>=bk&&(l=-2);let h=new $o(f,d);h.outdated=!1,s.push(h),a+=f+1}a<=o&&s.push(null,new nr(o-a).updateHeight(e,a));let u=zr.of(s);return(l<0||Math.abs(u.height-this.height)>=bk||Math.abs(l-this.heightMetrics(e,n).perLine)>=bk)&&(e.heightChanged=!0),u}else(i||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Jye extends zr{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,n,i,r){let o=i+this.left.height;return e<o?this.left.blockAt(e,n,i,r):this.right.blockAt(e,n,o,r+this.left.length+this.break)}lineAt(e,n,i,r,o){let s=r+this.left.height,a=o+this.left.length+this.break,l=n==vn.ByHeight?e<s:e<a,u=l?this.left.lineAt(e,n,i,r,o):this.right.lineAt(e,n,i,s,a);if(this.break||(l?u.to<a:u.from>a))return u;let f=n==vn.ByPosNoHeight?vn.ByPosNoHeight:vn.ByPos;return l?u.join(this.right.lineAt(a,f,i,s,a)):this.left.lineAt(a,f,i,r,o).join(u)}forEachLine(e,n,i,r,o,s){let a=r+this.left.height,l=o+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,i,r,o,s),n>=l&&this.right.forEachLine(e,n,i,a,l,s);else{let u=this.lineAt(l,vn.ByPos,i,r,o);e<u.from&&this.left.forEachLine(e,u.from-1,i,r,o,s),u.to>=e&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,i,a,l,s)}}replace(e,n,i){let r=this.left.length+this.break;if(n<r)return this.balanced(this.left.replace(e,n,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,n-r,i));let o=[];e>0&&this.decomposeLeft(e,o);let s=o.length;for(let a of i)o.push(a);if(e>0&&KI(o,s-1),n<this.length){let a=o.length;this.decomposeRight(n,o),KI(o,a)}return zr.of(o)}decomposeLeft(e,n){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(i++,e>=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,n);e<i&&this.left.decomposeRight(e,n),this.break&&e<r&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?zr.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,r){let{left:o,right:s}=this,a=n+o.length+this.break,l=null;return r&&r.from<=n+o.length&&r.more?l=o=o.updateHeight(e,n,i,r):o.updateHeight(e,n,i),r&&r.from<=a+s.length&&r.more?l=s=s.updateHeight(e,a,i,r):s.updateHeight(e,a,i),l?this.balanced(o,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function KI(t,e){let n,i;t[e]==null&&(n=t[e-1])instanceof nr&&(i=t[e+1])instanceof nr&&t.splice(e-1,3,new nr(n.length+1+i.length))}const ewe=5;class l4{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof $o?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new $o(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e<n||i.heightRelevant){let r=i.widget?i.widget.estimatedHeight:0,o=i.widget?i.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let s=n-e;i.block?this.addBlock(new GI(s,r,i)):(s||o||r>=ewe)&&this.addLineDeco(r,o,s)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new $o(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new nr(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof $o)return e;let n=new $o(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof $o)&&!this.isCovered?this.nodes.push(new $o(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let r of this.nodes)r instanceof $o&&r.updateHeight(this.oracle,i),i+=r?r.length:1;return this.nodes}static build(e,n,i,r){let o=new l4(i,e);return zt.spans(n,i,r,o,0),o.finish(i)}}function twe(t,e,n){let i=new nwe;return zt.compare(t,e,n,i,0),i.changes}class nwe{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,i,r){(e<n||i&&i.heightRelevant||r&&r.heightRelevant)&&YS(e,n,this.changes,5)}}function iwe(t,e){let n=t.getBoundingClientRect(),i=t.ownerDocument,r=i.defaultView||window,o=Math.max(0,n.left),s=Math.min(r.innerWidth,n.right),a=Math.max(0,n.top),l=Math.min(r.innerHeight,n.bottom);for(let u=t.parentNode;u&&u!=i.body;)if(u.nodeType==1){let f=u,d=window.getComputedStyle(f);if((f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth)&&d.overflow!="visible"){let h=f.getBoundingClientRect();o=Math.max(o,h.left),s=Math.min(s,h.right),a=Math.max(a,h.top),l=u==t.parentNode?h.bottom:Math.min(l,h.bottom)}u=d.position=="absolute"||d.position=="fixed"?f.offsetParent:f.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,s)-n.left,top:a-(n.top+e),bottom:Math.max(a,l)-(n.top+e)}}function rwe(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class u4{constructor(e,n,i){this.from=e,this.to=n,this.size=i}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],o=n[i];if(r.from!=o.from||r.to!=o.to||r.size!=o.size)return!1}return!0}draw(e,n){return it.replace({widget:new owe(this.size*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class owe extends da{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class JI{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=eL,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=mn.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(t4).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Gye(n),this.stateDeco=e.facet(ym).filter(i=>typeof i!="function"),this.heightMap=zr.empty().applyChanges(this.stateDeco,Yt.empty,this.heightOracle.setDoc(e.doc),[new rs(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=it.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let r=i?n.head:n.anchor;if(!e.some(({from:o,to:s})=>r>=o&&r<=s)){let{from:o,to:s}=this.lineBlockAt(r);e.push(new kk(o,s))}}this.viewports=e.sort((i,r)=>i.from-r.from),this.scaler=this.heightMap.height<=7e6?eL:new lwe(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:xm(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(ym).filter(f=>typeof f!="function");let r=e.changedRanges,o=rs.extendWithRanges(r,twe(i,this.stateDeco,e?e.changes:Ci.empty(this.state.doc.length))),s=this.heightMap.height,a=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=s&&(e.flags|=2),a?(this.scrollAnchorPos=e.changes.mapPos(a.from,-1),this.scrollAnchorHeight=a.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!e.changes.empty||e.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(gI)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),r=this.heightOracle,o=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?mn.RTL:mn.LTR;let s=this.heightOracle.mustRefreshForWrapping(o),a=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=a.height;this.contentDOMHeight=a.height,this.mustMeasureContent=!1;let u=0,f=0;if(a.width&&a.height){let{scaleX:E,scaleY:N}=jD(n,a);(this.scaleX!=E||this.scaleY!=N)&&(this.scaleX=E,this.scaleY=N,u|=8,s=l=!0)}let d=(parseInt(i.paddingTop)||0)*this.scaleY,h=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=d||this.paddingBottom!=h)&&(this.paddingTop=d,this.paddingBottom=h,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let g=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=WD(e.scrollDOM);let m=(this.printing?rwe:iwe)(n,this.paddingTop),y=m.top-this.pixelViewport.top,x=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let S=a.width;if((this.contentDOMWidth!=S||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=a.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let E=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(E)&&(s=!0),s||r.lineWrapping&&Math.abs(S-this.contentDOMWidth)>r.charWidth){let{lineHeight:N,charWidth:M,textHeight:I}=e.docView.measureTextSize();s=N>0&&r.refresh(o,N,M,I,S/M,E),s&&(e.docView.minWidth=0,u|=8)}y>0&&x>0?f=Math.max(y,x):y<0&&x<0&&(f=Math.min(y,x)),r.heightChanged=!1;for(let N of this.viewports){let M=N.from==this.viewport.from?E:e.docView.measureVisibleLineHeights(N);this.heightMap=(s?zr.empty().applyChanges(this.stateDeco,Yt.empty,this.heightOracle,[new rs(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,s,new Kye(N.from,M))}r.heightChanged&&(u|=2)}let C=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return C&&(this.viewport=this.getViewport(f,this.scrollTarget)),this.updateForViewport(),(u&2||C)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,o=this.heightOracle,{visibleTop:s,visibleBottom:a}=this,l=new kk(r.lineAt(s-i*1e3,vn.ByHeight,o,0,0).from,r.lineAt(a+(1-i)*1e3,vn.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(u<l.from||u>l.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),d=r.lineAt(u,vn.ByPos,o,0,0),h;n.y=="center"?h=(d.top+d.bottom)/2-f/2:n.y=="start"||n.y=="nearest"&&u<l.from?h=d.top:h=d.bottom-f,l=new kk(r.lineAt(h-1e3/2,vn.ByHeight,o,0,0).from,r.lineAt(h+f+1e3/2,vn.ByHeight,o,0,0).to)}}return l}mapViewport(e,n){let i=n.mapPos(e.from,-1),r=n.mapPos(e.to,1);return new kk(this.heightMap.lineAt(i,vn.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,vn.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},i=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,vn.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,vn.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:a}=this;return(e==0||r<=s-Math.max(10,Math.min(-i,250)))&&(n==this.state.doc.length||o>=a+Math.max(10,Math.min(i,250)))&&r>s-2*1e3&&o<a+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let i=[];for(let r of e)n.touchesRange(r.from,r.to)||i.push(new u4(n.mapPos(r.from),n.mapPos(r.to),r.size));return i}ensureLineGaps(e,n){let i=this.heightOracle.lineWrapping,r=i?1e4:2e3,o=r>>1,s=r<<1;if(this.defaultTextDirection!=mn.LTR&&!i)return[];let a=[],l=(u,f,d,h)=>{if(f-u<o)return;let g=this.state.selection.main,m=[g.from];g.empty||m.push(g.to);for(let x of m)if(x>u&&x<f){l(u,x-10,d,h),l(x+10,f,d,h);return}let y=awe(e,x=>x.from>=d.from&&x.to<=d.to&&Math.abs(x.from-u)<o&&Math.abs(x.to-f)<o&&!m.some(_=>x.from<_&&x.to>_));if(!y){if(f<d.to&&n&&i&&n.visibleRanges.some(x=>x.from<=f&&x.to>=f)){let x=n.moveToLineBoundary(he.cursor(f),!1,!0).head;x>u&&(f=x)}y=new u4(u,f,this.gapSize(d,u,f,h))}a.push(y)};for(let u of this.viewportLines){if(u.length<s)continue;let f=swe(u.from,u.to,this.stateDeco);if(f.total<s)continue;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,g;if(i){let m=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,y,x;if(d!=null){let _=wk(f,d),S=((this.visibleBottom-this.visibleTop)/2+m)/u.height;y=_-S,x=_+S}else y=(this.visibleTop-u.top-m)/u.height,x=(this.visibleBottom-u.top+m)/u.height;h=yk(f,y),g=yk(f,x)}else{let m=f.total*this.heightOracle.charWidth,y=r*this.heightOracle.charWidth,x,_;if(d!=null){let S=wk(f,d),C=((this.pixelViewport.right-this.pixelViewport.left)/2+y)/m;x=S-C,_=S+C}else x=(this.pixelViewport.left-y)/m,_=(this.pixelViewport.right+y)/m;h=yk(f,x),g=yk(f,_)}h>u.from&&l(u.from,h,u,f),g<u.to&&l(g,u.to,u,f)}return a}gapSize(e,n,i,r){let o=wk(r,i)-wk(r,n);return this.heightOracle.lineWrapping?e.height*o:r.total*this.heightOracle.charWidth*o}updateLineGaps(e){u4.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=it.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];zt.spans(e,this.viewport.from,this.viewport.to,{span(r,o){n.push({from:r,to:o})},point(){}},20);let i=n.length!=this.visibleRanges.length||this.visibleRanges.some((r,o)=>r.from!=n[o].from||r.to!=n[o].to);return this.visibleRanges=n,i?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||xm(this.heightMap.lineAt(e,vn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return xm(this.heightMap.lineAt(this.scaler.fromDOM(e),vn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return xm(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class kk{constructor(e,n){this.from=e,this.to=n}}function swe(t,e,n){let i=[],r=t,o=0;return zt.spans(n,t,e,{span(){},point(s,a){s>r&&(i.push({from:r,to:s}),o+=s-r),r=a}},20),r<e&&(i.push({from:r,to:e}),o+=e-r),{total:o,ranges:i}}function yk({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let r=0;;r++){let{from:o,to:s}=e[r],a=s-o;if(i<=a)return o+i;i-=a}}function wk(t,e){let n=0;for(let{from:i,to:r}of t.ranges){if(e<=r){n+=e-i;break}n+=r-i}return n/t.total}function awe(t,e){for(let n of t)if(e(n))return n}const eL={toDOM(t){return t},fromDOM(t){return t},scale:1};class lwe{constructor(e,n,i){let r=0,o=0,s=0;this.viewports=i.map(({from:a,to:l})=>{let u=n.lineAt(a,vn.ByPos,e,0,0).top,f=n.lineAt(l,vn.ByPos,e,0,0).bottom;return r+=f-u,{from:a,to:l,top:u,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(n.height-r);for(let a of this.viewports)a.domTop=s+(a.top-o)*this.scale,s=a.domBottom=a.domTop+(a.bottom-a.top),o=a.bottom}toDOM(e){for(let n=0,i=0,r=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||e<o.top)return r+(e-i)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);i=o.bottom,r=o.domBottom}}fromDOM(e){for(let n=0,i=0,r=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||e<o.domTop)return i+(e-r)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);i=o.bottom,r=o.domBottom}}}function xm(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),i=e.toDOM(t.bottom);return new pa(t.from,t.length,n,i-n,Array.isArray(t._content)?t._content.map(r=>xm(r,e)):t._content)}const xk=Qe.define({combine:t=>t.join(" ")}),c4=Qe.define({combine:t=>t.indexOf(!0)>-1}),f4=lu.newName(),tL=lu.newName(),nL=lu.newName(),iL={"&light":"."+tL,"&dark":"."+nL};function d4(t,e,n){return new lu(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return t;if(!n||!n[r])throw new RangeError(`Unsupported selector: ${r}`);return n[r]}):t+" "+i}})}const uwe=d4("."+f4,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},iL),_m="";class cwe{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(jt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=_m}readRange(e,n){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let o=this.text.length;this.readNode(r);let s=r.nextSibling;if(s==n)break;let a=gn.get(r),l=gn.get(s);(a&&l?a.breakAfter:(a?a.breakAfter:rL(r))||rL(s)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>o)&&this.lineBreak(),r=s}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,s=1,a;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,i),s=this.lineSeparator.length):(a=r.exec(n))&&(o=a.index,s=a[0].length),this.append(n.slice(i,o<0?n.length:o)),o<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=s-1);i=o+s}}readNode(e){if(e.cmIgnore)return;let n=gn.get(e),i=n&&n.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(fwe(e,i.node,i.offset)?n:0))}}function fwe(t,e,n){for(;;){if(!e||n<Ja(e))return!1;if(e==t)return!0;n=gm(e)+1,e=e.parentNode}}function rL(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}class oL{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class dwe{constructor(e,n,i,r){this.typeOver=r,this.bounds=null,this.text="";let{impreciseHead:o,impreciseAnchor:s}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let a=o||s?[]:gwe(e),l=new cwe(a,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=mwe(a,this.bounds.from)}else{let a=e.observer.selectionRange,l=o&&o.node==a.focusNode&&o.offset==a.focusOffset||!FS(e.contentDOM,a.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(a.focusNode,a.focusOffset),u=s&&s.node==a.anchorNode&&s.offset==a.anchorOffset||!FS(e.contentDOM,a.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(a.anchorNode,a.anchorOffset),f=e.viewport;if(Ye.ios&&e.state.selection.main.empty&&l!=u&&(f.from>0||f.to<e.state.doc.length)){let d=f.from-Math.min(l,u),h=f.to-Math.max(l,u);(d==0||d==1)&&(h==0||h==-1)&&(l=0,u=e.state.doc.length)}this.newSel=he.single(u,l)}}}function sL(t,e){let n,{newSel:i}=e,r=t.state.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:s,to:a}=e.bounds,l=r.from,u=null;(o===8||Ye.android&&e.text.length<a-s)&&(l=r.to,u="end");let f=pwe(t.state.doc.sliceString(s,a,_m),e.text,l-s,u);f&&(Ye.chrome&&o==13&&f.toB==f.from+2&&e.text.slice(f.from,f.toB)==_m+_m&&f.toB--,n={from:s+f.from,to:s+f.toA,insert:Yt.of(e.text.slice(f.from,f.toB).split(_m))})}else i&&(!t.hasFocus&&t.state.facet(hk)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&e.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,r.to))}:(Ye.mac||Ye.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&n.insert.length==2&&(i=he.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:Yt.of([" "])}):Ye.chrome&&n&&n.from==n.to&&n.from==r.head&&n.insert.toString()==`
|
||
`&&t.lineWrapping&&(i&&(i=he.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:Yt.of([" "])}),n){if(Ye.ios&&t.inputState.flushIOSKey()||Ye.android&&(n.from==r.from&&n.to==r.to&&n.insert.length==1&&n.insert.lines==2&&qd(t.contentDOM,"Enter",13)||(n.from==r.from-1&&n.to==r.to&&n.insert.length==0||o==8&&n.insert.length<n.to-n.from&&n.to>r.head)&&qd(t.contentDOM,"Backspace",8)||n.from==r.from&&n.to==r.to+1&&n.insert.length==0&&qd(t.contentDOM,"Delete",46)))return!0;let s=n.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a,l=()=>a||(a=hwe(t,n,i));return t.state.facet(dI).some(u=>u(t,n.from,n.to,s,l))||t.dispatch(l()),!0}else if(i&&!i.main.eq(r)){let s=!1,a="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(s=!0),a=t.inputState.lastSelectionOrigin),t.dispatch({selection:i,scrollIntoView:s,userEvent:a}),!0}else return!1}function hwe(t,e,n){let i,r=t.state,o=r.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let a=o.from<e.from?r.sliceDoc(o.from,e.from):"",l=o.to>e.to?r.sliceDoc(e.to,o.to):"";i=r.replaceSelection(t.state.toText(a+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let a=r.changes(e),l=n&&n.main.to<=a.newLength?n.main:void 0;if(r.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let u=t.state.sliceDoc(e.from,e.to),f,d=n&&OI(t,n.main.head);if(d){let m=e.insert.length-(e.to-e.from);f={from:d.from,to:d.to-m}}else f=t.state.doc.lineAt(o.head);let h=o.to-e.to,g=o.to-o.from;i=r.changeByRange(m=>{if(m.from==o.from&&m.to==o.to)return{changes:a,range:l||m.map(a)};let y=m.to-h,x=y-u.length;if(m.to-m.from!=g||t.state.sliceDoc(x,y)!=u||m.to>=f.from&&m.from<=f.to)return{range:m};let _=r.changes({from:x,to:y,insert:e.insert}),S=m.to-o.to;return{changes:_,range:l?he.range(Math.max(0,l.anchor+S),Math.max(0,l.head+S)):m.map(_)}})}else i={changes:a,selection:l&&r.selection.replaceRange(l)}}let s="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,s+=".compose",t.inputState.compositionFirstChange&&(s+=".start",t.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:s,scrollIntoView:!0})}function pwe(t,e,n,i){let r=Math.min(t.length,e.length),o=0;for(;o<r&&t.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==r&&t.length==e.length)return null;let s=t.length,a=e.length;for(;s>0&&a>0&&t.charCodeAt(s-1)==e.charCodeAt(a-1);)s--,a--;if(i=="end"){let l=Math.max(0,o-Math.min(s,a));n-=s+l-o}if(s<o&&t.length<e.length){let l=n<=o&&n>=s?o-n:0;o-=l,a=o+(a-s),s=o}else if(a<o){let l=n<=o&&n>=a?o-n:0;o-=l,s=o+(s-a),a=o}return{from:o,toA:s,toB:a}}function gwe(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:o}=t.observer.selectionRange;return n&&(e.push(new oL(n,i)),(r!=n||o!=i)&&e.push(new oL(r,o))),e}function mwe(t,e){if(t.length==0)return null;let n=t[0].pos,i=t.length==2?t[1].pos:n;return n>-1&&i>-1?he.single(n+e,i+e):null}const vwe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},h4=Ye.ie&&Ye.ie_version<=11;class bwe{constructor(e){this.view=e,this.active=!1,this.selectionRange=new eye,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(Ye.ie&&Ye.ie_version<=11||Ye.ios&&e.composing)&&n.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),h4&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(hk)?i.root.activeElement!=this.dom:!lk(i.dom,r))return;let o=r.anchorNode&&i.docView.nearest(r.anchorNode);if(o&&o.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(Ye.ie&&Ye.ie_version<=11||Ye.android&&Ye.chrome)&&!i.state.selection.main.empty&&r.focusNode&&pm(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=Ye.safari&&e.root.nodeType==11&&Xke(this.dom.ownerDocument)==this.dom&&kwe(this.view)||ak(e.root);if(!n||this.selectionRange.eq(n))return!1;let i=lk(this.dom,n);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&nye(this.dom,n)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(n),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let i=this.dom;i;)if(i.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=n)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,vwe),h4&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),h4&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var i;if(!this.delayedAndroidKey){let r=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&qd(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,r=!1;for(let o of e){let s=this.readMutation(o);s&&(s.typeOver&&(r=!0),n==-1?{from:n,to:i}=s:(n=Math.min(s.from,n),i=Math.max(s.to,i)))}return{from:n,to:i,typeOver:r}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&lk(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new dwe(this.view,e,n,i);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,r=sL(this.view,n);return this.view.state==i&&this.view.update([]),r}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let i=aL(n,e.previousSibling||e.target.previousSibling,-1),r=aL(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:r?n.posBefore(r):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function aL(t,e,n){for(;e;){let i=gn.get(e);if(i&&i.parent==t)return i;let r=e.parentNode;e=r!=t.dom?r:n>0?e.nextSibling:e.previousSibling}return null}function kwe(t){let e=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),e=l.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",n,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",n,!0),!e)return null;let i=e.startContainer,r=e.startOffset,o=e.endContainer,s=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return pm(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]),{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}class Te{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(i=>i.forEach(r=>n(r,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=e.root||tye(e.parent)||document,this.viewState=new JI(e.state||jt.create(e)),e.scrollTo&&e.scrollTo.is(dk)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(km).map(i=>new e4(i));for(let i of this.plugins)i.update(this);this.observer=new bwe(this),this.inputState=new Dye(this),this.inputState.ensureHandlers(this.plugins),this.docView=new xI(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=e.length==1&&e[0]instanceof jr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,i=!1,r,o=this.state;for(let h of e){if(h.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=h.state}if(this.destroyed){this.viewState.state=o;return}let s=this.hasFocus,a=0,l=null;e.some(h=>h.annotation(ZI))?(this.inputState.notifiedFocused=s,a=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=qI(o,s),l||(a=1));let u=this.observer.delayedAndroidKey,f=null;if(u?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(f=null)):this.observer.clear(),o.facet(jt.phrases)!=this.state.facet(jt.phrases))return this.setState(o);r=pk.create(this,o,e),r.flags|=a;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let h of e){if(d&&(d=d.map(h.changes)),h.scrollIntoView){let{main:g}=h.state.selection;d=new Vd(g.empty?g:he.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of h.effects)g.is(dk)&&(d=g.value.clip(this.state))}this.viewState.update(r,d),this.bidiCache=_k.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),n=this.docView.update(r),this.state.facet(wm)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(xk)!=r.state.facet(xk)&&(this.viewState.mustMeasureContent=!0),(n||i||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!r.empty)for(let h of this.state.facet(JS))try{h(r)}catch(g){is(this.state,g,"update listener")}(l||f)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),f&&!sL(this,f)&&u.force&&qd(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new JI(e),this.plugins=e.facet(km).map(i=>new e4(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new xI(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(km),i=e.state.facet(km);if(n!=i){let r=[];for(let o of i){let s=n.indexOf(o);if(s<0)r.push(new e4(o));else{let a=this.plugins[s];a.mustUpdate=e,r.push(a)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);n!=i&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,i=this.scrollDOM,r=i.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:s}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let a=0;;a++){if(s<0)if(WD(i))o=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(r);o=g.from,s=g.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(a>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let f=u.map(g=>{try{return g.read(this)}catch(m){return is(this.state,m),lL}}),d=pk.create(this,this.state,[]),h=!1;d.flags|=l,n?n.flags|=l:n=d,this.updateState=2,d.empty||(this.updatePlugins(d),this.inputState.update(d),this.updateAttrs(),h=this.docView.update(d));for(let g=0;g<u.length;g++)if(f[g]!=lL)try{let m=u[g];m.write&&m.write(f[g],this)}catch(m){is(this.state,m)}if(h&&this.docView.updateSelection(!0),!d.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}else{let m=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-s;if(m>1||m<-1){r=r+m,i.scrollTop=r/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let a of this.state.facet(JS))a(n)}get themeClasses(){return f4+" "+(this.state.facet(c4)?nL:tL)+" "+this.state.facet(xk)}updateAttrs(){let e=uL(this,mI,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(hk)?"true":"false",class:"cm-content",style:`${Ye.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),uL(this,t4,n);let i=this.observer.ignore(()=>{let r=qS(this.contentDOM,this.contentAttrs,n),o=qS(this.dom,this.editorAttrs,e);return r||o});return this.editorAttrs=e,this.contentAttrs=n,i}showAnnouncements(e){let n=!0;for(let i of e)for(let r of i.effects)if(r.is(Te.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(wm);let e=this.state.facet(Te.cspNonce);lu.mount(this.root,this.styleModules.concat(uwe).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(i=>i.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,i){return s4(this,e,NI(this,e,n,i))}moveByGroup(e,n){return s4(this,e,NI(this,e,n,i=>Aye(this,e.head,i)))}visualLineSide(e,n){let i=this.bidiSpans(e),r=this.textDirectionAt(e.from),o=i[n?i.length-1:0];return he.cursor(o.side(n,r)+e.from,o.forward(!n,r)?1:-1)}moveToLineBoundary(e,n,i=!0){return Nye(this,e,n,i)}moveVertically(e,n,i){return s4(this,e,Pye(this,e,n,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),$I(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let i=this.docView.coordsAt(e,n);if(!i||i.left==i.right)return i;let r=this.state.doc.lineAt(e),o=this.bidiSpans(r),s=o[hu.find(o,e-r.from,-1,n)];return uk(i,s.dir==mn.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(pI)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>ywe)return sI(e.length);let n=this.textDirectionAt(e.from),i;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||oI(o.isolates,i=kI(this,e))))return o.order;i||(i=kI(this,e));let r=gye(e.text,n,i);return this.bidiCache.push(new _k(e.from,e.to,n,i,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ye.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{FD(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return dk.of(new Vd(typeof e=="number"?he.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return dk.of(new Vd(he.cursor(i.from),"start","start",i.top-e,n,!0))}static domEventHandlers(e){return li.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return li.define(()=>({}),{eventObservers:e})}static theme(e,n){let i=lu.newName(),r=[xk.of(i),wm.of(d4(`.${i}`,e))];return n&&n.dark&&r.push(c4.of(!0)),r}static baseTheme(e){return Hc.lowest(wm.of(d4("."+f4,e,iL)))}static findFromDOM(e){var n;let i=e.querySelector(".cm-content"),r=i&&gn.get(i)||gn.get(e);return((n=r==null?void 0:r.rootView)===null||n===void 0?void 0:n.view)||null}}Te.styleModule=wm,Te.inputHandler=dI,Te.focusChangeEffect=hI,Te.perLineTextDirection=pI,Te.exceptionSink=fI,Te.updateListener=JS,Te.editable=hk,Te.mouseSelectionStyle=cI,Te.dragMovesSelection=uI,Te.clickAddsSelectionRange=lI,Te.decorations=ym,Te.outerDecorations=vI,Te.atomicRanges=n4,Te.bidiIsolatedRanges=bI,Te.scrollMargins=yI,Te.darkTheme=c4,Te.cspNonce=Qe.define({combine:t=>t.length?t[0]:""}),Te.contentAttributes=t4,Te.editorAttributes=mI,Te.lineWrapping=Te.contentAttributes.of({class:"cm-lineWrapping"}),Te.announce=_t.define();const ywe=4096,lL={};class _k{constructor(e,n,i,r,o,s){this.from=e,this.to=n,this.dir=i,this.isolates=r,this.fresh=o,this.order=s}static update(e,n){if(n.empty&&!e.some(o=>o.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:mn.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let s=e[o];s.dir==r&&!n.touchesRange(s.from,s.to)&&i.push(new _k(n.mapPos(s.from,1),n.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return i}}function uL(t,e,n){for(let i=t.state.facet(e),r=i.length-1;r>=0;r--){let o=i[r],s=typeof o=="function"?o(t):o;s&&US(s,n)}return n}const wwe=Ye.mac?"mac":Ye.windows?"win":Ye.linux?"linux":"key";function xwe(t,e){const n=t.split(/-(?!$)/);let i=n[n.length-1];i=="Space"&&(i=" ");let r,o,s,a;for(let l=0;l<n.length-1;++l){const u=n[l];if(/^(cmd|meta|m)$/i.test(u))a=!0;else if(/^a(lt)?$/i.test(u))r=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))s=!0;else if(/^mod$/i.test(u))e=="mac"?a=!0:o=!0;else throw new Error("Unrecognized modifier name: "+u)}return r&&(i="Alt-"+i),o&&(i="Ctrl-"+i),a&&(i="Meta-"+i),s&&(i="Shift-"+i),i}function Ok(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const _we=Hc.default(Te.domEventHandlers({keydown(t,e){return dL(fL(e.state),t,e,"editor")}})),nl=Qe.define({enables:_we}),cL=new WeakMap;function fL(t){let e=t.facet(nl),n=cL.get(e);return n||cL.set(e,n=Cwe(e.reduce((i,r)=>i.concat(r),[]))),n}function Owe(t,e,n){return dL(fL(t.state),e,t,n)}let pu=null;const Swe=4e3;function Cwe(t,e=wwe){let n=Object.create(null),i=Object.create(null),r=(s,a)=>{let l=i[s];if(l==null)i[s]=a;else if(l!=a)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},o=(s,a,l,u,f)=>{var d,h;let g=n[s]||(n[s]=Object.create(null)),m=a.split(/ (?!$)/).map(_=>xwe(_,e));for(let _=1;_<m.length;_++){let S=m.slice(0,_).join(" ");r(S,!0),g[S]||(g[S]={preventDefault:!0,stopPropagation:!1,run:[C=>{let E=pu={view:C,prefix:S,scope:s};return setTimeout(()=>{pu==E&&(pu=null)},Swe),!0}]})}let y=m.join(" ");r(y,!1);let x=g[y]||(g[y]={preventDefault:!1,stopPropagation:!1,run:((h=(d=g._any)===null||d===void 0?void 0:d.run)===null||h===void 0?void 0:h.slice())||[]});l&&x.run.push(l),u&&(x.preventDefault=!0),f&&(x.stopPropagation=!0)};for(let s of t){let a=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of a){let f=n[u]||(n[u]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let d in f)f[d].run.push(s.any)}let l=s[e]||s.key;if(l)for(let u of a)o(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&o(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}function dL(t,e,n,i){let r=Vke(e),o=Ji(r,0),s=ns(o)==r.length&&r!=" ",a="",l=!1,u=!1,f=!1;pu&&pu.view==n&&pu.scope==i&&(a=pu.prefix+" ",DI.indexOf(e.keyCode)<0&&(u=!0,pu=null));let d=new Set,h=x=>{if(x){for(let _ of x.run)if(!d.has(_)&&(d.add(_),_(n,e)))return x.stopPropagation&&(f=!0),!0;x.preventDefault&&(x.stopPropagation&&(f=!0),u=!0)}return!1},g=t[i],m,y;return g&&(h(g[a+Ok(r,e,!s)])?l=!0:s&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ye.windows&&e.ctrlKey&&e.altKey)&&(m=uu[e.keyCode])&&m!=r?(h(g[a+Ok(m,e,!0)])||e.shiftKey&&(y=hm[e.keyCode])!=r&&y!=m&&h(g[a+Ok(y,e,!1)]))&&(l=!0):s&&e.shiftKey&&h(g[a+Ok(r,e,!0)])&&(l=!0),!l&&h(g._any)&&(l=!0)),u&&(l=!0),l&&f&&e.stopPropagation(),l}class Om{constructor(e,n,i,r,o){this.className=e,this.left=n,this.top=i,this.width=r,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,i){if(i.empty){let r=e.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let o=hL(e);return[new Om(n,r.left-o.left,r.top-o.top,null,r.bottom-r.top)]}else return Ewe(e,n,i)}}function hL(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==mn.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function pL(t,e,n){let i=he.cursor(e);return{from:Math.max(n.from,t.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,t.moveToLineBoundary(i,!0,!0).from),type:Fr.Text}}function Ewe(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let i=Math.max(n.from,t.viewport.from),r=Math.min(n.to,t.viewport.to),o=t.textDirection==mn.LTR,s=t.contentDOM,a=s.getBoundingClientRect(),l=hL(t),u=s.querySelector(".cm-line"),f=u&&window.getComputedStyle(u),d=a.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0),h=a.right-(f?parseInt(f.paddingRight):0),g=o4(t,i),m=o4(t,r),y=g.type==Fr.Text?g:null,x=m.type==Fr.Text?m:null;if(y&&(t.lineWrapping||g.widgetLineBreaks)&&(y=pL(t,i,y)),x&&(t.lineWrapping||m.widgetLineBreaks)&&(x=pL(t,r,x)),y&&x&&y.from==x.from)return S(C(n.from,n.to,y));{let N=y?C(n.from,null,y):E(g,!1),M=x?C(null,n.to,x):E(m,!0),I=[];return(y||g).to<(x||m).from-(y&&x?1:0)||g.widgetLineBreaks>1&&N.bottom+t.defaultLineHeight/2<M.top?I.push(_(d,N.bottom,h,M.top)):N.bottom<M.top&&t.elementAtHeight((N.bottom+M.top)/2).type==Fr.Text&&(N.bottom=M.top=(N.bottom+M.top)/2),S(N).concat(I).concat(S(M))}function _(N,M,I,W){return new Om(e,N-l.left,M-l.top-.01,I-N,W-M+.01)}function S({top:N,bottom:M,horizontal:I}){let W=[];for(let B=0;B<I.length;B+=2)W.push(_(I[B],N,I[B+1],M));return W}function C(N,M,I){let W=1e9,B=-1e9,Z=[];function R(H,j,q,Y,K){let te=t.coordsAtPos(H,H==I.to?-2:2),oe=t.coordsAtPos(q,q==I.from?2:-2);!te||!oe||(W=Math.min(te.top,oe.top,W),B=Math.max(te.bottom,oe.bottom,B),K==mn.LTR?Z.push(o&&j?d:te.left,o&&Y?h:oe.right):Z.push(!o&&Y?d:oe.left,!o&&j?h:te.right))}let Q=N??I.from,V=M??I.to;for(let H of t.visibleRanges)if(H.to>Q&&H.from<V)for(let j=Math.max(H.from,Q),q=Math.min(H.to,V);;){let Y=t.state.doc.lineAt(j);for(let K of t.bidiSpans(Y)){let te=K.from+Y.from,oe=K.to+Y.from;if(te>=q)break;oe>j&&R(Math.max(te,j),N==null&&te<=Q,Math.min(oe,q),M==null&&oe>=V,K.dir)}if(j=Y.to+1,j>=q)break}return Z.length==0&&R(Q,N==null,V,M==null,t.textDirection),{top:W,bottom:B,horizontal:Z}}function E(N,M){let I=a.top+(M?N.top:N.bottom);return{top:I,bottom:I,horizontal:[]}}}function Twe(t,e){return t.constructor==e.constructor&&t.eq(e)}class $we{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(Sk)!=e.state.facet(Sk)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let n=0,i=e.facet(Sk);for(;n<i.length&&i[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,i)=>!Twe(n,this.drawn[i]))){let n=this.dom.firstChild,i=0;for(let r of e)r.update&&n&&r.constructor&&this.drawn[i].constructor&&r.update(n,this.drawn[i])?(n=n.nextSibling,i++):this.dom.insertBefore(r.draw(),n);for(;n;){let r=n.nextSibling;n.remove(),n=r}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Sk=Qe.define();function gL(t){return[li.define(e=>new $we(e,t)),Sk.of(t)]}const mL=!Ye.ios,Sm=Qe.define({combine(t){return fa(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function vL(t={}){return[Sm.of(t),Mwe,Nwe,Awe,gI.of(!0)]}function bL(t){return t.startState.facet(Sm)!=t.state.facet(Sm)}const Mwe=gL({above:!0,markers(t){let{state:e}=t,n=e.facet(Sm),i=[];for(let r of e.selection.ranges){let o=r==e.selection.main;if(r.empty?!o||mL:n.drawRangeCursor){let s=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=r.empty?r:he.cursor(r.head,r.head>r.anchor?-1:1);for(let l of Om.forRange(t,s,a))i.push(l)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=bL(t);return n&&kL(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){kL(e.state,t)},class:"cm-cursorLayer"});function kL(t,e){e.style.animationDuration=t.facet(Sm).cursorBlinkRate+"ms"}const Nwe=gL({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:Om.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||bL(t)},class:"cm-selectionLayer"}),p4={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};mL&&(p4[".cm-line"].caretColor="transparent !important",p4[".cm-content"]={caretColor:"transparent !important"});const Awe=Hc.highest(Te.theme(p4)),yL=_t.define({map(t,e){return t==null?null:e.mapPos(t)}}),Cm=zi.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,i)=>i.is(yL)?i.value:n,t)}}),Pwe=li.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(Cm);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Cm)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Cm),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let i=t.scrollDOM.getBoundingClientRect();return{left:n.left-i.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-i.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Cm)!=t&&this.view.dispatch({effects:yL.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Dwe(){return[Cm,Pwe]}function wL(t,e,n,i,r){e.lastIndex=0;for(let o=t.iterRange(n,i),s=n,a;!o.next().done;s+=o.value.length)if(!o.lineBreak)for(;a=e.exec(o.value);)r(s+a.index,a)}function Iwe(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:r,to:o}of n)r=Math.max(t.state.doc.lineAt(r).from,r-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=o:i.push({from:r,to:o});return i}class Lwe{constructor(e){const{regexp:n,decoration:i,decorate:r,boundary:o,maxLength:s=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,r)this.addMatch=(a,l,u,f)=>r(f,u,u+a[0].length,a,l);else if(typeof i=="function")this.addMatch=(a,l,u,f)=>{let d=i(a,l,u);d&&f(u,u+a[0].length,d)};else if(i)this.addMatch=(a,l,u,f)=>f(u,u+a[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=s}createDeco(e){let n=new au,i=n.add.bind(n);for(let{from:r,to:o}of Iwe(e,this.maxLength))wL(e.state.doc,this.regexp,r,o,(s,a)=>this.addMatch(a,e,s,i));return n.finish()}updateDeco(e,n){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((o,s,a,l)=>{l>e.view.viewport.from&&a<e.view.viewport.to&&(i=Math.min(a,i),r=Math.max(l,r))}),e.viewportChanged||r-i>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,n.map(e.changes),i,r):n}updateRange(e,n,i,r){for(let o of e.visibleRanges){let s=Math.max(o.from,i),a=Math.min(o.to,r);if(a>s){let l=e.state.doc.lineAt(s),u=l.to<a?e.state.doc.lineAt(a):l,f=Math.max(o.from,l.from),d=Math.min(o.to,u.to);if(this.boundary){for(;s>l.from;s--)if(this.boundary.test(l.text[s-1-l.from])){f=s;break}for(;a<u.to;a++)if(this.boundary.test(u.text[a-u.from])){d=a;break}}let h=[],g,m=(y,x,_)=>h.push(_.range(y,x));if(l==u)for(this.regexp.lastIndex=f-l.from;(g=this.regexp.exec(l.text))&&g.index<d-l.from;)this.addMatch(g,e,g.index+l.from,m);else wL(e.state.doc,this.regexp,f,d,(y,x)=>this.addMatch(x,e,y,m));n=n.update({filterFrom:f,filterTo:d,filter:(y,x)=>y<f||x>d,add:h})}}return n}}const g4=/x/.unicode!=null?"gu":"g",Rwe=new RegExp(`[\0-\b
|
||
--\u2028\u2029\uFEFF-]`,g4),jwe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let m4=null;function Fwe(){var t;if(m4==null&&typeof document<"u"&&document.body){let e=document.body.style;m4=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return m4||!1}const Ck=Qe.define({combine(t){let e=fa(t,{render:null,specialChars:Rwe,addSpecialChars:null});return(e.replaceTabs=!Fwe())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,g4)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,g4)),e}});function xL(t={}){return[Ck.of(t),zwe()]}let _L=null;function zwe(){return _L||(_L=li.fromClass(class{constructor(t){this.view=t,this.decorations=it.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(Ck)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Lwe({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:r}=n.state,o=Ji(e[0],0);if(o==9){let s=r.lineAt(i),a=n.state.tabSize,l=Qd(s.text,a,i-s.from);return it.replace({widget:new Qwe((a-l%a)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=it.replace({widget:new Hwe(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(Ck);t.startState.facet(Ck)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const Bwe="•";function Wwe(t){return t>=32?Bwe:t==10?"":String.fromCharCode(9216+t)}class Hwe extends da{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=Wwe(this.code),i=e.state.phrase("Control character")+" "+(jwe[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,n);if(r)return r;let o=document.createElement("span");return o.textContent=n,o.title=i,o.setAttribute("aria-label",i),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class Qwe extends da{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Uwe(){return qwe}const Zwe=it.line({class:"cm-activeLine"}),qwe=li.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let r=t.lineBlockAt(i.head);r.from>e&&(n.push(Zwe.range(r.from)),e=r.from)}return it.set(n)}},{decorations:t=>t.decorations});let Ywe=class extends da{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let n=e.firstChild?Ud(e.firstChild):[];if(!n.length)return null;let i=window.getComputedStyle(e.parentNode),r=uk(n[0],i.direction!="rtl"),o=parseInt(i.lineHeight);return r.bottom-r.top>o*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+o}:r}ignoreEvent(){return!1}};function Vwe(t){return li.fromClass(class{constructor(e){this.view=e,this.placeholder=t?it.set([it.widget({widget:new Ywe(t),side:1}).range(0)]):it.none}get decorations(){return this.view.state.doc.length?it.none:this.placeholder}},{decorations:e=>e.decorations})}const v4=2e3;function Xwe(t,e,n){let i=Math.min(e.line,n.line),r=Math.max(e.line,n.line),o=[];if(e.off>v4||n.off>v4||e.col<0||n.col<0){let s=Math.min(e.off,n.off),a=Math.max(e.off,n.off);for(let l=i;l<=r;l++){let u=t.doc.line(l);u.length<=a&&o.push(he.range(u.from+s,u.to+a))}}else{let s=Math.min(e.col,n.col),a=Math.max(e.col,n.col);for(let l=i;l<=r;l++){let u=t.doc.line(l),f=IS(u.text,s,t.tabSize,!0);if(f<0)o.push(he.cursor(u.to));else{let d=IS(u.text,a,t.tabSize);o.push(he.range(u.from+f,u.from+d))}}}return o}function Gwe(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function OL(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),i=t.state.doc.lineAt(n),r=n-i.from,o=r>v4?-1:r==i.length?Gwe(t,e.clientX):Qd(i.text,t.state.tabSize,n-i.from);return{line:i.number,col:o,off:r}}function Kwe(t,e){let n=OL(t,e),i=t.state.selection;return n?{update(r){if(r.docChanged){let o=r.changes.mapPos(r.startState.doc.line(n.line).from),s=r.state.doc.lineAt(o);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},i=i.map(r.changes)}},get(r,o,s){let a=OL(t,r);if(!a)return i;let l=Xwe(t.state,n,a);return l.length?s?he.create(l.concat(i.ranges)):he.create(l):i}}:null}function Jwe(t){let e=n=>n.altKey&&n.button==0;return Te.mouseSelectionStyle.of((n,i)=>e(i)?Kwe(n,i):null)}const exe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},txe={style:"cursor: crosshair"};function nxe(t={}){let[e,n]=exe[t.key||"Alt"],i=li.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||n(r))},keyup(r){(r.keyCode==e||!n(r))&&this.set(!1)},mousemove(r){this.set(n(r))}}});return[i,Te.contentAttributes.of(r=>{var o;return!((o=r.plugin(i))===null||o===void 0)&&o.isDown?txe:null})]}const Em="-10000px";class SL{constructor(e,n,i){this.facet=n,this.createTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(r=>r),this.tooltipViews=this.tooltips.map(i)}update(e,n){var i;let r=e.state.facet(this.facet),o=r.filter(l=>l);if(r===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let s=[],a=n?[]:null;for(let l=0;l<o.length;l++){let u=o[l],f=-1;if(u){for(let d=0;d<this.tooltips.length;d++){let h=this.tooltips[d];h&&h.create==u.create&&(f=d)}if(f<0)s[l]=this.createTooltipView(u),a&&(a[l]=!!u.above);else{let d=s[l]=this.tooltipViews[f];a&&(a[l]=n[f]),d.update&&d.update(e)}}}for(let l of this.tooltipViews)s.indexOf(l)<0&&(l.dom.remove(),(i=l.destroy)===null||i===void 0||i.call(l));return n&&(a.forEach((l,u)=>n[u]=l),n.length=a.length),this.input=r,this.tooltips=o,this.tooltipViews=s,!0}}function ixe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const b4=Qe.define({combine:t=>{var e,n,i;return{position:Ye.ios?"absolute":((e=t.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(r=>r.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((i=t.find(r=>r.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||ixe}}}),CL=new WeakMap,k4=li.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(b4);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new SL(t,y4,n=>this.createTooltip(n)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(b4);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",e.dom.appendChild(n)}return e.dom.style.position=this.position,e.dom.style.top=Em,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),(t=n.destroy)===null||t===void 0||t.call(n);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:r}=this.manager.tooltipViews[0];if(Ye.gecko)i=r.offsetParent!=this.container.ownerDocument.body;else if(r.style.top==Em&&r.style.left=="0px"){let o=r.getBoundingClientRect();i=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(i||this.position=="absolute")if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,n=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((r,o)=>{let s=this.manager.tooltipViews[o];return s.getCoords?s.getCoords(r.pos):this.view.coordsAtPos(r.pos)}),size:this.manager.tooltipViews.map(({dom:r})=>r.getBoundingClientRect()),space:this.view.state.facet(b4).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let a of this.manager.tooltipViews)a.dom.style.position="absolute"}let{editor:n,space:i,scaleX:r,scaleY:o}=t,s=[];for(let a=0;a<this.manager.tooltips.length;a++){let l=this.manager.tooltips[a],u=this.manager.tooltipViews[a],{dom:f}=u,d=t.pos[a],h=t.size[a];if(!d||d.bottom<=Math.max(n.top,i.top)||d.top>=Math.min(n.bottom,i.bottom)||d.right<Math.max(n.left,i.left)-.1||d.left>Math.min(n.right,i.right)+.1){f.style.top=Em;continue}let g=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,m=g?7:0,y=h.right-h.left,x=(e=CL.get(u))!==null&&e!==void 0?e:h.bottom-h.top,_=u.offset||oxe,S=this.view.textDirection==mn.LTR,C=h.width>i.right-i.left?S?i.left:i.right-h.width:S?Math.min(d.left-(g?14:0)+_.x,i.right-y):Math.max(i.left,d.left-y+(g?14:0)-_.x),E=this.above[a];!l.strictSide&&(E?d.top-(h.bottom-h.top)-_.y<i.top:d.bottom+(h.bottom-h.top)+_.y>i.bottom)&&E==i.bottom-d.bottom>d.top-i.top&&(E=this.above[a]=!E);let N=(E?d.top-i.top:i.bottom-d.bottom)-m;if(N<x&&u.resize!==!1){if(N<this.view.defaultLineHeight){f.style.top=Em;continue}CL.set(u,x),f.style.height=(x=N)/o+"px"}else f.style.height&&(f.style.height="");let M=E?d.top-x-m-_.y:d.bottom+m+_.y,I=C+y;if(u.overlap!==!0)for(let W of s)W.left<I&&W.right>C&&W.top<M+x&&W.bottom>M&&(M=E?W.top-x-2-m:W.bottom+m+2);if(this.position=="absolute"?(f.style.top=(M-t.parent.top)/o+"px",f.style.left=(C-t.parent.left)/r+"px"):(f.style.top=M/o+"px",f.style.left=C/r+"px"),g){let W=d.left+(S?_.x:-_.x)-(C+14-7);g.style.left=W/r+"px"}u.overlap!==!0&&s.push({left:C,top:M,right:I,bottom:M+x}),f.classList.toggle("cm-tooltip-above",E),f.classList.toggle("cm-tooltip-below",!E),u.positioned&&u.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Em}},{eventObservers:{scroll(){this.maybeMeasure()}}}),rxe=Te.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),oxe={x:0,y:0},y4=Qe.define({enables:[k4,rxe]}),Ek=Qe.define();class Tk{static create(e){return new Tk(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new SL(e,Ek,n=>this.createHostedView(n))}createHostedView(e){let n=e.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let i of this.manager.tooltipViews){let r=i[e];if(r!==void 0){if(n===void 0)n=r;else if(n!==r)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const sxe=y4.compute([Ek],t=>{let e=t.facet(Ek).filter(n=>n);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var i;return(i=n.end)!==null&&i!==void 0?i:n.pos})),create:Tk.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class axe{constructor(e,n,i,r,o){this.view=e,this.source=n,this.field=i,this.setHover=r,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,i=e.docView.nearest(n.target);if(!i)return;let r,o=1;if(i instanceof cu)r=i.posAtStart;else{if(r=e.posAtCoords(n),r==null)return;let a=e.coordsAtPos(r);if(!a||n.y<a.top||n.y>a.bottom||n.x<a.left-e.defaultCharacterWidth||n.x>a.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(r)).find(f=>f.from<=r&&f.to>=r),u=l&&l.dir==mn.RTL?-1:1;o=n.x<a.left?-u:u}let s=this.source(e,r,o);if(s!=null&&s.then){let a=this.pending={pos:r};s.then(l=>{this.pending==a&&(this.pending=null,l&&e.dispatch({effects:this.setHover.of(l)}))},l=>is(e.state,l,"hover tooltip"))}else s&&e.dispatch({effects:this.setHover.of(s)})}get tooltip(){let e=this.view.plugin(k4),n=e?e.manager.tooltips.findIndex(i=>i.create==Tk.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:r}=this;if(i&&r&&!lxe(r.dom,e)||this.pending){let{pos:o}=i||this.pending,s=(n=i==null?void 0:i.end)!==null&&n!==void 0?n:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!uxe(this.view,o,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let n=i=>{e.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const $k=4;function lxe(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-$k&&e.clientX<=n.right+$k&&e.clientY>=n.top-$k&&e.clientY<=n.bottom+$k}function uxe(t,e,n,i,r,o){let s=t.scrollDOM.getBoundingClientRect(),a=t.documentTop+t.documentPadding.top+t.contentHeight;if(s.left>i||s.right<i||s.top>r||Math.min(s.bottom,a)<r)return!1;let l=t.posAtCoords({x:i,y:r},!1);return l>=e&&l<=n}function cxe(t,e={}){let n=_t.define(),i=zi.define({create(){return null},update(r,o){if(r&&(e.hideOnChange&&(o.docChanged||o.selection)||e.hideOn&&e.hideOn(o,r)))return null;if(r&&o.docChanged){let s=o.changes.mapPos(r.pos,-1,er.TrackDel);if(s==null)return null;let a=Object.assign(Object.create(null),r);a.pos=s,r.end!=null&&(a.end=o.changes.mapPos(r.end)),r=a}for(let s of o.effects)s.is(n)&&(r=s.value),s.is(fxe)&&(r=null);return r},provide:r=>Ek.from(r)});return[i,li.define(r=>new axe(r,t,i,n,e.hoverTime||300)),sxe]}function EL(t,e){let n=t.plugin(k4);if(!n)return null;let i=n.manager.tooltips.indexOf(e);return i<0?null:n.manager.tooltipViews[i]}const fxe=_t.define(),TL=Qe.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function Tm(t,e){let n=t.plugin($L),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const $L=li.fromClass(class{constructor(t){this.input=t.state.facet($m),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(TL);this.top=new Mk(t,!0,e.topContainer),this.bottom=new Mk(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(TL);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Mk(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Mk(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet($m);if(n!=this.input){let i=n.filter(l=>l),r=[],o=[],s=[],a=[];for(let l of i){let u=this.specs.indexOf(l),f;u<0?(f=l(t.view),a.push(f)):(f=this.panels[u],f.update&&f.update(t)),r.push(f),(f.top?o:s).push(f)}this.specs=i,this.panels=r,this.top.sync(o),this.bottom.sync(s);for(let l of a)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Te.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Mk{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=ML(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=ML(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function ML(t){let e=t.nextSibling;return t.remove(),e}const $m=Qe.define({enables:$L});class il extends Qc{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}il.prototype.elementClass="",il.prototype.toDOM=void 0,il.prototype.mapMode=er.TrackBefore,il.prototype.startSide=il.prototype.endSide=-1,il.prototype.point=!0;const Nk=Qe.define(),dxe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>zt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Mm=Qe.define();function hxe(t){return[AL(),Mm.of(Object.assign(Object.assign({},dxe),t))]}const NL=Qe.define({combine:t=>t.some(e=>e)});function AL(t){return[pxe]}const pxe=li.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Mm).map(e=>new DL(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(NL),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(NL)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=zt.iter(this.view.state.facet(Nk),this.view.viewport.from),i=[],r=this.gutters.map(o=>new gxe(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(o.type)){let s=!0;for(let a of o.type)if(a.type==Fr.Text&&s){w4(n,i,a.from);for(let l of r)l.line(this.view,a,i);s=!1}else if(a.widget)for(let l of r)l.widget(this.view,a)}else if(o.type==Fr.Text){w4(n,i,o.from);for(let s of r)s.line(this.view,o,i)}else if(o.widget)for(let s of r)s.widget(this.view,o);for(let o of r)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Mm),n=t.state.facet(Mm),i=t.docChanged||t.heightChanged||t.viewportChanged||!zt.eq(t.startState.facet(Nk),t.state.facet(Nk),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let r of this.gutters)r.update(t)&&(i=!0);else{i=!0;let r=[];for(let o of n){let s=e.indexOf(o);s<0?r.push(new DL(this.view,o)):(this.gutters[s].update(t),r.push(this.gutters[s]))}for(let o of this.gutters)o.dom.remove(),r.indexOf(o)<0&&o.destroy();for(let o of r)this.dom.appendChild(o.dom);this.gutters=r}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Te.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==mn.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function PL(t){return Array.isArray(t)?t:[t]}function w4(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class gxe{constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=zt.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:r}=this,o=(n.top-this.height)/e.scaleY,s=n.height/e.scaleY;if(this.i==r.elements.length){let a=new IL(e,s,o,i);r.elements.push(a),r.dom.appendChild(a.dom)}else r.elements[this.i].update(e,s,o,i);this.height=n.bottom,this.i++}line(e,n,i){let r=[];w4(this.cursor,r,n.from),i.length&&(r=r.concat(i));let o=this.gutter.config.lineMarker(e,n,r);o&&r.unshift(o);let s=this.gutter;r.length==0&&!s.config.renderEmptyElements||this.addElement(e,n,r)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n);i&&this.addElement(e,n,[i])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class DL{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,r=>{let o=r.target,s;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=r.clientY;let a=e.lineBlockAtHeight(s-e.documentTop);n.domEventHandlers[i](e,a,r)&&r.preventDefault()});this.markers=PL(n.markers(e)),n.initialSpacer&&(this.spacer=new IL(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=PL(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let i=e.view.viewport;return!zt.eq(this.markers,n,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class IL{constructor(e,n,i,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,r)}update(e,n,i,r){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),mxe(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,n){let i="cm-gutterElement",r=this.dom.firstChild;for(let o=0,s=0;;){let a=s,l=o<n.length?n[o++]:null,u=!1;if(l){let f=l.elementClass;f&&(i+=" "+f);for(let d=s;d<this.markers.length;d++)if(this.markers[d].compare(l)){a=d,u=!0;break}}else a=this.markers.length;for(;s<a;){let f=this.markers[s++];if(f.toDOM){f.destroy(r);let d=r.nextSibling;r.remove(),r=d}}if(!l)break;l.toDOM&&(u?r=r.nextSibling:this.dom.insertBefore(l.toDOM(e),r)),u&&s++}this.dom.className=i,this.markers=n}destroy(){this.setMarkers(null,[])}}function mxe(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const vxe=Qe.define(),Xd=Qe.define({combine(t){return fa(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let i=Object.assign({},e);for(let r in n){let o=i[r],s=n[r];i[r]=o?(a,l,u)=>o(a,l,u)||s(a,l,u):s}return i}})}});class x4 extends il{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function _4(t,e){return t.state.facet(Xd).formatNumber(e,t.state)}const bxe=Mm.compute([Xd],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(vxe)},lineMarker(e,n,i){return i.some(r=>r.toDOM)?null:new x4(_4(e,e.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Xd)!=e.state.facet(Xd),initialSpacer(e){return new x4(_4(e,LL(e.state.doc.lines)))},updateSpacer(e,n){let i=_4(n.view,LL(n.view.state.doc.lines));return i==e.number?e:new x4(i)},domEventHandlers:t.facet(Xd).domEventHandlers}));function O4(t={}){return[Xd.of(t),AL(),bxe]}function LL(t){let e=9;for(;e<t;)e=e*10+9;return e}const kxe=new class extends il{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},yxe=Nk.compute(["selection"],t=>{let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.head).from;r>n&&(n=r,e.push(kxe.range(r)))}return zt.of(e)});function wxe(){return yxe}const RL=1024;let xxe=0,os=class{constructor(e,n){this.from=e,this.to=n}};class Et{constructor(e={}){this.id=xxe++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Br.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}}Et.closedBy=new Et({deserialize:t=>t.split(" ")}),Et.openedBy=new Et({deserialize:t=>t.split(" ")}),Et.group=new Et({deserialize:t=>t.split(" ")}),Et.isolate=new Et({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),Et.contextHash=new Et({perNode:!0}),Et.lookAhead=new Et({perNode:!0}),Et.mounted=new Et({perNode:!0});class Nm{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[Et.mounted.id]}}const _xe=Object.create(null);class Br{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):_xe,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new Br(e.name||"",n,e.id,i);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(r)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Et.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop(Et.group),o=-1;o<(r?r.length:0);o++){let s=n[o<0?i.name:r[o]];if(s)return s}}}}Br.none=new Br("",Object.create(null),0,8);class S4{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let i of this.types){let r=null;for(let o of e){let s=o(i);if(s){r||(r=Object.assign({},i.props));let a=s[1],l=s[0];l.combine&&l.id in r&&(a=l.combine(r[l.id],a)),r[l.id]=a}}n.push(r?new Br(i.name,r,i.id,i.flags):i)}return new S4(n)}}const Ak=new WeakMap,jL=new WeakMap;var ln;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(ln||(ln={}));class Fn{constructor(e,n,i,r,o){if(this.type=e,this.children=n,this.positions=i,this.length=r,this.props=null,o&&o.length){this.props=Object.create(null);for(let[s,a]of o)this.props[typeof s=="number"?s:s.id]=a}}toString(){let e=Nm.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let i of this.children){let r=i.toString();r&&(n&&(n+=","),n+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new Pk(this.topNode,e)}cursorAt(e,n=0,i=0){let r=Ak.get(this)||this.topNode,o=new Pk(r);return o.moveTo(e,n),Ak.set(this,o._tree),o}get topNode(){return new Or(this,0,0,null)}resolve(e,n=0){let i=Am(Ak.get(this)||this.topNode,e,n,!1);return Ak.set(this,i),i}resolveInner(e,n=0){let i=Am(jL.get(this)||this.topNode,e,n,!0);return jL.set(this,i),i}resolveStack(e,n=0){return Cxe(this,e,n)}iterate(e){let{enter:n,leave:i,from:r=0,to:o=this.length}=e,s=e.mode||0,a=(s&ln.IncludeAnonymous)>0;for(let l=this.cursor(s|ln.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=r&&(!a&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&i&&(a||!l.type.isAnonymous)&&i(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:$4(Br.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,r)=>new Fn(this.type,n,i,r,this.propValues),e.makeTree||((n,i,r)=>new Fn(Br.none,n,i,r)))}static build(e){return Exe(e)}}Fn.empty=new Fn(Br.none,[],[],0);class C4{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new C4(this.buffer,this.index)}}class gu{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return Br.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],i=this.buffer[e+3],r=this.set.types[n],o=r.name;if(/\W/.test(o)&&!r.isError&&(o=JSON.stringify(o)),e+=4,i==e)return o;let s=[];for(;e<i;)s.push(this.childString(e)),e=this.buffer[e+3];return o+"("+s.join(",")+")"}findChild(e,n,i,r,o){let{buffer:s}=this,a=-1;for(let l=e;l!=n&&!(FL(o,r,s[l+1],s[l+2])&&(a=l,i>0));l=s[l+3]);return a}slice(e,n,i){let r=this.buffer,o=new Uint16Array(n-e),s=0;for(let a=e,l=0;a<n;){o[l++]=r[a++],o[l++]=r[a++]-i;let u=o[l++]=r[a++]-i;o[l++]=r[a++]-e,s=Math.max(s,u)}return new gu(o,s,this.set)}}function FL(t,e,n,i){switch(t){case-2:return n<e;case-1:return i>=e&&n<e;case 0:return n<e&&i>e;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function Am(t,e,n,i){for(var r;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let s=!i&&t instanceof Or&&t.index<0?null:t.parent;if(!s)return t;t=s}let o=i?0:ln.IgnoreOverlays;if(i)for(let s=t,a=s.parent;a;s=a,a=s.parent)s instanceof Or&&s.index<0&&((r=a.enter(e,n,o))===null||r===void 0?void 0:r.from)!=s.from&&(t=a);for(;;){let s=t.enter(e,n,o);if(!s)return t;t=s}}class zL{cursor(e=0){return new Pk(this,e)}getChild(e,n=null,i=null){let r=BL(this,e,n,i);return r.length?r[0]:null}getChildren(e,n=null,i=null){return BL(this,e,n,i)}resolve(e,n=0){return Am(this,e,n,!1)}resolveInner(e,n=0){return Am(this,e,n,!0)}matchContext(e){return E4(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),i=this;for(;n;){let r=n.lastChild;if(!r||r.to!=n.to)break;r.type.isError&&r.from==r.to?(i=n,n=r.prevSibling):n=r}return i}get node(){return this}get next(){return this.parent}}class Or extends zL{constructor(e,n,i,r){super(),this._tree=e,this.from=n,this.index=i,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,i,r,o=0){for(let s=this;;){for(let{children:a,positions:l}=s._tree,u=n>0?a.length:-1;e!=u;e+=n){let f=a[e],d=l[e]+s.from;if(FL(r,i,d,d+f.length)){if(f instanceof gu){if(o&ln.ExcludeBuffers)continue;let h=f.findChild(0,f.buffer.length,n,i-d,r);if(h>-1)return new ga(new Oxe(s,f,e,d),null,h)}else if(o&ln.IncludeAnonymous||!f.type.isAnonymous||T4(f)){let h;if(!(o&ln.IgnoreMounts)&&(h=Nm.get(f))&&!h.overlay)return new Or(h.tree,d,e,s);let g=new Or(f,d,e,s);return o&ln.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?f.children.length-1:0,n,i,r)}}}if(o&ln.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?e=s.index+n:e=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,i=0){let r;if(!(i&ln.IgnoreOverlays)&&(r=Nm.get(this._tree))&&r.overlay){let o=e-this.from;for(let{from:s,to:a}of r.overlay)if((n>0?s<=o:s<o)&&(n<0?a>=o:a>o))return new Or(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function BL(t,e,n,i){let r=t.cursor(),o=[];if(!r.firstChild())return o;if(n!=null){for(let s=!1;!s;)if(s=r.type.is(n),!r.nextSibling())return o}for(;;){if(i!=null&&r.type.is(i))return o;if(r.type.is(e)&&o.push(r.node),!r.nextSibling())return i==null?o:[]}}function E4(t,e,n=e.length-1){for(let i=t;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class Oxe{constructor(e,n,i,r){this.parent=e,this.buffer=n,this.index=i,this.start=r}}class ga extends zL{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.context.start,i);return o<0?null:new ga(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,i=0){if(i&ln.ExcludeBuffers)return null;let{buffer:r}=this.context,o=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return o<0?null:new ga(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new ga(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new ga(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,r=this.index+4,o=i.buffer[this.index+3];if(o>r){let s=i.buffer[this.index+1];e.push(i.slice(r,o,s)),n.push(0)}return new Fn(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function WL(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;o<t.length;o++){let s=t[o];(s.from>n.from||s.to<n.to)&&(n=s,e=o)}let i=n instanceof Or&&n.index<0?null:n.parent,r=t.slice();return i?r[e]=i:r.splice(e,1),new Sxe(r,n)}class Sxe{constructor(e,n){this.heads=e,this.node=n}get next(){return WL(this.heads)}}function Cxe(t,e,n){let i=t.resolveInner(e,n),r=null;for(let o=i instanceof Or?i:i.context.parent;o;o=o.parent)if(o.index<0){let s=o.parent;(r||(r=[i])).push(s.resolve(e,n)),o=s}else{let s=Nm.get(o.tree);if(s&&s.overlay&&s.overlay[0].from<=e&&s.overlay[s.overlay.length-1].to>=e){let a=new Or(s.tree,s.overlay[0].from+o.from,-1,o);(r||(r=[i])).push(Am(a,e,n,!1))}}return r?WL(r):i}class Pk{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Or)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:i,buffer:r}=this.buffer;return this.type=n||r.set.types[r.buffer[e]],this.from=i+r.buffer[e+1],this.to=i+r.buffer[e+2],!0}yield(e){return e?e instanceof Or?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,i,this.mode));let{buffer:r}=this.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.buffer.start,i);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,i=this.mode){return this.buffer?i&ln.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&ln.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&ln.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,i=this.stack.length-1;if(e<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(n.findChild(r,this.index,-1,0,4))}else{let r=n.buffer[this.index+3];if(r<(i<0?n.buffer.length:n.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,i,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(r.buffer.buffer[o+3]<this.index)return!1;({index:n,parent:i}=r)}else({index:n,_parent:i}=this._tree);for(;i;{index:n,_parent:i}=i)if(n>-1)for(let o=n+e,s=e<0?-1:i._tree.children.length;o!=s;o+=e){let a=i._tree.children[o];if(this.mode&ln.IncludeAnonymous||a instanceof gu||!a.type.isAnonymous||T4(a))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,i=0;if(e&&e.context==this.buffer)e:for(let r=this.index,o=this.stack.length;o>=0;){for(let s=e;s;s=s._parent)if(s.index==r){if(r==this.index)return s;n=s,i=o+1;break e}r=this.stack[--o]}for(let r=i;r<this.stack.length;r++)n=new ga(this.buffer,n,this.stack[r]);return this.bufferNode=new ga(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let i=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&n&&n(this),r=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,r=!0}}}matchContext(e){if(!this.buffer)return E4(this.node.parent,e);let{buffer:n}=this.buffer,{types:i}=n.set;for(let r=e.length-1,o=this.stack.length-1;r>=0;o--){if(o<0)return E4(this._tree,e,r);let s=i[n.buffer[this.stack[o]]];if(!s.isAnonymous){if(e[r]&&e[r]!=s.name)return!1;r--}}return!0}}function T4(t){return t.children.some(e=>e instanceof gu||!e.type.isAnonymous||T4(e))}function Exe(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=RL,reused:o=[],minRepeatType:s=i.types.length}=t,a=Array.isArray(n)?new C4(n,n.length):n,l=i.types,u=0,f=0;function d(N,M,I,W,B,Z){let{id:R,start:Q,end:V,size:H}=a,j=f,q=u;if(H<0)if(a.next(),H==-1){let ce=o[R];I.push(ce),W.push(Q-N);return}else if(H==-3){u=R;return}else if(H==-4){f=R;return}else throw new RangeError(`Unrecognized record size: ${H}`);let Y=l[R],K,te,oe=Q-N;if(V-Q<=r&&(te=x(a.pos-M,B))){let ce=new Uint16Array(te.size-te.skip),U=a.pos-te.size,F=ce.length;for(;a.pos>U;)F=_(te.start,ce,F);K=new gu(ce,V-te.start,i),oe=te.start-N}else{let ce=a.pos-H;a.next();let U=[],F=[],se=R>=s?R:-1,le=0,pe=V;for(;a.pos>ce;)se>=0&&a.id==se&&a.size>=0?(a.end<=pe-r&&(m(U,F,Q,le,a.end,pe,se,j,q),le=U.length,pe=a.end),a.next()):Z>2500?h(Q,ce,U,F):d(Q,ce,U,F,se,Z+1);if(se>=0&&le>0&&le<U.length&&m(U,F,Q,le,Q,pe,se,j,q),U.reverse(),F.reverse(),se>-1&&le>0){let je=g(Y,q);K=$4(Y,U,F,0,U.length,0,V-Q,je,je)}else K=y(Y,U,F,V-Q,j-V,q)}I.push(K),W.push(oe)}function h(N,M,I,W){let B=[],Z=0,R=-1;for(;a.pos>M;){let{id:Q,start:V,end:H,size:j}=a;if(j>4)a.next();else{if(R>-1&&V<R)break;R<0&&(R=H-r),B.push(Q,V,H),Z++,a.next()}}if(Z){let Q=new Uint16Array(Z*4),V=B[B.length-2];for(let H=B.length-3,j=0;H>=0;H-=3)Q[j++]=B[H],Q[j++]=B[H+1]-V,Q[j++]=B[H+2]-V,Q[j++]=j;I.push(new gu(Q,B[2]-V,i)),W.push(V-N)}}function g(N,M){return(I,W,B)=>{let Z=0,R=I.length-1,Q,V;if(R>=0&&(Q=I[R])instanceof Fn){if(!R&&Q.type==N&&Q.length==B)return Q;(V=Q.prop(Et.lookAhead))&&(Z=W[R]+Q.length+V)}return y(N,I,W,B,Z,M)}}function m(N,M,I,W,B,Z,R,Q,V){let H=[],j=[];for(;N.length>W;)H.push(N.pop()),j.push(M.pop()+I-B);N.push(y(i.types[R],H,j,Z-B,Q-Z,V)),M.push(B-I)}function y(N,M,I,W,B,Z,R){if(Z){let Q=[Et.contextHash,Z];R=R?[Q].concat(R):[Q]}if(B>25){let Q=[Et.lookAhead,B];R=R?[Q].concat(R):[Q]}return new Fn(N,M,I,W,R)}function x(N,M){let I=a.fork(),W=0,B=0,Z=0,R=I.end-r,Q={size:0,start:0,skip:0};e:for(let V=I.pos-N;I.pos>V;){let H=I.size;if(I.id==M&&H>=0){Q.size=W,Q.start=B,Q.skip=Z,Z+=4,W+=4,I.next();continue}let j=I.pos-H;if(H<0||j<V||I.start<R)break;let q=I.id>=s?4:0,Y=I.start;for(I.next();I.pos>j;){if(I.size<0)if(I.size==-3)q+=4;else break e;else I.id>=s&&(q+=4);I.next()}B=Y,W+=H,Z+=q}return(M<0||W==N)&&(Q.size=W,Q.start=B,Q.skip=Z),Q.size>4?Q:void 0}function _(N,M,I){let{id:W,start:B,end:Z,size:R}=a;if(a.next(),R>=0&&W<s){let Q=I;if(R>4){let V=a.pos-(R-4);for(;a.pos>V;)I=_(N,M,I)}M[--I]=Q,M[--I]=Z-N,M[--I]=B-N,M[--I]=W}else R==-3?u=W:R==-4&&(f=W);return I}let S=[],C=[];for(;a.pos>0;)d(t.start||0,t.bufferStart||0,S,C,-1,0);let E=(e=t.length)!==null&&e!==void 0?e:S.length?C[0]+S[0].length:0;return new Fn(l[t.topID],S.reverse(),C.reverse(),E)}const HL=new WeakMap;function Dk(t,e){if(!t.isAnonymous||e instanceof gu||e.type!=t)return 1;let n=HL.get(e);if(n==null){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Fn)){n=1;break}n+=Dk(t,i)}HL.set(e,n)}return n}function $4(t,e,n,i,r,o,s,a,l){let u=0;for(let m=i;m<r;m++)u+=Dk(t,e[m]);let f=Math.ceil(u*1.5/8),d=[],h=[];function g(m,y,x,_,S){for(let C=x;C<_;){let E=C,N=y[C],M=Dk(t,m[C]);for(C++;C<_;C++){let I=Dk(t,m[C]);if(M+I>=f)break;M+=I}if(C==E+1){if(M>f){let I=m[E];g(I.children,I.positions,0,I.children.length,y[E]+S);continue}d.push(m[E])}else{let I=y[C-1]+m[C-1].length-N;d.push($4(t,m,y,E,C,N,I,null,l))}h.push(N+S-o)}}return g(e,n,i,r,0),(a||l)(d,h,s)}class QL{constructor(){this.map=new WeakMap}setBuffer(e,n,i){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(n,i)}getBuffer(e,n){let i=this.map.get(e);return i&&i.get(n)}set(e,n){e instanceof ga?this.setBuffer(e.context.buffer,e.index,n):e instanceof Or&&this.map.set(e.tree,n)}get(e){return e instanceof ga?this.getBuffer(e.context.buffer,e.index):e instanceof Or?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class rl{constructor(e,n,i,r,o=!1,s=!1){this.from=e,this.to=n,this.tree=i,this.offset=r,this.open=(o?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],i=!1){let r=[new rl(0,e.length,e,0,!1,i)];for(let o of n)o.to>e.length&&r.push(o);return r}static applyChanges(e,n,i=128){if(!n.length)return e;let r=[],o=1,s=e.length?e[0]:null;for(let a=0,l=0,u=0;;a++){let f=a<n.length?n[a]:null,d=f?f.fromA:1e9;if(d-l>=i)for(;s&&s.from<d;){let h=s;if(l>=h.from||d<=h.to||u){let g=Math.max(h.from,l)-u,m=Math.min(h.to,d)-u;h=g>=m?null:new rl(g,m,h.tree,h.offset+u,a>0,!!f)}if(h&&r.push(h),s.to>d)break;s=o<e.length?e[o++]:null}if(!f)break;l=f.toA,u=f.toA-f.toB}return r}}class UL{startParse(e,n,i){return typeof e=="string"&&(e=new Txe(e)),i=i?i.length?i.map(r=>new os(r.from,r.to)):[new os(0,0)]:[new os(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let r=this.startParse(e,n,i);for(;;){let o=r.advance();if(o)return o}}}class Txe{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}function $xe(t){return(e,n,i,r)=>new Nxe(e,t,n,i,r)}class ZL{constructor(e,n,i,r,o){this.parser=e,this.parse=n,this.overlay=i,this.target=r,this.from=o}}function qL(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class Mxe{constructor(e,n,i,r,o,s,a){this.parser=e,this.predicate=n,this.mounts=i,this.index=r,this.start=o,this.target=s,this.prev=a,this.depth=0,this.ranges=[]}}const M4=new Et({perNode:!0});class Nxe{constructor(e,n,i,r,o){this.nest=n,this.input=i,this.fragments=r,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new Fn(i.type,i.children,i.positions,i.length,i.propValues.concat([[M4,this.stoppedAt]]))),i}let e=this.inner[this.innerDone],n=e.parse.advance();if(n){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[Et.mounted.id]=new Nm(n,e.overlay,e.parser),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<e&&(e=Math.min(e,this.inner[n].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(e)}startInner(){let e=new Dxe(this.fragments),n=null,i=null,r=new Pk(new Or(this.baseTree,this.ranges[0].from,0,null),ln.IncludeAnonymous|ln.IgnoreMounts);e:for(let o,s;;){let a=!0,l;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)a=!1;else if(e.hasNode(r)){if(n){let u=n.mounts.find(f=>f.frag.from<=r.from&&f.frag.to>=r.to&&f.mount.overlay);if(u)for(let f of u.mount.overlay){let d=f.from+u.pos,h=f.to+u.pos;d>=r.from&&h<=r.to&&!n.ranges.some(g=>g.from<h&&g.to>d)&&n.ranges.push({from:d,to:h})}}a=!1}else if(i&&(s=Axe(i.ranges,r.from,r.to)))a=s!=2;else if(!r.type.isAnonymous&&(o=this.nest(r,this.input))&&(r.from<r.to||!o.overlay)){r.tree||(Pxe(r),n&&n.depth++,i&&i.depth++);let u=e.findMounts(r.from,o.parser);if(typeof o.overlay=="function")n=new Mxe(o.parser,o.overlay,u,this.inner.length,r.from,r.tree,n);else{let f=XL(this.ranges,o.overlay||(r.from<r.to?[new os(r.from,r.to)]:[]));f.length&&qL(f),(f.length||!o.overlay)&&this.inner.push(new ZL(o.parser,f.length?o.parser.startParse(this.input,GL(u,f),f):o.parser.startParse(""),o.overlay?o.overlay.map(d=>new os(d.from-r.from,d.to-r.from)):null,r.tree,f.length?f[0].from:r.from)),o.overlay?f.length&&(i={ranges:f,depth:0,prev:i}):a=!1}}else if(n&&(l=n.predicate(r))&&(l===!0&&(l=new os(r.from,r.to)),l.from<l.to)){let u=n.ranges.length-1;u>=0&&n.ranges[u].to==l.from?n.ranges[u]={from:n.ranges[u].from,to:l.to}:n.ranges.push(l)}if(a&&r.firstChild())n&&n.depth++,i&&i.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(n&&!--n.depth){let u=XL(this.ranges,n.ranges);u.length&&(qL(u),this.inner.splice(n.index,0,new ZL(n.parser,n.parser.startParse(this.input,GL(n.mounts,u),u),n.ranges.map(f=>new os(f.from-n.start,f.to-n.start)),n.target,u[0].from))),n=n.prev}i&&!--i.depth&&(i=i.prev)}}}}function Axe(t,e,n){for(let i of t){if(i.from>=n)break;if(i.to>e)return i.from<=e&&i.to>=n?2:1}return 0}function YL(t,e,n,i,r,o){if(e<n){let s=t.buffer[e+1];i.push(t.slice(e,n,s)),r.push(s-o)}}function Pxe(t){let{node:e}=t,n=[],i=e.context.buffer;do n.push(t.index),t.parent();while(!t.tree);let r=t.tree,o=r.children.indexOf(i),s=r.children[o],a=s.buffer,l=[o];function u(f,d,h,g,m,y){let x=n[y],_=[],S=[];YL(s,f,x,_,S,g);let C=a[x+1],E=a[x+2];l.push(_.length);let N=y?u(x+4,a[x+3],s.set.types[a[x]],C,E-C,y-1):e.toTree();return _.push(N),S.push(C-g),YL(s,a[x+3],d,_,S,g),new Fn(h,_,S,m)}r.children[o]=u(0,a.length,Br.none,0,s.length,n.length-1);for(let f of l){let d=t.tree.children[f],h=t.tree.positions[f];t.yield(new Or(d,h+t.from,f,t._tree))}}class VL{constructor(e,n){this.offset=n,this.done=!1,this.cursor=e.cursor(ln.IncludeAnonymous|ln.IgnoreMounts)}moveTo(e){let{cursor:n}=this,i=e-this.offset;for(;!this.done&&n.from<i;)n.to>=e&&n.enter(i,1,ln.IgnoreOverlays|ln.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==e.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof Fn)n=n.children[0];else break}return!1}}let Dxe=class{constructor(e){var n;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=(n=i.tree.prop(M4))!==null&&n!==void 0?n:i.to,this.inner=new VL(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(e=n.tree.prop(M4))!==null&&e!==void 0?e:n.to,this.inner=new VL(n.tree,-n.offset)}}findMounts(e,n){var i;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let o=this.inner.cursor.node;o;o=o.parent){let s=(i=o.tree)===null||i===void 0?void 0:i.prop(Et.mounted);if(s&&s.parser==n)for(let a=this.fragI;a<this.fragments.length;a++){let l=this.fragments[a];if(l.from>=o.to)break;l.tree==this.curFrag.tree&&r.push({frag:l,pos:o.from-l.offset,mount:s})}}}return r}};function XL(t,e){let n=null,i=e;for(let r=1,o=0;r<t.length;r++){let s=t[r-1].to,a=t[r].from;for(;o<i.length;o++){let l=i[o];if(l.from>=a)break;l.to<=s||(n||(i=n=e.slice()),l.from<s?(n[o]=new os(l.from,s),l.to>a&&n.splice(o+1,0,new os(a,l.to))):l.to>a?n[o--]=new os(a,l.to):n.splice(o--,1))}}return i}function Ixe(t,e,n,i){let r=0,o=0,s=!1,a=!1,l=-1e9,u=[];for(;;){let f=r==t.length?1e9:s?t[r].to:t[r].from,d=o==e.length?1e9:a?e[o].to:e[o].from;if(s!=a){let h=Math.max(l,n),g=Math.min(f,d,i);h<g&&u.push(new os(h,g))}if(l=Math.min(f,d),l==1e9)break;f==l&&(s?(s=!1,r++):s=!0),d==l&&(a?(a=!1,o++):a=!0)}return u}function GL(t,e){let n=[];for(let{pos:i,mount:r,frag:o}of t){let s=i+(r.overlay?r.overlay[0].from:0),a=s+r.tree.length,l=Math.max(o.from,s),u=Math.min(o.to,a);if(r.overlay){let f=r.overlay.map(h=>new os(h.from+i,h.to+i)),d=Ixe(e,f,l,u);for(let h=0,g=l;;h++){let m=h==d.length,y=m?u:d[h].from;if(y>g&&n.push(new rl(g,y,r.tree,-s,o.from>=g||o.openStart,o.to<=y||o.openEnd)),m)break;g=d[h].to}}else n.push(new rl(l,u,r.tree,-s,o.from>=s||o.openStart,o.to<=a||o.openEnd))}return n}let Lxe=0;class ss{constructor(e,n,i,r){this.name=e,this.set=n,this.base=i,this.modified=r,this.id=Lxe++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let i=typeof e=="string"?e:"?";if(e instanceof ss&&(n=e),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let r=new ss(i,[],null,[]);if(r.set.push(r),n)for(let o of n.set)r.set.push(o);return r}static defineModifier(e){let n=new Ik(e);return i=>i.modified.indexOf(n)>-1?i:Ik.get(i.base||i,i.modified.concat(n).sort((r,o)=>r.id-o.id))}}let Rxe=0;class Ik{constructor(e){this.name=e,this.instances=[],this.id=Rxe++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(a=>a.base==e&&jxe(n,a.modified));if(i)return i;let r=[],o=new ss(e.name,r,e,n);for(let a of n)a.instances.push(o);let s=Fxe(n);for(let a of e.set)if(!a.modified.length)for(let l of s)r.push(Ik.get(a,l));return o}}function jxe(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function Fxe(t){let e=[[]];for(let n=0;n<t.length;n++)for(let i=0,r=e.length;i<r;i++)e.push(e[i].concat(t[n]));return e.sort((n,i)=>i.length-n.length)}function Lk(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let r of n.split(" "))if(r){let o=[],s=2,a=r;for(let d=0;;){if(a=="..."&&d>0&&d+3==r.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!h)throw new RangeError("Invalid path: "+r);if(o.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),d+=h[0].length,d==r.length)break;let g=r[d++];if(d==r.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+r);a=r.slice(d)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+r);let f=new Pm(i,s,l>0?o.slice(0,l):null);e[u]=f.sort(e[u])}}return KL.add(e)}const KL=new Et({combine(t,e){let n,i,r;for(;t||e;){if(!t||e&&t.depth>=e.depth?(r=e,e=e.next):(r=t,t=t.next),n&&n.mode==r.mode&&!r.context&&!n.context)continue;let o=new Pm(r.tags,r.mode,r.context);n?n.next=o:i=o,n=o}return i}});class Pm{constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}Pm.empty=new Pm([],2,null);function JL(t,e){let n=Object.create(null);for(let o of t)if(!Array.isArray(o.tag))n[o.tag.id]=o.class;else for(let s of o.tag)n[s.id]=o.class;let{scope:i,all:r=null}=e||{};return{style:o=>{let s=r;for(let a of o)for(let l of a.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:i}}function zxe(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}function Bxe(t,e,n,i=0,r=t.length){let o=new Wxe(i,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),i,r,"",o.highlighters),o.flush(r)}class Wxe{constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,r,o){let{type:s,from:a,to:l}=e;if(a>=i||l<=n)return;s.isTop&&(o=this.highlighters.filter(g=>!g.scope||g.scope(s)));let u=r,f=Hxe(e)||Pm.empty,d=zxe(o,f.tags);if(d&&(u&&(u+=" "),u+=d,f.mode==1&&(r+=(r?" ":"")+d)),this.startSpan(Math.max(n,a),u),f.opaque)return;let h=e.tree&&e.tree.prop(Et.mounted);if(h&&h.overlay){let g=e.node.enter(h.overlay[0].from+a,1),m=this.highlighters.filter(x=>!x.scope||x.scope(h.tree.type)),y=e.firstChild();for(let x=0,_=a;;x++){let S=x<h.overlay.length?h.overlay[x]:null,C=S?S.from+a:l,E=Math.max(n,_),N=Math.min(i,C);if(E<N&&y)for(;e.from<N&&(this.highlightRange(e,E,N,r,o),this.startSpan(Math.min(N,e.to),u),!(e.to>=C||!e.nextSibling())););if(!S||C>i)break;_=S.to+a,_>n&&(this.highlightRange(g.cursor(),Math.max(n,S.from+a),Math.min(i,_),"",m),this.startSpan(Math.min(i,_),u))}y&&e.parent()}else if(e.firstChild()){h&&(r="");do if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,r,o),this.startSpan(Math.min(i,e.to),u)}while(e.nextSibling());e.parent()}}}function Hxe(t){let e=t.type.prop(KL);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Me=ss.define,Rk=Me(),mu=Me(),eR=Me(mu),tR=Me(mu),vu=Me(),jk=Me(vu),N4=Me(vu),ma=Me(),qc=Me(ma),va=Me(),ba=Me(),A4=Me(),Dm=Me(A4),Fk=Me(),X={comment:Rk,lineComment:Me(Rk),blockComment:Me(Rk),docComment:Me(Rk),name:mu,variableName:Me(mu),typeName:eR,tagName:Me(eR),propertyName:tR,attributeName:Me(tR),className:Me(mu),labelName:Me(mu),namespace:Me(mu),macroName:Me(mu),literal:vu,string:jk,docString:Me(jk),character:Me(jk),attributeValue:Me(jk),number:N4,integer:Me(N4),float:Me(N4),bool:Me(vu),regexp:Me(vu),escape:Me(vu),color:Me(vu),url:Me(vu),keyword:va,self:Me(va),null:Me(va),atom:Me(va),unit:Me(va),modifier:Me(va),operatorKeyword:Me(va),controlKeyword:Me(va),definitionKeyword:Me(va),moduleKeyword:Me(va),operator:ba,derefOperator:Me(ba),arithmeticOperator:Me(ba),logicOperator:Me(ba),bitwiseOperator:Me(ba),compareOperator:Me(ba),updateOperator:Me(ba),definitionOperator:Me(ba),typeOperator:Me(ba),controlOperator:Me(ba),punctuation:A4,separator:Me(A4),bracket:Dm,angleBracket:Me(Dm),squareBracket:Me(Dm),paren:Me(Dm),brace:Me(Dm),content:ma,heading:qc,heading1:Me(qc),heading2:Me(qc),heading3:Me(qc),heading4:Me(qc),heading5:Me(qc),heading6:Me(qc),contentSeparator:Me(ma),list:Me(ma),quote:Me(ma),emphasis:Me(ma),strong:Me(ma),link:Me(ma),monospace:Me(ma),strikethrough:Me(ma),inserted:Me(),deleted:Me(),changed:Me(),invalid:Me(),meta:Fk,documentMeta:Me(Fk),annotation:Me(Fk),processingInstruction:Me(Fk),definition:ss.defineModifier("definition"),constant:ss.defineModifier("constant"),function:ss.defineModifier("function"),standard:ss.defineModifier("standard"),local:ss.defineModifier("local"),special:ss.defineModifier("special")};for(let t in X){let e=X[t];e instanceof ss&&(e.name=t)}JL([{tag:X.link,class:"tok-link"},{tag:X.heading,class:"tok-heading"},{tag:X.emphasis,class:"tok-emphasis"},{tag:X.strong,class:"tok-strong"},{tag:X.keyword,class:"tok-keyword"},{tag:X.atom,class:"tok-atom"},{tag:X.bool,class:"tok-bool"},{tag:X.url,class:"tok-url"},{tag:X.labelName,class:"tok-labelName"},{tag:X.inserted,class:"tok-inserted"},{tag:X.deleted,class:"tok-deleted"},{tag:X.literal,class:"tok-literal"},{tag:X.string,class:"tok-string"},{tag:X.number,class:"tok-number"},{tag:[X.regexp,X.escape,X.special(X.string)],class:"tok-string2"},{tag:X.variableName,class:"tok-variableName"},{tag:X.local(X.variableName),class:"tok-variableName tok-local"},{tag:X.definition(X.variableName),class:"tok-variableName tok-definition"},{tag:X.special(X.variableName),class:"tok-variableName2"},{tag:X.definition(X.propertyName),class:"tok-propertyName tok-definition"},{tag:X.typeName,class:"tok-typeName"},{tag:X.namespace,class:"tok-namespace"},{tag:X.className,class:"tok-className"},{tag:X.macroName,class:"tok-macroName"},{tag:X.propertyName,class:"tok-propertyName"},{tag:X.operator,class:"tok-operator"},{tag:X.comment,class:"tok-comment"},{tag:X.meta,class:"tok-meta"},{tag:X.invalid,class:"tok-invalid"},{tag:X.punctuation,class:"tok-punctuation"}]);var P4;const Gd=new Et;function nR(t){return Qe.define({combine:t?e=>e.concat(t):void 0})}const D4=new Et;class Ds{constructor(e,n,i=[],r=""){this.data=e,this.name=r,jt.prototype.hasOwnProperty("tree")||Object.defineProperty(jt.prototype,"tree",{get(){return Gn(this)}}),this.parser=n,this.extension=[bu.of(this),jt.languageData.of((o,s,a)=>{let l=iR(o,s,a),u=l.type.prop(Gd);if(!u)return[];let f=o.facet(u),d=l.type.prop(D4);if(d){let h=l.resolve(s-l.from,a);for(let g of d)if(g.test(h,o)){let m=o.facet(g.facet);return g.type=="replace"?m:m.concat(f)}}return f})].concat(i)}isActiveAt(e,n,i=-1){return iR(e,n,i).type.prop(Gd)==this.data}findRegions(e){let n=e.facet(bu);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let i=[],r=(o,s)=>{if(o.prop(Gd)==this.data){i.push({from:s,to:s+o.length});return}let a=o.prop(Et.mounted);if(a){if(a.tree.prop(Gd)==this.data){if(a.overlay)for(let l of a.overlay)i.push({from:l.from+s,to:l.to+s});else i.push({from:s,to:s+o.length});return}else if(a.overlay){let l=i.length;if(r(a.tree,a.overlay[0].from+s),i.length>l)return}}for(let l=0;l<o.children.length;l++){let u=o.children[l];u instanceof Fn&&r(u,o.positions[l]+s)}};return r(Gn(e),0),i}get allowsNesting(){return!0}}Ds.setState=_t.define();function iR(t,e,n){let i=t.facet(bu),r=Gn(t).topNode;if(!i||i.allowsNesting)for(let o=r;o;o=o.enter(e,n,ln.ExcludeBuffers))o.type.isTop&&(r=o);return r}class Kd extends Ds{constructor(e,n,i){super(e,n,[],i),this.parser=n}static define(e){let n=nR(e.languageData);return new Kd(n,e.parser.configure({props:[Gd.add(i=>i.isTop?n:void 0)]}),e.name)}configure(e,n){return new Kd(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Gn(t){let e=t.field(Ds.state,!1);return e?e.tree:Fn.empty}class Qxe{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e<i||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let Im=null;class zk{constructor(e,n,i=[],r,o,s,a,l){this.parser=e,this.state=n,this.fragments=i,this.tree=r,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new zk(e,n,[],Fn.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Qxe(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Fn.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(rl.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(rl.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=Im;Im=this;try{return e()}finally{Im=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=rR(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,f,d,h)=>l.push({fromA:u,toA:f,fromB:d,toB:h})),i=rl.applyChanges(i,l),r=Fn.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){a=[];for(let u of this.skipped){let f=e.mapPos(u.from,1),d=e.mapPos(u.to,-1);f<d&&a.push({from:f,to:d})}}}return new zk(this.parser,n,i,r,o,s,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:r,to:o}=this.skipped[i];r<e.to&&o>e.from&&(this.fragments=rR(this.fragments,r,o),this.skipped.splice(i--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends UL{createParse(n,i,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let l=Im;if(l){for(let u of r)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=s,new Fn(Br.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return Im}}function rR(t,e,n){return rl.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Jd{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new Jd(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=zk.create(e.facet(bu).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new Jd(i)}}Ds.state=zi.define({create:Jd.init,update(t,e){for(let n of e.effects)if(n.is(Ds.setState))return n.value;return e.startState.facet(bu)!=e.state.facet(bu)?Jd.init(e.state):t.apply(e)}});let oR=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(oR=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const I4=typeof navigator<"u"&&(!((P4=navigator.scheduling)===null||P4===void 0)&&P4.isInputPending)?()=>navigator.scheduling.isInputPending():null,Uxe=li.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Ds.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Ds.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=oR(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:r}}=this.view,o=i.field(Ds.state);if(o.tree==o.context.tree&&o.context.isDone(r+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!I4?Math.max(25,e.timeRemaining()-5):1e9),a=o.context.treeLen<r&&i.doc.length>r+1e3,l=o.context.work(()=>I4&&I4()||Date.now()>s,r+(a?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Ds.setState.of(new Jd(o.context))})),this.chunkBudget>0&&!(l&&!a)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>is(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),bu=Qe.define({combine(t){return t.length?t[0]:null},enables:t=>[Ds.state,Uxe,Te.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class L4{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const Zxe=Qe.define(),Lm=Qe.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function Bk(t){let e=t.facet(Lm);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function Rm(t,e){let n="",i=t.tabSize,r=t.facet(Lm)[0];if(r==" "){for(;e>=i;)n+=" ",e-=i;r=" "}for(let o=0;o<e;o++)n+=r;return n}function R4(t,e){t instanceof jt&&(t=new Wk(t));for(let i of t.state.facet(Zxe)){let r=i(t,e);if(r!==void 0)return r}let n=Gn(t.state);return n.length>=e?qxe(t,n,e):null}class Wk{constructor(e,n={}){this.state=e,this.options=n,this.unit=Bk(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:o}=this.options;return r!=null&&r>=i.from&&r<=i.to?o&&r==e?{text:"",from:e}:(n<0?r<e:r<=e)?{text:i.text.slice(r-i.from),from:r}:{text:i.text.slice(0,r-i.from),from:i.from}:i}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:r}=this.lineAt(e,n);return i.slice(e-r,Math.min(i.length,e+100-r))}column(e,n=1){let{text:i,from:r}=this.lineAt(e,n),o=this.countColumn(i,e-r),s=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return s>-1&&(o+=s-this.countColumn(i,i.search(/\S|$/))),o}countColumn(e,n=e.length){return Qd(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:r}=this.lineAt(e,n),o=this.options.overrideIndentation;if(o){let s=o(r);if(s>-1)return s}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Hk=new Et;function qxe(t,e,n){let i=e.resolveStack(n),r=i.node.enterUnfinishedNodesBefore(n);if(r!=i.node){let o=[];for(let s=r;s!=i.node;s=s.parent)o.push(s);for(let s=o.length-1;s>=0;s--)i={node:o[s],next:i}}return sR(i,t,n)}function sR(t,e,n){for(let i=t;i;i=i.next){let r=Vxe(i.node);if(r)return r(j4.create(e,n,i))}return 0}function Yxe(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Vxe(t){let e=t.type.prop(Hk);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(Et.closedBy))){let r=t.lastChild,o=r&&i.indexOf(r.name)>-1;return s=>aR(s,!0,1,void 0,o&&!Yxe(s)?r.from:void 0)}return t.parent==null?Xxe:null}function Xxe(){return 0}class j4 extends Wk{constructor(e,n,i){super(e.state,e.options),this.base=e,this.pos=n,this.context=i}get node(){return this.context.node}static create(e,n,i){return new j4(e,n,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(n.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Gxe(i,e))break;n=this.state.doc.lineAt(i.from)}return this.lineIndent(n.from)}continue(){return sR(this.context.next,this.base,this.pos)}}function Gxe(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function Kxe(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),s=r==null||r<=o.from?o.to:Math.min(o.to,r);for(let a=n.to;;){let l=e.childAfter(a);if(!l||l==i)return null;if(!l.type.isSkipped)return l.from<s?n:null;a=l.to}}function Jxe({closing:t,align:e=!0,units:n=1}){return i=>aR(i,e,n,t)}function aR(t,e,n,i,r){let o=t.textAfter,s=o.match(/^\s*/)[0].length,a=i&&o.slice(s,s+i.length)==i||r==t.pos+s,l=e?Kxe(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:t.unit*n)}const e2e=t=>t.baseIndent;function Qk({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const t2e=200;function n2e(){return jt.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,r=n.lineAt(i);if(i>r.from+t2e)return t;let o=n.sliceString(r.from,i);if(!e.some(u=>u.test(o)))return t;let{state:s}=t,a=-1,l=[];for(let{head:u}of s.selection.ranges){let f=s.doc.lineAt(u);if(f.from==a)continue;a=f.from;let d=R4(s,f.from);if(d==null)continue;let h=/^\s*/.exec(f.text)[0],g=Rm(s,d);h!=g&&l.push({from:f.from,to:f.from+h.length,insert:g})}return l.length?[t,{changes:l,sequential:!0}]:t})}const i2e=Qe.define(),Uk=new Et;function lR(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function r2e(t,e,n){let i=Gn(t);if(i.length<n)return null;let r=i.resolveStack(n,1),o=null;for(let s=r;s;s=s.next){let a=s.node;if(a.to<=n||a.from>n)continue;if(o&&a.from<e)break;let l=a.type.prop(Uk);if(l&&(a.to<i.length-50||i.length==t.doc.length||!o2e(a))){let u=l(a,t);u&&u.from<=n&&u.from>=e&&u.to>n&&(o=u)}}return o}function o2e(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function Zk(t,e,n){for(let i of t.facet(i2e)){let r=i(t,e,n);if(r)return r}return r2e(t,e,n)}function uR(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}const qk=_t.define({map:uR}),jm=_t.define({map:uR});function cR(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(i=>i.from<=n&&i.to>=n)||e.push(t.lineBlockAt(n));return e}const Yc=zi.define({create(){return it.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(qk)&&!s2e(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(hR),r=i?it.replace({widget:new f2e(i(e.state,n.value))}):mR;t=t.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(jm)&&(t=t.update({filter:(i,r)=>n.value.from!=i||n.value.to!=r,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:i}=e.selection.main;t.between(i,i,(r,o)=>{r<i&&o>i&&(n=!0)}),n&&(t=t.update({filterFrom:i,filterTo:i,filter:(r,o)=>o<=i||r>=i}))}return t},provide:t=>Te.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(i,r)=>{n.push(i,r)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let i=t[n++],r=t[n++];if(typeof i!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(mR.range(i,r))}return it.set(e,!0)}});function Yk(t,e,n){var i;let r=null;return(i=t.field(Yc,!1))===null||i===void 0||i.between(e,n,(o,s)=>{(!r||r.from>o)&&(r={from:o,to:s})}),r}function s2e(t,e,n){let i=!1;return t.between(e,e,(r,o)=>{r==e&&o==n&&(i=!0)}),i}function fR(t,e){return t.field(Yc,!1)?e:e.concat(_t.appendConfig.of(pR()))}const a2e=t=>{for(let e of cR(t)){let n=Zk(t.state,e.from,e.to);if(n)return t.dispatch({effects:fR(t.state,[qk.of(n),dR(t,n)])}),!0}return!1},l2e=t=>{if(!t.state.field(Yc,!1))return!1;let e=[];for(let n of cR(t)){let i=Yk(t.state,n.from,n.to);i&&e.push(jm.of(i),dR(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function dR(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return Te.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${r}.`)}const u2e=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:a2e},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:l2e},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let i=0;i<e.doc.length;){let r=t.lineBlockAt(i),o=Zk(e,r.from,r.to);o&&n.push(qk.of(o)),i=(o?t.lineBlockAt(o.to):r).to+1}return n.length&&t.dispatch({effects:fR(t.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:t=>{let e=t.state.field(Yc,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(i,r)=>{n.push(jm.of({from:i,to:r}))}),t.dispatch({effects:n}),!0}}],c2e={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},hR=Qe.define({combine(t){return fa(t,c2e)}});function pR(t){return[Yc,p2e]}function gR(t,e){let{state:n}=t,i=n.facet(hR),r=s=>{let a=t.lineBlockAt(t.posAtDOM(s.target)),l=Yk(t.state,a.from,a.to);l&&t.dispatch({effects:jm.of(l)}),s.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,r,e);let o=document.createElement("span");return o.textContent=i.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=r,o}const mR=it.replace({widget:new class extends da{toDOM(t){return gR(t,null)}}});class f2e extends da{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return gR(e,this.value)}}const d2e={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class F4 extends il{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function h2e(t={}){let e=Object.assign(Object.assign({},d2e),t),n=new F4(e,!0),i=new F4(e,!1),r=li.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(bu)!=s.state.facet(bu)||s.startState.field(Yc,!1)!=s.state.field(Yc,!1)||Gn(s.startState)!=Gn(s.state)||e.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let a=new au;for(let l of s.viewportLineBlocks){let u=Yk(s.state,l.from,l.to)?i:Zk(s.state,l.from,l.to)?n:null;u&&a.add(l.from,l.from,u)}return a.finish()}}),{domEventHandlers:o}=e;return[r,hxe({class:"cm-foldGutter",markers(s){var a;return((a=s.plugin(r))===null||a===void 0?void 0:a.markers)||zt.empty},initialSpacer(){return new F4(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(s,a,l)=>{if(o.click&&o.click(s,a,l))return!0;let u=Yk(s.state,a.from,a.to);if(u)return s.dispatch({effects:jm.of(u)}),!0;let f=Zk(s.state,a.from,a.to);return f?(s.dispatch({effects:qk.of(f)}),!0):!1}})}),pR()]}const p2e=Te.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ol{constructor(e,n){this.specs=e;let i;function r(a){let l=lu.newName();return(i||(i=Object.create(null)))["."+l]=a,l}const o=typeof n.all=="string"?n.all:n.all?r(n.all):void 0,s=n.scope;this.scope=s instanceof Ds?a=>a.prop(Gd)==s.data:s?a=>a==s:void 0,this.style=JL(e.map(a=>({tag:a.tag,class:a.class||r(Object.assign({},a,{tag:null}))})),{all:o}).style,this.module=i?new lu(i):null,this.themeType=n.themeType}static define(e,n){return new ol(e,n||{})}}const z4=Qe.define(),vR=Qe.define({combine(t){return t.length?[t[0]]:null}});function B4(t){let e=t.facet(z4);return e.length?e:t.facet(vR)}function Fm(t,e){let n=[m2e],i;return t instanceof ol&&(t.module&&n.push(Te.styleModule.of(t.module)),i=t.themeType),e!=null&&e.fallback?n.push(vR.of(t)):i?n.push(z4.computeN([Te.darkTheme],r=>r.facet(Te.darkTheme)==(i=="dark")?[t]:[])):n.push(z4.of(t)),n}class g2e{constructor(e){this.markCache=Object.create(null),this.tree=Gn(e.state),this.decorations=this.buildDeco(e,B4(e.state))}update(e){let n=Gn(e.state),i=B4(e.state),r=i!=B4(e.startState);n.length<e.view.viewport.to&&!r&&n.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(n!=this.tree||e.viewportChanged||r)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i))}buildDeco(e,n){if(!n||!this.tree.length)return it.none;let i=new au;for(let{from:r,to:o}of e.visibleRanges)Bxe(this.tree,n,(s,a,l)=>{i.add(s,a,this.markCache[l]||(this.markCache[l]=it.mark({class:l})))},r,o);return i.finish()}}const m2e=Hc.high(li.fromClass(g2e,{decorations:t=>t.decorations})),bR=ol.define([{tag:X.meta,color:"#404740"},{tag:X.link,textDecoration:"underline"},{tag:X.heading,textDecoration:"underline",fontWeight:"bold"},{tag:X.emphasis,fontStyle:"italic"},{tag:X.strong,fontWeight:"bold"},{tag:X.strikethrough,textDecoration:"line-through"},{tag:X.keyword,color:"#708"},{tag:[X.atom,X.bool,X.url,X.contentSeparator,X.labelName],color:"#219"},{tag:[X.literal,X.inserted],color:"#164"},{tag:[X.string,X.deleted],color:"#a11"},{tag:[X.regexp,X.escape,X.special(X.string)],color:"#e40"},{tag:X.definition(X.variableName),color:"#00f"},{tag:X.local(X.variableName),color:"#30a"},{tag:[X.typeName,X.namespace],color:"#085"},{tag:X.className,color:"#167"},{tag:[X.special(X.variableName),X.macroName],color:"#256"},{tag:X.definition(X.propertyName),color:"#00c"},{tag:X.comment,color:"#940"},{tag:X.invalid,color:"#f00"}]),v2e=Te.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),kR=1e4,yR="()[]{}",wR=Qe.define({combine(t){return fa(t,{afterCursor:!0,brackets:yR,maxScanDistance:kR,renderMatch:y2e})}}),b2e=it.mark({class:"cm-matchingBracket"}),k2e=it.mark({class:"cm-nonmatchingBracket"});function y2e(t){let e=[],n=t.matched?b2e:k2e;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const w2e=[zi.define({create(){return it.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(wR);for(let r of e.state.selection.ranges){if(!r.empty)continue;let o=ka(e.state,r.head,-1,i)||r.head>0&&ka(e.state,r.head-1,1,i)||i.afterCursor&&(ka(e.state,r.head,1,i)||r.head<e.state.doc.length&&ka(e.state,r.head+1,-1,i));o&&(n=n.concat(i.renderMatch(o,e.state)))}return it.set(n,!0)},provide:t=>Te.decorations.from(t)}),v2e];function x2e(t={}){return[wR.of(t),w2e]}const xR=new Et;function W4(t,e,n){let i=t.prop(e<0?Et.openedBy:Et.closedBy);if(i)return i;if(t.name.length==1){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function H4(t){let e=t.type.prop(xR);return e?e(t.node):t}function ka(t,e,n,i={}){let r=i.maxScanDistance||kR,o=i.brackets||yR,s=Gn(t),a=s.resolveInner(e,n);for(let l=a;l;l=l.parent){let u=W4(l.type,n,o);if(u&&l.from<l.to){let f=H4(l);if(f&&(n>0?e>=f.from&&e<f.to:e>f.from&&e<=f.to))return _2e(t,e,n,l,f,u,o)}}return O2e(t,e,n,s,a.type,r,o)}function _2e(t,e,n,i,r,o,s){let a=i.parent,l={from:r.from,to:r.to},u=0,f=a==null?void 0:a.cursor();if(f&&(n<0?f.childBefore(i.from):f.childAfter(i.to)))do if(n<0?f.to<=i.from:f.from>=i.to){if(u==0&&o.indexOf(f.type.name)>-1&&f.from<f.to){let d=H4(f);return{start:l,end:d?{from:d.from,to:d.to}:void 0,matched:!0}}else if(W4(f.type,n,s))u++;else if(W4(f.type,-n,s)){if(u==0){let d=H4(f);return{start:l,end:d&&d.from<d.to?{from:d.from,to:d.to}:void 0,matched:!1}}u--}}while(n<0?f.prevSibling():f.nextSibling());return{start:l,matched:!1}}function O2e(t,e,n,i,r,o,s){let a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?e-1:e,to:n>0?e+1:e},f=t.doc.iterRange(e,n>0?t.doc.length:0),d=0;for(let h=0;!f.next().done&&h<=o;){let g=f.value;n<0&&(h+=g.length);let m=e+h*n;for(let y=n>0?0:g.length-1,x=n>0?g.length:-1;y!=x;y+=n){let _=s.indexOf(g[y]);if(!(_<0||i.resolveInner(m+y,1).type!=r))if(_%2==0==n>0)d++;else{if(d==1)return{start:u,end:{from:m+y,to:m+y+1},matched:_>>1==l>>1};d--}}n>0&&(h+=g.length)}return f.done?{start:u,matched:!1}:null}const S2e=Object.create(null),_R=[Br.none],OR=[],SR=Object.create(null),C2e=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])C2e[t]=E2e(S2e,e);function Q4(t,e){OR.indexOf(t)>-1||(OR.push(t),console.warn(e))}function E2e(t,e){let n=[];for(let a of e.split(" ")){let l=[];for(let u of a.split(".")){let f=t[u]||X[u];f?typeof f=="function"?l.length?l=l.map(f):Q4(u,`Modifier ${u} used at start of tag`):l.length?Q4(u,`Tag ${u} used as modifier`):l=Array.isArray(f)?f:[f]:Q4(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),r=i+" "+n.map(a=>a.id),o=SR[r];if(o)return o.id;let s=SR[r]=Br.define({id:_R.length,name:i,props:[Lk({[i]:n})]});return _R.push(s),s.id}mn.RTL,mn.LTR;const T2e=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=Z4(t.state,n.from);return i.line?$2e(t):i.block?N2e(t):!1};function U4(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return r?(i(n.update(r)),!0):!1}}const $2e=U4(D2e,0),M2e=U4(CR,0),N2e=U4((t,e)=>CR(t,e,P2e(e)),0);function Z4(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const zm=50;function A2e(t,{open:e,close:n},i,r){let o=t.sliceDoc(i-zm,i),s=t.sliceDoc(r,r+zm),a=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(s)[0].length,u=o.length-a;if(o.slice(u-e.length,u)==e&&s.slice(l,l+n.length)==n)return{open:{pos:i-a,margin:a&&1},close:{pos:r+l,margin:l&&1}};let f,d;r-i<=2*zm?f=d=t.sliceDoc(i,r):(f=t.sliceDoc(i,i+zm),d=t.sliceDoc(r-zm,r));let h=/^\s*/.exec(f)[0].length,g=/\s*$/.exec(d)[0].length,m=d.length-g-n.length;return f.slice(h,h+e.length)==e&&d.slice(m,m+n.length)==n?{open:{pos:i+h+e.length,margin:/\s/.test(f.charAt(h+e.length))?1:0},close:{pos:r-g-n.length,margin:/\s/.test(d.charAt(m-1))?1:0}}:null}function P2e(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>i.from?e[o].to=r.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return e}function CR(t,e,n=e.selection.ranges){let i=n.map(o=>Z4(e,o.from).block);if(!i.every(o=>o))return null;let r=n.map((o,s)=>A2e(e,i[s],o.from,o.to));if(t!=2&&!r.every(o=>o))return{changes:e.changes(n.map((o,s)=>r[s]?[]:[{from:o.from,insert:i[s].open+" "},{from:o.to,insert:" "+i[s].close}]))};if(t!=1&&r.some(o=>o)){let o=[];for(let s=0,a;s<r.length;s++)if(a=r[s]){let l=i[s],{open:u,close:f}=a;o.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:f.pos-f.margin,to:f.pos+l.close.length})}return{changes:o}}return null}function D2e(t,e,n=e.selection.ranges){let i=[],r=-1;for(let{from:o,to:s}of n){let a=i.length,l=1e9,u=Z4(e,o).line;if(u){for(let f=o;f<=s;){let d=e.doc.lineAt(f);if(d.from>r&&(o==s||s>d.from)){r=d.from;let h=/^\s*/.exec(d.text)[0].length,g=h==d.length,m=d.text.slice(h,h+u.length)==u?h:-1;h<d.text.length&&h<l&&(l=h),i.push({line:d,comment:m,token:u,indent:h,empty:g,single:!1})}f=d.to+1}if(l<1e9)for(let f=a;f<i.length;f++)i[f].indent<i[f].line.text.length&&(i[f].indent=l);i.length==a+1&&(i[a].single=!0)}}if(t!=2&&i.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:a,token:l,indent:u,empty:f,single:d}of i)(d||!f)&&o.push({from:a.from+u,insert:l+" "});let s=e.changes(o);return{changes:s,selection:e.selection.map(s,1)}}else if(t!=1&&i.some(o=>o.comment>=0)){let o=[];for(let{line:s,comment:a,token:l}of i)if(a>=0){let u=s.from+a,f=u+l.length;s.text[f-s.from]==" "&&f++,o.push({from:u,to:f})}return{changes:o}}return null}const q4=ca.define(),I2e=ca.define(),L2e=Qe.define(),ER=Qe.define({combine(t){return fa(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,r)=>e(i,r)||n(i,r)})}}),TR=zi.define({create(){return ya.empty},update(t,e){let n=e.state.facet(ER),i=e.annotation(q4);if(i){let l=lo.fromTransaction(e,i.selection),u=i.side,f=u==0?t.undone:t.done;return l?f=Gk(f,f.length,n.minDepth,l):f=NR(f,e.startState.selection),new ya(u==0?i.rest:f,u==0?f:i.rest)}let r=e.annotation(I2e);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(jr.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let o=lo.fromTransaction(e),s=e.annotation(jr.time),a=e.annotation(jr.userEvent);return o?t=t.addChanges(o,s,a,n,e):e.selection&&(t=t.addSelection(e.startState.selection,s,a,n.newGroupDelay)),(r=="full"||r=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new ya(t.done.map(lo.fromJSON),t.undone.map(lo.fromJSON))}});function Vk(t={}){return[TR,ER.of(t),Te.domEventHandlers({beforeinput(e,n){let i=e.inputType=="historyUndo"?$R:e.inputType=="historyRedo"?Y4:null;return i?(e.preventDefault(),i(n)):!1}})]}function Xk(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(TR,!1);if(!r)return!1;let o=r.pop(t,n,e);return o?(i(o),!0):!1}}const $R=Xk(0,!1),Y4=Xk(1,!1),R2e=Xk(0,!0),j2e=Xk(1,!0);class lo{constructor(e,n,i,r,o){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=r,this.selectionsAfter=o}setSelAfter(e){return new lo(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new lo(e.changes&&Ci.fromJSON(e.changes),[],e.mapped&&ua.fromJSON(e.mapped),e.startSelection&&he.fromJSON(e.startSelection),e.selectionsAfter.map(he.fromJSON))}static fromTransaction(e,n){let i=as;for(let r of e.startState.facet(L2e)){let o=r(e);o.length&&(i=i.concat(o))}return!i.length&&e.changes.empty?null:new lo(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,as)}static selection(e){return new lo(void 0,as,void 0,void 0,e)}}function Gk(t,e,n,i){let r=e+1>n+20?e-n-1:0,o=t.slice(r,e);return o.push(i),o}function F2e(t,e){let n=[],i=!1;return t.iterChangedRanges((r,o)=>n.push(r,o)),e.iterChangedRanges((r,o,s,a)=>{for(let l=0;l<n.length;){let u=n[l++],f=n[l++];a>=u&&s<=f&&(i=!0)}}),i}function z2e(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,i)=>n.empty!=e.ranges[i].empty).length===0}function MR(t,e){return t.length?e.length?t.concat(e):t:e}const as=[],B2e=200;function NR(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-B2e));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),Gk(t,t.length-1,1e9,n.setSelAfter(i)))}else return[lo.selection([e])]}function W2e(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function V4(t,e){if(!t.length)return t;let n=t.length,i=as;for(;n;){let r=H2e(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let o=t.slice(0,n);return o[n-1]=r,o}else e=r.mapped,n--,i=r.selectionsAfter}return i.length?[lo.selection(i)]:as}function H2e(t,e,n){let i=MR(t.selectionsAfter.length?t.selectionsAfter.map(a=>a.map(e)):as,n);if(!t.changes)return lo.selection(i);let r=t.changes.map(e),o=e.mapDesc(t.changes,!0),s=t.mapped?t.mapped.composeDesc(o):o;return new lo(r,_t.mapEffects(t.effects,e),s,t.startSelection.map(o),i)}const Q2e=/^(input\.type|delete)($|\.)/;class ya{constructor(e,n,i=0,r=void 0){this.done=e,this.undone=n,this.prevTime=i,this.prevUserEvent=r}isolate(){return this.prevTime?new ya(this.done,this.undone):this}addChanges(e,n,i,r,o){let s=this.done,a=s[s.length-1];return a&&a.changes&&!a.changes.empty&&e.changes&&(!i||Q2e.test(i))&&(!a.selectionsAfter.length&&n-this.prevTime<r.newGroupDelay&&r.joinToEvent(o,F2e(a.changes,e.changes))||i=="input.type.compose")?s=Gk(s,s.length-1,r.minDepth,new lo(e.changes.compose(a.changes),MR(e.effects,a.effects),a.mapped,a.startSelection,as)):s=Gk(s,s.length,r.minDepth,e),new ya(s,as,n,i)}addSelection(e,n,i,r){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:as;return o.length>0&&n-this.prevTime<r&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&z2e(o[o.length-1],e)?this:new ya(NR(this.done,e),this.undone,n,i)}addMapping(e){return new ya(V4(this.done,e),V4(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,i){let r=e==0?this.done:this.undone;if(r.length==0)return null;let o=r[r.length-1],s=o.selectionsAfter[0]||n.selection;if(i&&o.selectionsAfter.length)return n.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:q4.of({side:e,rest:W2e(r),selection:s}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let a=r.length==1?as:r.slice(0,r.length-1);return o.mapped&&(a=V4(a,o.mapped)),n.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:q4.of({side:e,rest:a,selection:s}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}ya.empty=new ya(as,as);const AR=[{key:"Mod-z",run:$R,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Y4,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Y4,preventDefault:!0},{key:"Mod-u",run:R2e,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:j2e,preventDefault:!0}];function eh(t,e){return he.create(t.ranges.map(e),t.mainIndex)}function wa(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Is({state:t,dispatch:e},n){let i=eh(t.selection,n);return i.eq(t.selection,!0)?!1:(e(wa(t,i)),!0)}function Kk(t,e){return he.cursor(e?t.to:t.from)}function PR(t,e){return Is(t,n=>n.empty?t.moveByChar(n,e):Kk(n,e))}function Sr(t){return t.textDirectionAt(t.state.selection.main.head)==mn.LTR}const DR=t=>PR(t,!Sr(t)),IR=t=>PR(t,Sr(t));function LR(t,e){return Is(t,n=>n.empty?t.moveByGroup(n,e):Kk(n,e))}const U2e=t=>LR(t,!Sr(t)),Z2e=t=>LR(t,Sr(t));function q2e(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function Jk(t,e,n){let i=Gn(t).resolveInner(e.head),r=n?Et.closedBy:Et.openedBy;for(let l=e.head;;){let u=n?i.childAfter(l):i.childBefore(l);if(!u)break;q2e(t,u,r)?i=u:l=n?u.to:u.from}let o=i.type.prop(r),s,a;return o&&(s=n?ka(t,i.from,1):ka(t,i.to,-1))&&s.matched?a=n?s.end.to:s.end.from:a=n?i.to:i.from,he.cursor(a,n?-1:1)}const Y2e=t=>Is(t,e=>Jk(t.state,e,!Sr(t))),V2e=t=>Is(t,e=>Jk(t.state,e,Sr(t)));function RR(t,e){return Is(t,n=>{if(!n.empty)return Kk(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}const jR=t=>RR(t,!1),FR=t=>RR(t,!0);function zR(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,i=0,r;if(e){for(let o of t.state.facet(Te.scrollMargins)){let s=o(t);s!=null&&s.top&&(n=Math.max(s==null?void 0:s.top,n)),s!=null&&s.bottom&&(i=Math.max(s==null?void 0:s.bottom,i))}r=t.scrollDOM.clientHeight-n-i}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:i,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function BR(t,e){let n=zR(t),{state:i}=t,r=eh(i.selection,s=>s.empty?t.moveVertically(s,e,n.height):Kk(s,e));if(r.eq(i.selection))return!1;let o;if(n.selfScroll){let s=t.coordsAtPos(i.selection.main.head),a=t.scrollDOM.getBoundingClientRect(),l=a.top+n.marginTop,u=a.bottom-n.marginBottom;s&&s.top>l&&s.bottom<u&&(o=Te.scrollIntoView(r.main.head,{y:"start",yMargin:s.top-l}))}return t.dispatch(wa(i,r),{effects:o}),!0}const WR=t=>BR(t,!1),X4=t=>BR(t,!0);function ku(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let o=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;o&&e.head!=i.from+o&&(r=he.cursor(i.from+o))}return r}const X2e=t=>Is(t,e=>ku(t,e,!0)),G2e=t=>Is(t,e=>ku(t,e,!1)),K2e=t=>Is(t,e=>ku(t,e,!Sr(t))),J2e=t=>Is(t,e=>ku(t,e,Sr(t))),e_e=t=>Is(t,e=>he.cursor(t.lineBlockAt(e.head).from,1)),t_e=t=>Is(t,e=>he.cursor(t.lineBlockAt(e.head).to,-1));function n_e(t,e,n){let i=!1,r=eh(t.selection,o=>{let s=ka(t,o.head,-1)||ka(t,o.head,1)||o.head>0&&ka(t,o.head-1,1)||o.head<t.doc.length&&ka(t,o.head+1,-1);if(!s||!s.end)return o;i=!0;let a=s.start.from==o.head?s.end.to:s.end.from;return he.cursor(a)});return i?(e(wa(t,r)),!0):!1}const i_e=({state:t,dispatch:e})=>n_e(t,e);function ls(t,e){let n=eh(t.state.selection,i=>{let r=e(i);return he.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(wa(t.state,n)),!0)}function HR(t,e){return ls(t,n=>t.moveByChar(n,e))}const QR=t=>HR(t,!Sr(t)),UR=t=>HR(t,Sr(t));function ZR(t,e){return ls(t,n=>t.moveByGroup(n,e))}const r_e=t=>ZR(t,!Sr(t)),o_e=t=>ZR(t,Sr(t)),s_e=t=>ls(t,e=>Jk(t.state,e,!Sr(t))),a_e=t=>ls(t,e=>Jk(t.state,e,Sr(t)));function qR(t,e){return ls(t,n=>t.moveVertically(n,e))}const YR=t=>qR(t,!1),VR=t=>qR(t,!0);function XR(t,e){return ls(t,n=>t.moveVertically(n,e,zR(t).height))}const GR=t=>XR(t,!1),KR=t=>XR(t,!0),l_e=t=>ls(t,e=>ku(t,e,!0)),u_e=t=>ls(t,e=>ku(t,e,!1)),c_e=t=>ls(t,e=>ku(t,e,!Sr(t))),f_e=t=>ls(t,e=>ku(t,e,Sr(t))),d_e=t=>ls(t,e=>he.cursor(t.lineBlockAt(e.head).from)),h_e=t=>ls(t,e=>he.cursor(t.lineBlockAt(e.head).to)),JR=({state:t,dispatch:e})=>(e(wa(t,{anchor:0})),!0),ej=({state:t,dispatch:e})=>(e(wa(t,{anchor:t.doc.length})),!0),tj=({state:t,dispatch:e})=>(e(wa(t,{anchor:t.selection.main.anchor,head:0})),!0),nj=({state:t,dispatch:e})=>(e(wa(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),p_e=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),g_e=({state:t,dispatch:e})=>{let n=ty(t).map(({from:i,to:r})=>he.range(i,Math.min(r+1,t.doc.length)));return e(t.update({selection:he.create(n),userEvent:"select"})),!0},m_e=({state:t,dispatch:e})=>{let n=eh(t.selection,i=>{var r;let o=Gn(t).resolveStack(i.from,1);for(let s=o;s;s=s.next){let{node:a}=s;if((a.from<i.from&&a.to>=i.to||a.to>i.to&&a.from<=i.from)&&(!((r=a.parent)===null||r===void 0)&&r.parent))return he.range(a.to,a.from)}return i});return e(wa(t,n)),!0},v_e=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=he.create([n.main]):n.main.empty||(i=he.create([he.cursor(n.main.head)])),i?(e(wa(t,i)),!0):!1};function Bm(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(o=>{let{from:s,to:a}=o;if(s==a){let l=e(o);l<s?(n="delete.backward",l=ey(t,l,!1)):l>s&&(n="delete.forward",l=ey(t,l,!0)),s=Math.min(s,l),a=Math.max(a,l)}else s=ey(t,s,!1),a=ey(t,a,!0);return s==a?{range:o}:{changes:{from:s,to:a},range:he.cursor(s,s<o.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?Te.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function ey(t,e,n){if(t instanceof Te)for(let i of t.state.facet(Te.atomicRanges).map(r=>r(t)))i.between(e,e,(r,o)=>{r<e&&o>e&&(e=n?o:r)});return e}const ij=(t,e)=>Bm(t,n=>{let i=n.from,{state:r}=t,o=r.doc.lineAt(i),s,a;if(!e&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,i-o.from))){if(s[s.length-1]==" ")return i-1;let l=Qd(s,r.tabSize),u=l%Bk(r)||Bk(r);for(let f=0;f<u&&s[s.length-1-f]==" ";f++)i--;a=i}else a=Ki(o.text,i-o.from,e,e)+o.from,a==i&&o.number!=(e?r.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(a-o.from,i-o.from))&&(a=Ki(o.text,a-o.from,!1,!1)+o.from);return a}),G4=t=>ij(t,!1),rj=t=>ij(t,!0),oj=(t,e)=>Bm(t,n=>{let i=n.head,{state:r}=t,o=r.doc.lineAt(i),s=r.charCategorizer(i);for(let a=null;;){if(i==(e?o.to:o.from)){i==n.head&&o.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let l=Ki(o.text,i-o.from,e)+o.from,u=o.text.slice(Math.min(i,l)-o.from,Math.max(i,l)-o.from),f=s(u);if(a!=null&&f!=a)break;(u!=" "||i!=n.head)&&(a=f),i=l}return i}),sj=t=>oj(t,!1),b_e=t=>oj(t,!0),k_e=t=>Bm(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),y_e=t=>Bm(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),w_e=t=>Bm(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),x_e=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:Yt.of(["",""])},range:he.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},__e=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||i.from==0||i.from==t.doc.length)return{range:i};let r=i.from,o=t.doc.lineAt(r),s=r==o.from?r-1:Ki(o.text,r-o.from,!1)+o.from,a=r==o.to?r+1:Ki(o.text,r-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:t.doc.slice(r,a).append(t.doc.slice(s,r))},range:he.cursor(a)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function ty(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),o=t.doc.lineAt(i.to);if(!i.empty&&i.to==o.from&&(o=t.doc.lineAt(i.to-1)),n>=r.number){let s=e[e.length-1];s.to=o.to,s.ranges.push(i)}else e.push({from:r.from,to:o.to,ranges:[i]});n=o.number+1}return e}function aj(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let o of ty(t)){if(n?o.to==t.doc.length:o.from==0)continue;let s=t.doc.lineAt(n?o.to+1:o.from-1),a=s.length+1;if(n){i.push({from:o.to,to:s.to},{from:o.from,insert:s.text+t.lineBreak});for(let l of o.ranges)r.push(he.range(Math.min(t.doc.length,l.anchor+a),Math.min(t.doc.length,l.head+a)))}else{i.push({from:s.from,to:o.from},{from:o.to,insert:t.lineBreak+s.text});for(let l of o.ranges)r.push(he.range(l.anchor-a,l.head-a))}}return i.length?(e(t.update({changes:i,scrollIntoView:!0,selection:he.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const O_e=({state:t,dispatch:e})=>aj(t,e,!1),S_e=({state:t,dispatch:e})=>aj(t,e,!0);function lj(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of ty(t))n?i.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):i.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const C_e=({state:t,dispatch:e})=>lj(t,e,!1),E_e=({state:t,dispatch:e})=>lj(t,e,!0),T_e=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(ty(e).map(({from:r,to:o})=>(r>0?r--:o<e.doc.length&&o++,{from:r,to:o}))),i=eh(e.selection,r=>t.moveVertically(r,!0)).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function $_e(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Gn(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e),o;return i&&r&&i.to<=e&&r.from>=e&&(o=i.type.prop(Et.closedBy))&&o.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}const M_e=uj(!1),N_e=uj(!0);function uj(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(r=>{let{from:o,to:s}=r,a=e.doc.lineAt(o),l=!t&&o==s&&$_e(e,o);t&&(o=s=(s<=a.to?a:e.doc.lineAt(s)).to);let u=new Wk(e,{simulateBreak:o,simulateDoubleBreak:!!l}),f=R4(u,o);for(f==null&&(f=Qd(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));s<a.to&&/\s/.test(a.text[s-a.from]);)s++;l?{from:o,to:s}=l:o>a.from&&o<a.from+100&&!/\S/.test(a.text.slice(0,o))&&(o=a.from);let d=["",Rm(e,f)];return l&&d.push(Rm(e,u.lineIndent(a.from,-1))),{changes:{from:o,to:s,insert:Yt.of(d)},range:he.cursor(o+1+d[1].length)}});return n(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function K4(t,e){let n=-1;return t.changeByRange(i=>{let r=[];for(let s=i.from;s<=i.to;){let a=t.doc.lineAt(s);a.number>n&&(i.empty||i.to>a.from)&&(e(a,r,i),n=a.number),s=a.to+1}let o=t.changes(r);return{changes:r,range:he.range(o.mapPos(i.anchor,1),o.mapPos(i.head,1))}})}const A_e=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new Wk(t,{overrideIndentation:o=>{let s=n[o];return s??-1}}),r=K4(t,(o,s,a)=>{let l=R4(i,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],f=Rm(t,l);(u!=f||a.from<o.from+u.length)&&(n[o.from]=l,s.push({from:o.from,to:o.from+u.length,insert:f}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},cj=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(K4(t,(n,i)=>{i.push({from:n.from,insert:t.facet(Lm)})}),{userEvent:"input.indent"})),!0),fj=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(K4(t,(n,i)=>{let r=/^\s*/.exec(n.text)[0];if(!r)return;let o=Qd(r,t.tabSize),s=0,a=Rm(t,Math.max(0,o-Bk(t)));for(;s<r.length&&s<a.length&&r.charCodeAt(s)==a.charCodeAt(s);)s++;i.push({from:n.from+s,to:n.from+r.length,insert:a.slice(s)})}),{userEvent:"delete.dedent"})),!0),P_e=[{key:"Ctrl-b",run:DR,shift:QR,preventDefault:!0},{key:"Ctrl-f",run:IR,shift:UR},{key:"Ctrl-p",run:jR,shift:YR},{key:"Ctrl-n",run:FR,shift:VR},{key:"Ctrl-a",run:e_e,shift:d_e},{key:"Ctrl-e",run:t_e,shift:h_e},{key:"Ctrl-d",run:rj},{key:"Ctrl-h",run:G4},{key:"Ctrl-k",run:k_e},{key:"Ctrl-Alt-h",run:sj},{key:"Ctrl-o",run:x_e},{key:"Ctrl-t",run:__e},{key:"Ctrl-v",run:X4}],J4=[{key:"ArrowLeft",run:DR,shift:QR,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:U2e,shift:r_e,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:K2e,shift:c_e,preventDefault:!0},{key:"ArrowRight",run:IR,shift:UR,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Z2e,shift:o_e,preventDefault:!0},{mac:"Cmd-ArrowRight",run:J2e,shift:f_e,preventDefault:!0},{key:"ArrowUp",run:jR,shift:YR,preventDefault:!0},{mac:"Cmd-ArrowUp",run:JR,shift:tj},{mac:"Ctrl-ArrowUp",run:WR,shift:GR},{key:"ArrowDown",run:FR,shift:VR,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ej,shift:nj},{mac:"Ctrl-ArrowDown",run:X4,shift:KR},{key:"PageUp",run:WR,shift:GR},{key:"PageDown",run:X4,shift:KR},{key:"Home",run:G2e,shift:u_e,preventDefault:!0},{key:"Mod-Home",run:JR,shift:tj},{key:"End",run:X2e,shift:l_e,preventDefault:!0},{key:"Mod-End",run:ej,shift:nj},{key:"Enter",run:M_e},{key:"Mod-a",run:p_e},{key:"Backspace",run:G4,shift:G4},{key:"Delete",run:rj},{key:"Mod-Backspace",mac:"Alt-Backspace",run:sj},{key:"Mod-Delete",mac:"Alt-Delete",run:b_e},{mac:"Mod-Backspace",run:y_e},{mac:"Mod-Delete",run:w_e}].concat(P_e.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),dj=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Y2e,shift:s_e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:V2e,shift:a_e},{key:"Alt-ArrowUp",run:O_e},{key:"Shift-Alt-ArrowUp",run:C_e},{key:"Alt-ArrowDown",run:S_e},{key:"Shift-Alt-ArrowDown",run:E_e},{key:"Escape",run:v_e},{key:"Mod-Enter",run:N_e},{key:"Alt-l",mac:"Ctrl-l",run:g_e},{key:"Mod-i",run:m_e,preventDefault:!0},{key:"Mod-[",run:fj},{key:"Mod-]",run:cj},{key:"Mod-Alt-\\",run:A_e},{key:"Shift-Mod-k",run:T_e},{key:"Shift-Mod-\\",run:i_e},{key:"Mod-/",run:T2e},{key:"Alt-A",run:M2e}].concat(J4),D_e={key:"Tab",run:cj,shift:fj};function un(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];typeof r=="string"?t.setAttribute(i,r):r!=null&&(t[i]=r)}e++}for(;e<arguments.length;e++)hj(t,arguments[e]);return t}function hj(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)hj(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const pj=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class th{constructor(e,n,i=0,r=e.length,o,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,r),this.bufferStart=i,this.normalize=o?a=>o(pj(a)):pj,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Ji(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=kS(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=ns(e);let r=this.normalize(n);for(let o=0,s=i;;o++){let a=r.charCodeAt(o),l=this.match(a,s);if(o==r.length-1){if(l)return this.value=l,this;break}s==i&&o<n.length&&n.charCodeAt(o)==a&&s++}}}match(e,n){let i=null;for(let r=0;r<this.matches.length;r+=2){let o=this.matches[r],s=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?i={from:this.matches[r+1],to:n+1}:(this.matches[r]++,s=!0)),s||(this.matches.splice(r,2),r-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:n,to:n+1}:this.matches.push(1,n)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(th.prototype[Symbol.iterator]=function(){return this});const gj={from:-1,to:-1,match:/.*/.exec("")},eC="gm"+(/x/.unicode==null?"":"u");class mj{constructor(e,n,i,r=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=gj,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new vj(e,n,i,r,o);this.re=new RegExp(n,eC+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.iter=e.iter();let s=e.lineAt(r);this.curLineStart=s.from,this.matchPos=ny(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,r=i+n[0].length;if(this.matchPos=ny(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<r||i>this.value.to)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const tC=new WeakMap;class nh{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,i){let r=tC.get(e);if(!r||r.from>=i||r.to<=n){let a=new nh(n,e.sliceString(n,i));return tC.set(e,a),a}if(r.from==n&&r.to==i)return r;let{text:o,from:s}=r;return s>n&&(o=e.sliceString(n,s)+o,s=n),r.to<i&&(o+=e.sliceString(r.to,i)),tC.set(e,new nh(s,o)),new nh(n,o.slice(n-s,i-s))}}class vj{constructor(e,n,i,r,o){this.text=e,this.to=o,this.done=!1,this.value=gj,this.matchPos=ny(e,r),this.re=new RegExp(n,eC+(i!=null&&i.ignoreCase?"i":"")),this.test=i==null?void 0:i.test,this.flat=nh.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,r=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this.matchPos=ny(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=nh.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(mj.prototype[Symbol.iterator]=vj.prototype[Symbol.iterator]=function(){return this});function I_e(t){try{return new RegExp(t,eC),!0}catch{return!1}}function ny(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e<n.to&&(i=n.text.charCodeAt(e-n.from))>=56320&&i<57344;)e++;return e}function nC(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=un("input",{class:"cm-textfield",name:"line",value:e}),i=un("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),t.dispatch({effects:iy.of(!1)}),t.focus()):o.keyCode==13&&(o.preventDefault(),r())},onsubmit:o=>{o.preventDefault(),r()}},un("label",t.state.phrase("Go to line"),": ",n)," ",un("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function r(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:s}=t,a=s.doc.lineAt(s.selection.main.head),[,l,u,f,d]=o,h=f?+f.slice(1):0,g=u?+u:a.number;if(u&&d){let x=g/100;l&&(x=x*(l=="-"?-1:1)+a.number/s.doc.lines),g=Math.round(s.doc.lines*x)}else u&&l&&(g=g*(l=="-"?-1:1)+a.number);let m=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),y=he.cursor(m.from+Math.max(0,Math.min(h,m.length)));t.dispatch({effects:[iy.of(!1),Te.scrollIntoView(y.from,{y:"center"})],selection:y}),t.focus()}return{dom:i}}const iy=_t.define(),bj=zi.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(iy)&&(t=n.value);return t},provide:t=>$m.from(t,e=>e?nC:null)}),L_e=t=>{let e=Tm(t,nC);if(!e){let n=[iy.of(!0)];t.state.field(bj,!1)==null&&n.push(_t.appendConfig.of([bj,R_e])),t.dispatch({effects:n}),e=Tm(t,nC)}return e&&e.dom.querySelector("input").select(),!0},R_e=Te.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),j_e={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},F_e=Qe.define({combine(t){return fa(t,j_e,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function z_e(t){return[U_e,Q_e]}const B_e=it.mark({class:"cm-selectionMatch"}),W_e=it.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function kj(t,e,n,i){return(n==0||t(e.sliceDoc(n-1,n))!=Nn.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=Nn.Word)}function H_e(t,e,n,i){return t(e.sliceDoc(n,n+1))==Nn.Word&&t(e.sliceDoc(i-1,i))==Nn.Word}const Q_e=li.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(F_e),{state:n}=t,i=n.selection;if(i.ranges.length>1)return it.none;let r=i.main,o,s=null;if(r.empty){if(!e.highlightWordAroundCursor)return it.none;let l=n.wordAt(r.head);if(!l)return it.none;s=n.charCategorizer(r.head),o=n.sliceDoc(l.from,l.to)}else{let l=r.to-r.from;if(l<e.minSelectionLength||l>200)return it.none;if(e.wholeWords){if(o=n.sliceDoc(r.from,r.to),s=n.charCategorizer(r.head),!(kj(s,n,r.from,r.to)&&H_e(s,n,r.from,r.to)))return it.none}else if(o=n.sliceDoc(r.from,r.to).trim(),!o)return it.none}let a=[];for(let l of t.visibleRanges){let u=new th(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:f,to:d}=u.value;if((!s||kj(s,n,f,d))&&(r.empty&&f<=r.from&&d>=r.to?a.push(W_e.range(f,d)):(f>=r.to||d<=r.from)&&a.push(B_e.range(f,d)),a.length>e.maxMatches))return it.none}}return it.set(a)}},{decorations:t=>t.decorations}),U_e=Te.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Z_e=({state:t,dispatch:e})=>{let{selection:n}=t,i=he.create(n.ranges.map(r=>t.wordAt(r.head)||he.cursor(r.head)),n.mainIndex);return i.eq(n)?!1:(e(t.update({selection:i})),!0)};function q_e(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),o=r&&r.from==n.from&&r.to==n.to;for(let s=!1,a=new th(t.doc,e,i[i.length-1].to);;)if(a.next(),a.done){if(s)return null;a=new th(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),s=!0}else{if(s&&i.some(l=>l.from==a.value.from))continue;if(o){let l=t.wordAt(a.value.from);if(!l||l.from!=a.value.from||l.to!=a.value.to)continue}return a.value}}const Y_e=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(o=>o.from===o.to))return Z_e({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(o=>t.sliceDoc(o.from,o.to)!=i))return!1;let r=q_e(t,i);return r?(e(t.update({selection:t.selection.addRange(he.range(r.from,r.to),!1),effects:Te.scrollIntoView(r.to)})),!0):!1},ih=Qe.define({combine(t){return fa(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new s3e(e),scrollToMatch:e=>Te.scrollIntoView(e)})}});class yj{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||I_e(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>i=="n"?`
|
||
`:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new K_e(this):new X_e(this)}getCursor(e,n=0,i){let r=e.doc?e:jt.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?oh(this,r,n,i):rh(this,r,n,i)}}class wj{constructor(e){this.spec=e}}function rh(t,e,n,i){return new th(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:r=>r.toLowerCase(),t.wholeWord?V_e(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function V_e(t,e){return(n,i,r,o)=>((o>n||o+r.length<i)&&(o=Math.max(0,n-2),r=t.sliceString(o,Math.min(t.length,i+2))),(e(ry(r,n-o))!=Nn.Word||e(oy(r,n-o))!=Nn.Word)&&(e(oy(r,i-o))!=Nn.Word||e(ry(r,i-o))!=Nn.Word))}class X_e extends wj{constructor(e){super(e)}nextMatch(e,n,i){let r=rh(this.spec,e,i,e.doc.length).nextOverlapping();return r.done&&(r=rh(this.spec,e,0,n).nextOverlapping()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=i;;){let o=Math.max(n,r-1e4-this.spec.unquoted.length),s=rh(this.spec,e,o,r),a=null;for(;!s.nextOverlapping().done;)a=s.value;if(a)return a;if(o==n)return null;r-=1e4}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let i=rh(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let o=rh(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}function oh(t,e,n,i){return new mj(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?G_e(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function ry(t,e){return t.slice(Ki(t,e,!1),e)}function oy(t,e){return t.slice(e,Ki(t,e))}function G_e(t){return(e,n,i)=>!i[0].length||(t(ry(i.input,i.index))!=Nn.Word||t(oy(i.input,i.index))!=Nn.Word)&&(t(oy(i.input,i.index+i[0].length))!=Nn.Word||t(ry(i.input,i.index+i[0].length))!=Nn.Word)}class K_e extends wj{nextMatch(e,n,i){let r=oh(this.spec,e,i,e.doc.length).next();return r.done&&(r=oh(this.spec,e,0,n).next()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=1;;r++){let o=Math.max(n,i-r*1e4),s=oh(this.spec,e,o,i),a=null;for(;!s.next().done;)a=s.value;if(a&&(o==n||a.from>o+10))return a;if(o==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,i)=>i=="$"?"$":i=="&"?e.match[0]:i!="0"&&+i<e.match.length?e.match[i]:n)}matchAll(e,n){let i=oh(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let o=oh(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!o.next().done;)r(o.value.from,o.value.to)}}const Wm=_t.define(),iC=_t.define(),yu=zi.define({create(t){return new rC(sC(t).create(),null)},update(t,e){for(let n of e.effects)n.is(Wm)?t=new rC(n.value.create(),t.panel):n.is(iC)&&(t=new rC(t.query,n.value?oC:null));return t},provide:t=>$m.from(t,e=>e.panel)});class rC{constructor(e,n){this.query=e,this.panel=n}}const J_e=it.mark({class:"cm-searchMatch"}),e3e=it.mark({class:"cm-searchMatch cm-searchMatch-selected"}),t3e=li.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(yu))}update(t){let e=t.state.field(yu);(e!=t.startState.field(yu)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return it.none;let{view:n}=this,i=new au;for(let r=0,o=n.visibleRanges,s=o.length;r<s;r++){let{from:a,to:l}=o[r];for(;r<s-1&&l>o[r+1].from-2*250;)l=o[++r].to;t.highlight(n.state,a,l,(u,f)=>{let d=n.state.selection.ranges.some(h=>h.from==u&&h.to==f);i.add(u,f,d?e3e:J_e)})}return i.finish()}},{decorations:t=>t.decorations});function Hm(t){return e=>{let n=e.state.field(yu,!1);return n&&n.query.spec.valid?t(e,n):Sj(e)}}const sy=Hm((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let r=he.single(i.from,i.to),o=t.state.facet(ih);return t.dispatch({selection:r,effects:[aC(t,i),o.scrollToMatch(r.main,t)],userEvent:"select.search"}),Oj(t),!0}),ay=Hm((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);if(!r)return!1;let o=he.single(r.from,r.to),s=t.state.facet(ih);return t.dispatch({selection:o,effects:[aC(t,r),s.scrollToMatch(o.main,t)],userEvent:"select.search"}),Oj(t),!0}),n3e=Hm((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:he.create(n.map(i=>he.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),i3e=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,o=[],s=0;for(let a=new th(t.doc,t.sliceDoc(i,r));!a.next().done;){if(o.length>1e3)return!1;a.value.from==i&&(s=o.length),o.push(he.range(a.value.from,a.value.to))}return e(t.update({selection:he.create(o,s),userEvent:"select.search.matches"})),!0},xj=Hm((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let o=e.nextMatch(n,i,i);if(!o)return!1;let s=[],a,l,u=[];if(o.from==i&&o.to==r&&(l=n.toText(e.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=e.nextMatch(n,o.from,o.to),u.push(Te.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+"."))),o){let f=s.length==0||s[0].from>=o.to?0:o.to-o.from-l.length;a=he.single(o.from-f,o.to-f),u.push(aC(t,o)),u.push(n.facet(ih).scrollToMatch(a.main,t))}return t.dispatch({changes:s,selection:a,effects:u,userEvent:"input.replace"}),!0}),r3e=Hm((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(r=>{let{from:o,to:s}=r;return{from:o,to:s,insert:e.getReplacement(r)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:Te.announce.of(i),userEvent:"input.replace.all"}),!0});function oC(t){return t.state.facet(ih).createPanel(t)}function sC(t,e){var n,i,r,o,s;let a=t.selection.main,l=a.empty||a.to>a.from+100?"":t.sliceDoc(a.from,a.to);if(e&&!l)return e;let u=t.facet(ih);return new yj({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(i=e==null?void 0:e.caseSensitive)!==null&&i!==void 0?i:u.caseSensitive,literal:(r=e==null?void 0:e.literal)!==null&&r!==void 0?r:u.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:u.regexp,wholeWord:(s=e==null?void 0:e.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function _j(t){let e=Tm(t,oC);return e&&e.dom.querySelector("[main-field]")}function Oj(t){let e=_j(t);e&&e==t.root.activeElement&&e.select()}const Sj=t=>{let e=t.state.field(yu,!1);if(e&&e.panel){let n=_j(t);if(n&&n!=t.root.activeElement){let i=sC(t.state,e.query.spec);i.valid&&t.dispatch({effects:Wm.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[iC.of(!0),e?Wm.of(sC(t.state,e.query.spec)):_t.appendConfig.of(l3e)]});return!0},Cj=t=>{let e=t.state.field(yu,!1);if(!e||!e.panel)return!1;let n=Tm(t,oC);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:iC.of(!1)}),!0},o3e=[{key:"Mod-f",run:Sj,scope:"editor search-panel"},{key:"F3",run:sy,shift:ay,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:sy,shift:ay,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Cj,scope:"editor search-panel"},{key:"Mod-Shift-l",run:i3e},{key:"Mod-Alt-g",run:L_e},{key:"Mod-d",run:Y_e,preventDefault:!0}];class s3e{constructor(e){this.view=e;let n=this.query=e.state.field(yu).query.spec;this.commit=this.commit.bind(this),this.searchField=un("input",{value:n.search,placeholder:Mo(e,"Find"),"aria-label":Mo(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=un("input",{value:n.replace,placeholder:Mo(e,"Replace"),"aria-label":Mo(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=un("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=un("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=un("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function i(r,o,s){return un("button",{class:"cm-button",name:r,onclick:o,type:"button"},s)}this.dom=un("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,i("next",()=>sy(e),[Mo(e,"next")]),i("prev",()=>ay(e),[Mo(e,"previous")]),i("select",()=>n3e(e),[Mo(e,"all")]),un("label",null,[this.caseField,Mo(e,"match case")]),un("label",null,[this.reField,Mo(e,"regexp")]),un("label",null,[this.wordField,Mo(e,"by word")]),...e.state.readOnly?[]:[un("br"),this.replaceField,i("replace",()=>xj(e),[Mo(e,"replace")]),i("replaceAll",()=>r3e(e),[Mo(e,"replace all")])],un("button",{name:"close",onclick:()=>Cj(e),"aria-label":Mo(e,"close"),type:"button"},["×"])])}commit(){let e=new yj({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Wm.of(e)}))}keydown(e){Owe(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?ay:sy)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),xj(this.view))}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(Wm)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ih).top}}function Mo(t,e){return t.state.phrase(e)}const ly=30,uy=/[\s\.,:;?!]/;function aC(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,o=Math.max(i.from,e-ly),s=Math.min(r,n+ly),a=t.state.sliceDoc(o,s);if(o!=i.from){for(let l=0;l<ly;l++)if(!uy.test(a[l+1])&&uy.test(a[l])){a=a.slice(l);break}}if(s!=r){for(let l=a.length-1;l>a.length-ly;l--)if(!uy.test(a[l-1])&&uy.test(a[l])){a=a.slice(0,l);break}}return Te.announce.of(`${t.state.phrase("current match")}. ${a} ${t.state.phrase("on line")} ${i.number}.`)}const a3e=Te.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),l3e=[yu,Hc.low(t3e),a3e];class Ej{constructor(e,n,i){this.state=e,this.pos=n,this.explicit=i,this.abortListeners=[]}tokenBefore(e){let n=Gn(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),i=Math.max(n.from,this.pos-250),r=n.text.slice(i-n.from,this.pos-n.from),o=r.search(Nj(e,!1));return o<0?null:{from:i+o,to:this.pos,text:r.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,n){e=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function Tj(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function u3e(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let o=1;o<r.length;o++)n[r[o]]=!0}let i=Tj(e)+Tj(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function $j(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[n,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:u3e(e);return r=>{let o=r.matchBefore(i);return o||r.explicit?{from:o?o.from:r.pos,options:e,validFor:n}:null}}function c3e(t,e){return n=>{for(let i=Gn(n.state).resolveInner(n.pos,-1);i;i=i.parent){if(t.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(n)}}class Mj{constructor(e,n,i,r){this.completion=e,this.source=n,this.match=i,this.score=r}}function wu(t){return t.selection.main.from}function Nj(t,e){var n;let{source:i}=t,r=e&&i[0]!="^",o=i[i.length-1]!="$";return!r&&!o?t:new RegExp(`${r?"^":""}(?:${i})${o?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const Aj=ca.define();function f3e(t,e,n,i){let{main:r}=t.selection,o=n-r.from,s=i-r.from;return Object.assign(Object.assign({},t.changeByRange(a=>a!=r&&n!=i&&t.sliceDoc(a.from+o,a.from+s)!=t.sliceDoc(n,i)?{range:a}:{changes:{from:a.from+o,to:i==r.from?a.to:a.from+s,insert:e},range:he.cursor(a.from+o+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Pj=new WeakMap;function d3e(t){if(!Array.isArray(t))return t;let e=Pj.get(t);return e||Pj.set(t,e=$j(t)),e}const cy=_t.define(),Qm=_t.define();class h3e{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let i=Ji(e,n),r=ns(i);this.chars.push(i);let o=e.slice(n,n+r),s=o.toUpperCase();this.folded.push(Ji(s==o?o.toLowerCase():s,0)),n+=r}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,!0}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:n,folded:i,any:r,precise:o,byWord:s}=this;if(n.length==1){let S=Ji(e,0),C=ns(S),E=C==e.length?0:-100;if(S!=n[0])if(S==i[0])E+=-200;else return!1;return this.ret(E,[0,C])}let a=e.indexOf(this.pattern);if(a==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,u=0;if(a<0){for(let S=0,C=Math.min(e.length,200);S<C&&u<l;){let E=Ji(e,S);(E==n[u]||E==i[u])&&(r[u++]=S),S+=ns(E)}if(u<l)return!1}let f=0,d=0,h=!1,g=0,m=-1,y=-1,x=/[a-z]/.test(e),_=!0;for(let S=0,C=Math.min(e.length,200),E=0;S<C&&d<l;){let N=Ji(e,S);a<0&&(f<l&&N==n[f]&&(o[f++]=S),g<l&&(N==n[g]||N==i[g]?(g==0&&(m=S),y=S+1,g++):g=0));let M,I=N<255?N>=48&&N<=57||N>=97&&N<=122?2:N>=65&&N<=90?1:0:(M=kS(N))!=M.toLowerCase()?1:M!=M.toUpperCase()?2:0;(!S||I==1&&x||E==0&&I!=0)&&(n[d]==N||i[d]==N&&(h=!0)?s[d++]=S:s.length&&(_=!1)),E=I,S+=ns(N)}return d==l&&s[0]==0&&_?this.result(-100+(h?-200:0),s,e):g==l&&m==0?this.ret(-200-e.length+(y==e.length?0:-100),[0,y]):a>-1?this.ret(-700-e.length,[a,a+this.pattern.length]):g==l?this.ret(-900-e.length,[m,y]):d==l?this.result(-100+(h?-200:0)+-700+(_?0:-1100),s,e):n.length==2?!1:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,n,i){let r=[],o=0;for(let s of n){let a=s+(this.astral?ns(Ji(i,s)):1);o&&r[o-1]==s?r[o-1]=a:(r[o++]=s,r[o++]=a)}return this.ret(e-i.length,r)}}const ir=Qe.define({combine(t){return fa(t,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:p3e,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>i=>Dj(e(i),n(i)),optionClass:(e,n)=>i=>Dj(e(i),n(i)),addToOptions:(e,n)=>e.concat(n)})}});function Dj(t,e){return t?e?t+" "+e:t:e}function p3e(t,e,n,i,r,o){let s=t.textDirection==mn.RTL,a=s,l=!1,u="top",f,d,h=e.left-r.left,g=r.right-e.right,m=i.right-i.left,y=i.bottom-i.top;if(a&&h<Math.min(m,g)?a=!1:!a&&g<Math.min(m,h)&&(a=!0),m<=(a?h:g))f=Math.max(r.top,Math.min(n.top,r.bottom-y))-e.top,d=Math.min(400,a?h:g);else{l=!0,d=Math.min(400,(s?e.right:r.right-e.left)-30);let S=r.bottom-e.bottom;S>=y||S>e.top?f=n.bottom-e.top:(u="bottom",f=e.bottom-n.top)}let x=(e.bottom-e.top)/o.offsetHeight,_=(e.right-e.left)/o.offsetWidth;return{style:`${u}: ${f/x}px; max-width: ${d/_}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":a?"left":"right")}}function g3e(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(n,i,r,o){let s=document.createElement("span");s.className="cm-completionLabel";let a=n.displayLabel||n.label,l=0;for(let u=0;u<o.length;){let f=o[u++],d=o[u++];f>l&&s.appendChild(document.createTextNode(a.slice(l,f)));let h=s.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(a.slice(f,d))),h.className="cm-completionMatchedText",l=d}return l<a.length&&s.appendChild(document.createTextNode(a.slice(l))),s},position:50},{render(n){if(!n.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=n.detail,i},position:80}),e.sort((n,i)=>n.position-i.position).map(n=>n.render)}function lC(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let r=Math.floor(e/n);return{from:r*n,to:(r+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class m3e{constructor(e,n,i){this.view=e,this.stateField=n,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let r=e.state.field(n),{options:o,selected:s}=r.open,a=e.state.facet(ir);this.optionContent=g3e(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=lC(o.length,s,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=e.state.field(n).open;for(let f=l.target,d;f&&f!=this.dom;f=f.parentNode)if(f.nodeName=="LI"&&(d=/-(\d+)$/.exec(f.id))&&+d[1]<u.length){this.applyCompletion(e,u[+d[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(ir).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:Qm.of(null)})}),this.showOptions(o,r.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let i=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=r){let{options:o,selected:s,disabled:a}=i.open;(!r.open||r.open.options!=o)&&(this.range=lC(o.length,s,e.state.facet(ir).maxRenderedOptions),this.showOptions(o,i.id)),this.updateSel(),a!=((n=r.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of n.split(" "))i&&this.dom.classList.add(i);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=lC(n.options.length,n.selected,this.view.state.facet(ir).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:i}=n.options[n.selected],{info:r}=i;if(!r)return;let o=typeof r=="string"?document.createTextNode(r):r(i);if(!o)return;"then"in o?o.then(s=>{s&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(s,i)}).catch(s=>is(this.view.state,s,"completion info")):this.addInfoPane(o,i)}}addInfoPane(e,n){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:o}=e;i.appendChild(r),this.infoDestroy=o||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)i.nodeName!="LI"||!i.id?r--:r==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),n=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return n&&b3e(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),o=this.space;if(!o){let s=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return r.top>Math.min(o.bottom,n.bottom)-10||r.bottom<Math.max(o.top,n.top)+10?null:this.view.state.facet(ir).positionInfo(this.view,n,r,i,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,i){const r=document.createElement("ul");r.id=n,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions"));let o=null;for(let s=i.from;s<i.to;s++){let{completion:a,match:l}=e[s],{section:u}=a;if(u){let h=typeof u=="string"?u:u.name;if(h!=o&&(s>i.from||i.from==0))if(o=h,typeof u!="string"&&u.header)r.appendChild(u.header(u));else{let g=r.appendChild(document.createElement("completion-section"));g.textContent=h}}const f=r.appendChild(document.createElement("li"));f.id=n+"-"+s,f.setAttribute("role","option");let d=this.optionClass(a);d&&(f.className=d);for(let h of this.optionContent){let g=h(a,this.view.state,this.view,l);g&&f.appendChild(g)}}return i.from&&r.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function v3e(t,e){return n=>new m3e(n,t,e)}function b3e(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=n.height/t.offsetHeight;i.top<n.top?t.scrollTop-=(n.top-i.top)/r:i.bottom>n.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/r)}function Ij(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function k3e(t,e){let n=[],i=null,r=l=>{n.push(l);let{section:u}=l.completion;if(u){i||(i=[]);let f=typeof u=="string"?u:u.name;i.some(d=>d.name==f)||i.push(typeof u=="string"?{name:f}:u)}};for(let l of t)if(l.hasResult()){let u=l.result.getMatch;if(l.result.filter===!1)for(let f of l.result.options)r(new Mj(f,l.source,u?u(f):[],1e9-n.length));else{let f=new h3e(e.sliceDoc(l.from,l.to));for(let d of l.result.options)if(f.match(d.label)){let h=d.displayLabel?u?u(d,f.matched):[]:f.matched;r(new Mj(d,l.source,h,f.score+(d.boost||0)))}}}if(i){let l=Object.create(null),u=0,f=(d,h)=>{var g,m;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((m=h.rank)!==null&&m!==void 0?m:1e9)||(d.name<h.name?-1:1)};for(let d of i.sort(f))u-=1e5,l[d.name]=u;for(let d of n){let{section:h}=d.completion;h&&(d.score+=l[typeof h=="string"?h:h.name])}}let o=[],s=null,a=e.facet(ir).compareCompletions;for(let l of n.sort((u,f)=>f.score-u.score||a(u.completion,f.completion))){let u=l.completion;!s||s.label!=u.label||s.detail!=u.detail||s.type!=null&&u.type!=null&&s.type!=u.type||s.apply!=u.apply||s.boost!=u.boost?o.push(l):Ij(l.completion)>Ij(s)&&(o[o.length-1]=l),s=l.completion}return o}class sh{constructor(e,n,i,r,o,s){this.options=e,this.attrs=n,this.tooltip=i,this.timestamp=r,this.selected=o,this.disabled=s}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new sh(this.options,Lj(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,i,r,o){let s=k3e(e,n);if(!s.length)return r&&e.some(l=>l.state==1)?new sh(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=n.facet(ir).selectOnOpen?0:-1;if(r&&r.selected!=a&&r.selected!=-1){let l=r.options[r.selected].completion;for(let u=0;u<s.length;u++)if(s[u].completion==l){a=u;break}}return new sh(s,Lj(i,a),{pos:e.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:O3e,above:o.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new sh(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class fy{constructor(e,n,i){this.active=e,this.id=n,this.open=i}static start(){return new fy(x3e,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,i=n.facet(ir),o=(i.override||n.languageDataAt("autocomplete",wu(n)).map(d3e)).map(a=>(this.active.find(u=>u.source==a)||new uo(a,this.active.some(u=>u.state!=0)?1:0)).update(e,i));o.length==this.active.length&&o.every((a,l)=>a==this.active[l])&&(o=this.active);let s=this.open;s&&e.docChanged&&(s=s.map(e.changes)),e.selection||o.some(a=>a.hasResult()&&e.changes.touchesRange(a.from,a.to))||!y3e(o,this.active)?s=sh.build(o,n,this.id,s,i):s&&s.disabled&&!o.some(a=>a.state==1)&&(s=null),!s&&o.every(a=>a.state!=1)&&o.some(a=>a.hasResult())&&(o=o.map(a=>a.hasResult()?new uo(a.source,0):a));for(let a of e.effects)a.is(jj)&&(s=s&&s.setSelected(a.value,this.id));return o==this.active&&s==this.open?this:new fy(o,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:w3e}}function y3e(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n<t.length&&!t[n].hasResult;)n++;for(;i<e.length&&!e[i].hasResult;)i++;let r=n==t.length,o=i==e.length;if(r||o)return r==o;if(t[n++].result!=e[i++].result)return!1}}const w3e={"aria-autocomplete":"list"};function Lj(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const x3e=[];function uC(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class uo{constructor(e,n,i=-1){this.source=e,this.state=n,this.explicitPos=i}hasResult(){return!1}update(e,n){let i=uC(e),r=this;i?r=r.handleUserEvent(e,i,n):e.docChanged?r=r.handleChange(e):e.selection&&r.state!=0&&(r=new uo(r.source,0));for(let o of e.effects)if(o.is(cy))r=new uo(r.source,1,o.value?wu(e.state):-1);else if(o.is(Qm))r=new uo(r.source,0);else if(o.is(Rj))for(let s of o.value)s.source==r.source&&(r=s);return r}handleUserEvent(e,n,i){return n=="delete"||!i.activateOnTyping?this.map(e.changes):new uo(this.source,1)}handleChange(e){return e.changes.touchesRange(wu(e.startState))?new uo(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new uo(this.source,this.state,e.mapPos(this.explicitPos))}}class ah extends uo{constructor(e,n,i,r,o){super(e,2,n),this.result=i,this.from=r,this.to=o}hasResult(){return!0}handleUserEvent(e,n,i){var r;let o=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),a=wu(e.state);if((this.explicitPos<0?a<=o:a<this.from)||a>s||n=="delete"&&wu(e.startState)==this.from)return new uo(this.source,n=="input"&&i.activateOnTyping?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),u;return _3e(this.result.validFor,e.state,o,s)?new ah(this.source,l,this.result,o,s):this.result.update&&(u=this.result.update(this.result,o,s,new Ej(e.state,a,l>=0)))?new ah(this.source,l,u,u.from,(r=u.to)!==null&&r!==void 0?r:wu(e.state)):new uo(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new uo(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new ah(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function _3e(t,e,n,i){if(!t)return!1;let r=e.sliceDoc(n,i);return typeof t=="function"?t(r,n,i,e):Nj(t,!0).test(r)}const Rj=_t.define({map(t,e){return t.map(n=>n.map(e))}}),jj=_t.define(),No=zi.define({create(){return fy.start()},update(t,e){return t.update(e)},provide:t=>[y4.from(t,e=>e.tooltip),Te.contentAttributes.from(t,e=>e.attrs)]});function Fj(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(No).active.find(r=>r.source==e.source);return i instanceof ah?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},f3e(t.state,n,i.from,i.to)),{annotations:Aj.of(e.completion)})):n(t,e.completion,i.from,i.to),!0):!1}const O3e=v3e(No,Fj);function dy(t,e="option"){return n=>{let i=n.state.field(No,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<n.state.facet(ir).interactionDelay)return!1;let r=1,o;e=="page"&&(o=EL(n,i.open.tooltip))&&(r=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:s}=i.open.options,a=i.open.selected>-1?i.open.selected+r*(t?1:-1):t?0:s-1;return a<0?a=e=="page"?0:s-1:a>=s&&(a=e=="page"?s-1:0),n.dispatch({effects:jj.of(a)}),!0}}const S3e=t=>{let e=t.state.field(No,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(ir).interactionDelay?!1:Fj(t,e.open.options[e.open.selected])},C3e=t=>t.state.field(No,!1)?(t.dispatch({effects:cy.of(!0)}),!0):!1,E3e=t=>{let e=t.state.field(No,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:Qm.of(null)}),!0)};class T3e{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const $3e=50,M3e=1e3,N3e=li.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(No).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(No);if(!t.selectionSet&&!t.docChanged&&t.startState.field(No)==e)return;let n=t.transactions.some(r=>(r.selection||r.docChanged)&&!uC(r));for(let r=0;r<this.running.length;r++){let o=this.running[r];if(n||o.updates.length+t.transactions.length>$3e&&Date.now()-o.time>M3e){for(let s of o.context.abortListeners)try{s()}catch(a){is(this.view.state,a)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(r=>r.effects.some(o=>o.is(cy)))&&(this.pendingStart=!0);let i=this.pendingStart?50:t.state.facet(ir).activateOnTypingDelay;if(this.debounceUpdate=e.active.some(r=>r.state==1&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let r of t.transactions)uC(r)=="input"?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(No);for(let n of e.active)n.state==1&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=wu(e),i=new Ej(e,n,t.explicitPos==n),r=new T3e(t,i);this.running.push(r),Promise.resolve(t.source(i)).then(o=>{r.context.aborted||(r.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Qm.of(null)}),is(this.view.state,o)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(ir).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(ir);for(let i=0;i<this.running.length;i++){let r=this.running[i];if(r.done===void 0)continue;if(this.running.splice(i--,1),r.done){let s=new ah(r.active.source,r.active.explicitPos,r.done,r.done.from,(t=r.done.to)!==null&&t!==void 0?t:wu(r.updates.length?r.updates[0].startState:this.view.state));for(let a of r.updates)s=s.update(a,n);if(s.hasResult()){e.push(s);continue}}let o=this.view.state.field(No).active.find(s=>s.source==r.active.source);if(o&&o.state==1)if(r.done==null){let s=new uo(r.active.source,0);for(let a of r.updates)s=s.update(a,n);s.state!=1&&e.push(s)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:Rj.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(No,!1);if(e&&e.tooltip&&this.view.state.facet(ir).closeOnBlur){let n=e.open&&EL(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Qm.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:cy.of(!1)}),20),this.composing=0}}}),zj=Te.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class A3e{constructor(e,n,i,r){this.field=e,this.line=n,this.from=i,this.to=r}}class cC{constructor(e,n,i){this.field=e,this.from=n,this.to=i}map(e){let n=e.mapPos(this.from,-1,er.TrackDel),i=e.mapPos(this.to,1,er.TrackDel);return n==null||i==null?null:new cC(this.field,n,i)}}class fC{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let i=[],r=[n],o=e.doc.lineAt(n),s=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(i.length){let u=s,f=/^\t*/.exec(l)[0].length;for(let d=0;d<f;d++)u+=e.facet(Lm);r.push(n+u.length-f),l=u+l.slice(f)}i.push(l),n+=l.length+1}let a=this.fieldPositions.map(l=>new cC(l.field,r[l.line]+l.from,r[l.line]+l.to));return{text:i,ranges:a}}static parse(e){let n=[],i=[],r=[],o;for(let s of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let a=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1;for(let f=0;f<n.length;f++)(a!=null?n[f].seq==a:l&&n[f].name==l)&&(u=f);if(u<0){let f=0;for(;f<n.length&&(a==null||n[f].seq!=null&&n[f].seq<a);)f++;n.splice(f,0,{seq:a,name:l}),u=f;for(let d of r)d.field>=u&&d.field++}r.push(new A3e(u,i.length,o.index,o.index+l.length)),s=s.slice(0,o.index)+l+s.slice(o.index+o[0].length)}for(let a;a=/\\([{}])/.exec(s);){s=s.slice(0,a.index)+a[1]+s.slice(a.index+a[0].length);for(let l of r)l.line==i.length&&l.from>a.index&&(l.from--,l.to--)}i.push(s)}return new fC(i,r)}}let P3e=it.widget({widget:new class extends da{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),D3e=it.mark({class:"cm-snippetField"});class lh{constructor(e,n){this.ranges=e,this.active=n,this.deco=it.set(e.map(i=>(i.from==i.to?P3e:D3e).range(i.from,i.to)))}map(e){let n=[];for(let i of this.ranges){let r=i.map(e);if(!r)return null;n.push(r)}return new lh(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(i=>i.field==this.active&&i.from<=n.from&&i.to>=n.to))}}const Um=_t.define({map(t,e){return t&&t.map(e)}}),I3e=_t.define(),Zm=zi.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(Um))return n.value;if(n.is(I3e)&&t)return new lh(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Te.decorations.from(t,e=>e?e.deco:it.none)});function dC(t,e){return he.create(t.filter(n=>n.field==e).map(n=>he.range(n.from,n.to)))}function L3e(t){let e=fC.parse(t);return(n,i,r,o)=>{let{text:s,ranges:a}=e.instantiate(n.state,r),l={changes:{from:r,to:o,insert:Yt.of(s)},scrollIntoView:!0,annotations:i?[Aj.of(i),jr.userEvent.of("input.complete")]:void 0};if(a.length&&(l.selection=dC(a,0)),a.some(u=>u.field>0)){let u=new lh(a,0),f=l.effects=[Um.of(u)];n.state.field(Zm,!1)===void 0&&f.push(_t.appendConfig.of([Zm,j3e,F3e,zj]))}n.dispatch(n.state.update(l))}}function Bj(t){return({state:e,dispatch:n})=>{let i=e.field(Zm,!1);if(!i||t<0&&i.active==0)return!1;let r=i.active+t,o=t>0&&!i.ranges.some(s=>s.field==r+t);return n(e.update({selection:dC(i.ranges,r),effects:Um.of(o?null:new lh(i.ranges,r)),scrollIntoView:!0})),!0}}const R3e=[{key:"Tab",run:Bj(1),shift:Bj(-1)},{key:"Escape",run:({state:t,dispatch:e})=>t.field(Zm,!1)?(e(t.update({effects:Um.of(null)})),!0):!1}],Wj=Qe.define({combine(t){return t.length?t[0]:R3e}}),j3e=Hc.highest(nl.compute([Wj],t=>t.facet(Wj)));function co(t,e){return Object.assign(Object.assign({},e),{apply:L3e(t)})}const F3e=Te.domEventHandlers({mousedown(t,e){let n=e.state.field(Zm,!1),i;if(!n||(i=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=n.ranges.find(o=>o.from<=i&&o.to>=i);return!r||r.field==n.active?!1:(e.dispatch({selection:dC(n.ranges,r.field),effects:Um.of(n.ranges.some(o=>o.field>r.field)?new lh(n.ranges,r.field):null),scrollIntoView:!0}),!0)}}),qm={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Vc=_t.define({map(t,e){let n=e.mapPos(t,-1,er.TrackAfter);return n??void 0}}),hC=new class extends Qc{};hC.startSide=1,hC.endSide=-1;const Hj=zi.define({create(){return zt.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is(Vc)&&(t=t.update({add:[hC.range(n.value,n.value+1)]}));return t}});function Qj(){return[B3e,Hj]}const pC="()[]{}<>";function Uj(t){for(let e=0;e<pC.length;e+=2)if(pC.charCodeAt(e)==t)return pC.charAt(e+1);return kS(t<128?t:t+1)}function Zj(t,e){return t.languageDataAt("closeBrackets",e)[0]||qm}const z3e=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),B3e=Te.inputHandler.of((t,e,n,i)=>{if((z3e?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(i.length>2||i.length==2&&ns(Ji(i,0))==1||e!=r.from||n!=r.to)return!1;let o=W3e(t.state,i);return o?(t.dispatch(o),!0):!1}),qj=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=Zj(t,t.selection.main.head).brackets||qm.brackets,r=null,o=t.changeByRange(s=>{if(s.empty){let a=H3e(t.doc,s.head);for(let l of i)if(l==a&&hy(t.doc,s.head)==Uj(Ji(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:he.cursor(s.head-l.length)}}return{range:r=s}});return r||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function W3e(t,e){let n=Zj(t,t.selection.main.head),i=n.brackets||qm.brackets;for(let r of i){let o=Uj(Ji(r,0));if(e==r)return o==r?Z3e(t,r,i.indexOf(r+r+r)>-1,n):Q3e(t,r,o,n.before||qm.before);if(e==o&&Yj(t,t.selection.main.from))return U3e(t,r,o)}return null}function Yj(t,e){let n=!1;return t.field(Hj).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function hy(t,e){let n=t.sliceString(e,e+2);return n.slice(0,ns(Ji(n,0)))}function H3e(t,e){let n=t.sliceString(e-2,e);return ns(Ji(n,0))==n.length?n:n.slice(1)}function Q3e(t,e,n,i){let r=null,o=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:n,from:s.to}],effects:Vc.of(s.to+e.length),range:he.range(s.anchor+e.length,s.head+e.length)};let a=hy(t.doc,s.head);return!a||/\s/.test(a)||i.indexOf(a)>-1?{changes:{insert:e+n,from:s.head},effects:Vc.of(s.head+e.length),range:he.cursor(s.head+e.length)}:{range:r=s}});return r?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function U3e(t,e,n){let i=null,r=t.changeByRange(o=>o.empty&&hy(t.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:he.cursor(o.head+n.length)}:i={range:o});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Z3e(t,e,n,i){let r=i.stringPrefixes||qm.stringPrefixes,o=null,s=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:e,from:a.to}],effects:Vc.of(a.to+e.length),range:he.range(a.anchor+e.length,a.head+e.length)};let l=a.head,u=hy(t.doc,l),f;if(u==e){if(Vj(t,l))return{changes:{insert:e+e,from:l},effects:Vc.of(l+e.length),range:he.cursor(l+e.length)};if(Yj(t,l)){let h=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+h.length,insert:h},range:he.cursor(l+h.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(f=Xj(t,l-2*e.length,r))>-1&&Vj(t,f))return{changes:{insert:e+e+e+e,from:l},effects:Vc.of(l+e.length),range:he.cursor(l+e.length)};if(t.charCategorizer(l)(u)!=Nn.Word&&Xj(t,l,r)>-1&&!q3e(t,l,e,r))return{changes:{insert:e+e,from:l},effects:Vc.of(l+e.length),range:he.cursor(l+e.length)}}return{range:o=a}});return o?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Vj(t,e){let n=Gn(t).resolveInner(e+1);return n.parent&&n.from==e}function q3e(t,e,n,i){let r=Gn(t).resolveInner(e,-1),o=i.reduce((s,a)=>Math.max(s,a.length),0);for(let s=0;s<5;s++){let a=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+o)),l=a.indexOf(n);if(!l||l>-1&&i.indexOf(a.slice(0,l))>-1){let f=r.firstChild;for(;f&&f.from==r.from&&f.to-f.from>n.length+l;){if(t.sliceDoc(f.to-n.length,f.to)==n)return!1;f=f.firstChild}return!0}let u=r.to==e&&r.parent;if(!u)break;r=u}return!1}function Xj(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=Nn.Word)return e;for(let r of n){let o=e-r.length;if(t.sliceDoc(o,e)==r&&i(t.sliceDoc(o-1,o))!=Nn.Word)return o}return-1}function Y3e(t={}){return[No,ir.of(t),N3e,V3e,zj]}const Gj=[{key:"Ctrl-Space",run:C3e},{key:"Escape",run:E3e},{key:"ArrowDown",run:dy(!0)},{key:"ArrowUp",run:dy(!1)},{key:"PageDown",run:dy(!0,"page")},{key:"PageUp",run:dy(!1,"page")},{key:"Enter",run:S3e}],V3e=Hc.highest(nl.computeN([ir],t=>t.facet(ir).defaultKeymap?[Gj]:[]));class X3e{constructor(e,n,i){this.from=e,this.to=n,this.diagnostic=i}}class Xc{constructor(e,n,i){this.diagnostics=e,this.panel=n,this.selected=i}static init(e,n,i){let r=e,o=i.facet(tF).markerFilter;o&&(r=o(r));let s=it.set(r.map(a=>a.from==a.to||a.from==a.to-1&&i.doc.lineAt(a.from).to==a.from?it.widget({widget:new rOe(a),diagnostic:a}).range(a.from):it.mark({attributes:{class:"cm-lintRange cm-lintRange-"+a.severity+(a.markClass?" "+a.markClass:"")},diagnostic:a}).range(a.from,a.to)),!0);return new Xc(s,n,uh(s))}}function uh(t,e=null,n=0){let i=null;return t.between(n,1e9,(r,o,{spec:s})=>{if(!(e&&s.diagnostic!=e))return i=new X3e(r,o,s.diagnostic),!1}),i}function G3e(t,e){let n=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(i=>i.is(Kj))||t.changes.touchesRange(n.from,n.to))}function K3e(t,e){return t.field(Ao,!1)?e:e.concat(_t.appendConfig.of(aOe))}const Kj=_t.define(),gC=_t.define(),Jj=_t.define(),Ao=zi.define({create(){return new Xc(it.none,null,null)},update(t,e){if(e.docChanged){let n=t.diagnostics.map(e.changes),i=null;if(t.selected){let r=e.changes.mapPos(t.selected.from,1);i=uh(n,t.selected.diagnostic,r)||uh(n,null,r)}t=new Xc(n,t.panel,i)}for(let n of e.effects)n.is(Kj)?t=Xc.init(n.value,t.panel,e.state):n.is(gC)?t=new Xc(t.diagnostics,n.value?py.open:null,t.selected):n.is(Jj)&&(t=new Xc(t.diagnostics,t.panel,n.value));return t},provide:t=>[$m.from(t,e=>e.panel),Te.decorations.from(t,e=>e.diagnostics)]}),J3e=it.mark({class:"cm-lintRange cm-lintRange-active"});function eOe(t,e,n){let{diagnostics:i}=t.state.field(Ao),r=[],o=2e8,s=0;i.between(e-(n<0?1:0),e+(n>0?1:0),(l,u,{spec:f})=>{e>=l&&e<=u&&(l==u||(e>l||n>0)&&(e<u||n<0))&&(r.push(f.diagnostic),o=Math.min(l,o),s=Math.max(u,s))});let a=t.state.facet(tF).tooltipFilter;return a&&(r=a(r)),r.length?{pos:o,end:s,above:t.state.doc.lineAt(o).to<s,create(){return{dom:tOe(t,r)}}}:null}function tOe(t,e){return un("ul",{class:"cm-tooltip-lint"},e.map(n=>iF(t,n,!1)))}const nOe=t=>{let e=t.state.field(Ao,!1);(!e||!e.panel)&&t.dispatch({effects:K3e(t.state,[gC.of(!0)])});let n=Tm(t,py.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},eF=t=>{let e=t.state.field(Ao,!1);return!e||!e.panel?!1:(t.dispatch({effects:gC.of(!1)}),!0)},iOe=[{key:"Mod-Shift-m",run:nOe,preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(Ao,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)}}],tF=Qe.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},fa(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n}))}});function nF(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;i<n.length;i++){let r=n[i];if(/[a-zA-Z]/.test(r)&&!e.some(o=>o.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function iF(t,e,n){var i;let r=n?nF(e.actions):[];return un("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},un("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(i=e.actions)===null||i===void 0?void 0:i.map((o,s)=>{let a=!1,l=h=>{if(h.preventDefault(),a)return;a=!0;let g=uh(t.state.field(Ao).diagnostics,e);g&&o.apply(t,g.from,g.to)},{name:u}=o,f=r[s]?u.indexOf(r[s]):-1,d=f<0?u:[u.slice(0,f),un("u",u.slice(f,f+1)),u.slice(f+1)];return un("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${f<0?"":` (access key "${r[s]})"`}.`},d)}),e.source&&un("div",{class:"cm-diagnosticSource"},e.source))}class rOe extends da{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return un("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class rF{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=iF(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class py{constructor(e){this.view=e,this.items=[];let n=r=>{if(r.keyCode==27)eF(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],s=nF(o.actions);for(let a=0;a<s.length;a++)if(s[a].toUpperCase().charCodeAt(0)==r.keyCode){let l=uh(this.view.state.field(Ao).diagnostics,o);l&&o.actions[a].apply(e,l.from,l.to)}}else return;r.preventDefault()},i=r=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(r.target)&&this.moveSelection(o)};this.list=un("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:i}),this.dom=un("div",{class:"cm-panel-lint"},this.list,un("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>eF(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ao).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(Ao),i=0,r=!1,o=null;for(e.between(0,this.view.state.doc.length,(s,a,{spec:l})=>{let u=-1,f;for(let d=i;d<this.items.length;d++)if(this.items[d].diagnostic==l.diagnostic){u=d;break}u<0?(f=new rF(this.view,l.diagnostic),this.items.splice(i,0,f),r=!0):(f=this.items[u],u>i&&(this.items.splice(i,u-i),r=!0)),n&&f.diagnostic==n.diagnostic?f.dom.hasAttribute("aria-selected")||(f.dom.setAttribute("aria-selected","true"),o=f):f.dom.hasAttribute("aria-selected")&&f.dom.removeAttribute("aria-selected"),i++});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new rF(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:a})=>{let l=a.height/this.list.offsetHeight;s.top<a.top?this.list.scrollTop-=(a.top-s.top)/l:s.bottom>a.bottom&&(this.list.scrollTop+=(s.bottom-a.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Ao),i=uh(n.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:Jj.of(i)})}static open(e){return new py(e)}}function oOe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function gy(t){return oOe(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const sOe=Te.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:gy("#d11")},".cm-lintRange-warning":{backgroundImage:gy("orange")},".cm-lintRange-info":{backgroundImage:gy("#999")},".cm-lintRange-hint":{backgroundImage:gy("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),aOe=[Ao,Te.decorations.compute([Ao],t=>{let{selected:e,panel:n}=t.field(Ao);return!e||!n||e.from==e.to?it.none:it.set([J3e.range(e.from,e.to)])}),cxe(eOe,{hideOn:G3e}),sOe];var oF=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(qj)),e.defaultKeymap!==!1&&(i=i.concat(dj)),e.searchKeymap!==!1&&(i=i.concat(o3e)),e.historyKeymap!==!1&&(i=i.concat(AR)),e.foldKeymap!==!1&&(i=i.concat(u2e)),e.completionKeymap!==!1&&(i=i.concat(Gj)),e.lintKeymap!==!1&&(i=i.concat(iOe));var r=[];return e.lineNumbers!==!1&&r.push(O4()),e.highlightActiveLineGutter!==!1&&r.push(wxe()),e.highlightSpecialChars!==!1&&r.push(xL()),e.history!==!1&&r.push(Vk()),e.foldGutter!==!1&&r.push(h2e()),e.drawSelection!==!1&&r.push(vL()),e.dropCursor!==!1&&r.push(Dwe()),e.allowMultipleSelections!==!1&&r.push(jt.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&r.push(n2e()),e.syntaxHighlighting!==!1&&r.push(Fm(bR,{fallback:!0})),e.bracketMatching!==!1&&r.push(x2e()),e.closeBrackets!==!1&&r.push(Qj()),e.autocompletion!==!1&&r.push(Y3e()),e.rectangularSelection!==!1&&r.push(Jwe()),n!==!1&&r.push(nxe()),e.highlightActiveLine!==!1&&r.push(Uwe()),e.highlightSelectionMatches!==!1&&r.push(z_e()),e.tabSize&&typeof e.tabSize=="number"&&r.push(Lm.of(" ".repeat(e.tabSize))),r.concat([nl.of(i.flat())]).filter(Boolean)},sF=function(e){e===void 0&&(e={});var n=[];e.defaultKeymap!==!1&&(n=n.concat(dj)),e.historyKeymap!==!1&&(n=n.concat(AR));var i=[];return e.highlightSpecialChars!==!1&&i.push(xL()),e.history!==!1&&i.push(Vk()),e.drawSelection!==!1&&i.push(vL()),e.syntaxHighlighting!==!1&&i.push(Fm(bR,{fallback:!0})),i.concat([nl.of(n.flat())]).filter(Boolean)};const lOe="#e5c07b",aF="#e06c75",uOe="#56b6c2",cOe="#ffffff",my="#abb2bf",mC="#7d8799",fOe="#61afef",dOe="#98c379",lF="#d19a66",hOe="#c678dd",pOe="#21252b",uF="#2c313a",cF="#282c34",vC="#353a42",gOe="#3E4451",fF="#528bff",mOe=Te.theme({"&":{color:my,backgroundColor:cF},".cm-content":{caretColor:fF},".cm-cursor, .cm-dropCursor":{borderLeftColor:fF},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:gOe},".cm-panels":{backgroundColor:pOe,color:my},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:cF,color:mC,border:"none"},".cm-activeLineGutter":{backgroundColor:uF},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:vC},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:vC,borderBottomColor:vC},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:uF,color:my}}},{dark:!0}),vOe=ol.define([{tag:X.keyword,color:hOe},{tag:[X.name,X.deleted,X.character,X.propertyName,X.macroName],color:aF},{tag:[X.function(X.variableName),X.labelName],color:fOe},{tag:[X.color,X.constant(X.name),X.standard(X.name)],color:lF},{tag:[X.definition(X.name),X.separator],color:my},{tag:[X.typeName,X.className,X.number,X.changed,X.annotation,X.modifier,X.self,X.namespace],color:lOe},{tag:[X.operator,X.operatorKeyword,X.url,X.escape,X.regexp,X.link,X.special(X.string)],color:uOe},{tag:[X.meta,X.comment],color:mC},{tag:X.strong,fontWeight:"bold"},{tag:X.emphasis,fontStyle:"italic"},{tag:X.strikethrough,textDecoration:"line-through"},{tag:X.link,color:mC,textDecoration:"underline"},{tag:X.heading,fontWeight:"bold",color:aF},{tag:[X.atom,X.bool,X.special(X.variableName)],color:lF},{tag:[X.processingInstruction,X.string,X.inserted],color:dOe},{tag:X.invalid,color:cOe}]),bOe=[mOe,Fm(vOe)];var kOe=Te.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),yOe=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:i=!0,readOnly:r=!1,theme:o="light",placeholder:s="",basicSetup:a=!0}=e,l=[];switch(n&&l.unshift(nl.of([D_e])),a&&(typeof a=="boolean"?l.unshift(oF()):l.unshift(oF(a))),s&&l.unshift(Vwe(s)),o){case"light":l.push(kOe);break;case"dark":l.push(bOe);break;case"none":break;default:l.push(o);break}return i===!1&&l.push(Te.editable.of(!1)),r&&l.push(jt.readOnly.of(!0)),[...l]},wOe=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)}),dF=ca.define(),xOe=[];function _Oe(t){var{value:e,selection:n,onChange:i,onStatistics:r,onCreateEditor:o,onUpdate:s,extensions:a=xOe,autoFocus:l,theme:u="light",height:f=null,minHeight:d=null,maxHeight:h=null,width:g=null,minWidth:m=null,maxWidth:y=null,placeholder:x="",editable:_=!0,readOnly:S=!1,indentWithTab:C=!0,basicSetup:E=!0,root:N,initialState:M}=t,[I,W]=T.useState(),[B,Z]=T.useState(),[R,Q]=T.useState(),V=Te.theme({"&":{height:f,minHeight:d,maxHeight:h,width:g,minWidth:m,maxWidth:y},"& .cm-scroller":{height:"100% !important"}}),H=Te.updateListener.of(Y=>{if(Y.docChanged&&typeof i=="function"&&!Y.transactions.some(oe=>oe.annotation(dF))){var K=Y.state.doc,te=K.toString();i(te,Y)}r&&r(wOe(Y))}),j=yOe({theme:u,editable:_,readOnly:S,placeholder:x,indentWithTab:C,basicSetup:E}),q=[H,V,...j];return s&&typeof s=="function"&&q.push(Te.updateListener.of(s)),q=q.concat(a),T.useEffect(()=>{if(I&&!R){var Y={doc:e,selection:n,extensions:q},K=M?jt.fromJSON(M.json,Y,M.fields):jt.create(Y);if(Q(K),!B){var te=new Te({state:K,parent:I,root:N});Z(te),o&&o(te,K)}}return()=>{B&&(Q(void 0),Z(void 0))}},[I,R]),T.useEffect(()=>W(t.container),[t.container]),T.useEffect(()=>()=>{B&&(B.destroy(),Z(void 0))},[B]),T.useEffect(()=>{l&&B&&B.focus()},[l,B]),T.useEffect(()=>{B&&B.dispatch({effects:_t.reconfigure.of(q)})},[u,a,f,d,h,g,m,y,x,_,S,C,E,i,s]),T.useEffect(()=>{if(e!==void 0){var Y=B?B.state.doc.toString():"";B&&e!==Y&&B.dispatch({changes:{from:0,to:Y.length,insert:e||""},annotations:[dF.of(!0)]})}},[e,B]),{state:R,setState:Q,view:B,setView:Z,container:I,setContainer:W}}var OOe=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],bC=T.forwardRef((t,e)=>{var{className:n,value:i="",selection:r,extensions:o=[],onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:u,autoFocus:f,theme:d="light",height:h,minHeight:g,maxHeight:m,width:y,minWidth:x,maxWidth:_,basicSetup:S,placeholder:C,indentWithTab:E,editable:N,readOnly:M,root:I,initialState:W}=t,B=$ke(t,OOe),Z=T.useRef(null),{state:R,view:Q,container:V}=_Oe({container:Z.current,root:I,value:i,autoFocus:f,theme:d,height:h,minHeight:g,maxHeight:m,width:y,minWidth:x,maxWidth:_,basicSetup:S,placeholder:C,indentWithTab:E,editable:N,readOnly:M,selection:r,onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:u,extensions:o,initialState:W});if(T.useImperativeHandle(e,()=>({editor:Z.current,state:R,view:Q}),[Z,V,R,Q]),typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var H=typeof d=="string"?"cm-theme-"+d:"cm-theme";return k.jsx("div",bS({ref:Z,className:""+H+(n?" "+n:"")},B))});bC.displayName="CodeMirror";function Gc({children:t,to:e,className:n,...i}){const{darkMode:r}=T.useContext(ft),o=e||document.body;if(!o)return t;function s(a){a.stopPropagation()}return Xs.createPortal(k.jsx("div",{className:"koenig-lexical",style:{width:"fit-content"},"data-kg-portal":!0,onMouseDown:s,...i,children:k.jsx("div",{className:`${r?"dark":""} ${n||""}`,children:t})}),o)}const hF={categories:[{id:"people",emojis:["grinning","smiley","smile","grin","laughing","sweat_smile","rolling_on_the_floor_laughing","joy","slightly_smiling_face","upside_down_face","melting_face","wink","blush","innocent","smiling_face_with_3_hearts","heart_eyes","star-struck","kissing_heart","kissing","relaxed","kissing_closed_eyes","kissing_smiling_eyes","smiling_face_with_tear","yum","stuck_out_tongue","stuck_out_tongue_winking_eye","zany_face","stuck_out_tongue_closed_eyes","money_mouth_face","hugging_face","face_with_hand_over_mouth","face_with_open_eyes_and_hand_over_mouth","face_with_peeking_eye","shushing_face","thinking_face","saluting_face","zipper_mouth_face","face_with_raised_eyebrow","neutral_face","expressionless","no_mouth","dotted_line_face","face_in_clouds","smirk","unamused","face_with_rolling_eyes","grimacing","face_exhaling","lying_face","shaking_face","relieved","pensive","sleepy","drooling_face","sleeping","mask","face_with_thermometer","face_with_head_bandage","nauseated_face","face_vomiting","sneezing_face","hot_face","cold_face","woozy_face","dizzy_face","face_with_spiral_eyes","exploding_head","face_with_cowboy_hat","partying_face","disguised_face","sunglasses","nerd_face","face_with_monocle","confused","face_with_diagonal_mouth","worried","slightly_frowning_face","white_frowning_face","open_mouth","hushed","astonished","flushed","pleading_face","face_holding_back_tears","frowning","anguished","fearful","cold_sweat","disappointed_relieved","cry","sob","scream","confounded","persevere","disappointed","sweat","weary","tired_face","yawning_face","triumph","rage","angry","face_with_symbols_on_mouth","smiling_imp","imp","skull","skull_and_crossbones","hankey","clown_face","japanese_ogre","japanese_goblin","ghost","alien","space_invader","wave","raised_back_of_hand","raised_hand_with_fingers_splayed","hand","spock-hand","rightwards_hand","leftwards_hand","palm_down_hand","palm_up_hand","leftwards_pushing_hand","rightwards_pushing_hand","ok_hand","pinched_fingers","pinching_hand","v","crossed_fingers","hand_with_index_finger_and_thumb_crossed","i_love_you_hand_sign","the_horns","call_me_hand","point_left","point_right","point_up_2","middle_finger","point_down","point_up","index_pointing_at_the_viewer","+1","-1","fist","facepunch","left-facing_fist","right-facing_fist","clap","raised_hands","heart_hands","open_hands","palms_up_together","handshake","pray","writing_hand","nail_care","selfie","muscle","mechanical_arm","mechanical_leg","leg","foot","ear","ear_with_hearing_aid","nose","brain","anatomical_heart","lungs","tooth","bone","eyes","eye","tongue","lips","biting_lip","baby","child","boy","girl","adult","person_with_blond_hair","man","bearded_person","man_with_beard","woman_with_beard","red_haired_man","curly_haired_man","white_haired_man","bald_man","woman","red_haired_woman","red_haired_person","curly_haired_woman","curly_haired_person","white_haired_woman","white_haired_person","bald_woman","bald_person","blond-haired-woman","blond-haired-man","older_adult","older_man","older_woman","person_frowning","man-frowning","woman-frowning","person_with_pouting_face","man-pouting","woman-pouting","no_good","man-gesturing-no","woman-gesturing-no","ok_woman","man-gesturing-ok","woman-gesturing-ok","information_desk_person","man-tipping-hand","woman-tipping-hand","raising_hand","man-raising-hand","woman-raising-hand","deaf_person","deaf_man","deaf_woman","bow","man-bowing","woman-bowing","face_palm","man-facepalming","woman-facepalming","shrug","man-shrugging","woman-shrugging","health_worker","male-doctor","female-doctor","student","male-student","female-student","teacher","male-teacher","female-teacher","judge","male-judge","female-judge","farmer","male-farmer","female-farmer","cook","male-cook","female-cook","mechanic","male-mechanic","female-mechanic","factory_worker","male-factory-worker","female-factory-worker","office_worker","male-office-worker","female-office-worker","scientist","male-scientist","female-scientist","technologist","male-technologist","female-technologist","singer","male-singer","female-singer","artist","male-artist","female-artist","pilot","male-pilot","female-pilot","astronaut","male-astronaut","female-astronaut","firefighter","male-firefighter","female-firefighter","cop","male-police-officer","female-police-officer","sleuth_or_spy","male-detective","female-detective","guardsman","male-guard","female-guard","ninja","construction_worker","male-construction-worker","female-construction-worker","person_with_crown","prince","princess","man_with_turban","man-wearing-turban","woman-wearing-turban","man_with_gua_pi_mao","person_with_headscarf","person_in_tuxedo","man_in_tuxedo","woman_in_tuxedo","bride_with_veil","man_with_veil","woman_with_veil","pregnant_woman","pregnant_man","pregnant_person","breast-feeding","woman_feeding_baby","man_feeding_baby","person_feeding_baby","angel","santa","mrs_claus","mx_claus","superhero","male_superhero","female_superhero","supervillain","male_supervillain","female_supervillain","mage","male_mage","female_mage","fairy","male_fairy","female_fairy","vampire","male_vampire","female_vampire","merperson","merman","mermaid","elf","male_elf","female_elf","genie","male_genie","female_genie","zombie","male_zombie","female_zombie","troll","massage","man-getting-massage","woman-getting-massage","haircut","man-getting-haircut","woman-getting-haircut","walking","man-walking","woman-walking","standing_person","man_standing","woman_standing","kneeling_person","man_kneeling","woman_kneeling","person_with_probing_cane","man_with_probing_cane","woman_with_probing_cane","person_in_motorized_wheelchair","man_in_motorized_wheelchair","woman_in_motorized_wheelchair","person_in_manual_wheelchair","man_in_manual_wheelchair","woman_in_manual_wheelchair","runner","man-running","woman-running","dancer","man_dancing","man_in_business_suit_levitating","dancers","men-with-bunny-ears-partying","women-with-bunny-ears-partying","person_in_steamy_room","man_in_steamy_room","woman_in_steamy_room","person_climbing","man_climbing","woman_climbing","fencer","horse_racing","skier","snowboarder","golfer","man-golfing","woman-golfing","surfer","man-surfing","woman-surfing","rowboat","man-rowing-boat","woman-rowing-boat","swimmer","man-swimming","woman-swimming","person_with_ball","man-bouncing-ball","woman-bouncing-ball","weight_lifter","man-lifting-weights","woman-lifting-weights","bicyclist","man-biking","woman-biking","mountain_bicyclist","man-mountain-biking","woman-mountain-biking","person_doing_cartwheel","man-cartwheeling","woman-cartwheeling","wrestlers","man-wrestling","woman-wrestling","water_polo","man-playing-water-polo","woman-playing-water-polo","handball","man-playing-handball","woman-playing-handball","juggling","man-juggling","woman-juggling","person_in_lotus_position","man_in_lotus_position","woman_in_lotus_position","bath","sleeping_accommodation","people_holding_hands","two_women_holding_hands","man_and_woman_holding_hands","two_men_holding_hands","couplekiss","woman-kiss-man","man-kiss-man","woman-kiss-woman","couple_with_heart","woman-heart-man","man-heart-man","woman-heart-woman","family","man-woman-boy","man-woman-girl","man-woman-girl-boy","man-woman-boy-boy","man-woman-girl-girl","man-man-boy","man-man-girl","man-man-girl-boy","man-man-boy-boy","man-man-girl-girl","woman-woman-boy","woman-woman-girl","woman-woman-girl-boy","woman-woman-boy-boy","woman-woman-girl-girl","man-boy","man-boy-boy","man-girl","man-girl-boy","man-girl-girl","woman-boy","woman-boy-boy","woman-girl","woman-girl-boy","woman-girl-girl","speaking_head_in_silhouette","bust_in_silhouette","busts_in_silhouette","people_hugging","footprints","robot_face","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","see_no_evil","hear_no_evil","speak_no_evil","love_letter","cupid","gift_heart","sparkling_heart","heartpulse","heartbeat","revolving_hearts","two_hearts","heart_decoration","heavy_heart_exclamation_mark_ornament","broken_heart","heart_on_fire","mending_heart","heart","pink_heart","orange_heart","yellow_heart","green_heart","blue_heart","light_blue_heart","purple_heart","brown_heart","black_heart","grey_heart","white_heart","kiss","100","anger","boom","dizzy","sweat_drops","dash","hole","speech_balloon","eye-in-speech-bubble","left_speech_bubble","right_anger_bubble","thought_balloon","zzz"]},{id:"nature",emojis:["monkey_face","monkey","gorilla","orangutan","dog","dog2","guide_dog","service_dog","poodle","wolf","fox_face","raccoon","cat","cat2","black_cat","lion_face","tiger","tiger2","leopard","horse","moose","donkey","racehorse","unicorn_face","zebra_face","deer","bison","cow","ox","water_buffalo","cow2","pig","pig2","boar","pig_nose","ram","sheep","goat","dromedary_camel","camel","llama","giraffe_face","elephant","mammoth","rhinoceros","hippopotamus","mouse","mouse2","rat","hamster","rabbit","rabbit2","chipmunk","beaver","hedgehog","bat","bear","polar_bear","koala","panda_face","sloth","otter","skunk","kangaroo","badger","feet","turkey","chicken","rooster","hatching_chick","baby_chick","hatched_chick","bird","penguin","dove_of_peace","eagle","duck","swan","owl","dodo","feather","flamingo","peacock","parrot","wing","black_bird","goose","frog","crocodile","turtle","lizard","snake","dragon_face","dragon","sauropod","t-rex","whale","whale2","dolphin","seal","fish","tropical_fish","blowfish","shark","octopus","shell","coral","jellyfish","snail","butterfly","bug","ant","bee","beetle","ladybug","cricket","cockroach","spider","spider_web","scorpion","mosquito","fly","worm","microbe","bouquet","cherry_blossom","white_flower","lotus","rosette","rose","wilted_flower","hibiscus","sunflower","blossom","tulip","hyacinth","seedling","potted_plant","evergreen_tree","deciduous_tree","palm_tree","cactus","ear_of_rice","herb","shamrock","four_leaf_clover","maple_leaf","fallen_leaf","leaves","empty_nest","nest_with_eggs","mushroom"]},{id:"foods",emojis:["grapes","melon","watermelon","tangerine","lemon","banana","pineapple","mango","apple","green_apple","pear","peach","cherries","strawberry","blueberries","kiwifruit","tomato","olive","coconut","avocado","eggplant","potato","carrot","corn","hot_pepper","bell_pepper","cucumber","leafy_green","broccoli","garlic","onion","peanuts","beans","chestnut","ginger_root","pea_pod","bread","croissant","baguette_bread","flatbread","pretzel","bagel","pancakes","waffle","cheese_wedge","meat_on_bone","poultry_leg","cut_of_meat","bacon","hamburger","fries","pizza","hotdog","sandwich","taco","burrito","tamale","stuffed_flatbread","falafel","egg","fried_egg","shallow_pan_of_food","stew","fondue","bowl_with_spoon","green_salad","popcorn","butter","salt","canned_food","bento","rice_cracker","rice_ball","rice","curry","ramen","spaghetti","sweet_potato","oden","sushi","fried_shrimp","fish_cake","moon_cake","dango","dumpling","fortune_cookie","takeout_box","crab","lobster","shrimp","squid","oyster","icecream","shaved_ice","ice_cream","doughnut","cookie","birthday","cake","cupcake","pie","chocolate_bar","candy","lollipop","custard","honey_pot","baby_bottle","glass_of_milk","coffee","teapot","tea","sake","champagne","wine_glass","cocktail","tropical_drink","beer","beers","clinking_glasses","tumbler_glass","pouring_liquid","cup_with_straw","bubble_tea","beverage_box","mate_drink","ice_cube","chopsticks","knife_fork_plate","fork_and_knife","spoon","hocho","jar","amphora"]},{id:"activity",emojis:["jack_o_lantern","christmas_tree","fireworks","sparkler","firecracker","sparkles","balloon","tada","confetti_ball","tanabata_tree","bamboo","dolls","flags","wind_chime","rice_scene","red_envelope","ribbon","gift","reminder_ribbon","admission_tickets","ticket","medal","trophy","sports_medal","first_place_medal","second_place_medal","third_place_medal","soccer","baseball","softball","basketball","volleyball","football","rugby_football","tennis","flying_disc","bowling","cricket_bat_and_ball","field_hockey_stick_and_ball","ice_hockey_stick_and_puck","lacrosse","table_tennis_paddle_and_ball","badminton_racquet_and_shuttlecock","boxing_glove","martial_arts_uniform","goal_net","golf","ice_skate","fishing_pole_and_fish","diving_mask","running_shirt_with_sash","ski","sled","curling_stone","dart","yo-yo","kite","gun","8ball","crystal_ball","magic_wand","video_game","joystick","slot_machine","game_die","jigsaw","teddy_bear","pinata","mirror_ball","nesting_dolls","spades","hearts","diamonds","clubs","chess_pawn","black_joker","mahjong","flower_playing_cards","performing_arts","frame_with_picture","art","thread","sewing_needle","yarn","knot"]},{id:"places",emojis:["earth_africa","earth_americas","earth_asia","globe_with_meridians","world_map","japan","compass","snow_capped_mountain","mountain","volcano","mount_fuji","camping","beach_with_umbrella","desert","desert_island","national_park","stadium","classical_building","building_construction","bricks","rock","wood","hut","house_buildings","derelict_house_building","house","house_with_garden","office","post_office","european_post_office","hospital","bank","hotel","love_hotel","convenience_store","school","department_store","factory","japanese_castle","european_castle","wedding","tokyo_tower","statue_of_liberty","church","mosque","hindu_temple","synagogue","shinto_shrine","kaaba","fountain","tent","foggy","night_with_stars","cityscape","sunrise_over_mountains","sunrise","city_sunset","city_sunrise","bridge_at_night","hotsprings","carousel_horse","playground_slide","ferris_wheel","roller_coaster","barber","circus_tent","steam_locomotive","railway_car","bullettrain_side","bullettrain_front","train2","metro","light_rail","station","tram","monorail","mountain_railway","train","bus","oncoming_bus","trolleybus","minibus","ambulance","fire_engine","police_car","oncoming_police_car","taxi","oncoming_taxi","car","oncoming_automobile","blue_car","pickup_truck","truck","articulated_lorry","tractor","racing_car","racing_motorcycle","motor_scooter","manual_wheelchair","motorized_wheelchair","auto_rickshaw","bike","scooter","skateboard","roller_skate","busstop","motorway","railway_track","oil_drum","fuelpump","wheel","rotating_light","traffic_light","vertical_traffic_light","octagonal_sign","construction","anchor","ring_buoy","boat","canoe","speedboat","passenger_ship","ferry","motor_boat","ship","airplane","small_airplane","airplane_departure","airplane_arriving","parachute","seat","helicopter","suspension_railway","mountain_cableway","aerial_tramway","satellite","rocket","flying_saucer","bellhop_bell","luggage","hourglass","hourglass_flowing_sand","watch","alarm_clock","stopwatch","timer_clock","mantelpiece_clock","clock12","clock1230","clock1","clock130","clock2","clock230","clock3","clock330","clock4","clock430","clock5","clock530","clock6","clock630","clock7","clock730","clock8","clock830","clock9","clock930","clock10","clock1030","clock11","clock1130","new_moon","waxing_crescent_moon","first_quarter_moon","moon","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","crescent_moon","new_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","thermometer","sunny","full_moon_with_face","sun_with_face","ringed_planet","star","star2","stars","milky_way","cloud","partly_sunny","thunder_cloud_and_rain","mostly_sunny","barely_sunny","partly_sunny_rain","rain_cloud","snow_cloud","lightning","tornado","fog","wind_blowing_face","cyclone","rainbow","closed_umbrella","umbrella","umbrella_with_rain_drops","umbrella_on_ground","zap","snowflake","snowman","snowman_without_snow","comet","fire","droplet","ocean"]},{id:"objects",emojis:["eyeglasses","dark_sunglasses","goggles","lab_coat","safety_vest","necktie","shirt","jeans","scarf","gloves","coat","socks","dress","kimono","sari","one-piece_swimsuit","briefs","shorts","bikini","womans_clothes","folding_hand_fan","purse","handbag","pouch","shopping_bags","school_satchel","thong_sandal","mans_shoe","athletic_shoe","hiking_boot","womans_flat_shoe","high_heel","sandal","ballet_shoes","boot","hair_pick","crown","womans_hat","tophat","mortar_board","billed_cap","military_helmet","helmet_with_white_cross","prayer_beads","lipstick","ring","gem","mute","speaker","sound","loud_sound","loudspeaker","mega","postal_horn","bell","no_bell","musical_score","musical_note","notes","studio_microphone","level_slider","control_knobs","microphone","headphones","radio","saxophone","accordion","guitar","musical_keyboard","trumpet","violin","banjo","drum_with_drumsticks","long_drum","maracas","flute","iphone","calling","phone","telephone_receiver","pager","fax","battery","low_battery","electric_plug","computer","desktop_computer","printer","keyboard","three_button_mouse","trackball","minidisc","floppy_disk","cd","dvd","abacus","movie_camera","film_frames","film_projector","clapper","tv","camera","camera_with_flash","video_camera","vhs","mag","mag_right","candle","bulb","flashlight","izakaya_lantern","diya_lamp","notebook_with_decorative_cover","closed_book","book","green_book","blue_book","orange_book","books","notebook","ledger","page_with_curl","scroll","page_facing_up","newspaper","rolled_up_newspaper","bookmark_tabs","bookmark","label","moneybag","coin","yen","dollar","euro","pound","money_with_wings","credit_card","receipt","chart","email","e-mail","incoming_envelope","envelope_with_arrow","outbox_tray","inbox_tray","package","mailbox","mailbox_closed","mailbox_with_mail","mailbox_with_no_mail","postbox","ballot_box_with_ballot","pencil2","black_nib","lower_left_fountain_pen","lower_left_ballpoint_pen","lower_left_paintbrush","lower_left_crayon","memo","briefcase","file_folder","open_file_folder","card_index_dividers","date","calendar","spiral_note_pad","spiral_calendar_pad","card_index","chart_with_upwards_trend","chart_with_downwards_trend","bar_chart","clipboard","pushpin","round_pushpin","paperclip","linked_paperclips","straight_ruler","triangular_ruler","scissors","card_file_box","file_cabinet","wastebasket","lock","unlock","lock_with_ink_pen","closed_lock_with_key","key","old_key","hammer","axe","pick","hammer_and_pick","hammer_and_wrench","dagger_knife","crossed_swords","bomb","boomerang","bow_and_arrow","shield","carpentry_saw","wrench","screwdriver","nut_and_bolt","gear","compression","scales","probing_cane","link","chains","hook","toolbox","magnet","ladder","alembic","test_tube","petri_dish","dna","microscope","telescope","satellite_antenna","syringe","drop_of_blood","pill","adhesive_bandage","crutch","stethoscope","x-ray","door","elevator","mirror","window","bed","couch_and_lamp","chair","toilet","plunger","shower","bathtub","mouse_trap","razor","lotion_bottle","safety_pin","broom","basket","roll_of_paper","bucket","soap","bubbles","toothbrush","sponge","fire_extinguisher","shopping_trolley","smoking","coffin","headstone","funeral_urn","nazar_amulet","hamsa","moyai","placard","identification_card"]},{id:"symbols",emojis:["atm","put_litter_in_its_place","potable_water","wheelchair","mens","womens","restroom","baby_symbol","wc","passport_control","customs","baggage_claim","left_luggage","warning","children_crossing","no_entry","no_entry_sign","no_bicycles","no_smoking","do_not_litter","non-potable_water","no_pedestrians","no_mobile_phones","underage","radioactive_sign","biohazard_sign","arrow_up","arrow_upper_right","arrow_right","arrow_lower_right","arrow_down","arrow_lower_left","arrow_left","arrow_upper_left","arrow_up_down","left_right_arrow","leftwards_arrow_with_hook","arrow_right_hook","arrow_heading_up","arrow_heading_down","arrows_clockwise","arrows_counterclockwise","back","end","on","soon","top","place_of_worship","atom_symbol","om_symbol","star_of_david","wheel_of_dharma","yin_yang","latin_cross","orthodox_cross","star_and_crescent","peace_symbol","menorah_with_nine_branches","six_pointed_star","khanda","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","ophiuchus","twisted_rightwards_arrows","repeat","repeat_one","arrow_forward","fast_forward","black_right_pointing_double_triangle_with_vertical_bar","black_right_pointing_triangle_with_double_vertical_bar","arrow_backward","rewind","black_left_pointing_double_triangle_with_vertical_bar","arrow_up_small","arrow_double_up","arrow_down_small","arrow_double_down","double_vertical_bar","black_square_for_stop","black_circle_for_record","eject","cinema","low_brightness","high_brightness","signal_strength","wireless","vibration_mode","mobile_phone_off","female_sign","male_sign","transgender_symbol","heavy_multiplication_x","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_equals_sign","infinity","bangbang","interrobang","question","grey_question","grey_exclamation","exclamation","wavy_dash","currency_exchange","heavy_dollar_sign","medical_symbol","recycle","fleur_de_lis","trident","name_badge","beginner","o","white_check_mark","ballot_box_with_check","heavy_check_mark","x","negative_squared_cross_mark","curly_loop","loop","part_alternation_mark","eight_spoked_asterisk","eight_pointed_black_star","sparkle","copyright","registered","tm","hash","keycap_star","zero","one","two","three","four","five","six","seven","eight","nine","keycap_ten","capital_abcd","abcd","1234","symbols","abc","a","ab","b","cl","cool","free","information_source","id","m","new","ng","o2","ok","parking","sos","up","vs","koko","sa","u6708","u6709","u6307","ideograph_advantage","u5272","u7121","u7981","accept","u7533","u5408","u7a7a","congratulations","secret","u55b6","u6e80","red_circle","large_orange_circle","large_yellow_circle","large_green_circle","large_blue_circle","large_purple_circle","large_brown_circle","black_circle","white_circle","large_red_square","large_orange_square","large_yellow_square","large_green_square","large_blue_square","large_purple_square","large_brown_square","black_large_square","white_large_square","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_small_square","white_small_square","large_orange_diamond","large_blue_diamond","small_orange_diamond","small_blue_diamond","small_red_triangle","small_red_triangle_down","diamond_shape_with_a_dot_inside","radio_button","white_square_button","black_square_button"]},{id:"flags",emojis:["checkered_flag","cn","crossed_flags","de","es","flag-ac","flag-ad","flag-ae","flag-af","flag-ag","flag-ai","flag-al","flag-am","flag-ao","flag-aq","flag-ar","flag-as","flag-at","flag-au","flag-aw","flag-ax","flag-az","flag-ba","flag-bb","flag-bd","flag-be","flag-bf","flag-bg","flag-bh","flag-bi","flag-bj","flag-bl","flag-bm","flag-bn","flag-bo","flag-bq","flag-br","flag-bs","flag-bt","flag-bv","flag-bw","flag-by","flag-bz","flag-ca","flag-cc","flag-cd","flag-cf","flag-cg","flag-ch","flag-ci","flag-ck","flag-cl","flag-cm","flag-co","flag-cp","flag-cr","flag-cu","flag-cv","flag-cw","flag-cx","flag-cy","flag-cz","flag-dg","flag-dj","flag-dk","flag-dm","flag-do","flag-dz","flag-ea","flag-ec","flag-ee","flag-eg","flag-eh","flag-england","flag-er","flag-et","flag-eu","flag-fi","flag-fj","flag-fk","flag-fm","flag-fo","flag-ga","flag-gd","flag-ge","flag-gf","flag-gg","flag-gh","flag-gi","flag-gl","flag-gm","flag-gn","flag-gp","flag-gq","flag-gr","flag-gs","flag-gt","flag-gu","flag-gw","flag-gy","flag-hk","flag-hm","flag-hn","flag-hr","flag-ht","flag-hu","flag-ic","flag-id","flag-ie","flag-il","flag-im","flag-in","flag-io","flag-iq","flag-ir","flag-is","flag-je","flag-jm","flag-jo","flag-ke","flag-kg","flag-kh","flag-ki","flag-km","flag-kn","flag-kp","flag-kw","flag-ky","flag-kz","flag-la","flag-lb","flag-lc","flag-li","flag-lk","flag-lr","flag-ls","flag-lt","flag-lu","flag-lv","flag-ly","flag-ma","flag-mc","flag-md","flag-me","flag-mf","flag-mg","flag-mh","flag-mk","flag-ml","flag-mm","flag-mn","flag-mo","flag-mp","flag-mq","flag-mr","flag-ms","flag-mt","flag-mu","flag-mv","flag-mw","flag-mx","flag-my","flag-mz","flag-na","flag-nc","flag-ne","flag-nf","flag-ng","flag-ni","flag-nl","flag-no","flag-np","flag-nr","flag-nu","flag-nz","flag-om","flag-pa","flag-pe","flag-pf","flag-pg","flag-ph","flag-pk","flag-pl","flag-pm","flag-pn","flag-pr","flag-ps","flag-pt","flag-pw","flag-py","flag-qa","flag-re","flag-ro","flag-rs","flag-rw","flag-sa","flag-sb","flag-sc","flag-scotland","flag-sd","flag-se","flag-sg","flag-sh","flag-si","flag-sj","flag-sk","flag-sl","flag-sm","flag-sn","flag-so","flag-sr","flag-ss","flag-st","flag-sv","flag-sx","flag-sy","flag-sz","flag-ta","flag-tc","flag-td","flag-tf","flag-tg","flag-th","flag-tj","flag-tk","flag-tl","flag-tm","flag-tn","flag-to","flag-tr","flag-tt","flag-tv","flag-tw","flag-tz","flag-ua","flag-ug","flag-um","flag-un","flag-uy","flag-uz","flag-va","flag-vc","flag-ve","flag-vg","flag-vi","flag-vn","flag-vu","flag-wales","flag-wf","flag-ws","flag-xk","flag-ye","flag-yt","flag-za","flag-zm","flag-zw","fr","gb","it","jp","kr","pirate_flag","rainbow-flag","ru","transgender_flag","triangular_flag_on_post","us","waving_black_flag","waving_white_flag"]}],emojis:{100:{id:"100",name:"Hundred Points",keywords:["100","score","perfect","numbers","century","exam","quiz","test","pass"],skins:[{unified:"1f4af",native:"💯"}],version:1},1234:{id:"1234",name:"Input Numbers",keywords:["1234","blue","square","1","2","3","4"],skins:[{unified:"1f522",native:"🔢"}],version:1},grinning:{id:"grinning",name:"Grinning Face",emoticons:[":D"],keywords:["smile","happy","joy",":D","grin"],skins:[{unified:"1f600",native:"😀"}],version:1},smiley:{id:"smiley",name:"Grinning Face with Big Eyes",emoticons:[":)","=)","=-)"],keywords:["smiley","happy","joy","haha",":D",":)","smile","funny"],skins:[{unified:"1f603",native:"😃"}],version:1},smile:{id:"smile",name:"Grinning Face with Smiling Eyes",emoticons:[":)","C:","c:",":D",":-D"],keywords:["smile","happy","joy","funny","haha","laugh","like",":D",":)"],skins:[{unified:"1f604",native:"😄"}],version:1},grin:{id:"grin",name:"Beaming Face with Smiling Eyes",keywords:["grin","happy","smile","joy","kawaii"],skins:[{unified:"1f601",native:"😁"}],version:1},laughing:{id:"laughing",name:"Grinning Squinting Face",emoticons:[":>",":->"],keywords:["laughing","satisfied","happy","joy","lol","haha","glad","XD","laugh"],skins:[{unified:"1f606",native:"😆"}],version:1},sweat_smile:{id:"sweat_smile",name:"Grinning Face with Sweat",keywords:["smile","hot","happy","laugh","relief"],skins:[{unified:"1f605",native:"😅"}],version:1},rolling_on_the_floor_laughing:{id:"rolling_on_the_floor_laughing",name:"Rolling on the Floor Laughing",keywords:["face","lol","haha","rofl"],skins:[{unified:"1f923",native:"🤣"}],version:3},joy:{id:"joy",name:"Face with Tears of Joy",keywords:["cry","weep","happy","happytears","haha"],skins:[{unified:"1f602",native:"😂"}],version:1},slightly_smiling_face:{id:"slightly_smiling_face",name:"Slightly Smiling Face",emoticons:[":)","(:",":-)"],keywords:["smile"],skins:[{unified:"1f642",native:"🙂"}],version:1},upside_down_face:{id:"upside_down_face",name:"Upside-Down Face",keywords:["upside","down","flipped","silly","smile"],skins:[{unified:"1f643",native:"🙃"}],version:1},melting_face:{id:"melting_face",name:"Melting Face",keywords:["hot","heat"],skins:[{unified:"1fae0",native:"🫠"}],version:14},wink:{id:"wink",name:"Winking Face",emoticons:[";)",";-)"],keywords:["wink","happy","mischievous","secret",";)","smile","eye"],skins:[{unified:"1f609",native:"😉"}],version:1},blush:{id:"blush",name:"Smiling Face with Smiling Eyes",emoticons:[":)"],keywords:["blush","smile","happy","flushed","crush","embarrassed","shy","joy"],skins:[{unified:"1f60a",native:"😊"}],version:1},innocent:{id:"innocent",name:"Smiling Face with Halo",keywords:["innocent","angel","heaven"],skins:[{unified:"1f607",native:"😇"}],version:1},smiling_face_with_3_hearts:{id:"smiling_face_with_3_hearts",name:"Smiling Face with Hearts",keywords:["3","love","like","affection","valentines","infatuation","crush","adore"],skins:[{unified:"1f970",native:"🥰"}],version:11},heart_eyes:{id:"heart_eyes",name:"Smiling Face with Heart-Eyes",keywords:["heart","eyes","love","like","affection","valentines","infatuation","crush"],skins:[{unified:"1f60d",native:"😍"}],version:1},"star-struck":{id:"star-struck",name:"Star-Struck",keywords:["star","struck","grinning","face","with","eyes","smile","starry"],skins:[{unified:"1f929",native:"🤩"}],version:5},kissing_heart:{id:"kissing_heart",name:"Face Blowing a Kiss",emoticons:[":*",":-*"],keywords:["kissing","heart","love","like","affection","valentines","infatuation"],skins:[{unified:"1f618",native:"😘"}],version:1},kissing:{id:"kissing",name:"Kissing Face",keywords:["love","like","3","valentines","infatuation","kiss"],skins:[{unified:"1f617",native:"😗"}],version:1},relaxed:{id:"relaxed",name:"Smiling Face",keywords:["relaxed","blush","massage","happiness"],skins:[{unified:"263a-fe0f",native:"☺️"}],version:1},kissing_closed_eyes:{id:"kissing_closed_eyes",name:"Kissing Face with Closed Eyes",keywords:["love","like","affection","valentines","infatuation","kiss"],skins:[{unified:"1f61a",native:"😚"}],version:1},kissing_smiling_eyes:{id:"kissing_smiling_eyes",name:"Kissing Face with Smiling Eyes",keywords:["affection","valentines","infatuation","kiss"],skins:[{unified:"1f619",native:"😙"}],version:1},smiling_face_with_tear:{id:"smiling_face_with_tear",name:"Smiling Face with Tear",keywords:["sad","cry","pretend"],skins:[{unified:"1f972",native:"🥲"}],version:13},yum:{id:"yum",name:"Face Savoring Food",keywords:["yum","happy","joy","tongue","smile","silly","yummy","nom","delicious","savouring"],skins:[{unified:"1f60b",native:"😋"}],version:1},stuck_out_tongue:{id:"stuck_out_tongue",name:"Face with Tongue",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["stuck","out","prank","childish","playful","mischievous","smile"],skins:[{unified:"1f61b",native:"😛"}],version:1},stuck_out_tongue_winking_eye:{id:"stuck_out_tongue_winking_eye",name:"Winking Face with Tongue",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["stuck","out","eye","prank","childish","playful","mischievous","smile","wink"],skins:[{unified:"1f61c",native:"😜"}],version:1},zany_face:{id:"zany_face",name:"Zany Face",keywords:["grinning","with","one","large","and","small","eye","goofy","crazy"],skins:[{unified:"1f92a",native:"🤪"}],version:5},stuck_out_tongue_closed_eyes:{id:"stuck_out_tongue_closed_eyes",name:"Squinting Face with Tongue",keywords:["stuck","out","closed","eyes","prank","playful","mischievous","smile"],skins:[{unified:"1f61d",native:"😝"}],version:1},money_mouth_face:{id:"money_mouth_face",name:"Money-Mouth Face",keywords:["money","mouth","rich","dollar"],skins:[{unified:"1f911",native:"🤑"}],version:1},hugging_face:{id:"hugging_face",name:"Hugging Face",keywords:["smile","hug"],skins:[{unified:"1f917",native:"🤗"}],version:1},face_with_hand_over_mouth:{id:"face_with_hand_over_mouth",name:"Face with Hand over Mouth",keywords:["smiling","eyes","and","covering","whoops","shock","surprise"],skins:[{unified:"1f92d",native:"🤭"}],version:5},face_with_open_eyes_and_hand_over_mouth:{id:"face_with_open_eyes_and_hand_over_mouth",name:"Face with Open Eyes and Hand over Mouth",keywords:["silence","secret","shock","surprise"],skins:[{unified:"1fae2",native:"🫢"}],version:14},face_with_peeking_eye:{id:"face_with_peeking_eye",name:"Face with Peeking Eye",keywords:["scared","frightening","embarrassing","shy"],skins:[{unified:"1fae3",native:"🫣"}],version:14},shushing_face:{id:"shushing_face",name:"Shushing Face",keywords:["with","finger","covering","closed","lips","quiet","shhh"],skins:[{unified:"1f92b",native:"🤫"}],version:5},thinking_face:{id:"thinking_face",name:"Thinking Face",keywords:["hmmm","think","consider"],skins:[{unified:"1f914",native:"🤔"}],version:1},saluting_face:{id:"saluting_face",name:"Saluting Face",keywords:["respect","salute"],skins:[{unified:"1fae1",native:"🫡"}],version:14},zipper_mouth_face:{id:"zipper_mouth_face",name:"Zipper-Mouth Face",keywords:["zipper","mouth","sealed","secret"],skins:[{unified:"1f910",native:"🤐"}],version:1},face_with_raised_eyebrow:{id:"face_with_raised_eyebrow",name:"Face with Raised Eyebrow",keywords:["one","distrust","scepticism","disapproval","disbelief","surprise"],skins:[{unified:"1f928",native:"🤨"}],version:5},neutral_face:{id:"neutral_face",name:"Neutral Face",emoticons:[":|",":-|"],keywords:["indifference","meh",":",""],skins:[{unified:"1f610",native:"😐"}],version:1},expressionless:{id:"expressionless",name:"Expressionless Face",emoticons:["-_-"],keywords:["indifferent","-","","meh","deadpan"],skins:[{unified:"1f611",native:"😑"}],version:1},no_mouth:{id:"no_mouth",name:"Face Without Mouth",keywords:["no","hellokitty"],skins:[{unified:"1f636",native:"😶"}],version:1},dotted_line_face:{id:"dotted_line_face",name:"Dotted Line Face",keywords:["invisible","lonely","isolation","depression"],skins:[{unified:"1fae5",native:"🫥"}],version:14},face_in_clouds:{id:"face_in_clouds",name:"Face in Clouds",keywords:["shower","steam","dream"],skins:[{unified:"1f636-200d-1f32b-fe0f",native:"😶🌫️"}],version:13.1},smirk:{id:"smirk",name:"Smirking Face",keywords:["smirk","smile","mean","prank","smug","sarcasm"],skins:[{unified:"1f60f",native:"😏"}],version:1},unamused:{id:"unamused",name:"Unamused Face",emoticons:[":("],keywords:["indifference","bored","straight","serious","sarcasm","unimpressed","skeptical","dubious","side","eye"],skins:[{unified:"1f612",native:"😒"}],version:1},face_with_rolling_eyes:{id:"face_with_rolling_eyes",name:"Face with Rolling Eyes",keywords:["eyeroll","frustrated"],skins:[{unified:"1f644",native:"🙄"}],version:1},grimacing:{id:"grimacing",name:"Grimacing Face",keywords:["grimace","teeth"],skins:[{unified:"1f62c",native:"😬"}],version:1},face_exhaling:{id:"face_exhaling",name:"Face Exhaling",keywords:["relieve","relief","tired","sigh"],skins:[{unified:"1f62e-200d-1f4a8",native:"😮💨"}],version:13.1},lying_face:{id:"lying_face",name:"Lying Face",keywords:["lie","pinocchio"],skins:[{unified:"1f925",native:"🤥"}],version:3},shaking_face:{id:"shaking_face",name:"Shaking Face",keywords:["dizzy","shock","blurry","earthquake"],skins:[{unified:"1fae8",native:"🫨"}],version:15},relieved:{id:"relieved",name:"Relieved Face",keywords:["relaxed","phew","massage","happiness"],skins:[{unified:"1f60c",native:"😌"}],version:1},pensive:{id:"pensive",name:"Pensive Face",keywords:["sad","depressed","upset"],skins:[{unified:"1f614",native:"😔"}],version:1},sleepy:{id:"sleepy",name:"Sleepy Face",keywords:["tired","rest","nap"],skins:[{unified:"1f62a",native:"😪"}],version:1},drooling_face:{id:"drooling_face",name:"Drooling Face",keywords:[],skins:[{unified:"1f924",native:"🤤"}],version:3},sleeping:{id:"sleeping",name:"Sleeping Face",keywords:["tired","sleepy","night","zzz"],skins:[{unified:"1f634",native:"😴"}],version:1},mask:{id:"mask",name:"Face with Medical Mask",keywords:["sick","ill","disease","covid"],skins:[{unified:"1f637",native:"😷"}],version:1},face_with_thermometer:{id:"face_with_thermometer",name:"Face with Thermometer",keywords:["sick","temperature","cold","fever","covid"],skins:[{unified:"1f912",native:"🤒"}],version:1},face_with_head_bandage:{id:"face_with_head_bandage",name:"Face with Head-Bandage",keywords:["head","bandage","injured","clumsy","hurt"],skins:[{unified:"1f915",native:"🤕"}],version:1},nauseated_face:{id:"nauseated_face",name:"Nauseated Face",keywords:["vomit","gross","green","sick","throw","up","ill"],skins:[{unified:"1f922",native:"🤢"}],version:3},face_vomiting:{id:"face_vomiting",name:"Face Vomiting",keywords:["with","open","mouth","sick"],skins:[{unified:"1f92e",native:"🤮"}],version:5},sneezing_face:{id:"sneezing_face",name:"Sneezing Face",keywords:["gesundheit","sneeze","sick","allergy"],skins:[{unified:"1f927",native:"🤧"}],version:3},hot_face:{id:"hot_face",name:"Hot Face",keywords:["feverish","heat","red","sweating"],skins:[{unified:"1f975",native:"🥵"}],version:11},cold_face:{id:"cold_face",name:"Cold Face",keywords:["blue","freezing","frozen","frostbite","icicles"],skins:[{unified:"1f976",native:"🥶"}],version:11},woozy_face:{id:"woozy_face",name:"Woozy Face",keywords:["dizzy","intoxicated","tipsy","wavy"],skins:[{unified:"1f974",native:"🥴"}],version:11},dizzy_face:{id:"dizzy_face",name:"Dizzy Face",keywords:["spent","unconscious","xox"],skins:[{unified:"1f635",native:"😵"}],version:1},face_with_spiral_eyes:{id:"face_with_spiral_eyes",name:"Face with Spiral Eyes",keywords:["sick","ill","confused","nauseous","nausea"],skins:[{unified:"1f635-200d-1f4ab",native:"😵💫"}],version:13.1},exploding_head:{id:"exploding_head",name:"Exploding Head",keywords:["shocked","face","with","mind","blown"],skins:[{unified:"1f92f",native:"🤯"}],version:5},face_with_cowboy_hat:{id:"face_with_cowboy_hat",name:"Cowboy Hat Face",keywords:["with","cowgirl"],skins:[{unified:"1f920",native:"🤠"}],version:3},partying_face:{id:"partying_face",name:"Partying Face",keywords:["celebration","woohoo"],skins:[{unified:"1f973",native:"🥳"}],version:11},disguised_face:{id:"disguised_face",name:"Disguised Face",keywords:["pretent","brows","glasses","moustache"],skins:[{unified:"1f978",native:"🥸"}],version:13},sunglasses:{id:"sunglasses",name:"Smiling Face with Sunglasses",emoticons:["8)"],keywords:["cool","smile","summer","beach","sunglass"],skins:[{unified:"1f60e",native:"😎"}],version:1},nerd_face:{id:"nerd_face",name:"Nerd Face",keywords:["nerdy","geek","dork"],skins:[{unified:"1f913",native:"🤓"}],version:1},face_with_monocle:{id:"face_with_monocle",name:"Face with Monocle",keywords:["stuffy","wealthy"],skins:[{unified:"1f9d0",native:"🧐"}],version:5},confused:{id:"confused",name:"Confused Face",emoticons:[":\\",":-\\",":/",":-/"],keywords:["indifference","huh","weird","hmmm",":/"],skins:[{unified:"1f615",native:"😕"}],version:1},face_with_diagonal_mouth:{id:"face_with_diagonal_mouth",name:"Face with Diagonal Mouth",keywords:["skeptic","confuse","frustrated","indifferent"],skins:[{unified:"1fae4",native:"🫤"}],version:14},worried:{id:"worried",name:"Worried Face",keywords:["concern","nervous",":("],skins:[{unified:"1f61f",native:"😟"}],version:1},slightly_frowning_face:{id:"slightly_frowning_face",name:"Slightly Frowning Face",keywords:["disappointed","sad","upset"],skins:[{unified:"1f641",native:"🙁"}],version:1},white_frowning_face:{id:"white_frowning_face",name:"Frowning Face",keywords:["white","sad","upset","frown"],skins:[{unified:"2639-fe0f",native:"☹️"}],version:1},open_mouth:{id:"open_mouth",name:"Face with Open Mouth",emoticons:[":o",":-o",":O",":-O"],keywords:["surprise","impressed","wow","whoa",":O"],skins:[{unified:"1f62e",native:"😮"}],version:1},hushed:{id:"hushed",name:"Hushed Face",keywords:["woo","shh"],skins:[{unified:"1f62f",native:"😯"}],version:1},astonished:{id:"astonished",name:"Astonished Face",keywords:["xox","surprised","poisoned"],skins:[{unified:"1f632",native:"😲"}],version:1},flushed:{id:"flushed",name:"Flushed Face",keywords:["blush","shy","flattered"],skins:[{unified:"1f633",native:"😳"}],version:1},pleading_face:{id:"pleading_face",name:"Pleading Face",keywords:["begging","mercy","cry","tears","sad","grievance"],skins:[{unified:"1f97a",native:"🥺"}],version:11},face_holding_back_tears:{id:"face_holding_back_tears",name:"Face Holding Back Tears",keywords:["touched","gratitude","cry"],skins:[{unified:"1f979",native:"🥹"}],version:14},frowning:{id:"frowning",name:"Frowning Face with Open Mouth",keywords:["aw","what"],skins:[{unified:"1f626",native:"😦"}],version:1},anguished:{id:"anguished",name:"Anguished Face",emoticons:["D:"],keywords:["stunned","nervous"],skins:[{unified:"1f627",native:"😧"}],version:1},fearful:{id:"fearful",name:"Fearful Face",keywords:["scared","terrified","nervous"],skins:[{unified:"1f628",native:"😨"}],version:1},cold_sweat:{id:"cold_sweat",name:"Anxious Face with Sweat",keywords:["cold","nervous"],skins:[{unified:"1f630",native:"😰"}],version:1},disappointed_relieved:{id:"disappointed_relieved",name:"Sad but Relieved Face",keywords:["disappointed","phew","sweat","nervous"],skins:[{unified:"1f625",native:"😥"}],version:1},cry:{id:"cry",name:"Crying Face",emoticons:[":'("],keywords:["cry","tears","sad","depressed","upset",":'("],skins:[{unified:"1f622",native:"😢"}],version:1},sob:{id:"sob",name:"Loudly Crying Face",emoticons:[":'("],keywords:["sob","cry","tears","sad","upset","depressed"],skins:[{unified:"1f62d",native:"😭"}],version:1},scream:{id:"scream",name:"Face Screaming in Fear",keywords:["scream","munch","scared","omg"],skins:[{unified:"1f631",native:"😱"}],version:1},confounded:{id:"confounded",name:"Confounded Face",keywords:["confused","sick","unwell","oops",":S"],skins:[{unified:"1f616",native:"😖"}],version:1},persevere:{id:"persevere",name:"Persevering Face",keywords:["persevere","sick","no","upset","oops"],skins:[{unified:"1f623",native:"😣"}],version:1},disappointed:{id:"disappointed",name:"Disappointed Face",emoticons:["):",":(",":-("],keywords:["sad","upset","depressed",":("],skins:[{unified:"1f61e",native:"😞"}],version:1},sweat:{id:"sweat",name:"Face with Cold Sweat",keywords:["downcast","hot","sad","tired","exercise"],skins:[{unified:"1f613",native:"😓"}],version:1},weary:{id:"weary",name:"Weary Face",keywords:["tired","sleepy","sad","frustrated","upset"],skins:[{unified:"1f629",native:"😩"}],version:1},tired_face:{id:"tired_face",name:"Tired Face",keywords:["sick","whine","upset","frustrated"],skins:[{unified:"1f62b",native:"😫"}],version:1},yawning_face:{id:"yawning_face",name:"Yawning Face",keywords:["tired","sleepy"],skins:[{unified:"1f971",native:"🥱"}],version:12},triumph:{id:"triumph",name:"Face with Look of Triumph",keywords:["steam","from","nose","gas","phew","proud","pride"],skins:[{unified:"1f624",native:"😤"}],version:1},rage:{id:"rage",name:"Pouting Face",keywords:["rage","angry","mad","hate","despise"],skins:[{unified:"1f621",native:"😡"}],version:1},angry:{id:"angry",name:"Angry Face",emoticons:[">:(",">:-("],keywords:["mad","annoyed","frustrated"],skins:[{unified:"1f620",native:"😠"}],version:1},face_with_symbols_on_mouth:{id:"face_with_symbols_on_mouth",name:"Face with Symbols on Mouth",keywords:["serious","covering","swearing","cursing","cussing","profanity","expletive"],skins:[{unified:"1f92c",native:"🤬"}],version:5},smiling_imp:{id:"smiling_imp",name:"Smiling Face with Horns",keywords:["imp","devil"],skins:[{unified:"1f608",native:"😈"}],version:1},imp:{id:"imp",name:"Imp",keywords:["angry","face","with","horns","devil"],skins:[{unified:"1f47f",native:"👿"}],version:1},skull:{id:"skull",name:"Skull",keywords:["dead","skeleton","creepy","death"],skins:[{unified:"1f480",native:"💀"}],version:1},skull_and_crossbones:{id:"skull_and_crossbones",name:"Skull and Crossbones",keywords:["poison","danger","deadly","scary","death","pirate","evil"],skins:[{unified:"2620-fe0f",native:"☠️"}],version:1},hankey:{id:"hankey",name:"Pile of Poo",keywords:["hankey","poop","shit","shitface","fail","turd"],skins:[{unified:"1f4a9",native:"💩"}],version:1},clown_face:{id:"clown_face",name:"Clown Face",keywords:[],skins:[{unified:"1f921",native:"🤡"}],version:3},japanese_ogre:{id:"japanese_ogre",name:"Ogre",keywords:["japanese","monster","red","mask","halloween","scary","creepy","devil","demon"],skins:[{unified:"1f479",native:"👹"}],version:1},japanese_goblin:{id:"japanese_goblin",name:"Goblin",keywords:["japanese","red","evil","mask","monster","scary","creepy"],skins:[{unified:"1f47a",native:"👺"}],version:1},ghost:{id:"ghost",name:"Ghost",keywords:["halloween","spooky","scary"],skins:[{unified:"1f47b",native:"👻"}],version:1},alien:{id:"alien",name:"Alien",keywords:["UFO","paul","weird","outer","space"],skins:[{unified:"1f47d",native:"👽"}],version:1},space_invader:{id:"space_invader",name:"Alien Monster",keywords:["space","invader","game","arcade","play"],skins:[{unified:"1f47e",native:"👾"}],version:1},robot_face:{id:"robot_face",name:"Robot",keywords:["face","computer","machine","bot"],skins:[{unified:"1f916",native:"🤖"}],version:1},smiley_cat:{id:"smiley_cat",name:"Grinning Cat",keywords:["smiley","animal","cats","happy","smile"],skins:[{unified:"1f63a",native:"😺"}],version:1},smile_cat:{id:"smile_cat",name:"Grinning Cat with Smiling Eyes",keywords:["smile","animal","cats"],skins:[{unified:"1f638",native:"😸"}],version:1},joy_cat:{id:"joy_cat",name:"Cat with Tears of Joy",keywords:["animal","cats","haha","happy"],skins:[{unified:"1f639",native:"😹"}],version:1},heart_eyes_cat:{id:"heart_eyes_cat",name:"Smiling Cat with Heart-Eyes",keywords:["heart","eyes","animal","love","like","affection","cats","valentines"],skins:[{unified:"1f63b",native:"😻"}],version:1},smirk_cat:{id:"smirk_cat",name:"Cat with Wry Smile",keywords:["smirk","animal","cats"],skins:[{unified:"1f63c",native:"😼"}],version:1},kissing_cat:{id:"kissing_cat",name:"Kissing Cat",keywords:["animal","cats","kiss"],skins:[{unified:"1f63d",native:"😽"}],version:1},scream_cat:{id:"scream_cat",name:"Weary Cat",keywords:["scream","animal","cats","munch","scared"],skins:[{unified:"1f640",native:"🙀"}],version:1},crying_cat_face:{id:"crying_cat_face",name:"Crying Cat",keywords:["face","animal","tears","weep","sad","cats","upset","cry"],skins:[{unified:"1f63f",native:"😿"}],version:1},pouting_cat:{id:"pouting_cat",name:"Pouting Cat",keywords:["animal","cats"],skins:[{unified:"1f63e",native:"😾"}],version:1},see_no_evil:{id:"see_no_evil",name:"See-No-Evil Monkey",keywords:["see","no","evil","animal","nature","haha"],skins:[{unified:"1f648",native:"🙈"}],version:1},hear_no_evil:{id:"hear_no_evil",name:"Hear-No-Evil Monkey",keywords:["hear","no","evil","animal","nature"],skins:[{unified:"1f649",native:"🙉"}],version:1},speak_no_evil:{id:"speak_no_evil",name:"Speak-No-Evil Monkey",keywords:["speak","no","evil","animal","nature","omg"],skins:[{unified:"1f64a",native:"🙊"}],version:1},love_letter:{id:"love_letter",name:"Love Letter",keywords:["email","like","affection","envelope","valentines"],skins:[{unified:"1f48c",native:"💌"}],version:1},cupid:{id:"cupid",name:"Heart with Arrow",keywords:["cupid","love","like","affection","valentines"],skins:[{unified:"1f498",native:"💘"}],version:1},gift_heart:{id:"gift_heart",name:"Heart with Ribbon",keywords:["gift","love","valentines"],skins:[{unified:"1f49d",native:"💝"}],version:1},sparkling_heart:{id:"sparkling_heart",name:"Sparkling Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f496",native:"💖"}],version:1},heartpulse:{id:"heartpulse",name:"Growing Heart",keywords:["heartpulse","like","love","affection","valentines","pink"],skins:[{unified:"1f497",native:"💗"}],version:1},heartbeat:{id:"heartbeat",name:"Beating Heart",keywords:["heartbeat","love","like","affection","valentines","pink"],skins:[{unified:"1f493",native:"💓"}],version:1},revolving_hearts:{id:"revolving_hearts",name:"Revolving Hearts",keywords:["love","like","affection","valentines"],skins:[{unified:"1f49e",native:"💞"}],version:1},two_hearts:{id:"two_hearts",name:"Two Hearts",keywords:["love","like","affection","valentines","heart"],skins:[{unified:"1f495",native:"💕"}],version:1},heart_decoration:{id:"heart_decoration",name:"Heart Decoration",keywords:["purple","square","love","like"],skins:[{unified:"1f49f",native:"💟"}],version:1},heavy_heart_exclamation_mark_ornament:{id:"heavy_heart_exclamation_mark_ornament",name:"Heart Exclamation",keywords:["heavy","mark","ornament","decoration","love"],skins:[{unified:"2763-fe0f",native:"❣️"}],version:1},broken_heart:{id:"broken_heart",name:"Broken Heart",emoticons:["</3"],keywords:["sad","sorry","break","heartbreak"],skins:[{unified:"1f494",native:"💔"}],version:1},heart_on_fire:{id:"heart_on_fire",name:"Heart on Fire",keywords:["passionate","enthusiastic"],skins:[{unified:"2764-fe0f-200d-1f525",native:"❤️🔥"}],version:13.1},mending_heart:{id:"mending_heart",name:"Mending Heart",keywords:["broken","bandage","wounded"],skins:[{unified:"2764-fe0f-200d-1fa79",native:"❤️🩹"}],version:13.1},heart:{id:"heart",name:"Red Heart",emoticons:["<3"],keywords:["love","like","valentines"],skins:[{unified:"2764-fe0f",native:"❤️"}],version:1},pink_heart:{id:"pink_heart",name:"Pink Heart",keywords:["valentines"],skins:[{unified:"1fa77",native:"🩷"}],version:15},orange_heart:{id:"orange_heart",name:"Orange Heart",keywords:["love","like","affection","valentines"],skins:[{unified:"1f9e1",native:"🧡"}],version:5},yellow_heart:{id:"yellow_heart",name:"Yellow Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f49b",native:"💛"}],version:1},green_heart:{id:"green_heart",name:"Green Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f49a",native:"💚"}],version:1},blue_heart:{id:"blue_heart",name:"Blue Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f499",native:"💙"}],version:1},light_blue_heart:{id:"light_blue_heart",name:"Light Blue Heart",keywords:["ice","baby"],skins:[{unified:"1fa75",native:"🩵"}],version:15},purple_heart:{id:"purple_heart",name:"Purple Heart",emoticons:["<3"],keywords:["love","like","affection","valentines"],skins:[{unified:"1f49c",native:"💜"}],version:1},brown_heart:{id:"brown_heart",name:"Brown Heart",keywords:["coffee"],skins:[{unified:"1f90e",native:"🤎"}],version:12},black_heart:{id:"black_heart",name:"Black Heart",keywords:["evil"],skins:[{unified:"1f5a4",native:"🖤"}],version:3},grey_heart:{id:"grey_heart",name:"Grey Heart",keywords:["silver","monochrome"],skins:[{unified:"1fa76",native:"🩶"}],version:15},white_heart:{id:"white_heart",name:"White Heart",keywords:["pure"],skins:[{unified:"1f90d",native:"🤍"}],version:12},kiss:{id:"kiss",name:"Kiss Mark",keywords:["face","lips","love","like","affection","valentines"],skins:[{unified:"1f48b",native:"💋"}],version:1},anger:{id:"anger",name:"Anger Symbol",keywords:["angry","mad"],skins:[{unified:"1f4a2",native:"💢"}],version:1},boom:{id:"boom",name:"Collision",keywords:["boom","bomb","explode","explosion","blown"],skins:[{unified:"1f4a5",native:"💥"}],version:1},dizzy:{id:"dizzy",name:"Dizzy",keywords:["star","sparkle","shoot","magic"],skins:[{unified:"1f4ab",native:"💫"}],version:1},sweat_drops:{id:"sweat_drops",name:"Sweat Droplets",keywords:["drops","water","drip","oops"],skins:[{unified:"1f4a6",native:"💦"}],version:1},dash:{id:"dash",name:"Dash Symbol",keywords:["dashing","away","wind","air","fast","shoo","fart","smoke","puff"],skins:[{unified:"1f4a8",native:"💨"}],version:1},hole:{id:"hole",name:"Hole",keywords:["embarrassing"],skins:[{unified:"1f573-fe0f",native:"🕳️"}],version:1},speech_balloon:{id:"speech_balloon",name:"Speech Balloon",keywords:["bubble","words","message","talk","chatting"],skins:[{unified:"1f4ac",native:"💬"}],version:1},"eye-in-speech-bubble":{id:"eye-in-speech-bubble",name:"Eye in Speech Bubble",keywords:["in-speech-bubble","info"],skins:[{unified:"1f441-fe0f-200d-1f5e8-fe0f",native:"👁️🗨️"}],version:2},left_speech_bubble:{id:"left_speech_bubble",name:"Left Speech Bubble",keywords:["words","message","talk","chatting"],skins:[{unified:"1f5e8-fe0f",native:"🗨️"}],version:2},right_anger_bubble:{id:"right_anger_bubble",name:"Right Anger Bubble",keywords:["caption","speech","thinking","mad"],skins:[{unified:"1f5ef-fe0f",native:"🗯️"}],version:1},thought_balloon:{id:"thought_balloon",name:"Thought Balloon",keywords:["bubble","cloud","speech","thinking","dream"],skins:[{unified:"1f4ad",native:"💭"}],version:1},zzz:{id:"zzz",name:"Zzz",keywords:["sleepy","tired","dream"],skins:[{unified:"1f4a4",native:"💤"}],version:1},wave:{id:"wave",name:"Waving Hand",keywords:["wave","hands","gesture","goodbye","solong","farewell","hello","hi","palm"],skins:[{unified:"1f44b",native:"👋"},{unified:"1f44b-1f3fb",native:"👋🏻"},{unified:"1f44b-1f3fc",native:"👋🏼"},{unified:"1f44b-1f3fd",native:"👋🏽"},{unified:"1f44b-1f3fe",native:"👋🏾"},{unified:"1f44b-1f3ff",native:"👋🏿"}],version:1},raised_back_of_hand:{id:"raised_back_of_hand",name:"Raised Back of Hand",keywords:["fingers","backhand"],skins:[{unified:"1f91a",native:"🤚"},{unified:"1f91a-1f3fb",native:"🤚🏻"},{unified:"1f91a-1f3fc",native:"🤚🏼"},{unified:"1f91a-1f3fd",native:"🤚🏽"},{unified:"1f91a-1f3fe",native:"🤚🏾"},{unified:"1f91a-1f3ff",native:"🤚🏿"}],version:3},raised_hand_with_fingers_splayed:{id:"raised_hand_with_fingers_splayed",name:"Hand with Fingers Splayed",keywords:["raised","palm"],skins:[{unified:"1f590-fe0f",native:"🖐️"},{unified:"1f590-1f3fb",native:"🖐🏻"},{unified:"1f590-1f3fc",native:"🖐🏼"},{unified:"1f590-1f3fd",native:"🖐🏽"},{unified:"1f590-1f3fe",native:"🖐🏾"},{unified:"1f590-1f3ff",native:"🖐🏿"}],version:1},hand:{id:"hand",name:"Raised Hand",keywords:["fingers","stop","highfive","high","five","palm","ban"],skins:[{unified:"270b",native:"✋"},{unified:"270b-1f3fb",native:"✋🏻"},{unified:"270b-1f3fc",native:"✋🏼"},{unified:"270b-1f3fd",native:"✋🏽"},{unified:"270b-1f3fe",native:"✋🏾"},{unified:"270b-1f3ff",native:"✋🏿"}],version:1},"spock-hand":{id:"spock-hand",name:"Vulcan Salute",keywords:["spock","hand","fingers","star","trek"],skins:[{unified:"1f596",native:"🖖"},{unified:"1f596-1f3fb",native:"🖖🏻"},{unified:"1f596-1f3fc",native:"🖖🏼"},{unified:"1f596-1f3fd",native:"🖖🏽"},{unified:"1f596-1f3fe",native:"🖖🏾"},{unified:"1f596-1f3ff",native:"🖖🏿"}],version:1},rightwards_hand:{id:"rightwards_hand",name:"Rightwards Hand",keywords:["palm","offer"],skins:[{unified:"1faf1",native:"🫱"},{unified:"1faf1-1f3fb",native:"🫱🏻"},{unified:"1faf1-1f3fc",native:"🫱🏼"},{unified:"1faf1-1f3fd",native:"🫱🏽"},{unified:"1faf1-1f3fe",native:"🫱🏾"},{unified:"1faf1-1f3ff",native:"🫱🏿"}],version:14},leftwards_hand:{id:"leftwards_hand",name:"Leftwards Hand",keywords:["palm","offer"],skins:[{unified:"1faf2",native:"🫲"},{unified:"1faf2-1f3fb",native:"🫲🏻"},{unified:"1faf2-1f3fc",native:"🫲🏼"},{unified:"1faf2-1f3fd",native:"🫲🏽"},{unified:"1faf2-1f3fe",native:"🫲🏾"},{unified:"1faf2-1f3ff",native:"🫲🏿"}],version:14},palm_down_hand:{id:"palm_down_hand",name:"Palm Down Hand",keywords:["drop"],skins:[{unified:"1faf3",native:"🫳"},{unified:"1faf3-1f3fb",native:"🫳🏻"},{unified:"1faf3-1f3fc",native:"🫳🏼"},{unified:"1faf3-1f3fd",native:"🫳🏽"},{unified:"1faf3-1f3fe",native:"🫳🏾"},{unified:"1faf3-1f3ff",native:"🫳🏿"}],version:14},palm_up_hand:{id:"palm_up_hand",name:"Palm Up Hand",keywords:["lift","offer","demand"],skins:[{unified:"1faf4",native:"🫴"},{unified:"1faf4-1f3fb",native:"🫴🏻"},{unified:"1faf4-1f3fc",native:"🫴🏼"},{unified:"1faf4-1f3fd",native:"🫴🏽"},{unified:"1faf4-1f3fe",native:"🫴🏾"},{unified:"1faf4-1f3ff",native:"🫴🏿"}],version:14},leftwards_pushing_hand:{id:"leftwards_pushing_hand",name:"Leftwards Pushing Hand",keywords:["highfive","high","five","pressing","stop"],skins:[{unified:"1faf7",native:"🫷"},{unified:"1faf7-1f3fb",native:"🫷🏻"},{unified:"1faf7-1f3fc",native:"🫷🏼"},{unified:"1faf7-1f3fd",native:"🫷🏽"},{unified:"1faf7-1f3fe",native:"🫷🏾"},{unified:"1faf7-1f3ff",native:"🫷🏿"}],version:15},rightwards_pushing_hand:{id:"rightwards_pushing_hand",name:"Rightwards Pushing Hand",keywords:["highfive","high","five","pressing","stop"],skins:[{unified:"1faf8",native:"🫸"},{unified:"1faf8-1f3fb",native:"🫸🏻"},{unified:"1faf8-1f3fc",native:"🫸🏼"},{unified:"1faf8-1f3fd",native:"🫸🏽"},{unified:"1faf8-1f3fe",native:"🫸🏾"},{unified:"1faf8-1f3ff",native:"🫸🏿"}],version:15},ok_hand:{id:"ok_hand",name:"Ok Hand",keywords:["fingers","limbs","perfect","okay"],skins:[{unified:"1f44c",native:"👌"},{unified:"1f44c-1f3fb",native:"👌🏻"},{unified:"1f44c-1f3fc",native:"👌🏼"},{unified:"1f44c-1f3fd",native:"👌🏽"},{unified:"1f44c-1f3fe",native:"👌🏾"},{unified:"1f44c-1f3ff",native:"👌🏿"}],version:1},pinched_fingers:{id:"pinched_fingers",name:"Pinched Fingers",keywords:["size","tiny","small"],skins:[{unified:"1f90c",native:"🤌"},{unified:"1f90c-1f3fb",native:"🤌🏻"},{unified:"1f90c-1f3fc",native:"🤌🏼"},{unified:"1f90c-1f3fd",native:"🤌🏽"},{unified:"1f90c-1f3fe",native:"🤌🏾"},{unified:"1f90c-1f3ff",native:"🤌🏿"}],version:13},pinching_hand:{id:"pinching_hand",name:"Pinching Hand",keywords:["tiny","small","size"],skins:[{unified:"1f90f",native:"🤏"},{unified:"1f90f-1f3fb",native:"🤏🏻"},{unified:"1f90f-1f3fc",native:"🤏🏼"},{unified:"1f90f-1f3fd",native:"🤏🏽"},{unified:"1f90f-1f3fe",native:"🤏🏾"},{unified:"1f90f-1f3ff",native:"🤏🏿"}],version:12},v:{id:"v",name:"Victory Hand",keywords:["v","fingers","ohyeah","peace","two"],skins:[{unified:"270c-fe0f",native:"✌️"},{unified:"270c-1f3fb",native:"✌🏻"},{unified:"270c-1f3fc",native:"✌🏼"},{unified:"270c-1f3fd",native:"✌🏽"},{unified:"270c-1f3fe",native:"✌🏾"},{unified:"270c-1f3ff",native:"✌🏿"}],version:1},crossed_fingers:{id:"crossed_fingers",name:"Crossed Fingers",keywords:["hand","with","index","and","middle","good","lucky"],skins:[{unified:"1f91e",native:"🤞"},{unified:"1f91e-1f3fb",native:"🤞🏻"},{unified:"1f91e-1f3fc",native:"🤞🏼"},{unified:"1f91e-1f3fd",native:"🤞🏽"},{unified:"1f91e-1f3fe",native:"🤞🏾"},{unified:"1f91e-1f3ff",native:"🤞🏿"}],version:3},hand_with_index_finger_and_thumb_crossed:{id:"hand_with_index_finger_and_thumb_crossed",name:"Hand with Index Finger and Thumb Crossed",keywords:["heart","love","money","expensive"],skins:[{unified:"1faf0",native:"🫰"},{unified:"1faf0-1f3fb",native:"🫰🏻"},{unified:"1faf0-1f3fc",native:"🫰🏼"},{unified:"1faf0-1f3fd",native:"🫰🏽"},{unified:"1faf0-1f3fe",native:"🫰🏾"},{unified:"1faf0-1f3ff",native:"🫰🏿"}],version:14},i_love_you_hand_sign:{id:"i_love_you_hand_sign",name:"Love-You Gesture",keywords:["i","love","you","hand","sign","fingers"],skins:[{unified:"1f91f",native:"🤟"},{unified:"1f91f-1f3fb",native:"🤟🏻"},{unified:"1f91f-1f3fc",native:"🤟🏼"},{unified:"1f91f-1f3fd",native:"🤟🏽"},{unified:"1f91f-1f3fe",native:"🤟🏾"},{unified:"1f91f-1f3ff",native:"🤟🏿"}],version:5},the_horns:{id:"the_horns",name:"Sign of the Horns",keywords:["hand","fingers","evil","eye","rock","on"],skins:[{unified:"1f918",native:"🤘"},{unified:"1f918-1f3fb",native:"🤘🏻"},{unified:"1f918-1f3fc",native:"🤘🏼"},{unified:"1f918-1f3fd",native:"🤘🏽"},{unified:"1f918-1f3fe",native:"🤘🏾"},{unified:"1f918-1f3ff",native:"🤘🏿"}],version:1},call_me_hand:{id:"call_me_hand",name:"Call Me Hand",keywords:["hands","gesture","shaka"],skins:[{unified:"1f919",native:"🤙"},{unified:"1f919-1f3fb",native:"🤙🏻"},{unified:"1f919-1f3fc",native:"🤙🏼"},{unified:"1f919-1f3fd",native:"🤙🏽"},{unified:"1f919-1f3fe",native:"🤙🏾"},{unified:"1f919-1f3ff",native:"🤙🏿"}],version:3},point_left:{id:"point_left",name:"Backhand Index Pointing Left",keywords:["point","direction","fingers","hand"],skins:[{unified:"1f448",native:"👈"},{unified:"1f448-1f3fb",native:"👈🏻"},{unified:"1f448-1f3fc",native:"👈🏼"},{unified:"1f448-1f3fd",native:"👈🏽"},{unified:"1f448-1f3fe",native:"👈🏾"},{unified:"1f448-1f3ff",native:"👈🏿"}],version:1},point_right:{id:"point_right",name:"Backhand Index Pointing Right",keywords:["point","fingers","hand","direction"],skins:[{unified:"1f449",native:"👉"},{unified:"1f449-1f3fb",native:"👉🏻"},{unified:"1f449-1f3fc",native:"👉🏼"},{unified:"1f449-1f3fd",native:"👉🏽"},{unified:"1f449-1f3fe",native:"👉🏾"},{unified:"1f449-1f3ff",native:"👉🏿"}],version:1},point_up_2:{id:"point_up_2",name:"Backhand Index Pointing Up",keywords:["point","2","fingers","hand","direction"],skins:[{unified:"1f446",native:"👆"},{unified:"1f446-1f3fb",native:"👆🏻"},{unified:"1f446-1f3fc",native:"👆🏼"},{unified:"1f446-1f3fd",native:"👆🏽"},{unified:"1f446-1f3fe",native:"👆🏾"},{unified:"1f446-1f3ff",native:"👆🏿"}],version:1},middle_finger:{id:"middle_finger",name:"Middle Finger",keywords:["reversed","hand","with","extended","fingers","rude","flipping"],skins:[{unified:"1f595",native:"🖕"},{unified:"1f595-1f3fb",native:"🖕🏻"},{unified:"1f595-1f3fc",native:"🖕🏼"},{unified:"1f595-1f3fd",native:"🖕🏽"},{unified:"1f595-1f3fe",native:"🖕🏾"},{unified:"1f595-1f3ff",native:"🖕🏿"}],version:1},point_down:{id:"point_down",name:"Backhand Index Pointing Down",keywords:["point","fingers","hand","direction"],skins:[{unified:"1f447",native:"👇"},{unified:"1f447-1f3fb",native:"👇🏻"},{unified:"1f447-1f3fc",native:"👇🏼"},{unified:"1f447-1f3fd",native:"👇🏽"},{unified:"1f447-1f3fe",native:"👇🏾"},{unified:"1f447-1f3ff",native:"👇🏿"}],version:1},point_up:{id:"point_up",name:"Index Pointing Up",keywords:["point","hand","fingers","direction"],skins:[{unified:"261d-fe0f",native:"☝️"},{unified:"261d-1f3fb",native:"☝🏻"},{unified:"261d-1f3fc",native:"☝🏼"},{unified:"261d-1f3fd",native:"☝🏽"},{unified:"261d-1f3fe",native:"☝🏾"},{unified:"261d-1f3ff",native:"☝🏿"}],version:1},index_pointing_at_the_viewer:{id:"index_pointing_at_the_viewer",name:"Index Pointing at the Viewer",keywords:["you","recruit"],skins:[{unified:"1faf5",native:"🫵"},{unified:"1faf5-1f3fb",native:"🫵🏻"},{unified:"1faf5-1f3fc",native:"🫵🏼"},{unified:"1faf5-1f3fd",native:"🫵🏽"},{unified:"1faf5-1f3fe",native:"🫵🏾"},{unified:"1faf5-1f3ff",native:"🫵🏿"}],version:14},"+1":{id:"+1",name:"Thumbs Up",keywords:["+1","thumbsup","yes","awesome","good","agree","accept","cool","hand","like"],skins:[{unified:"1f44d",native:"👍"},{unified:"1f44d-1f3fb",native:"👍🏻"},{unified:"1f44d-1f3fc",native:"👍🏼"},{unified:"1f44d-1f3fd",native:"👍🏽"},{unified:"1f44d-1f3fe",native:"👍🏾"},{unified:"1f44d-1f3ff",native:"👍🏿"}],version:1},"-1":{id:"-1",name:"Thumbs Down",keywords:["-1","thumbsdown","no","dislike","hand"],skins:[{unified:"1f44e",native:"👎"},{unified:"1f44e-1f3fb",native:"👎🏻"},{unified:"1f44e-1f3fc",native:"👎🏼"},{unified:"1f44e-1f3fd",native:"👎🏽"},{unified:"1f44e-1f3fe",native:"👎🏾"},{unified:"1f44e-1f3ff",native:"👎🏿"}],version:1},fist:{id:"fist",name:"Raised Fist",keywords:["fingers","hand","grasp"],skins:[{unified:"270a",native:"✊"},{unified:"270a-1f3fb",native:"✊🏻"},{unified:"270a-1f3fc",native:"✊🏼"},{unified:"270a-1f3fd",native:"✊🏽"},{unified:"270a-1f3fe",native:"✊🏾"},{unified:"270a-1f3ff",native:"✊🏿"}],version:1},facepunch:{id:"facepunch",name:"Oncoming Fist",keywords:["facepunch","punch","angry","violence","hit","attack","hand"],skins:[{unified:"1f44a",native:"👊"},{unified:"1f44a-1f3fb",native:"👊🏻"},{unified:"1f44a-1f3fc",native:"👊🏼"},{unified:"1f44a-1f3fd",native:"👊🏽"},{unified:"1f44a-1f3fe",native:"👊🏾"},{unified:"1f44a-1f3ff",native:"👊🏿"}],version:1},"left-facing_fist":{id:"left-facing_fist",name:"Left-Facing Fist",keywords:["left","facing","hand","fistbump"],skins:[{unified:"1f91b",native:"🤛"},{unified:"1f91b-1f3fb",native:"🤛🏻"},{unified:"1f91b-1f3fc",native:"🤛🏼"},{unified:"1f91b-1f3fd",native:"🤛🏽"},{unified:"1f91b-1f3fe",native:"🤛🏾"},{unified:"1f91b-1f3ff",native:"🤛🏿"}],version:3},"right-facing_fist":{id:"right-facing_fist",name:"Right-Facing Fist",keywords:["right","facing","hand","fistbump"],skins:[{unified:"1f91c",native:"🤜"},{unified:"1f91c-1f3fb",native:"🤜🏻"},{unified:"1f91c-1f3fc",native:"🤜🏼"},{unified:"1f91c-1f3fd",native:"🤜🏽"},{unified:"1f91c-1f3fe",native:"🤜🏾"},{unified:"1f91c-1f3ff",native:"🤜🏿"}],version:3},clap:{id:"clap",name:"Clapping Hands",keywords:["clap","praise","applause","congrats","yay"],skins:[{unified:"1f44f",native:"👏"},{unified:"1f44f-1f3fb",native:"👏🏻"},{unified:"1f44f-1f3fc",native:"👏🏼"},{unified:"1f44f-1f3fd",native:"👏🏽"},{unified:"1f44f-1f3fe",native:"👏🏾"},{unified:"1f44f-1f3ff",native:"👏🏿"}],version:1},raised_hands:{id:"raised_hands",name:"Raising Hands",keywords:["raised","gesture","hooray","yea","celebration"],skins:[{unified:"1f64c",native:"🙌"},{unified:"1f64c-1f3fb",native:"🙌🏻"},{unified:"1f64c-1f3fc",native:"🙌🏼"},{unified:"1f64c-1f3fd",native:"🙌🏽"},{unified:"1f64c-1f3fe",native:"🙌🏾"},{unified:"1f64c-1f3ff",native:"🙌🏿"}],version:1},heart_hands:{id:"heart_hands",name:"Heart Hands",keywords:["love","appreciation","support"],skins:[{unified:"1faf6",native:"🫶"},{unified:"1faf6-1f3fb",native:"🫶🏻"},{unified:"1faf6-1f3fc",native:"🫶🏼"},{unified:"1faf6-1f3fd",native:"🫶🏽"},{unified:"1faf6-1f3fe",native:"🫶🏾"},{unified:"1faf6-1f3ff",native:"🫶🏿"}],version:14},open_hands:{id:"open_hands",name:"Open Hands",keywords:["fingers","butterfly"],skins:[{unified:"1f450",native:"👐"},{unified:"1f450-1f3fb",native:"👐🏻"},{unified:"1f450-1f3fc",native:"👐🏼"},{unified:"1f450-1f3fd",native:"👐🏽"},{unified:"1f450-1f3fe",native:"👐🏾"},{unified:"1f450-1f3ff",native:"👐🏿"}],version:1},palms_up_together:{id:"palms_up_together",name:"Palms Up Together",keywords:["hands","gesture","cupped","prayer"],skins:[{unified:"1f932",native:"🤲"},{unified:"1f932-1f3fb",native:"🤲🏻"},{unified:"1f932-1f3fc",native:"🤲🏼"},{unified:"1f932-1f3fd",native:"🤲🏽"},{unified:"1f932-1f3fe",native:"🤲🏾"},{unified:"1f932-1f3ff",native:"🤲🏿"}],version:5},handshake:{id:"handshake",name:"Handshake",keywords:["agreement","shake"],skins:[{unified:"1f91d",native:"🤝"},{unified:"1f91d-1f3fb",native:"🤝🏻"},{unified:"1f91d-1f3fc",native:"🤝🏼"},{unified:"1f91d-1f3fd",native:"🤝🏽"},{unified:"1f91d-1f3fe",native:"🤝🏾"},{unified:"1f91d-1f3ff",native:"🤝🏿"}],version:3},pray:{id:"pray",name:"Folded Hands",keywords:["pray","please","hope","wish","namaste","highfive","high","five","thank","you","thanks","appreciate"],skins:[{unified:"1f64f",native:"🙏"},{unified:"1f64f-1f3fb",native:"🙏🏻"},{unified:"1f64f-1f3fc",native:"🙏🏼"},{unified:"1f64f-1f3fd",native:"🙏🏽"},{unified:"1f64f-1f3fe",native:"🙏🏾"},{unified:"1f64f-1f3ff",native:"🙏🏿"}],version:1},writing_hand:{id:"writing_hand",name:"Writing Hand",keywords:["lower","left","ballpoint","pen","stationery","write","compose"],skins:[{unified:"270d-fe0f",native:"✍️"},{unified:"270d-1f3fb",native:"✍🏻"},{unified:"270d-1f3fc",native:"✍🏼"},{unified:"270d-1f3fd",native:"✍🏽"},{unified:"270d-1f3fe",native:"✍🏾"},{unified:"270d-1f3ff",native:"✍🏿"}],version:1},nail_care:{id:"nail_care",name:"Nail Polish",keywords:["care","beauty","manicure","finger","fashion"],skins:[{unified:"1f485",native:"💅"},{unified:"1f485-1f3fb",native:"💅🏻"},{unified:"1f485-1f3fc",native:"💅🏼"},{unified:"1f485-1f3fd",native:"💅🏽"},{unified:"1f485-1f3fe",native:"💅🏾"},{unified:"1f485-1f3ff",native:"💅🏿"}],version:1},selfie:{id:"selfie",name:"Selfie",keywords:["camera","phone"],skins:[{unified:"1f933",native:"🤳"},{unified:"1f933-1f3fb",native:"🤳🏻"},{unified:"1f933-1f3fc",native:"🤳🏼"},{unified:"1f933-1f3fd",native:"🤳🏽"},{unified:"1f933-1f3fe",native:"🤳🏾"},{unified:"1f933-1f3ff",native:"🤳🏿"}],version:3},muscle:{id:"muscle",name:"Flexed Biceps",keywords:["muscle","arm","flex","hand","summer","strong"],skins:[{unified:"1f4aa",native:"💪"},{unified:"1f4aa-1f3fb",native:"💪🏻"},{unified:"1f4aa-1f3fc",native:"💪🏼"},{unified:"1f4aa-1f3fd",native:"💪🏽"},{unified:"1f4aa-1f3fe",native:"💪🏾"},{unified:"1f4aa-1f3ff",native:"💪🏿"}],version:1},mechanical_arm:{id:"mechanical_arm",name:"Mechanical Arm",keywords:["accessibility"],skins:[{unified:"1f9be",native:"🦾"}],version:12},mechanical_leg:{id:"mechanical_leg",name:"Mechanical Leg",keywords:["accessibility"],skins:[{unified:"1f9bf",native:"🦿"}],version:12},leg:{id:"leg",name:"Leg",keywords:["kick","limb"],skins:[{unified:"1f9b5",native:"🦵"},{unified:"1f9b5-1f3fb",native:"🦵🏻"},{unified:"1f9b5-1f3fc",native:"🦵🏼"},{unified:"1f9b5-1f3fd",native:"🦵🏽"},{unified:"1f9b5-1f3fe",native:"🦵🏾"},{unified:"1f9b5-1f3ff",native:"🦵🏿"}],version:11},foot:{id:"foot",name:"Foot",keywords:["kick","stomp"],skins:[{unified:"1f9b6",native:"🦶"},{unified:"1f9b6-1f3fb",native:"🦶🏻"},{unified:"1f9b6-1f3fc",native:"🦶🏼"},{unified:"1f9b6-1f3fd",native:"🦶🏽"},{unified:"1f9b6-1f3fe",native:"🦶🏾"},{unified:"1f9b6-1f3ff",native:"🦶🏿"}],version:11},ear:{id:"ear",name:"Ear",keywords:["face","hear","sound","listen"],skins:[{unified:"1f442",native:"👂"},{unified:"1f442-1f3fb",native:"👂🏻"},{unified:"1f442-1f3fc",native:"👂🏼"},{unified:"1f442-1f3fd",native:"👂🏽"},{unified:"1f442-1f3fe",native:"👂🏾"},{unified:"1f442-1f3ff",native:"👂🏿"}],version:1},ear_with_hearing_aid:{id:"ear_with_hearing_aid",name:"Ear with Hearing Aid",keywords:["accessibility"],skins:[{unified:"1f9bb",native:"🦻"},{unified:"1f9bb-1f3fb",native:"🦻🏻"},{unified:"1f9bb-1f3fc",native:"🦻🏼"},{unified:"1f9bb-1f3fd",native:"🦻🏽"},{unified:"1f9bb-1f3fe",native:"🦻🏾"},{unified:"1f9bb-1f3ff",native:"🦻🏿"}],version:12},nose:{id:"nose",name:"Nose",keywords:["smell","sniff"],skins:[{unified:"1f443",native:"👃"},{unified:"1f443-1f3fb",native:"👃🏻"},{unified:"1f443-1f3fc",native:"👃🏼"},{unified:"1f443-1f3fd",native:"👃🏽"},{unified:"1f443-1f3fe",native:"👃🏾"},{unified:"1f443-1f3ff",native:"👃🏿"}],version:1},brain:{id:"brain",name:"Brain",keywords:["smart","intelligent"],skins:[{unified:"1f9e0",native:"🧠"}],version:5},anatomical_heart:{id:"anatomical_heart",name:"Anatomical Heart",keywords:["health","heartbeat"],skins:[{unified:"1fac0",native:"🫀"}],version:13},lungs:{id:"lungs",name:"Lungs",keywords:["breathe"],skins:[{unified:"1fac1",native:"🫁"}],version:13},tooth:{id:"tooth",name:"Tooth",keywords:["teeth","dentist"],skins:[{unified:"1f9b7",native:"🦷"}],version:11},bone:{id:"bone",name:"Bone",keywords:["skeleton"],skins:[{unified:"1f9b4",native:"🦴"}],version:11},eyes:{id:"eyes",name:"Eyes",keywords:["look","watch","stalk","peek","see"],skins:[{unified:"1f440",native:"👀"}],version:1},eye:{id:"eye",name:"Eye",keywords:["face","look","see","watch","stare"],skins:[{unified:"1f441-fe0f",native:"👁️"}],version:1},tongue:{id:"tongue",name:"Tongue",keywords:["mouth","playful"],skins:[{unified:"1f445",native:"👅"}],version:1},lips:{id:"lips",name:"Mouth",keywords:["lips","kiss"],skins:[{unified:"1f444",native:"👄"}],version:1},biting_lip:{id:"biting_lip",name:"Biting Lip",keywords:["flirt","sexy","pain","worry"],skins:[{unified:"1fae6",native:"🫦"}],version:14},baby:{id:"baby",name:"Baby",keywords:["child","boy","girl","toddler"],skins:[{unified:"1f476",native:"👶"},{unified:"1f476-1f3fb",native:"👶🏻"},{unified:"1f476-1f3fc",native:"👶🏼"},{unified:"1f476-1f3fd",native:"👶🏽"},{unified:"1f476-1f3fe",native:"👶🏾"},{unified:"1f476-1f3ff",native:"👶🏿"}],version:1},child:{id:"child",name:"Child",keywords:["gender","neutral","young"],skins:[{unified:"1f9d2",native:"🧒"},{unified:"1f9d2-1f3fb",native:"🧒🏻"},{unified:"1f9d2-1f3fc",native:"🧒🏼"},{unified:"1f9d2-1f3fd",native:"🧒🏽"},{unified:"1f9d2-1f3fe",native:"🧒🏾"},{unified:"1f9d2-1f3ff",native:"🧒🏿"}],version:5},boy:{id:"boy",name:"Boy",keywords:["man","male","guy","teenager"],skins:[{unified:"1f466",native:"👦"},{unified:"1f466-1f3fb",native:"👦🏻"},{unified:"1f466-1f3fc",native:"👦🏼"},{unified:"1f466-1f3fd",native:"👦🏽"},{unified:"1f466-1f3fe",native:"👦🏾"},{unified:"1f466-1f3ff",native:"👦🏿"}],version:1},girl:{id:"girl",name:"Girl",keywords:["female","woman","teenager"],skins:[{unified:"1f467",native:"👧"},{unified:"1f467-1f3fb",native:"👧🏻"},{unified:"1f467-1f3fc",native:"👧🏼"},{unified:"1f467-1f3fd",native:"👧🏽"},{unified:"1f467-1f3fe",native:"👧🏾"},{unified:"1f467-1f3ff",native:"👧🏿"}],version:1},adult:{id:"adult",name:"Adult",keywords:["person","gender","neutral"],skins:[{unified:"1f9d1",native:"🧑"},{unified:"1f9d1-1f3fb",native:"🧑🏻"},{unified:"1f9d1-1f3fc",native:"🧑🏼"},{unified:"1f9d1-1f3fd",native:"🧑🏽"},{unified:"1f9d1-1f3fe",native:"🧑🏾"},{unified:"1f9d1-1f3ff",native:"🧑🏿"}],version:5},person_with_blond_hair:{id:"person_with_blond_hair",name:"Person Blond Hair",keywords:["with","hairstyle"],skins:[{unified:"1f471",native:"👱"},{unified:"1f471-1f3fb",native:"👱🏻"},{unified:"1f471-1f3fc",native:"👱🏼"},{unified:"1f471-1f3fd",native:"👱🏽"},{unified:"1f471-1f3fe",native:"👱🏾"},{unified:"1f471-1f3ff",native:"👱🏿"}],version:1},man:{id:"man",name:"Man",keywords:["mustache","father","dad","guy","classy","sir","moustache"],skins:[{unified:"1f468",native:"👨"},{unified:"1f468-1f3fb",native:"👨🏻"},{unified:"1f468-1f3fc",native:"👨🏼"},{unified:"1f468-1f3fd",native:"👨🏽"},{unified:"1f468-1f3fe",native:"👨🏾"},{unified:"1f468-1f3ff",native:"👨🏿"}],version:1},bearded_person:{id:"bearded_person",name:"Person Beard",keywords:["bearded","man","bewhiskered"],skins:[{unified:"1f9d4",native:"🧔"},{unified:"1f9d4-1f3fb",native:"🧔🏻"},{unified:"1f9d4-1f3fc",native:"🧔🏼"},{unified:"1f9d4-1f3fd",native:"🧔🏽"},{unified:"1f9d4-1f3fe",native:"🧔🏾"},{unified:"1f9d4-1f3ff",native:"🧔🏿"}],version:5},man_with_beard:{id:"man_with_beard",name:"Man: Beard",keywords:["man","with","facial","hair"],skins:[{unified:"1f9d4-200d-2642-fe0f",native:"🧔♂️"},{unified:"1f9d4-1f3fb-200d-2642-fe0f",native:"🧔🏻♂️"},{unified:"1f9d4-1f3fc-200d-2642-fe0f",native:"🧔🏼♂️"},{unified:"1f9d4-1f3fd-200d-2642-fe0f",native:"🧔🏽♂️"},{unified:"1f9d4-1f3fe-200d-2642-fe0f",native:"🧔🏾♂️"},{unified:"1f9d4-1f3ff-200d-2642-fe0f",native:"🧔🏿♂️"}],version:13.1},woman_with_beard:{id:"woman_with_beard",name:"Woman: Beard",keywords:["woman","with","facial","hair"],skins:[{unified:"1f9d4-200d-2640-fe0f",native:"🧔♀️"},{unified:"1f9d4-1f3fb-200d-2640-fe0f",native:"🧔🏻♀️"},{unified:"1f9d4-1f3fc-200d-2640-fe0f",native:"🧔🏼♀️"},{unified:"1f9d4-1f3fd-200d-2640-fe0f",native:"🧔🏽♀️"},{unified:"1f9d4-1f3fe-200d-2640-fe0f",native:"🧔🏾♀️"},{unified:"1f9d4-1f3ff-200d-2640-fe0f",native:"🧔🏿♀️"}],version:13.1},red_haired_man:{id:"red_haired_man",name:"Man: Red Hair",keywords:["haired","man","hairstyle"],skins:[{unified:"1f468-200d-1f9b0",native:"👨🦰"},{unified:"1f468-1f3fb-200d-1f9b0",native:"👨🏻🦰"},{unified:"1f468-1f3fc-200d-1f9b0",native:"👨🏼🦰"},{unified:"1f468-1f3fd-200d-1f9b0",native:"👨🏽🦰"},{unified:"1f468-1f3fe-200d-1f9b0",native:"👨🏾🦰"},{unified:"1f468-1f3ff-200d-1f9b0",native:"👨🏿🦰"}],version:11},curly_haired_man:{id:"curly_haired_man",name:"Man: Curly Hair",keywords:["haired","man","hairstyle"],skins:[{unified:"1f468-200d-1f9b1",native:"👨🦱"},{unified:"1f468-1f3fb-200d-1f9b1",native:"👨🏻🦱"},{unified:"1f468-1f3fc-200d-1f9b1",native:"👨🏼🦱"},{unified:"1f468-1f3fd-200d-1f9b1",native:"👨🏽🦱"},{unified:"1f468-1f3fe-200d-1f9b1",native:"👨🏾🦱"},{unified:"1f468-1f3ff-200d-1f9b1",native:"👨🏿🦱"}],version:11},white_haired_man:{id:"white_haired_man",name:"Man: White Hair",keywords:["haired","man","old","elder"],skins:[{unified:"1f468-200d-1f9b3",native:"👨🦳"},{unified:"1f468-1f3fb-200d-1f9b3",native:"👨🏻🦳"},{unified:"1f468-1f3fc-200d-1f9b3",native:"👨🏼🦳"},{unified:"1f468-1f3fd-200d-1f9b3",native:"👨🏽🦳"},{unified:"1f468-1f3fe-200d-1f9b3",native:"👨🏾🦳"},{unified:"1f468-1f3ff-200d-1f9b3",native:"👨🏿🦳"}],version:11},bald_man:{id:"bald_man",name:"Man: Bald",keywords:["man","hairless"],skins:[{unified:"1f468-200d-1f9b2",native:"👨🦲"},{unified:"1f468-1f3fb-200d-1f9b2",native:"👨🏻🦲"},{unified:"1f468-1f3fc-200d-1f9b2",native:"👨🏼🦲"},{unified:"1f468-1f3fd-200d-1f9b2",native:"👨🏽🦲"},{unified:"1f468-1f3fe-200d-1f9b2",native:"👨🏾🦲"},{unified:"1f468-1f3ff-200d-1f9b2",native:"👨🏿🦲"}],version:11},woman:{id:"woman",name:"Woman",keywords:["female","girls","lady"],skins:[{unified:"1f469",native:"👩"},{unified:"1f469-1f3fb",native:"👩🏻"},{unified:"1f469-1f3fc",native:"👩🏼"},{unified:"1f469-1f3fd",native:"👩🏽"},{unified:"1f469-1f3fe",native:"👩🏾"},{unified:"1f469-1f3ff",native:"👩🏿"}],version:1},red_haired_woman:{id:"red_haired_woman",name:"Woman: Red Hair",keywords:["haired","woman","hairstyle"],skins:[{unified:"1f469-200d-1f9b0",native:"👩🦰"},{unified:"1f469-1f3fb-200d-1f9b0",native:"👩🏻🦰"},{unified:"1f469-1f3fc-200d-1f9b0",native:"👩🏼🦰"},{unified:"1f469-1f3fd-200d-1f9b0",native:"👩🏽🦰"},{unified:"1f469-1f3fe-200d-1f9b0",native:"👩🏾🦰"},{unified:"1f469-1f3ff-200d-1f9b0",native:"👩🏿🦰"}],version:11},red_haired_person:{id:"red_haired_person",name:"Person: Red Hair",keywords:["haired","person","hairstyle"],skins:[{unified:"1f9d1-200d-1f9b0",native:"🧑🦰"},{unified:"1f9d1-1f3fb-200d-1f9b0",native:"🧑🏻🦰"},{unified:"1f9d1-1f3fc-200d-1f9b0",native:"🧑🏼🦰"},{unified:"1f9d1-1f3fd-200d-1f9b0",native:"🧑🏽🦰"},{unified:"1f9d1-1f3fe-200d-1f9b0",native:"🧑🏾🦰"},{unified:"1f9d1-1f3ff-200d-1f9b0",native:"🧑🏿🦰"}],version:12.1},curly_haired_woman:{id:"curly_haired_woman",name:"Woman: Curly Hair",keywords:["haired","woman","hairstyle"],skins:[{unified:"1f469-200d-1f9b1",native:"👩🦱"},{unified:"1f469-1f3fb-200d-1f9b1",native:"👩🏻🦱"},{unified:"1f469-1f3fc-200d-1f9b1",native:"👩🏼🦱"},{unified:"1f469-1f3fd-200d-1f9b1",native:"👩🏽🦱"},{unified:"1f469-1f3fe-200d-1f9b1",native:"👩🏾🦱"},{unified:"1f469-1f3ff-200d-1f9b1",native:"👩🏿🦱"}],version:11},curly_haired_person:{id:"curly_haired_person",name:"Person: Curly Hair",keywords:["haired","person","hairstyle"],skins:[{unified:"1f9d1-200d-1f9b1",native:"🧑🦱"},{unified:"1f9d1-1f3fb-200d-1f9b1",native:"🧑🏻🦱"},{unified:"1f9d1-1f3fc-200d-1f9b1",native:"🧑🏼🦱"},{unified:"1f9d1-1f3fd-200d-1f9b1",native:"🧑🏽🦱"},{unified:"1f9d1-1f3fe-200d-1f9b1",native:"🧑🏾🦱"},{unified:"1f9d1-1f3ff-200d-1f9b1",native:"🧑🏿🦱"}],version:12.1},white_haired_woman:{id:"white_haired_woman",name:"Woman: White Hair",keywords:["haired","woman","old","elder"],skins:[{unified:"1f469-200d-1f9b3",native:"👩🦳"},{unified:"1f469-1f3fb-200d-1f9b3",native:"👩🏻🦳"},{unified:"1f469-1f3fc-200d-1f9b3",native:"👩🏼🦳"},{unified:"1f469-1f3fd-200d-1f9b3",native:"👩🏽🦳"},{unified:"1f469-1f3fe-200d-1f9b3",native:"👩🏾🦳"},{unified:"1f469-1f3ff-200d-1f9b3",native:"👩🏿🦳"}],version:11},white_haired_person:{id:"white_haired_person",name:"Person: White Hair",keywords:["haired","person","elder","old"],skins:[{unified:"1f9d1-200d-1f9b3",native:"🧑🦳"},{unified:"1f9d1-1f3fb-200d-1f9b3",native:"🧑🏻🦳"},{unified:"1f9d1-1f3fc-200d-1f9b3",native:"🧑🏼🦳"},{unified:"1f9d1-1f3fd-200d-1f9b3",native:"🧑🏽🦳"},{unified:"1f9d1-1f3fe-200d-1f9b3",native:"🧑🏾🦳"},{unified:"1f9d1-1f3ff-200d-1f9b3",native:"🧑🏿🦳"}],version:12.1},bald_woman:{id:"bald_woman",name:"Woman: Bald",keywords:["woman","hairless"],skins:[{unified:"1f469-200d-1f9b2",native:"👩🦲"},{unified:"1f469-1f3fb-200d-1f9b2",native:"👩🏻🦲"},{unified:"1f469-1f3fc-200d-1f9b2",native:"👩🏼🦲"},{unified:"1f469-1f3fd-200d-1f9b2",native:"👩🏽🦲"},{unified:"1f469-1f3fe-200d-1f9b2",native:"👩🏾🦲"},{unified:"1f469-1f3ff-200d-1f9b2",native:"👩🏿🦲"}],version:11},bald_person:{id:"bald_person",name:"Person: Bald",keywords:["person","hairless"],skins:[{unified:"1f9d1-200d-1f9b2",native:"🧑🦲"},{unified:"1f9d1-1f3fb-200d-1f9b2",native:"🧑🏻🦲"},{unified:"1f9d1-1f3fc-200d-1f9b2",native:"🧑🏼🦲"},{unified:"1f9d1-1f3fd-200d-1f9b2",native:"🧑🏽🦲"},{unified:"1f9d1-1f3fe-200d-1f9b2",native:"🧑🏾🦲"},{unified:"1f9d1-1f3ff-200d-1f9b2",native:"🧑🏿🦲"}],version:12.1},"blond-haired-woman":{id:"blond-haired-woman",name:"Woman: Blond Hair",keywords:["haired-woman","woman","female","girl","blonde","person"],skins:[{unified:"1f471-200d-2640-fe0f",native:"👱♀️"},{unified:"1f471-1f3fb-200d-2640-fe0f",native:"👱🏻♀️"},{unified:"1f471-1f3fc-200d-2640-fe0f",native:"👱🏼♀️"},{unified:"1f471-1f3fd-200d-2640-fe0f",native:"👱🏽♀️"},{unified:"1f471-1f3fe-200d-2640-fe0f",native:"👱🏾♀️"},{unified:"1f471-1f3ff-200d-2640-fe0f",native:"👱🏿♀️"}],version:4},"blond-haired-man":{id:"blond-haired-man",name:"Man: Blond Hair",keywords:["haired-man","man","male","boy","blonde","guy","person"],skins:[{unified:"1f471-200d-2642-fe0f",native:"👱♂️"},{unified:"1f471-1f3fb-200d-2642-fe0f",native:"👱🏻♂️"},{unified:"1f471-1f3fc-200d-2642-fe0f",native:"👱🏼♂️"},{unified:"1f471-1f3fd-200d-2642-fe0f",native:"👱🏽♂️"},{unified:"1f471-1f3fe-200d-2642-fe0f",native:"👱🏾♂️"},{unified:"1f471-1f3ff-200d-2642-fe0f",native:"👱🏿♂️"}],version:4},older_adult:{id:"older_adult",name:"Older Adult",keywords:["person","human","elder","senior","gender","neutral"],skins:[{unified:"1f9d3",native:"🧓"},{unified:"1f9d3-1f3fb",native:"🧓🏻"},{unified:"1f9d3-1f3fc",native:"🧓🏼"},{unified:"1f9d3-1f3fd",native:"🧓🏽"},{unified:"1f9d3-1f3fe",native:"🧓🏾"},{unified:"1f9d3-1f3ff",native:"🧓🏿"}],version:5},older_man:{id:"older_man",name:"Old Man",keywords:["older","human","male","men","elder","senior"],skins:[{unified:"1f474",native:"👴"},{unified:"1f474-1f3fb",native:"👴🏻"},{unified:"1f474-1f3fc",native:"👴🏼"},{unified:"1f474-1f3fd",native:"👴🏽"},{unified:"1f474-1f3fe",native:"👴🏾"},{unified:"1f474-1f3ff",native:"👴🏿"}],version:1},older_woman:{id:"older_woman",name:"Old Woman",keywords:["older","human","female","women","lady","elder","senior"],skins:[{unified:"1f475",native:"👵"},{unified:"1f475-1f3fb",native:"👵🏻"},{unified:"1f475-1f3fc",native:"👵🏼"},{unified:"1f475-1f3fd",native:"👵🏽"},{unified:"1f475-1f3fe",native:"👵🏾"},{unified:"1f475-1f3ff",native:"👵🏿"}],version:1},person_frowning:{id:"person_frowning",name:"Person Frowning",keywords:["worried"],skins:[{unified:"1f64d",native:"🙍"},{unified:"1f64d-1f3fb",native:"🙍🏻"},{unified:"1f64d-1f3fc",native:"🙍🏼"},{unified:"1f64d-1f3fd",native:"🙍🏽"},{unified:"1f64d-1f3fe",native:"🙍🏾"},{unified:"1f64d-1f3ff",native:"🙍🏿"}],version:1},"man-frowning":{id:"man-frowning",name:"Man Frowning",keywords:["male","boy","sad","depressed","discouraged","unhappy"],skins:[{unified:"1f64d-200d-2642-fe0f",native:"🙍♂️"},{unified:"1f64d-1f3fb-200d-2642-fe0f",native:"🙍🏻♂️"},{unified:"1f64d-1f3fc-200d-2642-fe0f",native:"🙍🏼♂️"},{unified:"1f64d-1f3fd-200d-2642-fe0f",native:"🙍🏽♂️"},{unified:"1f64d-1f3fe-200d-2642-fe0f",native:"🙍🏾♂️"},{unified:"1f64d-1f3ff-200d-2642-fe0f",native:"🙍🏿♂️"}],version:4},"woman-frowning":{id:"woman-frowning",name:"Woman Frowning",keywords:["female","girl","sad","depressed","discouraged","unhappy"],skins:[{unified:"1f64d-200d-2640-fe0f",native:"🙍♀️"},{unified:"1f64d-1f3fb-200d-2640-fe0f",native:"🙍🏻♀️"},{unified:"1f64d-1f3fc-200d-2640-fe0f",native:"🙍🏼♀️"},{unified:"1f64d-1f3fd-200d-2640-fe0f",native:"🙍🏽♀️"},{unified:"1f64d-1f3fe-200d-2640-fe0f",native:"🙍🏾♀️"},{unified:"1f64d-1f3ff-200d-2640-fe0f",native:"🙍🏿♀️"}],version:4},person_with_pouting_face:{id:"person_with_pouting_face",name:"Person Pouting",keywords:["with","face","upset"],skins:[{unified:"1f64e",native:"🙎"},{unified:"1f64e-1f3fb",native:"🙎🏻"},{unified:"1f64e-1f3fc",native:"🙎🏼"},{unified:"1f64e-1f3fd",native:"🙎🏽"},{unified:"1f64e-1f3fe",native:"🙎🏾"},{unified:"1f64e-1f3ff",native:"🙎🏿"}],version:1},"man-pouting":{id:"man-pouting",name:"Man Pouting",keywords:["male","boy"],skins:[{unified:"1f64e-200d-2642-fe0f",native:"🙎♂️"},{unified:"1f64e-1f3fb-200d-2642-fe0f",native:"🙎🏻♂️"},{unified:"1f64e-1f3fc-200d-2642-fe0f",native:"🙎🏼♂️"},{unified:"1f64e-1f3fd-200d-2642-fe0f",native:"🙎🏽♂️"},{unified:"1f64e-1f3fe-200d-2642-fe0f",native:"🙎🏾♂️"},{unified:"1f64e-1f3ff-200d-2642-fe0f",native:"🙎🏿♂️"}],version:4},"woman-pouting":{id:"woman-pouting",name:"Woman Pouting",keywords:["female","girl"],skins:[{unified:"1f64e-200d-2640-fe0f",native:"🙎♀️"},{unified:"1f64e-1f3fb-200d-2640-fe0f",native:"🙎🏻♀️"},{unified:"1f64e-1f3fc-200d-2640-fe0f",native:"🙎🏼♀️"},{unified:"1f64e-1f3fd-200d-2640-fe0f",native:"🙎🏽♀️"},{unified:"1f64e-1f3fe-200d-2640-fe0f",native:"🙎🏾♀️"},{unified:"1f64e-1f3ff-200d-2640-fe0f",native:"🙎🏿♀️"}],version:4},no_good:{id:"no_good",name:"Person Gesturing No",keywords:["good","decline"],skins:[{unified:"1f645",native:"🙅"},{unified:"1f645-1f3fb",native:"🙅🏻"},{unified:"1f645-1f3fc",native:"🙅🏼"},{unified:"1f645-1f3fd",native:"🙅🏽"},{unified:"1f645-1f3fe",native:"🙅🏾"},{unified:"1f645-1f3ff",native:"🙅🏿"}],version:1},"man-gesturing-no":{id:"man-gesturing-no",name:"Man Gesturing No",keywords:["gesturing-no","male","boy","nope"],skins:[{unified:"1f645-200d-2642-fe0f",native:"🙅♂️"},{unified:"1f645-1f3fb-200d-2642-fe0f",native:"🙅🏻♂️"},{unified:"1f645-1f3fc-200d-2642-fe0f",native:"🙅🏼♂️"},{unified:"1f645-1f3fd-200d-2642-fe0f",native:"🙅🏽♂️"},{unified:"1f645-1f3fe-200d-2642-fe0f",native:"🙅🏾♂️"},{unified:"1f645-1f3ff-200d-2642-fe0f",native:"🙅🏿♂️"}],version:4},"woman-gesturing-no":{id:"woman-gesturing-no",name:"Woman Gesturing No",keywords:["gesturing-no","female","girl","nope"],skins:[{unified:"1f645-200d-2640-fe0f",native:"🙅♀️"},{unified:"1f645-1f3fb-200d-2640-fe0f",native:"🙅🏻♀️"},{unified:"1f645-1f3fc-200d-2640-fe0f",native:"🙅🏼♀️"},{unified:"1f645-1f3fd-200d-2640-fe0f",native:"🙅🏽♀️"},{unified:"1f645-1f3fe-200d-2640-fe0f",native:"🙅🏾♀️"},{unified:"1f645-1f3ff-200d-2640-fe0f",native:"🙅🏿♀️"}],version:4},ok_woman:{id:"ok_woman",name:"Person Gesturing Ok",keywords:["woman","agree"],skins:[{unified:"1f646",native:"🙆"},{unified:"1f646-1f3fb",native:"🙆🏻"},{unified:"1f646-1f3fc",native:"🙆🏼"},{unified:"1f646-1f3fd",native:"🙆🏽"},{unified:"1f646-1f3fe",native:"🙆🏾"},{unified:"1f646-1f3ff",native:"🙆🏿"}],version:1},"man-gesturing-ok":{id:"man-gesturing-ok",name:"Man Gesturing Ok",keywords:["gesturing-ok","men","boy","male","blue","human"],skins:[{unified:"1f646-200d-2642-fe0f",native:"🙆♂️"},{unified:"1f646-1f3fb-200d-2642-fe0f",native:"🙆🏻♂️"},{unified:"1f646-1f3fc-200d-2642-fe0f",native:"🙆🏼♂️"},{unified:"1f646-1f3fd-200d-2642-fe0f",native:"🙆🏽♂️"},{unified:"1f646-1f3fe-200d-2642-fe0f",native:"🙆🏾♂️"},{unified:"1f646-1f3ff-200d-2642-fe0f",native:"🙆🏿♂️"}],version:4},"woman-gesturing-ok":{id:"woman-gesturing-ok",name:"Woman Gesturing Ok",keywords:["gesturing-ok","women","girl","female","pink","human"],skins:[{unified:"1f646-200d-2640-fe0f",native:"🙆♀️"},{unified:"1f646-1f3fb-200d-2640-fe0f",native:"🙆🏻♀️"},{unified:"1f646-1f3fc-200d-2640-fe0f",native:"🙆🏼♀️"},{unified:"1f646-1f3fd-200d-2640-fe0f",native:"🙆🏽♀️"},{unified:"1f646-1f3fe-200d-2640-fe0f",native:"🙆🏾♀️"},{unified:"1f646-1f3ff-200d-2640-fe0f",native:"🙆🏿♀️"}],version:4},information_desk_person:{id:"information_desk_person",name:"Person Tipping Hand",keywords:["information","desk"],skins:[{unified:"1f481",native:"💁"},{unified:"1f481-1f3fb",native:"💁🏻"},{unified:"1f481-1f3fc",native:"💁🏼"},{unified:"1f481-1f3fd",native:"💁🏽"},{unified:"1f481-1f3fe",native:"💁🏾"},{unified:"1f481-1f3ff",native:"💁🏿"}],version:1},"man-tipping-hand":{id:"man-tipping-hand",name:"Man Tipping Hand",keywords:["tipping-hand","male","boy","human","information"],skins:[{unified:"1f481-200d-2642-fe0f",native:"💁♂️"},{unified:"1f481-1f3fb-200d-2642-fe0f",native:"💁🏻♂️"},{unified:"1f481-1f3fc-200d-2642-fe0f",native:"💁🏼♂️"},{unified:"1f481-1f3fd-200d-2642-fe0f",native:"💁🏽♂️"},{unified:"1f481-1f3fe-200d-2642-fe0f",native:"💁🏾♂️"},{unified:"1f481-1f3ff-200d-2642-fe0f",native:"💁🏿♂️"}],version:4},"woman-tipping-hand":{id:"woman-tipping-hand",name:"Woman Tipping Hand",keywords:["tipping-hand","female","girl","human","information"],skins:[{unified:"1f481-200d-2640-fe0f",native:"💁♀️"},{unified:"1f481-1f3fb-200d-2640-fe0f",native:"💁🏻♀️"},{unified:"1f481-1f3fc-200d-2640-fe0f",native:"💁🏼♀️"},{unified:"1f481-1f3fd-200d-2640-fe0f",native:"💁🏽♀️"},{unified:"1f481-1f3fe-200d-2640-fe0f",native:"💁🏾♀️"},{unified:"1f481-1f3ff-200d-2640-fe0f",native:"💁🏿♀️"}],version:4},raising_hand:{id:"raising_hand",name:"Person Raising Hand",keywords:["question"],skins:[{unified:"1f64b",native:"🙋"},{unified:"1f64b-1f3fb",native:"🙋🏻"},{unified:"1f64b-1f3fc",native:"🙋🏼"},{unified:"1f64b-1f3fd",native:"🙋🏽"},{unified:"1f64b-1f3fe",native:"🙋🏾"},{unified:"1f64b-1f3ff",native:"🙋🏿"}],version:1},"man-raising-hand":{id:"man-raising-hand",name:"Man Raising Hand",keywords:["raising-hand","male","boy"],skins:[{unified:"1f64b-200d-2642-fe0f",native:"🙋♂️"},{unified:"1f64b-1f3fb-200d-2642-fe0f",native:"🙋🏻♂️"},{unified:"1f64b-1f3fc-200d-2642-fe0f",native:"🙋🏼♂️"},{unified:"1f64b-1f3fd-200d-2642-fe0f",native:"🙋🏽♂️"},{unified:"1f64b-1f3fe-200d-2642-fe0f",native:"🙋🏾♂️"},{unified:"1f64b-1f3ff-200d-2642-fe0f",native:"🙋🏿♂️"}],version:4},"woman-raising-hand":{id:"woman-raising-hand",name:"Woman Raising Hand",keywords:["raising-hand","female","girl"],skins:[{unified:"1f64b-200d-2640-fe0f",native:"🙋♀️"},{unified:"1f64b-1f3fb-200d-2640-fe0f",native:"🙋🏻♀️"},{unified:"1f64b-1f3fc-200d-2640-fe0f",native:"🙋🏼♀️"},{unified:"1f64b-1f3fd-200d-2640-fe0f",native:"🙋🏽♀️"},{unified:"1f64b-1f3fe-200d-2640-fe0f",native:"🙋🏾♀️"},{unified:"1f64b-1f3ff-200d-2640-fe0f",native:"🙋🏿♀️"}],version:4},deaf_person:{id:"deaf_person",name:"Deaf Person",keywords:["accessibility"],skins:[{unified:"1f9cf",native:"🧏"},{unified:"1f9cf-1f3fb",native:"🧏🏻"},{unified:"1f9cf-1f3fc",native:"🧏🏼"},{unified:"1f9cf-1f3fd",native:"🧏🏽"},{unified:"1f9cf-1f3fe",native:"🧏🏾"},{unified:"1f9cf-1f3ff",native:"🧏🏿"}],version:12},deaf_man:{id:"deaf_man",name:"Deaf Man",keywords:["accessibility"],skins:[{unified:"1f9cf-200d-2642-fe0f",native:"🧏♂️"},{unified:"1f9cf-1f3fb-200d-2642-fe0f",native:"🧏🏻♂️"},{unified:"1f9cf-1f3fc-200d-2642-fe0f",native:"🧏🏼♂️"},{unified:"1f9cf-1f3fd-200d-2642-fe0f",native:"🧏🏽♂️"},{unified:"1f9cf-1f3fe-200d-2642-fe0f",native:"🧏🏾♂️"},{unified:"1f9cf-1f3ff-200d-2642-fe0f",native:"🧏🏿♂️"}],version:12},deaf_woman:{id:"deaf_woman",name:"Deaf Woman",keywords:["accessibility"],skins:[{unified:"1f9cf-200d-2640-fe0f",native:"🧏♀️"},{unified:"1f9cf-1f3fb-200d-2640-fe0f",native:"🧏🏻♀️"},{unified:"1f9cf-1f3fc-200d-2640-fe0f",native:"🧏🏼♀️"},{unified:"1f9cf-1f3fd-200d-2640-fe0f",native:"🧏🏽♀️"},{unified:"1f9cf-1f3fe-200d-2640-fe0f",native:"🧏🏾♀️"},{unified:"1f9cf-1f3ff-200d-2640-fe0f",native:"🧏🏿♀️"}],version:12},bow:{id:"bow",name:"Person Bowing",keywords:["bow","respectiful"],skins:[{unified:"1f647",native:"🙇"},{unified:"1f647-1f3fb",native:"🙇🏻"},{unified:"1f647-1f3fc",native:"🙇🏼"},{unified:"1f647-1f3fd",native:"🙇🏽"},{unified:"1f647-1f3fe",native:"🙇🏾"},{unified:"1f647-1f3ff",native:"🙇🏿"}],version:1},"man-bowing":{id:"man-bowing",name:"Man Bowing",keywords:["male","boy"],skins:[{unified:"1f647-200d-2642-fe0f",native:"🙇♂️"},{unified:"1f647-1f3fb-200d-2642-fe0f",native:"🙇🏻♂️"},{unified:"1f647-1f3fc-200d-2642-fe0f",native:"🙇🏼♂️"},{unified:"1f647-1f3fd-200d-2642-fe0f",native:"🙇🏽♂️"},{unified:"1f647-1f3fe-200d-2642-fe0f",native:"🙇🏾♂️"},{unified:"1f647-1f3ff-200d-2642-fe0f",native:"🙇🏿♂️"}],version:4},"woman-bowing":{id:"woman-bowing",name:"Woman Bowing",keywords:["female","girl"],skins:[{unified:"1f647-200d-2640-fe0f",native:"🙇♀️"},{unified:"1f647-1f3fb-200d-2640-fe0f",native:"🙇🏻♀️"},{unified:"1f647-1f3fc-200d-2640-fe0f",native:"🙇🏼♀️"},{unified:"1f647-1f3fd-200d-2640-fe0f",native:"🙇🏽♀️"},{unified:"1f647-1f3fe-200d-2640-fe0f",native:"🙇🏾♀️"},{unified:"1f647-1f3ff-200d-2640-fe0f",native:"🙇🏿♀️"}],version:4},face_palm:{id:"face_palm",name:"Face Palm",keywords:["person","facepalming","disappointed"],skins:[{unified:"1f926",native:"🤦"},{unified:"1f926-1f3fb",native:"🤦🏻"},{unified:"1f926-1f3fc",native:"🤦🏼"},{unified:"1f926-1f3fd",native:"🤦🏽"},{unified:"1f926-1f3fe",native:"🤦🏾"},{unified:"1f926-1f3ff",native:"🤦🏿"}],version:3},"man-facepalming":{id:"man-facepalming",name:"Man Facepalming",keywords:["male","boy","disbelief"],skins:[{unified:"1f926-200d-2642-fe0f",native:"🤦♂️"},{unified:"1f926-1f3fb-200d-2642-fe0f",native:"🤦🏻♂️"},{unified:"1f926-1f3fc-200d-2642-fe0f",native:"🤦🏼♂️"},{unified:"1f926-1f3fd-200d-2642-fe0f",native:"🤦🏽♂️"},{unified:"1f926-1f3fe-200d-2642-fe0f",native:"🤦🏾♂️"},{unified:"1f926-1f3ff-200d-2642-fe0f",native:"🤦🏿♂️"}],version:4},"woman-facepalming":{id:"woman-facepalming",name:"Woman Facepalming",keywords:["female","girl","disbelief"],skins:[{unified:"1f926-200d-2640-fe0f",native:"🤦♀️"},{unified:"1f926-1f3fb-200d-2640-fe0f",native:"🤦🏻♀️"},{unified:"1f926-1f3fc-200d-2640-fe0f",native:"🤦🏼♀️"},{unified:"1f926-1f3fd-200d-2640-fe0f",native:"🤦🏽♀️"},{unified:"1f926-1f3fe-200d-2640-fe0f",native:"🤦🏾♀️"},{unified:"1f926-1f3ff-200d-2640-fe0f",native:"🤦🏿♀️"}],version:4},shrug:{id:"shrug",name:"Shrug",keywords:["person","shrugging","regardless"],skins:[{unified:"1f937",native:"🤷"},{unified:"1f937-1f3fb",native:"🤷🏻"},{unified:"1f937-1f3fc",native:"🤷🏼"},{unified:"1f937-1f3fd",native:"🤷🏽"},{unified:"1f937-1f3fe",native:"🤷🏾"},{unified:"1f937-1f3ff",native:"🤷🏿"}],version:3},"man-shrugging":{id:"man-shrugging",name:"Man Shrugging",keywords:["male","boy","confused","indifferent","doubt"],skins:[{unified:"1f937-200d-2642-fe0f",native:"🤷♂️"},{unified:"1f937-1f3fb-200d-2642-fe0f",native:"🤷🏻♂️"},{unified:"1f937-1f3fc-200d-2642-fe0f",native:"🤷🏼♂️"},{unified:"1f937-1f3fd-200d-2642-fe0f",native:"🤷🏽♂️"},{unified:"1f937-1f3fe-200d-2642-fe0f",native:"🤷🏾♂️"},{unified:"1f937-1f3ff-200d-2642-fe0f",native:"🤷🏿♂️"}],version:4},"woman-shrugging":{id:"woman-shrugging",name:"Woman Shrugging",keywords:["female","girl","confused","indifferent","doubt"],skins:[{unified:"1f937-200d-2640-fe0f",native:"🤷♀️"},{unified:"1f937-1f3fb-200d-2640-fe0f",native:"🤷🏻♀️"},{unified:"1f937-1f3fc-200d-2640-fe0f",native:"🤷🏼♀️"},{unified:"1f937-1f3fd-200d-2640-fe0f",native:"🤷🏽♀️"},{unified:"1f937-1f3fe-200d-2640-fe0f",native:"🤷🏾♀️"},{unified:"1f937-1f3ff-200d-2640-fe0f",native:"🤷🏿♀️"}],version:4},health_worker:{id:"health_worker",name:"Health Worker",keywords:["hospital"],skins:[{unified:"1f9d1-200d-2695-fe0f",native:"🧑⚕️"},{unified:"1f9d1-1f3fb-200d-2695-fe0f",native:"🧑🏻⚕️"},{unified:"1f9d1-1f3fc-200d-2695-fe0f",native:"🧑🏼⚕️"},{unified:"1f9d1-1f3fd-200d-2695-fe0f",native:"🧑🏽⚕️"},{unified:"1f9d1-1f3fe-200d-2695-fe0f",native:"🧑🏾⚕️"},{unified:"1f9d1-1f3ff-200d-2695-fe0f",native:"🧑🏿⚕️"}],version:12.1},"male-doctor":{id:"male-doctor",name:"Man Health Worker",keywords:["male","doctor","nurse","therapist","healthcare","human"],skins:[{unified:"1f468-200d-2695-fe0f",native:"👨⚕️"},{unified:"1f468-1f3fb-200d-2695-fe0f",native:"👨🏻⚕️"},{unified:"1f468-1f3fc-200d-2695-fe0f",native:"👨🏼⚕️"},{unified:"1f468-1f3fd-200d-2695-fe0f",native:"👨🏽⚕️"},{unified:"1f468-1f3fe-200d-2695-fe0f",native:"👨🏾⚕️"},{unified:"1f468-1f3ff-200d-2695-fe0f",native:"👨🏿⚕️"}],version:4},"female-doctor":{id:"female-doctor",name:"Woman Health Worker",keywords:["female","doctor","nurse","therapist","healthcare","human"],skins:[{unified:"1f469-200d-2695-fe0f",native:"👩⚕️"},{unified:"1f469-1f3fb-200d-2695-fe0f",native:"👩🏻⚕️"},{unified:"1f469-1f3fc-200d-2695-fe0f",native:"👩🏼⚕️"},{unified:"1f469-1f3fd-200d-2695-fe0f",native:"👩🏽⚕️"},{unified:"1f469-1f3fe-200d-2695-fe0f",native:"👩🏾⚕️"},{unified:"1f469-1f3ff-200d-2695-fe0f",native:"👩🏿⚕️"}],version:4},student:{id:"student",name:"Student",keywords:["learn"],skins:[{unified:"1f9d1-200d-1f393",native:"🧑🎓"},{unified:"1f9d1-1f3fb-200d-1f393",native:"🧑🏻🎓"},{unified:"1f9d1-1f3fc-200d-1f393",native:"🧑🏼🎓"},{unified:"1f9d1-1f3fd-200d-1f393",native:"🧑🏽🎓"},{unified:"1f9d1-1f3fe-200d-1f393",native:"🧑🏾🎓"},{unified:"1f9d1-1f3ff-200d-1f393",native:"🧑🏿🎓"}],version:12.1},"male-student":{id:"male-student",name:"Man Student",keywords:["male","graduate","human"],skins:[{unified:"1f468-200d-1f393",native:"👨🎓"},{unified:"1f468-1f3fb-200d-1f393",native:"👨🏻🎓"},{unified:"1f468-1f3fc-200d-1f393",native:"👨🏼🎓"},{unified:"1f468-1f3fd-200d-1f393",native:"👨🏽🎓"},{unified:"1f468-1f3fe-200d-1f393",native:"👨🏾🎓"},{unified:"1f468-1f3ff-200d-1f393",native:"👨🏿🎓"}],version:4},"female-student":{id:"female-student",name:"Woman Student",keywords:["female","graduate","human"],skins:[{unified:"1f469-200d-1f393",native:"👩🎓"},{unified:"1f469-1f3fb-200d-1f393",native:"👩🏻🎓"},{unified:"1f469-1f3fc-200d-1f393",native:"👩🏼🎓"},{unified:"1f469-1f3fd-200d-1f393",native:"👩🏽🎓"},{unified:"1f469-1f3fe-200d-1f393",native:"👩🏾🎓"},{unified:"1f469-1f3ff-200d-1f393",native:"👩🏿🎓"}],version:4},teacher:{id:"teacher",name:"Teacher",keywords:["professor"],skins:[{unified:"1f9d1-200d-1f3eb",native:"🧑🏫"},{unified:"1f9d1-1f3fb-200d-1f3eb",native:"🧑🏻🏫"},{unified:"1f9d1-1f3fc-200d-1f3eb",native:"🧑🏼🏫"},{unified:"1f9d1-1f3fd-200d-1f3eb",native:"🧑🏽🏫"},{unified:"1f9d1-1f3fe-200d-1f3eb",native:"🧑🏾🏫"},{unified:"1f9d1-1f3ff-200d-1f3eb",native:"🧑🏿🏫"}],version:12.1},"male-teacher":{id:"male-teacher",name:"Man Teacher",keywords:["male","instructor","professor","human"],skins:[{unified:"1f468-200d-1f3eb",native:"👨🏫"},{unified:"1f468-1f3fb-200d-1f3eb",native:"👨🏻🏫"},{unified:"1f468-1f3fc-200d-1f3eb",native:"👨🏼🏫"},{unified:"1f468-1f3fd-200d-1f3eb",native:"👨🏽🏫"},{unified:"1f468-1f3fe-200d-1f3eb",native:"👨🏾🏫"},{unified:"1f468-1f3ff-200d-1f3eb",native:"👨🏿🏫"}],version:4},"female-teacher":{id:"female-teacher",name:"Woman Teacher",keywords:["female","instructor","professor","human"],skins:[{unified:"1f469-200d-1f3eb",native:"👩🏫"},{unified:"1f469-1f3fb-200d-1f3eb",native:"👩🏻🏫"},{unified:"1f469-1f3fc-200d-1f3eb",native:"👩🏼🏫"},{unified:"1f469-1f3fd-200d-1f3eb",native:"👩🏽🏫"},{unified:"1f469-1f3fe-200d-1f3eb",native:"👩🏾🏫"},{unified:"1f469-1f3ff-200d-1f3eb",native:"👩🏿🏫"}],version:4},judge:{id:"judge",name:"Judge",keywords:["law"],skins:[{unified:"1f9d1-200d-2696-fe0f",native:"🧑⚖️"},{unified:"1f9d1-1f3fb-200d-2696-fe0f",native:"🧑🏻⚖️"},{unified:"1f9d1-1f3fc-200d-2696-fe0f",native:"🧑🏼⚖️"},{unified:"1f9d1-1f3fd-200d-2696-fe0f",native:"🧑🏽⚖️"},{unified:"1f9d1-1f3fe-200d-2696-fe0f",native:"🧑🏾⚖️"},{unified:"1f9d1-1f3ff-200d-2696-fe0f",native:"🧑🏿⚖️"}],version:12.1},"male-judge":{id:"male-judge",name:"Man Judge",keywords:["male","justice","court","human"],skins:[{unified:"1f468-200d-2696-fe0f",native:"👨⚖️"},{unified:"1f468-1f3fb-200d-2696-fe0f",native:"👨🏻⚖️"},{unified:"1f468-1f3fc-200d-2696-fe0f",native:"👨🏼⚖️"},{unified:"1f468-1f3fd-200d-2696-fe0f",native:"👨🏽⚖️"},{unified:"1f468-1f3fe-200d-2696-fe0f",native:"👨🏾⚖️"},{unified:"1f468-1f3ff-200d-2696-fe0f",native:"👨🏿⚖️"}],version:4},"female-judge":{id:"female-judge",name:"Woman Judge",keywords:["female","justice","court","human"],skins:[{unified:"1f469-200d-2696-fe0f",native:"👩⚖️"},{unified:"1f469-1f3fb-200d-2696-fe0f",native:"👩🏻⚖️"},{unified:"1f469-1f3fc-200d-2696-fe0f",native:"👩🏼⚖️"},{unified:"1f469-1f3fd-200d-2696-fe0f",native:"👩🏽⚖️"},{unified:"1f469-1f3fe-200d-2696-fe0f",native:"👩🏾⚖️"},{unified:"1f469-1f3ff-200d-2696-fe0f",native:"👩🏿⚖️"}],version:4},farmer:{id:"farmer",name:"Farmer",keywords:["crops"],skins:[{unified:"1f9d1-200d-1f33e",native:"🧑🌾"},{unified:"1f9d1-1f3fb-200d-1f33e",native:"🧑🏻🌾"},{unified:"1f9d1-1f3fc-200d-1f33e",native:"🧑🏼🌾"},{unified:"1f9d1-1f3fd-200d-1f33e",native:"🧑🏽🌾"},{unified:"1f9d1-1f3fe-200d-1f33e",native:"🧑🏾🌾"},{unified:"1f9d1-1f3ff-200d-1f33e",native:"🧑🏿🌾"}],version:12.1},"male-farmer":{id:"male-farmer",name:"Man Farmer",keywords:["male","rancher","gardener","human"],skins:[{unified:"1f468-200d-1f33e",native:"👨🌾"},{unified:"1f468-1f3fb-200d-1f33e",native:"👨🏻🌾"},{unified:"1f468-1f3fc-200d-1f33e",native:"👨🏼🌾"},{unified:"1f468-1f3fd-200d-1f33e",native:"👨🏽🌾"},{unified:"1f468-1f3fe-200d-1f33e",native:"👨🏾🌾"},{unified:"1f468-1f3ff-200d-1f33e",native:"👨🏿🌾"}],version:4},"female-farmer":{id:"female-farmer",name:"Woman Farmer",keywords:["female","rancher","gardener","human"],skins:[{unified:"1f469-200d-1f33e",native:"👩🌾"},{unified:"1f469-1f3fb-200d-1f33e",native:"👩🏻🌾"},{unified:"1f469-1f3fc-200d-1f33e",native:"👩🏼🌾"},{unified:"1f469-1f3fd-200d-1f33e",native:"👩🏽🌾"},{unified:"1f469-1f3fe-200d-1f33e",native:"👩🏾🌾"},{unified:"1f469-1f3ff-200d-1f33e",native:"👩🏿🌾"}],version:4},cook:{id:"cook",name:"Cook",keywords:["food","kitchen","culinary"],skins:[{unified:"1f9d1-200d-1f373",native:"🧑🍳"},{unified:"1f9d1-1f3fb-200d-1f373",native:"🧑🏻🍳"},{unified:"1f9d1-1f3fc-200d-1f373",native:"🧑🏼🍳"},{unified:"1f9d1-1f3fd-200d-1f373",native:"🧑🏽🍳"},{unified:"1f9d1-1f3fe-200d-1f373",native:"🧑🏾🍳"},{unified:"1f9d1-1f3ff-200d-1f373",native:"🧑🏿🍳"}],version:12.1},"male-cook":{id:"male-cook",name:"Man Cook",keywords:["male","chef","human"],skins:[{unified:"1f468-200d-1f373",native:"👨🍳"},{unified:"1f468-1f3fb-200d-1f373",native:"👨🏻🍳"},{unified:"1f468-1f3fc-200d-1f373",native:"👨🏼🍳"},{unified:"1f468-1f3fd-200d-1f373",native:"👨🏽🍳"},{unified:"1f468-1f3fe-200d-1f373",native:"👨🏾🍳"},{unified:"1f468-1f3ff-200d-1f373",native:"👨🏿🍳"}],version:4},"female-cook":{id:"female-cook",name:"Woman Cook",keywords:["female","chef","human"],skins:[{unified:"1f469-200d-1f373",native:"👩🍳"},{unified:"1f469-1f3fb-200d-1f373",native:"👩🏻🍳"},{unified:"1f469-1f3fc-200d-1f373",native:"👩🏼🍳"},{unified:"1f469-1f3fd-200d-1f373",native:"👩🏽🍳"},{unified:"1f469-1f3fe-200d-1f373",native:"👩🏾🍳"},{unified:"1f469-1f3ff-200d-1f373",native:"👩🏿🍳"}],version:4},mechanic:{id:"mechanic",name:"Mechanic",keywords:["worker","technician"],skins:[{unified:"1f9d1-200d-1f527",native:"🧑🔧"},{unified:"1f9d1-1f3fb-200d-1f527",native:"🧑🏻🔧"},{unified:"1f9d1-1f3fc-200d-1f527",native:"🧑🏼🔧"},{unified:"1f9d1-1f3fd-200d-1f527",native:"🧑🏽🔧"},{unified:"1f9d1-1f3fe-200d-1f527",native:"🧑🏾🔧"},{unified:"1f9d1-1f3ff-200d-1f527",native:"🧑🏿🔧"}],version:12.1},"male-mechanic":{id:"male-mechanic",name:"Man Mechanic",keywords:["male","plumber","human","wrench"],skins:[{unified:"1f468-200d-1f527",native:"👨🔧"},{unified:"1f468-1f3fb-200d-1f527",native:"👨🏻🔧"},{unified:"1f468-1f3fc-200d-1f527",native:"👨🏼🔧"},{unified:"1f468-1f3fd-200d-1f527",native:"👨🏽🔧"},{unified:"1f468-1f3fe-200d-1f527",native:"👨🏾🔧"},{unified:"1f468-1f3ff-200d-1f527",native:"👨🏿🔧"}],version:4},"female-mechanic":{id:"female-mechanic",name:"Woman Mechanic",keywords:["female","plumber","human","wrench"],skins:[{unified:"1f469-200d-1f527",native:"👩🔧"},{unified:"1f469-1f3fb-200d-1f527",native:"👩🏻🔧"},{unified:"1f469-1f3fc-200d-1f527",native:"👩🏼🔧"},{unified:"1f469-1f3fd-200d-1f527",native:"👩🏽🔧"},{unified:"1f469-1f3fe-200d-1f527",native:"👩🏾🔧"},{unified:"1f469-1f3ff-200d-1f527",native:"👩🏿🔧"}],version:4},factory_worker:{id:"factory_worker",name:"Factory Worker",keywords:["labor"],skins:[{unified:"1f9d1-200d-1f3ed",native:"🧑🏭"},{unified:"1f9d1-1f3fb-200d-1f3ed",native:"🧑🏻🏭"},{unified:"1f9d1-1f3fc-200d-1f3ed",native:"🧑🏼🏭"},{unified:"1f9d1-1f3fd-200d-1f3ed",native:"🧑🏽🏭"},{unified:"1f9d1-1f3fe-200d-1f3ed",native:"🧑🏾🏭"},{unified:"1f9d1-1f3ff-200d-1f3ed",native:"🧑🏿🏭"}],version:12.1},"male-factory-worker":{id:"male-factory-worker",name:"Man Factory Worker",keywords:["male","factory-worker","assembly","industrial","human"],skins:[{unified:"1f468-200d-1f3ed",native:"👨🏭"},{unified:"1f468-1f3fb-200d-1f3ed",native:"👨🏻🏭"},{unified:"1f468-1f3fc-200d-1f3ed",native:"👨🏼🏭"},{unified:"1f468-1f3fd-200d-1f3ed",native:"👨🏽🏭"},{unified:"1f468-1f3fe-200d-1f3ed",native:"👨🏾🏭"},{unified:"1f468-1f3ff-200d-1f3ed",native:"👨🏿🏭"}],version:4},"female-factory-worker":{id:"female-factory-worker",name:"Woman Factory Worker",keywords:["female","factory-worker","assembly","industrial","human"],skins:[{unified:"1f469-200d-1f3ed",native:"👩🏭"},{unified:"1f469-1f3fb-200d-1f3ed",native:"👩🏻🏭"},{unified:"1f469-1f3fc-200d-1f3ed",native:"👩🏼🏭"},{unified:"1f469-1f3fd-200d-1f3ed",native:"👩🏽🏭"},{unified:"1f469-1f3fe-200d-1f3ed",native:"👩🏾🏭"},{unified:"1f469-1f3ff-200d-1f3ed",native:"👩🏿🏭"}],version:4},office_worker:{id:"office_worker",name:"Office Worker",keywords:["business"],skins:[{unified:"1f9d1-200d-1f4bc",native:"🧑💼"},{unified:"1f9d1-1f3fb-200d-1f4bc",native:"🧑🏻💼"},{unified:"1f9d1-1f3fc-200d-1f4bc",native:"🧑🏼💼"},{unified:"1f9d1-1f3fd-200d-1f4bc",native:"🧑🏽💼"},{unified:"1f9d1-1f3fe-200d-1f4bc",native:"🧑🏾💼"},{unified:"1f9d1-1f3ff-200d-1f4bc",native:"🧑🏿💼"}],version:12.1},"male-office-worker":{id:"male-office-worker",name:"Man Office Worker",keywords:["male","office-worker","business","manager","human"],skins:[{unified:"1f468-200d-1f4bc",native:"👨💼"},{unified:"1f468-1f3fb-200d-1f4bc",native:"👨🏻💼"},{unified:"1f468-1f3fc-200d-1f4bc",native:"👨🏼💼"},{unified:"1f468-1f3fd-200d-1f4bc",native:"👨🏽💼"},{unified:"1f468-1f3fe-200d-1f4bc",native:"👨🏾💼"},{unified:"1f468-1f3ff-200d-1f4bc",native:"👨🏿💼"}],version:4},"female-office-worker":{id:"female-office-worker",name:"Woman Office Worker",keywords:["female","office-worker","business","manager","human"],skins:[{unified:"1f469-200d-1f4bc",native:"👩💼"},{unified:"1f469-1f3fb-200d-1f4bc",native:"👩🏻💼"},{unified:"1f469-1f3fc-200d-1f4bc",native:"👩🏼💼"},{unified:"1f469-1f3fd-200d-1f4bc",native:"👩🏽💼"},{unified:"1f469-1f3fe-200d-1f4bc",native:"👩🏾💼"},{unified:"1f469-1f3ff-200d-1f4bc",native:"👩🏿💼"}],version:4},scientist:{id:"scientist",name:"Scientist",keywords:["chemistry"],skins:[{unified:"1f9d1-200d-1f52c",native:"🧑🔬"},{unified:"1f9d1-1f3fb-200d-1f52c",native:"🧑🏻🔬"},{unified:"1f9d1-1f3fc-200d-1f52c",native:"🧑🏼🔬"},{unified:"1f9d1-1f3fd-200d-1f52c",native:"🧑🏽🔬"},{unified:"1f9d1-1f3fe-200d-1f52c",native:"🧑🏾🔬"},{unified:"1f9d1-1f3ff-200d-1f52c",native:"🧑🏿🔬"}],version:12.1},"male-scientist":{id:"male-scientist",name:"Man Scientist",keywords:["male","biologist","chemist","engineer","physicist","human"],skins:[{unified:"1f468-200d-1f52c",native:"👨🔬"},{unified:"1f468-1f3fb-200d-1f52c",native:"👨🏻🔬"},{unified:"1f468-1f3fc-200d-1f52c",native:"👨🏼🔬"},{unified:"1f468-1f3fd-200d-1f52c",native:"👨🏽🔬"},{unified:"1f468-1f3fe-200d-1f52c",native:"👨🏾🔬"},{unified:"1f468-1f3ff-200d-1f52c",native:"👨🏿🔬"}],version:4},"female-scientist":{id:"female-scientist",name:"Woman Scientist",keywords:["female","biologist","chemist","engineer","physicist","human"],skins:[{unified:"1f469-200d-1f52c",native:"👩🔬"},{unified:"1f469-1f3fb-200d-1f52c",native:"👩🏻🔬"},{unified:"1f469-1f3fc-200d-1f52c",native:"👩🏼🔬"},{unified:"1f469-1f3fd-200d-1f52c",native:"👩🏽🔬"},{unified:"1f469-1f3fe-200d-1f52c",native:"👩🏾🔬"},{unified:"1f469-1f3ff-200d-1f52c",native:"👩🏿🔬"}],version:4},technologist:{id:"technologist",name:"Technologist",keywords:["computer"],skins:[{unified:"1f9d1-200d-1f4bb",native:"🧑💻"},{unified:"1f9d1-1f3fb-200d-1f4bb",native:"🧑🏻💻"},{unified:"1f9d1-1f3fc-200d-1f4bb",native:"🧑🏼💻"},{unified:"1f9d1-1f3fd-200d-1f4bb",native:"🧑🏽💻"},{unified:"1f9d1-1f3fe-200d-1f4bb",native:"🧑🏾💻"},{unified:"1f9d1-1f3ff-200d-1f4bb",native:"🧑🏿💻"}],version:12.1},"male-technologist":{id:"male-technologist",name:"Man Technologist",keywords:["male","coder","developer","engineer","programmer","software","human","laptop","computer"],skins:[{unified:"1f468-200d-1f4bb",native:"👨💻"},{unified:"1f468-1f3fb-200d-1f4bb",native:"👨🏻💻"},{unified:"1f468-1f3fc-200d-1f4bb",native:"👨🏼💻"},{unified:"1f468-1f3fd-200d-1f4bb",native:"👨🏽💻"},{unified:"1f468-1f3fe-200d-1f4bb",native:"👨🏾💻"},{unified:"1f468-1f3ff-200d-1f4bb",native:"👨🏿💻"}],version:4},"female-technologist":{id:"female-technologist",name:"Woman Technologist",keywords:["female","coder","developer","engineer","programmer","software","human","laptop","computer"],skins:[{unified:"1f469-200d-1f4bb",native:"👩💻"},{unified:"1f469-1f3fb-200d-1f4bb",native:"👩🏻💻"},{unified:"1f469-1f3fc-200d-1f4bb",native:"👩🏼💻"},{unified:"1f469-1f3fd-200d-1f4bb",native:"👩🏽💻"},{unified:"1f469-1f3fe-200d-1f4bb",native:"👩🏾💻"},{unified:"1f469-1f3ff-200d-1f4bb",native:"👩🏿💻"}],version:4},singer:{id:"singer",name:"Singer",keywords:["song","artist","performer"],skins:[{unified:"1f9d1-200d-1f3a4",native:"🧑🎤"},{unified:"1f9d1-1f3fb-200d-1f3a4",native:"🧑🏻🎤"},{unified:"1f9d1-1f3fc-200d-1f3a4",native:"🧑🏼🎤"},{unified:"1f9d1-1f3fd-200d-1f3a4",native:"🧑🏽🎤"},{unified:"1f9d1-1f3fe-200d-1f3a4",native:"🧑🏾🎤"},{unified:"1f9d1-1f3ff-200d-1f3a4",native:"🧑🏿🎤"}],version:12.1},"male-singer":{id:"male-singer",name:"Man Singer",keywords:["male","rockstar","entertainer","human"],skins:[{unified:"1f468-200d-1f3a4",native:"👨🎤"},{unified:"1f468-1f3fb-200d-1f3a4",native:"👨🏻🎤"},{unified:"1f468-1f3fc-200d-1f3a4",native:"👨🏼🎤"},{unified:"1f468-1f3fd-200d-1f3a4",native:"👨🏽🎤"},{unified:"1f468-1f3fe-200d-1f3a4",native:"👨🏾🎤"},{unified:"1f468-1f3ff-200d-1f3a4",native:"👨🏿🎤"}],version:4},"female-singer":{id:"female-singer",name:"Woman Singer",keywords:["female","rockstar","entertainer","human"],skins:[{unified:"1f469-200d-1f3a4",native:"👩🎤"},{unified:"1f469-1f3fb-200d-1f3a4",native:"👩🏻🎤"},{unified:"1f469-1f3fc-200d-1f3a4",native:"👩🏼🎤"},{unified:"1f469-1f3fd-200d-1f3a4",native:"👩🏽🎤"},{unified:"1f469-1f3fe-200d-1f3a4",native:"👩🏾🎤"},{unified:"1f469-1f3ff-200d-1f3a4",native:"👩🏿🎤"}],version:4},artist:{id:"artist",name:"Artist",keywords:["painting","draw","creativity"],skins:[{unified:"1f9d1-200d-1f3a8",native:"🧑🎨"},{unified:"1f9d1-1f3fb-200d-1f3a8",native:"🧑🏻🎨"},{unified:"1f9d1-1f3fc-200d-1f3a8",native:"🧑🏼🎨"},{unified:"1f9d1-1f3fd-200d-1f3a8",native:"🧑🏽🎨"},{unified:"1f9d1-1f3fe-200d-1f3a8",native:"🧑🏾🎨"},{unified:"1f9d1-1f3ff-200d-1f3a8",native:"🧑🏿🎨"}],version:12.1},"male-artist":{id:"male-artist",name:"Man Artist",keywords:["male","painter","human"],skins:[{unified:"1f468-200d-1f3a8",native:"👨🎨"},{unified:"1f468-1f3fb-200d-1f3a8",native:"👨🏻🎨"},{unified:"1f468-1f3fc-200d-1f3a8",native:"👨🏼🎨"},{unified:"1f468-1f3fd-200d-1f3a8",native:"👨🏽🎨"},{unified:"1f468-1f3fe-200d-1f3a8",native:"👨🏾🎨"},{unified:"1f468-1f3ff-200d-1f3a8",native:"👨🏿🎨"}],version:4},"female-artist":{id:"female-artist",name:"Woman Artist",keywords:["female","painter","human"],skins:[{unified:"1f469-200d-1f3a8",native:"👩🎨"},{unified:"1f469-1f3fb-200d-1f3a8",native:"👩🏻🎨"},{unified:"1f469-1f3fc-200d-1f3a8",native:"👩🏼🎨"},{unified:"1f469-1f3fd-200d-1f3a8",native:"👩🏽🎨"},{unified:"1f469-1f3fe-200d-1f3a8",native:"👩🏾🎨"},{unified:"1f469-1f3ff-200d-1f3a8",native:"👩🏿🎨"}],version:4},pilot:{id:"pilot",name:"Pilot",keywords:["fly","plane","airplane"],skins:[{unified:"1f9d1-200d-2708-fe0f",native:"🧑✈️"},{unified:"1f9d1-1f3fb-200d-2708-fe0f",native:"🧑🏻✈️"},{unified:"1f9d1-1f3fc-200d-2708-fe0f",native:"🧑🏼✈️"},{unified:"1f9d1-1f3fd-200d-2708-fe0f",native:"🧑🏽✈️"},{unified:"1f9d1-1f3fe-200d-2708-fe0f",native:"🧑🏾✈️"},{unified:"1f9d1-1f3ff-200d-2708-fe0f",native:"🧑🏿✈️"}],version:12.1},"male-pilot":{id:"male-pilot",name:"Man Pilot",keywords:["male","aviator","plane","human"],skins:[{unified:"1f468-200d-2708-fe0f",native:"👨✈️"},{unified:"1f468-1f3fb-200d-2708-fe0f",native:"👨🏻✈️"},{unified:"1f468-1f3fc-200d-2708-fe0f",native:"👨🏼✈️"},{unified:"1f468-1f3fd-200d-2708-fe0f",native:"👨🏽✈️"},{unified:"1f468-1f3fe-200d-2708-fe0f",native:"👨🏾✈️"},{unified:"1f468-1f3ff-200d-2708-fe0f",native:"👨🏿✈️"}],version:4},"female-pilot":{id:"female-pilot",name:"Woman Pilot",keywords:["female","aviator","plane","human"],skins:[{unified:"1f469-200d-2708-fe0f",native:"👩✈️"},{unified:"1f469-1f3fb-200d-2708-fe0f",native:"👩🏻✈️"},{unified:"1f469-1f3fc-200d-2708-fe0f",native:"👩🏼✈️"},{unified:"1f469-1f3fd-200d-2708-fe0f",native:"👩🏽✈️"},{unified:"1f469-1f3fe-200d-2708-fe0f",native:"👩🏾✈️"},{unified:"1f469-1f3ff-200d-2708-fe0f",native:"👩🏿✈️"}],version:4},astronaut:{id:"astronaut",name:"Astronaut",keywords:["outerspace"],skins:[{unified:"1f9d1-200d-1f680",native:"🧑🚀"},{unified:"1f9d1-1f3fb-200d-1f680",native:"🧑🏻🚀"},{unified:"1f9d1-1f3fc-200d-1f680",native:"🧑🏼🚀"},{unified:"1f9d1-1f3fd-200d-1f680",native:"🧑🏽🚀"},{unified:"1f9d1-1f3fe-200d-1f680",native:"🧑🏾🚀"},{unified:"1f9d1-1f3ff-200d-1f680",native:"🧑🏿🚀"}],version:12.1},"male-astronaut":{id:"male-astronaut",name:"Man Astronaut",keywords:["male","space","rocket","human"],skins:[{unified:"1f468-200d-1f680",native:"👨🚀"},{unified:"1f468-1f3fb-200d-1f680",native:"👨🏻🚀"},{unified:"1f468-1f3fc-200d-1f680",native:"👨🏼🚀"},{unified:"1f468-1f3fd-200d-1f680",native:"👨🏽🚀"},{unified:"1f468-1f3fe-200d-1f680",native:"👨🏾🚀"},{unified:"1f468-1f3ff-200d-1f680",native:"👨🏿🚀"}],version:4},"female-astronaut":{id:"female-astronaut",name:"Woman Astronaut",keywords:["female","space","rocket","human"],skins:[{unified:"1f469-200d-1f680",native:"👩🚀"},{unified:"1f469-1f3fb-200d-1f680",native:"👩🏻🚀"},{unified:"1f469-1f3fc-200d-1f680",native:"👩🏼🚀"},{unified:"1f469-1f3fd-200d-1f680",native:"👩🏽🚀"},{unified:"1f469-1f3fe-200d-1f680",native:"👩🏾🚀"},{unified:"1f469-1f3ff-200d-1f680",native:"👩🏿🚀"}],version:4},firefighter:{id:"firefighter",name:"Firefighter",keywords:["fire"],skins:[{unified:"1f9d1-200d-1f692",native:"🧑🚒"},{unified:"1f9d1-1f3fb-200d-1f692",native:"🧑🏻🚒"},{unified:"1f9d1-1f3fc-200d-1f692",native:"🧑🏼🚒"},{unified:"1f9d1-1f3fd-200d-1f692",native:"🧑🏽🚒"},{unified:"1f9d1-1f3fe-200d-1f692",native:"🧑🏾🚒"},{unified:"1f9d1-1f3ff-200d-1f692",native:"🧑🏿🚒"}],version:12.1},"male-firefighter":{id:"male-firefighter",name:"Man Firefighter",keywords:["male","fireman","human"],skins:[{unified:"1f468-200d-1f692",native:"👨🚒"},{unified:"1f468-1f3fb-200d-1f692",native:"👨🏻🚒"},{unified:"1f468-1f3fc-200d-1f692",native:"👨🏼🚒"},{unified:"1f468-1f3fd-200d-1f692",native:"👨🏽🚒"},{unified:"1f468-1f3fe-200d-1f692",native:"👨🏾🚒"},{unified:"1f468-1f3ff-200d-1f692",native:"👨🏿🚒"}],version:4},"female-firefighter":{id:"female-firefighter",name:"Woman Firefighter",keywords:["female","fireman","human"],skins:[{unified:"1f469-200d-1f692",native:"👩🚒"},{unified:"1f469-1f3fb-200d-1f692",native:"👩🏻🚒"},{unified:"1f469-1f3fc-200d-1f692",native:"👩🏼🚒"},{unified:"1f469-1f3fd-200d-1f692",native:"👩🏽🚒"},{unified:"1f469-1f3fe-200d-1f692",native:"👩🏾🚒"},{unified:"1f469-1f3ff-200d-1f692",native:"👩🏿🚒"}],version:4},cop:{id:"cop",name:"Police Officer",keywords:["cop"],skins:[{unified:"1f46e",native:"👮"},{unified:"1f46e-1f3fb",native:"👮🏻"},{unified:"1f46e-1f3fc",native:"👮🏼"},{unified:"1f46e-1f3fd",native:"👮🏽"},{unified:"1f46e-1f3fe",native:"👮🏾"},{unified:"1f46e-1f3ff",native:"👮🏿"}],version:1},"male-police-officer":{id:"male-police-officer",name:"Man Police Officer",keywords:["male","police-officer","law","legal","enforcement","arrest","911"],skins:[{unified:"1f46e-200d-2642-fe0f",native:"👮♂️"},{unified:"1f46e-1f3fb-200d-2642-fe0f",native:"👮🏻♂️"},{unified:"1f46e-1f3fc-200d-2642-fe0f",native:"👮🏼♂️"},{unified:"1f46e-1f3fd-200d-2642-fe0f",native:"👮🏽♂️"},{unified:"1f46e-1f3fe-200d-2642-fe0f",native:"👮🏾♂️"},{unified:"1f46e-1f3ff-200d-2642-fe0f",native:"👮🏿♂️"}],version:4},"female-police-officer":{id:"female-police-officer",name:"Woman Police Officer",keywords:["female","police-officer","law","legal","enforcement","arrest","911"],skins:[{unified:"1f46e-200d-2640-fe0f",native:"👮♀️"},{unified:"1f46e-1f3fb-200d-2640-fe0f",native:"👮🏻♀️"},{unified:"1f46e-1f3fc-200d-2640-fe0f",native:"👮🏼♀️"},{unified:"1f46e-1f3fd-200d-2640-fe0f",native:"👮🏽♀️"},{unified:"1f46e-1f3fe-200d-2640-fe0f",native:"👮🏾♀️"},{unified:"1f46e-1f3ff-200d-2640-fe0f",native:"👮🏿♀️"}],version:4},sleuth_or_spy:{id:"sleuth_or_spy",name:"Detective",keywords:["sleuth","or","spy","human"],skins:[{unified:"1f575-fe0f",native:"🕵️"},{unified:"1f575-1f3fb",native:"🕵🏻"},{unified:"1f575-1f3fc",native:"🕵🏼"},{unified:"1f575-1f3fd",native:"🕵🏽"},{unified:"1f575-1f3fe",native:"🕵🏾"},{unified:"1f575-1f3ff",native:"🕵🏿"}],version:1},"male-detective":{id:"male-detective",name:"Man Detective",keywords:["male","crime"],skins:[{unified:"1f575-fe0f-200d-2642-fe0f",native:"🕵️♂️"},{unified:"1f575-1f3fb-200d-2642-fe0f",native:"🕵🏻♂️"},{unified:"1f575-1f3fc-200d-2642-fe0f",native:"🕵🏼♂️"},{unified:"1f575-1f3fd-200d-2642-fe0f",native:"🕵🏽♂️"},{unified:"1f575-1f3fe-200d-2642-fe0f",native:"🕵🏾♂️"},{unified:"1f575-1f3ff-200d-2642-fe0f",native:"🕵🏿♂️"}],version:4},"female-detective":{id:"female-detective",name:"Woman Detective",keywords:["female","human","spy"],skins:[{unified:"1f575-fe0f-200d-2640-fe0f",native:"🕵️♀️"},{unified:"1f575-1f3fb-200d-2640-fe0f",native:"🕵🏻♀️"},{unified:"1f575-1f3fc-200d-2640-fe0f",native:"🕵🏼♀️"},{unified:"1f575-1f3fd-200d-2640-fe0f",native:"🕵🏽♀️"},{unified:"1f575-1f3fe-200d-2640-fe0f",native:"🕵🏾♀️"},{unified:"1f575-1f3ff-200d-2640-fe0f",native:"🕵🏿♀️"}],version:4},guardsman:{id:"guardsman",name:"Guard",keywords:["guardsman","protect"],skins:[{unified:"1f482",native:"💂"},{unified:"1f482-1f3fb",native:"💂🏻"},{unified:"1f482-1f3fc",native:"💂🏼"},{unified:"1f482-1f3fd",native:"💂🏽"},{unified:"1f482-1f3fe",native:"💂🏾"},{unified:"1f482-1f3ff",native:"💂🏿"}],version:1},"male-guard":{id:"male-guard",name:"Man Guard",keywords:["male","uk","gb","british","guy","royal"],skins:[{unified:"1f482-200d-2642-fe0f",native:"💂♂️"},{unified:"1f482-1f3fb-200d-2642-fe0f",native:"💂🏻♂️"},{unified:"1f482-1f3fc-200d-2642-fe0f",native:"💂🏼♂️"},{unified:"1f482-1f3fd-200d-2642-fe0f",native:"💂🏽♂️"},{unified:"1f482-1f3fe-200d-2642-fe0f",native:"💂🏾♂️"},{unified:"1f482-1f3ff-200d-2642-fe0f",native:"💂🏿♂️"}],version:4},"female-guard":{id:"female-guard",name:"Woman Guard",keywords:["female","uk","gb","british","royal"],skins:[{unified:"1f482-200d-2640-fe0f",native:"💂♀️"},{unified:"1f482-1f3fb-200d-2640-fe0f",native:"💂🏻♀️"},{unified:"1f482-1f3fc-200d-2640-fe0f",native:"💂🏼♀️"},{unified:"1f482-1f3fd-200d-2640-fe0f",native:"💂🏽♀️"},{unified:"1f482-1f3fe-200d-2640-fe0f",native:"💂🏾♀️"},{unified:"1f482-1f3ff-200d-2640-fe0f",native:"💂🏿♀️"}],version:4},ninja:{id:"ninja",name:"Ninja",keywords:["ninjutsu","skills","japanese"],skins:[{unified:"1f977",native:"🥷"},{unified:"1f977-1f3fb",native:"🥷🏻"},{unified:"1f977-1f3fc",native:"🥷🏼"},{unified:"1f977-1f3fd",native:"🥷🏽"},{unified:"1f977-1f3fe",native:"🥷🏾"},{unified:"1f977-1f3ff",native:"🥷🏿"}],version:13},construction_worker:{id:"construction_worker",name:"Construction Worker",keywords:["labor","build"],skins:[{unified:"1f477",native:"👷"},{unified:"1f477-1f3fb",native:"👷🏻"},{unified:"1f477-1f3fc",native:"👷🏼"},{unified:"1f477-1f3fd",native:"👷🏽"},{unified:"1f477-1f3fe",native:"👷🏾"},{unified:"1f477-1f3ff",native:"👷🏿"}],version:1},"male-construction-worker":{id:"male-construction-worker",name:"Man Construction Worker",keywords:["male","construction-worker","human","wip","guy","build","labor"],skins:[{unified:"1f477-200d-2642-fe0f",native:"👷♂️"},{unified:"1f477-1f3fb-200d-2642-fe0f",native:"👷🏻♂️"},{unified:"1f477-1f3fc-200d-2642-fe0f",native:"👷🏼♂️"},{unified:"1f477-1f3fd-200d-2642-fe0f",native:"👷🏽♂️"},{unified:"1f477-1f3fe-200d-2642-fe0f",native:"👷🏾♂️"},{unified:"1f477-1f3ff-200d-2642-fe0f",native:"👷🏿♂️"}],version:4},"female-construction-worker":{id:"female-construction-worker",name:"Woman Construction Worker",keywords:["female","construction-worker","human","wip","build","labor"],skins:[{unified:"1f477-200d-2640-fe0f",native:"👷♀️"},{unified:"1f477-1f3fb-200d-2640-fe0f",native:"👷🏻♀️"},{unified:"1f477-1f3fc-200d-2640-fe0f",native:"👷🏼♀️"},{unified:"1f477-1f3fd-200d-2640-fe0f",native:"👷🏽♀️"},{unified:"1f477-1f3fe-200d-2640-fe0f",native:"👷🏾♀️"},{unified:"1f477-1f3ff-200d-2640-fe0f",native:"👷🏿♀️"}],version:4},person_with_crown:{id:"person_with_crown",name:"Person with Crown",keywords:["royalty","power"],skins:[{unified:"1fac5",native:"🫅"},{unified:"1fac5-1f3fb",native:"🫅🏻"},{unified:"1fac5-1f3fc",native:"🫅🏼"},{unified:"1fac5-1f3fd",native:"🫅🏽"},{unified:"1fac5-1f3fe",native:"🫅🏾"},{unified:"1fac5-1f3ff",native:"🫅🏿"}],version:14},prince:{id:"prince",name:"Prince",keywords:["boy","man","male","crown","royal","king"],skins:[{unified:"1f934",native:"🤴"},{unified:"1f934-1f3fb",native:"🤴🏻"},{unified:"1f934-1f3fc",native:"🤴🏼"},{unified:"1f934-1f3fd",native:"🤴🏽"},{unified:"1f934-1f3fe",native:"🤴🏾"},{unified:"1f934-1f3ff",native:"🤴🏿"}],version:3},princess:{id:"princess",name:"Princess",keywords:["girl","woman","female","blond","crown","royal","queen"],skins:[{unified:"1f478",native:"👸"},{unified:"1f478-1f3fb",native:"👸🏻"},{unified:"1f478-1f3fc",native:"👸🏼"},{unified:"1f478-1f3fd",native:"👸🏽"},{unified:"1f478-1f3fe",native:"👸🏾"},{unified:"1f478-1f3ff",native:"👸🏿"}],version:1},man_with_turban:{id:"man_with_turban",name:"Man with Turban",keywords:["person","wearing","headdress"],skins:[{unified:"1f473",native:"👳"},{unified:"1f473-1f3fb",native:"👳🏻"},{unified:"1f473-1f3fc",native:"👳🏼"},{unified:"1f473-1f3fd",native:"👳🏽"},{unified:"1f473-1f3fe",native:"👳🏾"},{unified:"1f473-1f3ff",native:"👳🏿"}],version:1},"man-wearing-turban":{id:"man-wearing-turban",name:"Man Wearing Turban",keywords:["wearing-turban","male","indian","hinduism","arabs"],skins:[{unified:"1f473-200d-2642-fe0f",native:"👳♂️"},{unified:"1f473-1f3fb-200d-2642-fe0f",native:"👳🏻♂️"},{unified:"1f473-1f3fc-200d-2642-fe0f",native:"👳🏼♂️"},{unified:"1f473-1f3fd-200d-2642-fe0f",native:"👳🏽♂️"},{unified:"1f473-1f3fe-200d-2642-fe0f",native:"👳🏾♂️"},{unified:"1f473-1f3ff-200d-2642-fe0f",native:"👳🏿♂️"}],version:4},"woman-wearing-turban":{id:"woman-wearing-turban",name:"Woman Wearing Turban",keywords:["wearing-turban","female","indian","hinduism","arabs"],skins:[{unified:"1f473-200d-2640-fe0f",native:"👳♀️"},{unified:"1f473-1f3fb-200d-2640-fe0f",native:"👳🏻♀️"},{unified:"1f473-1f3fc-200d-2640-fe0f",native:"👳🏼♀️"},{unified:"1f473-1f3fd-200d-2640-fe0f",native:"👳🏽♀️"},{unified:"1f473-1f3fe-200d-2640-fe0f",native:"👳🏾♀️"},{unified:"1f473-1f3ff-200d-2640-fe0f",native:"👳🏿♀️"}],version:4},man_with_gua_pi_mao:{id:"man_with_gua_pi_mao",name:"Man with Gua Pi Mao",keywords:["skullcap","male","boy","chinese"],skins:[{unified:"1f472",native:"👲"},{unified:"1f472-1f3fb",native:"👲🏻"},{unified:"1f472-1f3fc",native:"👲🏼"},{unified:"1f472-1f3fd",native:"👲🏽"},{unified:"1f472-1f3fe",native:"👲🏾"},{unified:"1f472-1f3ff",native:"👲🏿"}],version:1},person_with_headscarf:{id:"person_with_headscarf",name:"Woman with Headscarf",keywords:["person","female","hijab","mantilla","tichel"],skins:[{unified:"1f9d5",native:"🧕"},{unified:"1f9d5-1f3fb",native:"🧕🏻"},{unified:"1f9d5-1f3fc",native:"🧕🏼"},{unified:"1f9d5-1f3fd",native:"🧕🏽"},{unified:"1f9d5-1f3fe",native:"🧕🏾"},{unified:"1f9d5-1f3ff",native:"🧕🏿"}],version:5},person_in_tuxedo:{id:"person_in_tuxedo",name:"Man in Tuxedo",keywords:["person","couple","marriage","wedding","groom"],skins:[{unified:"1f935",native:"🤵"},{unified:"1f935-1f3fb",native:"🤵🏻"},{unified:"1f935-1f3fc",native:"🤵🏼"},{unified:"1f935-1f3fd",native:"🤵🏽"},{unified:"1f935-1f3fe",native:"🤵🏾"},{unified:"1f935-1f3ff",native:"🤵🏿"}],version:3},man_in_tuxedo:{id:"man_in_tuxedo",name:"Man in Tuxedo",keywords:["formal","fashion"],skins:[{unified:"1f935-200d-2642-fe0f",native:"🤵♂️"},{unified:"1f935-1f3fb-200d-2642-fe0f",native:"🤵🏻♂️"},{unified:"1f935-1f3fc-200d-2642-fe0f",native:"🤵🏼♂️"},{unified:"1f935-1f3fd-200d-2642-fe0f",native:"🤵🏽♂️"},{unified:"1f935-1f3fe-200d-2642-fe0f",native:"🤵🏾♂️"},{unified:"1f935-1f3ff-200d-2642-fe0f",native:"🤵🏿♂️"}],version:13},woman_in_tuxedo:{id:"woman_in_tuxedo",name:"Woman in Tuxedo",keywords:["formal","fashion"],skins:[{unified:"1f935-200d-2640-fe0f",native:"🤵♀️"},{unified:"1f935-1f3fb-200d-2640-fe0f",native:"🤵🏻♀️"},{unified:"1f935-1f3fc-200d-2640-fe0f",native:"🤵🏼♀️"},{unified:"1f935-1f3fd-200d-2640-fe0f",native:"🤵🏽♀️"},{unified:"1f935-1f3fe-200d-2640-fe0f",native:"🤵🏾♀️"},{unified:"1f935-1f3ff-200d-2640-fe0f",native:"🤵🏿♀️"}],version:13},bride_with_veil:{id:"bride_with_veil",name:"Bride with Veil",keywords:["couple","marriage","wedding","woman"],skins:[{unified:"1f470",native:"👰"},{unified:"1f470-1f3fb",native:"👰🏻"},{unified:"1f470-1f3fc",native:"👰🏼"},{unified:"1f470-1f3fd",native:"👰🏽"},{unified:"1f470-1f3fe",native:"👰🏾"},{unified:"1f470-1f3ff",native:"👰🏿"}],version:1},man_with_veil:{id:"man_with_veil",name:"Man with Veil",keywords:["wedding","marriage"],skins:[{unified:"1f470-200d-2642-fe0f",native:"👰♂️"},{unified:"1f470-1f3fb-200d-2642-fe0f",native:"👰🏻♂️"},{unified:"1f470-1f3fc-200d-2642-fe0f",native:"👰🏼♂️"},{unified:"1f470-1f3fd-200d-2642-fe0f",native:"👰🏽♂️"},{unified:"1f470-1f3fe-200d-2642-fe0f",native:"👰🏾♂️"},{unified:"1f470-1f3ff-200d-2642-fe0f",native:"👰🏿♂️"}],version:13},woman_with_veil:{id:"woman_with_veil",name:"Woman with Veil",keywords:["wedding","marriage"],skins:[{unified:"1f470-200d-2640-fe0f",native:"👰♀️"},{unified:"1f470-1f3fb-200d-2640-fe0f",native:"👰🏻♀️"},{unified:"1f470-1f3fc-200d-2640-fe0f",native:"👰🏼♀️"},{unified:"1f470-1f3fd-200d-2640-fe0f",native:"👰🏽♀️"},{unified:"1f470-1f3fe-200d-2640-fe0f",native:"👰🏾♀️"},{unified:"1f470-1f3ff-200d-2640-fe0f",native:"👰🏿♀️"}],version:13},pregnant_woman:{id:"pregnant_woman",name:"Pregnant Woman",keywords:["baby"],skins:[{unified:"1f930",native:"🤰"},{unified:"1f930-1f3fb",native:"🤰🏻"},{unified:"1f930-1f3fc",native:"🤰🏼"},{unified:"1f930-1f3fd",native:"🤰🏽"},{unified:"1f930-1f3fe",native:"🤰🏾"},{unified:"1f930-1f3ff",native:"🤰🏿"}],version:3},pregnant_man:{id:"pregnant_man",name:"Pregnant Man",keywords:["baby","belly"],skins:[{unified:"1fac3",native:"🫃"},{unified:"1fac3-1f3fb",native:"🫃🏻"},{unified:"1fac3-1f3fc",native:"🫃🏼"},{unified:"1fac3-1f3fd",native:"🫃🏽"},{unified:"1fac3-1f3fe",native:"🫃🏾"},{unified:"1fac3-1f3ff",native:"🫃🏿"}],version:14},pregnant_person:{id:"pregnant_person",name:"Pregnant Person",keywords:["baby","belly"],skins:[{unified:"1fac4",native:"🫄"},{unified:"1fac4-1f3fb",native:"🫄🏻"},{unified:"1fac4-1f3fc",native:"🫄🏼"},{unified:"1fac4-1f3fd",native:"🫄🏽"},{unified:"1fac4-1f3fe",native:"🫄🏾"},{unified:"1fac4-1f3ff",native:"🫄🏿"}],version:14},"breast-feeding":{id:"breast-feeding",name:"Breast-Feeding",keywords:["breast","feeding","nursing","baby"],skins:[{unified:"1f931",native:"🤱"},{unified:"1f931-1f3fb",native:"🤱🏻"},{unified:"1f931-1f3fc",native:"🤱🏼"},{unified:"1f931-1f3fd",native:"🤱🏽"},{unified:"1f931-1f3fe",native:"🤱🏾"},{unified:"1f931-1f3ff",native:"🤱🏿"}],version:5},woman_feeding_baby:{id:"woman_feeding_baby",name:"Woman Feeding Baby",keywords:["birth","food"],skins:[{unified:"1f469-200d-1f37c",native:"👩🍼"},{unified:"1f469-1f3fb-200d-1f37c",native:"👩🏻🍼"},{unified:"1f469-1f3fc-200d-1f37c",native:"👩🏼🍼"},{unified:"1f469-1f3fd-200d-1f37c",native:"👩🏽🍼"},{unified:"1f469-1f3fe-200d-1f37c",native:"👩🏾🍼"},{unified:"1f469-1f3ff-200d-1f37c",native:"👩🏿🍼"}],version:13},man_feeding_baby:{id:"man_feeding_baby",name:"Man Feeding Baby",keywords:["birth","food"],skins:[{unified:"1f468-200d-1f37c",native:"👨🍼"},{unified:"1f468-1f3fb-200d-1f37c",native:"👨🏻🍼"},{unified:"1f468-1f3fc-200d-1f37c",native:"👨🏼🍼"},{unified:"1f468-1f3fd-200d-1f37c",native:"👨🏽🍼"},{unified:"1f468-1f3fe-200d-1f37c",native:"👨🏾🍼"},{unified:"1f468-1f3ff-200d-1f37c",native:"👨🏿🍼"}],version:13},person_feeding_baby:{id:"person_feeding_baby",name:"Person Feeding Baby",keywords:["birth","food"],skins:[{unified:"1f9d1-200d-1f37c",native:"🧑🍼"},{unified:"1f9d1-1f3fb-200d-1f37c",native:"🧑🏻🍼"},{unified:"1f9d1-1f3fc-200d-1f37c",native:"🧑🏼🍼"},{unified:"1f9d1-1f3fd-200d-1f37c",native:"🧑🏽🍼"},{unified:"1f9d1-1f3fe-200d-1f37c",native:"🧑🏾🍼"},{unified:"1f9d1-1f3ff-200d-1f37c",native:"🧑🏿🍼"}],version:13},angel:{id:"angel",name:"Baby Angel",keywords:["heaven","wings","halo"],skins:[{unified:"1f47c",native:"👼"},{unified:"1f47c-1f3fb",native:"👼🏻"},{unified:"1f47c-1f3fc",native:"👼🏼"},{unified:"1f47c-1f3fd",native:"👼🏽"},{unified:"1f47c-1f3fe",native:"👼🏾"},{unified:"1f47c-1f3ff",native:"👼🏿"}],version:1},santa:{id:"santa",name:"Santa Claus",keywords:["festival","man","male","xmas","father","christmas"],skins:[{unified:"1f385",native:"🎅"},{unified:"1f385-1f3fb",native:"🎅🏻"},{unified:"1f385-1f3fc",native:"🎅🏼"},{unified:"1f385-1f3fd",native:"🎅🏽"},{unified:"1f385-1f3fe",native:"🎅🏾"},{unified:"1f385-1f3ff",native:"🎅🏿"}],version:1},mrs_claus:{id:"mrs_claus",name:"Mrs. Claus",keywords:["mrs","mother","christmas","woman","female","xmas"],skins:[{unified:"1f936",native:"🤶"},{unified:"1f936-1f3fb",native:"🤶🏻"},{unified:"1f936-1f3fc",native:"🤶🏼"},{unified:"1f936-1f3fd",native:"🤶🏽"},{unified:"1f936-1f3fe",native:"🤶🏾"},{unified:"1f936-1f3ff",native:"🤶🏿"}],version:3},mx_claus:{id:"mx_claus",name:"Mx Claus",keywords:["christmas"],skins:[{unified:"1f9d1-200d-1f384",native:"🧑🎄"},{unified:"1f9d1-1f3fb-200d-1f384",native:"🧑🏻🎄"},{unified:"1f9d1-1f3fc-200d-1f384",native:"🧑🏼🎄"},{unified:"1f9d1-1f3fd-200d-1f384",native:"🧑🏽🎄"},{unified:"1f9d1-1f3fe-200d-1f384",native:"🧑🏾🎄"},{unified:"1f9d1-1f3ff-200d-1f384",native:"🧑🏿🎄"}],version:13},superhero:{id:"superhero",name:"Superhero",keywords:["marvel"],skins:[{unified:"1f9b8",native:"🦸"},{unified:"1f9b8-1f3fb",native:"🦸🏻"},{unified:"1f9b8-1f3fc",native:"🦸🏼"},{unified:"1f9b8-1f3fd",native:"🦸🏽"},{unified:"1f9b8-1f3fe",native:"🦸🏾"},{unified:"1f9b8-1f3ff",native:"🦸🏿"}],version:11},male_superhero:{id:"male_superhero",name:"Man Superhero",keywords:["male","good","hero","superpowers"],skins:[{unified:"1f9b8-200d-2642-fe0f",native:"🦸♂️"},{unified:"1f9b8-1f3fb-200d-2642-fe0f",native:"🦸🏻♂️"},{unified:"1f9b8-1f3fc-200d-2642-fe0f",native:"🦸🏼♂️"},{unified:"1f9b8-1f3fd-200d-2642-fe0f",native:"🦸🏽♂️"},{unified:"1f9b8-1f3fe-200d-2642-fe0f",native:"🦸🏾♂️"},{unified:"1f9b8-1f3ff-200d-2642-fe0f",native:"🦸🏿♂️"}],version:11},female_superhero:{id:"female_superhero",name:"Woman Superhero",keywords:["female","good","heroine","superpowers"],skins:[{unified:"1f9b8-200d-2640-fe0f",native:"🦸♀️"},{unified:"1f9b8-1f3fb-200d-2640-fe0f",native:"🦸🏻♀️"},{unified:"1f9b8-1f3fc-200d-2640-fe0f",native:"🦸🏼♀️"},{unified:"1f9b8-1f3fd-200d-2640-fe0f",native:"🦸🏽♀️"},{unified:"1f9b8-1f3fe-200d-2640-fe0f",native:"🦸🏾♀️"},{unified:"1f9b8-1f3ff-200d-2640-fe0f",native:"🦸🏿♀️"}],version:11},supervillain:{id:"supervillain",name:"Supervillain",keywords:["marvel"],skins:[{unified:"1f9b9",native:"🦹"},{unified:"1f9b9-1f3fb",native:"🦹🏻"},{unified:"1f9b9-1f3fc",native:"🦹🏼"},{unified:"1f9b9-1f3fd",native:"🦹🏽"},{unified:"1f9b9-1f3fe",native:"🦹🏾"},{unified:"1f9b9-1f3ff",native:"🦹🏿"}],version:11},male_supervillain:{id:"male_supervillain",name:"Man Supervillain",keywords:["male","evil","bad","criminal","hero","superpowers"],skins:[{unified:"1f9b9-200d-2642-fe0f",native:"🦹♂️"},{unified:"1f9b9-1f3fb-200d-2642-fe0f",native:"🦹🏻♂️"},{unified:"1f9b9-1f3fc-200d-2642-fe0f",native:"🦹🏼♂️"},{unified:"1f9b9-1f3fd-200d-2642-fe0f",native:"🦹🏽♂️"},{unified:"1f9b9-1f3fe-200d-2642-fe0f",native:"🦹🏾♂️"},{unified:"1f9b9-1f3ff-200d-2642-fe0f",native:"🦹🏿♂️"}],version:11},female_supervillain:{id:"female_supervillain",name:"Woman Supervillain",keywords:["female","evil","bad","criminal","heroine","superpowers"],skins:[{unified:"1f9b9-200d-2640-fe0f",native:"🦹♀️"},{unified:"1f9b9-1f3fb-200d-2640-fe0f",native:"🦹🏻♀️"},{unified:"1f9b9-1f3fc-200d-2640-fe0f",native:"🦹🏼♀️"},{unified:"1f9b9-1f3fd-200d-2640-fe0f",native:"🦹🏽♀️"},{unified:"1f9b9-1f3fe-200d-2640-fe0f",native:"🦹🏾♀️"},{unified:"1f9b9-1f3ff-200d-2640-fe0f",native:"🦹🏿♀️"}],version:11},mage:{id:"mage",name:"Mage",keywords:["magic"],skins:[{unified:"1f9d9",native:"🧙"},{unified:"1f9d9-1f3fb",native:"🧙🏻"},{unified:"1f9d9-1f3fc",native:"🧙🏼"},{unified:"1f9d9-1f3fd",native:"🧙🏽"},{unified:"1f9d9-1f3fe",native:"🧙🏾"},{unified:"1f9d9-1f3ff",native:"🧙🏿"}],version:5},male_mage:{id:"male_mage",name:"Man Mage",keywords:["male","sorcerer"],skins:[{unified:"1f9d9-200d-2642-fe0f",native:"🧙♂️"},{unified:"1f9d9-1f3fb-200d-2642-fe0f",native:"🧙🏻♂️"},{unified:"1f9d9-1f3fc-200d-2642-fe0f",native:"🧙🏼♂️"},{unified:"1f9d9-1f3fd-200d-2642-fe0f",native:"🧙🏽♂️"},{unified:"1f9d9-1f3fe-200d-2642-fe0f",native:"🧙🏾♂️"},{unified:"1f9d9-1f3ff-200d-2642-fe0f",native:"🧙🏿♂️"}],version:5},female_mage:{id:"female_mage",name:"Woman Mage",keywords:["female","witch"],skins:[{unified:"1f9d9-200d-2640-fe0f",native:"🧙♀️"},{unified:"1f9d9-1f3fb-200d-2640-fe0f",native:"🧙🏻♀️"},{unified:"1f9d9-1f3fc-200d-2640-fe0f",native:"🧙🏼♀️"},{unified:"1f9d9-1f3fd-200d-2640-fe0f",native:"🧙🏽♀️"},{unified:"1f9d9-1f3fe-200d-2640-fe0f",native:"🧙🏾♀️"},{unified:"1f9d9-1f3ff-200d-2640-fe0f",native:"🧙🏿♀️"}],version:5},fairy:{id:"fairy",name:"Fairy",keywords:["wings","magical"],skins:[{unified:"1f9da",native:"🧚"},{unified:"1f9da-1f3fb",native:"🧚🏻"},{unified:"1f9da-1f3fc",native:"🧚🏼"},{unified:"1f9da-1f3fd",native:"🧚🏽"},{unified:"1f9da-1f3fe",native:"🧚🏾"},{unified:"1f9da-1f3ff",native:"🧚🏿"}],version:5},male_fairy:{id:"male_fairy",name:"Man Fairy",keywords:["male"],skins:[{unified:"1f9da-200d-2642-fe0f",native:"🧚♂️"},{unified:"1f9da-1f3fb-200d-2642-fe0f",native:"🧚🏻♂️"},{unified:"1f9da-1f3fc-200d-2642-fe0f",native:"🧚🏼♂️"},{unified:"1f9da-1f3fd-200d-2642-fe0f",native:"🧚🏽♂️"},{unified:"1f9da-1f3fe-200d-2642-fe0f",native:"🧚🏾♂️"},{unified:"1f9da-1f3ff-200d-2642-fe0f",native:"🧚🏿♂️"}],version:5},female_fairy:{id:"female_fairy",name:"Woman Fairy",keywords:["female"],skins:[{unified:"1f9da-200d-2640-fe0f",native:"🧚♀️"},{unified:"1f9da-1f3fb-200d-2640-fe0f",native:"🧚🏻♀️"},{unified:"1f9da-1f3fc-200d-2640-fe0f",native:"🧚🏼♀️"},{unified:"1f9da-1f3fd-200d-2640-fe0f",native:"🧚🏽♀️"},{unified:"1f9da-1f3fe-200d-2640-fe0f",native:"🧚🏾♀️"},{unified:"1f9da-1f3ff-200d-2640-fe0f",native:"🧚🏿♀️"}],version:5},vampire:{id:"vampire",name:"Vampire",keywords:["blood","twilight"],skins:[{unified:"1f9db",native:"🧛"},{unified:"1f9db-1f3fb",native:"🧛🏻"},{unified:"1f9db-1f3fc",native:"🧛🏼"},{unified:"1f9db-1f3fd",native:"🧛🏽"},{unified:"1f9db-1f3fe",native:"🧛🏾"},{unified:"1f9db-1f3ff",native:"🧛🏿"}],version:5},male_vampire:{id:"male_vampire",name:"Man Vampire",keywords:["male","dracula"],skins:[{unified:"1f9db-200d-2642-fe0f",native:"🧛♂️"},{unified:"1f9db-1f3fb-200d-2642-fe0f",native:"🧛🏻♂️"},{unified:"1f9db-1f3fc-200d-2642-fe0f",native:"🧛🏼♂️"},{unified:"1f9db-1f3fd-200d-2642-fe0f",native:"🧛🏽♂️"},{unified:"1f9db-1f3fe-200d-2642-fe0f",native:"🧛🏾♂️"},{unified:"1f9db-1f3ff-200d-2642-fe0f",native:"🧛🏿♂️"}],version:5},female_vampire:{id:"female_vampire",name:"Woman Vampire",keywords:["female"],skins:[{unified:"1f9db-200d-2640-fe0f",native:"🧛♀️"},{unified:"1f9db-1f3fb-200d-2640-fe0f",native:"🧛🏻♀️"},{unified:"1f9db-1f3fc-200d-2640-fe0f",native:"🧛🏼♀️"},{unified:"1f9db-1f3fd-200d-2640-fe0f",native:"🧛🏽♀️"},{unified:"1f9db-1f3fe-200d-2640-fe0f",native:"🧛🏾♀️"},{unified:"1f9db-1f3ff-200d-2640-fe0f",native:"🧛🏿♀️"}],version:5},merperson:{id:"merperson",name:"Merperson",keywords:["sea"],skins:[{unified:"1f9dc",native:"🧜"},{unified:"1f9dc-1f3fb",native:"🧜🏻"},{unified:"1f9dc-1f3fc",native:"🧜🏼"},{unified:"1f9dc-1f3fd",native:"🧜🏽"},{unified:"1f9dc-1f3fe",native:"🧜🏾"},{unified:"1f9dc-1f3ff",native:"🧜🏿"}],version:5},merman:{id:"merman",name:"Merman",keywords:["man","male","triton"],skins:[{unified:"1f9dc-200d-2642-fe0f",native:"🧜♂️"},{unified:"1f9dc-1f3fb-200d-2642-fe0f",native:"🧜🏻♂️"},{unified:"1f9dc-1f3fc-200d-2642-fe0f",native:"🧜🏼♂️"},{unified:"1f9dc-1f3fd-200d-2642-fe0f",native:"🧜🏽♂️"},{unified:"1f9dc-1f3fe-200d-2642-fe0f",native:"🧜🏾♂️"},{unified:"1f9dc-1f3ff-200d-2642-fe0f",native:"🧜🏿♂️"}],version:5},mermaid:{id:"mermaid",name:"Mermaid",keywords:["woman","female","merwoman","ariel"],skins:[{unified:"1f9dc-200d-2640-fe0f",native:"🧜♀️"},{unified:"1f9dc-1f3fb-200d-2640-fe0f",native:"🧜🏻♀️"},{unified:"1f9dc-1f3fc-200d-2640-fe0f",native:"🧜🏼♀️"},{unified:"1f9dc-1f3fd-200d-2640-fe0f",native:"🧜🏽♀️"},{unified:"1f9dc-1f3fe-200d-2640-fe0f",native:"🧜🏾♀️"},{unified:"1f9dc-1f3ff-200d-2640-fe0f",native:"🧜🏿♀️"}],version:5},elf:{id:"elf",name:"Elf",keywords:["magical"],skins:[{unified:"1f9dd",native:"🧝"},{unified:"1f9dd-1f3fb",native:"🧝🏻"},{unified:"1f9dd-1f3fc",native:"🧝🏼"},{unified:"1f9dd-1f3fd",native:"🧝🏽"},{unified:"1f9dd-1f3fe",native:"🧝🏾"},{unified:"1f9dd-1f3ff",native:"🧝🏿"}],version:5},male_elf:{id:"male_elf",name:"Man Elf",keywords:["male"],skins:[{unified:"1f9dd-200d-2642-fe0f",native:"🧝♂️"},{unified:"1f9dd-1f3fb-200d-2642-fe0f",native:"🧝🏻♂️"},{unified:"1f9dd-1f3fc-200d-2642-fe0f",native:"🧝🏼♂️"},{unified:"1f9dd-1f3fd-200d-2642-fe0f",native:"🧝🏽♂️"},{unified:"1f9dd-1f3fe-200d-2642-fe0f",native:"🧝🏾♂️"},{unified:"1f9dd-1f3ff-200d-2642-fe0f",native:"🧝🏿♂️"}],version:5},female_elf:{id:"female_elf",name:"Woman Elf",keywords:["female"],skins:[{unified:"1f9dd-200d-2640-fe0f",native:"🧝♀️"},{unified:"1f9dd-1f3fb-200d-2640-fe0f",native:"🧝🏻♀️"},{unified:"1f9dd-1f3fc-200d-2640-fe0f",native:"🧝🏼♀️"},{unified:"1f9dd-1f3fd-200d-2640-fe0f",native:"🧝🏽♀️"},{unified:"1f9dd-1f3fe-200d-2640-fe0f",native:"🧝🏾♀️"},{unified:"1f9dd-1f3ff-200d-2640-fe0f",native:"🧝🏿♀️"}],version:5},genie:{id:"genie",name:"Genie",keywords:["magical","wishes"],skins:[{unified:"1f9de",native:"🧞"}],version:5},male_genie:{id:"male_genie",name:"Man Genie",keywords:["male"],skins:[{unified:"1f9de-200d-2642-fe0f",native:"🧞♂️"}],version:5},female_genie:{id:"female_genie",name:"Woman Genie",keywords:["female"],skins:[{unified:"1f9de-200d-2640-fe0f",native:"🧞♀️"}],version:5},zombie:{id:"zombie",name:"Zombie",keywords:["dead"],skins:[{unified:"1f9df",native:"🧟"}],version:5},male_zombie:{id:"male_zombie",name:"Man Zombie",keywords:["male","dracula","undead","walking","dead"],skins:[{unified:"1f9df-200d-2642-fe0f",native:"🧟♂️"}],version:5},female_zombie:{id:"female_zombie",name:"Woman Zombie",keywords:["female","undead","walking","dead"],skins:[{unified:"1f9df-200d-2640-fe0f",native:"🧟♀️"}],version:5},troll:{id:"troll",name:"Troll",keywords:["mystical","monster"],skins:[{unified:"1f9cc",native:"🧌"}],version:14},massage:{id:"massage",name:"Face Massage",keywords:["person","getting","relax"],skins:[{unified:"1f486",native:"💆"},{unified:"1f486-1f3fb",native:"💆🏻"},{unified:"1f486-1f3fc",native:"💆🏼"},{unified:"1f486-1f3fd",native:"💆🏽"},{unified:"1f486-1f3fe",native:"💆🏾"},{unified:"1f486-1f3ff",native:"💆🏿"}],version:1},"man-getting-massage":{id:"man-getting-massage",name:"Man Getting Massage",keywords:["getting-massage","male","boy","head"],skins:[{unified:"1f486-200d-2642-fe0f",native:"💆♂️"},{unified:"1f486-1f3fb-200d-2642-fe0f",native:"💆🏻♂️"},{unified:"1f486-1f3fc-200d-2642-fe0f",native:"💆🏼♂️"},{unified:"1f486-1f3fd-200d-2642-fe0f",native:"💆🏽♂️"},{unified:"1f486-1f3fe-200d-2642-fe0f",native:"💆🏾♂️"},{unified:"1f486-1f3ff-200d-2642-fe0f",native:"💆🏿♂️"}],version:4},"woman-getting-massage":{id:"woman-getting-massage",name:"Woman Getting Massage",keywords:["getting-massage","female","girl","head"],skins:[{unified:"1f486-200d-2640-fe0f",native:"💆♀️"},{unified:"1f486-1f3fb-200d-2640-fe0f",native:"💆🏻♀️"},{unified:"1f486-1f3fc-200d-2640-fe0f",native:"💆🏼♀️"},{unified:"1f486-1f3fd-200d-2640-fe0f",native:"💆🏽♀️"},{unified:"1f486-1f3fe-200d-2640-fe0f",native:"💆🏾♀️"},{unified:"1f486-1f3ff-200d-2640-fe0f",native:"💆🏿♀️"}],version:4},haircut:{id:"haircut",name:"Haircut",keywords:["person","getting","hairstyle"],skins:[{unified:"1f487",native:"💇"},{unified:"1f487-1f3fb",native:"💇🏻"},{unified:"1f487-1f3fc",native:"💇🏼"},{unified:"1f487-1f3fd",native:"💇🏽"},{unified:"1f487-1f3fe",native:"💇🏾"},{unified:"1f487-1f3ff",native:"💇🏿"}],version:1},"man-getting-haircut":{id:"man-getting-haircut",name:"Man Getting Haircut",keywords:["getting-haircut","male","boy"],skins:[{unified:"1f487-200d-2642-fe0f",native:"💇♂️"},{unified:"1f487-1f3fb-200d-2642-fe0f",native:"💇🏻♂️"},{unified:"1f487-1f3fc-200d-2642-fe0f",native:"💇🏼♂️"},{unified:"1f487-1f3fd-200d-2642-fe0f",native:"💇🏽♂️"},{unified:"1f487-1f3fe-200d-2642-fe0f",native:"💇🏾♂️"},{unified:"1f487-1f3ff-200d-2642-fe0f",native:"💇🏿♂️"}],version:4},"woman-getting-haircut":{id:"woman-getting-haircut",name:"Woman Getting Haircut",keywords:["getting-haircut","female","girl"],skins:[{unified:"1f487-200d-2640-fe0f",native:"💇♀️"},{unified:"1f487-1f3fb-200d-2640-fe0f",native:"💇🏻♀️"},{unified:"1f487-1f3fc-200d-2640-fe0f",native:"💇🏼♀️"},{unified:"1f487-1f3fd-200d-2640-fe0f",native:"💇🏽♀️"},{unified:"1f487-1f3fe-200d-2640-fe0f",native:"💇🏾♀️"},{unified:"1f487-1f3ff-200d-2640-fe0f",native:"💇🏿♀️"}],version:4},walking:{id:"walking",name:"Pedestrian",keywords:["walking","person","move"],skins:[{unified:"1f6b6",native:"🚶"},{unified:"1f6b6-1f3fb",native:"🚶🏻"},{unified:"1f6b6-1f3fc",native:"🚶🏼"},{unified:"1f6b6-1f3fd",native:"🚶🏽"},{unified:"1f6b6-1f3fe",native:"🚶🏾"},{unified:"1f6b6-1f3ff",native:"🚶🏿"}],version:1},"man-walking":{id:"man-walking",name:"Man Walking",keywords:["human","feet","steps"],skins:[{unified:"1f6b6-200d-2642-fe0f",native:"🚶♂️"},{unified:"1f6b6-1f3fb-200d-2642-fe0f",native:"🚶🏻♂️"},{unified:"1f6b6-1f3fc-200d-2642-fe0f",native:"🚶🏼♂️"},{unified:"1f6b6-1f3fd-200d-2642-fe0f",native:"🚶🏽♂️"},{unified:"1f6b6-1f3fe-200d-2642-fe0f",native:"🚶🏾♂️"},{unified:"1f6b6-1f3ff-200d-2642-fe0f",native:"🚶🏿♂️"}],version:4},"woman-walking":{id:"woman-walking",name:"Woman Walking",keywords:["human","feet","steps","female"],skins:[{unified:"1f6b6-200d-2640-fe0f",native:"🚶♀️"},{unified:"1f6b6-1f3fb-200d-2640-fe0f",native:"🚶🏻♀️"},{unified:"1f6b6-1f3fc-200d-2640-fe0f",native:"🚶🏼♀️"},{unified:"1f6b6-1f3fd-200d-2640-fe0f",native:"🚶🏽♀️"},{unified:"1f6b6-1f3fe-200d-2640-fe0f",native:"🚶🏾♀️"},{unified:"1f6b6-1f3ff-200d-2640-fe0f",native:"🚶🏿♀️"}],version:4},standing_person:{id:"standing_person",name:"Standing Person",keywords:["still"],skins:[{unified:"1f9cd",native:"🧍"},{unified:"1f9cd-1f3fb",native:"🧍🏻"},{unified:"1f9cd-1f3fc",native:"🧍🏼"},{unified:"1f9cd-1f3fd",native:"🧍🏽"},{unified:"1f9cd-1f3fe",native:"🧍🏾"},{unified:"1f9cd-1f3ff",native:"🧍🏿"}],version:12},man_standing:{id:"man_standing",name:"Man Standing",keywords:["still"],skins:[{unified:"1f9cd-200d-2642-fe0f",native:"🧍♂️"},{unified:"1f9cd-1f3fb-200d-2642-fe0f",native:"🧍🏻♂️"},{unified:"1f9cd-1f3fc-200d-2642-fe0f",native:"🧍🏼♂️"},{unified:"1f9cd-1f3fd-200d-2642-fe0f",native:"🧍🏽♂️"},{unified:"1f9cd-1f3fe-200d-2642-fe0f",native:"🧍🏾♂️"},{unified:"1f9cd-1f3ff-200d-2642-fe0f",native:"🧍🏿♂️"}],version:12},woman_standing:{id:"woman_standing",name:"Woman Standing",keywords:["still"],skins:[{unified:"1f9cd-200d-2640-fe0f",native:"🧍♀️"},{unified:"1f9cd-1f3fb-200d-2640-fe0f",native:"🧍🏻♀️"},{unified:"1f9cd-1f3fc-200d-2640-fe0f",native:"🧍🏼♀️"},{unified:"1f9cd-1f3fd-200d-2640-fe0f",native:"🧍🏽♀️"},{unified:"1f9cd-1f3fe-200d-2640-fe0f",native:"🧍🏾♀️"},{unified:"1f9cd-1f3ff-200d-2640-fe0f",native:"🧍🏿♀️"}],version:12},kneeling_person:{id:"kneeling_person",name:"Kneeling Person",keywords:["pray","respectful"],skins:[{unified:"1f9ce",native:"🧎"},{unified:"1f9ce-1f3fb",native:"🧎🏻"},{unified:"1f9ce-1f3fc",native:"🧎🏼"},{unified:"1f9ce-1f3fd",native:"🧎🏽"},{unified:"1f9ce-1f3fe",native:"🧎🏾"},{unified:"1f9ce-1f3ff",native:"🧎🏿"}],version:12},man_kneeling:{id:"man_kneeling",name:"Man Kneeling",keywords:["pray","respectful"],skins:[{unified:"1f9ce-200d-2642-fe0f",native:"🧎♂️"},{unified:"1f9ce-1f3fb-200d-2642-fe0f",native:"🧎🏻♂️"},{unified:"1f9ce-1f3fc-200d-2642-fe0f",native:"🧎🏼♂️"},{unified:"1f9ce-1f3fd-200d-2642-fe0f",native:"🧎🏽♂️"},{unified:"1f9ce-1f3fe-200d-2642-fe0f",native:"🧎🏾♂️"},{unified:"1f9ce-1f3ff-200d-2642-fe0f",native:"🧎🏿♂️"}],version:12},woman_kneeling:{id:"woman_kneeling",name:"Woman Kneeling",keywords:["respectful","pray"],skins:[{unified:"1f9ce-200d-2640-fe0f",native:"🧎♀️"},{unified:"1f9ce-1f3fb-200d-2640-fe0f",native:"🧎🏻♀️"},{unified:"1f9ce-1f3fc-200d-2640-fe0f",native:"🧎🏼♀️"},{unified:"1f9ce-1f3fd-200d-2640-fe0f",native:"🧎🏽♀️"},{unified:"1f9ce-1f3fe-200d-2640-fe0f",native:"🧎🏾♀️"},{unified:"1f9ce-1f3ff-200d-2640-fe0f",native:"🧎🏿♀️"}],version:12},person_with_probing_cane:{id:"person_with_probing_cane",name:"Person with White Cane",keywords:["probing","blind"],skins:[{unified:"1f9d1-200d-1f9af",native:"🧑🦯"},{unified:"1f9d1-1f3fb-200d-1f9af",native:"🧑🏻🦯"},{unified:"1f9d1-1f3fc-200d-1f9af",native:"🧑🏼🦯"},{unified:"1f9d1-1f3fd-200d-1f9af",native:"🧑🏽🦯"},{unified:"1f9d1-1f3fe-200d-1f9af",native:"🧑🏾🦯"},{unified:"1f9d1-1f3ff-200d-1f9af",native:"🧑🏿🦯"}],version:12.1},man_with_probing_cane:{id:"man_with_probing_cane",name:"Man with White Cane",keywords:["probing","blind"],skins:[{unified:"1f468-200d-1f9af",native:"👨🦯"},{unified:"1f468-1f3fb-200d-1f9af",native:"👨🏻🦯"},{unified:"1f468-1f3fc-200d-1f9af",native:"👨🏼🦯"},{unified:"1f468-1f3fd-200d-1f9af",native:"👨🏽🦯"},{unified:"1f468-1f3fe-200d-1f9af",native:"👨🏾🦯"},{unified:"1f468-1f3ff-200d-1f9af",native:"👨🏿🦯"}],version:12},woman_with_probing_cane:{id:"woman_with_probing_cane",name:"Woman with White Cane",keywords:["probing","blind"],skins:[{unified:"1f469-200d-1f9af",native:"👩🦯"},{unified:"1f469-1f3fb-200d-1f9af",native:"👩🏻🦯"},{unified:"1f469-1f3fc-200d-1f9af",native:"👩🏼🦯"},{unified:"1f469-1f3fd-200d-1f9af",native:"👩🏽🦯"},{unified:"1f469-1f3fe-200d-1f9af",native:"👩🏾🦯"},{unified:"1f469-1f3ff-200d-1f9af",native:"👩🏿🦯"}],version:12},person_in_motorized_wheelchair:{id:"person_in_motorized_wheelchair",name:"Person in Motorized Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f9d1-200d-1f9bc",native:"🧑🦼"},{unified:"1f9d1-1f3fb-200d-1f9bc",native:"🧑🏻🦼"},{unified:"1f9d1-1f3fc-200d-1f9bc",native:"🧑🏼🦼"},{unified:"1f9d1-1f3fd-200d-1f9bc",native:"🧑🏽🦼"},{unified:"1f9d1-1f3fe-200d-1f9bc",native:"🧑🏾🦼"},{unified:"1f9d1-1f3ff-200d-1f9bc",native:"🧑🏿🦼"}],version:12.1},man_in_motorized_wheelchair:{id:"man_in_motorized_wheelchair",name:"Man in Motorized Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f468-200d-1f9bc",native:"👨🦼"},{unified:"1f468-1f3fb-200d-1f9bc",native:"👨🏻🦼"},{unified:"1f468-1f3fc-200d-1f9bc",native:"👨🏼🦼"},{unified:"1f468-1f3fd-200d-1f9bc",native:"👨🏽🦼"},{unified:"1f468-1f3fe-200d-1f9bc",native:"👨🏾🦼"},{unified:"1f468-1f3ff-200d-1f9bc",native:"👨🏿🦼"}],version:12},woman_in_motorized_wheelchair:{id:"woman_in_motorized_wheelchair",name:"Woman in Motorized Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f469-200d-1f9bc",native:"👩🦼"},{unified:"1f469-1f3fb-200d-1f9bc",native:"👩🏻🦼"},{unified:"1f469-1f3fc-200d-1f9bc",native:"👩🏼🦼"},{unified:"1f469-1f3fd-200d-1f9bc",native:"👩🏽🦼"},{unified:"1f469-1f3fe-200d-1f9bc",native:"👩🏾🦼"},{unified:"1f469-1f3ff-200d-1f9bc",native:"👩🏿🦼"}],version:12},person_in_manual_wheelchair:{id:"person_in_manual_wheelchair",name:"Person in Manual Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f9d1-200d-1f9bd",native:"🧑🦽"},{unified:"1f9d1-1f3fb-200d-1f9bd",native:"🧑🏻🦽"},{unified:"1f9d1-1f3fc-200d-1f9bd",native:"🧑🏼🦽"},{unified:"1f9d1-1f3fd-200d-1f9bd",native:"🧑🏽🦽"},{unified:"1f9d1-1f3fe-200d-1f9bd",native:"🧑🏾🦽"},{unified:"1f9d1-1f3ff-200d-1f9bd",native:"🧑🏿🦽"}],version:12.1},man_in_manual_wheelchair:{id:"man_in_manual_wheelchair",name:"Man in Manual Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f468-200d-1f9bd",native:"👨🦽"},{unified:"1f468-1f3fb-200d-1f9bd",native:"👨🏻🦽"},{unified:"1f468-1f3fc-200d-1f9bd",native:"👨🏼🦽"},{unified:"1f468-1f3fd-200d-1f9bd",native:"👨🏽🦽"},{unified:"1f468-1f3fe-200d-1f9bd",native:"👨🏾🦽"},{unified:"1f468-1f3ff-200d-1f9bd",native:"👨🏿🦽"}],version:12},woman_in_manual_wheelchair:{id:"woman_in_manual_wheelchair",name:"Woman in Manual Wheelchair",keywords:["disability","accessibility"],skins:[{unified:"1f469-200d-1f9bd",native:"👩🦽"},{unified:"1f469-1f3fb-200d-1f9bd",native:"👩🏻🦽"},{unified:"1f469-1f3fc-200d-1f9bd",native:"👩🏼🦽"},{unified:"1f469-1f3fd-200d-1f9bd",native:"👩🏽🦽"},{unified:"1f469-1f3fe-200d-1f9bd",native:"👩🏾🦽"},{unified:"1f469-1f3ff-200d-1f9bd",native:"👩🏿🦽"}],version:12},runner:{id:"runner",name:"Runner",keywords:["running","person","move"],skins:[{unified:"1f3c3",native:"🏃"},{unified:"1f3c3-1f3fb",native:"🏃🏻"},{unified:"1f3c3-1f3fc",native:"🏃🏼"},{unified:"1f3c3-1f3fd",native:"🏃🏽"},{unified:"1f3c3-1f3fe",native:"🏃🏾"},{unified:"1f3c3-1f3ff",native:"🏃🏿"}],version:1},"man-running":{id:"man-running",name:"Man Running",keywords:["walking","exercise","race"],skins:[{unified:"1f3c3-200d-2642-fe0f",native:"🏃♂️"},{unified:"1f3c3-1f3fb-200d-2642-fe0f",native:"🏃🏻♂️"},{unified:"1f3c3-1f3fc-200d-2642-fe0f",native:"🏃🏼♂️"},{unified:"1f3c3-1f3fd-200d-2642-fe0f",native:"🏃🏽♂️"},{unified:"1f3c3-1f3fe-200d-2642-fe0f",native:"🏃🏾♂️"},{unified:"1f3c3-1f3ff-200d-2642-fe0f",native:"🏃🏿♂️"}],version:4},"woman-running":{id:"woman-running",name:"Woman Running",keywords:["walking","exercise","race","female"],skins:[{unified:"1f3c3-200d-2640-fe0f",native:"🏃♀️"},{unified:"1f3c3-1f3fb-200d-2640-fe0f",native:"🏃🏻♀️"},{unified:"1f3c3-1f3fc-200d-2640-fe0f",native:"🏃🏼♀️"},{unified:"1f3c3-1f3fd-200d-2640-fe0f",native:"🏃🏽♀️"},{unified:"1f3c3-1f3fe-200d-2640-fe0f",native:"🏃🏾♀️"},{unified:"1f3c3-1f3ff-200d-2640-fe0f",native:"🏃🏿♀️"}],version:4},dancer:{id:"dancer",name:"Dancer",keywords:["woman","dancing","female","girl","fun"],skins:[{unified:"1f483",native:"💃"},{unified:"1f483-1f3fb",native:"💃🏻"},{unified:"1f483-1f3fc",native:"💃🏼"},{unified:"1f483-1f3fd",native:"💃🏽"},{unified:"1f483-1f3fe",native:"💃🏾"},{unified:"1f483-1f3ff",native:"💃🏿"}],version:1},man_dancing:{id:"man_dancing",name:"Man Dancing",keywords:["male","boy","fun","dancer"],skins:[{unified:"1f57a",native:"🕺"},{unified:"1f57a-1f3fb",native:"🕺🏻"},{unified:"1f57a-1f3fc",native:"🕺🏼"},{unified:"1f57a-1f3fd",native:"🕺🏽"},{unified:"1f57a-1f3fe",native:"🕺🏾"},{unified:"1f57a-1f3ff",native:"🕺🏿"}],version:3},man_in_business_suit_levitating:{id:"man_in_business_suit_levitating",name:"Person in Suit Levitating",keywords:["man","business","levitate","hover","jump"],skins:[{unified:"1f574-fe0f",native:"🕴️"},{unified:"1f574-1f3fb",native:"🕴🏻"},{unified:"1f574-1f3fc",native:"🕴🏼"},{unified:"1f574-1f3fd",native:"🕴🏽"},{unified:"1f574-1f3fe",native:"🕴🏾"},{unified:"1f574-1f3ff",native:"🕴🏿"}],version:1},dancers:{id:"dancers",name:"Woman with Bunny Ears",keywords:["dancers","people","perform","costume"],skins:[{unified:"1f46f",native:"👯"}],version:1},"men-with-bunny-ears-partying":{id:"men-with-bunny-ears-partying",name:"Men with Bunny Ears",keywords:["with-bunny-ears-partying","man","male","boys"],skins:[{unified:"1f46f-200d-2642-fe0f",native:"👯♂️"}],version:4},"women-with-bunny-ears-partying":{id:"women-with-bunny-ears-partying",name:"Women with Bunny Ears",keywords:["with-bunny-ears-partying","woman","female","girls"],skins:[{unified:"1f46f-200d-2640-fe0f",native:"👯♀️"}],version:4},person_in_steamy_room:{id:"person_in_steamy_room",name:"Person in Steamy Room",keywords:["relax","spa"],skins:[{unified:"1f9d6",native:"🧖"},{unified:"1f9d6-1f3fb",native:"🧖🏻"},{unified:"1f9d6-1f3fc",native:"🧖🏼"},{unified:"1f9d6-1f3fd",native:"🧖🏽"},{unified:"1f9d6-1f3fe",native:"🧖🏾"},{unified:"1f9d6-1f3ff",native:"🧖🏿"}],version:5},man_in_steamy_room:{id:"man_in_steamy_room",name:"Man in Steamy Room",keywords:["male","spa","steamroom","sauna"],skins:[{unified:"1f9d6-200d-2642-fe0f",native:"🧖♂️"},{unified:"1f9d6-1f3fb-200d-2642-fe0f",native:"🧖🏻♂️"},{unified:"1f9d6-1f3fc-200d-2642-fe0f",native:"🧖🏼♂️"},{unified:"1f9d6-1f3fd-200d-2642-fe0f",native:"🧖🏽♂️"},{unified:"1f9d6-1f3fe-200d-2642-fe0f",native:"🧖🏾♂️"},{unified:"1f9d6-1f3ff-200d-2642-fe0f",native:"🧖🏿♂️"}],version:5},woman_in_steamy_room:{id:"woman_in_steamy_room",name:"Woman in Steamy Room",keywords:["female","spa","steamroom","sauna"],skins:[{unified:"1f9d6-200d-2640-fe0f",native:"🧖♀️"},{unified:"1f9d6-1f3fb-200d-2640-fe0f",native:"🧖🏻♀️"},{unified:"1f9d6-1f3fc-200d-2640-fe0f",native:"🧖🏼♀️"},{unified:"1f9d6-1f3fd-200d-2640-fe0f",native:"🧖🏽♀️"},{unified:"1f9d6-1f3fe-200d-2640-fe0f",native:"🧖🏾♀️"},{unified:"1f9d6-1f3ff-200d-2640-fe0f",native:"🧖🏿♀️"}],version:5},person_climbing:{id:"person_climbing",name:"Person Climbing",keywords:["sport"],skins:[{unified:"1f9d7",native:"🧗"},{unified:"1f9d7-1f3fb",native:"🧗🏻"},{unified:"1f9d7-1f3fc",native:"🧗🏼"},{unified:"1f9d7-1f3fd",native:"🧗🏽"},{unified:"1f9d7-1f3fe",native:"🧗🏾"},{unified:"1f9d7-1f3ff",native:"🧗🏿"}],version:5},man_climbing:{id:"man_climbing",name:"Man Climbing",keywords:["sports","hobby","male","rock"],skins:[{unified:"1f9d7-200d-2642-fe0f",native:"🧗♂️"},{unified:"1f9d7-1f3fb-200d-2642-fe0f",native:"🧗🏻♂️"},{unified:"1f9d7-1f3fc-200d-2642-fe0f",native:"🧗🏼♂️"},{unified:"1f9d7-1f3fd-200d-2642-fe0f",native:"🧗🏽♂️"},{unified:"1f9d7-1f3fe-200d-2642-fe0f",native:"🧗🏾♂️"},{unified:"1f9d7-1f3ff-200d-2642-fe0f",native:"🧗🏿♂️"}],version:5},woman_climbing:{id:"woman_climbing",name:"Woman Climbing",keywords:["sports","hobby","female","rock"],skins:[{unified:"1f9d7-200d-2640-fe0f",native:"🧗♀️"},{unified:"1f9d7-1f3fb-200d-2640-fe0f",native:"🧗🏻♀️"},{unified:"1f9d7-1f3fc-200d-2640-fe0f",native:"🧗🏼♀️"},{unified:"1f9d7-1f3fd-200d-2640-fe0f",native:"🧗🏽♀️"},{unified:"1f9d7-1f3fe-200d-2640-fe0f",native:"🧗🏾♀️"},{unified:"1f9d7-1f3ff-200d-2640-fe0f",native:"🧗🏿♀️"}],version:5},fencer:{id:"fencer",name:"Fencer",keywords:["person","fencing","sports","sword"],skins:[{unified:"1f93a",native:"🤺"}],version:3},horse_racing:{id:"horse_racing",name:"Horse Racing",keywords:["animal","betting","competition","gambling","luck"],skins:[{unified:"1f3c7",native:"🏇"},{unified:"1f3c7-1f3fb",native:"🏇🏻"},{unified:"1f3c7-1f3fc",native:"🏇🏼"},{unified:"1f3c7-1f3fd",native:"🏇🏽"},{unified:"1f3c7-1f3fe",native:"🏇🏾"},{unified:"1f3c7-1f3ff",native:"🏇🏿"}],version:1},skier:{id:"skier",name:"Skier",keywords:["sports","winter","snow"],skins:[{unified:"26f7-fe0f",native:"⛷️"}],version:1},snowboarder:{id:"snowboarder",name:"Snowboarder",keywords:["sports","winter"],skins:[{unified:"1f3c2",native:"🏂"},{unified:"1f3c2-1f3fb",native:"🏂🏻"},{unified:"1f3c2-1f3fc",native:"🏂🏼"},{unified:"1f3c2-1f3fd",native:"🏂🏽"},{unified:"1f3c2-1f3fe",native:"🏂🏾"},{unified:"1f3c2-1f3ff",native:"🏂🏿"}],version:1},golfer:{id:"golfer",name:"Person Golfing",keywords:["golfer","sports","business"],skins:[{unified:"1f3cc-fe0f",native:"🏌️"},{unified:"1f3cc-1f3fb",native:"🏌🏻"},{unified:"1f3cc-1f3fc",native:"🏌🏼"},{unified:"1f3cc-1f3fd",native:"🏌🏽"},{unified:"1f3cc-1f3fe",native:"🏌🏾"},{unified:"1f3cc-1f3ff",native:"🏌🏿"}],version:1},"man-golfing":{id:"man-golfing",name:"Man Golfing",keywords:["sport"],skins:[{unified:"1f3cc-fe0f-200d-2642-fe0f",native:"🏌️♂️"},{unified:"1f3cc-1f3fb-200d-2642-fe0f",native:"🏌🏻♂️"},{unified:"1f3cc-1f3fc-200d-2642-fe0f",native:"🏌🏼♂️"},{unified:"1f3cc-1f3fd-200d-2642-fe0f",native:"🏌🏽♂️"},{unified:"1f3cc-1f3fe-200d-2642-fe0f",native:"🏌🏾♂️"},{unified:"1f3cc-1f3ff-200d-2642-fe0f",native:"🏌🏿♂️"}],version:4},"woman-golfing":{id:"woman-golfing",name:"Woman Golfing",keywords:["sports","business","female"],skins:[{unified:"1f3cc-fe0f-200d-2640-fe0f",native:"🏌️♀️"},{unified:"1f3cc-1f3fb-200d-2640-fe0f",native:"🏌🏻♀️"},{unified:"1f3cc-1f3fc-200d-2640-fe0f",native:"🏌🏼♀️"},{unified:"1f3cc-1f3fd-200d-2640-fe0f",native:"🏌🏽♀️"},{unified:"1f3cc-1f3fe-200d-2640-fe0f",native:"🏌🏾♀️"},{unified:"1f3cc-1f3ff-200d-2640-fe0f",native:"🏌🏿♀️"}],version:4},surfer:{id:"surfer",name:"Surfer",keywords:["person","surfing","sport","sea"],skins:[{unified:"1f3c4",native:"🏄"},{unified:"1f3c4-1f3fb",native:"🏄🏻"},{unified:"1f3c4-1f3fc",native:"🏄🏼"},{unified:"1f3c4-1f3fd",native:"🏄🏽"},{unified:"1f3c4-1f3fe",native:"🏄🏾"},{unified:"1f3c4-1f3ff",native:"🏄🏿"}],version:1},"man-surfing":{id:"man-surfing",name:"Man Surfing",keywords:["sports","ocean","sea","summer","beach"],skins:[{unified:"1f3c4-200d-2642-fe0f",native:"🏄♂️"},{unified:"1f3c4-1f3fb-200d-2642-fe0f",native:"🏄🏻♂️"},{unified:"1f3c4-1f3fc-200d-2642-fe0f",native:"🏄🏼♂️"},{unified:"1f3c4-1f3fd-200d-2642-fe0f",native:"🏄🏽♂️"},{unified:"1f3c4-1f3fe-200d-2642-fe0f",native:"🏄🏾♂️"},{unified:"1f3c4-1f3ff-200d-2642-fe0f",native:"🏄🏿♂️"}],version:4},"woman-surfing":{id:"woman-surfing",name:"Woman Surfing",keywords:["sports","ocean","sea","summer","beach","female"],skins:[{unified:"1f3c4-200d-2640-fe0f",native:"🏄♀️"},{unified:"1f3c4-1f3fb-200d-2640-fe0f",native:"🏄🏻♀️"},{unified:"1f3c4-1f3fc-200d-2640-fe0f",native:"🏄🏼♀️"},{unified:"1f3c4-1f3fd-200d-2640-fe0f",native:"🏄🏽♀️"},{unified:"1f3c4-1f3fe-200d-2640-fe0f",native:"🏄🏾♀️"},{unified:"1f3c4-1f3ff-200d-2640-fe0f",native:"🏄🏿♀️"}],version:4},rowboat:{id:"rowboat",name:"Rowboat",keywords:["person","rowing","boat","sport","move"],skins:[{unified:"1f6a3",native:"🚣"},{unified:"1f6a3-1f3fb",native:"🚣🏻"},{unified:"1f6a3-1f3fc",native:"🚣🏼"},{unified:"1f6a3-1f3fd",native:"🚣🏽"},{unified:"1f6a3-1f3fe",native:"🚣🏾"},{unified:"1f6a3-1f3ff",native:"🚣🏿"}],version:1},"man-rowing-boat":{id:"man-rowing-boat",name:"Man Rowing Boat",keywords:["rowing-boat","sports","hobby","water","ship"],skins:[{unified:"1f6a3-200d-2642-fe0f",native:"🚣♂️"},{unified:"1f6a3-1f3fb-200d-2642-fe0f",native:"🚣🏻♂️"},{unified:"1f6a3-1f3fc-200d-2642-fe0f",native:"🚣🏼♂️"},{unified:"1f6a3-1f3fd-200d-2642-fe0f",native:"🚣🏽♂️"},{unified:"1f6a3-1f3fe-200d-2642-fe0f",native:"🚣🏾♂️"},{unified:"1f6a3-1f3ff-200d-2642-fe0f",native:"🚣🏿♂️"}],version:4},"woman-rowing-boat":{id:"woman-rowing-boat",name:"Woman Rowing Boat",keywords:["rowing-boat","sports","hobby","water","ship","female"],skins:[{unified:"1f6a3-200d-2640-fe0f",native:"🚣♀️"},{unified:"1f6a3-1f3fb-200d-2640-fe0f",native:"🚣🏻♀️"},{unified:"1f6a3-1f3fc-200d-2640-fe0f",native:"🚣🏼♀️"},{unified:"1f6a3-1f3fd-200d-2640-fe0f",native:"🚣🏽♀️"},{unified:"1f6a3-1f3fe-200d-2640-fe0f",native:"🚣🏾♀️"},{unified:"1f6a3-1f3ff-200d-2640-fe0f",native:"🚣🏿♀️"}],version:4},swimmer:{id:"swimmer",name:"Swimmer",keywords:["person","swimming","sport","pool"],skins:[{unified:"1f3ca",native:"🏊"},{unified:"1f3ca-1f3fb",native:"🏊🏻"},{unified:"1f3ca-1f3fc",native:"🏊🏼"},{unified:"1f3ca-1f3fd",native:"🏊🏽"},{unified:"1f3ca-1f3fe",native:"🏊🏾"},{unified:"1f3ca-1f3ff",native:"🏊🏿"}],version:1},"man-swimming":{id:"man-swimming",name:"Man Swimming",keywords:["sports","exercise","human","athlete","water","summer"],skins:[{unified:"1f3ca-200d-2642-fe0f",native:"🏊♂️"},{unified:"1f3ca-1f3fb-200d-2642-fe0f",native:"🏊🏻♂️"},{unified:"1f3ca-1f3fc-200d-2642-fe0f",native:"🏊🏼♂️"},{unified:"1f3ca-1f3fd-200d-2642-fe0f",native:"🏊🏽♂️"},{unified:"1f3ca-1f3fe-200d-2642-fe0f",native:"🏊🏾♂️"},{unified:"1f3ca-1f3ff-200d-2642-fe0f",native:"🏊🏿♂️"}],version:4},"woman-swimming":{id:"woman-swimming",name:"Woman Swimming",keywords:["sports","exercise","human","athlete","water","summer","female"],skins:[{unified:"1f3ca-200d-2640-fe0f",native:"🏊♀️"},{unified:"1f3ca-1f3fb-200d-2640-fe0f",native:"🏊🏻♀️"},{unified:"1f3ca-1f3fc-200d-2640-fe0f",native:"🏊🏼♀️"},{unified:"1f3ca-1f3fd-200d-2640-fe0f",native:"🏊🏽♀️"},{unified:"1f3ca-1f3fe-200d-2640-fe0f",native:"🏊🏾♀️"},{unified:"1f3ca-1f3ff-200d-2640-fe0f",native:"🏊🏿♀️"}],version:4},person_with_ball:{id:"person_with_ball",name:"Person Bouncing Ball",keywords:["with","sports","human"],skins:[{unified:"26f9-fe0f",native:"⛹️"},{unified:"26f9-1f3fb",native:"⛹🏻"},{unified:"26f9-1f3fc",native:"⛹🏼"},{unified:"26f9-1f3fd",native:"⛹🏽"},{unified:"26f9-1f3fe",native:"⛹🏾"},{unified:"26f9-1f3ff",native:"⛹🏿"}],version:1},"man-bouncing-ball":{id:"man-bouncing-ball",name:"Man Bouncing Ball",keywords:["bouncing-ball","sport"],skins:[{unified:"26f9-fe0f-200d-2642-fe0f",native:"⛹️♂️"},{unified:"26f9-1f3fb-200d-2642-fe0f",native:"⛹🏻♂️"},{unified:"26f9-1f3fc-200d-2642-fe0f",native:"⛹🏼♂️"},{unified:"26f9-1f3fd-200d-2642-fe0f",native:"⛹🏽♂️"},{unified:"26f9-1f3fe-200d-2642-fe0f",native:"⛹🏾♂️"},{unified:"26f9-1f3ff-200d-2642-fe0f",native:"⛹🏿♂️"}],version:4},"woman-bouncing-ball":{id:"woman-bouncing-ball",name:"Woman Bouncing Ball",keywords:["bouncing-ball","sports","human","female"],skins:[{unified:"26f9-fe0f-200d-2640-fe0f",native:"⛹️♀️"},{unified:"26f9-1f3fb-200d-2640-fe0f",native:"⛹🏻♀️"},{unified:"26f9-1f3fc-200d-2640-fe0f",native:"⛹🏼♀️"},{unified:"26f9-1f3fd-200d-2640-fe0f",native:"⛹🏽♀️"},{unified:"26f9-1f3fe-200d-2640-fe0f",native:"⛹🏾♀️"},{unified:"26f9-1f3ff-200d-2640-fe0f",native:"⛹🏿♀️"}],version:4},weight_lifter:{id:"weight_lifter",name:"Person Lifting Weights",keywords:["weight","lifter","sports","training","exercise"],skins:[{unified:"1f3cb-fe0f",native:"🏋️"},{unified:"1f3cb-1f3fb",native:"🏋🏻"},{unified:"1f3cb-1f3fc",native:"🏋🏼"},{unified:"1f3cb-1f3fd",native:"🏋🏽"},{unified:"1f3cb-1f3fe",native:"🏋🏾"},{unified:"1f3cb-1f3ff",native:"🏋🏿"}],version:1},"man-lifting-weights":{id:"man-lifting-weights",name:"Man Lifting Weights",keywords:["lifting-weights","sport"],skins:[{unified:"1f3cb-fe0f-200d-2642-fe0f",native:"🏋️♂️"},{unified:"1f3cb-1f3fb-200d-2642-fe0f",native:"🏋🏻♂️"},{unified:"1f3cb-1f3fc-200d-2642-fe0f",native:"🏋🏼♂️"},{unified:"1f3cb-1f3fd-200d-2642-fe0f",native:"🏋🏽♂️"},{unified:"1f3cb-1f3fe-200d-2642-fe0f",native:"🏋🏾♂️"},{unified:"1f3cb-1f3ff-200d-2642-fe0f",native:"🏋🏿♂️"}],version:4},"woman-lifting-weights":{id:"woman-lifting-weights",name:"Woman Lifting Weights",keywords:["lifting-weights","sports","training","exercise","female"],skins:[{unified:"1f3cb-fe0f-200d-2640-fe0f",native:"🏋️♀️"},{unified:"1f3cb-1f3fb-200d-2640-fe0f",native:"🏋🏻♀️"},{unified:"1f3cb-1f3fc-200d-2640-fe0f",native:"🏋🏼♀️"},{unified:"1f3cb-1f3fd-200d-2640-fe0f",native:"🏋🏽♀️"},{unified:"1f3cb-1f3fe-200d-2640-fe0f",native:"🏋🏾♀️"},{unified:"1f3cb-1f3ff-200d-2640-fe0f",native:"🏋🏿♀️"}],version:4},bicyclist:{id:"bicyclist",name:"Bicyclist",keywords:["person","biking","sport","move"],skins:[{unified:"1f6b4",native:"🚴"},{unified:"1f6b4-1f3fb",native:"🚴🏻"},{unified:"1f6b4-1f3fc",native:"🚴🏼"},{unified:"1f6b4-1f3fd",native:"🚴🏽"},{unified:"1f6b4-1f3fe",native:"🚴🏾"},{unified:"1f6b4-1f3ff",native:"🚴🏿"}],version:1},"man-biking":{id:"man-biking",name:"Man Biking",keywords:["sports","bike","exercise","hipster"],skins:[{unified:"1f6b4-200d-2642-fe0f",native:"🚴♂️"},{unified:"1f6b4-1f3fb-200d-2642-fe0f",native:"🚴🏻♂️"},{unified:"1f6b4-1f3fc-200d-2642-fe0f",native:"🚴🏼♂️"},{unified:"1f6b4-1f3fd-200d-2642-fe0f",native:"🚴🏽♂️"},{unified:"1f6b4-1f3fe-200d-2642-fe0f",native:"🚴🏾♂️"},{unified:"1f6b4-1f3ff-200d-2642-fe0f",native:"🚴🏿♂️"}],version:4},"woman-biking":{id:"woman-biking",name:"Woman Biking",keywords:["sports","bike","exercise","hipster","female"],skins:[{unified:"1f6b4-200d-2640-fe0f",native:"🚴♀️"},{unified:"1f6b4-1f3fb-200d-2640-fe0f",native:"🚴🏻♀️"},{unified:"1f6b4-1f3fc-200d-2640-fe0f",native:"🚴🏼♀️"},{unified:"1f6b4-1f3fd-200d-2640-fe0f",native:"🚴🏽♀️"},{unified:"1f6b4-1f3fe-200d-2640-fe0f",native:"🚴🏾♀️"},{unified:"1f6b4-1f3ff-200d-2640-fe0f",native:"🚴🏿♀️"}],version:4},mountain_bicyclist:{id:"mountain_bicyclist",name:"Mountain Bicyclist",keywords:["person","biking","sport","move"],skins:[{unified:"1f6b5",native:"🚵"},{unified:"1f6b5-1f3fb",native:"🚵🏻"},{unified:"1f6b5-1f3fc",native:"🚵🏼"},{unified:"1f6b5-1f3fd",native:"🚵🏽"},{unified:"1f6b5-1f3fe",native:"🚵🏾"},{unified:"1f6b5-1f3ff",native:"🚵🏿"}],version:1},"man-mountain-biking":{id:"man-mountain-biking",name:"Man Mountain Biking",keywords:["mountain-biking","transportation","sports","human","race","bike"],skins:[{unified:"1f6b5-200d-2642-fe0f",native:"🚵♂️"},{unified:"1f6b5-1f3fb-200d-2642-fe0f",native:"🚵🏻♂️"},{unified:"1f6b5-1f3fc-200d-2642-fe0f",native:"🚵🏼♂️"},{unified:"1f6b5-1f3fd-200d-2642-fe0f",native:"🚵🏽♂️"},{unified:"1f6b5-1f3fe-200d-2642-fe0f",native:"🚵🏾♂️"},{unified:"1f6b5-1f3ff-200d-2642-fe0f",native:"🚵🏿♂️"}],version:4},"woman-mountain-biking":{id:"woman-mountain-biking",name:"Woman Mountain Biking",keywords:["mountain-biking","transportation","sports","human","race","bike","female"],skins:[{unified:"1f6b5-200d-2640-fe0f",native:"🚵♀️"},{unified:"1f6b5-1f3fb-200d-2640-fe0f",native:"🚵🏻♀️"},{unified:"1f6b5-1f3fc-200d-2640-fe0f",native:"🚵🏼♀️"},{unified:"1f6b5-1f3fd-200d-2640-fe0f",native:"🚵🏽♀️"},{unified:"1f6b5-1f3fe-200d-2640-fe0f",native:"🚵🏾♀️"},{unified:"1f6b5-1f3ff-200d-2640-fe0f",native:"🚵🏿♀️"}],version:4},person_doing_cartwheel:{id:"person_doing_cartwheel",name:"Person Cartwheeling",keywords:["doing","cartwheel","sport","gymnastic"],skins:[{unified:"1f938",native:"🤸"},{unified:"1f938-1f3fb",native:"🤸🏻"},{unified:"1f938-1f3fc",native:"🤸🏼"},{unified:"1f938-1f3fd",native:"🤸🏽"},{unified:"1f938-1f3fe",native:"🤸🏾"},{unified:"1f938-1f3ff",native:"🤸🏿"}],version:3},"man-cartwheeling":{id:"man-cartwheeling",name:"Man Cartwheeling",keywords:["gymnastics"],skins:[{unified:"1f938-200d-2642-fe0f",native:"🤸♂️"},{unified:"1f938-1f3fb-200d-2642-fe0f",native:"🤸🏻♂️"},{unified:"1f938-1f3fc-200d-2642-fe0f",native:"🤸🏼♂️"},{unified:"1f938-1f3fd-200d-2642-fe0f",native:"🤸🏽♂️"},{unified:"1f938-1f3fe-200d-2642-fe0f",native:"🤸🏾♂️"},{unified:"1f938-1f3ff-200d-2642-fe0f",native:"🤸🏿♂️"}],version:4},"woman-cartwheeling":{id:"woman-cartwheeling",name:"Woman Cartwheeling",keywords:["gymnastics"],skins:[{unified:"1f938-200d-2640-fe0f",native:"🤸♀️"},{unified:"1f938-1f3fb-200d-2640-fe0f",native:"🤸🏻♀️"},{unified:"1f938-1f3fc-200d-2640-fe0f",native:"🤸🏼♀️"},{unified:"1f938-1f3fd-200d-2640-fe0f",native:"🤸🏽♀️"},{unified:"1f938-1f3fe-200d-2640-fe0f",native:"🤸🏾♀️"},{unified:"1f938-1f3ff-200d-2640-fe0f",native:"🤸🏿♀️"}],version:4},wrestlers:{id:"wrestlers",name:"Wrestlers",keywords:["people","wrestling","sport"],skins:[{unified:"1f93c",native:"🤼"}],version:3},"man-wrestling":{id:"man-wrestling",name:"Men Wrestling",keywords:["man","sports","wrestlers"],skins:[{unified:"1f93c-200d-2642-fe0f",native:"🤼♂️"}],version:4},"woman-wrestling":{id:"woman-wrestling",name:"Women Wrestling",keywords:["woman","sports","wrestlers"],skins:[{unified:"1f93c-200d-2640-fe0f",native:"🤼♀️"}],version:4},water_polo:{id:"water_polo",name:"Water Polo",keywords:["person","playing","sport"],skins:[{unified:"1f93d",native:"🤽"},{unified:"1f93d-1f3fb",native:"🤽🏻"},{unified:"1f93d-1f3fc",native:"🤽🏼"},{unified:"1f93d-1f3fd",native:"🤽🏽"},{unified:"1f93d-1f3fe",native:"🤽🏾"},{unified:"1f93d-1f3ff",native:"🤽🏿"}],version:3},"man-playing-water-polo":{id:"man-playing-water-polo",name:"Man Playing Water Polo",keywords:["playing-water-polo","sports","pool"],skins:[{unified:"1f93d-200d-2642-fe0f",native:"🤽♂️"},{unified:"1f93d-1f3fb-200d-2642-fe0f",native:"🤽🏻♂️"},{unified:"1f93d-1f3fc-200d-2642-fe0f",native:"🤽🏼♂️"},{unified:"1f93d-1f3fd-200d-2642-fe0f",native:"🤽🏽♂️"},{unified:"1f93d-1f3fe-200d-2642-fe0f",native:"🤽🏾♂️"},{unified:"1f93d-1f3ff-200d-2642-fe0f",native:"🤽🏿♂️"}],version:4},"woman-playing-water-polo":{id:"woman-playing-water-polo",name:"Woman Playing Water Polo",keywords:["playing-water-polo","sports","pool"],skins:[{unified:"1f93d-200d-2640-fe0f",native:"🤽♀️"},{unified:"1f93d-1f3fb-200d-2640-fe0f",native:"🤽🏻♀️"},{unified:"1f93d-1f3fc-200d-2640-fe0f",native:"🤽🏼♀️"},{unified:"1f93d-1f3fd-200d-2640-fe0f",native:"🤽🏽♀️"},{unified:"1f93d-1f3fe-200d-2640-fe0f",native:"🤽🏾♀️"},{unified:"1f93d-1f3ff-200d-2640-fe0f",native:"🤽🏿♀️"}],version:4},handball:{id:"handball",name:"Handball",keywords:["person","playing","sport"],skins:[{unified:"1f93e",native:"🤾"},{unified:"1f93e-1f3fb",native:"🤾🏻"},{unified:"1f93e-1f3fc",native:"🤾🏼"},{unified:"1f93e-1f3fd",native:"🤾🏽"},{unified:"1f93e-1f3fe",native:"🤾🏾"},{unified:"1f93e-1f3ff",native:"🤾🏿"}],version:3},"man-playing-handball":{id:"man-playing-handball",name:"Man Playing Handball",keywords:["playing-handball","sports"],skins:[{unified:"1f93e-200d-2642-fe0f",native:"🤾♂️"},{unified:"1f93e-1f3fb-200d-2642-fe0f",native:"🤾🏻♂️"},{unified:"1f93e-1f3fc-200d-2642-fe0f",native:"🤾🏼♂️"},{unified:"1f93e-1f3fd-200d-2642-fe0f",native:"🤾🏽♂️"},{unified:"1f93e-1f3fe-200d-2642-fe0f",native:"🤾🏾♂️"},{unified:"1f93e-1f3ff-200d-2642-fe0f",native:"🤾🏿♂️"}],version:4},"woman-playing-handball":{id:"woman-playing-handball",name:"Woman Playing Handball",keywords:["playing-handball","sports"],skins:[{unified:"1f93e-200d-2640-fe0f",native:"🤾♀️"},{unified:"1f93e-1f3fb-200d-2640-fe0f",native:"🤾🏻♀️"},{unified:"1f93e-1f3fc-200d-2640-fe0f",native:"🤾🏼♀️"},{unified:"1f93e-1f3fd-200d-2640-fe0f",native:"🤾🏽♀️"},{unified:"1f93e-1f3fe-200d-2640-fe0f",native:"🤾🏾♀️"},{unified:"1f93e-1f3ff-200d-2640-fe0f",native:"🤾🏿♀️"}],version:4},juggling:{id:"juggling",name:"Juggling",keywords:["person","performance","balance"],skins:[{unified:"1f939",native:"🤹"},{unified:"1f939-1f3fb",native:"🤹🏻"},{unified:"1f939-1f3fc",native:"🤹🏼"},{unified:"1f939-1f3fd",native:"🤹🏽"},{unified:"1f939-1f3fe",native:"🤹🏾"},{unified:"1f939-1f3ff",native:"🤹🏿"}],version:3},"man-juggling":{id:"man-juggling",name:"Man Juggling",keywords:["juggle","balance","skill","multitask"],skins:[{unified:"1f939-200d-2642-fe0f",native:"🤹♂️"},{unified:"1f939-1f3fb-200d-2642-fe0f",native:"🤹🏻♂️"},{unified:"1f939-1f3fc-200d-2642-fe0f",native:"🤹🏼♂️"},{unified:"1f939-1f3fd-200d-2642-fe0f",native:"🤹🏽♂️"},{unified:"1f939-1f3fe-200d-2642-fe0f",native:"🤹🏾♂️"},{unified:"1f939-1f3ff-200d-2642-fe0f",native:"🤹🏿♂️"}],version:4},"woman-juggling":{id:"woman-juggling",name:"Woman Juggling",keywords:["juggle","balance","skill","multitask"],skins:[{unified:"1f939-200d-2640-fe0f",native:"🤹♀️"},{unified:"1f939-1f3fb-200d-2640-fe0f",native:"🤹🏻♀️"},{unified:"1f939-1f3fc-200d-2640-fe0f",native:"🤹🏼♀️"},{unified:"1f939-1f3fd-200d-2640-fe0f",native:"🤹🏽♀️"},{unified:"1f939-1f3fe-200d-2640-fe0f",native:"🤹🏾♀️"},{unified:"1f939-1f3ff-200d-2640-fe0f",native:"🤹🏿♀️"}],version:4},person_in_lotus_position:{id:"person_in_lotus_position",name:"Person in Lotus Position",keywords:["meditate"],skins:[{unified:"1f9d8",native:"🧘"},{unified:"1f9d8-1f3fb",native:"🧘🏻"},{unified:"1f9d8-1f3fc",native:"🧘🏼"},{unified:"1f9d8-1f3fd",native:"🧘🏽"},{unified:"1f9d8-1f3fe",native:"🧘🏾"},{unified:"1f9d8-1f3ff",native:"🧘🏿"}],version:5},man_in_lotus_position:{id:"man_in_lotus_position",name:"Man in Lotus Position",keywords:["male","meditation","yoga","serenity","zen","mindfulness"],skins:[{unified:"1f9d8-200d-2642-fe0f",native:"🧘♂️"},{unified:"1f9d8-1f3fb-200d-2642-fe0f",native:"🧘🏻♂️"},{unified:"1f9d8-1f3fc-200d-2642-fe0f",native:"🧘🏼♂️"},{unified:"1f9d8-1f3fd-200d-2642-fe0f",native:"🧘🏽♂️"},{unified:"1f9d8-1f3fe-200d-2642-fe0f",native:"🧘🏾♂️"},{unified:"1f9d8-1f3ff-200d-2642-fe0f",native:"🧘🏿♂️"}],version:5},woman_in_lotus_position:{id:"woman_in_lotus_position",name:"Woman in Lotus Position",keywords:["female","meditation","yoga","serenity","zen","mindfulness"],skins:[{unified:"1f9d8-200d-2640-fe0f",native:"🧘♀️"},{unified:"1f9d8-1f3fb-200d-2640-fe0f",native:"🧘🏻♀️"},{unified:"1f9d8-1f3fc-200d-2640-fe0f",native:"🧘🏼♀️"},{unified:"1f9d8-1f3fd-200d-2640-fe0f",native:"🧘🏽♀️"},{unified:"1f9d8-1f3fe-200d-2640-fe0f",native:"🧘🏾♀️"},{unified:"1f9d8-1f3ff-200d-2640-fe0f",native:"🧘🏿♀️"}],version:5},bath:{id:"bath",name:"Bath",keywords:["person","taking","clean","shower","bathroom"],skins:[{unified:"1f6c0",native:"🛀"},{unified:"1f6c0-1f3fb",native:"🛀🏻"},{unified:"1f6c0-1f3fc",native:"🛀🏼"},{unified:"1f6c0-1f3fd",native:"🛀🏽"},{unified:"1f6c0-1f3fe",native:"🛀🏾"},{unified:"1f6c0-1f3ff",native:"🛀🏿"}],version:1},sleeping_accommodation:{id:"sleeping_accommodation",name:"Person in Bed",keywords:["sleeping","accommodation","rest"],skins:[{unified:"1f6cc",native:"🛌"},{unified:"1f6cc-1f3fb",native:"🛌🏻"},{unified:"1f6cc-1f3fc",native:"🛌🏼"},{unified:"1f6cc-1f3fd",native:"🛌🏽"},{unified:"1f6cc-1f3fe",native:"🛌🏾"},{unified:"1f6cc-1f3ff",native:"🛌🏿"}],version:1},people_holding_hands:{id:"people_holding_hands",name:"People Holding Hands",keywords:["friendship"],skins:[{unified:"1f9d1-200d-1f91d-200d-1f9d1",native:"🧑🤝🧑"},{unified:"1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb",native:"🧑🏻🤝🧑🏻"},{unified:"1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc",native:"🧑🏼🤝🧑🏼"},{unified:"1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd",native:"🧑🏽🤝🧑🏽"},{unified:"1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe",native:"🧑🏾🤝🧑🏾"},{unified:"1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff",native:"🧑🏿🤝🧑🏿"}],version:12},two_women_holding_hands:{id:"two_women_holding_hands",name:"Women Holding Hands",keywords:["two","pair","friendship","couple","love","like","female","people","human"],skins:[{unified:"1f46d",native:"👭"},{unified:"1f46d-1f3fb",native:"👭🏻"},{unified:"1f46d-1f3fc",native:"👭🏼"},{unified:"1f46d-1f3fd",native:"👭🏽"},{unified:"1f46d-1f3fe",native:"👭🏾"},{unified:"1f46d-1f3ff",native:"👭🏿"}],version:1},man_and_woman_holding_hands:{id:"man_and_woman_holding_hands",name:"Man and Woman Holding Hands",keywords:["couple","pair","people","human","love","date","dating","like","affection","valentines","marriage"],skins:[{unified:"1f46b",native:"👫"},{unified:"1f46b-1f3fb",native:"👫🏻"},{unified:"1f46b-1f3fc",native:"👫🏼"},{unified:"1f46b-1f3fd",native:"👫🏽"},{unified:"1f46b-1f3fe",native:"👫🏾"},{unified:"1f46b-1f3ff",native:"👫🏿"}],version:1},two_men_holding_hands:{id:"two_men_holding_hands",name:"Men Holding Hands",keywords:["two","pair","couple","love","like","bromance","friendship","people","human"],skins:[{unified:"1f46c",native:"👬"},{unified:"1f46c-1f3fb",native:"👬🏻"},{unified:"1f46c-1f3fc",native:"👬🏼"},{unified:"1f46c-1f3fd",native:"👬🏽"},{unified:"1f46c-1f3fe",native:"👬🏾"},{unified:"1f46c-1f3ff",native:"👬🏿"}],version:1},couplekiss:{id:"couplekiss",name:"Kiss",keywords:["couplekiss","pair","valentines","love","like","dating","marriage"],skins:[{unified:"1f48f",native:"💏"},{unified:"1f48f-1f3fb",native:"💏🏻"},{unified:"1f48f-1f3fc",native:"💏🏼"},{unified:"1f48f-1f3fd",native:"💏🏽"},{unified:"1f48f-1f3fe",native:"💏🏾"},{unified:"1f48f-1f3ff",native:"💏🏿"}],version:1},"woman-kiss-man":{id:"woman-kiss-man",name:"Kiss: Woman, Man",keywords:["woman","kiss-man","kiss","love"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",native:"👩❤️💋👨"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",native:"👩🏻❤️💋👨🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",native:"👩🏼❤️💋👨🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",native:"👩🏽❤️💋👨🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",native:"👩🏾❤️💋👨🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",native:"👩🏿❤️💋👨🏿"}],version:2},"man-kiss-man":{id:"man-kiss-man",name:"Kiss: Man, Man",keywords:["kiss-man","kiss","pair","valentines","love","like","dating","marriage"],skins:[{unified:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",native:"👨❤️💋👨"},{unified:"1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb",native:"👨🏻❤️💋👨🏻"},{unified:"1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc",native:"👨🏼❤️💋👨🏼"},{unified:"1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd",native:"👨🏽❤️💋👨🏽"},{unified:"1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe",native:"👨🏾❤️💋👨🏾"},{unified:"1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff",native:"👨🏿❤️💋👨🏿"}],version:2},"woman-kiss-woman":{id:"woman-kiss-woman",name:"Kiss: Woman, Woman",keywords:["kiss-woman","kiss","pair","valentines","love","like","dating","marriage"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",native:"👩❤️💋👩"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb",native:"👩🏻❤️💋👩🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc",native:"👩🏼❤️💋👩🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd",native:"👩🏽❤️💋👩🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe",native:"👩🏾❤️💋👩🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff",native:"👩🏿❤️💋👩🏿"}],version:2},couple_with_heart:{id:"couple_with_heart",name:"Couple with Heart",keywords:["pair","love","like","affection","human","dating","valentines","marriage"],skins:[{unified:"1f491",native:"💑"},{unified:"1f491-1f3fb",native:"💑🏻"},{unified:"1f491-1f3fc",native:"💑🏼"},{unified:"1f491-1f3fd",native:"💑🏽"},{unified:"1f491-1f3fe",native:"💑🏾"},{unified:"1f491-1f3ff",native:"💑🏿"}],version:1},"woman-heart-man":{id:"woman-heart-man",name:"Couple with Heart: Woman, Man",keywords:["woman","heart-man","heart","love"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f468",native:"👩❤️👨"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",native:"👩🏻❤️👨🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",native:"👩🏼❤️👨🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",native:"👩🏽❤️👨🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",native:"👩🏾❤️👨🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",native:"👩🏿❤️👨🏿"}],version:2},"man-heart-man":{id:"man-heart-man",name:"Couple with Heart: Man, Man",keywords:["heart-man","heart","pair","love","like","affection","human","dating","valentines","marriage"],skins:[{unified:"1f468-200d-2764-fe0f-200d-1f468",native:"👨❤️👨"},{unified:"1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb",native:"👨🏻❤️👨🏻"},{unified:"1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc",native:"👨🏼❤️👨🏼"},{unified:"1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd",native:"👨🏽❤️👨🏽"},{unified:"1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe",native:"👨🏾❤️👨🏾"},{unified:"1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff",native:"👨🏿❤️👨🏿"}],version:2},"woman-heart-woman":{id:"woman-heart-woman",name:"Couple with Heart: Woman, Woman",keywords:["heart-woman","heart","pair","love","like","affection","human","dating","valentines","marriage"],skins:[{unified:"1f469-200d-2764-fe0f-200d-1f469",native:"👩❤️👩"},{unified:"1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb",native:"👩🏻❤️👩🏻"},{unified:"1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc",native:"👩🏼❤️👩🏼"},{unified:"1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd",native:"👩🏽❤️👩🏽"},{unified:"1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe",native:"👩🏾❤️👩🏾"},{unified:"1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff",native:"👩🏿❤️👩🏿"}],version:2},family:{id:"family",name:"Family",keywords:["home","parents","child","mom","dad","father","mother","people","human"],skins:[{unified:"1f46a",native:"👪"}],version:1},"man-woman-boy":{id:"man-woman-boy",name:"Family: Man, Woman, Boy",keywords:["man","woman-boy","family","woman","love"],skins:[{unified:"1f468-200d-1f469-200d-1f466",native:"👨👩👦"}],version:2},"man-woman-girl":{id:"man-woman-girl",name:"Family: Man, Woman, Girl",keywords:["man","woman-girl","family","woman","home","parents","people","human","child"],skins:[{unified:"1f468-200d-1f469-200d-1f467",native:"👨👩👧"}],version:2},"man-woman-girl-boy":{id:"man-woman-girl-boy",name:"Family: Man, Woman, Girl, Boy",keywords:["man","woman-girl-boy","family","woman","girl","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f469-200d-1f467-200d-1f466",native:"👨👩👧👦"}],version:2},"man-woman-boy-boy":{id:"man-woman-boy-boy",name:"Family: Man, Woman, Boy, Boy",keywords:["man","woman-boy-boy","family","woman","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f469-200d-1f466-200d-1f466",native:"👨👩👦👦"}],version:2},"man-woman-girl-girl":{id:"man-woman-girl-girl",name:"Family: Man, Woman, Girl, Girl",keywords:["man","woman-girl-girl","family","woman","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f469-200d-1f467-200d-1f467",native:"👨👩👧👧"}],version:2},"man-man-boy":{id:"man-man-boy",name:"Family: Man, Man, Boy",keywords:["man","man-boy","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f466",native:"👨👨👦"}],version:2},"man-man-girl":{id:"man-man-girl",name:"Family: Man, Man, Girl",keywords:["man","man-girl","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f467",native:"👨👨👧"}],version:2},"man-man-girl-boy":{id:"man-man-girl-boy",name:"Family: Man, Man, Girl, Boy",keywords:["man","man-girl-boy","family","girl","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f467-200d-1f466",native:"👨👨👧👦"}],version:2},"man-man-boy-boy":{id:"man-man-boy-boy",name:"Family: Man, Man, Boy, Boy",keywords:["man","man-boy-boy","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f466-200d-1f466",native:"👨👨👦👦"}],version:2},"man-man-girl-girl":{id:"man-man-girl-girl",name:"Family: Man, Man, Girl, Girl",keywords:["man","man-girl-girl","family","home","parents","people","human","children"],skins:[{unified:"1f468-200d-1f468-200d-1f467-200d-1f467",native:"👨👨👧👧"}],version:2},"woman-woman-boy":{id:"woman-woman-boy",name:"Family: Woman, Woman, Boy",keywords:["woman","woman-boy","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f466",native:"👩👩👦"}],version:2},"woman-woman-girl":{id:"woman-woman-girl",name:"Family: Woman, Woman, Girl",keywords:["woman","woman-girl","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f467",native:"👩👩👧"}],version:2},"woman-woman-girl-boy":{id:"woman-woman-girl-boy",name:"Family: Woman, Woman, Girl, Boy",keywords:["woman","woman-girl-boy","family","girl","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f467-200d-1f466",native:"👩👩👧👦"}],version:2},"woman-woman-boy-boy":{id:"woman-woman-boy-boy",name:"Family: Woman, Woman, Boy, Boy",keywords:["woman","woman-boy-boy","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f466-200d-1f466",native:"👩👩👦👦"}],version:2},"woman-woman-girl-girl":{id:"woman-woman-girl-girl",name:"Family: Woman, Woman, Girl, Girl",keywords:["woman","woman-girl-girl","family","home","parents","people","human","children"],skins:[{unified:"1f469-200d-1f469-200d-1f467-200d-1f467",native:"👩👩👧👧"}],version:2},"man-boy":{id:"man-boy",name:"Family: Man, Boy",keywords:["man","family","home","parent","people","human","child"],skins:[{unified:"1f468-200d-1f466",native:"👨👦"}],version:4},"man-boy-boy":{id:"man-boy-boy",name:"Family: Man, Boy, Boy",keywords:["man","boy-boy","family","home","parent","people","human","children"],skins:[{unified:"1f468-200d-1f466-200d-1f466",native:"👨👦👦"}],version:4},"man-girl":{id:"man-girl",name:"Family: Man, Girl",keywords:["man","family","home","parent","people","human","child"],skins:[{unified:"1f468-200d-1f467",native:"👨👧"}],version:4},"man-girl-boy":{id:"man-girl-boy",name:"Family: Man, Girl, Boy",keywords:["man","girl-boy","family","girl","home","parent","people","human","children"],skins:[{unified:"1f468-200d-1f467-200d-1f466",native:"👨👧👦"}],version:4},"man-girl-girl":{id:"man-girl-girl",name:"Family: Man, Girl, Girl",keywords:["man","girl-girl","family","home","parent","people","human","children"],skins:[{unified:"1f468-200d-1f467-200d-1f467",native:"👨👧👧"}],version:4},"woman-boy":{id:"woman-boy",name:"Family: Woman, Boy",keywords:["woman","family","home","parent","people","human","child"],skins:[{unified:"1f469-200d-1f466",native:"👩👦"}],version:4},"woman-boy-boy":{id:"woman-boy-boy",name:"Family: Woman, Boy, Boy",keywords:["woman","boy-boy","family","home","parent","people","human","children"],skins:[{unified:"1f469-200d-1f466-200d-1f466",native:"👩👦👦"}],version:4},"woman-girl":{id:"woman-girl",name:"Family: Woman, Girl",keywords:["woman","family","home","parent","people","human","child"],skins:[{unified:"1f469-200d-1f467",native:"👩👧"}],version:4},"woman-girl-boy":{id:"woman-girl-boy",name:"Family: Woman, Girl, Boy",keywords:["woman","girl-boy","family","girl","home","parent","people","human","children"],skins:[{unified:"1f469-200d-1f467-200d-1f466",native:"👩👧👦"}],version:4},"woman-girl-girl":{id:"woman-girl-girl",name:"Family: Woman, Girl, Girl",keywords:["woman","girl-girl","family","home","parent","people","human","children"],skins:[{unified:"1f469-200d-1f467-200d-1f467",native:"👩👧👧"}],version:4},speaking_head_in_silhouette:{id:"speaking_head_in_silhouette",name:"Speaking Head",keywords:["in","silhouette","user","person","human","sing","say","talk"],skins:[{unified:"1f5e3-fe0f",native:"🗣️"}],version:1},bust_in_silhouette:{id:"bust_in_silhouette",name:"Bust in Silhouette",keywords:["user","person","human"],skins:[{unified:"1f464",native:"👤"}],version:1},busts_in_silhouette:{id:"busts_in_silhouette",name:"Busts in Silhouette",keywords:["user","person","human","group","team"],skins:[{unified:"1f465",native:"👥"}],version:1},people_hugging:{id:"people_hugging",name:"People Hugging",keywords:["care"],skins:[{unified:"1fac2",native:"🫂"}],version:13},footprints:{id:"footprints",name:"Footprints",keywords:["feet","tracking","walking","beach"],skins:[{unified:"1f463",native:"👣"}],version:1},monkey_face:{id:"monkey_face",name:"Monkey Face",emoticons:[":o)"],keywords:["animal","nature","circus"],skins:[{unified:"1f435",native:"🐵"}],version:1},monkey:{id:"monkey",name:"Monkey",keywords:["animal","nature","banana","circus"],skins:[{unified:"1f412",native:"🐒"}],version:1},gorilla:{id:"gorilla",name:"Gorilla",keywords:["animal","nature","circus"],skins:[{unified:"1f98d",native:"🦍"}],version:3},orangutan:{id:"orangutan",name:"Orangutan",keywords:["animal"],skins:[{unified:"1f9a7",native:"🦧"}],version:12},dog:{id:"dog",name:"Dog Face",keywords:["animal","friend","nature","woof","puppy","pet","faithful"],skins:[{unified:"1f436",native:"🐶"}],version:1},dog2:{id:"dog2",name:"Dog",keywords:["dog2","animal","nature","friend","doge","pet","faithful"],skins:[{unified:"1f415",native:"🐕"}],version:1},guide_dog:{id:"guide_dog",name:"Guide Dog",keywords:["animal","blind"],skins:[{unified:"1f9ae",native:"🦮"}],version:12},service_dog:{id:"service_dog",name:"Service Dog",keywords:["blind","animal"],skins:[{unified:"1f415-200d-1f9ba",native:"🐕🦺"}],version:12},poodle:{id:"poodle",name:"Poodle",keywords:["dog","animal","101","nature","pet"],skins:[{unified:"1f429",native:"🐩"}],version:1},wolf:{id:"wolf",name:"Wolf",keywords:["animal","nature","wild"],skins:[{unified:"1f43a",native:"🐺"}],version:1},fox_face:{id:"fox_face",name:"Fox",keywords:["face","animal","nature"],skins:[{unified:"1f98a",native:"🦊"}],version:3},raccoon:{id:"raccoon",name:"Raccoon",keywords:["animal","nature"],skins:[{unified:"1f99d",native:"🦝"}],version:11},cat:{id:"cat",name:"Cat Face",keywords:["animal","meow","nature","pet","kitten"],skins:[{unified:"1f431",native:"🐱"}],version:1},cat2:{id:"cat2",name:"Cat",keywords:["cat2","animal","meow","pet","cats"],skins:[{unified:"1f408",native:"🐈"}],version:1},black_cat:{id:"black_cat",name:"Black Cat",keywords:["superstition","luck"],skins:[{unified:"1f408-200d-2b1b",native:"🐈⬛"}],version:13},lion_face:{id:"lion_face",name:"Lion",keywords:["face","animal","nature"],skins:[{unified:"1f981",native:"🦁"}],version:1},tiger:{id:"tiger",name:"Tiger Face",keywords:["animal","cat","danger","wild","nature","roar"],skins:[{unified:"1f42f",native:"🐯"}],version:1},tiger2:{id:"tiger2",name:"Tiger",keywords:["tiger2","animal","nature","roar"],skins:[{unified:"1f405",native:"🐅"}],version:1},leopard:{id:"leopard",name:"Leopard",keywords:["animal","nature"],skins:[{unified:"1f406",native:"🐆"}],version:1},horse:{id:"horse",name:"Horse Face",keywords:["animal","brown","nature"],skins:[{unified:"1f434",native:"🐴"}],version:1},moose:{id:"moose",name:"Moose",keywords:["shrek","canada","sweden","sven","cool"],skins:[{unified:"1face",native:"🫎"}],version:15},donkey:{id:"donkey",name:"Donkey",keywords:["eeyore","mule"],skins:[{unified:"1facf",native:"🫏"}],version:15},racehorse:{id:"racehorse",name:"Horse",keywords:["racehorse","animal","gamble","luck"],skins:[{unified:"1f40e",native:"🐎"}],version:1},unicorn_face:{id:"unicorn_face",name:"Unicorn",keywords:["face","animal","nature","mystical"],skins:[{unified:"1f984",native:"🦄"}],version:1},zebra_face:{id:"zebra_face",name:"Zebra",keywords:["face","animal","nature","stripes","safari"],skins:[{unified:"1f993",native:"🦓"}],version:5},deer:{id:"deer",name:"Deer",keywords:["animal","nature","horns","venison"],skins:[{unified:"1f98c",native:"🦌"}],version:3},bison:{id:"bison",name:"Bison",keywords:["ox"],skins:[{unified:"1f9ac",native:"🦬"}],version:13},cow:{id:"cow",name:"Cow Face",keywords:["beef","ox","animal","nature","moo","milk"],skins:[{unified:"1f42e",native:"🐮"}],version:1},ox:{id:"ox",name:"Ox",keywords:["animal","cow","beef"],skins:[{unified:"1f402",native:"🐂"}],version:1},water_buffalo:{id:"water_buffalo",name:"Water Buffalo",keywords:["animal","nature","ox","cow"],skins:[{unified:"1f403",native:"🐃"}],version:1},cow2:{id:"cow2",name:"Cow",keywords:["cow2","beef","ox","animal","nature","moo","milk"],skins:[{unified:"1f404",native:"🐄"}],version:1},pig:{id:"pig",name:"Pig Face",keywords:["animal","oink","nature"],skins:[{unified:"1f437",native:"🐷"}],version:1},pig2:{id:"pig2",name:"Pig",keywords:["pig2","animal","nature"],skins:[{unified:"1f416",native:"🐖"}],version:1},boar:{id:"boar",name:"Boar",keywords:["animal","nature"],skins:[{unified:"1f417",native:"🐗"}],version:1},pig_nose:{id:"pig_nose",name:"Pig Nose",keywords:["animal","oink"],skins:[{unified:"1f43d",native:"🐽"}],version:1},ram:{id:"ram",name:"Ram",keywords:["animal","sheep","nature"],skins:[{unified:"1f40f",native:"🐏"}],version:1},sheep:{id:"sheep",name:"Ewe",keywords:["sheep","animal","nature","wool","shipit"],skins:[{unified:"1f411",native:"🐑"}],version:1},goat:{id:"goat",name:"Goat",keywords:["animal","nature"],skins:[{unified:"1f410",native:"🐐"}],version:1},dromedary_camel:{id:"dromedary_camel",name:"Camel",keywords:["dromedary","animal","hot","desert","hump"],skins:[{unified:"1f42a",native:"🐪"}],version:1},camel:{id:"camel",name:"Bactrian Camel",keywords:["two","hump","animal","nature","hot","desert"],skins:[{unified:"1f42b",native:"🐫"}],version:1},llama:{id:"llama",name:"Llama",keywords:["animal","nature","alpaca"],skins:[{unified:"1f999",native:"🦙"}],version:11},giraffe_face:{id:"giraffe_face",name:"Giraffe",keywords:["face","animal","nature","spots","safari"],skins:[{unified:"1f992",native:"🦒"}],version:5},elephant:{id:"elephant",name:"Elephant",keywords:["animal","nature","nose","th","circus"],skins:[{unified:"1f418",native:"🐘"}],version:1},mammoth:{id:"mammoth",name:"Mammoth",keywords:["elephant","tusks"],skins:[{unified:"1f9a3",native:"🦣"}],version:13},rhinoceros:{id:"rhinoceros",name:"Rhinoceros",keywords:["animal","nature","horn"],skins:[{unified:"1f98f",native:"🦏"}],version:3},hippopotamus:{id:"hippopotamus",name:"Hippopotamus",keywords:["animal","nature"],skins:[{unified:"1f99b",native:"🦛"}],version:11},mouse:{id:"mouse",name:"Mouse Face",keywords:["animal","nature","cheese","wedge","rodent"],skins:[{unified:"1f42d",native:"🐭"}],version:1},mouse2:{id:"mouse2",name:"Mouse",keywords:["mouse2","animal","nature","rodent"],skins:[{unified:"1f401",native:"🐁"}],version:1},rat:{id:"rat",name:"Rat",keywords:["animal","mouse","rodent"],skins:[{unified:"1f400",native:"🐀"}],version:1},hamster:{id:"hamster",name:"Hamster",keywords:["animal","nature"],skins:[{unified:"1f439",native:"🐹"}],version:1},rabbit:{id:"rabbit",name:"Rabbit Face",keywords:["animal","nature","pet","spring","magic","bunny"],skins:[{unified:"1f430",native:"🐰"}],version:1},rabbit2:{id:"rabbit2",name:"Rabbit",keywords:["rabbit2","animal","nature","pet","magic","spring"],skins:[{unified:"1f407",native:"🐇"}],version:1},chipmunk:{id:"chipmunk",name:"Chipmunk",keywords:["animal","nature","rodent","squirrel"],skins:[{unified:"1f43f-fe0f",native:"🐿️"}],version:1},beaver:{id:"beaver",name:"Beaver",keywords:["animal","rodent"],skins:[{unified:"1f9ab",native:"🦫"}],version:13},hedgehog:{id:"hedgehog",name:"Hedgehog",keywords:["animal","nature","spiny"],skins:[{unified:"1f994",native:"🦔"}],version:5},bat:{id:"bat",name:"Bat",keywords:["animal","nature","blind","vampire"],skins:[{unified:"1f987",native:"🦇"}],version:3},bear:{id:"bear",name:"Bear",keywords:["animal","nature","wild"],skins:[{unified:"1f43b",native:"🐻"}],version:1},polar_bear:{id:"polar_bear",name:"Polar Bear",keywords:["animal","arctic"],skins:[{unified:"1f43b-200d-2744-fe0f",native:"🐻❄️"}],version:13},koala:{id:"koala",name:"Koala",keywords:["animal","nature"],skins:[{unified:"1f428",native:"🐨"}],version:1},panda_face:{id:"panda_face",name:"Panda",keywords:["face","animal","nature"],skins:[{unified:"1f43c",native:"🐼"}],version:1},sloth:{id:"sloth",name:"Sloth",keywords:["animal"],skins:[{unified:"1f9a5",native:"🦥"}],version:12},otter:{id:"otter",name:"Otter",keywords:["animal"],skins:[{unified:"1f9a6",native:"🦦"}],version:12},skunk:{id:"skunk",name:"Skunk",keywords:["animal"],skins:[{unified:"1f9a8",native:"🦨"}],version:12},kangaroo:{id:"kangaroo",name:"Kangaroo",keywords:["animal","nature","australia","joey","hop","marsupial"],skins:[{unified:"1f998",native:"🦘"}],version:11},badger:{id:"badger",name:"Badger",keywords:["animal","nature","honey"],skins:[{unified:"1f9a1",native:"🦡"}],version:11},feet:{id:"feet",name:"Paw Prints",keywords:["feet","animal","tracking","footprints","dog","cat","pet"],skins:[{unified:"1f43e",native:"🐾"}],version:1},turkey:{id:"turkey",name:"Turkey",keywords:["animal","bird"],skins:[{unified:"1f983",native:"🦃"}],version:1},chicken:{id:"chicken",name:"Chicken",keywords:["animal","cluck","nature","bird"],skins:[{unified:"1f414",native:"🐔"}],version:1},rooster:{id:"rooster",name:"Rooster",keywords:["animal","nature","chicken"],skins:[{unified:"1f413",native:"🐓"}],version:1},hatching_chick:{id:"hatching_chick",name:"Hatching Chick",keywords:["animal","chicken","egg","born","baby","bird"],skins:[{unified:"1f423",native:"🐣"}],version:1},baby_chick:{id:"baby_chick",name:"Baby Chick",keywords:["animal","chicken","bird"],skins:[{unified:"1f424",native:"🐤"}],version:1},hatched_chick:{id:"hatched_chick",name:"Front-Facing Baby Chick",keywords:["hatched","front","facing","animal","chicken","bird"],skins:[{unified:"1f425",native:"🐥"}],version:1},bird:{id:"bird",name:"Bird",keywords:["animal","nature","fly","tweet","spring"],skins:[{unified:"1f426",native:"🐦"}],version:1},penguin:{id:"penguin",name:"Penguin",keywords:["animal","nature"],skins:[{unified:"1f427",native:"🐧"}],version:1},dove_of_peace:{id:"dove_of_peace",name:"Dove",keywords:["of","peace","animal","bird"],skins:[{unified:"1f54a-fe0f",native:"🕊️"}],version:1},eagle:{id:"eagle",name:"Eagle",keywords:["animal","nature","bird"],skins:[{unified:"1f985",native:"🦅"}],version:3},duck:{id:"duck",name:"Duck",keywords:["animal","nature","bird","mallard"],skins:[{unified:"1f986",native:"🦆"}],version:3},swan:{id:"swan",name:"Swan",keywords:["animal","nature","bird"],skins:[{unified:"1f9a2",native:"🦢"}],version:11},owl:{id:"owl",name:"Owl",keywords:["animal","nature","bird","hoot"],skins:[{unified:"1f989",native:"🦉"}],version:3},dodo:{id:"dodo",name:"Dodo",keywords:["animal","bird"],skins:[{unified:"1f9a4",native:"🦤"}],version:13},feather:{id:"feather",name:"Feather",keywords:["bird","fly"],skins:[{unified:"1fab6",native:"🪶"}],version:13},flamingo:{id:"flamingo",name:"Flamingo",keywords:["animal"],skins:[{unified:"1f9a9",native:"🦩"}],version:12},peacock:{id:"peacock",name:"Peacock",keywords:["animal","nature","peahen","bird"],skins:[{unified:"1f99a",native:"🦚"}],version:11},parrot:{id:"parrot",name:"Parrot",keywords:["animal","nature","bird","pirate","talk"],skins:[{unified:"1f99c",native:"🦜"}],version:11},wing:{id:"wing",name:"Wing",keywords:["angel","birds","flying"],skins:[{unified:"1fabd",native:"🪽"}],version:15},black_bird:{id:"black_bird",name:"Black Bird",keywords:["crow"],skins:[{unified:"1f426-200d-2b1b",native:"🐦⬛"}],version:15},goose:{id:"goose",name:"Goose",keywords:["silly","jemima","goosebumps"],skins:[{unified:"1fabf",native:"🪿"}],version:15},frog:{id:"frog",name:"Frog",keywords:["animal","nature","croak","toad"],skins:[{unified:"1f438",native:"🐸"}],version:1},crocodile:{id:"crocodile",name:"Crocodile",keywords:["animal","nature","reptile","lizard","alligator"],skins:[{unified:"1f40a",native:"🐊"}],version:1},turtle:{id:"turtle",name:"Turtle",keywords:["animal","slow","nature","tortoise"],skins:[{unified:"1f422",native:"🐢"}],version:1},lizard:{id:"lizard",name:"Lizard",keywords:["animal","nature","reptile"],skins:[{unified:"1f98e",native:"🦎"}],version:3},snake:{id:"snake",name:"Snake",keywords:["animal","evil","nature","hiss","python"],skins:[{unified:"1f40d",native:"🐍"}],version:1},dragon_face:{id:"dragon_face",name:"Dragon Face",keywords:["animal","myth","nature","chinese","green"],skins:[{unified:"1f432",native:"🐲"}],version:1},dragon:{id:"dragon",name:"Dragon",keywords:["animal","myth","nature","chinese","green"],skins:[{unified:"1f409",native:"🐉"}],version:1},sauropod:{id:"sauropod",name:"Sauropod",keywords:["animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],skins:[{unified:"1f995",native:"🦕"}],version:5},"t-rex":{id:"t-rex",name:"T-Rex",keywords:["t","rex","animal","nature","dinosaur","tyrannosaurus","extinct"],skins:[{unified:"1f996",native:"🦖"}],version:5},whale:{id:"whale",name:"Spouting Whale",keywords:["animal","nature","sea","ocean"],skins:[{unified:"1f433",native:"🐳"}],version:1},whale2:{id:"whale2",name:"Whale",keywords:["whale2","animal","nature","sea","ocean"],skins:[{unified:"1f40b",native:"🐋"}],version:1},dolphin:{id:"dolphin",name:"Dolphin",keywords:["flipper","animal","nature","fish","sea","ocean","fins","beach"],skins:[{unified:"1f42c",native:"🐬"}],version:1},seal:{id:"seal",name:"Seal",keywords:["animal","creature","sea"],skins:[{unified:"1f9ad",native:"🦭"}],version:13},fish:{id:"fish",name:"Fish",keywords:["animal","food","nature"],skins:[{unified:"1f41f",native:"🐟"}],version:1},tropical_fish:{id:"tropical_fish",name:"Tropical Fish",keywords:["animal","swim","ocean","beach","nemo"],skins:[{unified:"1f420",native:"🐠"}],version:1},blowfish:{id:"blowfish",name:"Blowfish",keywords:["animal","nature","food","sea","ocean"],skins:[{unified:"1f421",native:"🐡"}],version:1},shark:{id:"shark",name:"Shark",keywords:["animal","nature","fish","sea","ocean","jaws","fins","beach"],skins:[{unified:"1f988",native:"🦈"}],version:3},octopus:{id:"octopus",name:"Octopus",keywords:["animal","creature","ocean","sea","nature","beach"],skins:[{unified:"1f419",native:"🐙"}],version:1},shell:{id:"shell",name:"Spiral Shell",keywords:["nature","sea","beach"],skins:[{unified:"1f41a",native:"🐚"}],version:1},coral:{id:"coral",name:"Coral",keywords:["ocean","sea","reef"],skins:[{unified:"1fab8",native:"🪸"}],version:14},jellyfish:{id:"jellyfish",name:"Jellyfish",keywords:["sting","tentacles"],skins:[{unified:"1fabc",native:"🪼"}],version:15},snail:{id:"snail",name:"Snail",keywords:["slow","animal","shell"],skins:[{unified:"1f40c",native:"🐌"}],version:1},butterfly:{id:"butterfly",name:"Butterfly",keywords:["animal","insect","nature","caterpillar"],skins:[{unified:"1f98b",native:"🦋"}],version:3},bug:{id:"bug",name:"Bug",keywords:["animal","insect","nature","worm"],skins:[{unified:"1f41b",native:"🐛"}],version:1},ant:{id:"ant",name:"Ant",keywords:["animal","insect","nature","bug"],skins:[{unified:"1f41c",native:"🐜"}],version:1},bee:{id:"bee",name:"Honeybee",keywords:["bee","animal","insect","nature","bug","spring","honey"],skins:[{unified:"1f41d",native:"🐝"}],version:1},beetle:{id:"beetle",name:"Beetle",keywords:["insect"],skins:[{unified:"1fab2",native:"🪲"}],version:13},ladybug:{id:"ladybug",name:"Lady Beetle",keywords:["ladybug","animal","insect","nature"],skins:[{unified:"1f41e",native:"🐞"}],version:1},cricket:{id:"cricket",name:"Cricket",keywords:["animal","chirp"],skins:[{unified:"1f997",native:"🦗"}],version:5},cockroach:{id:"cockroach",name:"Cockroach",keywords:["insect","pests"],skins:[{unified:"1fab3",native:"🪳"}],version:13},spider:{id:"spider",name:"Spider",keywords:["animal","arachnid"],skins:[{unified:"1f577-fe0f",native:"🕷️"}],version:1},spider_web:{id:"spider_web",name:"Spider Web",keywords:["animal","insect","arachnid","silk"],skins:[{unified:"1f578-fe0f",native:"🕸️"}],version:1},scorpion:{id:"scorpion",name:"Scorpion",keywords:["animal","arachnid"],skins:[{unified:"1f982",native:"🦂"}],version:1},mosquito:{id:"mosquito",name:"Mosquito",keywords:["animal","nature","insect","malaria"],skins:[{unified:"1f99f",native:"🦟"}],version:11},fly:{id:"fly",name:"Fly",keywords:["insect"],skins:[{unified:"1fab0",native:"🪰"}],version:13},worm:{id:"worm",name:"Worm",keywords:["animal"],skins:[{unified:"1fab1",native:"🪱"}],version:13},microbe:{id:"microbe",name:"Microbe",keywords:["amoeba","bacteria","germs","virus","covid"],skins:[{unified:"1f9a0",native:"🦠"}],version:11},bouquet:{id:"bouquet",name:"Bouquet",keywords:["flowers","nature","spring"],skins:[{unified:"1f490",native:"💐"}],version:1},cherry_blossom:{id:"cherry_blossom",name:"Cherry Blossom",keywords:["nature","plant","spring","flower"],skins:[{unified:"1f338",native:"🌸"}],version:1},white_flower:{id:"white_flower",name:"White Flower",keywords:["japanese","spring"],skins:[{unified:"1f4ae",native:"💮"}],version:1},lotus:{id:"lotus",name:"Lotus",keywords:["flower","calm","meditation"],skins:[{unified:"1fab7",native:"🪷"}],version:14},rosette:{id:"rosette",name:"Rosette",keywords:["flower","decoration","military"],skins:[{unified:"1f3f5-fe0f",native:"🏵️"}],version:1},rose:{id:"rose",name:"Rose",keywords:["flowers","valentines","love","spring"],skins:[{unified:"1f339",native:"🌹"}],version:1},wilted_flower:{id:"wilted_flower",name:"Wilted Flower",keywords:["plant","nature","rose"],skins:[{unified:"1f940",native:"🥀"}],version:3},hibiscus:{id:"hibiscus",name:"Hibiscus",keywords:["plant","vegetable","flowers","beach"],skins:[{unified:"1f33a",native:"🌺"}],version:1},sunflower:{id:"sunflower",name:"Sunflower",keywords:["nature","plant","fall"],skins:[{unified:"1f33b",native:"🌻"}],version:1},blossom:{id:"blossom",name:"Blossom",keywords:["nature","flowers","yellow"],skins:[{unified:"1f33c",native:"🌼"}],version:1},tulip:{id:"tulip",name:"Tulip",keywords:["flowers","plant","nature","summer","spring"],skins:[{unified:"1f337",native:"🌷"}],version:1},hyacinth:{id:"hyacinth",name:"Hyacinth",keywords:["flower","lavender"],skins:[{unified:"1fabb",native:"🪻"}],version:15},seedling:{id:"seedling",name:"Seedling",keywords:["plant","nature","grass","lawn","spring"],skins:[{unified:"1f331",native:"🌱"}],version:1},potted_plant:{id:"potted_plant",name:"Potted Plant",keywords:["greenery","house"],skins:[{unified:"1fab4",native:"🪴"}],version:13},evergreen_tree:{id:"evergreen_tree",name:"Evergreen Tree",keywords:["plant","nature"],skins:[{unified:"1f332",native:"🌲"}],version:1},deciduous_tree:{id:"deciduous_tree",name:"Deciduous Tree",keywords:["plant","nature"],skins:[{unified:"1f333",native:"🌳"}],version:1},palm_tree:{id:"palm_tree",name:"Palm Tree",keywords:["plant","vegetable","nature","summer","beach","mojito","tropical"],skins:[{unified:"1f334",native:"🌴"}],version:1},cactus:{id:"cactus",name:"Cactus",keywords:["vegetable","plant","nature"],skins:[{unified:"1f335",native:"🌵"}],version:1},ear_of_rice:{id:"ear_of_rice",name:"Ear of Rice",keywords:["sheaf","nature","plant"],skins:[{unified:"1f33e",native:"🌾"}],version:1},herb:{id:"herb",name:"Herb",keywords:["vegetable","plant","medicine","weed","grass","lawn"],skins:[{unified:"1f33f",native:"🌿"}],version:1},shamrock:{id:"shamrock",name:"Shamrock",keywords:["vegetable","plant","nature","irish","clover"],skins:[{unified:"2618-fe0f",native:"☘️"}],version:1},four_leaf_clover:{id:"four_leaf_clover",name:"Four Leaf Clover",keywords:["vegetable","plant","nature","lucky","irish"],skins:[{unified:"1f340",native:"🍀"}],version:1},maple_leaf:{id:"maple_leaf",name:"Maple Leaf",keywords:["nature","plant","vegetable","ca","fall"],skins:[{unified:"1f341",native:"🍁"}],version:1},fallen_leaf:{id:"fallen_leaf",name:"Fallen Leaf",keywords:["nature","plant","vegetable","leaves"],skins:[{unified:"1f342",native:"🍂"}],version:1},leaves:{id:"leaves",name:"Leaf Fluttering in Wind",keywords:["leaves","nature","plant","tree","vegetable","grass","lawn","spring"],skins:[{unified:"1f343",native:"🍃"}],version:1},empty_nest:{id:"empty_nest",name:"Empty Nest",keywords:["bird"],skins:[{unified:"1fab9",native:"🪹"}],version:14},nest_with_eggs:{id:"nest_with_eggs",name:"Nest with Eggs",keywords:["bird"],skins:[{unified:"1faba",native:"🪺"}],version:14},mushroom:{id:"mushroom",name:"Mushroom",keywords:["plant","vegetable"],skins:[{unified:"1f344",native:"🍄"}],version:1},grapes:{id:"grapes",name:"Grapes",keywords:["fruit","food","wine"],skins:[{unified:"1f347",native:"🍇"}],version:1},melon:{id:"melon",name:"Melon",keywords:["fruit","nature","food"],skins:[{unified:"1f348",native:"🍈"}],version:1},watermelon:{id:"watermelon",name:"Watermelon",keywords:["fruit","food","picnic","summer"],skins:[{unified:"1f349",native:"🍉"}],version:1},tangerine:{id:"tangerine",name:"Tangerine",keywords:["food","fruit","nature","orange"],skins:[{unified:"1f34a",native:"🍊"}],version:1},lemon:{id:"lemon",name:"Lemon",keywords:["fruit","nature"],skins:[{unified:"1f34b",native:"🍋"}],version:1},banana:{id:"banana",name:"Banana",keywords:["fruit","food","monkey"],skins:[{unified:"1f34c",native:"🍌"}],version:1},pineapple:{id:"pineapple",name:"Pineapple",keywords:["fruit","nature","food"],skins:[{unified:"1f34d",native:"🍍"}],version:1},mango:{id:"mango",name:"Mango",keywords:["fruit","food","tropical"],skins:[{unified:"1f96d",native:"🥭"}],version:11},apple:{id:"apple",name:"Red Apple",keywords:["fruit","mac","school"],skins:[{unified:"1f34e",native:"🍎"}],version:1},green_apple:{id:"green_apple",name:"Green Apple",keywords:["fruit","nature"],skins:[{unified:"1f34f",native:"🍏"}],version:1},pear:{id:"pear",name:"Pear",keywords:["fruit","nature","food"],skins:[{unified:"1f350",native:"🍐"}],version:1},peach:{id:"peach",name:"Peach",keywords:["fruit","nature","food"],skins:[{unified:"1f351",native:"🍑"}],version:1},cherries:{id:"cherries",name:"Cherries",keywords:["food","fruit"],skins:[{unified:"1f352",native:"🍒"}],version:1},strawberry:{id:"strawberry",name:"Strawberry",keywords:["fruit","food","nature"],skins:[{unified:"1f353",native:"🍓"}],version:1},blueberries:{id:"blueberries",name:"Blueberries",keywords:["fruit"],skins:[{unified:"1fad0",native:"🫐"}],version:13},kiwifruit:{id:"kiwifruit",name:"Kiwifruit",keywords:["kiwi","fruit","food"],skins:[{unified:"1f95d",native:"🥝"}],version:3},tomato:{id:"tomato",name:"Tomato",keywords:["fruit","vegetable","nature","food"],skins:[{unified:"1f345",native:"🍅"}],version:1},olive:{id:"olive",name:"Olive",keywords:["fruit"],skins:[{unified:"1fad2",native:"🫒"}],version:13},coconut:{id:"coconut",name:"Coconut",keywords:["fruit","nature","food","palm"],skins:[{unified:"1f965",native:"🥥"}],version:5},avocado:{id:"avocado",name:"Avocado",keywords:["fruit","food"],skins:[{unified:"1f951",native:"🥑"}],version:3},eggplant:{id:"eggplant",name:"Eggplant",keywords:["vegetable","nature","food","aubergine"],skins:[{unified:"1f346",native:"🍆"}],version:1},potato:{id:"potato",name:"Potato",keywords:["food","tuber","vegatable","starch"],skins:[{unified:"1f954",native:"🥔"}],version:3},carrot:{id:"carrot",name:"Carrot",keywords:["vegetable","food","orange"],skins:[{unified:"1f955",native:"🥕"}],version:3},corn:{id:"corn",name:"Ear of Corn",keywords:["food","vegetable","plant"],skins:[{unified:"1f33d",native:"🌽"}],version:1},hot_pepper:{id:"hot_pepper",name:"Hot Pepper",keywords:["food","spicy","chilli","chili"],skins:[{unified:"1f336-fe0f",native:"🌶️"}],version:1},bell_pepper:{id:"bell_pepper",name:"Bell Pepper",keywords:["fruit","plant"],skins:[{unified:"1fad1",native:"🫑"}],version:13},cucumber:{id:"cucumber",name:"Cucumber",keywords:["fruit","food","pickle"],skins:[{unified:"1f952",native:"🥒"}],version:3},leafy_green:{id:"leafy_green",name:"Leafy Green",keywords:["food","vegetable","plant","bok","choy","cabbage","kale","lettuce"],skins:[{unified:"1f96c",native:"🥬"}],version:11},broccoli:{id:"broccoli",name:"Broccoli",keywords:["fruit","food","vegetable"],skins:[{unified:"1f966",native:"🥦"}],version:5},garlic:{id:"garlic",name:"Garlic",keywords:["food","spice","cook"],skins:[{unified:"1f9c4",native:"🧄"}],version:12},onion:{id:"onion",name:"Onion",keywords:["cook","food","spice"],skins:[{unified:"1f9c5",native:"🧅"}],version:12},peanuts:{id:"peanuts",name:"Peanuts",keywords:["food","nut"],skins:[{unified:"1f95c",native:"🥜"}],version:3},beans:{id:"beans",name:"Beans",keywords:["food"],skins:[{unified:"1fad8",native:"🫘"}],version:14},chestnut:{id:"chestnut",name:"Chestnut",keywords:["food","squirrel"],skins:[{unified:"1f330",native:"🌰"}],version:1},ginger_root:{id:"ginger_root",name:"Ginger Root",keywords:["spice","yellow","cooking","gingerbread"],skins:[{unified:"1fada",native:"🫚"}],version:15},pea_pod:{id:"pea_pod",name:"Pea Pod",keywords:["cozy","green"],skins:[{unified:"1fadb",native:"🫛"}],version:15},bread:{id:"bread",name:"Bread",keywords:["food","wheat","breakfast","toast"],skins:[{unified:"1f35e",native:"🍞"}],version:1},croissant:{id:"croissant",name:"Croissant",keywords:["food","bread","french"],skins:[{unified:"1f950",native:"🥐"}],version:3},baguette_bread:{id:"baguette_bread",name:"Baguette Bread",keywords:["food","french","france","bakery"],skins:[{unified:"1f956",native:"🥖"}],version:3},flatbread:{id:"flatbread",name:"Flatbread",keywords:["flour","food","bakery"],skins:[{unified:"1fad3",native:"🫓"}],version:13},pretzel:{id:"pretzel",name:"Pretzel",keywords:["food","bread","twisted","germany","bakery"],skins:[{unified:"1f968",native:"🥨"}],version:5},bagel:{id:"bagel",name:"Bagel",keywords:["food","bread","bakery","schmear","jewish"],skins:[{unified:"1f96f",native:"🥯"}],version:11},pancakes:{id:"pancakes",name:"Pancakes",keywords:["food","breakfast","flapjacks","hotcakes","brunch"],skins:[{unified:"1f95e",native:"🥞"}],version:3},waffle:{id:"waffle",name:"Waffle",keywords:["food","breakfast","brunch"],skins:[{unified:"1f9c7",native:"🧇"}],version:12},cheese_wedge:{id:"cheese_wedge",name:"Cheese Wedge",keywords:["food","chadder","swiss"],skins:[{unified:"1f9c0",native:"🧀"}],version:1},meat_on_bone:{id:"meat_on_bone",name:"Meat on Bone",keywords:["good","food","drumstick"],skins:[{unified:"1f356",native:"🍖"}],version:1},poultry_leg:{id:"poultry_leg",name:"Poultry Leg",keywords:["food","meat","drumstick","bird","chicken","turkey"],skins:[{unified:"1f357",native:"🍗"}],version:1},cut_of_meat:{id:"cut_of_meat",name:"Cut of Meat",keywords:["food","cow","chop","lambchop","porkchop"],skins:[{unified:"1f969",native:"🥩"}],version:5},bacon:{id:"bacon",name:"Bacon",keywords:["food","breakfast","pork","pig","meat","brunch"],skins:[{unified:"1f953",native:"🥓"}],version:3},hamburger:{id:"hamburger",name:"Hamburger",keywords:["meat","fast","food","beef","cheeseburger","mcdonalds","burger","king"],skins:[{unified:"1f354",native:"🍔"}],version:1},fries:{id:"fries",name:"French Fries",keywords:["chips","snack","fast","food","potato"],skins:[{unified:"1f35f",native:"🍟"}],version:1},pizza:{id:"pizza",name:"Pizza",keywords:["food","party","italy"],skins:[{unified:"1f355",native:"🍕"}],version:1},hotdog:{id:"hotdog",name:"Hot Dog",keywords:["hotdog","food","frankfurter","america"],skins:[{unified:"1f32d",native:"🌭"}],version:1},sandwich:{id:"sandwich",name:"Sandwich",keywords:["food","lunch","bread","toast","bakery"],skins:[{unified:"1f96a",native:"🥪"}],version:5},taco:{id:"taco",name:"Taco",keywords:["food","mexican"],skins:[{unified:"1f32e",native:"🌮"}],version:1},burrito:{id:"burrito",name:"Burrito",keywords:["food","mexican"],skins:[{unified:"1f32f",native:"🌯"}],version:1},tamale:{id:"tamale",name:"Tamale",keywords:["food","masa"],skins:[{unified:"1fad4",native:"🫔"}],version:13},stuffed_flatbread:{id:"stuffed_flatbread",name:"Stuffed Flatbread",keywords:["food","gyro","mediterranean"],skins:[{unified:"1f959",native:"🥙"}],version:3},falafel:{id:"falafel",name:"Falafel",keywords:["food","mediterranean"],skins:[{unified:"1f9c6",native:"🧆"}],version:12},egg:{id:"egg",name:"Egg",keywords:["food","chicken","breakfast"],skins:[{unified:"1f95a",native:"🥚"}],version:3},fried_egg:{id:"fried_egg",name:"Cooking",keywords:["fried","egg","food","breakfast","kitchen","skillet"],skins:[{unified:"1f373",native:"🍳"}],version:1},shallow_pan_of_food:{id:"shallow_pan_of_food",name:"Shallow Pan of Food",keywords:["cooking","casserole","paella","skillet"],skins:[{unified:"1f958",native:"🥘"}],version:3},stew:{id:"stew",name:"Pot of Food",keywords:["stew","meat","soup","hot"],skins:[{unified:"1f372",native:"🍲"}],version:1},fondue:{id:"fondue",name:"Fondue",keywords:["cheese","pot","food"],skins:[{unified:"1fad5",native:"🫕"}],version:13},bowl_with_spoon:{id:"bowl_with_spoon",name:"Bowl with Spoon",keywords:["food","breakfast","cereal","oatmeal","porridge"],skins:[{unified:"1f963",native:"🥣"}],version:5},green_salad:{id:"green_salad",name:"Green Salad",keywords:["food","healthy","lettuce","vegetable"],skins:[{unified:"1f957",native:"🥗"}],version:3},popcorn:{id:"popcorn",name:"Popcorn",keywords:["food","movie","theater","films","snack","drama"],skins:[{unified:"1f37f",native:"🍿"}],version:1},butter:{id:"butter",name:"Butter",keywords:["food","cook"],skins:[{unified:"1f9c8",native:"🧈"}],version:12},salt:{id:"salt",name:"Salt",keywords:["condiment","shaker"],skins:[{unified:"1f9c2",native:"🧂"}],version:11},canned_food:{id:"canned_food",name:"Canned Food",keywords:["soup","tomatoes"],skins:[{unified:"1f96b",native:"🥫"}],version:5},bento:{id:"bento",name:"Bento Box",keywords:["food","japanese","lunch"],skins:[{unified:"1f371",native:"🍱"}],version:1},rice_cracker:{id:"rice_cracker",name:"Rice Cracker",keywords:["food","japanese","snack"],skins:[{unified:"1f358",native:"🍘"}],version:1},rice_ball:{id:"rice_ball",name:"Rice Ball",keywords:["food","japanese"],skins:[{unified:"1f359",native:"🍙"}],version:1},rice:{id:"rice",name:"Cooked Rice",keywords:["food","asian"],skins:[{unified:"1f35a",native:"🍚"}],version:1},curry:{id:"curry",name:"Curry Rice",keywords:["food","spicy","hot","indian"],skins:[{unified:"1f35b",native:"🍛"}],version:1},ramen:{id:"ramen",name:"Steaming Bowl",keywords:["ramen","food","japanese","noodle","chopsticks"],skins:[{unified:"1f35c",native:"🍜"}],version:1},spaghetti:{id:"spaghetti",name:"Spaghetti",keywords:["food","italian","pasta","noodle"],skins:[{unified:"1f35d",native:"🍝"}],version:1},sweet_potato:{id:"sweet_potato",name:"Roasted Sweet Potato",keywords:["food","nature","plant"],skins:[{unified:"1f360",native:"🍠"}],version:1},oden:{id:"oden",name:"Oden",keywords:["food","japanese"],skins:[{unified:"1f362",native:"🍢"}],version:1},sushi:{id:"sushi",name:"Sushi",keywords:["food","fish","japanese","rice"],skins:[{unified:"1f363",native:"🍣"}],version:1},fried_shrimp:{id:"fried_shrimp",name:"Fried Shrimp",keywords:["food","animal","appetizer","summer"],skins:[{unified:"1f364",native:"🍤"}],version:1},fish_cake:{id:"fish_cake",name:"Fish Cake with Swirl",keywords:["food","japan","sea","beach","narutomaki","pink","kamaboko","surimi","ramen"],skins:[{unified:"1f365",native:"🍥"}],version:1},moon_cake:{id:"moon_cake",name:"Moon Cake",keywords:["food","autumn","dessert"],skins:[{unified:"1f96e",native:"🥮"}],version:11},dango:{id:"dango",name:"Dango",keywords:["food","dessert","sweet","japanese","barbecue","meat"],skins:[{unified:"1f361",native:"🍡"}],version:1},dumpling:{id:"dumpling",name:"Dumpling",keywords:["food","empanada","pierogi","potsticker","gyoza"],skins:[{unified:"1f95f",native:"🥟"}],version:5},fortune_cookie:{id:"fortune_cookie",name:"Fortune Cookie",keywords:["food","prophecy","dessert"],skins:[{unified:"1f960",native:"🥠"}],version:5},takeout_box:{id:"takeout_box",name:"Takeout Box",keywords:["food","leftovers"],skins:[{unified:"1f961",native:"🥡"}],version:5},crab:{id:"crab",name:"Crab",keywords:["animal","crustacean"],skins:[{unified:"1f980",native:"🦀"}],version:1},lobster:{id:"lobster",name:"Lobster",keywords:["animal","nature","bisque","claws","seafood"],skins:[{unified:"1f99e",native:"🦞"}],version:11},shrimp:{id:"shrimp",name:"Shrimp",keywords:["animal","ocean","nature","seafood"],skins:[{unified:"1f990",native:"🦐"}],version:3},squid:{id:"squid",name:"Squid",keywords:["animal","nature","ocean","sea"],skins:[{unified:"1f991",native:"🦑"}],version:3},oyster:{id:"oyster",name:"Oyster",keywords:["food"],skins:[{unified:"1f9aa",native:"🦪"}],version:12},icecream:{id:"icecream",name:"Soft Ice Cream",keywords:["icecream","food","hot","dessert","summer"],skins:[{unified:"1f366",native:"🍦"}],version:1},shaved_ice:{id:"shaved_ice",name:"Shaved Ice",keywords:["hot","dessert","summer"],skins:[{unified:"1f367",native:"🍧"}],version:1},ice_cream:{id:"ice_cream",name:"Ice Cream",keywords:["food","hot","dessert"],skins:[{unified:"1f368",native:"🍨"}],version:1},doughnut:{id:"doughnut",name:"Doughnut",keywords:["food","dessert","snack","sweet","donut"],skins:[{unified:"1f369",native:"🍩"}],version:1},cookie:{id:"cookie",name:"Cookie",keywords:["food","snack","oreo","chocolate","sweet","dessert"],skins:[{unified:"1f36a",native:"🍪"}],version:1},birthday:{id:"birthday",name:"Birthday Cake",keywords:["food","dessert"],skins:[{unified:"1f382",native:"🎂"}],version:1},cake:{id:"cake",name:"Shortcake",keywords:["cake","food","dessert"],skins:[{unified:"1f370",native:"🍰"}],version:1},cupcake:{id:"cupcake",name:"Cupcake",keywords:["food","dessert","bakery","sweet"],skins:[{unified:"1f9c1",native:"🧁"}],version:11},pie:{id:"pie",name:"Pie",keywords:["food","dessert","pastry"],skins:[{unified:"1f967",native:"🥧"}],version:5},chocolate_bar:{id:"chocolate_bar",name:"Chocolate Bar",keywords:["food","snack","dessert","sweet"],skins:[{unified:"1f36b",native:"🍫"}],version:1},candy:{id:"candy",name:"Candy",keywords:["snack","dessert","sweet","lolly"],skins:[{unified:"1f36c",native:"🍬"}],version:1},lollipop:{id:"lollipop",name:"Lollipop",keywords:["food","snack","candy","sweet"],skins:[{unified:"1f36d",native:"🍭"}],version:1},custard:{id:"custard",name:"Custard",keywords:["dessert","food"],skins:[{unified:"1f36e",native:"🍮"}],version:1},honey_pot:{id:"honey_pot",name:"Honey Pot",keywords:["bees","sweet","kitchen"],skins:[{unified:"1f36f",native:"🍯"}],version:1},baby_bottle:{id:"baby_bottle",name:"Baby Bottle",keywords:["food","container","milk"],skins:[{unified:"1f37c",native:"🍼"}],version:1},glass_of_milk:{id:"glass_of_milk",name:"Glass of Milk",keywords:["beverage","drink","cow"],skins:[{unified:"1f95b",native:"🥛"}],version:3},coffee:{id:"coffee",name:"Hot Beverage",keywords:["coffee","caffeine","latte","espresso","mug"],skins:[{unified:"2615",native:"☕"}],version:1},teapot:{id:"teapot",name:"Teapot",keywords:["drink","hot"],skins:[{unified:"1fad6",native:"🫖"}],version:13},tea:{id:"tea",name:"Teacup Without Handle",keywords:["tea","drink","bowl","breakfast","green","british"],skins:[{unified:"1f375",native:"🍵"}],version:1},sake:{id:"sake",name:"Sake",keywords:["wine","drink","drunk","beverage","japanese","alcohol","booze"],skins:[{unified:"1f376",native:"🍶"}],version:1},champagne:{id:"champagne",name:"Bottle with Popping Cork",keywords:["champagne","drink","wine","celebration"],skins:[{unified:"1f37e",native:"🍾"}],version:1},wine_glass:{id:"wine_glass",name:"Wine Glass",keywords:["drink","beverage","drunk","alcohol","booze"],skins:[{unified:"1f377",native:"🍷"}],version:1},cocktail:{id:"cocktail",name:"Cocktail Glass",keywords:["drink","drunk","alcohol","beverage","booze","mojito"],skins:[{unified:"1f378",native:"🍸"}],version:1},tropical_drink:{id:"tropical_drink",name:"Tropical Drink",keywords:["beverage","cocktail","summer","beach","alcohol","booze","mojito"],skins:[{unified:"1f379",native:"🍹"}],version:1},beer:{id:"beer",name:"Beer Mug",keywords:["relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],skins:[{unified:"1f37a",native:"🍺"}],version:1},beers:{id:"beers",name:"Clinking Beer Mugs",keywords:["beers","relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],skins:[{unified:"1f37b",native:"🍻"}],version:1},clinking_glasses:{id:"clinking_glasses",name:"Clinking Glasses",keywords:["beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],skins:[{unified:"1f942",native:"🥂"}],version:3},tumbler_glass:{id:"tumbler_glass",name:"Tumbler Glass",keywords:["drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","shot"],skins:[{unified:"1f943",native:"🥃"}],version:3},pouring_liquid:{id:"pouring_liquid",name:"Pouring Liquid",keywords:["cup","water"],skins:[{unified:"1fad7",native:"🫗"}],version:14},cup_with_straw:{id:"cup_with_straw",name:"Cup with Straw",keywords:["drink","soda"],skins:[{unified:"1f964",native:"🥤"}],version:5},bubble_tea:{id:"bubble_tea",name:"Bubble Tea",keywords:["taiwan","boba","milk","straw"],skins:[{unified:"1f9cb",native:"🧋"}],version:13},beverage_box:{id:"beverage_box",name:"Beverage Box",keywords:["drink"],skins:[{unified:"1f9c3",native:"🧃"}],version:12},mate_drink:{id:"mate_drink",name:"Mate",keywords:["drink","tea","beverage"],skins:[{unified:"1f9c9",native:"🧉"}],version:12},ice_cube:{id:"ice_cube",name:"Ice",keywords:["cube","water","cold"],skins:[{unified:"1f9ca",native:"🧊"}],version:12},chopsticks:{id:"chopsticks",name:"Chopsticks",keywords:["food"],skins:[{unified:"1f962",native:"🥢"}],version:5},knife_fork_plate:{id:"knife_fork_plate",name:"Fork and Knife with Plate",keywords:["food","eat","meal","lunch","dinner","restaurant"],skins:[{unified:"1f37d-fe0f",native:"🍽️"}],version:1},fork_and_knife:{id:"fork_and_knife",name:"Fork and Knife",keywords:["cutlery","kitchen"],skins:[{unified:"1f374",native:"🍴"}],version:1},spoon:{id:"spoon",name:"Spoon",keywords:["cutlery","kitchen","tableware"],skins:[{unified:"1f944",native:"🥄"}],version:3},hocho:{id:"hocho",name:"Hocho",keywords:["knife","kitchen","blade","cutlery","weapon"],skins:[{unified:"1f52a",native:"🔪"}],version:1},jar:{id:"jar",name:"Jar",keywords:["container","sauce"],skins:[{unified:"1fad9",native:"🫙"}],version:14},amphora:{id:"amphora",name:"Amphora",keywords:["vase","jar"],skins:[{unified:"1f3fa",native:"🏺"}],version:1},earth_africa:{id:"earth_africa",name:"Earth Globe Europe-Africa",keywords:["africa","showing","europe","world","international"],skins:[{unified:"1f30d",native:"🌍"}],version:1},earth_americas:{id:"earth_americas",name:"Earth Globe Americas",keywords:["showing","world","USA","international"],skins:[{unified:"1f30e",native:"🌎"}],version:1},earth_asia:{id:"earth_asia",name:"Earth Globe Asia-Australia",keywords:["asia","showing","australia","world","east","international"],skins:[{unified:"1f30f",native:"🌏"}],version:1},globe_with_meridians:{id:"globe_with_meridians",name:"Globe with Meridians",keywords:["earth","international","world","internet","interweb","i18n"],skins:[{unified:"1f310",native:"🌐"}],version:1},world_map:{id:"world_map",name:"World Map",keywords:["location","direction"],skins:[{unified:"1f5fa-fe0f",native:"🗺️"}],version:1},japan:{id:"japan",name:"Map of Japan",keywords:["nation","country","japanese","asia"],skins:[{unified:"1f5fe",native:"🗾"}],version:1},compass:{id:"compass",name:"Compass",keywords:["magnetic","navigation","orienteering"],skins:[{unified:"1f9ed",native:"🧭"}],version:11},snow_capped_mountain:{id:"snow_capped_mountain",name:"Snow-Capped Mountain",keywords:["snow","capped","photo","nature","environment","winter","cold"],skins:[{unified:"1f3d4-fe0f",native:"🏔️"}],version:1},mountain:{id:"mountain",name:"Mountain",keywords:["photo","nature","environment"],skins:[{unified:"26f0-fe0f",native:"⛰️"}],version:1},volcano:{id:"volcano",name:"Volcano",keywords:["photo","nature","disaster"],skins:[{unified:"1f30b",native:"🌋"}],version:1},mount_fuji:{id:"mount_fuji",name:"Mount Fuji",keywords:["photo","mountain","nature","japanese"],skins:[{unified:"1f5fb",native:"🗻"}],version:1},camping:{id:"camping",name:"Camping",keywords:["photo","outdoors","tent"],skins:[{unified:"1f3d5-fe0f",native:"🏕️"}],version:1},beach_with_umbrella:{id:"beach_with_umbrella",name:"Beach with Umbrella",keywords:["weather","summer","sunny","sand","mojito"],skins:[{unified:"1f3d6-fe0f",native:"🏖️"}],version:1},desert:{id:"desert",name:"Desert",keywords:["photo","warm","saharah"],skins:[{unified:"1f3dc-fe0f",native:"🏜️"}],version:1},desert_island:{id:"desert_island",name:"Desert Island",keywords:["photo","tropical","mojito"],skins:[{unified:"1f3dd-fe0f",native:"🏝️"}],version:1},national_park:{id:"national_park",name:"National Park",keywords:["photo","environment","nature"],skins:[{unified:"1f3de-fe0f",native:"🏞️"}],version:1},stadium:{id:"stadium",name:"Stadium",keywords:["photo","place","sports","concert","venue"],skins:[{unified:"1f3df-fe0f",native:"🏟️"}],version:1},classical_building:{id:"classical_building",name:"Classical Building",keywords:["art","culture","history"],skins:[{unified:"1f3db-fe0f",native:"🏛️"}],version:1},building_construction:{id:"building_construction",name:"Building Construction",keywords:["wip","working","progress"],skins:[{unified:"1f3d7-fe0f",native:"🏗️"}],version:1},bricks:{id:"bricks",name:"Brick",keywords:["bricks"],skins:[{unified:"1f9f1",native:"🧱"}],version:11},rock:{id:"rock",name:"Rock",keywords:["stone"],skins:[{unified:"1faa8",native:"🪨"}],version:13},wood:{id:"wood",name:"Wood",keywords:["nature","timber","trunk"],skins:[{unified:"1fab5",native:"🪵"}],version:13},hut:{id:"hut",name:"Hut",keywords:["house","structure"],skins:[{unified:"1f6d6",native:"🛖"}],version:13},house_buildings:{id:"house_buildings",name:"Houses",keywords:["house","buildings","photo"],skins:[{unified:"1f3d8-fe0f",native:"🏘️"}],version:1},derelict_house_building:{id:"derelict_house_building",name:"Derelict House",keywords:["building","abandon","evict","broken"],skins:[{unified:"1f3da-fe0f",native:"🏚️"}],version:1},house:{id:"house",name:"House",keywords:["building","home"],skins:[{unified:"1f3e0",native:"🏠"}],version:1},house_with_garden:{id:"house_with_garden",name:"House with Garden",keywords:["home","plant","nature"],skins:[{unified:"1f3e1",native:"🏡"}],version:1},office:{id:"office",name:"Office Building",keywords:["bureau","work"],skins:[{unified:"1f3e2",native:"🏢"}],version:1},post_office:{id:"post_office",name:"Japanese Post Office",keywords:["building","envelope","communication"],skins:[{unified:"1f3e3",native:"🏣"}],version:1},european_post_office:{id:"european_post_office",name:"Post Office",keywords:["european","building","email"],skins:[{unified:"1f3e4",native:"🏤"}],version:1},hospital:{id:"hospital",name:"Hospital",keywords:["building","health","surgery","doctor"],skins:[{unified:"1f3e5",native:"🏥"}],version:1},bank:{id:"bank",name:"Bank",keywords:["building","money","sales","cash","business","enterprise"],skins:[{unified:"1f3e6",native:"🏦"}],version:1},hotel:{id:"hotel",name:"Hotel",keywords:["building","accomodation","checkin"],skins:[{unified:"1f3e8",native:"🏨"}],version:1},love_hotel:{id:"love_hotel",name:"Love Hotel",keywords:["like","affection","dating"],skins:[{unified:"1f3e9",native:"🏩"}],version:1},convenience_store:{id:"convenience_store",name:"Convenience Store",keywords:["building","shopping","groceries"],skins:[{unified:"1f3ea",native:"🏪"}],version:1},school:{id:"school",name:"School",keywords:["building","student","education","learn","teach"],skins:[{unified:"1f3eb",native:"🏫"}],version:1},department_store:{id:"department_store",name:"Department Store",keywords:["building","shopping","mall"],skins:[{unified:"1f3ec",native:"🏬"}],version:1},factory:{id:"factory",name:"Factory",keywords:["building","industry","pollution","smoke"],skins:[{unified:"1f3ed",native:"🏭"}],version:1},japanese_castle:{id:"japanese_castle",name:"Japanese Castle",keywords:["photo","building"],skins:[{unified:"1f3ef",native:"🏯"}],version:1},european_castle:{id:"european_castle",name:"Castle",keywords:["european","building","royalty","history"],skins:[{unified:"1f3f0",native:"🏰"}],version:1},wedding:{id:"wedding",name:"Wedding",keywords:["love","like","affection","couple","marriage","bride","groom"],skins:[{unified:"1f492",native:"💒"}],version:1},tokyo_tower:{id:"tokyo_tower",name:"Tokyo Tower",keywords:["photo","japanese"],skins:[{unified:"1f5fc",native:"🗼"}],version:1},statue_of_liberty:{id:"statue_of_liberty",name:"Statue of Liberty",keywords:["american","newyork"],skins:[{unified:"1f5fd",native:"🗽"}],version:1},church:{id:"church",name:"Church",keywords:["building","religion","christ"],skins:[{unified:"26ea",native:"⛪"}],version:1},mosque:{id:"mosque",name:"Mosque",keywords:["islam","worship","minaret"],skins:[{unified:"1f54c",native:"🕌"}],version:1},hindu_temple:{id:"hindu_temple",name:"Hindu Temple",keywords:["religion"],skins:[{unified:"1f6d5",native:"🛕"}],version:12},synagogue:{id:"synagogue",name:"Synagogue",keywords:["judaism","worship","temple","jewish"],skins:[{unified:"1f54d",native:"🕍"}],version:1},shinto_shrine:{id:"shinto_shrine",name:"Shinto Shrine",keywords:["temple","japan","kyoto"],skins:[{unified:"26e9-fe0f",native:"⛩️"}],version:1},kaaba:{id:"kaaba",name:"Kaaba",keywords:["mecca","mosque","islam"],skins:[{unified:"1f54b",native:"🕋"}],version:1},fountain:{id:"fountain",name:"Fountain",keywords:["photo","summer","water","fresh"],skins:[{unified:"26f2",native:"⛲"}],version:1},tent:{id:"tent",name:"Tent",keywords:["photo","camping","outdoors"],skins:[{unified:"26fa",native:"⛺"}],version:1},foggy:{id:"foggy",name:"Foggy",keywords:["photo","mountain"],skins:[{unified:"1f301",native:"🌁"}],version:1},night_with_stars:{id:"night_with_stars",name:"Night with Stars",keywords:["evening","city","downtown"],skins:[{unified:"1f303",native:"🌃"}],version:1},cityscape:{id:"cityscape",name:"Cityscape",keywords:["photo","night","life","urban"],skins:[{unified:"1f3d9-fe0f",native:"🏙️"}],version:1},sunrise_over_mountains:{id:"sunrise_over_mountains",name:"Sunrise over Mountains",keywords:["view","vacation","photo"],skins:[{unified:"1f304",native:"🌄"}],version:1},sunrise:{id:"sunrise",name:"Sunrise",keywords:["morning","view","vacation","photo"],skins:[{unified:"1f305",native:"🌅"}],version:1},city_sunset:{id:"city_sunset",name:"Cityscape at Dusk",keywords:["city","sunset","photo","evening","sky","buildings"],skins:[{unified:"1f306",native:"🌆"}],version:1},city_sunrise:{id:"city_sunrise",name:"Sunset",keywords:["city","sunrise","photo","good","morning","dawn"],skins:[{unified:"1f307",native:"🌇"}],version:1},bridge_at_night:{id:"bridge_at_night",name:"Bridge at Night",keywords:["photo","sanfrancisco"],skins:[{unified:"1f309",native:"🌉"}],version:1},hotsprings:{id:"hotsprings",name:"Hot Springs",keywords:["hotsprings","bath","warm","relax"],skins:[{unified:"2668-fe0f",native:"♨️"}],version:1},carousel_horse:{id:"carousel_horse",name:"Carousel Horse",keywords:["photo","carnival"],skins:[{unified:"1f3a0",native:"🎠"}],version:1},playground_slide:{id:"playground_slide",name:"Playground Slide",keywords:["fun","park"],skins:[{unified:"1f6dd",native:"🛝"}],version:14},ferris_wheel:{id:"ferris_wheel",name:"Ferris Wheel",keywords:["photo","carnival","londoneye"],skins:[{unified:"1f3a1",native:"🎡"}],version:1},roller_coaster:{id:"roller_coaster",name:"Roller Coaster",keywords:["carnival","playground","photo","fun"],skins:[{unified:"1f3a2",native:"🎢"}],version:1},barber:{id:"barber",name:"Barber Pole",keywords:["hair","salon","style"],skins:[{unified:"1f488",native:"💈"}],version:1},circus_tent:{id:"circus_tent",name:"Circus Tent",keywords:["festival","carnival","party"],skins:[{unified:"1f3aa",native:"🎪"}],version:1},steam_locomotive:{id:"steam_locomotive",name:"Locomotive",keywords:["steam","transportation","vehicle","train"],skins:[{unified:"1f682",native:"🚂"}],version:1},railway_car:{id:"railway_car",name:"Railway Car",keywords:["transportation","vehicle"],skins:[{unified:"1f683",native:"🚃"}],version:1},bullettrain_side:{id:"bullettrain_side",name:"High-Speed Train",keywords:["bullettrain","side","high","speed","transportation","vehicle"],skins:[{unified:"1f684",native:"🚄"}],version:1},bullettrain_front:{id:"bullettrain_front",name:"Bullet Train",keywords:["bullettrain","front","transportation","vehicle","speed","fast","public","travel"],skins:[{unified:"1f685",native:"🚅"}],version:1},train2:{id:"train2",name:"Train",keywords:["train2","transportation","vehicle"],skins:[{unified:"1f686",native:"🚆"}],version:1},metro:{id:"metro",name:"Metro",keywords:["transportation","blue","square","mrt","underground","tube"],skins:[{unified:"1f687",native:"🚇"}],version:1},light_rail:{id:"light_rail",name:"Light Rail",keywords:["transportation","vehicle"],skins:[{unified:"1f688",native:"🚈"}],version:1},station:{id:"station",name:"Station",keywords:["transportation","vehicle","public"],skins:[{unified:"1f689",native:"🚉"}],version:1},tram:{id:"tram",name:"Tram",keywords:["transportation","vehicle"],skins:[{unified:"1f68a",native:"🚊"}],version:1},monorail:{id:"monorail",name:"Monorail",keywords:["transportation","vehicle"],skins:[{unified:"1f69d",native:"🚝"}],version:1},mountain_railway:{id:"mountain_railway",name:"Mountain Railway",keywords:["transportation","vehicle"],skins:[{unified:"1f69e",native:"🚞"}],version:1},train:{id:"train",name:"Tram Car",keywords:["train","transportation","vehicle","carriage","public","travel"],skins:[{unified:"1f68b",native:"🚋"}],version:1},bus:{id:"bus",name:"Bus",keywords:["car","vehicle","transportation"],skins:[{unified:"1f68c",native:"🚌"}],version:1},oncoming_bus:{id:"oncoming_bus",name:"Oncoming Bus",keywords:["vehicle","transportation"],skins:[{unified:"1f68d",native:"🚍"}],version:1},trolleybus:{id:"trolleybus",name:"Trolleybus",keywords:["bart","transportation","vehicle"],skins:[{unified:"1f68e",native:"🚎"}],version:1},minibus:{id:"minibus",name:"Minibus",keywords:["vehicle","car","transportation"],skins:[{unified:"1f690",native:"🚐"}],version:1},ambulance:{id:"ambulance",name:"Ambulance",keywords:["health","911","hospital"],skins:[{unified:"1f691",native:"🚑"}],version:1},fire_engine:{id:"fire_engine",name:"Fire Engine",keywords:["transportation","cars","vehicle"],skins:[{unified:"1f692",native:"🚒"}],version:1},police_car:{id:"police_car",name:"Police Car",keywords:["vehicle","cars","transportation","law","legal","enforcement"],skins:[{unified:"1f693",native:"🚓"}],version:1},oncoming_police_car:{id:"oncoming_police_car",name:"Oncoming Police Car",keywords:["vehicle","law","legal","enforcement","911"],skins:[{unified:"1f694",native:"🚔"}],version:1},taxi:{id:"taxi",name:"Taxi",keywords:["uber","vehicle","cars","transportation"],skins:[{unified:"1f695",native:"🚕"}],version:1},oncoming_taxi:{id:"oncoming_taxi",name:"Oncoming Taxi",keywords:["vehicle","cars","uber"],skins:[{unified:"1f696",native:"🚖"}],version:1},car:{id:"car",name:"Automobile",keywords:["car","red","transportation","vehicle"],skins:[{unified:"1f697",native:"🚗"}],version:1},oncoming_automobile:{id:"oncoming_automobile",name:"Oncoming Automobile",keywords:["car","vehicle","transportation"],skins:[{unified:"1f698",native:"🚘"}],version:1},blue_car:{id:"blue_car",name:"Recreational Vehicle",keywords:["blue","car","sport","utility","transportation"],skins:[{unified:"1f699",native:"🚙"}],version:1},pickup_truck:{id:"pickup_truck",name:"Pickup Truck",keywords:["car","transportation"],skins:[{unified:"1f6fb",native:"🛻"}],version:13},truck:{id:"truck",name:"Delivery Truck",keywords:["cars","transportation"],skins:[{unified:"1f69a",native:"🚚"}],version:1},articulated_lorry:{id:"articulated_lorry",name:"Articulated Lorry",keywords:["vehicle","cars","transportation","express"],skins:[{unified:"1f69b",native:"🚛"}],version:1},tractor:{id:"tractor",name:"Tractor",keywords:["vehicle","car","farming","agriculture"],skins:[{unified:"1f69c",native:"🚜"}],version:1},racing_car:{id:"racing_car",name:"Racing Car",keywords:["sports","race","fast","formula","f1"],skins:[{unified:"1f3ce-fe0f",native:"🏎️"}],version:1},racing_motorcycle:{id:"racing_motorcycle",name:"Motorcycle",keywords:["racing","race","sports","fast"],skins:[{unified:"1f3cd-fe0f",native:"🏍️"}],version:1},motor_scooter:{id:"motor_scooter",name:"Motor Scooter",keywords:["vehicle","vespa","sasha"],skins:[{unified:"1f6f5",native:"🛵"}],version:3},manual_wheelchair:{id:"manual_wheelchair",name:"Manual Wheelchair",keywords:["accessibility"],skins:[{unified:"1f9bd",native:"🦽"}],version:12},motorized_wheelchair:{id:"motorized_wheelchair",name:"Motorized Wheelchair",keywords:["accessibility"],skins:[{unified:"1f9bc",native:"🦼"}],version:12},auto_rickshaw:{id:"auto_rickshaw",name:"Auto Rickshaw",keywords:["move","transportation"],skins:[{unified:"1f6fa",native:"🛺"}],version:12},bike:{id:"bike",name:"Bicycle",keywords:["bike","sports","exercise","hipster"],skins:[{unified:"1f6b2",native:"🚲"}],version:1},scooter:{id:"scooter",name:"Scooter",keywords:["kick","vehicle","razor"],skins:[{unified:"1f6f4",native:"🛴"}],version:3},skateboard:{id:"skateboard",name:"Skateboard",keywords:["board"],skins:[{unified:"1f6f9",native:"🛹"}],version:11},roller_skate:{id:"roller_skate",name:"Roller Skate",keywords:["footwear","sports"],skins:[{unified:"1f6fc",native:"🛼"}],version:13},busstop:{id:"busstop",name:"Bus Stop",keywords:["busstop","transportation","wait"],skins:[{unified:"1f68f",native:"🚏"}],version:1},motorway:{id:"motorway",name:"Motorway",keywords:["road","cupertino","interstate","highway"],skins:[{unified:"1f6e3-fe0f",native:"🛣️"}],version:1},railway_track:{id:"railway_track",name:"Railway Track",keywords:["train","transportation"],skins:[{unified:"1f6e4-fe0f",native:"🛤️"}],version:1},oil_drum:{id:"oil_drum",name:"Oil Drum",keywords:["barrell"],skins:[{unified:"1f6e2-fe0f",native:"🛢️"}],version:1},fuelpump:{id:"fuelpump",name:"Fuel Pump",keywords:["fuelpump","gas","station","petroleum"],skins:[{unified:"26fd",native:"⛽"}],version:1},wheel:{id:"wheel",name:"Wheel",keywords:["car","transport"],skins:[{unified:"1f6de",native:"🛞"}],version:14},rotating_light:{id:"rotating_light",name:"Police Car Light",keywords:["rotating","ambulance","911","emergency","alert","error","pinged","law","legal"],skins:[{unified:"1f6a8",native:"🚨"}],version:1},traffic_light:{id:"traffic_light",name:"Horizontal Traffic Light",keywords:["transportation","signal"],skins:[{unified:"1f6a5",native:"🚥"}],version:1},vertical_traffic_light:{id:"vertical_traffic_light",name:"Vertical Traffic Light",keywords:["transportation","driving"],skins:[{unified:"1f6a6",native:"🚦"}],version:1},octagonal_sign:{id:"octagonal_sign",name:"Stop Sign",keywords:["octagonal"],skins:[{unified:"1f6d1",native:"🛑"}],version:3},construction:{id:"construction",name:"Construction",keywords:["wip","progress","caution","warning"],skins:[{unified:"1f6a7",native:"🚧"}],version:1},anchor:{id:"anchor",name:"Anchor",keywords:["ship","ferry","sea","boat"],skins:[{unified:"2693",native:"⚓"}],version:1},ring_buoy:{id:"ring_buoy",name:"Ring Buoy",keywords:["life","saver","preserver"],skins:[{unified:"1f6df",native:"🛟"}],version:14},boat:{id:"boat",name:"Sailboat",keywords:["boat","ship","summer","transportation","water","sailing"],skins:[{unified:"26f5",native:"⛵"}],version:1},canoe:{id:"canoe",name:"Canoe",keywords:["boat","paddle","water","ship"],skins:[{unified:"1f6f6",native:"🛶"}],version:3},speedboat:{id:"speedboat",name:"Speedboat",keywords:["ship","transportation","vehicle","summer"],skins:[{unified:"1f6a4",native:"🚤"}],version:1},passenger_ship:{id:"passenger_ship",name:"Passenger Ship",keywords:["yacht","cruise","ferry"],skins:[{unified:"1f6f3-fe0f",native:"🛳️"}],version:1},ferry:{id:"ferry",name:"Ferry",keywords:["boat","ship","yacht"],skins:[{unified:"26f4-fe0f",native:"⛴️"}],version:1},motor_boat:{id:"motor_boat",name:"Motor Boat",keywords:["ship"],skins:[{unified:"1f6e5-fe0f",native:"🛥️"}],version:1},ship:{id:"ship",name:"Ship",keywords:["transportation","titanic","deploy"],skins:[{unified:"1f6a2",native:"🚢"}],version:1},airplane:{id:"airplane",name:"Airplane",keywords:["vehicle","transportation","flight","fly"],skins:[{unified:"2708-fe0f",native:"✈️"}],version:1},small_airplane:{id:"small_airplane",name:"Small Airplane",keywords:["flight","transportation","fly","vehicle"],skins:[{unified:"1f6e9-fe0f",native:"🛩️"}],version:1},airplane_departure:{id:"airplane_departure",name:"Airplane Departure",keywords:["airport","flight","landing"],skins:[{unified:"1f6eb",native:"🛫"}],version:1},airplane_arriving:{id:"airplane_arriving",name:"Airplane Arrival",keywords:["arriving","airport","flight","boarding"],skins:[{unified:"1f6ec",native:"🛬"}],version:1},parachute:{id:"parachute",name:"Parachute",keywords:["fly","glide"],skins:[{unified:"1fa82",native:"🪂"}],version:12},seat:{id:"seat",name:"Seat",keywords:["sit","airplane","transport","bus","flight","fly"],skins:[{unified:"1f4ba",native:"💺"}],version:1},helicopter:{id:"helicopter",name:"Helicopter",keywords:["transportation","vehicle","fly"],skins:[{unified:"1f681",native:"🚁"}],version:1},suspension_railway:{id:"suspension_railway",name:"Suspension Railway",keywords:["vehicle","transportation"],skins:[{unified:"1f69f",native:"🚟"}],version:1},mountain_cableway:{id:"mountain_cableway",name:"Mountain Cableway",keywords:["transportation","vehicle","ski"],skins:[{unified:"1f6a0",native:"🚠"}],version:1},aerial_tramway:{id:"aerial_tramway",name:"Aerial Tramway",keywords:["transportation","vehicle","ski"],skins:[{unified:"1f6a1",native:"🚡"}],version:1},satellite:{id:"satellite",name:"Satellite",keywords:["communication","gps","orbit","spaceflight","NASA","ISS"],skins:[{unified:"1f6f0-fe0f",native:"🛰️"}],version:1},rocket:{id:"rocket",name:"Rocket",keywords:["launch","ship","staffmode","NASA","outer","space","fly"],skins:[{unified:"1f680",native:"🚀"}],version:1},flying_saucer:{id:"flying_saucer",name:"Flying Saucer",keywords:["transportation","vehicle","ufo"],skins:[{unified:"1f6f8",native:"🛸"}],version:5},bellhop_bell:{id:"bellhop_bell",name:"Bellhop Bell",keywords:["service"],skins:[{unified:"1f6ce-fe0f",native:"🛎️"}],version:1},luggage:{id:"luggage",name:"Luggage",keywords:["packing","travel"],skins:[{unified:"1f9f3",native:"🧳"}],version:11},hourglass:{id:"hourglass",name:"Hourglass",keywords:["done","time","clock","oldschool","limit","exam","quiz","test"],skins:[{unified:"231b",native:"⌛"}],version:1},hourglass_flowing_sand:{id:"hourglass_flowing_sand",name:"Hourglass Not Done",keywords:["flowing","sand","oldschool","time","countdown"],skins:[{unified:"23f3",native:"⏳"}],version:1},watch:{id:"watch",name:"Watch",keywords:["time","accessories"],skins:[{unified:"231a",native:"⌚"}],version:1},alarm_clock:{id:"alarm_clock",name:"Alarm Clock",keywords:["time","wake"],skins:[{unified:"23f0",native:"⏰"}],version:1},stopwatch:{id:"stopwatch",name:"Stopwatch",keywords:["time","deadline"],skins:[{unified:"23f1-fe0f",native:"⏱️"}],version:1},timer_clock:{id:"timer_clock",name:"Timer Clock",keywords:["alarm"],skins:[{unified:"23f2-fe0f",native:"⏲️"}],version:1},mantelpiece_clock:{id:"mantelpiece_clock",name:"Mantelpiece Clock",keywords:["time"],skins:[{unified:"1f570-fe0f",native:"🕰️"}],version:1},clock12:{id:"clock12",name:"Twelve O’clock",keywords:["clock12","o","clock","12","00:00","0000","12:00","1200","time","noon","midnight","midday","late","early","schedule"],skins:[{unified:"1f55b",native:"🕛"}],version:1},clock1230:{id:"clock1230",name:"Twelve-Thirty",keywords:["clock1230","twelve","thirty","00:30","0030","12:30","1230","time","late","early","schedule"],skins:[{unified:"1f567",native:"🕧"}],version:1},clock1:{id:"clock1",name:"One O’clock",keywords:["clock1","o","clock","1","1:00","100","13:00","1300","time","late","early","schedule"],skins:[{unified:"1f550",native:"🕐"}],version:1},clock130:{id:"clock130",name:"One-Thirty",keywords:["clock130","one","thirty","1:30","130","13:30","1330","time","late","early","schedule"],skins:[{unified:"1f55c",native:"🕜"}],version:1},clock2:{id:"clock2",name:"Two O’clock",keywords:["clock2","o","clock","2","2:00","200","14:00","1400","time","late","early","schedule"],skins:[{unified:"1f551",native:"🕑"}],version:1},clock230:{id:"clock230",name:"Two-Thirty",keywords:["clock230","two","thirty","2:30","230","14:30","1430","time","late","early","schedule"],skins:[{unified:"1f55d",native:"🕝"}],version:1},clock3:{id:"clock3",name:"Three O’clock",keywords:["clock3","o","clock","3","3:00","300","15:00","1500","time","late","early","schedule"],skins:[{unified:"1f552",native:"🕒"}],version:1},clock330:{id:"clock330",name:"Three-Thirty",keywords:["clock330","three","thirty","3:30","330","15:30","1530","time","late","early","schedule"],skins:[{unified:"1f55e",native:"🕞"}],version:1},clock4:{id:"clock4",name:"Four O’clock",keywords:["clock4","o","clock","4","4:00","400","16:00","1600","time","late","early","schedule"],skins:[{unified:"1f553",native:"🕓"}],version:1},clock430:{id:"clock430",name:"Four-Thirty",keywords:["clock430","four","thirty","4:30","430","16:30","1630","time","late","early","schedule"],skins:[{unified:"1f55f",native:"🕟"}],version:1},clock5:{id:"clock5",name:"Five O’clock",keywords:["clock5","o","clock","5","5:00","500","17:00","1700","time","late","early","schedule"],skins:[{unified:"1f554",native:"🕔"}],version:1},clock530:{id:"clock530",name:"Five-Thirty",keywords:["clock530","five","thirty","5:30","530","17:30","1730","time","late","early","schedule"],skins:[{unified:"1f560",native:"🕠"}],version:1},clock6:{id:"clock6",name:"Six O’clock",keywords:["clock6","o","clock","6","6:00","600","18:00","1800","time","late","early","schedule","dawn","dusk"],skins:[{unified:"1f555",native:"🕕"}],version:1},clock630:{id:"clock630",name:"Six-Thirty",keywords:["clock630","six","thirty","6:30","630","18:30","1830","time","late","early","schedule"],skins:[{unified:"1f561",native:"🕡"}],version:1},clock7:{id:"clock7",name:"Seven O’clock",keywords:["clock7","o","clock","7","7:00","700","19:00","1900","time","late","early","schedule"],skins:[{unified:"1f556",native:"🕖"}],version:1},clock730:{id:"clock730",name:"Seven-Thirty",keywords:["clock730","seven","thirty","7:30","730","19:30","1930","time","late","early","schedule"],skins:[{unified:"1f562",native:"🕢"}],version:1},clock8:{id:"clock8",name:"Eight O’clock",keywords:["clock8","o","clock","8","8:00","800","20:00","2000","time","late","early","schedule"],skins:[{unified:"1f557",native:"🕗"}],version:1},clock830:{id:"clock830",name:"Eight-Thirty",keywords:["clock830","eight","thirty","8:30","830","20:30","2030","time","late","early","schedule"],skins:[{unified:"1f563",native:"🕣"}],version:1},clock9:{id:"clock9",name:"Nine O’clock",keywords:["clock9","o","clock","9","9:00","900","21:00","2100","time","late","early","schedule"],skins:[{unified:"1f558",native:"🕘"}],version:1},clock930:{id:"clock930",name:"Nine-Thirty",keywords:["clock930","nine","thirty","9:30","930","21:30","2130","time","late","early","schedule"],skins:[{unified:"1f564",native:"🕤"}],version:1},clock10:{id:"clock10",name:"Ten O’clock",keywords:["clock10","o","clock","10","10:00","1000","22:00","2200","time","late","early","schedule"],skins:[{unified:"1f559",native:"🕙"}],version:1},clock1030:{id:"clock1030",name:"Ten-Thirty",keywords:["clock1030","ten","thirty","10:30","1030","22:30","2230","time","late","early","schedule"],skins:[{unified:"1f565",native:"🕥"}],version:1},clock11:{id:"clock11",name:"Eleven O’clock",keywords:["clock11","o","clock","11","11:00","1100","23:00","2300","time","late","early","schedule"],skins:[{unified:"1f55a",native:"🕚"}],version:1},clock1130:{id:"clock1130",name:"Eleven-Thirty",keywords:["clock1130","eleven","thirty","11:30","1130","23:30","2330","time","late","early","schedule"],skins:[{unified:"1f566",native:"🕦"}],version:1},new_moon:{id:"new_moon",name:"New Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f311",native:"🌑"}],version:1},waxing_crescent_moon:{id:"waxing_crescent_moon",name:"Waxing Crescent Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f312",native:"🌒"}],version:1},first_quarter_moon:{id:"first_quarter_moon",name:"First Quarter Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f313",native:"🌓"}],version:1},moon:{id:"moon",name:"Waxing Gibbous Moon",keywords:["nature","night","sky","gray","twilight","planet","space","evening","sleep"],skins:[{unified:"1f314",native:"🌔"}],version:1},full_moon:{id:"full_moon",name:"Full Moon",keywords:["nature","yellow","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f315",native:"🌕"}],version:1},waning_gibbous_moon:{id:"waning_gibbous_moon",name:"Waning Gibbous Moon",keywords:["nature","twilight","planet","space","night","evening","sleep","waxing"],skins:[{unified:"1f316",native:"🌖"}],version:1},last_quarter_moon:{id:"last_quarter_moon",name:"Last Quarter Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f317",native:"🌗"}],version:1},waning_crescent_moon:{id:"waning_crescent_moon",name:"Waning Crescent Moon",keywords:["nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f318",native:"🌘"}],version:1},crescent_moon:{id:"crescent_moon",name:"Crescent Moon",keywords:["night","sleep","sky","evening","magic"],skins:[{unified:"1f319",native:"🌙"}],version:1},new_moon_with_face:{id:"new_moon_with_face",name:"New Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31a",native:"🌚"}],version:1},first_quarter_moon_with_face:{id:"first_quarter_moon_with_face",name:"First Quarter Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31b",native:"🌛"}],version:1},last_quarter_moon_with_face:{id:"last_quarter_moon_with_face",name:"Last Quarter Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31c",native:"🌜"}],version:1},thermometer:{id:"thermometer",name:"Thermometer",keywords:["weather","temperature","hot","cold"],skins:[{unified:"1f321-fe0f",native:"🌡️"}],version:1},sunny:{id:"sunny",name:"Sun",keywords:["sunny","weather","nature","brightness","summer","beach","spring"],skins:[{unified:"2600-fe0f",native:"☀️"}],version:1},full_moon_with_face:{id:"full_moon_with_face",name:"Full Moon Face",keywords:["with","nature","twilight","planet","space","night","evening","sleep"],skins:[{unified:"1f31d",native:"🌝"}],version:1},sun_with_face:{id:"sun_with_face",name:"Sun with Face",keywords:["nature","morning","sky"],skins:[{unified:"1f31e",native:"🌞"}],version:1},ringed_planet:{id:"ringed_planet",name:"Ringed Planet",keywords:["outerspace"],skins:[{unified:"1fa90",native:"🪐"}],version:12},star:{id:"star",name:"Star",keywords:["night","yellow"],skins:[{unified:"2b50",native:"⭐"}],version:1},star2:{id:"star2",name:"Glowing Star",keywords:["star2","night","sparkle","awesome","good","magic"],skins:[{unified:"1f31f",native:"🌟"}],version:1},stars:{id:"stars",name:"Shooting Star",keywords:["stars","night","photo"],skins:[{unified:"1f320",native:"🌠"}],version:1},milky_way:{id:"milky_way",name:"Milky Way",keywords:["photo","space","stars"],skins:[{unified:"1f30c",native:"🌌"}],version:1},cloud:{id:"cloud",name:"Cloud",keywords:["weather","sky"],skins:[{unified:"2601-fe0f",native:"☁️"}],version:1},partly_sunny:{id:"partly_sunny",name:"Sun Behind Cloud",keywords:["partly","sunny","weather","nature","cloudy","morning","fall","spring"],skins:[{unified:"26c5",native:"⛅"}],version:1},thunder_cloud_and_rain:{id:"thunder_cloud_and_rain",name:"Cloud with Lightning and Rain",keywords:["thunder","weather"],skins:[{unified:"26c8-fe0f",native:"⛈️"}],version:1},mostly_sunny:{id:"mostly_sunny",name:"Sun Behind Small Cloud",keywords:["mostly","sunny","weather"],skins:[{unified:"1f324-fe0f",native:"🌤️"}],version:1},barely_sunny:{id:"barely_sunny",name:"Sun Behind Large Cloud",keywords:["barely","sunny","weather"],skins:[{unified:"1f325-fe0f",native:"🌥️"}],version:1},partly_sunny_rain:{id:"partly_sunny_rain",name:"Sun Behind Rain Cloud",keywords:["partly","sunny","weather"],skins:[{unified:"1f326-fe0f",native:"🌦️"}],version:1},rain_cloud:{id:"rain_cloud",name:"Cloud with Rain",keywords:["weather"],skins:[{unified:"1f327-fe0f",native:"🌧️"}],version:1},snow_cloud:{id:"snow_cloud",name:"Cloud with Snow",keywords:["weather"],skins:[{unified:"1f328-fe0f",native:"🌨️"}],version:1},lightning:{id:"lightning",name:"Cloud with Lightning",keywords:["weather","thunder"],skins:[{unified:"1f329-fe0f",native:"🌩️"}],version:1},tornado:{id:"tornado",name:"Tornado",keywords:["cloud","weather","cyclone","twister"],skins:[{unified:"1f32a-fe0f",native:"🌪️"}],version:1},fog:{id:"fog",name:"Fog",keywords:["weather"],skins:[{unified:"1f32b-fe0f",native:"🌫️"}],version:1},wind_blowing_face:{id:"wind_blowing_face",name:"Wind Face",keywords:["blowing","gust","air"],skins:[{unified:"1f32c-fe0f",native:"🌬️"}],version:1},cyclone:{id:"cyclone",name:"Cyclone",keywords:["weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],skins:[{unified:"1f300",native:"🌀"}],version:1},rainbow:{id:"rainbow",name:"Rainbow",keywords:["nature","happy","unicorn","face","photo","sky","spring"],skins:[{unified:"1f308",native:"🌈"}],version:1},closed_umbrella:{id:"closed_umbrella",name:"Closed Umbrella",keywords:["weather","rain","drizzle"],skins:[{unified:"1f302",native:"🌂"}],version:1},umbrella:{id:"umbrella",name:"Umbrella",keywords:["weather","spring"],skins:[{unified:"2602-fe0f",native:"☂️"}],version:1},umbrella_with_rain_drops:{id:"umbrella_with_rain_drops",name:"Umbrella with Rain Drops",keywords:["rainy","weather","spring"],skins:[{unified:"2614",native:"☔"}],version:1},umbrella_on_ground:{id:"umbrella_on_ground",name:"Umbrella on Ground",keywords:["weather","summer"],skins:[{unified:"26f1-fe0f",native:"⛱️"}],version:1},zap:{id:"zap",name:"High Voltage",keywords:["zap","thunder","weather","lightning","bolt","fast"],skins:[{unified:"26a1",native:"⚡"}],version:1},snowflake:{id:"snowflake",name:"Snowflake",keywords:["winter","season","cold","weather","christmas","xmas"],skins:[{unified:"2744-fe0f",native:"❄️"}],version:1},snowman:{id:"snowman",name:"Snowman",keywords:["winter","season","cold","weather","christmas","xmas","frozen"],skins:[{unified:"2603-fe0f",native:"☃️"}],version:1},snowman_without_snow:{id:"snowman_without_snow",name:"Snowman Without Snow",keywords:["winter","season","cold","weather","christmas","xmas","frozen"],skins:[{unified:"26c4",native:"⛄"}],version:1},comet:{id:"comet",name:"Comet",keywords:["space"],skins:[{unified:"2604-fe0f",native:"☄️"}],version:1},fire:{id:"fire",name:"Fire",keywords:["hot","cook","flame"],skins:[{unified:"1f525",native:"🔥"}],version:1},droplet:{id:"droplet",name:"Droplet",keywords:["water","drip","faucet","spring"],skins:[{unified:"1f4a7",native:"💧"}],version:1},ocean:{id:"ocean",name:"Water Wave",keywords:["ocean","sea","nature","tsunami","disaster"],skins:[{unified:"1f30a",native:"🌊"}],version:1},jack_o_lantern:{id:"jack_o_lantern",name:"Jack-O-Lantern",keywords:["jack","o","lantern","halloween","light","pumpkin","creepy","fall"],skins:[{unified:"1f383",native:"🎃"}],version:1},christmas_tree:{id:"christmas_tree",name:"Christmas Tree",keywords:["festival","vacation","december","xmas","celebration"],skins:[{unified:"1f384",native:"🎄"}],version:1},fireworks:{id:"fireworks",name:"Fireworks",keywords:["photo","festival","carnival","congratulations"],skins:[{unified:"1f386",native:"🎆"}],version:1},sparkler:{id:"sparkler",name:"Sparkler",keywords:["stars","night","shine"],skins:[{unified:"1f387",native:"🎇"}],version:1},firecracker:{id:"firecracker",name:"Firecracker",keywords:["dynamite","boom","explode","explosion","explosive"],skins:[{unified:"1f9e8",native:"🧨"}],version:11},sparkles:{id:"sparkles",name:"Sparkles",keywords:["stars","shine","shiny","cool","awesome","good","magic"],skins:[{unified:"2728",native:"✨"}],version:1},balloon:{id:"balloon",name:"Balloon",keywords:["party","celebration","birthday","circus"],skins:[{unified:"1f388",native:"🎈"}],version:1},tada:{id:"tada",name:"Party Popper",keywords:["tada","congratulations","birthday","magic","circus","celebration"],skins:[{unified:"1f389",native:"🎉"}],version:1},confetti_ball:{id:"confetti_ball",name:"Confetti Ball",keywords:["festival","party","birthday","circus"],skins:[{unified:"1f38a",native:"🎊"}],version:1},tanabata_tree:{id:"tanabata_tree",name:"Tanabata Tree",keywords:["plant","nature","branch","summer","bamboo","wish","star","festival","tanzaku"],skins:[{unified:"1f38b",native:"🎋"}],version:1},bamboo:{id:"bamboo",name:"Pine Decoration",keywords:["bamboo","japanese","plant","nature","vegetable","panda","new","years"],skins:[{unified:"1f38d",native:"🎍"}],version:1},dolls:{id:"dolls",name:"Japanese Dolls",keywords:["toy","kimono"],skins:[{unified:"1f38e",native:"🎎"}],version:1},flags:{id:"flags",name:"Carp Streamer",keywords:["flags","fish","japanese","koinobori","banner"],skins:[{unified:"1f38f",native:"🎏"}],version:1},wind_chime:{id:"wind_chime",name:"Wind Chime",keywords:["nature","ding","spring","bell"],skins:[{unified:"1f390",native:"🎐"}],version:1},rice_scene:{id:"rice_scene",name:"Moon Viewing Ceremony",keywords:["rice","scene","photo","japan","asia","tsukimi"],skins:[{unified:"1f391",native:"🎑"}],version:1},red_envelope:{id:"red_envelope",name:"Red Envelope",keywords:["gift"],skins:[{unified:"1f9e7",native:"🧧"}],version:11},ribbon:{id:"ribbon",name:"Ribbon",keywords:["decoration","pink","girl","bowtie"],skins:[{unified:"1f380",native:"🎀"}],version:1},gift:{id:"gift",name:"Wrapped Gift",keywords:["present","birthday","christmas","xmas"],skins:[{unified:"1f381",native:"🎁"}],version:1},reminder_ribbon:{id:"reminder_ribbon",name:"Reminder Ribbon",keywords:["sports","cause","support","awareness"],skins:[{unified:"1f397-fe0f",native:"🎗️"}],version:1},admission_tickets:{id:"admission_tickets",name:"Admission Tickets",keywords:["sports","concert","entrance"],skins:[{unified:"1f39f-fe0f",native:"🎟️"}],version:1},ticket:{id:"ticket",name:"Ticket",keywords:["event","concert","pass"],skins:[{unified:"1f3ab",native:"🎫"}],version:1},medal:{id:"medal",name:"Military Medal",keywords:["award","winning","army"],skins:[{unified:"1f396-fe0f",native:"🎖️"}],version:1},trophy:{id:"trophy",name:"Trophy",keywords:["win","award","contest","place","ftw","ceremony"],skins:[{unified:"1f3c6",native:"🏆"}],version:1},sports_medal:{id:"sports_medal",name:"Sports Medal",keywords:["award","winning"],skins:[{unified:"1f3c5",native:"🏅"}],version:1},first_place_medal:{id:"first_place_medal",name:"1st Place Medal",keywords:["first","award","winning"],skins:[{unified:"1f947",native:"🥇"}],version:3},second_place_medal:{id:"second_place_medal",name:"2nd Place Medal",keywords:["second","award"],skins:[{unified:"1f948",native:"🥈"}],version:3},third_place_medal:{id:"third_place_medal",name:"3rd Place Medal",keywords:["third","award"],skins:[{unified:"1f949",native:"🥉"}],version:3},soccer:{id:"soccer",name:"Soccer Ball",keywords:["sports","football"],skins:[{unified:"26bd",native:"⚽"}],version:1},baseball:{id:"baseball",name:"Baseball",keywords:["sports","balls"],skins:[{unified:"26be",native:"⚾"}],version:1},softball:{id:"softball",name:"Softball",keywords:["sports","balls"],skins:[{unified:"1f94e",native:"🥎"}],version:11},basketball:{id:"basketball",name:"Basketball",keywords:["sports","balls","NBA"],skins:[{unified:"1f3c0",native:"🏀"}],version:1},volleyball:{id:"volleyball",name:"Volleyball",keywords:["sports","balls"],skins:[{unified:"1f3d0",native:"🏐"}],version:1},football:{id:"football",name:"American Football",keywords:["sports","balls","NFL"],skins:[{unified:"1f3c8",native:"🏈"}],version:1},rugby_football:{id:"rugby_football",name:"Rugby Football",keywords:["sports","team"],skins:[{unified:"1f3c9",native:"🏉"}],version:1},tennis:{id:"tennis",name:"Tennis",keywords:["sports","balls","green"],skins:[{unified:"1f3be",native:"🎾"}],version:1},flying_disc:{id:"flying_disc",name:"Flying Disc",keywords:["sports","frisbee","ultimate"],skins:[{unified:"1f94f",native:"🥏"}],version:11},bowling:{id:"bowling",name:"Bowling",keywords:["sports","fun","play"],skins:[{unified:"1f3b3",native:"🎳"}],version:1},cricket_bat_and_ball:{id:"cricket_bat_and_ball",name:"Cricket Game",keywords:["bat","and","ball","sports"],skins:[{unified:"1f3cf",native:"🏏"}],version:1},field_hockey_stick_and_ball:{id:"field_hockey_stick_and_ball",name:"Field Hockey",keywords:["stick","and","ball","sports"],skins:[{unified:"1f3d1",native:"🏑"}],version:1},ice_hockey_stick_and_puck:{id:"ice_hockey_stick_and_puck",name:"Ice Hockey",keywords:["stick","and","puck","sports"],skins:[{unified:"1f3d2",native:"🏒"}],version:1},lacrosse:{id:"lacrosse",name:"Lacrosse",keywords:["sports","ball","stick"],skins:[{unified:"1f94d",native:"🥍"}],version:11},table_tennis_paddle_and_ball:{id:"table_tennis_paddle_and_ball",name:"Ping Pong",keywords:["table","tennis","paddle","and","ball","sports","pingpong"],skins:[{unified:"1f3d3",native:"🏓"}],version:1},badminton_racquet_and_shuttlecock:{id:"badminton_racquet_and_shuttlecock",name:"Badminton",keywords:["racquet","and","shuttlecock","sports"],skins:[{unified:"1f3f8",native:"🏸"}],version:1},boxing_glove:{id:"boxing_glove",name:"Boxing Glove",keywords:["sports","fighting"],skins:[{unified:"1f94a",native:"🥊"}],version:3},martial_arts_uniform:{id:"martial_arts_uniform",name:"Martial Arts Uniform",keywords:["judo","karate","taekwondo"],skins:[{unified:"1f94b",native:"🥋"}],version:3},goal_net:{id:"goal_net",name:"Goal Net",keywords:["sports"],skins:[{unified:"1f945",native:"🥅"}],version:3},golf:{id:"golf",name:"Flag in Hole",keywords:["golf","sports","business","summer"],skins:[{unified:"26f3",native:"⛳"}],version:1},ice_skate:{id:"ice_skate",name:"Ice Skate",keywords:["sports"],skins:[{unified:"26f8-fe0f",native:"⛸️"}],version:1},fishing_pole_and_fish:{id:"fishing_pole_and_fish",name:"Fishing Pole",keywords:["and","fish","food","hobby","summer"],skins:[{unified:"1f3a3",native:"🎣"}],version:1},diving_mask:{id:"diving_mask",name:"Diving Mask",keywords:["sport","ocean"],skins:[{unified:"1f93f",native:"🤿"}],version:12},running_shirt_with_sash:{id:"running_shirt_with_sash",name:"Running Shirt",keywords:["with","sash","play","pageant"],skins:[{unified:"1f3bd",native:"🎽"}],version:1},ski:{id:"ski",name:"Skis",keywords:["ski","sports","winter","cold","snow"],skins:[{unified:"1f3bf",native:"🎿"}],version:1},sled:{id:"sled",name:"Sled",keywords:["sleigh","luge","toboggan"],skins:[{unified:"1f6f7",native:"🛷"}],version:5},curling_stone:{id:"curling_stone",name:"Curling Stone",keywords:["sports"],skins:[{unified:"1f94c",native:"🥌"}],version:5},dart:{id:"dart",name:"Bullseye",keywords:["dart","direct","hit","game","play","bar","target"],skins:[{unified:"1f3af",native:"🎯"}],version:1},"yo-yo":{id:"yo-yo",name:"Yo-Yo",keywords:["yo","toy"],skins:[{unified:"1fa80",native:"🪀"}],version:12},kite:{id:"kite",name:"Kite",keywords:["wind","fly"],skins:[{unified:"1fa81",native:"🪁"}],version:12},gun:{id:"gun",name:"Pistol",keywords:["gun","violence","weapon","revolver"],skins:[{unified:"1f52b",native:"🔫"}],version:1},"8ball":{id:"8ball",name:"Billiards",keywords:["8ball","pool","8","ball","hobby","game","luck","magic"],skins:[{unified:"1f3b1",native:"🎱"}],version:1},crystal_ball:{id:"crystal_ball",name:"Crystal Ball",keywords:["disco","party","magic","circus","fortune","teller"],skins:[{unified:"1f52e",native:"🔮"}],version:1},magic_wand:{id:"magic_wand",name:"Magic Wand",keywords:["supernature","power"],skins:[{unified:"1fa84",native:"🪄"}],version:13},video_game:{id:"video_game",name:"Video Game",keywords:["play","console","PS4","controller"],skins:[{unified:"1f3ae",native:"🎮"}],version:1},joystick:{id:"joystick",name:"Joystick",keywords:["game","play"],skins:[{unified:"1f579-fe0f",native:"🕹️"}],version:1},slot_machine:{id:"slot_machine",name:"Slot Machine",keywords:["bet","gamble","vegas","fruit","luck","casino"],skins:[{unified:"1f3b0",native:"🎰"}],version:1},game_die:{id:"game_die",name:"Game Die",keywords:["dice","random","tabletop","play","luck"],skins:[{unified:"1f3b2",native:"🎲"}],version:1},jigsaw:{id:"jigsaw",name:"Puzzle Piece",keywords:["jigsaw","interlocking"],skins:[{unified:"1f9e9",native:"🧩"}],version:11},teddy_bear:{id:"teddy_bear",name:"Teddy Bear",keywords:["plush","stuffed"],skins:[{unified:"1f9f8",native:"🧸"}],version:11},pinata:{id:"pinata",name:"Pinata",keywords:["mexico","candy","celebration"],skins:[{unified:"1fa85",native:"🪅"}],version:13},mirror_ball:{id:"mirror_ball",name:"Mirror Ball",keywords:["disco","dance","party"],skins:[{unified:"1faa9",native:"🪩"}],version:14},nesting_dolls:{id:"nesting_dolls",name:"Nesting Dolls",keywords:["matryoshka","toy"],skins:[{unified:"1fa86",native:"🪆"}],version:13},spades:{id:"spades",name:"Spade Suit",keywords:["spades","poker","cards","suits","magic"],skins:[{unified:"2660-fe0f",native:"♠️"}],version:1},hearts:{id:"hearts",name:"Heart Suit",keywords:["hearts","poker","cards","magic","suits"],skins:[{unified:"2665-fe0f",native:"♥️"}],version:1},diamonds:{id:"diamonds",name:"Diamond Suit",keywords:["diamonds","poker","cards","magic","suits"],skins:[{unified:"2666-fe0f",native:"♦️"}],version:1},clubs:{id:"clubs",name:"Club Suit",keywords:["clubs","poker","cards","magic","suits"],skins:[{unified:"2663-fe0f",native:"♣️"}],version:1},chess_pawn:{id:"chess_pawn",name:"Chess Pawn",keywords:["expendable"],skins:[{unified:"265f-fe0f",native:"♟️"}],version:11},black_joker:{id:"black_joker",name:"Joker",keywords:["black","poker","cards","game","play","magic"],skins:[{unified:"1f0cf",native:"🃏"}],version:1},mahjong:{id:"mahjong",name:"Mahjong Red Dragon",keywords:["game","play","chinese","kanji"],skins:[{unified:"1f004",native:"🀄"}],version:1},flower_playing_cards:{id:"flower_playing_cards",name:"Flower Playing Cards",keywords:["game","sunset","red"],skins:[{unified:"1f3b4",native:"🎴"}],version:1},performing_arts:{id:"performing_arts",name:"Performing Arts",keywords:["acting","theater","drama"],skins:[{unified:"1f3ad",native:"🎭"}],version:1},frame_with_picture:{id:"frame_with_picture",name:"Framed Picture",keywords:["frame","with","photography"],skins:[{unified:"1f5bc-fe0f",native:"🖼️"}],version:1},art:{id:"art",name:"Artist Palette",keywords:["art","design","paint","draw","colors"],skins:[{unified:"1f3a8",native:"🎨"}],version:1},thread:{id:"thread",name:"Thread",keywords:["needle","sewing","spool","string"],skins:[{unified:"1f9f5",native:"🧵"}],version:11},sewing_needle:{id:"sewing_needle",name:"Sewing Needle",keywords:["stitches"],skins:[{unified:"1faa1",native:"🪡"}],version:13},yarn:{id:"yarn",name:"Yarn",keywords:["ball","crochet","knit"],skins:[{unified:"1f9f6",native:"🧶"}],version:11},knot:{id:"knot",name:"Knot",keywords:["rope","scout"],skins:[{unified:"1faa2",native:"🪢"}],version:13},eyeglasses:{id:"eyeglasses",name:"Glasses",keywords:["eyeglasses","fashion","accessories","eyesight","nerdy","dork","geek"],skins:[{unified:"1f453",native:"👓"}],version:1},dark_sunglasses:{id:"dark_sunglasses",name:"Sunglasses",keywords:["dark","face","cool","accessories"],skins:[{unified:"1f576-fe0f",native:"🕶️"}],version:1},goggles:{id:"goggles",name:"Goggles",keywords:["eyes","protection","safety"],skins:[{unified:"1f97d",native:"🥽"}],version:11},lab_coat:{id:"lab_coat",name:"Lab Coat",keywords:["doctor","experiment","scientist","chemist"],skins:[{unified:"1f97c",native:"🥼"}],version:11},safety_vest:{id:"safety_vest",name:"Safety Vest",keywords:["protection"],skins:[{unified:"1f9ba",native:"🦺"}],version:12},necktie:{id:"necktie",name:"Necktie",keywords:["shirt","suitup","formal","fashion","cloth","business"],skins:[{unified:"1f454",native:"👔"}],version:1},shirt:{id:"shirt",name:"T-Shirt",keywords:["shirt","tshirt","t","fashion","cloth","casual","tee"],skins:[{unified:"1f455",native:"👕"}],version:1},jeans:{id:"jeans",name:"Jeans",keywords:["fashion","shopping"],skins:[{unified:"1f456",native:"👖"}],version:1},scarf:{id:"scarf",name:"Scarf",keywords:["neck","winter","clothes"],skins:[{unified:"1f9e3",native:"🧣"}],version:5},gloves:{id:"gloves",name:"Gloves",keywords:["hands","winter","clothes"],skins:[{unified:"1f9e4",native:"🧤"}],version:5},coat:{id:"coat",name:"Coat",keywords:["jacket"],skins:[{unified:"1f9e5",native:"🧥"}],version:5},socks:{id:"socks",name:"Socks",keywords:["stockings","clothes"],skins:[{unified:"1f9e6",native:"🧦"}],version:5},dress:{id:"dress",name:"Dress",keywords:["clothes","fashion","shopping"],skins:[{unified:"1f457",native:"👗"}],version:1},kimono:{id:"kimono",name:"Kimono",keywords:["dress","fashion","women","female","japanese"],skins:[{unified:"1f458",native:"👘"}],version:1},sari:{id:"sari",name:"Sari",keywords:["dress"],skins:[{unified:"1f97b",native:"🥻"}],version:12},"one-piece_swimsuit":{id:"one-piece_swimsuit",name:"One-Piece Swimsuit",keywords:["one","piece","fashion"],skins:[{unified:"1fa71",native:"🩱"}],version:12},briefs:{id:"briefs",name:"Briefs",keywords:["clothing"],skins:[{unified:"1fa72",native:"🩲"}],version:12},shorts:{id:"shorts",name:"Shorts",keywords:["clothing"],skins:[{unified:"1fa73",native:"🩳"}],version:12},bikini:{id:"bikini",name:"Bikini",keywords:["swimming","female","woman","girl","fashion","beach","summer"],skins:[{unified:"1f459",native:"👙"}],version:1},womans_clothes:{id:"womans_clothes",name:"Womans Clothes",keywords:["woman","s","fashion","shopping","bags","female"],skins:[{unified:"1f45a",native:"👚"}],version:1},folding_hand_fan:{id:"folding_hand_fan",name:"Folding Hand Fan",keywords:["flamenco","hot"],skins:[{unified:"1faad",native:"🪭"}],version:15},purse:{id:"purse",name:"Purse",keywords:["fashion","accessories","money","sales","shopping"],skins:[{unified:"1f45b",native:"👛"}],version:1},handbag:{id:"handbag",name:"Handbag",keywords:["fashion","accessory","accessories","shopping"],skins:[{unified:"1f45c",native:"👜"}],version:1},pouch:{id:"pouch",name:"Pouch",keywords:["clutch","bag","accessories","shopping"],skins:[{unified:"1f45d",native:"👝"}],version:1},shopping_bags:{id:"shopping_bags",name:"Shopping Bags",keywords:["mall","buy","purchase"],skins:[{unified:"1f6cd-fe0f",native:"🛍️"}],version:1},school_satchel:{id:"school_satchel",name:"Backpack",keywords:["school","satchel","student","education","bag"],skins:[{unified:"1f392",native:"🎒"}],version:1},thong_sandal:{id:"thong_sandal",name:"Thong Sandal",keywords:["footwear","summer"],skins:[{unified:"1fa74",native:"🩴"}],version:13},mans_shoe:{id:"mans_shoe",name:"Mans Shoe",keywords:["man","s","fashion","male"],skins:[{unified:"1f45e",native:"👞"}],version:1},athletic_shoe:{id:"athletic_shoe",name:"Running Shoe",keywords:["athletic","shoes","sports","sneakers"],skins:[{unified:"1f45f",native:"👟"}],version:1},hiking_boot:{id:"hiking_boot",name:"Hiking Boot",keywords:["backpacking","camping"],skins:[{unified:"1f97e",native:"🥾"}],version:11},womans_flat_shoe:{id:"womans_flat_shoe",name:"Flat Shoe",keywords:["womans","ballet","slip","on","slipper"],skins:[{unified:"1f97f",native:"🥿"}],version:11},high_heel:{id:"high_heel",name:"High-Heeled Shoe",keywords:["high","heel","heeled","fashion","shoes","female","pumps","stiletto"],skins:[{unified:"1f460",native:"👠"}],version:1},sandal:{id:"sandal",name:"Womans Sandal",keywords:["woman","s","shoes","fashion","flip","flops"],skins:[{unified:"1f461",native:"👡"}],version:1},ballet_shoes:{id:"ballet_shoes",name:"Ballet Shoes",keywords:["dance"],skins:[{unified:"1fa70",native:"🩰"}],version:12},boot:{id:"boot",name:"Womans Boots",keywords:["boot","woman","s","shoes","fashion"],skins:[{unified:"1f462",native:"👢"}],version:1},hair_pick:{id:"hair_pick",name:"Hair Pick",keywords:["afro","comb"],skins:[{unified:"1faae",native:"🪮"}],version:15},crown:{id:"crown",name:"Crown",keywords:["king","kod","leader","royalty","lord"],skins:[{unified:"1f451",native:"👑"}],version:1},womans_hat:{id:"womans_hat",name:"Womans Hat",keywords:["woman","s","fashion","accessories","female","lady","spring"],skins:[{unified:"1f452",native:"👒"}],version:1},tophat:{id:"tophat",name:"Top Hat",keywords:["tophat","magic","gentleman","classy","circus"],skins:[{unified:"1f3a9",native:"🎩"}],version:1},mortar_board:{id:"mortar_board",name:"Graduation Cap",keywords:["mortar","board","school","college","degree","university","hat","legal","learn","education"],skins:[{unified:"1f393",native:"🎓"}],version:1},billed_cap:{id:"billed_cap",name:"Billed Cap",keywords:["baseball"],skins:[{unified:"1f9e2",native:"🧢"}],version:5},military_helmet:{id:"military_helmet",name:"Military Helmet",keywords:["army","protection"],skins:[{unified:"1fa96",native:"🪖"}],version:13},helmet_with_white_cross:{id:"helmet_with_white_cross",name:"Rescue Worker’s Helmet",keywords:["with","white","cross","worker","s","construction","build"],skins:[{unified:"26d1-fe0f",native:"⛑️"}],version:1},prayer_beads:{id:"prayer_beads",name:"Prayer Beads",keywords:["dhikr","religious"],skins:[{unified:"1f4ff",native:"📿"}],version:1},lipstick:{id:"lipstick",name:"Lipstick",keywords:["female","girl","fashion","woman"],skins:[{unified:"1f484",native:"💄"}],version:1},ring:{id:"ring",name:"Ring",keywords:["wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],skins:[{unified:"1f48d",native:"💍"}],version:1},gem:{id:"gem",name:"Gem Stone",keywords:["blue","ruby","diamond","jewelry"],skins:[{unified:"1f48e",native:"💎"}],version:1},mute:{id:"mute",name:"Muted Speaker",keywords:["mute","sound","volume","silence","quiet"],skins:[{unified:"1f507",native:"🔇"}],version:1},speaker:{id:"speaker",name:"Speaker",keywords:["low","volume","sound","silence","broadcast"],skins:[{unified:"1f508",native:"🔈"}],version:1},sound:{id:"sound",name:"Speaker Medium Volume",keywords:["sound","broadcast"],skins:[{unified:"1f509",native:"🔉"}],version:1},loud_sound:{id:"loud_sound",name:"Speaker High Volume",keywords:["loud","sound","noise","noisy","broadcast"],skins:[{unified:"1f50a",native:"🔊"}],version:1},loudspeaker:{id:"loudspeaker",name:"Loudspeaker",keywords:["volume","sound"],skins:[{unified:"1f4e2",native:"📢"}],version:1},mega:{id:"mega",name:"Megaphone",keywords:["mega","sound","speaker","volume"],skins:[{unified:"1f4e3",native:"📣"}],version:1},postal_horn:{id:"postal_horn",name:"Postal Horn",keywords:["instrument","music"],skins:[{unified:"1f4ef",native:"📯"}],version:1},bell:{id:"bell",name:"Bell",keywords:["sound","notification","christmas","xmas","chime"],skins:[{unified:"1f514",native:"🔔"}],version:1},no_bell:{id:"no_bell",name:"Bell with Slash",keywords:["no","sound","volume","mute","quiet","silent"],skins:[{unified:"1f515",native:"🔕"}],version:1},musical_score:{id:"musical_score",name:"Musical Score",keywords:["treble","clef","compose"],skins:[{unified:"1f3bc",native:"🎼"}],version:1},musical_note:{id:"musical_note",name:"Musical Note",keywords:["score","tone","sound"],skins:[{unified:"1f3b5",native:"🎵"}],version:1},notes:{id:"notes",name:"Musical Notes",keywords:["music","score"],skins:[{unified:"1f3b6",native:"🎶"}],version:1},studio_microphone:{id:"studio_microphone",name:"Studio Microphone",keywords:["sing","recording","artist","talkshow"],skins:[{unified:"1f399-fe0f",native:"🎙️"}],version:1},level_slider:{id:"level_slider",name:"Level Slider",keywords:["scale"],skins:[{unified:"1f39a-fe0f",native:"🎚️"}],version:1},control_knobs:{id:"control_knobs",name:"Control Knobs",keywords:["dial"],skins:[{unified:"1f39b-fe0f",native:"🎛️"}],version:1},microphone:{id:"microphone",name:"Microphone",keywords:["sound","music","PA","sing","talkshow"],skins:[{unified:"1f3a4",native:"🎤"}],version:1},headphones:{id:"headphones",name:"Headphone",keywords:["headphones","music","score","gadgets"],skins:[{unified:"1f3a7",native:"🎧"}],version:1},radio:{id:"radio",name:"Radio",keywords:["communication","music","podcast","program"],skins:[{unified:"1f4fb",native:"📻"}],version:1},saxophone:{id:"saxophone",name:"Saxophone",keywords:["music","instrument","jazz","blues"],skins:[{unified:"1f3b7",native:"🎷"}],version:1},accordion:{id:"accordion",name:"Accordion",keywords:["music"],skins:[{unified:"1fa97",native:"🪗"}],version:13},guitar:{id:"guitar",name:"Guitar",keywords:["music","instrument"],skins:[{unified:"1f3b8",native:"🎸"}],version:1},musical_keyboard:{id:"musical_keyboard",name:"Musical Keyboard",keywords:["piano","instrument","compose"],skins:[{unified:"1f3b9",native:"🎹"}],version:1},trumpet:{id:"trumpet",name:"Trumpet",keywords:["music","brass"],skins:[{unified:"1f3ba",native:"🎺"}],version:1},violin:{id:"violin",name:"Violin",keywords:["music","instrument","orchestra","symphony"],skins:[{unified:"1f3bb",native:"🎻"}],version:1},banjo:{id:"banjo",name:"Banjo",keywords:["music","instructment"],skins:[{unified:"1fa95",native:"🪕"}],version:12},drum_with_drumsticks:{id:"drum_with_drumsticks",name:"Drum",keywords:["with","drumsticks","music","instrument","snare"],skins:[{unified:"1f941",native:"🥁"}],version:3},long_drum:{id:"long_drum",name:"Long Drum",keywords:["music"],skins:[{unified:"1fa98",native:"🪘"}],version:13},maracas:{id:"maracas",name:"Maracas",keywords:["music","instrument","percussion"],skins:[{unified:"1fa87",native:"🪇"}],version:15},flute:{id:"flute",name:"Flute",keywords:["bamboo","music","instrument","pied","piper"],skins:[{unified:"1fa88",native:"🪈"}],version:15},iphone:{id:"iphone",name:"Mobile Phone",keywords:["iphone","technology","apple","gadgets","dial"],skins:[{unified:"1f4f1",native:"📱"}],version:1},calling:{id:"calling",name:"Mobile Phone with Arrow",keywords:["calling","iphone","incoming"],skins:[{unified:"1f4f2",native:"📲"}],version:1},phone:{id:"phone",name:"Telephone",keywords:["phone","technology","communication","dial"],skins:[{unified:"260e-fe0f",native:"☎️"}],version:1},telephone_receiver:{id:"telephone_receiver",name:"Telephone Receiver",keywords:["technology","communication","dial"],skins:[{unified:"1f4de",native:"📞"}],version:1},pager:{id:"pager",name:"Pager",keywords:["bbcall","oldschool","90s"],skins:[{unified:"1f4df",native:"📟"}],version:1},fax:{id:"fax",name:"Fax Machine",keywords:["communication","technology"],skins:[{unified:"1f4e0",native:"📠"}],version:1},battery:{id:"battery",name:"Battery",keywords:["power","energy","sustain"],skins:[{unified:"1f50b",native:"🔋"}],version:1},low_battery:{id:"low_battery",name:"Low Battery",keywords:["drained","dead"],skins:[{unified:"1faab",native:"🪫"}],version:14},electric_plug:{id:"electric_plug",name:"Electric Plug",keywords:["charger","power"],skins:[{unified:"1f50c",native:"🔌"}],version:1},computer:{id:"computer",name:"Laptop",keywords:["computer","technology","screen","display","monitor"],skins:[{unified:"1f4bb",native:"💻"}],version:1},desktop_computer:{id:"desktop_computer",name:"Desktop Computer",keywords:["technology","computing","screen"],skins:[{unified:"1f5a5-fe0f",native:"🖥️"}],version:1},printer:{id:"printer",name:"Printer",keywords:["paper","ink"],skins:[{unified:"1f5a8-fe0f",native:"🖨️"}],version:1},keyboard:{id:"keyboard",name:"Keyboard",keywords:["technology","computer","type","input","text"],skins:[{unified:"2328-fe0f",native:"⌨️"}],version:1},three_button_mouse:{id:"three_button_mouse",name:"Computer Mouse",keywords:["three","button","click"],skins:[{unified:"1f5b1-fe0f",native:"🖱️"}],version:1},trackball:{id:"trackball",name:"Trackball",keywords:["technology","trackpad"],skins:[{unified:"1f5b2-fe0f",native:"🖲️"}],version:1},minidisc:{id:"minidisc",name:"Minidisc",keywords:["computer","disk","technology","record","data","90s"],skins:[{unified:"1f4bd",native:"💽"}],version:1},floppy_disk:{id:"floppy_disk",name:"Floppy Disk",keywords:["oldschool","technology","save","90s","80s"],skins:[{unified:"1f4be",native:"💾"}],version:1},cd:{id:"cd",name:"Optical Disc",keywords:["cd","disk","technology","dvd","90s"],skins:[{unified:"1f4bf",native:"💿"}],version:1},dvd:{id:"dvd",name:"Dvd",keywords:["cd","disk","disc"],skins:[{unified:"1f4c0",native:"📀"}],version:1},abacus:{id:"abacus",name:"Abacus",keywords:["calculation"],skins:[{unified:"1f9ee",native:"🧮"}],version:11},movie_camera:{id:"movie_camera",name:"Movie Camera",keywords:["film","record"],skins:[{unified:"1f3a5",native:"🎥"}],version:1},film_frames:{id:"film_frames",name:"Film Frames",keywords:["movie"],skins:[{unified:"1f39e-fe0f",native:"🎞️"}],version:1},film_projector:{id:"film_projector",name:"Film Projector",keywords:["video","tape","record","movie"],skins:[{unified:"1f4fd-fe0f",native:"📽️"}],version:1},clapper:{id:"clapper",name:"Clapper Board",keywords:["movie","film","record"],skins:[{unified:"1f3ac",native:"🎬"}],version:1},tv:{id:"tv",name:"Television",keywords:["tv","technology","program","oldschool","show"],skins:[{unified:"1f4fa",native:"📺"}],version:1},camera:{id:"camera",name:"Camera",keywords:["gadgets","photography"],skins:[{unified:"1f4f7",native:"📷"}],version:1},camera_with_flash:{id:"camera_with_flash",name:"Camera with Flash",keywords:["photography","gadgets"],skins:[{unified:"1f4f8",native:"📸"}],version:1},video_camera:{id:"video_camera",name:"Video Camera",keywords:["film","record"],skins:[{unified:"1f4f9",native:"📹"}],version:1},vhs:{id:"vhs",name:"Videocassette",keywords:["vhs","record","video","oldschool","90s","80s"],skins:[{unified:"1f4fc",native:"📼"}],version:1},mag:{id:"mag",name:"Magnifying Glass Tilted Left",keywords:["mag","search","zoom","find","detective"],skins:[{unified:"1f50d",native:"🔍"}],version:1},mag_right:{id:"mag_right",name:"Magnifying Glass Tilted Right",keywords:["mag","search","zoom","find","detective"],skins:[{unified:"1f50e",native:"🔎"}],version:1},candle:{id:"candle",name:"Candle",keywords:["fire","wax"],skins:[{unified:"1f56f-fe0f",native:"🕯️"}],version:1},bulb:{id:"bulb",name:"Light Bulb",keywords:["electricity","idea"],skins:[{unified:"1f4a1",native:"💡"}],version:1},flashlight:{id:"flashlight",name:"Flashlight",keywords:["dark","camping","sight","night"],skins:[{unified:"1f526",native:"🔦"}],version:1},izakaya_lantern:{id:"izakaya_lantern",name:"Izakaya Lantern",keywords:["red","paper","light","halloween","spooky"],skins:[{unified:"1f3ee",native:"🏮"}],version:1},diya_lamp:{id:"diya_lamp",name:"Diya Lamp",keywords:["lighting"],skins:[{unified:"1fa94",native:"🪔"}],version:12},notebook_with_decorative_cover:{id:"notebook_with_decorative_cover",name:"Notebook with Decorative Cover",keywords:["classroom","notes","record","paper","study"],skins:[{unified:"1f4d4",native:"📔"}],version:1},closed_book:{id:"closed_book",name:"Closed Book",keywords:["read","library","knowledge","textbook","learn"],skins:[{unified:"1f4d5",native:"📕"}],version:1},book:{id:"book",name:"Open Book",keywords:["read","library","knowledge","literature","learn","study"],skins:[{unified:"1f4d6",native:"📖"}],version:1},green_book:{id:"green_book",name:"Green Book",keywords:["read","library","knowledge","study"],skins:[{unified:"1f4d7",native:"📗"}],version:1},blue_book:{id:"blue_book",name:"Blue Book",keywords:["read","library","knowledge","learn","study"],skins:[{unified:"1f4d8",native:"📘"}],version:1},orange_book:{id:"orange_book",name:"Orange Book",keywords:["read","library","knowledge","textbook","study"],skins:[{unified:"1f4d9",native:"📙"}],version:1},books:{id:"books",name:"Books",keywords:["literature","library","study"],skins:[{unified:"1f4da",native:"📚"}],version:1},notebook:{id:"notebook",name:"Notebook",keywords:["stationery","record","notes","paper","study"],skins:[{unified:"1f4d3",native:"📓"}],version:1},ledger:{id:"ledger",name:"Ledger",keywords:["notes","paper"],skins:[{unified:"1f4d2",native:"📒"}],version:1},page_with_curl:{id:"page_with_curl",name:"Page with Curl",keywords:["documents","office","paper"],skins:[{unified:"1f4c3",native:"📃"}],version:1},scroll:{id:"scroll",name:"Scroll",keywords:["documents","ancient","history","paper"],skins:[{unified:"1f4dc",native:"📜"}],version:1},page_facing_up:{id:"page_facing_up",name:"Page Facing Up",keywords:["documents","office","paper","information"],skins:[{unified:"1f4c4",native:"📄"}],version:1},newspaper:{id:"newspaper",name:"Newspaper",keywords:["press","headline"],skins:[{unified:"1f4f0",native:"📰"}],version:1},rolled_up_newspaper:{id:"rolled_up_newspaper",name:"Rolled-Up Newspaper",keywords:["rolled","up","press","headline"],skins:[{unified:"1f5de-fe0f",native:"🗞️"}],version:1},bookmark_tabs:{id:"bookmark_tabs",name:"Bookmark Tabs",keywords:["favorite","save","order","tidy"],skins:[{unified:"1f4d1",native:"📑"}],version:1},bookmark:{id:"bookmark",name:"Bookmark",keywords:["favorite","label","save"],skins:[{unified:"1f516",native:"🔖"}],version:1},label:{id:"label",name:"Label",keywords:["sale","tag"],skins:[{unified:"1f3f7-fe0f",native:"🏷️"}],version:1},moneybag:{id:"moneybag",name:"Money Bag",keywords:["moneybag","dollar","payment","coins","sale"],skins:[{unified:"1f4b0",native:"💰"}],version:1},coin:{id:"coin",name:"Coin",keywords:["money","currency"],skins:[{unified:"1fa99",native:"🪙"}],version:13},yen:{id:"yen",name:"Yen Banknote",keywords:["money","sales","japanese","dollar","currency"],skins:[{unified:"1f4b4",native:"💴"}],version:1},dollar:{id:"dollar",name:"Dollar Banknote",keywords:["money","sales","bill","currency"],skins:[{unified:"1f4b5",native:"💵"}],version:1},euro:{id:"euro",name:"Euro Banknote",keywords:["money","sales","dollar","currency"],skins:[{unified:"1f4b6",native:"💶"}],version:1},pound:{id:"pound",name:"Pound Banknote",keywords:["british","sterling","money","sales","bills","uk","england","currency"],skins:[{unified:"1f4b7",native:"💷"}],version:1},money_with_wings:{id:"money_with_wings",name:"Money with Wings",keywords:["dollar","bills","payment","sale"],skins:[{unified:"1f4b8",native:"💸"}],version:1},credit_card:{id:"credit_card",name:"Credit Card",keywords:["money","sales","dollar","bill","payment","shopping"],skins:[{unified:"1f4b3",native:"💳"}],version:1},receipt:{id:"receipt",name:"Receipt",keywords:["accounting","expenses"],skins:[{unified:"1f9fe",native:"🧾"}],version:11},chart:{id:"chart",name:"Chart Increasing with Yen",keywords:["green","square","graph","presentation","stats"],skins:[{unified:"1f4b9",native:"💹"}],version:1},email:{id:"email",name:"Envelope",keywords:["email","letter","postal","inbox","communication"],skins:[{unified:"2709-fe0f",native:"✉️"}],version:1},"e-mail":{id:"e-mail",name:"E-Mail",keywords:["e","mail","communication","inbox"],skins:[{unified:"1f4e7",native:"📧"}],version:1},incoming_envelope:{id:"incoming_envelope",name:"Incoming Envelope",keywords:["email","inbox"],skins:[{unified:"1f4e8",native:"📨"}],version:1},envelope_with_arrow:{id:"envelope_with_arrow",name:"Envelope with Arrow",keywords:["email","communication"],skins:[{unified:"1f4e9",native:"📩"}],version:1},outbox_tray:{id:"outbox_tray",name:"Outbox Tray",keywords:["inbox","email"],skins:[{unified:"1f4e4",native:"📤"}],version:1},inbox_tray:{id:"inbox_tray",name:"Inbox Tray",keywords:["email","documents"],skins:[{unified:"1f4e5",native:"📥"}],version:1},package:{id:"package",name:"Package",keywords:["mail","gift","cardboard","box","moving"],skins:[{unified:"1f4e6",native:"📦"}],version:1},mailbox:{id:"mailbox",name:"Closed Mailbox with Raised Flag",keywords:["email","inbox","communication"],skins:[{unified:"1f4eb",native:"📫"}],version:1},mailbox_closed:{id:"mailbox_closed",name:"Closed Mailbox with Lowered Flag",keywords:["email","communication","inbox"],skins:[{unified:"1f4ea",native:"📪"}],version:1},mailbox_with_mail:{id:"mailbox_with_mail",name:"Open Mailbox with Raised Flag",keywords:["mail","email","inbox","communication"],skins:[{unified:"1f4ec",native:"📬"}],version:1},mailbox_with_no_mail:{id:"mailbox_with_no_mail",name:"Open Mailbox with Lowered Flag",keywords:["no","mail","email","inbox"],skins:[{unified:"1f4ed",native:"📭"}],version:1},postbox:{id:"postbox",name:"Postbox",keywords:["email","letter","envelope"],skins:[{unified:"1f4ee",native:"📮"}],version:1},ballot_box_with_ballot:{id:"ballot_box_with_ballot",name:"Ballot Box with Ballot",keywords:["election","vote"],skins:[{unified:"1f5f3-fe0f",native:"🗳️"}],version:1},pencil2:{id:"pencil2",name:"Pencil",keywords:["pencil2","stationery","write","paper","writing","school","study"],skins:[{unified:"270f-fe0f",native:"✏️"}],version:1},black_nib:{id:"black_nib",name:"Black Nib",keywords:["pen","stationery","writing","write"],skins:[{unified:"2712-fe0f",native:"✒️"}],version:1},lower_left_fountain_pen:{id:"lower_left_fountain_pen",name:"Fountain Pen",keywords:["lower","left","stationery","writing","write"],skins:[{unified:"1f58b-fe0f",native:"🖋️"}],version:1},lower_left_ballpoint_pen:{id:"lower_left_ballpoint_pen",name:"Pen",keywords:["lower","left","ballpoint","stationery","writing","write"],skins:[{unified:"1f58a-fe0f",native:"🖊️"}],version:1},lower_left_paintbrush:{id:"lower_left_paintbrush",name:"Paintbrush",keywords:["lower","left","drawing","creativity","art"],skins:[{unified:"1f58c-fe0f",native:"🖌️"}],version:1},lower_left_crayon:{id:"lower_left_crayon",name:"Crayon",keywords:["lower","left","drawing","creativity"],skins:[{unified:"1f58d-fe0f",native:"🖍️"}],version:1},memo:{id:"memo",name:"Memo",keywords:["pencil","write","documents","stationery","paper","writing","legal","exam","quiz","test","study","compose"],skins:[{unified:"1f4dd",native:"📝"}],version:1},briefcase:{id:"briefcase",name:"Briefcase",keywords:["business","documents","work","law","legal","job","career"],skins:[{unified:"1f4bc",native:"💼"}],version:1},file_folder:{id:"file_folder",name:"File Folder",keywords:["documents","business","office"],skins:[{unified:"1f4c1",native:"📁"}],version:1},open_file_folder:{id:"open_file_folder",name:"Open File Folder",keywords:["documents","load"],skins:[{unified:"1f4c2",native:"📂"}],version:1},card_index_dividers:{id:"card_index_dividers",name:"Card Index Dividers",keywords:["organizing","business","stationery"],skins:[{unified:"1f5c2-fe0f",native:"🗂️"}],version:1},date:{id:"date",name:"Calendar",keywords:["date","schedule"],skins:[{unified:"1f4c5",native:"📅"}],version:1},calendar:{id:"calendar",name:"Tear-off Calendar",keywords:["tear","off","schedule","date","planning"],skins:[{unified:"1f4c6",native:"📆"}],version:1},spiral_note_pad:{id:"spiral_note_pad",name:"Spiral Notepad",keywords:["note","pad","memo","stationery"],skins:[{unified:"1f5d2-fe0f",native:"🗒️"}],version:1},spiral_calendar_pad:{id:"spiral_calendar_pad",name:"Spiral Calendar",keywords:["pad","date","schedule","planning"],skins:[{unified:"1f5d3-fe0f",native:"🗓️"}],version:1},card_index:{id:"card_index",name:"Card Index",keywords:["business","stationery"],skins:[{unified:"1f4c7",native:"📇"}],version:1},chart_with_upwards_trend:{id:"chart_with_upwards_trend",name:"Chart Increasing",keywords:["with","upwards","trend","graph","presentation","stats","recovery","business","economics","money","sales","good","success"],skins:[{unified:"1f4c8",native:"📈"}],version:1},chart_with_downwards_trend:{id:"chart_with_downwards_trend",name:"Chart Decreasing",keywords:["with","downwards","trend","graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],skins:[{unified:"1f4c9",native:"📉"}],version:1},bar_chart:{id:"bar_chart",name:"Bar Chart",keywords:["graph","presentation","stats"],skins:[{unified:"1f4ca",native:"📊"}],version:1},clipboard:{id:"clipboard",name:"Clipboard",keywords:["stationery","documents"],skins:[{unified:"1f4cb",native:"📋"}],version:1},pushpin:{id:"pushpin",name:"Pushpin",keywords:["stationery","mark","here"],skins:[{unified:"1f4cc",native:"📌"}],version:1},round_pushpin:{id:"round_pushpin",name:"Round Pushpin",keywords:["stationery","location","map","here"],skins:[{unified:"1f4cd",native:"📍"}],version:1},paperclip:{id:"paperclip",name:"Paperclip",keywords:["documents","stationery"],skins:[{unified:"1f4ce",native:"📎"}],version:1},linked_paperclips:{id:"linked_paperclips",name:"Linked Paperclips",keywords:["documents","stationery"],skins:[{unified:"1f587-fe0f",native:"🖇️"}],version:1},straight_ruler:{id:"straight_ruler",name:"Straight Ruler",keywords:["stationery","calculate","length","math","school","drawing","architect","sketch"],skins:[{unified:"1f4cf",native:"📏"}],version:1},triangular_ruler:{id:"triangular_ruler",name:"Triangular Ruler",keywords:["stationery","math","architect","sketch"],skins:[{unified:"1f4d0",native:"📐"}],version:1},scissors:{id:"scissors",name:"Scissors",keywords:["stationery","cut"],skins:[{unified:"2702-fe0f",native:"✂️"}],version:1},card_file_box:{id:"card_file_box",name:"Card File Box",keywords:["business","stationery"],skins:[{unified:"1f5c3-fe0f",native:"🗃️"}],version:1},file_cabinet:{id:"file_cabinet",name:"File Cabinet",keywords:["filing","organizing"],skins:[{unified:"1f5c4-fe0f",native:"🗄️"}],version:1},wastebasket:{id:"wastebasket",name:"Wastebasket",keywords:["bin","trash","rubbish","garbage","toss"],skins:[{unified:"1f5d1-fe0f",native:"🗑️"}],version:1},lock:{id:"lock",name:"Lock",keywords:["locked","security","password","padlock"],skins:[{unified:"1f512",native:"🔒"}],version:1},unlock:{id:"unlock",name:"Unlocked",keywords:["unlock","privacy","security"],skins:[{unified:"1f513",native:"🔓"}],version:1},lock_with_ink_pen:{id:"lock_with_ink_pen",name:"Locked with Pen",keywords:["lock","ink","security","secret"],skins:[{unified:"1f50f",native:"🔏"}],version:1},closed_lock_with_key:{id:"closed_lock_with_key",name:"Locked with Key",keywords:["closed","lock","security","privacy"],skins:[{unified:"1f510",native:"🔐"}],version:1},key:{id:"key",name:"Key",keywords:["lock","door","password"],skins:[{unified:"1f511",native:"🔑"}],version:1},old_key:{id:"old_key",name:"Old Key",keywords:["lock","door","password"],skins:[{unified:"1f5dd-fe0f",native:"🗝️"}],version:1},hammer:{id:"hammer",name:"Hammer",keywords:["tools","build","create"],skins:[{unified:"1f528",native:"🔨"}],version:1},axe:{id:"axe",name:"Axe",keywords:["tool","chop","cut"],skins:[{unified:"1fa93",native:"🪓"}],version:12},pick:{id:"pick",name:"Pick",keywords:["tools","dig"],skins:[{unified:"26cf-fe0f",native:"⛏️"}],version:1},hammer_and_pick:{id:"hammer_and_pick",name:"Hammer and Pick",keywords:["tools","build","create"],skins:[{unified:"2692-fe0f",native:"⚒️"}],version:1},hammer_and_wrench:{id:"hammer_and_wrench",name:"Hammer and Wrench",keywords:["tools","build","create"],skins:[{unified:"1f6e0-fe0f",native:"🛠️"}],version:1},dagger_knife:{id:"dagger_knife",name:"Dagger",keywords:["knife","weapon"],skins:[{unified:"1f5e1-fe0f",native:"🗡️"}],version:1},crossed_swords:{id:"crossed_swords",name:"Crossed Swords",keywords:["weapon"],skins:[{unified:"2694-fe0f",native:"⚔️"}],version:1},bomb:{id:"bomb",name:"Bomb",keywords:["boom","explode","explosion","terrorism"],skins:[{unified:"1f4a3",native:"💣"}],version:1},boomerang:{id:"boomerang",name:"Boomerang",keywords:["weapon"],skins:[{unified:"1fa83",native:"🪃"}],version:13},bow_and_arrow:{id:"bow_and_arrow",name:"Bow and Arrow",keywords:["sports"],skins:[{unified:"1f3f9",native:"🏹"}],version:1},shield:{id:"shield",name:"Shield",keywords:["protection","security"],skins:[{unified:"1f6e1-fe0f",native:"🛡️"}],version:1},carpentry_saw:{id:"carpentry_saw",name:"Carpentry Saw",keywords:["cut","chop"],skins:[{unified:"1fa9a",native:"🪚"}],version:13},wrench:{id:"wrench",name:"Wrench",keywords:["tools","diy","ikea","fix","maintainer"],skins:[{unified:"1f527",native:"🔧"}],version:1},screwdriver:{id:"screwdriver",name:"Screwdriver",keywords:["tools"],skins:[{unified:"1fa9b",native:"🪛"}],version:13},nut_and_bolt:{id:"nut_and_bolt",name:"Nut and Bolt",keywords:["handy","tools","fix"],skins:[{unified:"1f529",native:"🔩"}],version:1},gear:{id:"gear",name:"Gear",keywords:["cog"],skins:[{unified:"2699-fe0f",native:"⚙️"}],version:1},compression:{id:"compression",name:"Clamp",keywords:["compression","tool"],skins:[{unified:"1f5dc-fe0f",native:"🗜️"}],version:1},scales:{id:"scales",name:"Balance Scale",keywords:["scales","law","fairness","weight"],skins:[{unified:"2696-fe0f",native:"⚖️"}],version:1},probing_cane:{id:"probing_cane",name:"White Cane",keywords:["probing","accessibility"],skins:[{unified:"1f9af",native:"🦯"}],version:12},link:{id:"link",name:"Link",keywords:["rings","url"],skins:[{unified:"1f517",native:"🔗"}],version:1},chains:{id:"chains",name:"Chains",keywords:["lock","arrest"],skins:[{unified:"26d3-fe0f",native:"⛓️"}],version:1},hook:{id:"hook",name:"Hook",keywords:["tools"],skins:[{unified:"1fa9d",native:"🪝"}],version:13},toolbox:{id:"toolbox",name:"Toolbox",keywords:["tools","diy","fix","maintainer","mechanic"],skins:[{unified:"1f9f0",native:"🧰"}],version:11},magnet:{id:"magnet",name:"Magnet",keywords:["attraction","magnetic"],skins:[{unified:"1f9f2",native:"🧲"}],version:11},ladder:{id:"ladder",name:"Ladder",keywords:["tools"],skins:[{unified:"1fa9c",native:"🪜"}],version:13},alembic:{id:"alembic",name:"Alembic",keywords:["distilling","science","experiment","chemistry"],skins:[{unified:"2697-fe0f",native:"⚗️"}],version:1},test_tube:{id:"test_tube",name:"Test Tube",keywords:["chemistry","experiment","lab","science"],skins:[{unified:"1f9ea",native:"🧪"}],version:11},petri_dish:{id:"petri_dish",name:"Petri Dish",keywords:["bacteria","biology","culture","lab"],skins:[{unified:"1f9eb",native:"🧫"}],version:11},dna:{id:"dna",name:"Dna",keywords:["biologist","genetics","life"],skins:[{unified:"1f9ec",native:"🧬"}],version:11},microscope:{id:"microscope",name:"Microscope",keywords:["laboratory","experiment","zoomin","science","study"],skins:[{unified:"1f52c",native:"🔬"}],version:1},telescope:{id:"telescope",name:"Telescope",keywords:["stars","space","zoom","science","astronomy"],skins:[{unified:"1f52d",native:"🔭"}],version:1},satellite_antenna:{id:"satellite_antenna",name:"Satellite Antenna",keywords:["communication","future","radio","space"],skins:[{unified:"1f4e1",native:"📡"}],version:1},syringe:{id:"syringe",name:"Syringe",keywords:["health","hospital","drugs","blood","medicine","needle","doctor","nurse"],skins:[{unified:"1f489",native:"💉"}],version:1},drop_of_blood:{id:"drop_of_blood",name:"Drop of Blood",keywords:["period","hurt","harm","wound"],skins:[{unified:"1fa78",native:"🩸"}],version:12},pill:{id:"pill",name:"Pill",keywords:["health","medicine","doctor","pharmacy","drug"],skins:[{unified:"1f48a",native:"💊"}],version:1},adhesive_bandage:{id:"adhesive_bandage",name:"Adhesive Bandage",keywords:["heal"],skins:[{unified:"1fa79",native:"🩹"}],version:12},crutch:{id:"crutch",name:"Crutch",keywords:["accessibility","assist"],skins:[{unified:"1fa7c",native:"🩼"}],version:14},stethoscope:{id:"stethoscope",name:"Stethoscope",keywords:["health"],skins:[{unified:"1fa7a",native:"🩺"}],version:12},"x-ray":{id:"x-ray",name:"X-Ray",keywords:["x","ray","skeleton","medicine"],skins:[{unified:"1fa7b",native:"🩻"}],version:14},door:{id:"door",name:"Door",keywords:["house","entry","exit"],skins:[{unified:"1f6aa",native:"🚪"}],version:1},elevator:{id:"elevator",name:"Elevator",keywords:["lift"],skins:[{unified:"1f6d7",native:"🛗"}],version:13},mirror:{id:"mirror",name:"Mirror",keywords:["reflection"],skins:[{unified:"1fa9e",native:"🪞"}],version:13},window:{id:"window",name:"Window",keywords:["scenery"],skins:[{unified:"1fa9f",native:"🪟"}],version:13},bed:{id:"bed",name:"Bed",keywords:["sleep","rest"],skins:[{unified:"1f6cf-fe0f",native:"🛏️"}],version:1},couch_and_lamp:{id:"couch_and_lamp",name:"Couch and Lamp",keywords:["read","chill"],skins:[{unified:"1f6cb-fe0f",native:"🛋️"}],version:1},chair:{id:"chair",name:"Chair",keywords:["sit","furniture"],skins:[{unified:"1fa91",native:"🪑"}],version:12},toilet:{id:"toilet",name:"Toilet",keywords:["restroom","wc","washroom","bathroom","potty"],skins:[{unified:"1f6bd",native:"🚽"}],version:1},plunger:{id:"plunger",name:"Plunger",keywords:["toilet"],skins:[{unified:"1faa0",native:"🪠"}],version:13},shower:{id:"shower",name:"Shower",keywords:["clean","water","bathroom"],skins:[{unified:"1f6bf",native:"🚿"}],version:1},bathtub:{id:"bathtub",name:"Bathtub",keywords:["clean","shower","bathroom"],skins:[{unified:"1f6c1",native:"🛁"}],version:1},mouse_trap:{id:"mouse_trap",name:"Mouse Trap",keywords:["cheese"],skins:[{unified:"1faa4",native:"🪤"}],version:13},razor:{id:"razor",name:"Razor",keywords:["cut"],skins:[{unified:"1fa92",native:"🪒"}],version:12},lotion_bottle:{id:"lotion_bottle",name:"Lotion Bottle",keywords:["moisturizer","sunscreen"],skins:[{unified:"1f9f4",native:"🧴"}],version:11},safety_pin:{id:"safety_pin",name:"Safety Pin",keywords:["diaper"],skins:[{unified:"1f9f7",native:"🧷"}],version:11},broom:{id:"broom",name:"Broom",keywords:["cleaning","sweeping","witch"],skins:[{unified:"1f9f9",native:"🧹"}],version:11},basket:{id:"basket",name:"Basket",keywords:["laundry"],skins:[{unified:"1f9fa",native:"🧺"}],version:11},roll_of_paper:{id:"roll_of_paper",name:"Roll of Paper",keywords:[],skins:[{unified:"1f9fb",native:"🧻"}],version:11},bucket:{id:"bucket",name:"Bucket",keywords:["water","container"],skins:[{unified:"1faa3",native:"🪣"}],version:13},soap:{id:"soap",name:"Soap",keywords:["bar","bathing","cleaning","lather"],skins:[{unified:"1f9fc",native:"🧼"}],version:11},bubbles:{id:"bubbles",name:"Bubbles",keywords:["soap","fun","carbonation","sparkling"],skins:[{unified:"1fae7",native:"🫧"}],version:14},toothbrush:{id:"toothbrush",name:"Toothbrush",keywords:["hygiene","dental"],skins:[{unified:"1faa5",native:"🪥"}],version:13},sponge:{id:"sponge",name:"Sponge",keywords:["absorbing","cleaning","porous"],skins:[{unified:"1f9fd",native:"🧽"}],version:11},fire_extinguisher:{id:"fire_extinguisher",name:"Fire Extinguisher",keywords:["quench"],skins:[{unified:"1f9ef",native:"🧯"}],version:11},shopping_trolley:{id:"shopping_trolley",name:"Shopping Cart",keywords:["trolley"],skins:[{unified:"1f6d2",native:"🛒"}],version:3},smoking:{id:"smoking",name:"Cigarette",keywords:["smoking","kills","tobacco","joint","smoke"],skins:[{unified:"1f6ac",native:"🚬"}],version:1},coffin:{id:"coffin",name:"Coffin",keywords:["vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],skins:[{unified:"26b0-fe0f",native:"⚰️"}],version:1},headstone:{id:"headstone",name:"Headstone",keywords:["death","rip","grave"],skins:[{unified:"1faa6",native:"🪦"}],version:13},funeral_urn:{id:"funeral_urn",name:"Funeral Urn",keywords:["dead","die","death","rip","ashes"],skins:[{unified:"26b1-fe0f",native:"⚱️"}],version:1},nazar_amulet:{id:"nazar_amulet",name:"Nazar Amulet",keywords:["bead","charm"],skins:[{unified:"1f9ff",native:"🧿"}],version:11},hamsa:{id:"hamsa",name:"Hamsa",keywords:["religion","protection"],skins:[{unified:"1faac",native:"🪬"}],version:14},moyai:{id:"moyai",name:"Moai",keywords:["moyai","rock","easter","island"],skins:[{unified:"1f5ff",native:"🗿"}],version:1},placard:{id:"placard",name:"Placard",keywords:["announcement"],skins:[{unified:"1faa7",native:"🪧"}],version:13},identification_card:{id:"identification_card",name:"Identification Card",keywords:["document"],skins:[{unified:"1faaa",native:"🪪"}],version:14},atm:{id:"atm",name:"Atm Sign",keywords:["money","sales","cash","blue","square","payment","bank"],skins:[{unified:"1f3e7",native:"🏧"}],version:1},put_litter_in_its_place:{id:"put_litter_in_its_place",name:"Litter in Bin Sign",keywords:["put","its","place","blue","square","human","info"],skins:[{unified:"1f6ae",native:"🚮"}],version:1},potable_water:{id:"potable_water",name:"Potable Water",keywords:["blue","square","liquid","restroom","cleaning","faucet"],skins:[{unified:"1f6b0",native:"🚰"}],version:1},wheelchair:{id:"wheelchair",name:"Wheelchair Symbol",keywords:["blue","square","disabled","accessibility"],skins:[{unified:"267f",native:"♿"}],version:1},mens:{id:"mens",name:"Men’s Room",keywords:["mens","men","s","toilet","restroom","wc","blue","square","gender","male"],skins:[{unified:"1f6b9",native:"🚹"}],version:1},womens:{id:"womens",name:"Women’s Room",keywords:["womens","women","s","purple","square","woman","female","toilet","loo","restroom","gender"],skins:[{unified:"1f6ba",native:"🚺"}],version:1},restroom:{id:"restroom",name:"Restroom",keywords:["blue","square","toilet","refresh","wc","gender"],skins:[{unified:"1f6bb",native:"🚻"}],version:1},baby_symbol:{id:"baby_symbol",name:"Baby Symbol",keywords:["orange","square","child"],skins:[{unified:"1f6bc",native:"🚼"}],version:1},wc:{id:"wc",name:"Water Closet",keywords:["wc","toilet","restroom","blue","square"],skins:[{unified:"1f6be",native:"🚾"}],version:1},passport_control:{id:"passport_control",name:"Passport Control",keywords:["custom","blue","square"],skins:[{unified:"1f6c2",native:"🛂"}],version:1},customs:{id:"customs",name:"Customs",keywords:["passport","border","blue","square"],skins:[{unified:"1f6c3",native:"🛃"}],version:1},baggage_claim:{id:"baggage_claim",name:"Baggage Claim",keywords:["blue","square","airport","transport"],skins:[{unified:"1f6c4",native:"🛄"}],version:1},left_luggage:{id:"left_luggage",name:"Left Luggage",keywords:["blue","square","travel"],skins:[{unified:"1f6c5",native:"🛅"}],version:1},warning:{id:"warning",name:"Warning",keywords:["exclamation","wip","alert","error","problem","issue"],skins:[{unified:"26a0-fe0f",native:"⚠️"}],version:1},children_crossing:{id:"children_crossing",name:"Children Crossing",keywords:["school","warning","danger","sign","driving","yellow","diamond"],skins:[{unified:"1f6b8",native:"🚸"}],version:1},no_entry:{id:"no_entry",name:"No Entry",keywords:["limit","security","privacy","bad","denied","stop","circle"],skins:[{unified:"26d4",native:"⛔"}],version:1},no_entry_sign:{id:"no_entry_sign",name:"Prohibited",keywords:["no","entry","sign","forbid","stop","limit","denied","disallow","circle"],skins:[{unified:"1f6ab",native:"🚫"}],version:1},no_bicycles:{id:"no_bicycles",name:"No Bicycles",keywords:["cyclist","prohibited","circle"],skins:[{unified:"1f6b3",native:"🚳"}],version:1},no_smoking:{id:"no_smoking",name:"No Smoking",keywords:["cigarette","blue","square","smell","smoke"],skins:[{unified:"1f6ad",native:"🚭"}],version:1},do_not_litter:{id:"do_not_litter",name:"No Littering",keywords:["do","not","litter","trash","bin","garbage","circle"],skins:[{unified:"1f6af",native:"🚯"}],version:1},"non-potable_water":{id:"non-potable_water",name:"Non-Potable Water",keywords:["non","potable","drink","faucet","tap","circle"],skins:[{unified:"1f6b1",native:"🚱"}],version:1},no_pedestrians:{id:"no_pedestrians",name:"No Pedestrians",keywords:["rules","crossing","walking","circle"],skins:[{unified:"1f6b7",native:"🚷"}],version:1},no_mobile_phones:{id:"no_mobile_phones",name:"No Mobile Phones",keywords:["iphone","mute","circle"],skins:[{unified:"1f4f5",native:"📵"}],version:1},underage:{id:"underage",name:"No One Under Eighteen",keywords:["underage","18","drink","pub","night","minor","circle"],skins:[{unified:"1f51e",native:"🔞"}],version:1},radioactive_sign:{id:"radioactive_sign",name:"Radioactive",keywords:["sign","nuclear","danger"],skins:[{unified:"2622-fe0f",native:"☢️"}],version:1},biohazard_sign:{id:"biohazard_sign",name:"Biohazard",keywords:["sign","danger"],skins:[{unified:"2623-fe0f",native:"☣️"}],version:1},arrow_up:{id:"arrow_up",name:"Up Arrow",keywords:["blue","square","continue","top","direction"],skins:[{unified:"2b06-fe0f",native:"⬆️"}],version:1},arrow_upper_right:{id:"arrow_upper_right",name:"Up-Right Arrow",keywords:["upper","right","up","blue","square","point","direction","diagonal","northeast"],skins:[{unified:"2197-fe0f",native:"↗️"}],version:1},arrow_right:{id:"arrow_right",name:"Right Arrow",keywords:["blue","square","next"],skins:[{unified:"27a1-fe0f",native:"➡️"}],version:1},arrow_lower_right:{id:"arrow_lower_right",name:"South East Arrow",keywords:["lower","right","down","blue","square","direction","diagonal","southeast"],skins:[{unified:"2198-fe0f",native:"↘️"}],version:1},arrow_down:{id:"arrow_down",name:"Down Arrow",keywords:["blue","square","direction","bottom"],skins:[{unified:"2b07-fe0f",native:"⬇️"}],version:1},arrow_lower_left:{id:"arrow_lower_left",name:"Down-Left Arrow",keywords:["lower","left","down","blue","square","direction","diagonal","southwest"],skins:[{unified:"2199-fe0f",native:"↙️"}],version:1},arrow_left:{id:"arrow_left",name:"Left Arrow",keywords:["blue","square","previous","back"],skins:[{unified:"2b05-fe0f",native:"⬅️"}],version:1},arrow_upper_left:{id:"arrow_upper_left",name:"Up-Left Arrow",keywords:["upper","left","up","blue","square","point","direction","diagonal","northwest"],skins:[{unified:"2196-fe0f",native:"↖️"}],version:1},arrow_up_down:{id:"arrow_up_down",name:"Up Down Arrow",keywords:["blue","square","direction","way","vertical"],skins:[{unified:"2195-fe0f",native:"↕️"}],version:1},left_right_arrow:{id:"left_right_arrow",name:"Left Right Arrow",keywords:["shape","direction","horizontal","sideways"],skins:[{unified:"2194-fe0f",native:"↔️"}],version:1},leftwards_arrow_with_hook:{id:"leftwards_arrow_with_hook",name:"Right Arrow Curving Left",keywords:["leftwards","with","hook","back","return","blue","square","undo","enter"],skins:[{unified:"21a9-fe0f",native:"↩️"}],version:1},arrow_right_hook:{id:"arrow_right_hook",name:"Left Arrow Curving Right",keywords:["hook","blue","square","return","rotate","direction"],skins:[{unified:"21aa-fe0f",native:"↪️"}],version:1},arrow_heading_up:{id:"arrow_heading_up",name:"Right Arrow Curving Up",keywords:["heading","blue","square","direction","top"],skins:[{unified:"2934-fe0f",native:"⤴️"}],version:1},arrow_heading_down:{id:"arrow_heading_down",name:"Right Arrow Curving Down",keywords:["heading","blue","square","direction","bottom"],skins:[{unified:"2935-fe0f",native:"⤵️"}],version:1},arrows_clockwise:{id:"arrows_clockwise",name:"Clockwise Vertical Arrows",keywords:["sync","cycle","round","repeat"],skins:[{unified:"1f503",native:"🔃"}],version:1},arrows_counterclockwise:{id:"arrows_counterclockwise",name:"Counterclockwise Arrows Button",keywords:["blue","square","sync","cycle"],skins:[{unified:"1f504",native:"🔄"}],version:1},back:{id:"back",name:"Back Arrow",keywords:["words","return"],skins:[{unified:"1f519",native:"🔙"}],version:1},end:{id:"end",name:"End Arrow",keywords:["words"],skins:[{unified:"1f51a",native:"🔚"}],version:1},on:{id:"on",name:"On! Arrow",keywords:["on","words"],skins:[{unified:"1f51b",native:"🔛"}],version:1},soon:{id:"soon",name:"Soon Arrow",keywords:["words"],skins:[{unified:"1f51c",native:"🔜"}],version:1},top:{id:"top",name:"Top Arrow",keywords:["words","blue","square"],skins:[{unified:"1f51d",native:"🔝"}],version:1},place_of_worship:{id:"place_of_worship",name:"Place of Worship",keywords:["religion","church","temple","prayer"],skins:[{unified:"1f6d0",native:"🛐"}],version:1},atom_symbol:{id:"atom_symbol",name:"Atom Symbol",keywords:["science","physics","chemistry"],skins:[{unified:"269b-fe0f",native:"⚛️"}],version:1},om_symbol:{id:"om_symbol",name:"Om",keywords:["symbol","hinduism","buddhism","sikhism","jainism"],skins:[{unified:"1f549-fe0f",native:"🕉️"}],version:1},star_of_david:{id:"star_of_david",name:"Star of David",keywords:["judaism"],skins:[{unified:"2721-fe0f",native:"✡️"}],version:1},wheel_of_dharma:{id:"wheel_of_dharma",name:"Wheel of Dharma",keywords:["hinduism","buddhism","sikhism","jainism"],skins:[{unified:"2638-fe0f",native:"☸️"}],version:1},yin_yang:{id:"yin_yang",name:"Yin Yang",keywords:["balance"],skins:[{unified:"262f-fe0f",native:"☯️"}],version:1},latin_cross:{id:"latin_cross",name:"Latin Cross",keywords:["christianity"],skins:[{unified:"271d-fe0f",native:"✝️"}],version:1},orthodox_cross:{id:"orthodox_cross",name:"Orthodox Cross",keywords:["suppedaneum","religion"],skins:[{unified:"2626-fe0f",native:"☦️"}],version:1},star_and_crescent:{id:"star_and_crescent",name:"Star and Crescent",keywords:["islam"],skins:[{unified:"262a-fe0f",native:"☪️"}],version:1},peace_symbol:{id:"peace_symbol",name:"Peace Symbol",keywords:["hippie"],skins:[{unified:"262e-fe0f",native:"☮️"}],version:1},menorah_with_nine_branches:{id:"menorah_with_nine_branches",name:"Menorah",keywords:["with","nine","branches","hanukkah","candles","jewish"],skins:[{unified:"1f54e",native:"🕎"}],version:1},six_pointed_star:{id:"six_pointed_star",name:"Dotted Six-Pointed Star",keywords:["six","pointed","purple","square","religion","jewish","hexagram"],skins:[{unified:"1f52f",native:"🔯"}],version:1},khanda:{id:"khanda",name:"Khanda",keywords:["Sikhism","religion"],skins:[{unified:"1faaf",native:"🪯"}],version:15},aries:{id:"aries",name:"Aries",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"2648",native:"♈"}],version:1},taurus:{id:"taurus",name:"Taurus",keywords:["purple","square","sign","zodiac","astrology"],skins:[{unified:"2649",native:"♉"}],version:1},gemini:{id:"gemini",name:"Gemini",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"264a",native:"♊"}],version:1},cancer:{id:"cancer",name:"Cancer",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"264b",native:"♋"}],version:1},leo:{id:"leo",name:"Leo",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"264c",native:"♌"}],version:1},virgo:{id:"virgo",name:"Virgo",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"264d",native:"♍"}],version:1},libra:{id:"libra",name:"Libra",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"264e",native:"♎"}],version:1},scorpius:{id:"scorpius",name:"Scorpio",keywords:["scorpius","sign","zodiac","purple","square","astrology"],skins:[{unified:"264f",native:"♏"}],version:1},sagittarius:{id:"sagittarius",name:"Sagittarius",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"2650",native:"♐"}],version:1},capricorn:{id:"capricorn",name:"Capricorn",keywords:["sign","zodiac","purple","square","astrology"],skins:[{unified:"2651",native:"♑"}],version:1},aquarius:{id:"aquarius",name:"Aquarius",keywords:["sign","purple","square","zodiac","astrology"],skins:[{unified:"2652",native:"♒"}],version:1},pisces:{id:"pisces",name:"Pisces",keywords:["purple","square","sign","zodiac","astrology"],skins:[{unified:"2653",native:"♓"}],version:1},ophiuchus:{id:"ophiuchus",name:"Ophiuchus",keywords:["sign","purple","square","constellation","astrology"],skins:[{unified:"26ce",native:"⛎"}],version:1},twisted_rightwards_arrows:{id:"twisted_rightwards_arrows",name:"Shuffle Tracks Button",keywords:["twisted","rightwards","arrows","blue","square","music","random"],skins:[{unified:"1f500",native:"🔀"}],version:1},repeat:{id:"repeat",name:"Repeat Button",keywords:["loop","record"],skins:[{unified:"1f501",native:"🔁"}],version:1},repeat_one:{id:"repeat_one",name:"Repeat Single Button",keywords:["one","blue","square","loop"],skins:[{unified:"1f502",native:"🔂"}],version:1},arrow_forward:{id:"arrow_forward",name:"Play Button",keywords:["arrow","forward","blue","square","right","direction"],skins:[{unified:"25b6-fe0f",native:"▶️"}],version:1},fast_forward:{id:"fast_forward",name:"Fast-Forward Button",keywords:["fast","forward","blue","square","play","speed","continue"],skins:[{unified:"23e9",native:"⏩"}],version:1},black_right_pointing_double_triangle_with_vertical_bar:{id:"black_right_pointing_double_triangle_with_vertical_bar",name:"Next Track Button",keywords:["black","right","pointing","double","triangle","with","vertical","bar","forward","blue","square"],skins:[{unified:"23ed-fe0f",native:"⏭️"}],version:1},black_right_pointing_triangle_with_double_vertical_bar:{id:"black_right_pointing_triangle_with_double_vertical_bar",name:"Play or Pause Button",keywords:["black","right","pointing","triangle","with","double","vertical","bar","blue","square"],skins:[{unified:"23ef-fe0f",native:"⏯️"}],version:1},arrow_backward:{id:"arrow_backward",name:"Reverse Button",keywords:["arrow","backward","blue","square","left","direction"],skins:[{unified:"25c0-fe0f",native:"◀️"}],version:1},rewind:{id:"rewind",name:"Fast Reverse Button",keywords:["rewind","play","blue","square"],skins:[{unified:"23ea",native:"⏪"}],version:1},black_left_pointing_double_triangle_with_vertical_bar:{id:"black_left_pointing_double_triangle_with_vertical_bar",name:"Last Track Button",keywords:["black","left","pointing","double","triangle","with","vertical","bar","backward"],skins:[{unified:"23ee-fe0f",native:"⏮️"}],version:1},arrow_up_small:{id:"arrow_up_small",name:"Upwards Button",keywords:["arrow","up","small","blue","square","triangle","direction","point","forward","top"],skins:[{unified:"1f53c",native:"🔼"}],version:1},arrow_double_up:{id:"arrow_double_up",name:"Fast Up Button",keywords:["arrow","double","blue","square","direction","top"],skins:[{unified:"23eb",native:"⏫"}],version:1},arrow_down_small:{id:"arrow_down_small",name:"Downwards Button",keywords:["arrow","down","small","blue","square","direction","bottom"],skins:[{unified:"1f53d",native:"🔽"}],version:1},arrow_double_down:{id:"arrow_double_down",name:"Fast Down Button",keywords:["arrow","double","blue","square","direction","bottom"],skins:[{unified:"23ec",native:"⏬"}],version:1},double_vertical_bar:{id:"double_vertical_bar",name:"Pause Button",keywords:["double","vertical","bar","blue","square"],skins:[{unified:"23f8-fe0f",native:"⏸️"}],version:1},black_square_for_stop:{id:"black_square_for_stop",name:"Stop Button",keywords:["black","square","for","blue"],skins:[{unified:"23f9-fe0f",native:"⏹️"}],version:1},black_circle_for_record:{id:"black_circle_for_record",name:"Record Button",keywords:["black","circle","for","blue","square"],skins:[{unified:"23fa-fe0f",native:"⏺️"}],version:1},eject:{id:"eject",name:"Eject Button",keywords:["blue","square"],skins:[{unified:"23cf-fe0f",native:"⏏️"}],version:1},cinema:{id:"cinema",name:"Cinema",keywords:["blue","square","record","film","movie","curtain","stage","theater"],skins:[{unified:"1f3a6",native:"🎦"}],version:1},low_brightness:{id:"low_brightness",name:"Dim Button",keywords:["low","brightness","sun","afternoon","warm","summer"],skins:[{unified:"1f505",native:"🔅"}],version:1},high_brightness:{id:"high_brightness",name:"Bright Button",keywords:["high","brightness","sun","light"],skins:[{unified:"1f506",native:"🔆"}],version:1},signal_strength:{id:"signal_strength",name:"Antenna Bars",keywords:["signal","strength","blue","square","reception","phone","internet","connection","wifi","bluetooth"],skins:[{unified:"1f4f6",native:"📶"}],version:1},wireless:{id:"wireless",name:"Wireless",keywords:["wifi","internet","contactless","signal"],skins:[{unified:"1f6dc",native:"🛜"}],version:15},vibration_mode:{id:"vibration_mode",name:"Vibration Mode",keywords:["orange","square","phone"],skins:[{unified:"1f4f3",native:"📳"}],version:1},mobile_phone_off:{id:"mobile_phone_off",name:"Mobile Phone off",keywords:["mute","orange","square","silence","quiet"],skins:[{unified:"1f4f4",native:"📴"}],version:1},female_sign:{id:"female_sign",name:"Female Sign",keywords:["woman","women","lady","girl"],skins:[{unified:"2640-fe0f",native:"♀️"}],version:4},male_sign:{id:"male_sign",name:"Male Sign",keywords:["man","boy","men"],skins:[{unified:"2642-fe0f",native:"♂️"}],version:4},transgender_symbol:{id:"transgender_symbol",name:"Transgender Symbol",keywords:["lgbtq"],skins:[{unified:"26a7-fe0f",native:"⚧️"}],version:13},heavy_multiplication_x:{id:"heavy_multiplication_x",name:"Multiply",keywords:["heavy","multiplication","x","sign","math","calculation"],skins:[{unified:"2716-fe0f",native:"✖️"}],version:1},heavy_plus_sign:{id:"heavy_plus_sign",name:"Plus",keywords:["heavy","sign","math","calculation","addition","more","increase"],skins:[{unified:"2795",native:"➕"}],version:1},heavy_minus_sign:{id:"heavy_minus_sign",name:"Minus",keywords:["heavy","sign","math","calculation","subtract","less"],skins:[{unified:"2796",native:"➖"}],version:1},heavy_division_sign:{id:"heavy_division_sign",name:"Divide",keywords:["heavy","division","sign","math","calculation"],skins:[{unified:"2797",native:"➗"}],version:1},heavy_equals_sign:{id:"heavy_equals_sign",name:"Heavy Equals Sign",keywords:["math"],skins:[{unified:"1f7f0",native:"🟰"}],version:14},infinity:{id:"infinity",name:"Infinity",keywords:["forever"],skins:[{unified:"267e-fe0f",native:"♾️"}],version:11},bangbang:{id:"bangbang",name:"Double Exclamation Mark",keywords:["bangbang","surprise"],skins:[{unified:"203c-fe0f",native:"‼️"}],version:1},interrobang:{id:"interrobang",name:"Exclamation Question Mark",keywords:["interrobang","wat","punctuation","surprise"],skins:[{unified:"2049-fe0f",native:"⁉️"}],version:1},question:{id:"question",name:"Red Question Mark",keywords:["doubt","confused"],skins:[{unified:"2753",native:"❓"}],version:1},grey_question:{id:"grey_question",name:"White Question Mark",keywords:["grey","doubts","gray","huh","confused"],skins:[{unified:"2754",native:"❔"}],version:1},grey_exclamation:{id:"grey_exclamation",name:"White Exclamation Mark",keywords:["grey","surprise","punctuation","gray","wow","warning"],skins:[{unified:"2755",native:"❕"}],version:1},exclamation:{id:"exclamation",name:"Red Exclamation Mark",keywords:["heavy","danger","surprise","punctuation","wow","warning"],skins:[{unified:"2757",native:"❗"}],version:1},wavy_dash:{id:"wavy_dash",name:"Wavy Dash",keywords:["draw","line","moustache","mustache","squiggle","scribble"],skins:[{unified:"3030-fe0f",native:"〰️"}],version:1},currency_exchange:{id:"currency_exchange",name:"Currency Exchange",keywords:["money","sales","dollar","travel"],skins:[{unified:"1f4b1",native:"💱"}],version:1},heavy_dollar_sign:{id:"heavy_dollar_sign",name:"Heavy Dollar Sign",keywords:["money","sales","payment","currency","buck"],skins:[{unified:"1f4b2",native:"💲"}],version:1},medical_symbol:{id:"medical_symbol",name:"Medical Symbol",keywords:["staff","of","aesculapius","health","hospital"],skins:[{unified:"2695-fe0f",native:"⚕️"}],version:4},recycle:{id:"recycle",name:"Recycling Symbol",keywords:["recycle","arrow","environment","garbage","trash"],skins:[{unified:"267b-fe0f",native:"♻️"}],version:1},fleur_de_lis:{id:"fleur_de_lis",name:"Fleur-De-Lis",keywords:["fleur","de","lis","decorative","scout"],skins:[{unified:"269c-fe0f",native:"⚜️"}],version:1},trident:{id:"trident",name:"Trident Emblem",keywords:["weapon","spear"],skins:[{unified:"1f531",native:"🔱"}],version:1},name_badge:{id:"name_badge",name:"Name Badge",keywords:["fire","forbid"],skins:[{unified:"1f4db",native:"📛"}],version:1},beginner:{id:"beginner",name:"Japanese Symbol for Beginner",keywords:["badge","shield"],skins:[{unified:"1f530",native:"🔰"}],version:1},o:{id:"o",name:"Hollow Red Circle",keywords:["o","round"],skins:[{unified:"2b55",native:"⭕"}],version:1},white_check_mark:{id:"white_check_mark",name:"Check Mark Button",keywords:["white","green","square","ok","agree","vote","election","answer","tick"],skins:[{unified:"2705",native:"✅"}],version:1},ballot_box_with_check:{id:"ballot_box_with_check",name:"Check Box with Check",keywords:["ballot","ok","agree","confirm","black","square","vote","election","yes","tick"],skins:[{unified:"2611-fe0f",native:"☑️"}],version:1},heavy_check_mark:{id:"heavy_check_mark",name:"Check Mark",keywords:["heavy","ok","nike","answer","yes","tick"],skins:[{unified:"2714-fe0f",native:"✔️"}],version:1},x:{id:"x",name:"Cross Mark",keywords:["x","no","delete","remove","cancel","red"],skins:[{unified:"274c",native:"❌"}],version:1},negative_squared_cross_mark:{id:"negative_squared_cross_mark",name:"Cross Mark Button",keywords:["negative","squared","x","green","square","no","deny"],skins:[{unified:"274e",native:"❎"}],version:1},curly_loop:{id:"curly_loop",name:"Curly Loop",keywords:["scribble","draw","shape","squiggle"],skins:[{unified:"27b0",native:"➰"}],version:1},loop:{id:"loop",name:"Double Curly Loop",keywords:["tape","cassette"],skins:[{unified:"27bf",native:"➿"}],version:1},part_alternation_mark:{id:"part_alternation_mark",name:"Part Alternation Mark",keywords:["graph","presentation","stats","business","economics","bad"],skins:[{unified:"303d-fe0f",native:"〽️"}],version:1},eight_spoked_asterisk:{id:"eight_spoked_asterisk",name:"Eight Spoked Asterisk",keywords:["star","sparkle","green","square"],skins:[{unified:"2733-fe0f",native:"✳️"}],version:1},eight_pointed_black_star:{id:"eight_pointed_black_star",name:"Eight-Pointed Star",keywords:["eight","pointed","black","orange","square","shape","polygon"],skins:[{unified:"2734-fe0f",native:"✴️"}],version:1},sparkle:{id:"sparkle",name:"Sparkle",keywords:["stars","green","square","awesome","good","fireworks"],skins:[{unified:"2747-fe0f",native:"❇️"}],version:1},copyright:{id:"copyright",name:"Copyright",keywords:["ip","license","circle","law","legal"],skins:[{unified:"00a9-fe0f",native:"©️"}],version:1},registered:{id:"registered",name:"Registered",keywords:["alphabet","circle"],skins:[{unified:"00ae-fe0f",native:"®️"}],version:1},tm:{id:"tm",name:"Trade Mark",keywords:["tm","trademark","brand","law","legal"],skins:[{unified:"2122-fe0f",native:"™️"}],version:1},hash:{id:"hash",name:"Hash Key",keywords:["keycap","","symbol","blue","square","twitter"],skins:[{unified:"0023-fe0f-20e3",native:"#️⃣"}],version:1},keycap_star:{id:"keycap_star",name:"Keycap: *",keywords:["keycap","star",""],skins:[{unified:"002a-fe0f-20e3",native:"*️⃣"}],version:2},zero:{id:"zero",name:"Keycap 0",keywords:["zero","numbers","blue","square","null"],skins:[{unified:"0030-fe0f-20e3",native:"0️⃣"}],version:1},one:{id:"one",name:"Keycap 1",keywords:["one","blue","square","numbers"],skins:[{unified:"0031-fe0f-20e3",native:"1️⃣"}],version:1},two:{id:"two",name:"Keycap 2",keywords:["two","numbers","prime","blue","square"],skins:[{unified:"0032-fe0f-20e3",native:"2️⃣"}],version:1},three:{id:"three",name:"Keycap 3",keywords:["three","numbers","prime","blue","square"],skins:[{unified:"0033-fe0f-20e3",native:"3️⃣"}],version:1},four:{id:"four",name:"Keycap 4",keywords:["four","numbers","blue","square"],skins:[{unified:"0034-fe0f-20e3",native:"4️⃣"}],version:1},five:{id:"five",name:"Keycap 5",keywords:["five","numbers","blue","square","prime"],skins:[{unified:"0035-fe0f-20e3",native:"5️⃣"}],version:1},six:{id:"six",name:"Keycap 6",keywords:["six","numbers","blue","square"],skins:[{unified:"0036-fe0f-20e3",native:"6️⃣"}],version:1},seven:{id:"seven",name:"Keycap 7",keywords:["seven","numbers","blue","square","prime"],skins:[{unified:"0037-fe0f-20e3",native:"7️⃣"}],version:1},eight:{id:"eight",name:"Keycap 8",keywords:["eight","blue","square","numbers"],skins:[{unified:"0038-fe0f-20e3",native:"8️⃣"}],version:1},nine:{id:"nine",name:"Keycap 9",keywords:["nine","blue","square","numbers"],skins:[{unified:"0039-fe0f-20e3",native:"9️⃣"}],version:1},keycap_ten:{id:"keycap_ten",name:"Keycap 10",keywords:["ten","numbers","blue","square"],skins:[{unified:"1f51f",native:"🔟"}],version:1},capital_abcd:{id:"capital_abcd",name:"Input Latin Uppercase",keywords:["capital","abcd","alphabet","words","blue","square"],skins:[{unified:"1f520",native:"🔠"}],version:1},abcd:{id:"abcd",name:"Input Latin Lowercase",keywords:["abcd","blue","square","alphabet"],skins:[{unified:"1f521",native:"🔡"}],version:1},symbols:{id:"symbols",name:"Input Symbols",keywords:["blue","square","music","note","ampersand","percent","glyphs","characters"],skins:[{unified:"1f523",native:"🔣"}],version:1},abc:{id:"abc",name:"Input Latin Letters",keywords:["abc","blue","square","alphabet"],skins:[{unified:"1f524",native:"🔤"}],version:1},a:{id:"a",name:"A Button (blood Type)",keywords:["red","square","alphabet","letter"],skins:[{unified:"1f170-fe0f",native:"🅰️"}],version:1},ab:{id:"ab",name:"Negative Squared Ab",keywords:["button","red","square","alphabet"],skins:[{unified:"1f18e",native:"🆎"}],version:1},b:{id:"b",name:"B Button (blood Type)",keywords:["red","square","alphabet","letter"],skins:[{unified:"1f171-fe0f",native:"🅱️"}],version:1},cl:{id:"cl",name:"Cl Button",keywords:["alphabet","words","red","square"],skins:[{unified:"1f191",native:"🆑"}],version:1},cool:{id:"cool",name:"Cool Button",keywords:["words","blue","square"],skins:[{unified:"1f192",native:"🆒"}],version:1},free:{id:"free",name:"Free Button",keywords:["blue","square","words"],skins:[{unified:"1f193",native:"🆓"}],version:1},information_source:{id:"information_source",name:"Information",keywords:["source","blue","square","alphabet","letter"],skins:[{unified:"2139-fe0f",native:"ℹ️"}],version:1},id:{id:"id",name:"Id Button",keywords:["purple","square","words"],skins:[{unified:"1f194",native:"🆔"}],version:1},m:{id:"m",name:"Circled M",keywords:["alphabet","blue","circle","letter"],skins:[{unified:"24c2-fe0f",native:"Ⓜ️"}],version:1},new:{id:"new",name:"New Button",keywords:["blue","square","words","start"],skins:[{unified:"1f195",native:"🆕"}],version:1},ng:{id:"ng",name:"Ng Button",keywords:["blue","square","words","shape","icon"],skins:[{unified:"1f196",native:"🆖"}],version:1},o2:{id:"o2",name:"O Button (blood Type)",keywords:["o2","alphabet","red","square","letter"],skins:[{unified:"1f17e-fe0f",native:"🅾️"}],version:1},ok:{id:"ok",name:"Ok Button",keywords:["good","agree","yes","blue","square"],skins:[{unified:"1f197",native:"🆗"}],version:1},parking:{id:"parking",name:"P Button",keywords:["parking","cars","blue","square","alphabet","letter"],skins:[{unified:"1f17f-fe0f",native:"🅿️"}],version:1},sos:{id:"sos",name:"Sos Button",keywords:["help","red","square","words","emergency","911"],skins:[{unified:"1f198",native:"🆘"}],version:1},up:{id:"up",name:"Up! Button",keywords:["up","blue","square","above","high"],skins:[{unified:"1f199",native:"🆙"}],version:1},vs:{id:"vs",name:"Vs Button",keywords:["words","orange","square"],skins:[{unified:"1f19a",native:"🆚"}],version:1},koko:{id:"koko",name:"Squared Katakana Koko",keywords:["japanese","here","button","blue","square","destination"],skins:[{unified:"1f201",native:"🈁"}],version:1},sa:{id:"sa",name:"Squared Katakana Sa",keywords:["japanese","service","charge","button","blue","square"],skins:[{unified:"1f202-fe0f",native:"🈂️"}],version:1},u6708:{id:"u6708",name:"Japanese “monthly Amount” Button",keywords:["u6708","monthly","amount","chinese","month","moon","orange","square","kanji"],skins:[{unified:"1f237-fe0f",native:"🈷️"}],version:1},u6709:{id:"u6709",name:"Squared Cjk Unified Ideograph-6709",keywords:["u6709","japanese","not","free","of","charge","button","orange","square","chinese","have","kanji"],skins:[{unified:"1f236",native:"🈶"}],version:1},u6307:{id:"u6307",name:"Japanese “reserved” Button",keywords:["u6307","reserved","chinese","point","green","square","kanji"],skins:[{unified:"1f22f",native:"🈯"}],version:1},ideograph_advantage:{id:"ideograph_advantage",name:"Japanese “bargain” Button",keywords:["ideograph","advantage","bargain","chinese","kanji","obtain","get","circle"],skins:[{unified:"1f250",native:"🉐"}],version:1},u5272:{id:"u5272",name:"Japanese “discount” Button",keywords:["u5272","discount","cut","divide","chinese","kanji","pink","square"],skins:[{unified:"1f239",native:"🈹"}],version:1},u7121:{id:"u7121",name:"Japanese “free of Charge” Button",keywords:["u7121","free","charge","nothing","chinese","kanji","orange","square"],skins:[{unified:"1f21a",native:"🈚"}],version:1},u7981:{id:"u7981",name:"Japanese “prohibited” Button",keywords:["u7981","prohibited","kanji","chinese","forbidden","limit","restricted","red","square"],skins:[{unified:"1f232",native:"🈲"}],version:1},accept:{id:"accept",name:"Circled Ideograph Accept",keywords:["japanese","acceptable","button","ok","good","chinese","kanji","agree","yes","orange","circle"],skins:[{unified:"1f251",native:"🉑"}],version:1},u7533:{id:"u7533",name:"Japanese “application” Button",keywords:["u7533","application","chinese","kanji","orange","square"],skins:[{unified:"1f238",native:"🈸"}],version:1},u5408:{id:"u5408",name:"Japanese “passing Grade” Button",keywords:["u5408","passing","grade","chinese","join","kanji","red","square"],skins:[{unified:"1f234",native:"🈴"}],version:1},u7a7a:{id:"u7a7a",name:"Japanese “vacancy” Button",keywords:["u7a7a","vacancy","kanji","chinese","empty","sky","blue","square"],skins:[{unified:"1f233",native:"🈳"}],version:1},congratulations:{id:"congratulations",name:"Circled Ideograph Congratulation",keywords:["congratulations","japanese","button","chinese","kanji","red","circle"],skins:[{unified:"3297-fe0f",native:"㊗️"}],version:1},secret:{id:"secret",name:"Circled Ideograph Secret",keywords:["japanese","button","privacy","chinese","sshh","kanji","red","circle"],skins:[{unified:"3299-fe0f",native:"㊙️"}],version:1},u55b6:{id:"u55b6",name:"Squared Cjk Unified Ideograph-55b6",keywords:["u55b6","japanese","open","for","business","button","opening","hours","orange","square"],skins:[{unified:"1f23a",native:"🈺"}],version:1},u6e80:{id:"u6e80",name:"Japanese “no Vacancy” Button",keywords:["u6e80","no","vacancy","full","chinese","red","square","kanji"],skins:[{unified:"1f235",native:"🈵"}],version:1},red_circle:{id:"red_circle",name:"Red Circle",keywords:["shape","error","danger"],skins:[{unified:"1f534",native:"🔴"}],version:1},large_orange_circle:{id:"large_orange_circle",name:"Orange Circle",keywords:["large","round"],skins:[{unified:"1f7e0",native:"🟠"}],version:12},large_yellow_circle:{id:"large_yellow_circle",name:"Yellow Circle",keywords:["large","round"],skins:[{unified:"1f7e1",native:"🟡"}],version:12},large_green_circle:{id:"large_green_circle",name:"Green Circle",keywords:["large","round"],skins:[{unified:"1f7e2",native:"🟢"}],version:12},large_blue_circle:{id:"large_blue_circle",name:"Blue Circle",keywords:["large","shape","icon","button"],skins:[{unified:"1f535",native:"🔵"}],version:1},large_purple_circle:{id:"large_purple_circle",name:"Purple Circle",keywords:["large","round"],skins:[{unified:"1f7e3",native:"🟣"}],version:12},large_brown_circle:{id:"large_brown_circle",name:"Brown Circle",keywords:["large","round"],skins:[{unified:"1f7e4",native:"🟤"}],version:12},black_circle:{id:"black_circle",name:"Black Circle",keywords:["shape","button","round"],skins:[{unified:"26ab",native:"⚫"}],version:1},white_circle:{id:"white_circle",name:"White Circle",keywords:["shape","round"],skins:[{unified:"26aa",native:"⚪"}],version:1},large_red_square:{id:"large_red_square",name:"Red Square",keywords:["large"],skins:[{unified:"1f7e5",native:"🟥"}],version:12},large_orange_square:{id:"large_orange_square",name:"Orange Square",keywords:["large"],skins:[{unified:"1f7e7",native:"🟧"}],version:12},large_yellow_square:{id:"large_yellow_square",name:"Yellow Square",keywords:["large"],skins:[{unified:"1f7e8",native:"🟨"}],version:12},large_green_square:{id:"large_green_square",name:"Green Square",keywords:["large"],skins:[{unified:"1f7e9",native:"🟩"}],version:12},large_blue_square:{id:"large_blue_square",name:"Blue Square",keywords:["large"],skins:[{unified:"1f7e6",native:"🟦"}],version:12},large_purple_square:{id:"large_purple_square",name:"Purple Square",keywords:["large"],skins:[{unified:"1f7ea",native:"🟪"}],version:12},large_brown_square:{id:"large_brown_square",name:"Brown Square",keywords:["large"],skins:[{unified:"1f7eb",native:"🟫"}],version:12},black_large_square:{id:"black_large_square",name:"Black Large Square",keywords:["shape","icon","button"],skins:[{unified:"2b1b",native:"⬛"}],version:1},white_large_square:{id:"white_large_square",name:"White Large Square",keywords:["shape","icon","stone","button"],skins:[{unified:"2b1c",native:"⬜"}],version:1},black_medium_square:{id:"black_medium_square",name:"Black Medium Square",keywords:["shape","button","icon"],skins:[{unified:"25fc-fe0f",native:"◼️"}],version:1},white_medium_square:{id:"white_medium_square",name:"White Medium Square",keywords:["shape","stone","icon"],skins:[{unified:"25fb-fe0f",native:"◻️"}],version:1},black_medium_small_square:{id:"black_medium_small_square",name:"Black Medium Small Square",keywords:["icon","shape","button"],skins:[{unified:"25fe",native:"◾"}],version:1},white_medium_small_square:{id:"white_medium_small_square",name:"White Medium Small Square",keywords:["shape","stone","icon","button"],skins:[{unified:"25fd",native:"◽"}],version:1},black_small_square:{id:"black_small_square",name:"Black Small Square",keywords:["shape","icon"],skins:[{unified:"25aa-fe0f",native:"▪️"}],version:1},white_small_square:{id:"white_small_square",name:"White Small Square",keywords:["shape","icon"],skins:[{unified:"25ab-fe0f",native:"▫️"}],version:1},large_orange_diamond:{id:"large_orange_diamond",name:"Large Orange Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f536",native:"🔶"}],version:1},large_blue_diamond:{id:"large_blue_diamond",name:"Large Blue Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f537",native:"🔷"}],version:1},small_orange_diamond:{id:"small_orange_diamond",name:"Small Orange Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f538",native:"🔸"}],version:1},small_blue_diamond:{id:"small_blue_diamond",name:"Small Blue Diamond",keywords:["shape","jewel","gem"],skins:[{unified:"1f539",native:"🔹"}],version:1},small_red_triangle:{id:"small_red_triangle",name:"Red Triangle Pointed Up",keywords:["small","shape","direction","top"],skins:[{unified:"1f53a",native:"🔺"}],version:1},small_red_triangle_down:{id:"small_red_triangle_down",name:"Red Triangle Pointed Down",keywords:["small","shape","direction","bottom"],skins:[{unified:"1f53b",native:"🔻"}],version:1},diamond_shape_with_a_dot_inside:{id:"diamond_shape_with_a_dot_inside",name:"Diamond with a Dot",keywords:["shape","inside","jewel","blue","gem","crystal","fancy"],skins:[{unified:"1f4a0",native:"💠"}],version:1},radio_button:{id:"radio_button",name:"Radio Button",keywords:["input","old","music","circle"],skins:[{unified:"1f518",native:"🔘"}],version:1},white_square_button:{id:"white_square_button",name:"White Square Button",keywords:["shape","input"],skins:[{unified:"1f533",native:"🔳"}],version:1},black_square_button:{id:"black_square_button",name:"Black Square Button",keywords:["shape","input","frame"],skins:[{unified:"1f532",native:"🔲"}],version:1},checkered_flag:{id:"checkered_flag",name:"Chequered Flag",keywords:["checkered","contest","finishline","race","gokart"],skins:[{unified:"1f3c1",native:"🏁"}],version:1},triangular_flag_on_post:{id:"triangular_flag_on_post",name:"Triangular Flag",keywords:["on","post","mark","milestone","place"],skins:[{unified:"1f6a9",native:"🚩"}],version:1},crossed_flags:{id:"crossed_flags",name:"Crossed Flags",keywords:["japanese","nation","country","border"],skins:[{unified:"1f38c",native:"🎌"}],version:1},waving_black_flag:{id:"waving_black_flag",name:"Black Flag",keywords:["waving","pirate"],skins:[{unified:"1f3f4",native:"🏴"}],version:1},waving_white_flag:{id:"waving_white_flag",name:"White Flag",keywords:["waving","losing","loser","lost","surrender","give","up","fail"],skins:[{unified:"1f3f3-fe0f",native:"🏳️"}],version:1},"rainbow-flag":{id:"rainbow-flag",name:"Rainbow Flag",keywords:["pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],skins:[{unified:"1f3f3-fe0f-200d-1f308",native:"🏳️🌈"}],version:4},transgender_flag:{id:"transgender_flag",name:"Transgender Flag",keywords:["lgbtq"],skins:[{unified:"1f3f3-fe0f-200d-26a7-fe0f",native:"🏳️⚧️"}],version:13},pirate_flag:{id:"pirate_flag",name:"Pirate Flag",keywords:["skull","crossbones","banner"],skins:[{unified:"1f3f4-200d-2620-fe0f",native:"🏴☠️"}],version:11},"flag-ac":{id:"flag-ac",name:"Ascension Island Flag",keywords:["ac"],skins:[{unified:"1f1e6-1f1e8",native:"🇦🇨"}],version:2},"flag-ad":{id:"flag-ad",name:"Andorra Flag",keywords:["ad","nation","country","banner"],skins:[{unified:"1f1e6-1f1e9",native:"🇦🇩"}],version:2},"flag-ae":{id:"flag-ae",name:"United Arab Emirates Flag",keywords:["ae","nation","country","banner"],skins:[{unified:"1f1e6-1f1ea",native:"🇦🇪"}],version:2},"flag-af":{id:"flag-af",name:"Afghanistan Flag",keywords:["af","nation","country","banner"],skins:[{unified:"1f1e6-1f1eb",native:"🇦🇫"}],version:2},"flag-ag":{id:"flag-ag",name:"Antigua & Barbuda Flag",keywords:["ag","nation","country","banner"],skins:[{unified:"1f1e6-1f1ec",native:"🇦🇬"}],version:2},"flag-ai":{id:"flag-ai",name:"Anguilla Flag",keywords:["ai","nation","country","banner"],skins:[{unified:"1f1e6-1f1ee",native:"🇦🇮"}],version:2},"flag-al":{id:"flag-al",name:"Albania Flag",keywords:["al","nation","country","banner"],skins:[{unified:"1f1e6-1f1f1",native:"🇦🇱"}],version:2},"flag-am":{id:"flag-am",name:"Armenia Flag",keywords:["am","nation","country","banner"],skins:[{unified:"1f1e6-1f1f2",native:"🇦🇲"}],version:2},"flag-ao":{id:"flag-ao",name:"Angola Flag",keywords:["ao","nation","country","banner"],skins:[{unified:"1f1e6-1f1f4",native:"🇦🇴"}],version:2},"flag-aq":{id:"flag-aq",name:"Antarctica Flag",keywords:["aq","nation","country","banner"],skins:[{unified:"1f1e6-1f1f6",native:"🇦🇶"}],version:2},"flag-ar":{id:"flag-ar",name:"Argentina Flag",keywords:["ar","nation","country","banner"],skins:[{unified:"1f1e6-1f1f7",native:"🇦🇷"}],version:2},"flag-as":{id:"flag-as",name:"American Samoa Flag",keywords:["as","ws","nation","country","banner"],skins:[{unified:"1f1e6-1f1f8",native:"🇦🇸"}],version:2},"flag-at":{id:"flag-at",name:"Austria Flag",keywords:["at","nation","country","banner"],skins:[{unified:"1f1e6-1f1f9",native:"🇦🇹"}],version:2},"flag-au":{id:"flag-au",name:"Australia Flag",keywords:["au","nation","country","banner"],skins:[{unified:"1f1e6-1f1fa",native:"🇦🇺"}],version:2},"flag-aw":{id:"flag-aw",name:"Aruba Flag",keywords:["aw","nation","country","banner"],skins:[{unified:"1f1e6-1f1fc",native:"🇦🇼"}],version:2},"flag-ax":{id:"flag-ax",name:"Åland Islands Flag",keywords:["ax","aland","Aland","nation","country","banner"],skins:[{unified:"1f1e6-1f1fd",native:"🇦🇽"}],version:2},"flag-az":{id:"flag-az",name:"Azerbaijan Flag",keywords:["az","nation","country","banner"],skins:[{unified:"1f1e6-1f1ff",native:"🇦🇿"}],version:2},"flag-ba":{id:"flag-ba",name:"Bosnia & Herzegovina Flag",keywords:["ba","nation","country","banner"],skins:[{unified:"1f1e7-1f1e6",native:"🇧🇦"}],version:2},"flag-bb":{id:"flag-bb",name:"Barbados Flag",keywords:["bb","nation","country","banner"],skins:[{unified:"1f1e7-1f1e7",native:"🇧🇧"}],version:2},"flag-bd":{id:"flag-bd",name:"Bangladesh Flag",keywords:["bd","nation","country","banner"],skins:[{unified:"1f1e7-1f1e9",native:"🇧🇩"}],version:2},"flag-be":{id:"flag-be",name:"Belgium Flag",keywords:["be","nation","country","banner"],skins:[{unified:"1f1e7-1f1ea",native:"🇧🇪"}],version:2},"flag-bf":{id:"flag-bf",name:"Burkina Faso Flag",keywords:["bf","nation","country","banner"],skins:[{unified:"1f1e7-1f1eb",native:"🇧🇫"}],version:2},"flag-bg":{id:"flag-bg",name:"Bulgaria Flag",keywords:["bg","nation","country","banner"],skins:[{unified:"1f1e7-1f1ec",native:"🇧🇬"}],version:2},"flag-bh":{id:"flag-bh",name:"Bahrain Flag",keywords:["bh","nation","country","banner"],skins:[{unified:"1f1e7-1f1ed",native:"🇧🇭"}],version:2},"flag-bi":{id:"flag-bi",name:"Burundi Flag",keywords:["bi","nation","country","banner"],skins:[{unified:"1f1e7-1f1ee",native:"🇧🇮"}],version:2},"flag-bj":{id:"flag-bj",name:"Benin Flag",keywords:["bj","nation","country","banner"],skins:[{unified:"1f1e7-1f1ef",native:"🇧🇯"}],version:2},"flag-bl":{id:"flag-bl",name:"St. Barthélemy Flag",keywords:["bl","st","barthelemy","saint","nation","country","banner"],skins:[{unified:"1f1e7-1f1f1",native:"🇧🇱"}],version:2},"flag-bm":{id:"flag-bm",name:"Bermuda Flag",keywords:["bm","nation","country","banner"],skins:[{unified:"1f1e7-1f1f2",native:"🇧🇲"}],version:2},"flag-bn":{id:"flag-bn",name:"Brunei Flag",keywords:["bn","darussalam","nation","country","banner"],skins:[{unified:"1f1e7-1f1f3",native:"🇧🇳"}],version:2},"flag-bo":{id:"flag-bo",name:"Bolivia Flag",keywords:["bo","nation","country","banner"],skins:[{unified:"1f1e7-1f1f4",native:"🇧🇴"}],version:2},"flag-bq":{id:"flag-bq",name:"Caribbean Netherlands Flag",keywords:["bq","bonaire","nation","country","banner"],skins:[{unified:"1f1e7-1f1f6",native:"🇧🇶"}],version:2},"flag-br":{id:"flag-br",name:"Brazil Flag",keywords:["br","nation","country","banner"],skins:[{unified:"1f1e7-1f1f7",native:"🇧🇷"}],version:2},"flag-bs":{id:"flag-bs",name:"Bahamas Flag",keywords:["bs","nation","country","banner"],skins:[{unified:"1f1e7-1f1f8",native:"🇧🇸"}],version:2},"flag-bt":{id:"flag-bt",name:"Bhutan Flag",keywords:["bt","nation","country","banner"],skins:[{unified:"1f1e7-1f1f9",native:"🇧🇹"}],version:2},"flag-bv":{id:"flag-bv",name:"Bouvet Island Flag",keywords:["bv","norway"],skins:[{unified:"1f1e7-1f1fb",native:"🇧🇻"}],version:2},"flag-bw":{id:"flag-bw",name:"Botswana Flag",keywords:["bw","nation","country","banner"],skins:[{unified:"1f1e7-1f1fc",native:"🇧🇼"}],version:2},"flag-by":{id:"flag-by",name:"Belarus Flag",keywords:["by","nation","country","banner"],skins:[{unified:"1f1e7-1f1fe",native:"🇧🇾"}],version:2},"flag-bz":{id:"flag-bz",name:"Belize Flag",keywords:["bz","nation","country","banner"],skins:[{unified:"1f1e7-1f1ff",native:"🇧🇿"}],version:2},"flag-ca":{id:"flag-ca",name:"Canada Flag",keywords:["ca","nation","country","banner"],skins:[{unified:"1f1e8-1f1e6",native:"🇨🇦"}],version:2},"flag-cc":{id:"flag-cc",name:"Cocos (keeling) Islands Flag",keywords:["cc","keeling","nation","country","banner"],skins:[{unified:"1f1e8-1f1e8",native:"🇨🇨"}],version:2},"flag-cd":{id:"flag-cd",name:"Congo - Kinshasa Flag",keywords:["cd","democratic","republic","nation","country","banner"],skins:[{unified:"1f1e8-1f1e9",native:"🇨🇩"}],version:2},"flag-cf":{id:"flag-cf",name:"Central African Republic Flag",keywords:["cf","nation","country","banner"],skins:[{unified:"1f1e8-1f1eb",native:"🇨🇫"}],version:2},"flag-cg":{id:"flag-cg",name:"Congo - Brazzaville Flag",keywords:["cg","nation","country","banner"],skins:[{unified:"1f1e8-1f1ec",native:"🇨🇬"}],version:2},"flag-ch":{id:"flag-ch",name:"Switzerland Flag",keywords:["ch","nation","country","banner"],skins:[{unified:"1f1e8-1f1ed",native:"🇨🇭"}],version:2},"flag-ci":{id:"flag-ci",name:"Côte D’ivoire Flag",keywords:["ci","cote","d","ivoire","ivory","coast","nation","country","banner"],skins:[{unified:"1f1e8-1f1ee",native:"🇨🇮"}],version:2},"flag-ck":{id:"flag-ck",name:"Cook Islands Flag",keywords:["ck","nation","country","banner"],skins:[{unified:"1f1e8-1f1f0",native:"🇨🇰"}],version:2},"flag-cl":{id:"flag-cl",name:"Chile Flag",keywords:["cl","nation","country","banner"],skins:[{unified:"1f1e8-1f1f1",native:"🇨🇱"}],version:2},"flag-cm":{id:"flag-cm",name:"Cameroon Flag",keywords:["cm","nation","country","banner"],skins:[{unified:"1f1e8-1f1f2",native:"🇨🇲"}],version:2},cn:{id:"cn",name:"China Flag",keywords:["cn","chinese","prc","country","nation","banner"],skins:[{unified:"1f1e8-1f1f3",native:"🇨🇳"}],version:1},"flag-co":{id:"flag-co",name:"Colombia Flag",keywords:["co","nation","country","banner"],skins:[{unified:"1f1e8-1f1f4",native:"🇨🇴"}],version:2},"flag-cp":{id:"flag-cp",name:"Clipperton Island Flag",keywords:["cp"],skins:[{unified:"1f1e8-1f1f5",native:"🇨🇵"}],version:2},"flag-cr":{id:"flag-cr",name:"Costa Rica Flag",keywords:["cr","nation","country","banner"],skins:[{unified:"1f1e8-1f1f7",native:"🇨🇷"}],version:2},"flag-cu":{id:"flag-cu",name:"Cuba Flag",keywords:["cu","nation","country","banner"],skins:[{unified:"1f1e8-1f1fa",native:"🇨🇺"}],version:2},"flag-cv":{id:"flag-cv",name:"Cape Verde Flag",keywords:["cv","cabo","nation","country","banner"],skins:[{unified:"1f1e8-1f1fb",native:"🇨🇻"}],version:2},"flag-cw":{id:"flag-cw",name:"Curaçao Flag",keywords:["cw","curacao","nation","country","banner"],skins:[{unified:"1f1e8-1f1fc",native:"🇨🇼"}],version:2},"flag-cx":{id:"flag-cx",name:"Christmas Island Flag",keywords:["cx","nation","country","banner"],skins:[{unified:"1f1e8-1f1fd",native:"🇨🇽"}],version:2},"flag-cy":{id:"flag-cy",name:"Cyprus Flag",keywords:["cy","nation","country","banner"],skins:[{unified:"1f1e8-1f1fe",native:"🇨🇾"}],version:2},"flag-cz":{id:"flag-cz",name:"Czechia Flag",keywords:["cz","nation","country","banner"],skins:[{unified:"1f1e8-1f1ff",native:"🇨🇿"}],version:2},de:{id:"de",name:"Germany Flag",keywords:["de","german","nation","country","banner"],skins:[{unified:"1f1e9-1f1ea",native:"🇩🇪"}],version:1},"flag-dg":{id:"flag-dg",name:"Diego Garcia Flag",keywords:["dg"],skins:[{unified:"1f1e9-1f1ec",native:"🇩🇬"}],version:2},"flag-dj":{id:"flag-dj",name:"Djibouti Flag",keywords:["dj","nation","country","banner"],skins:[{unified:"1f1e9-1f1ef",native:"🇩🇯"}],version:2},"flag-dk":{id:"flag-dk",name:"Denmark Flag",keywords:["dk","nation","country","banner"],skins:[{unified:"1f1e9-1f1f0",native:"🇩🇰"}],version:2},"flag-dm":{id:"flag-dm",name:"Dominica Flag",keywords:["dm","nation","country","banner"],skins:[{unified:"1f1e9-1f1f2",native:"🇩🇲"}],version:2},"flag-do":{id:"flag-do",name:"Dominican Republic Flag",keywords:["do","nation","country","banner"],skins:[{unified:"1f1e9-1f1f4",native:"🇩🇴"}],version:2},"flag-dz":{id:"flag-dz",name:"Algeria Flag",keywords:["dz","nation","country","banner"],skins:[{unified:"1f1e9-1f1ff",native:"🇩🇿"}],version:2},"flag-ea":{id:"flag-ea",name:"Ceuta & Melilla Flag",keywords:["ea"],skins:[{unified:"1f1ea-1f1e6",native:"🇪🇦"}],version:2},"flag-ec":{id:"flag-ec",name:"Ecuador Flag",keywords:["ec","nation","country","banner"],skins:[{unified:"1f1ea-1f1e8",native:"🇪🇨"}],version:2},"flag-ee":{id:"flag-ee",name:"Estonia Flag",keywords:["ee","nation","country","banner"],skins:[{unified:"1f1ea-1f1ea",native:"🇪🇪"}],version:2},"flag-eg":{id:"flag-eg",name:"Egypt Flag",keywords:["eg","nation","country","banner"],skins:[{unified:"1f1ea-1f1ec",native:"🇪🇬"}],version:2},"flag-eh":{id:"flag-eh",name:"Western Sahara Flag",keywords:["eh","nation","country","banner"],skins:[{unified:"1f1ea-1f1ed",native:"🇪🇭"}],version:2},"flag-er":{id:"flag-er",name:"Eritrea Flag",keywords:["er","nation","country","banner"],skins:[{unified:"1f1ea-1f1f7",native:"🇪🇷"}],version:2},es:{id:"es",name:"Spain Flag",keywords:["es","nation","country","banner"],skins:[{unified:"1f1ea-1f1f8",native:"🇪🇸"}],version:1},"flag-et":{id:"flag-et",name:"Ethiopia Flag",keywords:["et","nation","country","banner"],skins:[{unified:"1f1ea-1f1f9",native:"🇪🇹"}],version:2},"flag-eu":{id:"flag-eu",name:"European Union Flag",keywords:["eu","banner"],skins:[{unified:"1f1ea-1f1fa",native:"🇪🇺"}],version:2},"flag-fi":{id:"flag-fi",name:"Finland Flag",keywords:["fi","nation","country","banner"],skins:[{unified:"1f1eb-1f1ee",native:"🇫🇮"}],version:2},"flag-fj":{id:"flag-fj",name:"Fiji Flag",keywords:["fj","nation","country","banner"],skins:[{unified:"1f1eb-1f1ef",native:"🇫🇯"}],version:2},"flag-fk":{id:"flag-fk",name:"Falkland Islands Flag",keywords:["fk","malvinas","nation","country","banner"],skins:[{unified:"1f1eb-1f1f0",native:"🇫🇰"}],version:2},"flag-fm":{id:"flag-fm",name:"Micronesia Flag",keywords:["fm","federated","states","nation","country","banner"],skins:[{unified:"1f1eb-1f1f2",native:"🇫🇲"}],version:2},"flag-fo":{id:"flag-fo",name:"Faroe Islands Flag",keywords:["fo","nation","country","banner"],skins:[{unified:"1f1eb-1f1f4",native:"🇫🇴"}],version:2},fr:{id:"fr",name:"France Flag",keywords:["fr","banner","nation","french","country"],skins:[{unified:"1f1eb-1f1f7",native:"🇫🇷"}],version:1},"flag-ga":{id:"flag-ga",name:"Gabon Flag",keywords:["ga","nation","country","banner"],skins:[{unified:"1f1ec-1f1e6",native:"🇬🇦"}],version:2},gb:{id:"gb",name:"United Kingdom Flag",keywords:["gb","uk","great","britain","northern","ireland","nation","country","banner","british","UK","english","england","union","jack"],skins:[{unified:"1f1ec-1f1e7",native:"🇬🇧"}],version:1},"flag-gd":{id:"flag-gd",name:"Grenada Flag",keywords:["gd","nation","country","banner"],skins:[{unified:"1f1ec-1f1e9",native:"🇬🇩"}],version:2},"flag-ge":{id:"flag-ge",name:"Georgia Flag",keywords:["ge","nation","country","banner"],skins:[{unified:"1f1ec-1f1ea",native:"🇬🇪"}],version:2},"flag-gf":{id:"flag-gf",name:"French Guiana Flag",keywords:["gf","nation","country","banner"],skins:[{unified:"1f1ec-1f1eb",native:"🇬🇫"}],version:2},"flag-gg":{id:"flag-gg",name:"Guernsey Flag",keywords:["gg","nation","country","banner"],skins:[{unified:"1f1ec-1f1ec",native:"🇬🇬"}],version:2},"flag-gh":{id:"flag-gh",name:"Ghana Flag",keywords:["gh","nation","country","banner"],skins:[{unified:"1f1ec-1f1ed",native:"🇬🇭"}],version:2},"flag-gi":{id:"flag-gi",name:"Gibraltar Flag",keywords:["gi","nation","country","banner"],skins:[{unified:"1f1ec-1f1ee",native:"🇬🇮"}],version:2},"flag-gl":{id:"flag-gl",name:"Greenland Flag",keywords:["gl","nation","country","banner"],skins:[{unified:"1f1ec-1f1f1",native:"🇬🇱"}],version:2},"flag-gm":{id:"flag-gm",name:"Gambia Flag",keywords:["gm","nation","country","banner"],skins:[{unified:"1f1ec-1f1f2",native:"🇬🇲"}],version:2},"flag-gn":{id:"flag-gn",name:"Guinea Flag",keywords:["gn","nation","country","banner"],skins:[{unified:"1f1ec-1f1f3",native:"🇬🇳"}],version:2},"flag-gp":{id:"flag-gp",name:"Guadeloupe Flag",keywords:["gp","nation","country","banner"],skins:[{unified:"1f1ec-1f1f5",native:"🇬🇵"}],version:2},"flag-gq":{id:"flag-gq",name:"Equatorial Guinea Flag",keywords:["gq","gn","nation","country","banner"],skins:[{unified:"1f1ec-1f1f6",native:"🇬🇶"}],version:2},"flag-gr":{id:"flag-gr",name:"Greece Flag",keywords:["gr","nation","country","banner"],skins:[{unified:"1f1ec-1f1f7",native:"🇬🇷"}],version:2},"flag-gs":{id:"flag-gs",name:"South Georgia & South Sandwich Islands Flag",keywords:["gs","nation","country","banner"],skins:[{unified:"1f1ec-1f1f8",native:"🇬🇸"}],version:2},"flag-gt":{id:"flag-gt",name:"Guatemala Flag",keywords:["gt","nation","country","banner"],skins:[{unified:"1f1ec-1f1f9",native:"🇬🇹"}],version:2},"flag-gu":{id:"flag-gu",name:"Guam Flag",keywords:["gu","nation","country","banner"],skins:[{unified:"1f1ec-1f1fa",native:"🇬🇺"}],version:2},"flag-gw":{id:"flag-gw",name:"Guinea-Bissau Flag",keywords:["gw","guinea","bissau","nation","country","banner"],skins:[{unified:"1f1ec-1f1fc",native:"🇬🇼"}],version:2},"flag-gy":{id:"flag-gy",name:"Guyana Flag",keywords:["gy","nation","country","banner"],skins:[{unified:"1f1ec-1f1fe",native:"🇬🇾"}],version:2},"flag-hk":{id:"flag-hk",name:"Hong Kong Sar China Flag",keywords:["hk","nation","country","banner"],skins:[{unified:"1f1ed-1f1f0",native:"🇭🇰"}],version:2},"flag-hm":{id:"flag-hm",name:"Heard & Mcdonald Islands Flag",keywords:["hm"],skins:[{unified:"1f1ed-1f1f2",native:"🇭🇲"}],version:2},"flag-hn":{id:"flag-hn",name:"Honduras Flag",keywords:["hn","nation","country","banner"],skins:[{unified:"1f1ed-1f1f3",native:"🇭🇳"}],version:2},"flag-hr":{id:"flag-hr",name:"Croatia Flag",keywords:["hr","nation","country","banner"],skins:[{unified:"1f1ed-1f1f7",native:"🇭🇷"}],version:2},"flag-ht":{id:"flag-ht",name:"Haiti Flag",keywords:["ht","nation","country","banner"],skins:[{unified:"1f1ed-1f1f9",native:"🇭🇹"}],version:2},"flag-hu":{id:"flag-hu",name:"Hungary Flag",keywords:["hu","nation","country","banner"],skins:[{unified:"1f1ed-1f1fa",native:"🇭🇺"}],version:2},"flag-ic":{id:"flag-ic",name:"Canary Islands Flag",keywords:["ic","nation","country","banner"],skins:[{unified:"1f1ee-1f1e8",native:"🇮🇨"}],version:2},"flag-id":{id:"flag-id",name:"Indonesia Flag",keywords:["id","nation","country","banner"],skins:[{unified:"1f1ee-1f1e9",native:"🇮🇩"}],version:2},"flag-ie":{id:"flag-ie",name:"Ireland Flag",keywords:["ie","nation","country","banner"],skins:[{unified:"1f1ee-1f1ea",native:"🇮🇪"}],version:2},"flag-il":{id:"flag-il",name:"Israel Flag",keywords:["il","nation","country","banner"],skins:[{unified:"1f1ee-1f1f1",native:"🇮🇱"}],version:2},"flag-im":{id:"flag-im",name:"Isle of Man Flag",keywords:["im","nation","country","banner"],skins:[{unified:"1f1ee-1f1f2",native:"🇮🇲"}],version:2},"flag-in":{id:"flag-in",name:"India Flag",keywords:["in","nation","country","banner"],skins:[{unified:"1f1ee-1f1f3",native:"🇮🇳"}],version:2},"flag-io":{id:"flag-io",name:"British Indian Ocean Territory Flag",keywords:["io","nation","country","banner"],skins:[{unified:"1f1ee-1f1f4",native:"🇮🇴"}],version:2},"flag-iq":{id:"flag-iq",name:"Iraq Flag",keywords:["iq","nation","country","banner"],skins:[{unified:"1f1ee-1f1f6",native:"🇮🇶"}],version:2},"flag-ir":{id:"flag-ir",name:"Iran Flag",keywords:["ir","islamic","republic","nation","country","banner"],skins:[{unified:"1f1ee-1f1f7",native:"🇮🇷"}],version:2},"flag-is":{id:"flag-is",name:"Iceland Flag",keywords:["is","nation","country","banner"],skins:[{unified:"1f1ee-1f1f8",native:"🇮🇸"}],version:2},it:{id:"it",name:"Italy Flag",keywords:["it","nation","country","banner"],skins:[{unified:"1f1ee-1f1f9",native:"🇮🇹"}],version:1},"flag-je":{id:"flag-je",name:"Jersey Flag",keywords:["je","nation","country","banner"],skins:[{unified:"1f1ef-1f1ea",native:"🇯🇪"}],version:2},"flag-jm":{id:"flag-jm",name:"Jamaica Flag",keywords:["jm","nation","country","banner"],skins:[{unified:"1f1ef-1f1f2",native:"🇯🇲"}],version:2},"flag-jo":{id:"flag-jo",name:"Jordan Flag",keywords:["jo","nation","country","banner"],skins:[{unified:"1f1ef-1f1f4",native:"🇯🇴"}],version:2},jp:{id:"jp",name:"Japan Flag",keywords:["jp","japanese","nation","country","banner","ja"],skins:[{unified:"1f1ef-1f1f5",native:"🇯🇵"}],version:1},"flag-ke":{id:"flag-ke",name:"Kenya Flag",keywords:["ke","nation","country","banner"],skins:[{unified:"1f1f0-1f1ea",native:"🇰🇪"}],version:2},"flag-kg":{id:"flag-kg",name:"Kyrgyzstan Flag",keywords:["kg","nation","country","banner"],skins:[{unified:"1f1f0-1f1ec",native:"🇰🇬"}],version:2},"flag-kh":{id:"flag-kh",name:"Cambodia Flag",keywords:["kh","nation","country","banner"],skins:[{unified:"1f1f0-1f1ed",native:"🇰🇭"}],version:2},"flag-ki":{id:"flag-ki",name:"Kiribati Flag",keywords:["ki","nation","country","banner"],skins:[{unified:"1f1f0-1f1ee",native:"🇰🇮"}],version:2},"flag-km":{id:"flag-km",name:"Comoros Flag",keywords:["km","nation","country","banner"],skins:[{unified:"1f1f0-1f1f2",native:"🇰🇲"}],version:2},"flag-kn":{id:"flag-kn",name:"St. Kitts & Nevis Flag",keywords:["kn","st","saint","nation","country","banner"],skins:[{unified:"1f1f0-1f1f3",native:"🇰🇳"}],version:2},"flag-kp":{id:"flag-kp",name:"North Korea Flag",keywords:["kp","nation","country","banner"],skins:[{unified:"1f1f0-1f1f5",native:"🇰🇵"}],version:2},kr:{id:"kr",name:"South Korea Flag",keywords:["kr","nation","country","banner"],skins:[{unified:"1f1f0-1f1f7",native:"🇰🇷"}],version:1},"flag-kw":{id:"flag-kw",name:"Kuwait Flag",keywords:["kw","nation","country","banner"],skins:[{unified:"1f1f0-1f1fc",native:"🇰🇼"}],version:2},"flag-ky":{id:"flag-ky",name:"Cayman Islands Flag",keywords:["ky","nation","country","banner"],skins:[{unified:"1f1f0-1f1fe",native:"🇰🇾"}],version:2},"flag-kz":{id:"flag-kz",name:"Kazakhstan Flag",keywords:["kz","nation","country","banner"],skins:[{unified:"1f1f0-1f1ff",native:"🇰🇿"}],version:2},"flag-la":{id:"flag-la",name:"Laos Flag",keywords:["la","lao","democratic","republic","nation","country","banner"],skins:[{unified:"1f1f1-1f1e6",native:"🇱🇦"}],version:2},"flag-lb":{id:"flag-lb",name:"Lebanon Flag",keywords:["lb","nation","country","banner"],skins:[{unified:"1f1f1-1f1e7",native:"🇱🇧"}],version:2},"flag-lc":{id:"flag-lc",name:"St. Lucia Flag",keywords:["lc","st","saint","nation","country","banner"],skins:[{unified:"1f1f1-1f1e8",native:"🇱🇨"}],version:2},"flag-li":{id:"flag-li",name:"Liechtenstein Flag",keywords:["li","nation","country","banner"],skins:[{unified:"1f1f1-1f1ee",native:"🇱🇮"}],version:2},"flag-lk":{id:"flag-lk",name:"Sri Lanka Flag",keywords:["lk","nation","country","banner"],skins:[{unified:"1f1f1-1f1f0",native:"🇱🇰"}],version:2},"flag-lr":{id:"flag-lr",name:"Liberia Flag",keywords:["lr","nation","country","banner"],skins:[{unified:"1f1f1-1f1f7",native:"🇱🇷"}],version:2},"flag-ls":{id:"flag-ls",name:"Lesotho Flag",keywords:["ls","nation","country","banner"],skins:[{unified:"1f1f1-1f1f8",native:"🇱🇸"}],version:2},"flag-lt":{id:"flag-lt",name:"Lithuania Flag",keywords:["lt","nation","country","banner"],skins:[{unified:"1f1f1-1f1f9",native:"🇱🇹"}],version:2},"flag-lu":{id:"flag-lu",name:"Luxembourg Flag",keywords:["lu","nation","country","banner"],skins:[{unified:"1f1f1-1f1fa",native:"🇱🇺"}],version:2},"flag-lv":{id:"flag-lv",name:"Latvia Flag",keywords:["lv","nation","country","banner"],skins:[{unified:"1f1f1-1f1fb",native:"🇱🇻"}],version:2},"flag-ly":{id:"flag-ly",name:"Libya Flag",keywords:["ly","nation","country","banner"],skins:[{unified:"1f1f1-1f1fe",native:"🇱🇾"}],version:2},"flag-ma":{id:"flag-ma",name:"Morocco Flag",keywords:["ma","nation","country","banner"],skins:[{unified:"1f1f2-1f1e6",native:"🇲🇦"}],version:2},"flag-mc":{id:"flag-mc",name:"Monaco Flag",keywords:["mc","nation","country","banner"],skins:[{unified:"1f1f2-1f1e8",native:"🇲🇨"}],version:2},"flag-md":{id:"flag-md",name:"Moldova Flag",keywords:["md","republic","nation","country","banner"],skins:[{unified:"1f1f2-1f1e9",native:"🇲🇩"}],version:2},"flag-me":{id:"flag-me",name:"Montenegro Flag",keywords:["me","nation","country","banner"],skins:[{unified:"1f1f2-1f1ea",native:"🇲🇪"}],version:2},"flag-mf":{id:"flag-mf",name:"St. Martin Flag",keywords:["mf","st"],skins:[{unified:"1f1f2-1f1eb",native:"🇲🇫"}],version:2},"flag-mg":{id:"flag-mg",name:"Madagascar Flag",keywords:["mg","nation","country","banner"],skins:[{unified:"1f1f2-1f1ec",native:"🇲🇬"}],version:2},"flag-mh":{id:"flag-mh",name:"Marshall Islands Flag",keywords:["mh","nation","country","banner"],skins:[{unified:"1f1f2-1f1ed",native:"🇲🇭"}],version:2},"flag-mk":{id:"flag-mk",name:"North Macedonia Flag",keywords:["mk","nation","country","banner"],skins:[{unified:"1f1f2-1f1f0",native:"🇲🇰"}],version:2},"flag-ml":{id:"flag-ml",name:"Mali Flag",keywords:["ml","nation","country","banner"],skins:[{unified:"1f1f2-1f1f1",native:"🇲🇱"}],version:2},"flag-mm":{id:"flag-mm",name:"Myanmar (burma) Flag",keywords:["mm","nation","country","banner"],skins:[{unified:"1f1f2-1f1f2",native:"🇲🇲"}],version:2},"flag-mn":{id:"flag-mn",name:"Mongolia Flag",keywords:["mn","nation","country","banner"],skins:[{unified:"1f1f2-1f1f3",native:"🇲🇳"}],version:2},"flag-mo":{id:"flag-mo",name:"Macao Sar China Flag",keywords:["mo","nation","country","banner"],skins:[{unified:"1f1f2-1f1f4",native:"🇲🇴"}],version:2},"flag-mp":{id:"flag-mp",name:"Northern Mariana Islands Flag",keywords:["mp","nation","country","banner"],skins:[{unified:"1f1f2-1f1f5",native:"🇲🇵"}],version:2},"flag-mq":{id:"flag-mq",name:"Martinique Flag",keywords:["mq","nation","country","banner"],skins:[{unified:"1f1f2-1f1f6",native:"🇲🇶"}],version:2},"flag-mr":{id:"flag-mr",name:"Mauritania Flag",keywords:["mr","nation","country","banner"],skins:[{unified:"1f1f2-1f1f7",native:"🇲🇷"}],version:2},"flag-ms":{id:"flag-ms",name:"Montserrat Flag",keywords:["ms","nation","country","banner"],skins:[{unified:"1f1f2-1f1f8",native:"🇲🇸"}],version:2},"flag-mt":{id:"flag-mt",name:"Malta Flag",keywords:["mt","nation","country","banner"],skins:[{unified:"1f1f2-1f1f9",native:"🇲🇹"}],version:2},"flag-mu":{id:"flag-mu",name:"Mauritius Flag",keywords:["mu","nation","country","banner"],skins:[{unified:"1f1f2-1f1fa",native:"🇲🇺"}],version:2},"flag-mv":{id:"flag-mv",name:"Maldives Flag",keywords:["mv","nation","country","banner"],skins:[{unified:"1f1f2-1f1fb",native:"🇲🇻"}],version:2},"flag-mw":{id:"flag-mw",name:"Malawi Flag",keywords:["mw","nation","country","banner"],skins:[{unified:"1f1f2-1f1fc",native:"🇲🇼"}],version:2},"flag-mx":{id:"flag-mx",name:"Mexico Flag",keywords:["mx","nation","country","banner"],skins:[{unified:"1f1f2-1f1fd",native:"🇲🇽"}],version:2},"flag-my":{id:"flag-my",name:"Malaysia Flag",keywords:["my","nation","country","banner"],skins:[{unified:"1f1f2-1f1fe",native:"🇲🇾"}],version:2},"flag-mz":{id:"flag-mz",name:"Mozambique Flag",keywords:["mz","nation","country","banner"],skins:[{unified:"1f1f2-1f1ff",native:"🇲🇿"}],version:2},"flag-na":{id:"flag-na",name:"Namibia Flag",keywords:["na","nation","country","banner"],skins:[{unified:"1f1f3-1f1e6",native:"🇳🇦"}],version:2},"flag-nc":{id:"flag-nc",name:"New Caledonia Flag",keywords:["nc","nation","country","banner"],skins:[{unified:"1f1f3-1f1e8",native:"🇳🇨"}],version:2},"flag-ne":{id:"flag-ne",name:"Niger Flag",keywords:["ne","nation","country","banner"],skins:[{unified:"1f1f3-1f1ea",native:"🇳🇪"}],version:2},"flag-nf":{id:"flag-nf",name:"Norfolk Island Flag",keywords:["nf","nation","country","banner"],skins:[{unified:"1f1f3-1f1eb",native:"🇳🇫"}],version:2},"flag-ng":{id:"flag-ng",name:"Nigeria Flag",keywords:["ng","nation","country","banner"],skins:[{unified:"1f1f3-1f1ec",native:"🇳🇬"}],version:2},"flag-ni":{id:"flag-ni",name:"Nicaragua Flag",keywords:["ni","nation","country","banner"],skins:[{unified:"1f1f3-1f1ee",native:"🇳🇮"}],version:2},"flag-nl":{id:"flag-nl",name:"Netherlands Flag",keywords:["nl","nation","country","banner"],skins:[{unified:"1f1f3-1f1f1",native:"🇳🇱"}],version:2},"flag-no":{id:"flag-no",name:"Norway Flag",keywords:["no","nation","country","banner"],skins:[{unified:"1f1f3-1f1f4",native:"🇳🇴"}],version:2},"flag-np":{id:"flag-np",name:"Nepal Flag",keywords:["np","nation","country","banner"],skins:[{unified:"1f1f3-1f1f5",native:"🇳🇵"}],version:2},"flag-nr":{id:"flag-nr",name:"Nauru Flag",keywords:["nr","nation","country","banner"],skins:[{unified:"1f1f3-1f1f7",native:"🇳🇷"}],version:2},"flag-nu":{id:"flag-nu",name:"Niue Flag",keywords:["nu","nation","country","banner"],skins:[{unified:"1f1f3-1f1fa",native:"🇳🇺"}],version:2},"flag-nz":{id:"flag-nz",name:"New Zealand Flag",keywords:["nz","nation","country","banner"],skins:[{unified:"1f1f3-1f1ff",native:"🇳🇿"}],version:2},"flag-om":{id:"flag-om",name:"Oman Flag",keywords:["om","symbol","nation","country","banner"],skins:[{unified:"1f1f4-1f1f2",native:"🇴🇲"}],version:2},"flag-pa":{id:"flag-pa",name:"Panama Flag",keywords:["pa","nation","country","banner"],skins:[{unified:"1f1f5-1f1e6",native:"🇵🇦"}],version:2},"flag-pe":{id:"flag-pe",name:"Peru Flag",keywords:["pe","nation","country","banner"],skins:[{unified:"1f1f5-1f1ea",native:"🇵🇪"}],version:2},"flag-pf":{id:"flag-pf",name:"French Polynesia Flag",keywords:["pf","nation","country","banner"],skins:[{unified:"1f1f5-1f1eb",native:"🇵🇫"}],version:2},"flag-pg":{id:"flag-pg",name:"Papua New Guinea Flag",keywords:["pg","nation","country","banner"],skins:[{unified:"1f1f5-1f1ec",native:"🇵🇬"}],version:2},"flag-ph":{id:"flag-ph",name:"Philippines Flag",keywords:["ph","nation","country","banner"],skins:[{unified:"1f1f5-1f1ed",native:"🇵🇭"}],version:2},"flag-pk":{id:"flag-pk",name:"Pakistan Flag",keywords:["pk","nation","country","banner"],skins:[{unified:"1f1f5-1f1f0",native:"🇵🇰"}],version:2},"flag-pl":{id:"flag-pl",name:"Poland Flag",keywords:["pl","nation","country","banner"],skins:[{unified:"1f1f5-1f1f1",native:"🇵🇱"}],version:2},"flag-pm":{id:"flag-pm",name:"St. Pierre & Miquelon Flag",keywords:["pm","st","saint","nation","country","banner"],skins:[{unified:"1f1f5-1f1f2",native:"🇵🇲"}],version:2},"flag-pn":{id:"flag-pn",name:"Pitcairn Islands Flag",keywords:["pn","nation","country","banner"],skins:[{unified:"1f1f5-1f1f3",native:"🇵🇳"}],version:2},"flag-pr":{id:"flag-pr",name:"Puerto Rico Flag",keywords:["pr","nation","country","banner"],skins:[{unified:"1f1f5-1f1f7",native:"🇵🇷"}],version:2},"flag-ps":{id:"flag-ps",name:"Palestinian Territories Flag",keywords:["ps","palestine","nation","country","banner"],skins:[{unified:"1f1f5-1f1f8",native:"🇵🇸"}],version:2},"flag-pt":{id:"flag-pt",name:"Portugal Flag",keywords:["pt","nation","country","banner"],skins:[{unified:"1f1f5-1f1f9",native:"🇵🇹"}],version:2},"flag-pw":{id:"flag-pw",name:"Palau Flag",keywords:["pw","nation","country","banner"],skins:[{unified:"1f1f5-1f1fc",native:"🇵🇼"}],version:2},"flag-py":{id:"flag-py",name:"Paraguay Flag",keywords:["py","nation","country","banner"],skins:[{unified:"1f1f5-1f1fe",native:"🇵🇾"}],version:2},"flag-qa":{id:"flag-qa",name:"Qatar Flag",keywords:["qa","nation","country","banner"],skins:[{unified:"1f1f6-1f1e6",native:"🇶🇦"}],version:2},"flag-re":{id:"flag-re",name:"Réunion Flag",keywords:["re","reunion","nation","country","banner"],skins:[{unified:"1f1f7-1f1ea",native:"🇷🇪"}],version:2},"flag-ro":{id:"flag-ro",name:"Romania Flag",keywords:["ro","nation","country","banner"],skins:[{unified:"1f1f7-1f1f4",native:"🇷🇴"}],version:2},"flag-rs":{id:"flag-rs",name:"Serbia Flag",keywords:["rs","nation","country","banner"],skins:[{unified:"1f1f7-1f1f8",native:"🇷🇸"}],version:2},ru:{id:"ru",name:"Russia Flag",keywords:["ru","russian","federation","nation","country","banner"],skins:[{unified:"1f1f7-1f1fa",native:"🇷🇺"}],version:1},"flag-rw":{id:"flag-rw",name:"Rwanda Flag",keywords:["rw","nation","country","banner"],skins:[{unified:"1f1f7-1f1fc",native:"🇷🇼"}],version:2},"flag-sa":{id:"flag-sa",name:"Saudi Arabia Flag",keywords:["sa","nation","country","banner"],skins:[{unified:"1f1f8-1f1e6",native:"🇸🇦"}],version:2},"flag-sb":{id:"flag-sb",name:"Solomon Islands Flag",keywords:["sb","nation","country","banner"],skins:[{unified:"1f1f8-1f1e7",native:"🇸🇧"}],version:2},"flag-sc":{id:"flag-sc",name:"Seychelles Flag",keywords:["sc","nation","country","banner"],skins:[{unified:"1f1f8-1f1e8",native:"🇸🇨"}],version:2},"flag-sd":{id:"flag-sd",name:"Sudan Flag",keywords:["sd","nation","country","banner"],skins:[{unified:"1f1f8-1f1e9",native:"🇸🇩"}],version:2},"flag-se":{id:"flag-se",name:"Sweden Flag",keywords:["se","nation","country","banner"],skins:[{unified:"1f1f8-1f1ea",native:"🇸🇪"}],version:2},"flag-sg":{id:"flag-sg",name:"Singapore Flag",keywords:["sg","nation","country","banner"],skins:[{unified:"1f1f8-1f1ec",native:"🇸🇬"}],version:2},"flag-sh":{id:"flag-sh",name:"St. Helena Flag",keywords:["sh","st","saint","ascension","tristan","cunha","nation","country","banner"],skins:[{unified:"1f1f8-1f1ed",native:"🇸🇭"}],version:2},"flag-si":{id:"flag-si",name:"Slovenia Flag",keywords:["si","nation","country","banner"],skins:[{unified:"1f1f8-1f1ee",native:"🇸🇮"}],version:2},"flag-sj":{id:"flag-sj",name:"Svalbard & Jan Mayen Flag",keywords:["sj"],skins:[{unified:"1f1f8-1f1ef",native:"🇸🇯"}],version:2},"flag-sk":{id:"flag-sk",name:"Slovakia Flag",keywords:["sk","nation","country","banner"],skins:[{unified:"1f1f8-1f1f0",native:"🇸🇰"}],version:2},"flag-sl":{id:"flag-sl",name:"Sierra Leone Flag",keywords:["sl","nation","country","banner"],skins:[{unified:"1f1f8-1f1f1",native:"🇸🇱"}],version:2},"flag-sm":{id:"flag-sm",name:"San Marino Flag",keywords:["sm","nation","country","banner"],skins:[{unified:"1f1f8-1f1f2",native:"🇸🇲"}],version:2},"flag-sn":{id:"flag-sn",name:"Senegal Flag",keywords:["sn","nation","country","banner"],skins:[{unified:"1f1f8-1f1f3",native:"🇸🇳"}],version:2},"flag-so":{id:"flag-so",name:"Somalia Flag",keywords:["so","nation","country","banner"],skins:[{unified:"1f1f8-1f1f4",native:"🇸🇴"}],version:2},"flag-sr":{id:"flag-sr",name:"Suriname Flag",keywords:["sr","nation","country","banner"],skins:[{unified:"1f1f8-1f1f7",native:"🇸🇷"}],version:2},"flag-ss":{id:"flag-ss",name:"South Sudan Flag",keywords:["ss","sd","nation","country","banner"],skins:[{unified:"1f1f8-1f1f8",native:"🇸🇸"}],version:2},"flag-st":{id:"flag-st",name:"São Tomé & Príncipe Flag",keywords:["st","sao","tome","principe","nation","country","banner"],skins:[{unified:"1f1f8-1f1f9",native:"🇸🇹"}],version:2},"flag-sv":{id:"flag-sv",name:"El Salvador Flag",keywords:["sv","nation","country","banner"],skins:[{unified:"1f1f8-1f1fb",native:"🇸🇻"}],version:2},"flag-sx":{id:"flag-sx",name:"Sint Maarten Flag",keywords:["sx","dutch","nation","country","banner"],skins:[{unified:"1f1f8-1f1fd",native:"🇸🇽"}],version:2},"flag-sy":{id:"flag-sy",name:"Syria Flag",keywords:["sy","syrian","arab","republic","nation","country","banner"],skins:[{unified:"1f1f8-1f1fe",native:"🇸🇾"}],version:2},"flag-sz":{id:"flag-sz",name:"Eswatini Flag",keywords:["sz","nation","country","banner"],skins:[{unified:"1f1f8-1f1ff",native:"🇸🇿"}],version:2},"flag-ta":{id:"flag-ta",name:"Tristan Da Cunha Flag",keywords:["ta"],skins:[{unified:"1f1f9-1f1e6",native:"🇹🇦"}],version:2},"flag-tc":{id:"flag-tc",name:"Turks & Caicos Islands Flag",keywords:["tc","nation","country","banner"],skins:[{unified:"1f1f9-1f1e8",native:"🇹🇨"}],version:2},"flag-td":{id:"flag-td",name:"Chad Flag",keywords:["td","nation","country","banner"],skins:[{unified:"1f1f9-1f1e9",native:"🇹🇩"}],version:2},"flag-tf":{id:"flag-tf",name:"French Southern Territories Flag",keywords:["tf","nation","country","banner"],skins:[{unified:"1f1f9-1f1eb",native:"🇹🇫"}],version:2},"flag-tg":{id:"flag-tg",name:"Togo Flag",keywords:["tg","nation","country","banner"],skins:[{unified:"1f1f9-1f1ec",native:"🇹🇬"}],version:2},"flag-th":{id:"flag-th",name:"Thailand Flag",keywords:["th","nation","country","banner"],skins:[{unified:"1f1f9-1f1ed",native:"🇹🇭"}],version:2},"flag-tj":{id:"flag-tj",name:"Tajikistan Flag",keywords:["tj","nation","country","banner"],skins:[{unified:"1f1f9-1f1ef",native:"🇹🇯"}],version:2},"flag-tk":{id:"flag-tk",name:"Tokelau Flag",keywords:["tk","nation","country","banner"],skins:[{unified:"1f1f9-1f1f0",native:"🇹🇰"}],version:2},"flag-tl":{id:"flag-tl",name:"Timor-Leste Flag",keywords:["tl","timor","leste","nation","country","banner"],skins:[{unified:"1f1f9-1f1f1",native:"🇹🇱"}],version:2},"flag-tm":{id:"flag-tm",name:"Turkmenistan Flag",keywords:["tm","nation","country","banner"],skins:[{unified:"1f1f9-1f1f2",native:"🇹🇲"}],version:2},"flag-tn":{id:"flag-tn",name:"Tunisia Flag",keywords:["tn","nation","country","banner"],skins:[{unified:"1f1f9-1f1f3",native:"🇹🇳"}],version:2},"flag-to":{id:"flag-to",name:"Tonga Flag",keywords:["to","nation","country","banner"],skins:[{unified:"1f1f9-1f1f4",native:"🇹🇴"}],version:2},"flag-tr":{id:"flag-tr",name:"Turkey Flag",keywords:["tr","nation","country","banner"],skins:[{unified:"1f1f9-1f1f7",native:"🇹🇷"}],version:2},"flag-tt":{id:"flag-tt",name:"Trinidad & Tobago Flag",keywords:["tt","nation","country","banner"],skins:[{unified:"1f1f9-1f1f9",native:"🇹🇹"}],version:2},"flag-tv":{id:"flag-tv",name:"Tuvalu Flag",keywords:["tv","nation","country","banner"],skins:[{unified:"1f1f9-1f1fb",native:"🇹🇻"}],version:2},"flag-tw":{id:"flag-tw",name:"Taiwan Flag",keywords:["tw","nation","country","banner"],skins:[{unified:"1f1f9-1f1fc",native:"🇹🇼"}],version:2},"flag-tz":{id:"flag-tz",name:"Tanzania Flag",keywords:["tz","united","republic","nation","country","banner"],skins:[{unified:"1f1f9-1f1ff",native:"🇹🇿"}],version:2},"flag-ua":{id:"flag-ua",name:"Ukraine Flag",keywords:["ua","nation","country","banner"],skins:[{unified:"1f1fa-1f1e6",native:"🇺🇦"}],version:2},"flag-ug":{id:"flag-ug",name:"Uganda Flag",keywords:["ug","nation","country","banner"],skins:[{unified:"1f1fa-1f1ec",native:"🇺🇬"}],version:2},"flag-um":{id:"flag-um",name:"U.s. Outlying Islands Flag",keywords:["um","u","s"],skins:[{unified:"1f1fa-1f1f2",native:"🇺🇲"}],version:2},"flag-un":{id:"flag-un",name:"United Nations Flag",keywords:["un","banner"],skins:[{unified:"1f1fa-1f1f3",native:"🇺🇳"}],version:4},us:{id:"us",name:"United States Flag",keywords:["us","america","nation","country","banner"],skins:[{unified:"1f1fa-1f1f8",native:"🇺🇸"}],version:1},"flag-uy":{id:"flag-uy",name:"Uruguay Flag",keywords:["uy","nation","country","banner"],skins:[{unified:"1f1fa-1f1fe",native:"🇺🇾"}],version:2},"flag-uz":{id:"flag-uz",name:"Uzbekistan Flag",keywords:["uz","nation","country","banner"],skins:[{unified:"1f1fa-1f1ff",native:"🇺🇿"}],version:2},"flag-va":{id:"flag-va",name:"Vatican City Flag",keywords:["va","nation","country","banner"],skins:[{unified:"1f1fb-1f1e6",native:"🇻🇦"}],version:2},"flag-vc":{id:"flag-vc",name:"St. Vincent & Grenadines Flag",keywords:["vc","st","saint","nation","country","banner"],skins:[{unified:"1f1fb-1f1e8",native:"🇻🇨"}],version:2},"flag-ve":{id:"flag-ve",name:"Venezuela Flag",keywords:["ve","bolivarian","republic","nation","country","banner"],skins:[{unified:"1f1fb-1f1ea",native:"🇻🇪"}],version:2},"flag-vg":{id:"flag-vg",name:"British Virgin Islands Flag",keywords:["vg","bvi","nation","country","banner"],skins:[{unified:"1f1fb-1f1ec",native:"🇻🇬"}],version:2},"flag-vi":{id:"flag-vi",name:"U.s. Virgin Islands Flag",keywords:["vi","u","s","us","nation","country","banner"],skins:[{unified:"1f1fb-1f1ee",native:"🇻🇮"}],version:2},"flag-vn":{id:"flag-vn",name:"Vietnam Flag",keywords:["vn","viet","nam","nation","country","banner"],skins:[{unified:"1f1fb-1f1f3",native:"🇻🇳"}],version:2},"flag-vu":{id:"flag-vu",name:"Vanuatu Flag",keywords:["vu","nation","country","banner"],skins:[{unified:"1f1fb-1f1fa",native:"🇻🇺"}],version:2},"flag-wf":{id:"flag-wf",name:"Wallis & Futuna Flag",keywords:["wf","nation","country","banner"],skins:[{unified:"1f1fc-1f1eb",native:"🇼🇫"}],version:2},"flag-ws":{id:"flag-ws",name:"Samoa Flag",keywords:["ws","nation","country","banner"],skins:[{unified:"1f1fc-1f1f8",native:"🇼🇸"}],version:2},"flag-xk":{id:"flag-xk",name:"Kosovo Flag",keywords:["xk","nation","country","banner"],skins:[{unified:"1f1fd-1f1f0",native:"🇽🇰"}],version:2},"flag-ye":{id:"flag-ye",name:"Yemen Flag",keywords:["ye","nation","country","banner"],skins:[{unified:"1f1fe-1f1ea",native:"🇾🇪"}],version:2},"flag-yt":{id:"flag-yt",name:"Mayotte Flag",keywords:["yt","nation","country","banner"],skins:[{unified:"1f1fe-1f1f9",native:"🇾🇹"}],version:2},"flag-za":{id:"flag-za",name:"South Africa Flag",keywords:["za","nation","country","banner"],skins:[{unified:"1f1ff-1f1e6",native:"🇿🇦"}],version:2},"flag-zm":{id:"flag-zm",name:"Zambia Flag",keywords:["zm","nation","country","banner"],skins:[{unified:"1f1ff-1f1f2",native:"🇿🇲"}],version:2},"flag-zw":{id:"flag-zw",name:"Zimbabwe Flag",keywords:["zw","nation","country","banner"],skins:[{unified:"1f1ff-1f1fc",native:"🇿🇼"}],version:2},"flag-england":{id:"flag-england",name:"England Flag",keywords:["english"],skins:[{unified:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",native:"🏴"}],version:5},"flag-scotland":{id:"flag-scotland",name:"Scotland Flag",keywords:["scottish"],skins:[{unified:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",native:"🏴"}],version:5},"flag-wales":{id:"flag-wales",name:"Wales Flag",keywords:["welsh"],skins:[{unified:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",native:"🏴"}],version:5}},aliases:{satisfied:"laughing",grinning_face_with_star_eyes:"star-struck",grinning_face_with_one_large_and_one_small_eye:"zany_face",smiling_face_with_smiling_eyes_and_hand_covering_mouth:"face_with_hand_over_mouth",face_with_finger_covering_closed_lips:"shushing_face",face_with_one_eyebrow_raised:"face_with_raised_eyebrow",face_with_open_mouth_vomiting:"face_vomiting",shocked_face_with_exploding_head:"exploding_head",serious_face_with_symbols_covering_mouth:"face_with_symbols_on_mouth",poop:"hankey",shit:"hankey",collision:"boom",raised_hand:"hand",hand_with_index_and_middle_fingers_crossed:"crossed_fingers",sign_of_the_horns:"the_horns",reversed_hand_with_middle_finger_extended:"middle_finger",thumbsup:"+1",thumbsdown:"-1",punch:"facepunch",mother_christmas:"mrs_claus",running:"runner","man-with-bunny-ears-partying":"men-with-bunny-ears-partying","woman-with-bunny-ears-partying":"women-with-bunny-ears-partying",women_holding_hands:"two_women_holding_hands",woman_and_man_holding_hands:"man_and_woman_holding_hands",couple:"man_and_woman_holding_hands",men_holding_hands:"two_men_holding_hands",paw_prints:"feet",flipper:"dolphin",honeybee:"bee",lady_beetle:"ladybug",cooking:"fried_egg",knife:"hocho",red_car:"car",sailboat:"boat",waxing_gibbous_moon:"moon",sun_small_cloud:"mostly_sunny",sun_behind_cloud:"barely_sunny",sun_behind_rain_cloud:"partly_sunny_rain",lightning_cloud:"lightning",tornado_cloud:"tornado",tshirt:"shirt",shoe:"mans_shoe",telephone:"phone",lantern:"izakaya_lantern",open_book:"book",envelope:"email",pencil:"memo",heavy_exclamation_mark:"exclamation",staff_of_aesculapius:"medical_symbol","flag-cn":"cn","flag-de":"de","flag-es":"es","flag-fr":"fr",uk:"gb","flag-gb":"gb","flag-it":"it","flag-jp":"jp","flag-kr":"kr","flag-ru":"ru","flag-us":"us"},sheet:{cols:61,rows:61}};function ui(t,e={}){window.plausible=window.plausible||function(){(window.plausible.q=window.plausible.q||[]).push(arguments)},window.plausible(t,{props:e}),window.posthog&&window.posthog.capture(t,e)}function SOe(t,{minLength:e=1,maxLength:n=75}){return T.useCallback(i=>{const r="[^"+t+"\\s]",s=new RegExp("["+t+"]((?:"+r+"){0,"+n+"})$").exec(i);if(s!==null){const a=s[1];if(a.length>=e)return{leadOffset:s.index,matchingString:a,replaceableString:s[0]}}return null},[n,e,t])}var xu={},vy={},pF=T;function COe(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let gF=pF.createContext(null);vy.LexicalComposerContext=gF,vy.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e??(n!=null?n.getTheme():null)}}},vy.useLexicalComposerContext=function(){let t=pF.useContext(gF);return t==null&&COe(8),t};var Oe=vy,kC=Oe,Bi=A,zn=T,mF=ut,EOe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?zn.useLayoutEffect:zn.useEffect;let TOe=class{constructor(e){this.key=e,this.ref={current:null},this.setRefElement=this.setRefElement.bind(this)}setRefElement(e){this.ref={current:e}}},vF=t=>{const e=document.getElementById("typeahead-menu");if(e){var n=e.getBoundingClientRect();n.top+n.height>window.innerHeight&&e.scrollIntoView({block:"center"}),0>n.top&&e.scrollIntoView({block:"center"}),t.scrollIntoView({block:"nearest"})}};function $Oe(t){var e=Bi.$getSelection();if(!Bi.$isRangeSelection(e)||!e.isCollapsed())return null;var n=e.anchor;if(n.type!=="text"||(e=n.getNode(),!e.isSimpleText()))return null;n=n.offset;let i=e.getTextContent().slice(0,n);var r=t.matchingString;t=t.replaceableString.length;for(let s=t;s<=r.length;s++)i.substr(-s)===r.substr(0,s)&&(t=s);if(t=n-t,0>t)return null;let o;return t===0?[o]=e.splitText(n):[,o]=e.splitText(t,n),o}function MOe(t,e){let n=getComputedStyle(t),i=n.position==="absolute";if(e=e?/(auto|scroll|hidden)/:/(auto|scroll)/,n.position==="fixed")return document.body;for(;t=t.parentElement;)if(n=getComputedStyle(t),(!i||n.position!=="static")&&e.test(n.overflow+n.overflowY+n.overflowX))return t;return document.body}function bF(t,e){return t=t.getBoundingClientRect(),e=e.getBoundingClientRect(),t.top>e.top&&t.top<e.bottom}function kF(t,e,n,i){let[r]=kC.useLexicalComposerContext();zn.useEffect(()=>{if(e!=null&&t!=null){let o=r.getRootElement(),s=o!=null?MOe(o,!1):document.body,a=!1,l=bF(e,s),u=function(){a||(window.requestAnimationFrame(function(){n(),a=!1}),a=!0);const d=bF(e,s);d!==l&&(l=d,i!=null&&i(d))},f=new ResizeObserver(n);return window.addEventListener("resize",n),document.addEventListener("scroll",u,{capture:!0,passive:!0}),f.observe(e),()=>{f.unobserve(e),window.removeEventListener("resize",n),document.removeEventListener("scroll",u,!0)}}},[e,r,i,n,t])}let yF=Bi.createCommand("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function NOe({close:t,editor:e,anchorElementRef:n,resolution:i,options:r,menuRenderFn:o,onSelectOption:s,shouldSplitNodeWithQuery:a=!1,commandPriority:l=Bi.COMMAND_PRIORITY_LOW}){let[u,f]=zn.useState(null);zn.useEffect(()=>{f(0)},[i.match&&i.match.matchingString]);let d=zn.useCallback(m=>{e.update(()=>{const y=i.match!=null&&a?$Oe(i.match):null;s(m,y,t,i.match?i.match.matchingString:"")})},[e,a,i.match,s,t]),h=zn.useCallback(m=>{const y=e.getRootElement();y!==null&&(y.setAttribute("aria-activedescendant","typeahead-item-"+m),f(m))},[e]);zn.useEffect(()=>()=>{let m=e.getRootElement();m!==null&&m.removeAttribute("aria-activedescendant")},[e]),EOe(()=>{r===null?f(null):u===null&&h(0)},[r,u,h]),zn.useEffect(()=>mF.mergeRegister(e.registerCommand(yF,({option:m})=>m.ref&&m.ref.current!=null?(vF(m.ref.current),!0):!1,l)),[e,h,l]),zn.useEffect(()=>mF.mergeRegister(e.registerCommand(Bi.KEY_ARROW_DOWN_COMMAND,m=>{if(r!==null&&r.length&&u!==null){let y=u!==r.length-1?u+1:0;h(y);let x=r[y];x.ref!=null&&x.ref.current&&e.dispatchCommand(yF,{index:y,option:x}),m.preventDefault(),m.stopImmediatePropagation()}return!0},l),e.registerCommand(Bi.KEY_ARROW_UP_COMMAND,m=>{if(r!==null&&r.length&&u!==null){var y=u!==0?u-1:r.length-1;h(y),y=r[y],y.ref!=null&&y.ref.current&&vF(y.ref.current),m.preventDefault(),m.stopImmediatePropagation()}return!0},l),e.registerCommand(Bi.KEY_ESCAPE_COMMAND,m=>(m.preventDefault(),m.stopImmediatePropagation(),t(),!0),l),e.registerCommand(Bi.KEY_TAB_COMMAND,m=>r===null||u===null||r[u]==null?!1:(m.preventDefault(),m.stopImmediatePropagation(),d(r[u]),!0),l),e.registerCommand(Bi.KEY_ENTER_COMMAND,m=>r===null||u===null||r[u]==null?!1:(m!==null&&(m.preventDefault(),m.stopImmediatePropagation()),d(r[u]),!0),l)),[d,t,e,r,u,h,l]);let g=zn.useMemo(()=>({options:r,selectOptionAndCleanUp:d,selectedIndex:u,setHighlightedIndex:f}),[d,u,r]);return o(n,g,i.match?i.match.matchingString:"")}function AOe(t,e,n,i=document.body){let[r]=kC.useLexicalComposerContext(),o=zn.useRef(document.createElement("div")),s=zn.useCallback(()=>{o.current.style.top=o.current.style.bottom;const l=r.getRootElement(),u=o.current;var f=u.firstChild;if(l!==null&&t!==null){const{left:h,top:g,width:m,height:y}=t.getRect();if(u.style.top=`${g+window.pageYOffset+o.current.offsetHeight+3}px`,u.style.left=`${h+window.pageXOffset}px`,u.style.height=`${y}px`,u.style.width=`${m}px`,f!==null){f.style.top=`${g}`;var d=f.getBoundingClientRect();f=d.height,d=d.width;const x=l.getBoundingClientRect();h+d>x.right&&(u.style.left=`${x.right-d+window.pageXOffset}px`),(g+f>window.innerHeight||g+f>x.bottom)&&g-x.top>f&&(u.style.top=`${g-f+window.pageYOffset-y}px`)}u.isConnected||(n!=null&&(u.className=n),u.setAttribute("aria-label","Typeahead menu"),u.setAttribute("id","typeahead-menu"),u.setAttribute("role","listbox"),u.style.display="block",u.style.position="absolute",i.append(u)),o.current=u,l.setAttribute("aria-controls","typeahead-menu")}},[r,t,n,i]);zn.useEffect(()=>{let l=r.getRootElement();if(t!==null)return s(),()=>{l!==null&&l.removeAttribute("aria-controls");let u=o.current;u!==null&&u.isConnected&&u.remove()}},[r,s,t]);let a=zn.useCallback(l=>{t!==null&&(l||e(null))},[t,e]);return kF(t,o.current,s,a),o}function POe(t,e,n){var i=n.getSelection();if(i===null||!i.isCollapsed||(n=i.anchorNode,i=i.anchorOffset,n==null||i==null))return!1;try{e.setStart(n,t),e.setEnd(n,i)}catch{return!1}return!0}function DOe(t){let e=null;return t.getEditorState().read(()=>{var n=Bi.$getSelection();if(Bi.$isRangeSelection(n)){var i=n.anchor;i.type!=="text"?e=null:(n=i.getNode(),n.isSimpleText()?(i=i.offset,e=n.getTextContent().slice(0,i)):e=null)}}),e}function IOe(t,e){return e!==0?!1:t.getEditorState().read(()=>{var n=Bi.$getSelection();return Bi.$isRangeSelection(n)?(n=n.anchor.getNode().getPreviousSibling(),Bi.$isTextNode(n)&&n.isTextEntity()):!1})}function LOe(t){zn.startTransition?zn.startTransition(t):t()}let ROe=Bi.createCommand("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");xu.LexicalTypeaheadMenuPlugin=function({options:t,onQueryChange:e,onSelectOption:n,onOpen:i,onClose:r,menuRenderFn:o,triggerFn:s,anchorClassName:a,commandPriority:l=Bi.COMMAND_PRIORITY_LOW,parent:u}){let[f]=kC.useLexicalComposerContext(),[d,h]=zn.useState(null);a=AOe(d,h,a,u);let g=zn.useCallback(()=>{h(null),r!=null&&d!==null&&r()},[r,d]),m=zn.useCallback(y=>{h(y),i!=null&&d===null&&i(y)},[i,d]);return zn.useEffect(()=>{let y=f.registerUpdateListener(()=>{f.getEditorState().read(()=>{const x=f._window||window,_=x.document.createRange(),S=Bi.$getSelection(),C=DOe(f);if(Bi.$isRangeSelection(S)&&S.isCollapsed()&&C!==null&&_!==null){var E=s(C,f);e(E?E.matchingString:null),E===null||IOe(f,E.leadOffset)||POe(E.leadOffset,_,x)===null?g():LOe(()=>m({getRect:()=>_.getBoundingClientRect(),match:E}))}else g()})});return()=>{y()}},[f,s,e,d,g,m]),d===null||f===null?null:zn.createElement(NOe,{close:g,resolution:d,editor:f,anchorElementRef:a,options:t,menuRenderFn:o,shouldSplitNodeWithQuery:!0,onSelectOption:n,commandPriority:l})},xu.MenuOption=TOe,xu.PUNCTUATION=`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`,xu.SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND=ROe,xu.getScrollParent=function(t,e){let n=getComputedStyle(t),i=n.position==="absolute";if(e=e?/(auto|scroll|hidden)/:/(auto|scroll)/,n.position==="fixed")return document.body;for(;t=t.parentElement;)if(n=getComputedStyle(t),(!i||n.position!=="static")&&e.test(n.overflow+n.overflowY+n.overflowX))return t;return document.body},xu.useBasicTypeaheadTriggerMatch=function(t,{minLength:e=1,maxLength:n=75}){return zn.useCallback(i=>{if(i=new RegExp("(^|\\s|\\()(["+t+"]((?:[^"+(t+`\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;\\s]){0,`)+n+"}))$").exec(i),i!==null){let r=i[1],o=i[3];if(o.length>=e)return{leadOffset:i.index+r.length,matchingString:o,replaceableString:i[2]}}return null},[n,e,t])},xu.useDynamicPositioning=kF;var jOe=xu;function wF(t){return t&&t.__esModule?t.default:t}function us(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var by,ct,xF,Ym,_F,OF,ky={},SF=[],FOe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _u(t,e){for(var n in e)t[n]=e[n];return t}function CF(t){var e=t.parentNode;e&&e.removeChild(t)}function yC(t,e,n){var i,r,o,s={};for(o in e)o=="key"?i=e[o]:o=="ref"?r=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?by.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return yy(t,s,i,r,null)}function yy(t,e,n,i,r){var o={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++xF};return r==null&&ct.vnode!=null&&ct.vnode(o),o}function sl(){return{current:null}}function ch(t){return t.children}function xa(t,e){this.props=t,this.context=e}function fh(t,e){if(e==null)return t.__?fh(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?fh(t):null}function EF(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return EF(t)}}function TF(t){(!t.__d&&(t.__d=!0)&&Ym.push(t)&&!wy.__r++||OF!==ct.debounceRendering)&&((OF=ct.debounceRendering)||_F)(wy)}function wy(){for(var t;wy.__r=Ym.length;)t=Ym.sort(function(e,n){return e.__v.__b-n.__v.__b}),Ym=[],t.some(function(e){var n,i,r,o,s,a;e.__d&&(s=(o=(n=e).__v).__e,(a=n.__P)&&(i=[],(r=_u({},o)).__v=o.__v+1,wC(a,o,r,n.__n,a.ownerSVGElement!==void 0,o.__h!=null?[s]:null,i,s??fh(o),o.__h),IF(i,o),o.__e!=s&&EF(o)))})}function $F(t,e,n,i,r,o,s,a,l,u){var f,d,h,g,m,y,x,_=i&&i.__k||SF,S=_.length;for(n.__k=[],f=0;f<e.length;f++)if((g=n.__k[f]=(g=e[f])==null||typeof g=="boolean"?null:typeof g=="string"||typeof g=="number"||typeof g=="bigint"?yy(null,g,null,null,g):Array.isArray(g)?yy(ch,{children:g},null,null,null):g.__b>0?yy(g.type,g.props,g.key,null,g.__v):g)!=null){if(g.__=n,g.__b=n.__b+1,(h=_[f])===null||h&&g.key==h.key&&g.type===h.type)_[f]=void 0;else for(d=0;d<S;d++){if((h=_[d])&&g.key==h.key&&g.type===h.type){_[d]=void 0;break}h=null}wC(t,g,h=h||ky,r,o,s,a,l,u),m=g.__e,(d=g.ref)&&h.ref!=d&&(x||(x=[]),h.ref&&x.push(h.ref,null,g),x.push(d,g.__c||m,g)),m!=null?(y==null&&(y=m),typeof g.type=="function"&&g.__k===h.__k?g.__d=l=MF(g,l,t):l=NF(t,g,h,_,m,l),typeof n.type=="function"&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=fh(h))}for(n.__e=y,f=S;f--;)_[f]!=null&&(typeof n.type=="function"&&_[f].__e!=null&&_[f].__e==n.__d&&(n.__d=fh(i,f+1)),RF(_[f],_[f]));if(x)for(f=0;f<x.length;f++)LF(x[f],x[++f],x[++f])}function MF(t,e,n){for(var i,r=t.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=t,e=typeof i.type=="function"?MF(i,e,n):NF(n,i,i,r,i.__e,e));return e}function xy(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){xy(n,e)}):e.push(t)),e}function NF(t,e,n,i,r,o){var s,a,l;if(e.__d!==void 0)s=e.__d,e.__d=void 0;else if(n==null||r!=o||r.parentNode==null)e:if(o==null||o.parentNode!==t)t.appendChild(r),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<i.length;l+=2)if(a==r)break e;t.insertBefore(r,o),s=o}return s!==void 0?s:r.nextSibling}function zOe(t,e,n,i,r){var o;for(o in n)o==="children"||o==="key"||o in e||_y(t,o,null,n[o],i);for(o in e)r&&typeof e[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===e[o]||_y(t,o,e[o],n[o],i)}function AF(t,e,n){e[0]==="-"?t.setProperty(e,n):t[e]=n==null?"":typeof n!="number"||FOe.test(e)?n:n+"px"}function _y(t,e,n,i,r){var o;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof i=="string"&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||AF(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||AF(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?i||t.addEventListener(e,o?DF:PF,o):t.removeEventListener(e,o?DF:PF,o);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n!=null&&(n!==!1||e[0]==="a"&&e[1]==="r")?t.setAttribute(e,n):t.removeAttribute(e))}}function PF(t){this.l[t.type+!1](ct.event?ct.event(t):t)}function DF(t){this.l[t.type+!0](ct.event?ct.event(t):t)}function wC(t,e,n,i,r,o,s,a,l){var u,f,d,h,g,m,y,x,_,S,C,E=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=e.__e=n.__e,e.__h=null,o=[a]),(u=ct.__b)&&u(e);try{e:if(typeof E=="function"){if(x=e.props,_=(u=E.contextType)&&i[u.__c],S=u?_?_.props.value:u.__:i,n.__c?y=(f=e.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?e.__c=f=new E(x,S):(e.__c=f=new xa(x,S),f.constructor=E,f.render=WOe),_&&_.sub(f),f.props=x,f.state||(f.state={}),f.context=S,f.__n=i,d=f.__d=!0,f.__h=[]),f.__s==null&&(f.__s=f.state),E.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=_u({},f.__s)),_u(f.__s,E.getDerivedStateFromProps(x,f.__s))),h=f.props,g=f.state,d)E.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(E.getDerivedStateFromProps==null&&x!==h&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(x,S),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(x,f.__s,S)===!1||e.__v===n.__v){f.props=x,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(N){N&&(N.__=e)}),f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(x,f.__s,S),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(h,g,m)})}f.context=S,f.props=x,f.state=f.__s,(u=ct.__r)&&u(e),f.__d=!1,f.__v=e,f.__P=t,u=f.render(f.props,f.state,f.context),f.state=f.__s,f.getChildContext!=null&&(i=_u(_u({},i),f.getChildContext())),d||f.getSnapshotBeforeUpdate==null||(m=f.getSnapshotBeforeUpdate(h,g)),C=u!=null&&u.type===ch&&u.key==null?u.props.children:u,$F(t,Array.isArray(C)?C:[C],e,n,i,r,o,s,a,l),f.base=e.__e,e.__h=null,f.__h.length&&s.push(f),y&&(f.__E=f.__=null),f.__e=!1}else o==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=BOe(n.__e,e,n,i,r,o,s,l);(u=ct.diffed)&&u(e)}catch(N){e.__v=null,(l||o!=null)&&(e.__e=a,e.__h=!!l,o[o.indexOf(a)]=null),ct.__e(N,e,n)}}function IF(t,e){ct.__c&&ct.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(i){i.call(n)})}catch(i){ct.__e(i,n.__v)}})}function BOe(t,e,n,i,r,o,s,a){var l,u,f,d=n.props,h=e.props,g=e.type,m=0;if(g==="svg"&&(r=!0),o!=null){for(;m<o.length;m++)if((l=o[m])&&"setAttribute"in l==!!g&&(g?l.localName===g:l.nodeType===3)){t=l,o[m]=null;break}}if(t==null){if(g===null)return document.createTextNode(h);t=r?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,h.is&&h),o=null,a=!1}if(g===null)d===h||a&&t.data===h||(t.data=h);else{if(o=o&&by.call(t.childNodes),u=(d=n.props||ky).dangerouslySetInnerHTML,f=h.dangerouslySetInnerHTML,!a){if(o!=null)for(d={},m=0;m<t.attributes.length;m++)d[t.attributes[m].name]=t.attributes[m].value;(f||u)&&(f&&(u&&f.__html==u.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(zOe(t,h,d,r,a),f)e.__k=[];else if(m=e.props.children,$F(t,Array.isArray(m)?m:[m],e,n,i,r&&g!=="foreignObject",o,s,o?o[0]:n.__k&&fh(n,0),a),o!=null)for(m=o.length;m--;)o[m]!=null&&CF(o[m]);a||("value"in h&&(m=h.value)!==void 0&&(m!==d.value||m!==t.value||g==="progress"&&!m)&&_y(t,"value",m,d.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==t.checked&&_y(t,"checked",m,d.checked,!1))}return t}function LF(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(i){ct.__e(i,n)}}function RF(t,e,n){var i,r;if(ct.unmount&&ct.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||LF(i,null,e)),(i=t.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){ct.__e(o,e)}i.base=i.__P=null}if(i=t.__k)for(r=0;r<i.length;r++)i[r]&&RF(i[r],e,typeof t.type!="function");n||t.__e==null||CF(t.__e),t.__e=t.__d=void 0}function WOe(t,e,n){return this.constructor(t,n)}function jF(t,e,n){var i,r,o;ct.__&&ct.__(t,e),r=(i=typeof n=="function")?null:n&&n.__k||e.__k,o=[],wC(e,t=(!i&&n||e).__k=yC(ch,null,[t]),r||ky,ky,e.ownerSVGElement!==void 0,!i&&n?[n]:r?null:e.firstChild?by.call(e.childNodes):null,o,!i&&n?n:r?r.__e:e.firstChild,i),IF(o,t)}by=SF.slice,ct={__e:function(t,e){for(var n,i,r;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&i.getDerivedStateFromError!=null&&(n.setState(i.getDerivedStateFromError(t)),r=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(t),r=n.__d),r)return n.__E=n}catch(o){t=o}throw t}},xF=0,xa.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=_u({},this.state),typeof t=="function"&&(t=t(_u({},n),this.props)),t&&_u(n,t),t!=null&&this.__v&&(e&&this.__h.push(e),TF(this))},xa.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),TF(this))},xa.prototype.render=ch,Ym=[],_F=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wy.__r=0;var HOe=0;function me(t,e,n,i,r){var o,s,a={};for(s in e)s=="ref"?o=e[s]:a[s]=e[s];var l={type:t,props:a,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--HOe,__source:i,__self:r};if(typeof t=="function"&&(o=t.defaultProps))for(s in o)a[s]===void 0&&(a[s]=o[s]);return ct.vnode&&ct.vnode(l),l}function QOe(t,e){try{window.localStorage[`emoji-mart.${t}`]=JSON.stringify(e)}catch{}}function UOe(t){try{const e=window.localStorage[`emoji-mart.${t}`];if(e)return JSON.parse(e)}catch{}}var Ou={set:QOe,get:UOe};const xC=new Map,ZOe=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function qOe(){for(const{v:t,emoji:e}of ZOe)if(FF(e))return t}function YOe(){return!FF("🇨🇦")}function FF(t){if(xC.has(t))return xC.get(t);const e=VOe(t);return xC.set(t,e),e}const VOe=(()=>{let t=null;try{navigator.userAgent.includes("jsdom")||(t=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!t)return()=>!1;const e=25,n=20,i=Math.floor(e/2);return t.font=i+"px Arial, Sans-Serif",t.textBaseline="top",t.canvas.width=n*2,t.canvas.height=e,r=>{t.clearRect(0,0,n*2,e),t.fillStyle="#FF0000",t.fillText(r,0,22),t.fillStyle="#0000FF",t.fillText(r,n,22);const o=t.getImageData(0,0,n,e).data,s=o.length;let a=0;for(;a<s&&!o[a+3];a+=4);if(a>=s)return!1;const l=n+a/4%n,u=Math.floor(a/4/n),f=t.getImageData(l,u,1,1).data;return!(o[a]!==f[0]||o[a+2]!==f[2]||t.measureText(r).width>=n)}})();var zF={latestVersion:qOe,noCountryFlags:YOe};const _C=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"];let rr=null;function XOe(t){rr||(rr=Ou.get("frequently")||{});const e=t.id||t;e&&(rr[e]||(rr[e]=0),rr[e]+=1,Ou.set("last",e),Ou.set("frequently",rr))}function GOe({maxFrequentRows:t,perLine:e}){if(!t)return[];rr||(rr=Ou.get("frequently"));let n=[];if(!rr){rr={};for(let o in _C.slice(0,e)){const s=_C[o];rr[s]=e-o,n.push(s)}return n}const i=t*e,r=Ou.get("last");for(let o in rr)n.push(o);if(n.sort((o,s)=>{const a=rr[s],l=rr[o];return a==l?o.localeCompare(s):a-l}),n.length>i){const o=n.slice(i);n=n.slice(0,i);for(let s of o)s!=r&&delete rr[s];r&&n.indexOf(r)==-1&&(delete rr[n[n.length-1]],n.splice(-1,1,r)),Ou.set("frequently",rr)}return n}var BF={add:XOe,get:GOe,DEFAULTS:_C},WF={};WF=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var al={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let Cr=null,At=null;const OC={};async function HF(t){if(OC[t])return OC[t];const n=await(await fetch(t)).json();return OC[t]=n,n}let SC=null,QF=null,UF=!1;function Vm(t,{caller:e}={}){return SC||(SC=new Promise(n=>{QF=n})),t?KOe(t):e&&!UF&&console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),SC}async function KOe(t){UF=!0;let{emojiVersion:e,set:n,locale:i}=t;if(e||(e=al.emojiVersion.value),n||(n=al.set.value),i||(i=al.locale.value),At)At.categories=At.categories.filter(l=>!l.name);else{At=(typeof t.data=="function"?await t.data():t.data)||await HF(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`),At.emoticons={},At.natives={},At.categories.unshift({id:"frequent",emojis:[]});for(const l in At.aliases){const u=At.aliases[l],f=At.emojis[u];f&&(f.aliases||(f.aliases=[]),f.aliases.push(l))}At.originalCategories=At.categories}if(Cr=(typeof t.i18n=="function"?await t.i18n():t.i18n)||(i=="en"?wF(WF):await HF(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${i}.json`)),t.custom)for(let l in t.custom){l=parseInt(l);const u=t.custom[l],f=t.custom[l-1];if(!(!u.emojis||!u.emojis.length)){u.id||(u.id=`custom_${l+1}`),u.name||(u.name=Cr.categories.custom),f&&!u.icon&&(u.target=f.target||f),At.categories.push(u);for(const d of u.emojis)At.emojis[d.id]=d}}t.categories&&(At.categories=At.originalCategories.filter(l=>t.categories.indexOf(l.id)!=-1).sort((l,u)=>{const f=t.categories.indexOf(l.id),d=t.categories.indexOf(u.id);return f-d}));let r=null,o=null;n=="native"&&(r=zF.latestVersion(),o=t.noCountryFlags||zF.noCountryFlags());let s=At.categories.length,a=!1;for(;s--;){const l=At.categories[s];if(l.id=="frequent"){let{maxFrequentRows:d,perLine:h}=t;d=d>=0?d:al.maxFrequentRows.value,h||(h=al.perLine.value),l.emojis=BF.get({maxFrequentRows:d,perLine:h})}if(!l.emojis||!l.emojis.length){At.categories.splice(s,1);continue}const{categoryIcons:u}=t;if(u){const d=u[l.id];d&&!l.icon&&(l.icon=d)}let f=l.emojis.length;for(;f--;){const d=l.emojis[f],h=d.id?d:At.emojis[d],g=()=>{l.emojis.splice(f,1)};if(!h||t.exceptEmojis&&t.exceptEmojis.includes(h.id)){g();continue}if(r&&h.version>r){g();continue}if(o&&l.id=="flags"&&!iSe.includes(h.id)){g();continue}if(!h.search){if(a=!0,h.search=","+[[h.id,!1],[h.name,!0],[h.keywords,!1],[h.emoticons,!1]].map(([y,x])=>{if(y)return(Array.isArray(y)?y:[y]).map(_=>(x?_.split(/[-|_|\s]+/):[_]).map(S=>S.toLowerCase())).flat()}).flat().filter(y=>y&&y.trim()).join(","),h.emoticons)for(const y of h.emoticons)At.emoticons[y]||(At.emoticons[y]=h.id);let m=0;for(const y of h.skins){if(!y)continue;m++;const{native:x}=y;x&&(At.natives[x]=h.id,h.search+=`,${x}`);const _=m==1?"":`:skin-tone-${m}:`;y.shortcodes=`:${h.id}:${_}`}}}}a&&_a.reset(),QF()}function ZF(t,e,n){t||(t={});const i={};for(let r in e)i[r]=qF(r,t,e,n);return i}function qF(t,e,n,i){const r=n[t];let o=i&&i.getAttribute(t)||(e[t]!=null&&e[t]!=null?e[t]:null);return r&&(o!=null&&r.value&&typeof r.value!=typeof o&&(typeof r.value=="boolean"?o=o!="false":o=r.value.constructor(o)),r.transform&&o&&(o=r.transform(o)),(o==null||r.choices&&r.choices.indexOf(o)==-1)&&(o=r.value)),o}const JOe=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;let CC=null;function eSe(t){return t.id?t:At.emojis[t]||At.emojis[At.aliases[t]]||At.emojis[At.natives[t]]}function tSe(){CC=null}async function nSe(t,{maxResults:e,caller:n}={}){if(!t||!t.trim().length)return null;e||(e=90),await Vm(null,{caller:n||"SearchIndex.search"});const i=t.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((a,l,u)=>a.trim()&&u.indexOf(a)==l);if(!i.length)return;let r=CC||(CC=Object.values(At.emojis)),o,s;for(const a of i){if(!r.length)break;o=[],s={};for(const l of r){if(!l.search)continue;const u=l.search.indexOf(`,${a}`);u!=-1&&(o.push(l),s[l.id]||(s[l.id]=0),s[l.id]+=l.id==a?0:u+1)}r=o}return o.length<2||(o.sort((a,l)=>{const u=s[a.id],f=s[l.id];return u==f?a.id.localeCompare(l.id):u-f}),o.length>e&&(o=o.slice(0,e))),o}var _a={search:nSe,get:eSe,reset:tSe,SHORTCODES_REGEX:JOe};const iSe=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function rSe(t,e){return Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((n,i)=>n==e[i])}async function oSe(t=1){for(let e in[...Array(t).keys()])await new Promise(requestAnimationFrame)}function sSe(t,{skinIndex:e=0}={}){const n=t.skins[e]||(e=0,t.skins[e]),i={id:t.id,name:t.name,native:n.native,unified:n.unified,keywords:t.keywords,shortcodes:n.shortcodes||t.shortcodes};return t.skins.length>1&&(i.skin=e+1),n.src&&(i.src=n.src),t.aliases&&t.aliases.length&&(i.aliases=t.aliases),t.emoticons&&t.emoticons.length&&(i.emoticons=t.emoticons),i}var Oy={categories:{activity:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:me("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),me("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:me("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),me("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:me("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),me("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[me("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),me("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:me("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:me("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},search:{loupe:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:me("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:me("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})}};function EC(t){let{id:e,skin:n,emoji:i}=t;if(t.shortcodes){const a=t.shortcodes.match(_a.SHORTCODES_REGEX);a&&(e=a[1],a[2]&&(n=a[2]))}if(i||(i=_a.get(e||t.native)),!i)return t.fallback;const r=i.skins[n-1]||i.skins[0],o=r.src||(t.set!="native"&&!t.spritesheet?typeof t.getImageURL=="function"?t.getImageURL(t.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/64/${r.unified}.png`:void 0),s=typeof t.getSpritesheetURL=="function"?t.getSpritesheetURL(t.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${t.set}@15.0.1/img/${t.set}/sheets-256/64.png`;return me("span",{class:"emoji-mart-emoji","data-emoji-set":t.set,children:o?me("img",{style:{maxWidth:t.size||"1em",maxHeight:t.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:o}):t.set=="native"?me("span",{style:{fontSize:t.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):me("span",{style:{display:"block",width:t.size,height:t.size,backgroundImage:`url(${s})`,backgroundSize:`${100*At.sheet.cols}% ${100*At.sheet.rows}%`,backgroundPosition:`${100/(At.sheet.cols-1)*r.x}% ${100/(At.sheet.rows-1)*r.y}%`}})})}const aSe=typeof window<"u"&&window.HTMLElement?window.HTMLElement:Object;class YF extends aSe{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let n in e)this.attributeChangedCallback(n,null,e[n])}attributeChangedCallback(e,n,i){if(!this.component)return;const r=qF(e,{[e]:i},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let n=null;const i=e.parent||(n=e.ref&&e.ref.current);n&&(n.innerHTML=""),i&&i.appendChild(this)}}}class lSe extends YF{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;const n=document.createElement("style");n.textContent=e,this.shadowRoot.insertBefore(n,this.shadowRoot.firstChild)}constructor(e,{styles:n}={}){super(e),this.setShadow(),this.injectStyles(n)}}var VF={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:t=>/\D/.test(t)?t:`${t}px`},set:al.set,skin:al.skin};class XF extends YF{async connectedCallback(){const e=ZF(this.props,VF,this);e.element=this,e.ref=n=>{this.component=n},await Vm(),!this.disconnected&&jF(me(EC,{...e}),this)}constructor(e){super(e)}}us(XF,"Props",VF),typeof customElements<"u"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",XF);var GF,TC=[],KF=ct.__b,JF=ct.__r,ez=ct.diffed,tz=ct.__c,nz=ct.unmount;function uSe(){var t;for(TC.sort(function(e,n){return e.__v.__b-n.__v.__b});t=TC.pop();)if(t.__P)try{t.__H.__h.forEach(Sy),t.__H.__h.forEach($C),t.__H.__h=[]}catch(e){t.__H.__h=[],ct.__e(e,t.__v)}}ct.__b=function(t){KF&&KF(t)},ct.__r=function(t){JF&&JF(t);var e=t.__c.__H;e&&(e.__h.forEach(Sy),e.__h.forEach($C),e.__h=[])},ct.diffed=function(t){ez&&ez(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(TC.push(e)!==1&&GF===ct.requestAnimationFrame||((GF=ct.requestAnimationFrame)||function(n){var i,r=function(){clearTimeout(o),iz&&cancelAnimationFrame(i),setTimeout(n)},o=setTimeout(r,100);iz&&(i=requestAnimationFrame(r))})(uSe))},ct.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Sy),n.__h=n.__h.filter(function(i){return!i.__||$C(i)})}catch(i){e.some(function(r){r.__h&&(r.__h=[])}),e=[],ct.__e(i,n.__v)}}),tz&&tz(t,e)},ct.unmount=function(t){nz&&nz(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(i){try{Sy(i)}catch(r){e=r}}),e&&ct.__e(e,n.__v))};var iz=typeof requestAnimationFrame=="function";function Sy(t){var e=t.__c;typeof e=="function"&&(t.__c=void 0,e())}function $C(t){t.__c=t.__()}function cSe(t,e){for(var n in e)t[n]=e[n];return t}function rz(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var i in e)if(i!=="__source"&&t[i]!==e[i])return!0;return!1}function Cy(t){this.props=t}(Cy.prototype=new xa).isPureReactComponent=!0,Cy.prototype.shouldComponentUpdate=function(t,e){return rz(this.props,t)||rz(this.state,e)};var oz=ct.__b;ct.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),oz&&oz(t)};var fSe=ct.__e;ct.__e=function(t,e,n){if(t.then){for(var i,r=e;r=r.__;)if((i=r.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}fSe(t,e,n)};var sz=ct.unmount;function MC(){this.__u=0,this.t=null,this.__b=null}function az(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function Ey(){this.u=null,this.o=null}ct.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),sz&&sz(t)},(MC.prototype=new xa).__c=function(t,e){var n=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(n);var r=az(i.__v),o=!1,s=function(){o||(o=!0,n.__R=null,r?r(a):a())};n.__R=s;var a=function(){if(!--i.__u){if(i.state.__e){var u=i.state.__e;i.__v.__k[0]=function d(h,g,m){return h&&(h.__v=null,h.__k=h.__k&&h.__k.map(function(y){return d(y,g,m)}),h.__c&&h.__c.__P===g&&(h.__e&&m.insertBefore(h.__e,h.__d),h.__c.__e=!0,h.__c.__P=m)),h}(u,u.__c.__P,u.__c.__O)}var f;for(i.setState({__e:i.__b=null});f=i.t.pop();)f.forceUpdate()}},l=e.__h===!0;i.__u++||l||i.setState({__e:i.__b=i.__v.__k[0]}),t.then(s,s)},MC.prototype.componentWillUnmount=function(){this.t=[]},MC.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=function o(s,a,l){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(u){typeof u.__c=="function"&&u.__c()}),s.__c.__H=null),(s=cSe({},s)).__c!=null&&(s.__c.__P===l&&(s.__c.__P=a),s.__c=null),s.__k=s.__k&&s.__k.map(function(u){return o(u,a,l)})),s}(this.__b,n,i.__O=i.__P)}this.__b=null}var r=e.__e&&yC(ch,null,t.fallback);return r&&(r.__h=null),[yC(ch,null,e.__e?null:t.children),r]};var lz=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};(Ey.prototype=new xa).__e=function(t){var e=this,n=az(e.__v),i=e.o.get(t);return i[0]++,function(r){var o=function(){e.props.revealOrder?(i.push(r),lz(e,t,i)):r()};n?n(o):o()}},Ey.prototype.render=function(t){this.u=null,this.o=new Map;var e=xy(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Ey.prototype.componentDidUpdate=Ey.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){lz(t,n,e)})};var dSe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,hSe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,pSe=typeof document<"u",gSe=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};xa.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(xa.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var uz=ct.event;function mSe(){}function vSe(){return this.cancelBubble}function bSe(){return this.defaultPrevented}ct.event=function(t){return uz&&(t=uz(t)),t.persist=mSe,t.isPropagationStopped=vSe,t.isDefaultPrevented=bSe,t.nativeEvent=t};var cz={configurable:!0,get:function(){return this.class}},fz=ct.vnode;ct.vnode=function(t){var e=t.type,n=t.props,i=n;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var o in i={},n){var s=n[o];pSe&&o==="children"&&e==="noscript"||o==="value"&&"defaultValue"in n&&s==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!gSe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():r&&hSe.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),i[o]=s)}e=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=xy(n.children).forEach(function(a){a.props.selected=i.value.indexOf(a.props.value)!=-1})),e=="select"&&i.defaultValue!=null&&(i.value=xy(n.children).forEach(function(a){a.props.selected=i.multiple?i.defaultValue.indexOf(a.props.value)!=-1:i.defaultValue==a.props.value})),t.props=i,n.class!=n.className&&(cz.enumerable="className"in n,n.className!=null&&(i.class=n.className),Object.defineProperty(i,"className",cz))}t.$$typeof=dSe,fz&&fz(t)};var dz=ct.__r;ct.__r=function(t){dz&&dz(t),t.__c};const kSe={light:"outline",dark:"solid"};class ySe extends Cy{renderIcon(e){const{icon:n}=e;if(n){if(n.svg)return me("span",{class:"flex",dangerouslySetInnerHTML:{__html:n.svg}});if(n.src)return me("img",{src:n.src})}const i=Oy.categories[e.id]||Oy.categories.custom,r=this.props.icons=="auto"?kSe[this.props.theme]:this.props.icons;return i[r]||i}render(){let e=null;return me("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:me("div",{class:"flex relative",children:[this.categories.map((n,i)=>{const r=n.name||Cr.categories[n.id],o=!this.props.unfocused&&n.id==this.state.categoryId;return o&&(e=i),me("button",{"aria-label":r,"aria-selected":o||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:n,i})},children:this.renderIcon(n)})}),me("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:e==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${e*100}%)`:`translateX(${e*100}%)`}})]})})}constructor(){super(),this.categories=At.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class wSe extends Cy{shouldComponentUpdate(e){for(let n in e)if(n!="children"&&e[n]!=this.props[n])return!0;return!1}render(){return this.props.children}}const Ty={rowsPerRender:10};class xSe extends xa{getInitialState(e=this.props){return{skin:Ou.get("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=Cr.rtl?"rtl":"ltr",this.refs={menu:sl(),navigation:sl(),scroll:sl(),search:sl(),searchInput:sl(),skinToneButton:sl(),skinToneRadio:sl()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){const{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){this.nextState||(this.nextState={});for(const n in e)this.nextState[n]=e[n];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let n=!1;for(const r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(n=!0);delete this.nextState;const i=this.getInitialState();if(n)return this.reset(i);this.setState(i)})}componentWillUnmount(){this.unregister()}async reset(e={}){await Vm(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var e;document.removeEventListener("click",this.handleClickOutside),(e=this.darkMedia)==null||e.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){Array.isArray(e)||(e=[e]);for(const n of this.observers)e.includes(n)||n.disconnect();this.observers=[].concat(e)}initGrid(){const{categories:e}=At;this.refs.categories=new Map;const n=At.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=n&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=n,this.grid=[],this.grid.setsize=0;const i=(r,o)=>{const s=[];s.__categoryId=o.id,s.__index=r.length,this.grid.push(s);const a=this.grid.length-1,l=a%Ty.rowsPerRender?{}:sl();return l.index=a,l.posinset=this.grid.setsize+1,r.push(l),s};for(let r of e){const o=[];let s=i(o,r);for(let a of r.emojis)s.length==this.getPerLine()&&(s=i(o,r)),this.grid.setsize+=1,s.push(a);this.refs.categories.set(r.id,{root:sl(),rows:o})}}initTheme(e){if(e!="auto")return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;const{element:n,emojiButtonSize:i}=e,r=()=>{const{width:s}=n.getBoundingClientRect();return Math.floor(s/i)},o=new ResizeObserver(()=>{this.unobserve({except:o}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return o.observe(n),this.observers.push(o),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,n]){const i=this.state.searchResults||this.grid,r=i[e]&&i[e][n];if(r)return _a.get(r)}observeCategories(){const e=this.refs.navigation.current;if(!e)return;const n=new Map,i=s=>{s!=e.state.categoryId&&e.setState({categoryId:s})},r={root:this.refs.scroll.current,threshold:[0,1]},o=new IntersectionObserver(s=>{for(const l of s){const u=l.target.dataset.id;n.set(u,l.intersectionRatio)}const a=[...n];for(const[l,u]of a)if(u){i(l);break}},r);for(const{root:s}of this.refs.categories.values())o.observe(s.current);this.observers.push(o)}observeRows(){const e={...this.state.visibleRows},n=new IntersectionObserver(i=>{for(const r of i){const o=parseInt(r.target.dataset.index);r.isIntersecting?e[o]=!0:delete e[o]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Ty.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Ty.rowsPerRender}px`});for(const{rows:i}of this.refs.categories.values())for(const r of i)r.current&&n.observe(r.current);this.observers.push(n)}preventDefault(e){e.preventDefault()}unfocusSearch(){const e=this.refs.searchInput.current;e&&e.blur()}navigate({e,input:n,left:i,right:r,up:o,down:s}){const a=this.state.searchResults||this.grid;if(!a.length)return;let[l,u]=this.state.pos;const f=(()=>{if(l==0&&u==0&&!e.repeat&&(i||o))return null;if(l==-1)return!e.repeat&&(r||s)&&n.selectionStart==n.value.length?[0,0]:null;if(i||r){let d=a[l];const h=i?-1:1;if(u+=h,!d[u]){if(l+=h,d=a[l],!d)return l=i?0:a.length-1,u=i?0:a[l].length-1,[l,u];u=i?d.length-1:0}return[l,u]}if(o||s){l+=o?-1:1;const d=a[l];return d?(d[u]||(u=d.length-1),[l,u]):(l=o?0:a.length-1,u=o?0:a[l].length-1,[l,u])}})();if(f)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:f,keyboard:!0},()=>{this.scrollTo({row:f[0]})})}scrollTo({categoryId:e,row:n}){const i=this.state.searchResults||this.grid;if(!i.length)return;const r=this.refs.scroll.current,o=r.getBoundingClientRect();let s=0;if(n>=0&&(e=i[n].__categoryId),e&&(s=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(o.top-r.scrollTop)+1),n>=0)if(!n)s=0;else{const a=i[n].__index,l=s+a*this.props.emojiButtonSize,u=l+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(l<r.scrollTop)s=l;else if(u>r.scrollTop+o.height)s=u-o.height;else return}this.ignoreMouse(),r.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e,emoji:n,pos:i}){if(this.props.onEmojiSelect&&(!n&&i&&(n=this.getEmojiByPos(i)),n)){const r=sSe(n,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&BF.add(r,this.props),this.props.onEmojiSelect(r,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),Ou.set("skin",e)}renderNav(){return me(ySe,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){const e=this.getEmojiByPos(this.state.pos),n=this.state.searchResults&&!this.state.searchResults.length;return me("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[me("div",{class:"flex flex-middle flex-grow",children:[me("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:me(EC,{emoji:e,id:n?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),me("div",{class:`margin-${this.dir[0]}`,children:e||n?me("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[me("div",{class:"preview-title ellipsis",children:e?e.name:Cr.search_no_results_1}),me("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:Cr.search_no_results_2})]}):me("div",{class:"preview-placeholder color-c",children:Cr.pick})})]}),!e&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:n,posinset:i,grid:r}){const o=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,l=(e.skins[s-1]||e.skins[0]).native,u=rSe(this.state.pos,n),f=n.concat(e.id).join("");return me(wSe,{selected:u,skin:s,size:o,children:me("button",{"aria-label":l,"aria-selected":u||void 0,"aria-posinset":i,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:d=>this.handleEmojiClick({e:d,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(n),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[me("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(i-1)%this.props.emojiButtonColors.length]:void 0}}),me(EC,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},f)}renderSearch(){const e=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return me("div",{children:[me("div",{class:"spacer"}),me("div",{class:"flex flex-middle",children:[me("div",{class:"search relative flex-grow",children:[me("input",{type:"search",ref:this.refs.searchInput,placeholder:Cr.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),me("span",{class:"icon loupe flex",children:Oy.search.loupe}),this.state.searchResults&&me("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:Oy.search.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){const{searchResults:e}=this.state;return e?me("div",{class:"category",ref:this.refs.search,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Cr.categories.search}),me("div",{children:e.length?e.map((n,i)=>me("div",{class:"flex",children:n.map((r,o)=>this.renderEmojiButton(r,{pos:[i,o],posinset:i*this.props.perLine+o+1,grid:e}))})):me("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&me("a",{onClick:this.props.onAddCustomEmoji,children:Cr.add_custom})})})]}):null}renderCategories(){const{categories:e}=At,n=!!this.state.searchResults,i=this.getPerLine();return me("div",{style:{visibility:n?"hidden":void 0,display:n?"none":void 0,height:"100%"},children:e.map(r=>{const{root:o,rows:s}=this.refs.categories.get(r.id);return me("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:o,children:[me("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Cr.categories[r.id]}),me("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((a,l)=>{const u=a.index-a.index%Ty.rowsPerRender,f=this.state.visibleRows[u],d="current"in a?a:void 0;if(!f&&!d)return null;const h=l*i,g=h+i,m=r.emojis.slice(h,g);return m.length<i&&m.push(...new Array(i-m.length)),me("div",{"data-index":a.index,ref:d,class:"flex row",style:{top:l*this.props.emojiButtonSize},children:f&&m.map((y,x)=>{if(!y)return me("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});const _=_a.get(y);return this.renderEmojiButton(_,{pos:[a.index,x],posinset:a.posinset+x,grid:this.grid})})},a.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:me("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:me("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Cr.skins.choose,title:Cr.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:me("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){const e=this.getEmojiByPos(this.state.pos),n=e?e.name:"";return me("div",{"aria-live":"polite",class:"sr-only",children:n})}renderSkins(){const n=this.refs.skinToneButton.current.getBoundingClientRect(),i=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=i.right-n.right-3:r.left=n.left-i.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=i.bottom-n.top+6:(r.top=n.bottom-i.top+3,r.bottom="auto"),me("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Cr.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(o=>{const s=o+1,a=this.state.skin==s;return me("div",{children:[me("input",{type:"radio",name:"skin-tone",value:s,"aria-label":Cr.skins[s],ref:a?this.refs.skinToneRadio:null,defaultChecked:a,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:l=>{(l.code=="Enter"||l.code=="Space"||l.code=="Tab")&&(l.preventDefault(),this.handleSkinClick(s))}}),me("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[me("span",{class:`skin-tone skin-tone-${s}`}),me("span",{class:"margin-small-lr",children:Cr.skins[s]})]})]})})})}render(){const e=this.props.perLine*this.props.emojiButtonSize;return me("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&me("div",{class:"padding-lr",children:this.renderSearch()}),me("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:me("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),us(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),us(this,"handleClickOutside",n=>{const{element:i}=this.props;n.target!=i&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(n))}),us(this,"handleBaseClick",n=>{this.state.showSkins&&(n.target.closest(".menu")||(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins()))}),us(this,"handleBaseKeydown",n=>{this.state.showSkins&&n.key=="Escape"&&(n.preventDefault(),n.stopImmediatePropagation(),this.closeSkins())}),us(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),us(this,"handleSearchInput",async()=>{const n=this.refs.searchInput.current;if(!n)return;const{value:i}=n,r=await _a.search(i),o=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},o);const s=n.selectionStart==n.value.length?[0,0]:[-1,-1],a=[];a.setsize=r.length;let l=null;for(let u of r)(!a.length||l.length==this.getPerLine())&&(l=[],l.__categoryId="search",l.__index=a.length,a.push(l)),l.push(u);this.ignoreMouse(),this.setState({searchResults:a,pos:s},o)}),us(this,"handleSearchKeyDown",n=>{const i=n.currentTarget;switch(n.stopImmediatePropagation(),n.key){case"ArrowLeft":this.navigate({e:n,input:i,left:!0});break;case"ArrowRight":this.navigate({e:n,input:i,right:!0});break;case"ArrowUp":this.navigate({e:n,input:i,up:!0});break;case"ArrowDown":this.navigate({e:n,input:i,down:!0});break;case"Enter":n.preventDefault(),this.handleEmojiClick({e:n,pos:this.state.pos});break;case"Escape":n.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break}}),us(this,"clearSearch",()=>{const n=this.refs.searchInput.current;n&&(n.value="",n.focus(),this.handleSearchInput())}),us(this,"handleCategoryClick",({category:n,i})=>{this.scrollTo(i==0?{row:-1}:{categoryId:n.id})}),us(this,"openSkins",n=>{const{currentTarget:i}=n,r=i.getBoundingClientRect();this.setState({showSkins:r},async()=>{await oSe(2);const o=this.refs.menu.current;o&&(o.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class NC extends lSe{async connectedCallback(){const e=ZF(this.props,al,this);e.element=this,e.ref=n=>{this.component=n},await Vm(e),!this.disconnected&&jF(me(xSe,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:wF(hz)})}}us(NC,"Props",al),typeof customElements<"u"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",NC);var hz={};hz=`:host {
|
||
width: min-content;
|
||
height: 435px;
|
||
min-height: 230px;
|
||
border-radius: var(--border-radius);
|
||
box-shadow: var(--shadow);
|
||
--border-radius: 10px;
|
||
--category-icon-size: 18px;
|
||
--font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
|
||
--font-size: 15px;
|
||
--preview-placeholder-size: 21px;
|
||
--preview-title-size: 1.1em;
|
||
--preview-subtitle-size: .9em;
|
||
--shadow-color: 0deg 0% 0%;
|
||
--shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14);
|
||
display: flex;
|
||
}
|
||
|
||
[data-theme="light"] {
|
||
--em-rgb-color: var(--rgb-color, 34, 36, 39);
|
||
--em-rgb-accent: var(--rgb-accent, 34, 102, 237);
|
||
--em-rgb-background: var(--rgb-background, 255, 255, 255);
|
||
--em-rgb-input: var(--rgb-input, 255, 255, 255);
|
||
--em-color-border: var(--color-border, rgba(0, 0, 0, .05));
|
||
--em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1));
|
||
}
|
||
|
||
[data-theme="dark"] {
|
||
--em-rgb-color: var(--rgb-color, 222, 222, 221);
|
||
--em-rgb-accent: var(--rgb-accent, 58, 130, 247);
|
||
--em-rgb-background: var(--rgb-background, 21, 22, 23);
|
||
--em-rgb-input: var(--rgb-input, 0, 0, 0);
|
||
--em-color-border: var(--color-border, rgba(255, 255, 255, .1));
|
||
--em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));
|
||
}
|
||
|
||
#root {
|
||
--color-a: rgb(var(--em-rgb-color));
|
||
--color-b: rgba(var(--em-rgb-color), .65);
|
||
--color-c: rgba(var(--em-rgb-color), .45);
|
||
--padding: 12px;
|
||
--padding-small: calc(var(--padding) / 2);
|
||
--sidebar-width: 16px;
|
||
--duration: 225ms;
|
||
--duration-fast: 125ms;
|
||
--duration-instant: 50ms;
|
||
--easing: cubic-bezier(.4, 0, .2, 1);
|
||
width: 100%;
|
||
text-align: left;
|
||
border-radius: var(--border-radius);
|
||
background-color: rgb(var(--em-rgb-background));
|
||
position: relative;
|
||
}
|
||
|
||
@media (prefers-reduced-motion) {
|
||
#root {
|
||
--duration: 0;
|
||
--duration-fast: 0;
|
||
--duration-instant: 0;
|
||
}
|
||
}
|
||
|
||
#root[data-menu] button {
|
||
cursor: auto;
|
||
}
|
||
|
||
#root[data-menu] .menu button {
|
||
cursor: pointer;
|
||
}
|
||
|
||
:host, #root, input, button {
|
||
color: rgb(var(--em-rgb-color));
|
||
font-family: var(--font-family);
|
||
font-size: var(--font-size);
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
line-height: normal;
|
||
}
|
||
|
||
*, :before, :after {
|
||
box-sizing: border-box;
|
||
min-width: 0;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.relative {
|
||
position: relative;
|
||
}
|
||
|
||
.flex {
|
||
display: flex;
|
||
}
|
||
|
||
.flex-auto {
|
||
flex: none;
|
||
}
|
||
|
||
.flex-center {
|
||
justify-content: center;
|
||
}
|
||
|
||
.flex-column {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.flex-grow {
|
||
flex: auto;
|
||
}
|
||
|
||
.flex-middle {
|
||
align-items: center;
|
||
}
|
||
|
||
.flex-wrap {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.padding {
|
||
padding: var(--padding);
|
||
}
|
||
|
||
.padding-t {
|
||
padding-top: var(--padding);
|
||
}
|
||
|
||
.padding-lr {
|
||
padding-left: var(--padding);
|
||
padding-right: var(--padding);
|
||
}
|
||
|
||
.padding-r {
|
||
padding-right: var(--padding);
|
||
}
|
||
|
||
.padding-small {
|
||
padding: var(--padding-small);
|
||
}
|
||
|
||
.padding-small-b {
|
||
padding-bottom: var(--padding-small);
|
||
}
|
||
|
||
.padding-small-lr {
|
||
padding-left: var(--padding-small);
|
||
padding-right: var(--padding-small);
|
||
}
|
||
|
||
.margin {
|
||
margin: var(--padding);
|
||
}
|
||
|
||
.margin-r {
|
||
margin-right: var(--padding);
|
||
}
|
||
|
||
.margin-l {
|
||
margin-left: var(--padding);
|
||
}
|
||
|
||
.margin-small-l {
|
||
margin-left: var(--padding-small);
|
||
}
|
||
|
||
.margin-small-lr {
|
||
margin-left: var(--padding-small);
|
||
margin-right: var(--padding-small);
|
||
}
|
||
|
||
.align-l {
|
||
text-align: left;
|
||
}
|
||
|
||
.align-r {
|
||
text-align: right;
|
||
}
|
||
|
||
.color-a {
|
||
color: var(--color-a);
|
||
}
|
||
|
||
.color-b {
|
||
color: var(--color-b);
|
||
}
|
||
|
||
.color-c {
|
||
color: var(--color-c);
|
||
}
|
||
|
||
.ellipsis {
|
||
white-space: nowrap;
|
||
max-width: 100%;
|
||
width: auto;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.sr-only {
|
||
width: 1px;
|
||
height: 1px;
|
||
position: absolute;
|
||
top: auto;
|
||
left: -10000px;
|
||
overflow: hidden;
|
||
}
|
||
|
||
a {
|
||
cursor: pointer;
|
||
color: rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
a:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.spacer {
|
||
height: 10px;
|
||
}
|
||
|
||
[dir="rtl"] .scroll {
|
||
padding-left: 0;
|
||
padding-right: var(--padding);
|
||
}
|
||
|
||
.scroll {
|
||
padding-right: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar {
|
||
width: var(--sidebar-width);
|
||
height: var(--sidebar-width);
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-track {
|
||
border: 0;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-button {
|
||
width: 0;
|
||
height: 0;
|
||
display: none;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-corner {
|
||
background-color: rgba(0, 0, 0, 0);
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-thumb {
|
||
min-height: 20%;
|
||
min-height: 65px;
|
||
border: 4px solid rgb(var(--em-rgb-background));
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.scroll::-webkit-scrollbar-thumb:hover {
|
||
background-color: var(--em-color-border-over) !important;
|
||
}
|
||
|
||
.scroll:hover::-webkit-scrollbar-thumb {
|
||
background-color: var(--em-color-border);
|
||
}
|
||
|
||
.sticky {
|
||
z-index: 1;
|
||
background-color: rgba(var(--em-rgb-background), .9);
|
||
-webkit-backdrop-filter: blur(4px);
|
||
backdrop-filter: blur(4px);
|
||
font-weight: 500;
|
||
position: sticky;
|
||
top: -1px;
|
||
}
|
||
|
||
[dir="rtl"] .search input[type="search"] {
|
||
padding: 10px 2.2em 10px 2em;
|
||
}
|
||
|
||
[dir="rtl"] .search .loupe {
|
||
left: auto;
|
||
right: .7em;
|
||
}
|
||
|
||
[dir="rtl"] .search .delete {
|
||
left: .7em;
|
||
right: auto;
|
||
}
|
||
|
||
.search {
|
||
z-index: 2;
|
||
position: relative;
|
||
}
|
||
|
||
.search input, .search button {
|
||
font-size: calc(var(--font-size) - 1px);
|
||
}
|
||
|
||
.search input[type="search"] {
|
||
width: 100%;
|
||
background-color: var(--em-color-border);
|
||
transition-duration: var(--duration);
|
||
transition-property: background-color, box-shadow;
|
||
transition-timing-function: var(--easing);
|
||
border: 0;
|
||
border-radius: 10px;
|
||
outline: 0;
|
||
padding: 10px 2em 10px 2.2em;
|
||
display: block;
|
||
}
|
||
|
||
.search input[type="search"]::-ms-input-placeholder {
|
||
color: inherit;
|
||
opacity: .6;
|
||
}
|
||
|
||
.search input[type="search"]::placeholder {
|
||
color: inherit;
|
||
opacity: .6;
|
||
}
|
||
|
||
.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration {
|
||
-webkit-appearance: none;
|
||
-ms-appearance: none;
|
||
appearance: none;
|
||
}
|
||
|
||
.search input[type="search"]:focus {
|
||
background-color: rgb(var(--em-rgb-input));
|
||
box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2);
|
||
}
|
||
|
||
.search .icon {
|
||
z-index: 1;
|
||
color: rgba(var(--em-rgb-color), .7);
|
||
position: absolute;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
}
|
||
|
||
.search .loupe {
|
||
pointer-events: none;
|
||
left: .7em;
|
||
}
|
||
|
||
.search .delete {
|
||
right: .7em;
|
||
}
|
||
|
||
svg {
|
||
fill: currentColor;
|
||
width: 1em;
|
||
height: 1em;
|
||
}
|
||
|
||
button {
|
||
-webkit-appearance: none;
|
||
-ms-appearance: none;
|
||
appearance: none;
|
||
cursor: pointer;
|
||
color: currentColor;
|
||
background-color: rgba(0, 0, 0, 0);
|
||
border: 0;
|
||
}
|
||
|
||
#nav {
|
||
z-index: 2;
|
||
padding-top: 12px;
|
||
padding-bottom: 12px;
|
||
padding-right: var(--sidebar-width);
|
||
position: relative;
|
||
}
|
||
|
||
#nav button {
|
||
color: var(--color-b);
|
||
transition: color var(--duration) var(--easing);
|
||
}
|
||
|
||
#nav button:hover {
|
||
color: var(--color-a);
|
||
}
|
||
|
||
#nav svg, #nav img {
|
||
width: var(--category-icon-size);
|
||
height: var(--category-icon-size);
|
||
}
|
||
|
||
#nav[dir="rtl"] .bar {
|
||
left: auto;
|
||
right: 0;
|
||
}
|
||
|
||
#nav .bar {
|
||
width: 100%;
|
||
height: 3px;
|
||
background-color: rgb(var(--em-rgb-accent));
|
||
transition: transform var(--duration) var(--easing);
|
||
border-radius: 3px 3px 0 0;
|
||
position: absolute;
|
||
bottom: -12px;
|
||
left: 0;
|
||
}
|
||
|
||
#nav button[aria-selected] {
|
||
color: rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
#preview {
|
||
z-index: 2;
|
||
padding: calc(var(--padding) + 4px) var(--padding);
|
||
padding-right: var(--sidebar-width);
|
||
position: relative;
|
||
}
|
||
|
||
#preview .preview-placeholder {
|
||
font-size: var(--preview-placeholder-size);
|
||
}
|
||
|
||
#preview .preview-title {
|
||
font-size: var(--preview-title-size);
|
||
}
|
||
|
||
#preview .preview-subtitle {
|
||
font-size: var(--preview-subtitle-size);
|
||
}
|
||
|
||
#nav:before, #preview:before {
|
||
content: "";
|
||
height: 2px;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
#nav[data-position="top"]:before, #preview[data-position="top"]:before {
|
||
background: linear-gradient(to bottom, var(--em-color-border), transparent);
|
||
top: 100%;
|
||
}
|
||
|
||
#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before {
|
||
background: linear-gradient(to top, var(--em-color-border), transparent);
|
||
bottom: 100%;
|
||
}
|
||
|
||
.category:last-child {
|
||
min-height: calc(100% + 1px);
|
||
}
|
||
|
||
.category button {
|
||
font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;
|
||
position: relative;
|
||
}
|
||
|
||
.category button > * {
|
||
position: relative;
|
||
}
|
||
|
||
.category button .background {
|
||
opacity: 0;
|
||
background-color: var(--em-color-border);
|
||
transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
}
|
||
|
||
.category button:hover .background {
|
||
transition-duration: var(--duration-instant);
|
||
transition-delay: 0s;
|
||
}
|
||
|
||
.category button[aria-selected] .background {
|
||
opacity: 1;
|
||
}
|
||
|
||
.category button[data-keyboard] .background {
|
||
transition: none;
|
||
}
|
||
|
||
.row {
|
||
width: 100%;
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
}
|
||
|
||
.skin-tone-button {
|
||
border: 1px solid rgba(0, 0, 0, 0);
|
||
border-radius: 100%;
|
||
}
|
||
|
||
.skin-tone-button:hover {
|
||
border-color: var(--em-color-border);
|
||
}
|
||
|
||
.skin-tone-button:active .skin-tone {
|
||
transform: scale(.85) !important;
|
||
}
|
||
|
||
.skin-tone-button .skin-tone {
|
||
transition: transform var(--duration) var(--easing);
|
||
}
|
||
|
||
.skin-tone-button[aria-selected] {
|
||
background-color: var(--em-color-border);
|
||
border-top-color: rgba(0, 0, 0, .05);
|
||
border-bottom-color: rgba(0, 0, 0, 0);
|
||
border-left-width: 0;
|
||
border-right-width: 0;
|
||
}
|
||
|
||
.skin-tone-button[aria-selected] .skin-tone {
|
||
transform: scale(.9);
|
||
}
|
||
|
||
.menu {
|
||
z-index: 2;
|
||
white-space: nowrap;
|
||
border: 1px solid var(--em-color-border);
|
||
background-color: rgba(var(--em-rgb-background), .9);
|
||
-webkit-backdrop-filter: blur(4px);
|
||
backdrop-filter: blur(4px);
|
||
transition-property: opacity, transform;
|
||
transition-duration: var(--duration);
|
||
transition-timing-function: var(--easing);
|
||
border-radius: 10px;
|
||
padding: 4px;
|
||
position: absolute;
|
||
box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);
|
||
}
|
||
|
||
.menu.hidden {
|
||
opacity: 0;
|
||
}
|
||
|
||
.menu[data-position="bottom"] {
|
||
transform-origin: 100% 100%;
|
||
}
|
||
|
||
.menu[data-position="bottom"].hidden {
|
||
transform: scale(.9)rotate(-3deg)translateY(5%);
|
||
}
|
||
|
||
.menu[data-position="top"] {
|
||
transform-origin: 100% 0;
|
||
}
|
||
|
||
.menu[data-position="top"].hidden {
|
||
transform: scale(.9)rotate(3deg)translateY(-5%);
|
||
}
|
||
|
||
.menu input[type="radio"] {
|
||
clip: rect(0 0 0 0);
|
||
width: 1px;
|
||
height: 1px;
|
||
border: 0;
|
||
margin: 0;
|
||
padding: 0;
|
||
position: absolute;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.menu input[type="radio"]:checked + .option {
|
||
box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
.option {
|
||
width: 100%;
|
||
border-radius: 6px;
|
||
padding: 4px 6px;
|
||
}
|
||
|
||
.option:hover {
|
||
color: #fff;
|
||
background-color: rgb(var(--em-rgb-accent));
|
||
}
|
||
|
||
.skin-tone {
|
||
width: 16px;
|
||
height: 16px;
|
||
border-radius: 100%;
|
||
display: inline-block;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.skin-tone:after {
|
||
content: "";
|
||
mix-blend-mode: overlay;
|
||
background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0));
|
||
border: 1px solid rgba(0, 0, 0, .8);
|
||
border-radius: 100%;
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;
|
||
}
|
||
|
||
.skin-tone-1 {
|
||
background-color: #ffc93a;
|
||
}
|
||
|
||
.skin-tone-2 {
|
||
background-color: #ffdab7;
|
||
}
|
||
|
||
.skin-tone-3 {
|
||
background-color: #e7b98f;
|
||
}
|
||
|
||
.skin-tone-4 {
|
||
background-color: #c88c61;
|
||
}
|
||
|
||
.skin-tone-5 {
|
||
background-color: #a46134;
|
||
}
|
||
|
||
.skin-tone-6 {
|
||
background-color: #5d4437;
|
||
}
|
||
|
||
[data-index] {
|
||
justify-content: space-between;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone:after {
|
||
box-shadow: none;
|
||
border-color: rgba(0, 0, 0, .5);
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-1 {
|
||
background-color: #fade72;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-2 {
|
||
background-color: #f3dfd0;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-3 {
|
||
background-color: #eed3a8;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-4 {
|
||
background-color: #cfad8d;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-5 {
|
||
background-color: #a8805d;
|
||
}
|
||
|
||
[data-emoji-set="twitter"] .skin-tone-6 {
|
||
background-color: #765542;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone:after {
|
||
box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4);
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-1 {
|
||
background-color: #f5c748;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-2 {
|
||
background-color: #f1d5aa;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-3 {
|
||
background-color: #d4b48d;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-4 {
|
||
background-color: #aa876b;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-5 {
|
||
background-color: #916544;
|
||
}
|
||
|
||
[data-emoji-set="google"] .skin-tone-6 {
|
||
background-color: #61493f;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone:after {
|
||
border-color: rgba(0, 0, 0, .4);
|
||
box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-1 {
|
||
background-color: #f5c748;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-2 {
|
||
background-color: #f1d5aa;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-3 {
|
||
background-color: #d4b48d;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-4 {
|
||
background-color: #aa876b;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-5 {
|
||
background-color: #916544;
|
||
}
|
||
|
||
[data-emoji-set="facebook"] .skin-tone-6 {
|
||
background-color: #61493f;
|
||
}
|
||
|
||
`,Vm({data:hF});const _Se=function({index:t,isSelected:e,onClick:n,onMouseEnter:i,emoji:r}){const o=T.useRef(null);return r.ref=o,k.jsxs("li",{ref:r.ref,"aria-selected":e,className:`mb-0 flex cursor-pointer items-center gap-2 whitespace-nowrap rounded-md px-2 py-1 font-sans text-sm leading-[1.65] tracking-wide text-grey-800 dark:text-grey-200 ${e?"bg-grey-100 text-grey-900 dark:bg-grey-900 dark:text-white":""}`,"data-testid":"emoji-option-"+t,id:"emoji-option-"+t,role:"option",tabIndex:-1,onClick:n,onMouseEnter:i,children:[k.jsx("span",{className:"font-serif text-lg",children:r.skins[0].native}),k.jsx("span",{className:"truncate",children:r.id})]},r.id)};function $y(){const[t]=Oe.useLexicalComposerContext(),[e,n]=T.useState(null),[i,r]=T.useState(null),o=SOe(":",{minLength:1}),s=()=>t.getEditorState().read(()=>{const d=A.$getSelection().anchor.getNode();return!!(d&&A.$isTextNode(d)&&d.hasFormat("code"))});T.useEffect(()=>ut.mergeRegister(t.registerCommand(A.KEY_DOWN_COMMAND,async f=>{if(!e)return!1;if(f.key===":"){if(s()===!0)return!1;const d=await _a.search(e);if(d.length===0)return;if((d==null?void 0:d[0].id)===e)return a(d[0]),f.preventDefault(),!0}return!1},A.COMMAND_PRIORITY_HIGH)));const a=T.useCallback(f=>{t.update(()=>{const d=A.$getSelection();if(!A.$isRangeSelection(d)||f===null)return;const h=d.anchor.getNode(),g=f.id.length+1;h.spliceText(d.anchor.offset-g,g,f.skins[0].native,!0).setFormat(d.format),ui("Emoji Inserted",{method:"completed"})})},[t]);T.useEffect(()=>{if(!e){r(null);return}async function f(){let d=[];[")","-)"].includes(e)?d=await _a.search("smile"):["(","-("].includes(e)?d=await _a.search("frown"):d=await _a.search(e),r(d)}f()},[e]);const l=T.useCallback((f,d,h)=>{t.update(()=>{const g=A.$getSelection();if(!A.$isRangeSelection(g)||f===null)return;d&&d.remove();const m=A.$createTextNode(f.skins[0].native);m.setFormat(g.format),g.insertNodes([m]),h(),ui("Emoji Inserted",{method:"selected"})})},[t]);T.useEffect(()=>{const f=d=>{d.key==="Escape"&&r(null)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)});function u(){return{marginTop:`${window.getSelection().getRangeAt(0).getBoundingClientRect().height}px`}}return k.jsx(jOe.LexicalTypeaheadMenuPlugin,{menuRenderFn:(f,{selectedIndex:d,selectOptionAndCleanUp:h,setHighlightedIndex:g})=>f.current===null||!i||i.length===0?null:k.jsx(Gc,{className:"w-[240px]",to:f.current,children:k.jsx("ul",{className:"relative z-10 max-h-[214px] select-none scroll-p-2 list-none overflow-y-auto rounded-md bg-white p-1 shadow-md dark:bg-grey-950","data-testid":"emoji-menu",style:u(),children:i.map((m,y)=>k.jsx("div",{children:k.jsx(_Se,{emoji:m,index:y,isSelected:d===y,onClick:x=>{g(y),h(m),x.stopPropagation(),x.preventDefault()},onMouseEnter:()=>{g(y)}})},m.id))})}),options:i,triggerFn:o,onQueryChange:n,onSelectOption:l})}const OSe=({text:t="Type here"})=>k.jsx("div",{className:"pointer-events-none absolute left-0 top-0 !m-0 min-w-full cursor-text font-sans text-sm font-normal leading-[24px] tracking-wide text-grey-500 dark:text-grey-800",children:t});function SSe({parentEditor:t}){const[e]=Oe.useLexicalComposerContext(),{setCaptionHasFocus:n,captionHasFocus:i,nodeKey:r,isSelected:o}=T.useContext(rn),s=T.useCallback(a=>{o&&(a.target.matches("input, textarea")||!i&&a.key.length===1&&!a.ctrlKey&&!a.metaKey&&!a.altKey&&e.focus())},[e,i,o]);return T.useEffect(()=>(document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}),[s,e]),T.useEffect(()=>ut.mergeRegister(e.registerCommand(A.FOCUS_COMMAND,()=>(n(!0),!1),A.COMMAND_PRIORITY_LOW),e.registerCommand(A.BLUR_COMMAND,()=>(n(!1),!1),A.COMMAND_PRIORITY_LOW),e.registerCommand(A.KEY_ENTER_COMMAND,a=>document.querySelector("#typeahead-menu")||a.shiftKey?!1:(a._fromNested=!0,e._parentEditor.dispatchCommand(A.KEY_ENTER_COMMAND,a),!0),A.COMMAND_PRIORITY_LOW),e.registerCommand(A.KEY_ARROW_DOWN_COMMAND,a=>document.querySelector("#typeahead-menu")?!1:(a._fromCaptionEditor=!0,e._parentEditor.dispatchCommand(A.KEY_ARROW_DOWN_COMMAND,a),!0),A.COMMAND_PRIORITY_HIGH),e.registerCommand(A.KEY_ARROW_UP_COMMAND,a=>document.querySelector("#typeahead-menu")?!1:(a._fromCaptionEditor=!0,e._parentEditor.dispatchCommand(A.KEY_ARROW_UP_COMMAND,a),!0),A.COMMAND_PRIORITY_HIGH)),[e,n,t,r]),null}const CSe=({paragraphs:t=1,captionEditor:e,captionEditorInitialState:n,placeholderText:i,className:r="koenig-lexical-caption"})=>{const[o]=Oe.useLexicalComposerContext();return k.jsx(ZT,{initialEditor:e,initialEditorState:n,initialNodes:Qi,children:k.jsxs(D0,{className:r,markdownTransformers:sE,placeholder:k.jsx(OSe,{text:i}),children:[k.jsx(SSe,{parentEditor:o}),k.jsx(O1,{paragraphs:t}),k.jsx($y,{})]})})};function My({value:t,onChange:e,...n}){const i=r=>{e(r)};return k.jsx("input",{defaultValue:t,onChange:i,...n})}var Su={},Wr=A;function AC(t,e=!0){return t?!1:(t=pz(),e&&(t=t.trim()),t==="")}function pz(){return Wr.$getRoot().getTextContent()}function gz(t){if(!AC(t,!1))return!1;t=Wr.$getRoot().getChildren();let e=t.length;if(1<e)return!1;for(let i=0;i<e;i++){var n=t[i];if(Wr.$isDecoratorNode(n))return!1;if(Wr.$isElementNode(n)){if(!Wr.$isParagraphNode(n)||n.__indent!==0)return!1;n=n.getChildren();let r=n.length;for(let o=0;o<r;o++)if(!Wr.$isTextNode(n[i]))return!1}}return!0}Su.$canShowPlaceholder=gz,Su.$canShowPlaceholderCurry=function(t){return()=>gz(t)},Su.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Wr.$isElementNode(n)){var i=n.getFirstChild();if(i!==null){n=i;continue}}else if(Wr.$isTextNode(n)){if(i=n.getTextContentSize(),t+i>e)return{node:n,offset:e-t};t+=i}if(i=n.getNextSibling(),i!==null)n=i;else{for(n=n.getParent();n!==null;){if(i=n.getNextSibling(),i!==null){n=i;continue e}n=n.getParent()}break}}return null},Su.$isRootTextContentEmpty=AC,Su.$isRootTextContentEmptyCurry=function(t,e){return()=>AC(t,e)},Su.$rootTextContent=pz,Su.registerLexicalTextEntity=function(t,e,n,i){let r=s=>{const a=Wr.$createTextNode(s.getTextContent());a.setFormat(s.getFormat()),s.replace(a)},o=t.registerNodeTransform(Wr.TextNode,s=>{if(s.isSimpleText()){var a=s.getPreviousSibling(),l=s.getTextContent(),u=s;if(Wr.$isTextNode(a)){var f=a.getTextContent(),d=e(f+l);if(a instanceof n){if(d===null||a.getLatest().__mode!==0){r(a);return}if(d=d.end-f.length,0<d){u=l.slice(0,d),u=f+u,a.select(),a.setTextContent(u),d===l.length?s.remove():(a=l.slice(d),s.setTextContent(a));return}}else if(d===null||d.start<f.length)return}for(;;){if(s=e(l),l=d=s===null?"":l.slice(s.end),d===""){if(f=u.getNextSibling(),Wr.$isTextNode(f)){if(d=u.getTextContent()+f.getTextContent(),d=e(d),d===null){f instanceof n?r(f):f.markDirty();break}else if(d.start!==0)break}}else if(f=e(d),f!==null&&f.start===0)break;if(s===null)break;if(s.start===0&&Wr.$isTextNode(a)&&a.isTextEntity())continue;let h;if(s.start===0?[h,u]=u.splitText(s.end):[,h,u]=u.splitText(s.start,s.end),s=i(h),s.setFormat(h.getFormat()),h.replace(s),u==null)break}}});return t=t.registerNodeTransform(n,s=>{var a=s.getTextContent();const l=e(a);l===null||l.start!==0?r(s):a.length>l.end?s.splitText(l.end):(a=s.getPreviousSibling(),Wr.$isTextNode(a)&&a.isTextEntity()&&(r(a),r(s)),a=s.getNextSibling(),Wr.$isTextNode(a)&&a.isTextEntity()&&(r(a),s instanceof n&&r(s)))}),[o,t]};var cs=Su;function fs(t){return(t._pendingEditorState||t.getEditorState()).read(cs.$canShowPlaceholderCurry(!1))}function ESe({captionEditor:t,captionEditorInitialState:e,placeholder:n,dataTestId:i}){return k.jsx("div",{className:"m-0 w-full px-9 text-center","data-testid":i,"data-kg-allow-clickthrough":!0,children:k.jsx(CSe,{captionEditor:t,captionEditorInitialState:e,placeholderText:n})})}function TSe({value:t,placeholder:e,onChange:n,readOnly:i,dataTestId:r,autoFocus:o=!0}){const s=a=>{n==null||n(a.target.value)};return k.jsx(My,{autoFocus:o,className:"not-kg-prose w-full bg-transparent px-9 text-center font-sans text-sm font-normal leading-[1.625] tracking-wide text-grey-800 placeholder:text-grey-500 dark:text-grey-500 dark:placeholder:text-grey-800","data-testid":r,placeholder:e,readOnly:i,value:t,"data-koenig-dnd-disabled":!0,onChange:s})}function $Se({isEditingAlt:t,onClick:e}){return k.jsx("button",{className:`absolute bottom-0 right-0 m-2 cursor-pointer rounded-md border px-1 font-sans text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${t?"border-green bg-green text-white":"border-grey text-grey"} `,"data-testid":"alt-toggle-button",name:"alt-toggle-button",type:"button",onClick:e,children:"Alt"})}function dh({altText:t,altTextPlaceholder:e,setAltText:n,captionEditor:i,captionEditorInitialState:r,captionPlaceholder:o,isSelected:s,readOnly:a,dataTestId:l}){const[u,f]=T.useState(!1),d=m=>{m.stopPropagation(),f(!u)};T.useEffect(()=>{s||f(!1)},[s,f]);const h=fs(i),g=n&&s;return(s||!h)&&k.jsxs("figcaption",{className:"flex min-h-[40px] w-full p-2",children:[u?k.jsx(TSe,{dataTestId:l,placeholder:e,readOnly:a,value:t,onChange:n}):k.jsx(ESe,{captionEditor:i,captionEditorInitialState:r,dataTestId:l,placeholder:o}),g&&k.jsx($Se,{isEditingAlt:u,onClick:d})]})}class Ny{constructor(e,n,i,r,o,s,a,l,u,f=0,d){this.p=e,this.stack=n,this.state=i,this.reducePos=r,this.pos=o,this.score=s,this.buffer=a,this.bufferBase=l,this.curContext=u,this.lookAhead=f,this.parent=d}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let r=e.parser.context;return new Ny(e,[],n,i,i,0,[],0,r?new mz(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,r=e&65535,{parser:o}=this.p,s=o.dynamicPrecedence(r);if(s&&(this.score+=s),i==0){this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,4,!0),this.reduceContext(r,this.reducePos);return}let a=this.stack.length-(i-1)*3-(e&262144?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from,u=this.reducePos-l;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[r])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let f=a?this.stack[a-1]:0,d=this.bufferBase+this.buffer.length-f;if(r<o.minRepeatTerm||e&131072){let h=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,h,d+4,!0)}if(e&262144)this.state=this.stack[a];else{let h=this.stack[a-3];this.state=o.getGoto(h,r,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,n,i,r=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let s=this,a=this.buffer.length;if(a==0&&s.parent&&(a=s.bufferBase-s.parent.bufferBase,s=s.parent),a>0&&s.buffer[a-4]==0&&s.buffer[a-1]>-1){if(n==i)return;if(s.buffer[a-2]>=n){s.buffer[a-2]=i;return}}}if(!o||this.pos==i)this.buffer.push(e,n,i,r);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>i;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,r>4&&(r-=4);this.buffer[s]=e,this.buffer[s+1]=n,this.buffer[s+2]=i,this.buffer[s+3]=r}}shift(e,n,i,r){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=r,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,r,4);else{let o=e,{parser:s}=this.p;(r>this.pos||n<=s.maxNode)&&(this.pos=r,s.stateFlag(o,1)||(this.reducePos=r)),this.pushState(o,i),this.shiftContext(n,i),n<=s.maxNode&&this.buffer.push(n,i,r,4)}}apply(e,n,i,r){e&65536?this.reduce(e):this.shift(e,n,i,r)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(n,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),r=e.bufferBase+n;for(;e&&r==e.bufferBase;)e=e.parent;return new Ny(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new MSe(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(i==0)return!1;if(!(i&65536))return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let r=[];for(let o=0,s;o<n.length;o+=2)(s=n[o+1])!=this.state&&this.p.parser.hasAction(s,e)&&r.push(n[o],s);if(this.stack.length<120)for(let o=0;r.length<8&&o<n.length;o+=2){let s=n[o+1];r.some((a,l)=>l&1&&a==s)||r.push(n[o],s)}n=r}let i=[];for(let r=0;r<n.length&&i.length<4;r+=2){let o=n[r+1];if(o==this.state)continue;let s=this.split();s.pushState(o,this.pos),s.storeNode(0,s.pos,s.pos,4,!0),s.shiftContext(n[r],this.pos),s.reducePos=this.pos,s.score-=200,i.push(s)}return i}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if(!(n&65536))return!1;if(!e.validAction(this.state,n)){let i=n>>19,r=n&65535,o=this.stack.length-i*3;if(o<0||e.getGoto(this.stack[o],r,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(r,o)=>{if(!n.includes(r))return n.push(r),e.allActions(r,s=>{if(!(s&393216))if(s&65536){let a=(s>>19)-o;if(a>1){let l=s&65535,u=this.stack.length-a*3;if(u>=0&&e.getGoto(this.stack[u],l,!1)>=0)return a<<19|65536|l}}else{let a=i(s,o+1);if(a!=null)return a}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new mz(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class mz{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class MSe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=r}}class Ay{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new Ay(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Ay(this.stack,this.pos,this.index)}}function Xm(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let i=0,r=0;i<t.length;){let o=0;for(;;){let s=t.charCodeAt(i++),a=!1;if(s==126){o=65535;break}s>=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,a=!0),o+=l,a)break;o*=46}n?n[r++]=o:n=new e(o)}return n}class Py{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const vz=new Py;class NSe{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=vz,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,r=this.rangeIndex,o=this.pos+e;for(;o<i.from;){if(!r)return null;let s=this.ranges[--r];o-=i.from-s.to,i=s}for(;n<0?o>i.to:o>=i.to;){if(r==this.ranges.length-1)return null;let s=this.ranges[++r];o+=s.from-i.to,i=s}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,i,r;if(n>=0&&n<this.chunk.length)i=this.pos+e,r=this.chunk.charCodeAt(n);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(i=o,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let s=this.rangeIndex,a=this.range;for(;a.to<=i;)a=this.ranges[++s];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-i)),r=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),r}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=vz,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let r of this.ranges){if(r.from>=n)break;r.to>e&&(i+=this.input.read(Math.max(r.from,e),Math.min(r.to,n)))}return i}}class hh{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;bz(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}hh.prototype.contextual=hh.prototype.fallback=hh.prototype.extend=!1;class Dy{constructor(e,n,i){this.precTable=n,this.elseToken=i,this.data=typeof e=="string"?Xm(e):e}token(e,n){let i=e.pos,r=0;for(;;){let o=e.next<0,s=e.resolveOffset(1,1);if(bz(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(o||r++,s==null)break;e.reset(s,e.token)}r&&(e.reset(i,e.token),e.acceptToken(this.elseToken,r))}}Dy.prototype.contextual=hh.prototype.fallback=hh.prototype.extend=!1;class Ls{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function bz(t,e,n,i,r,o){let s=0,a=1<<i,{dialect:l}=n.p.parser;e:for(;a&t[s];){let u=t[s+1];for(let g=s+3;g<u;g+=2)if((t[g+1]&a)>0){let m=t[g];if(l.allows(m)&&(e.token.value==-1||e.token.value==m||ASe(m,e.token.value,r,o))){e.acceptToken(m);break}}let f=e.next,d=0,h=t[s+2];if(e.next<0&&h>d&&t[u+h*3-3]==65535){s=t[u+h*3-1];continue e}for(;d<h;){let g=d+h>>1,m=u+g+(g<<1),y=t[m],x=t[m+1]||65536;if(f<y)h=g;else if(f>=x)d=g+1;else{s=t[m+2],e.advance();continue e}}break}}function kz(t,e,n){for(let i=e,r;(r=t[i])!=65535;i++)if(r==n)return i-e;return-1}function ASe(t,e,n,i){let r=kz(n,i,e);return r<0||kz(n,i,t)<r}const Po=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let PC=null;function yz(t,e,n){let i=t.cursor(ln.IncludeAnonymous);for(i.moveTo(e);;)if(!(n<0?i.childBefore(e):i.childAfter(e)))for(;;){if((n<0?i.to<e:i.from>e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}class PSe{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?yz(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?yz(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let i=this.trees[n],r=this.index[n];if(r==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=i.children[r],s=this.start[n]+i.positions[r];if(s>e)return this.nextStart=s,null;if(o instanceof Fn){if(s==e){if(s<this.safeFrom)return null;let a=s+o.length;if(a<=this.safeTo){let l=o.prop(Et.lookAhead);if(!l||a+l<this.fragment.to)return o}}this.index[n]++,s+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+o.length}}}class DSe{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new Py)}getActions(e){let n=0,i=null,{parser:r}=e.p,{tokenizers:o}=r,s=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<o.length;u++){if(!(1<<u&s))continue;let f=o[u],d=this.tokens[u];if(!(i&&!f.fallback)&&((f.contextual||d.start!=e.pos||d.mask!=s||d.context!=a)&&(this.updateCachedToken(d,f,e),d.mask=s,d.context=a),d.lookAhead>d.end+25&&(l=Math.max(d.lookAhead,l)),d.value!=0)){let h=n;if(d.extended>-1&&(n=this.addActions(e,d.extended,d.end,n)),n=this.addActions(e,d.value,d.end,n),!f.extend&&(i=d,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&e.setLookAhead(l),!i&&e.pos==this.stream.end&&(i=new Py,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new Py,{pos:i,p:r}=e;return n.start=i,n.end=Math.min(i+1,r.stream.end),n.value=i==r.stream.end?r.parser.eofTerm:0,n}updateCachedToken(e,n,i){let r=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(r,e),i),e.value>-1){let{parser:o}=i.p;for(let s=0;s<o.specialized.length;s++)if(o.specialized[s]==e.value){let a=o.specializers[s](this.stream.read(e.start,e.end),i);if(a>=0&&i.p.parser.dialect.allows(a>>1)){a&1?e.extended=a>>1:e.value=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,n,i,r){for(let o=0;o<r;o+=3)if(this.actions[o]==e)return r;return this.actions[r++]=e,this.actions[r++]=n,this.actions[r++]=i,r}addActions(e,n,i,r){let{state:o}=e,{parser:s}=e.p,{data:a}=s;for(let l=0;l<2;l++)for(let u=s.stateSlot(o,l?2:1);;u+=3){if(a[u]==65535)if(a[u+1]==1)u=ll(a,u+2);else{r==0&&a[u+1]==2&&(r=this.putAction(ll(a,u+2),n,i,r));break}a[u]==n&&(r=this.putAction(ll(a,u+1),n,i,r))}return r}}class ISe{constructor(e,n,i,r){this.parser=e,this.input=n,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new NSe(n,r),this.tokens=new DSe(e,this.stream),this.topTerm=e.top[1];let{from:o}=r[0];this.stacks=[Ny.start(this,e.top[0],o)],this.fragments=i.length&&this.stream.end-o>e.bufferLength*4?new PSe(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,i=this.stacks=[],r,o;if(this.bigReductionCount>300&&e.length==1){let[s]=e;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<e.length;s++){let a=e[s];for(;;){if(this.tokens.mainToken=null,a.pos>n)i.push(a);else{if(this.advanceStack(a,i,e))continue;{r||(r=[],o=[]),r.push(a);let l=this.tokens.getMainToken(a);o.push(l.value,l.end)}}break}}if(!i.length){let s=r&&RSe(r);if(s)return Po&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw Po&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&r){let s=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,o,i);if(s)return Po&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(i.length>s)for(i.sort((a,l)=>l.score-a.score);i.length>s;)i.pop();i.some(a=>a.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let s=0;s<i.length-1;s++){let a=i[s];for(let l=s+1;l<i.length;l++){let u=i[l];if(a.sameState(u)||a.buffer.length>500&&u.buffer.length>500)if((a.score-u.score||a.buffer.length-u.buffer.length)>0)i.splice(l--,1);else{i.splice(s--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let s=1;s<i.length;s++)i[s].pos<this.minStackPos&&(this.minStackPos=i[s].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,i){let r=e.pos,{parser:o}=this,s=Po?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,f=u?e.curContext.hash:0;for(let d=this.fragments.nodeAt(r);d;){let h=this.parser.nodeSet.types[d.type.id]==d.type?o.getGoto(e.state,d.type.id):-1;if(h>-1&&d.length&&(!u||(d.prop(Et.contextHash)||0)==f))return e.useNode(d,h),Po&&console.log(s+this.stackID(e)+` (via reuse of ${o.getName(d.type.id)})`),!0;if(!(d instanceof Fn)||d.children.length==0||d.positions[0]>0)break;let g=d.children[0];if(g instanceof Fn&&d.positions[0]==0)d=g;else break}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),Po&&console.log(s+this.stackID(e)+` (via always-reduce ${o.getName(a&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;u<l.length;){let f=l[u++],d=l[u++],h=l[u++],g=u==l.length||!i,m=g?e:e.split(),y=this.tokens.mainToken;if(m.apply(f,d,y?y.start:m.pos,h),Po&&console.log(s+this.stackID(m)+` (via ${f&65536?`reduce of ${o.getName(f&65535)}`:"shift"} for ${o.getName(d)} @ ${r}${m==e?"":", split"})`),g)return!0;m.pos>r?n.push(m):i.push(m)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return wz(e,n),!0}}runRecovery(e,n,i){let r=null,o=!1;for(let s=0;s<e.length;s++){let a=e[s],l=n[s<<1],u=n[(s<<1)+1],f=Po?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),Po&&console.log(f+this.stackID(a)+" (restarted)"),this.advanceFully(a,i))))continue;let d=a.split(),h=f;for(let g=0;d.forceReduce()&&g<10&&(Po&&console.log(h+this.stackID(d)+" (via force-reduce)"),!this.advanceFully(d,i));g++)Po&&(h=this.stackID(d)+" -> ");for(let g of a.recoverByInsert(l))Po&&console.log(f+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,i);this.stream.end>a.pos?(u==a.pos&&(u++,l=0),a.recoverByDelete(l,u),Po&&console.log(f+this.stackID(a)+` (via recover-delete ${this.parser.getName(l)})`),wz(a,i)):(!r||r.score<a.score)&&(r=a)}return r}stackToTree(e){return e.close(),Fn.build({buffer:Ay.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(PC||(PC=new WeakMap)).get(e);return n||PC.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function wz(t,e){for(let n=0;n<e.length;n++){let i=e[n];if(i.pos==t.pos&&i.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class LSe{constructor(e,n,i){this.source=e,this.flags=n,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const DC=t=>t;class xz{constructor(e){this.start=e.start,this.shift=e.shift||DC,this.reduce=e.reduce||DC,this.reuse=e.reuse||DC,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class ph extends UL{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let a=0;a<e.repeatNodeCount;a++)n.push("");let i=Object.keys(e.topRules).map(a=>e.topRules[a][1]),r=[];for(let a=0;a<n.length;a++)r.push([]);function o(a,l,u){r[a].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let a of e.nodeProps){let l=a[0];typeof l=="string"&&(l=Et[l]);for(let u=1;u<a.length;){let f=a[u++];if(f>=0)o(f,l,a[u++]);else{let d=a[u+-f];for(let h=-f;h>0;h--)o(a[u++],l,d);u++}}}this.nodeSet=new S4(n.map((a,l)=>Br.define({name:l>=this.minRepeatTerm?void 0:a,id:l,props:r[l],top:i.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=RL;let s=Xm(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let a=0;a<this.specializerSpecs.length;a++)this.specialized[a]=this.specializerSpecs[a].term;this.specializers=this.specializerSpecs.map(_z),this.states=Xm(e.states,Uint32Array),this.data=Xm(e.stateData),this.goto=Xm(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(a=>typeof a=="number"?new hh(s,a):a),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let r=new ISe(this,e,n,i);for(let o of this.wrappers)r=o(r,e,n,i);return r}getGoto(e,n,i=!1){let r=this.goto;if(n>=r[0])return-1;for(let o=r[n+1];;){let s=r[o++],a=s&1,l=r[o++];if(a&&i)return l;for(let u=o+(s>>1);o<u;o++)if(r[o]==e)return l;if(a)return-1}}hasAction(e,n){let i=this.data;for(let r=0;r<2;r++)for(let o=this.stateSlot(e,r?2:1),s;;o+=3){if((s=i[o])==65535)if(i[o+1]==1)s=i[o=ll(i,o+2)];else{if(i[o+1]==2)return ll(i,o+2);break}if(s==n||s==0)return ll(i,o+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,i=>i==n?!0:null)}allActions(e,n){let i=this.stateSlot(e,4),r=i?n(i):void 0;for(let o=this.stateSlot(e,1);r==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=ll(this.data,o+2);else break;r=n(ll(this.data,o+1))}return r}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=ll(this.data,i+2);else break;if(!(this.data[i+2]&1)){let r=this.data[i+1];n.some((o,s)=>s&1&&o==r)||n.push(this.data[i],r)}}return n}configure(e){let n=Object.assign(Object.create(ph.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let r=e.tokenizers.find(o=>o.from==i);return r?r.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,r)=>{let o=e.specializers.find(a=>a.from==i.external);if(!o)return i;let s=Object.assign(Object.assign({},i),{external:o.to});return n.specializers[r]=_z(s),s})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let o of e.split(" ")){let s=n.indexOf(o);s>=0&&(i[s]=!0)}let r=null;for(let o=0;o<n.length;o++)if(!i[o])for(let s=this.dialects[n[o]],a;(a=this.data[s++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[a]=1;return new LSe(e,i,r)}static deserialize(e){return new ph(e)}}function ll(t,e){return t[e]|t[e+1]<<16}function RSe(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||i!=null&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function _z(t){if(t.external){let e=t.extend?1:0;return(n,i)=>t.external(n,i)<<1|e}return t.get}const jSe=101,Oz=1,FSe=102,zSe=103,Sz=2,Cz=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],BSe=58,WSe=40,Ez=95,HSe=91,Iy=45,QSe=46,USe=35,ZSe=37,qSe=38,YSe=92,VSe=10;function Gm(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Tz(t){return t>=48&&t<=57}const XSe=new Ls((t,e)=>{for(let n=!1,i=0,r=0;;r++){let{next:o}=t;if(Gm(o)||o==Iy||o==Ez||n&&Tz(o))!n&&(o!=Iy||r>0)&&(n=!0),i===r&&o==Iy&&i++,t.advance();else if(o==YSe&&t.peek(1)!=VSe)t.advance(),t.next>-1&&t.advance(),n=!0;else{n&&t.acceptToken(o==WSe?FSe:i==2&&e.canShift(Sz)?Sz:zSe);break}}}),GSe=new Ls(t=>{if(Cz.includes(t.peek(-1))){let{next:e}=t;(Gm(e)||e==Ez||e==USe||e==QSe||e==HSe||e==BSe&&Gm(t.peek(1))||e==Iy||e==qSe)&&t.acceptToken(jSe)}}),KSe=new Ls(t=>{if(!Cz.includes(t.peek(-1))){let{next:e}=t;if(e==ZSe&&(t.advance(),t.acceptToken(Oz)),Gm(e)){do t.advance();while(Gm(t.next)||Tz(t.next));t.acceptToken(Oz)}}}),JSe=Lk({"AtKeyword import charset namespace keyframes media supports":X.definitionKeyword,"from to selector":X.keyword,NamespaceName:X.namespace,KeyframeName:X.labelName,KeyframeRangeName:X.operatorKeyword,TagName:X.tagName,ClassName:X.className,PseudoClassName:X.constant(X.className),IdName:X.labelName,"FeatureName PropertyName":X.propertyName,AttributeName:X.attributeName,NumberLiteral:X.number,KeywordQuery:X.keyword,UnaryQueryOp:X.operatorKeyword,"CallTag ValueName":X.atom,VariableName:X.variableName,Callee:X.operatorKeyword,Unit:X.unit,"UniversalSelector NestingSelector":X.definitionOperator,MatchOp:X.compareOperator,"ChildOp SiblingOp, LogicOp":X.logicOperator,BinOp:X.arithmeticOperator,Important:X.modifier,Comment:X.blockComment,ColorLiteral:X.color,"ParenthesizedContent StringLiteral":X.string,":":X.punctuation,"PseudoOp #":X.derefOperator,"; ,":X.separator,"( )":X.paren,"[ ]":X.squareBracket,"{ }":X.brace}),e4e={__proto__:null,lang:34,"nth-child":34,"nth-last-child":34,"nth-of-type":34,"nth-last-of-type":34,dir:34,"host-context":34,url:62,"url-prefix":62,domain:62,regexp:62,selector:140},t4e={__proto__:null,"@import":120,"@media":144,"@charset":148,"@namespace":152,"@keyframes":158,"@supports":170},n4e={__proto__:null,not:134,only:134},i4e=ph.deserialize({version:14,states:":|QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$[QXO'#CaO$fQ[O'#CiO$qQ[O'#DUO$vQ[O'#DXOOQP'#Eo'#EoO${QdO'#DhO%jQ[O'#DuO${QdO'#DwO%{Q[O'#DyO&WQ[O'#D|O&`Q[O'#ESO&nQ[O'#EUOOQS'#En'#EnOOQS'#EX'#EXQYQ[OOO&uQXO'#CdO'jQWO'#DdO'oQWO'#EtO'zQ[O'#EtQOQWOOP(UO#tO'#C_POOO)C@^)C@^OOQP'#Ch'#ChOOQP,59Q,59QO#kQ[O,59QO(aQ[O,59TO$qQ[O,59pO$vQ[O,59sO(lQ[O,59vO(lQ[O,59xO(lQ[O,59yO(lQ[O'#E^O)WQWO,58{O)`Q[O'#DcOOQS,58{,58{OOQP'#Cl'#ClOOQO'#DS'#DSOOQP,59T,59TO)gQWO,59TO)lQWO,59TOOQP'#DW'#DWOOQP,59p,59pOOQO'#DY'#DYO)qQ`O,59sOOQS'#Cq'#CqO${QdO'#CrO)yQvO'#CtO+ZQtO,5:SOOQO'#Cy'#CyO)lQWO'#CxO+oQWO'#CzO+tQ[O'#DPOOQS'#Eq'#EqOOQO'#Dk'#DkO+|Q[O'#DrO,[QWO'#EuO&`Q[O'#DpO,jQWO'#DsOOQO'#Ev'#EvO)ZQWO,5:aO,oQpO,5:cOOQS'#D{'#D{O,wQWO,5:eO,|Q[O,5:eOOQO'#EO'#EOO-UQWO,5:hO-ZQWO,5:nO-cQWO,5:pOOQS-E8V-E8VO-kQdO,5:OO-{Q[O'#E`O.YQWO,5;`O.YQWO,5;`POOO'#EW'#EWP.eO#tO,58yPOOO,58y,58yOOQP1G.l1G.lOOQP1G.o1G.oO)gQWO1G.oO)lQWO1G.oOOQP1G/[1G/[O.pQ`O1G/_O/ZQXO1G/bO/qQXO1G/dO0XQXO1G/eO0oQXO,5:xOOQO-E8[-E8[OOQS1G.g1G.gO0yQWO,59}O1OQ[O'#DTO1VQdO'#CpOOQP1G/_1G/_O${QdO1G/_O1^QpO,59^OOQS,59`,59`O${QdO,59bO1fQWO1G/nOOQS,59d,59dO1kQ!bO,59fOOQS'#DQ'#DQOOQS'#EZ'#EZO1vQ[O,59kOOQS,59k,59kO2OQWO'#DkO2ZQWO,5:WO2`QWO,5:^O&`Q[O,5:YO2hQ[O'#EaO3PQWO,5;aO3[QWO,5:[O(lQ[O,5:_OOQS1G/{1G/{OOQS1G/}1G/}OOQS1G0P1G0PO3mQWO1G0PO3rQdO'#EPOOQS1G0S1G0SOOQS1G0Y1G0YOOQS1G0[1G0[O3}QtO1G/jOOQO1G/j1G/jOOQO,5:z,5:zO4eQ[O,5:zOOQO-E8^-E8^O4rQWO1G0zPOOO-E8U-E8UPOOO1G.e1G.eOOQP7+$Z7+$ZOOQP7+$y7+$yO${QdO7+$yOOQS1G/i1G/iO4}QXO'#EsO5XQWO,59oO5^QtO'#EYO6UQdO'#EpO6`QWO,59[O6eQpO7+$yOOQS1G.x1G.xOOQS1G.|1G.|OOQS7+%Y7+%YOOQS1G/Q1G/QO6mQWO1G/QOOQS-E8X-E8XOOQS1G/V1G/VO${QdO1G/rOOQO1G/x1G/xOOQO1G/t1G/tO6rQWO,5:{OOQO-E8_-E8_O7QQXO1G/yOOQS7+%k7+%kO7XQYO'#CtOOQO'#ER'#ERO7dQ`O'#EQOOQO'#EQ'#EQO7oQWO'#EbO7wQdO,5:kOOQS,5:k,5:kO8SQtO'#E_O${QdO'#E_O9TQdO7+%UOOQO7+%U7+%UOOQO1G0f1G0fO9hQpO<<HeO9pQ[O'#E]O9zQWO,5;_OOQP1G/Z1G/ZOOQS-E8W-E8WO:SQdO'#E[O:^QWO,5;[OOQT1G.v1G.vOOQP<<He<<HeOOQS7+$l7+$lO:fQdO7+%^OOQO7+%e7+%eOOQO,5:l,5:lO3uQdO'#EcO7oQWO,5:|OOQS,5:|,5:|OOQS-E8`-E8`OOQS1G0V1G0VO:mQtO,5:yOOQS-E8]-E8]OOQO<<Hp<<HpOOQPAN>PAN>PO;nQXO,5:wOOQO-E8Z-E8ZO;xQdO,5:vOOQO-E8Y-E8YOOQO<<Hx<<HxOOQO,5:},5:}OOQO-E8a-E8aOOQS1G0h1G0h",stateData:"<[~O#]OS#^QQ~OUYOXYOZTO^VO_VOrXOyWO!]aO!^ZO!j[O!l]O!n^O!q_O!w`O#ZRO~OQfOUYOXYOZTO^VO_VOrXOyWO!]aO!^ZO!j[O!l]O!n^O!q_O!w`O#ZeO~O#W#hP~P!ZO#^jO~O#ZlO~OZnO^oO_oOrqOypO!PrO!StO#XsO~OuuO!UwO~P#pOa}O#YzO#ZyO~O#Z!OO~O#Z!QO~OQ![Oc!TOg![Oi![Oo!YOr!ZO#Y!WO#Z!SO#f!UO~Oc!^O!e!`O!h!aO#Z!]O!U#iP~Oi!fOo!YO#Z!eO~Oi!hO#Z!hO~Oc!^O!e!`O!h!aO#Z!]O~O!Z#iP~P%jOZWX^WX^!XX_WXrWXuWXyWX!PWX!SWX!UWX#XWX~O^!mO~O!Z!nO#W#hX!T#hX~O#W#hX!T#hX~P!ZO#_!qO#`!qO#a!sO~Oa!wO#YzO#ZyO~OUYOXYOZTO^VO_VOrXOyWO#ZRO~OuuO!UwO~O!T#hP~P!ZOc#RO~Oc#SO~Oq#TO}#UO~OP#WOchXkhX!ZhX!ehX!hhX#ZhXbhXQhXghXihXohXrhXuhX!YhX#WhX#YhX#fhXqhX!ThX~Oc!^Ok#XO!e!`O!h!aO#Z!]O!Z#iP~Oc#[O~Oq#`O#Z#]O~Oc!^O!e!`O!h!aO#Z#aO~Ou#eO!c#dO!U#iX!Z#iX~Oc#hO~Ok#XO!Z#jO~O!Z#kO~Oi#lOo!YO~O!U#mO~O!UwO!c#dO~O!UwO!Z#pO~O!Y#rO!Z!Wa#W!Wa!T!Wa~P${O!Z#SX#W#SX!T#SX~P!ZO!Z!nO#W#ha!T#ha~O#_!qO#`!qO#a#xO~Oq#zO}#{O~OZnO^oO_oOrqOypO~Ou!Oi!P!Oi!S!Oi!U!Oi#X!Oib!Oi~P.xOu!Qi!P!Qi!S!Qi!U!Qi#X!Qib!Qi~P.xOu!Ri!P!Ri!S!Ri!U!Ri#X!Rib!Ri~P.xOu#Qa!U#Qa~P#pO!T#|O~Ob#gP~P(lOb#dP~P${Ob$TOk#XO~O!Z$VO~Ob$WOi$XOp$XO~Oq$ZO#Z#]O~O^!aXb!_X!c!_X~O^$[O~Ob$]O!c#dO~Oc!^O!e!`O!h!aO#Z!]Ou#TX!U#TX!Z#TX~Ou#eO!U#ia!Z#ia~O!c#dOu!da!U!da!Z!dab!da~O!Z$bO~O!T$iO#Z$dO#f$cO~Ok#XOu$kO!Y$mO!Z!Wi#W!Wi!T!Wi~P${O!Z#Sa#W#Sa!T#Sa~P!ZO!Z!nO#W#hi!T#hi~Ou$pOb#gX~P#pOb$rO~Ok#XOQ!|Xb!|Xc!|Xg!|Xi!|Xo!|Xr!|Xu!|X#Y!|X#Z!|X#f!|X~Ou$tOb#dX~P${Ob$vO~Ok#XOq$wO~Ob$xO~O!c#dOu#Ta!U#Ta!Z#Ta~Ob$zO~P#pOP#WOuhX!UhX~O#f$cOu!tX!U!tX~Ou$|O!UwO~O!T%QO#Z$dO#f$cO~Ok#XOQ#RXc#RXg#RXi#RXo#RXr#RXu#RX!Y#RX!Z#RX#W#RX#Y#RX#Z#RX#f#RX!T#RX~Ou$kO!Y%TO!Z!Wq#W!Wq!T!Wq~P${Ok#XOq%UO~Ob#PXu#PX~P(lOu$pOb#ga~Ob#OXu#OX~P${Ou$tOb#da~Ob%ZO~P${Ok#XOQ#Rac#Rag#Rai#Rao#Rar#Rau#Ra!Y#Ra!Z#Ra#W#Ra#Y#Ra#Z#Ra#f#Ra!T#Ra~Ob#Pau#Pa~P#pOb#Oau#Oa~P${O#]p#^#fk!S#f~",goto:"-o#kPPP#lP#oP#x$YP#xP$j#xPP$pPPP$v%P%PP%cP%PP%P%}&aPPPP%P&yP&}'T#xP'Z#x'aP#xP#x#xPPP'g'|(ZPP#oPP(b(b(l(bP(bP(b(bP#oP#oP#oP(o#oP(r(u(x)P#oP#oP)U)[)k)y*P*V*]*c*i*s*y+PPPPPPPPPPP+V+`,O,RP,w,z-Q-ZRkQ_bOPdhw!n#tmYOPdhrstuw!n#R#h#t$pmSOPdhrstuw!n#R#h#t$pQmTR!tnQ{VR!uoQ!u}Q#Z!XR#y!wq![Z]!T!m#S#U#X#q#{$Q$[$k$l$t$y%Xp![Z]!T!m#S#U#X#q#{$Q$[$k$l$t$y%XU$f#m$h$|R${$eq!XZ]!T!m#S#U#X#q#{$Q$[$k$l$t$y%Xp![Z]!T!m#S#U#X#q#{$Q$[$k$l$t$y%XQ!f^R#l!gT#^!Z#_Q|VR!voQ!u|R#y!vQ!PWR!xpQ!RXR!yqQxUQ#PvQ#i!cQ#o!jQ#p!kQ%O$gR%^$}SgPwQ!phQ#s!nR$n#tZfPhw!n#ta!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$g#m$hR%[$|V$e#m$h$|Q!rjR#w!rQdOShPwU!ldh#tR#t!nQ$Q#SU$s$Q$y%XQ$y$[R%X$tQ#_!ZR$Y#_Q$u$QR%Y$uQ$q#}R%W$qQvUR#OvQ$l#qR%S$lQ!ogS#u!o#vR#v!pQ#f!_R$`#fQ$h#mR%P$hQ$}$gR%]$}_cOPdhw!n#t^UOPdhw!n#tQ!zrQ!{sQ!|tQ!}uQ#}#RQ$a#hR%V$pR$R#SQ!VZQ!d]Q#V!TQ#q!m[$P#S$Q$[$t$y%XQ$S#UQ$U#XS$j#q$lQ$o#{R%R$kR$O#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$^#dR$_#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:118,nodeProps:[["isolate",-2,3,25,""],["openedBy",18,"(",33,"[",51,"{"],["closedBy",19,")",34,"]",52,"}"]],propSources:[JSe],skippedNodes:[0,3,88],repeatNodeCount:12,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSp`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#]~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#]~p`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUp`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Up`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUp`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Up`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUp`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Up`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUp`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Up`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!Y[p`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOi~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYyQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYp`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYp`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYg[p`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYg[p`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYp`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYg[p`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYp`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSg[p`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS}Sp`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSc^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOb~n9{UUQkWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWkW!SQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUp`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYp`#f[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYp`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUp`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUp`#f[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[p`#f[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSu^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWkWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VUZQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTkWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSp`#^~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#f[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU^QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S_Qp`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Z^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS}SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!PQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!PQp`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!]Qp`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSr^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSq^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUp`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!cQp`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!UUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!T^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!SQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[GSe,KSe,XSe,1,2,3,4,new Dy("m~RRYZ[z{a~~g~aO#`~~dP!P!Qg~lO#a~~",28,107)],topRules:{StyleSheet:[0,4],Styles:[1,87]},specialized:[{term:102,get:t=>e4e[t]||-1},{term:59,get:t=>t4e[t]||-1},{term:103,get:t=>n4e[t]||-1}],tokenPrec:1246});let IC=null;function LC(){if(!IC&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),n.has(i)||(e.push(i),n.add(i)));IC=e.sort().map(i=>({type:"property",label:i,apply:i+": "}))}return IC||[]}const $z=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),Mz=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),r4e=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),o4e=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),ul=/^(\w[\w-]*|-\w[\w-]*|)$/,s4e=/^-(-[\w-]*)?$/;function a4e(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let i=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return(i==null?void 0:i.name)!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const Nz=new QL,l4e=["Declaration"];function u4e(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function Az(t,e,n){if(e.to-e.from>4096){let i=Nz.get(e);if(i)return i;let r=[],o=new Set,s=e.cursor(ln.IncludeAnonymous);if(s.firstChild())do for(let a of Az(t,s.node,n))o.has(a.label)||(o.add(a.label),r.push(a));while(s.nextSibling());return Nz.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(o=>{var s;if(n(o)&&o.matchContext(l4e)&&((s=o.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let a=t.sliceString(o.from,o.to);r.has(a)||(r.add(a),i.push({label:a,type:"variable"}))}}),i}}const c4e=(t=>e=>{let{state:n,pos:i}=e,r=Gn(n).resolveInner(i,-1),o=r.type.isError&&r.from==r.to-1&&n.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(o||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:LC(),validFor:ul};if(r.name=="ValueName")return{from:r.from,options:Mz,validFor:ul};if(r.name=="PseudoClassName")return{from:r.from,options:$z,validFor:ul};if(t(r)||(e.explicit||o)&&a4e(r,n.doc))return{from:t(r)||o?r.from:i,options:Az(n.doc,u4e(r),t),validFor:s4e};if(r.name=="TagName"){for(let{parent:l}=r;l;l=l.parent)if(l.name=="Block")return{from:r.from,options:LC(),validFor:ul};return{from:r.from,options:r4e,validFor:ul}}if(r.name=="AtKeyword")return{from:r.from,options:o4e,validFor:ul};if(!e.explicit)return null;let s=r.resolve(i),a=s.childBefore(i);return a&&a.name==":"&&s.name=="PseudoClassSelector"?{from:i,options:$z,validFor:ul}:a&&a.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:i,options:Mz,validFor:ul}:s.name=="Block"||s.name=="Styles"?{from:i,options:LC(),validFor:ul}:null})(t=>t.name=="VariableName"),Ly=Kd.define({name:"css",parser:i4e.configure({props:[Hk.add({Declaration:Qk()}),Uk.add({"Block KeyframeList":lR})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Pz(){return new L4(Ly,Ly.data.of({autocomplete:c4e}))}const f4e=55,d4e=1,h4e=56,p4e=2,g4e=57,m4e=3,Dz=4,v4e=5,RC=6,Iz=7,Lz=8,Rz=9,jz=10,b4e=11,k4e=12,y4e=13,jC=58,w4e=14,x4e=15,Fz=59,zz=21,_4e=23,Bz=24,O4e=25,FC=27,Wz=28,S4e=29,C4e=32,E4e=35,T4e=37,$4e=38,M4e=0,N4e=1,A4e={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},P4e={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Hz={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function D4e(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let Qz=null,Uz=null,Zz=0;function zC(t,e){let n=t.pos+e;if(Zz==n&&Uz==t)return Qz;let i=t.peek(e),r="";for(;D4e(i);)r+=String.fromCharCode(i),i=t.peek(++e);return Uz=t,Zz=n,Qz=r?r.toLowerCase():i==I4e||i==L4e?void 0:null}const qz=60,Ry=62,BC=47,I4e=63,L4e=33,R4e=45;function Yz(t,e){this.name=t,this.parent=e}const j4e=[RC,jz,Iz,Lz,Rz],F4e=new xz({start:null,shift(t,e,n,i){return j4e.indexOf(e)>-1?new Yz(zC(i,1)||"",t):t},reduce(t,e){return e==zz&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==RC||r==T4e?new Yz(zC(i,1)||"",t):t},strict:!1}),z4e=new Ls((t,e)=>{if(t.next!=qz){t.next<0&&e.context&&t.acceptToken(jC);return}t.advance();let n=t.next==BC;n&&t.advance();let i=zC(t,0);if(i===void 0)return;if(!i)return t.acceptToken(n?x4e:w4e);let r=e.context?e.context.name:null;if(n){if(i==r)return t.acceptToken(b4e);if(r&&P4e[r])return t.acceptToken(jC,-2);if(e.dialectEnabled(M4e))return t.acceptToken(k4e);for(let o=e.context;o;o=o.parent)if(o.name==i)return;t.acceptToken(y4e)}else{if(i=="script")return t.acceptToken(Iz);if(i=="style")return t.acceptToken(Lz);if(i=="textarea")return t.acceptToken(Rz);if(A4e.hasOwnProperty(i))return t.acceptToken(jz);r&&Hz[r]&&Hz[r][i]?t.acceptToken(jC,-1):t.acceptToken(RC)}},{contextual:!0}),B4e=new Ls(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(Fz);break}if(t.next==R4e)e++;else if(t.next==Ry&&e>=2){n>=3&&t.acceptToken(Fz,-2);break}else e=0;t.advance()}});function W4e(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const H4e=new Ls((t,e)=>{if(t.next==BC&&t.peek(1)==Ry){let n=e.dialectEnabled(N4e)||W4e(e.context);t.acceptToken(n?v4e:Dz,2)}else t.next==Ry&&t.acceptToken(Dz,1)});function WC(t,e,n){let i=2+t.length;return new Ls(r=>{for(let o=0,s=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(o==0&&r.next==qz||o==1&&r.next==BC||o>=2&&o<i&&r.next==t.charCodeAt(o-2))o++,s++;else if(o==i&&r.next==Ry){a>s?r.acceptToken(e,-s):r.acceptToken(n,-(s-2));break}else if((r.next==10||r.next==13)&&a){r.acceptToken(e,1);break}else o=s=0;r.advance()}})}const Q4e=WC("script",f4e,d4e),U4e=WC("style",h4e,p4e),Z4e=WC("textarea",g4e,m4e),q4e=Lk({"Text RawText IncompleteTag IncompleteCloseTag":X.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":X.angleBracket,TagName:X.tagName,"MismatchedCloseTag/TagName":[X.tagName,X.invalid],AttributeName:X.attributeName,"AttributeValue UnquotedAttributeValue":X.attributeValue,Is:X.definitionOperator,"EntityReference CharacterReference":X.character,Comment:X.blockComment,ProcessingInst:X.processingInstruction,DoctypeDecl:X.documentMeta}),Y4e=ph.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO*qO7[O'#CwO+SOMhO'#CwOOQW1G.z1G.zOOO`1G/Q1G/QOOO`1G/T1G/TOOO`1G/W1G/WOOOO'#D]'#D]O+eO7[O,59cOOQW,59c,59cOOOO'#D^'#D^O+vOMhO,59cOOOO-E7Z-E7ZOOQW1G.}1G.}OOOO-E7[-E7[",stateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:F4e,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[q4e],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!b`!dpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYlWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]`aP!b`!dp!_^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebiSlWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXiSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vciSaP!b`!dpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!ahaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WiiSlWd!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zblWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOb!R!R7tP;=`<%l7S!Z8OYlWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{iiSlWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbiSlWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QciSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXiSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TalWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOc!R!RAwP;=`<%lAY!ZBRYlWc!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhiSlWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbiSlWc!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbiSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXiSc!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!cxaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYliSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_kiSaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_XaP!b`!dp!fQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZiSgQaPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!b`!dpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!b`!dpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!b`!dp!ePOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!b`!dpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!b`!dpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!b`!dpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!b`!dpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!b`!dpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!b`!dpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!b`!dpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!dpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO|PP!-nP;=`<%l!-Sq!-xS!dp|POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!b`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!b`|POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!b`!dp|POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!b`!dpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!b`!dpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!b`!dpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!b`!dpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!b`!dpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!b`!dpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Q4e,U4e,Z4e,H4e,z4e,B4e,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Vz(t,e){let n=Object.create(null);for(let i of t.getChildren(Bz)){let r=i.getChild(O4e),o=i.getChild(FC)||i.getChild(Wz);r&&(n[e.read(r.from,r.to)]=o?o.type.id==FC?e.read(o.from+1,o.to-1):e.read(o.from,o.to):"")}return n}function Xz(t,e){let n=t.getChild(_4e);return n?e.read(n.from,n.to):" "}function HC(t,e,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=Vz(t.node.parent.firstChild,e))))return{parser:r.parser};return null}function Gz(t=[],e=[]){let n=[],i=[],r=[],o=[];for(let a of t)(a.tag=="script"?n:a.tag=="style"?i:a.tag=="textarea"?r:o).push(a);let s=e.length?Object.create(null):null;for(let a of e)(s[a.name]||(s[a.name]=[])).push(a);return $xe((a,l)=>{let u=a.type.id;if(u==S4e)return HC(a,l,n);if(u==C4e)return HC(a,l,i);if(u==E4e)return HC(a,l,r);if(u==zz&&o.length){let f=a.node,d=f.firstChild,h=d&&Xz(d,l),g;if(h){for(let m of o)if(m.tag==h&&(!m.attrs||m.attrs(g||(g=Vz(d,l))))){let y=f.lastChild,x=y.type.id==$4e?y.from:f.to;if(x>d.to)return{parser:m.parser,overlay:[{from:d.to,to:x}]}}}}if(s&&u==Bz){let f=a.node,d;if(d=f.firstChild){let h=s[l.read(d.from,d.to)];if(h)for(let g of h){if(g.tagName&&g.tagName!=Xz(f.parent,l))continue;let m=f.lastChild;if(m.type.id==FC){let y=m.from+1,x=m.lastChild,_=m.to-(x&&x.isError?0:1);if(_>y)return{parser:g.parser,overlay:[{from:y,to:_}]}}else if(m.type.id==Wz)return{parser:g.parser,overlay:[{from:m.from,to:m.to}]}}}}return null})}const V4e=309,Kz=1,X4e=2,G4e=3,K4e=310,J4e=312,eCe=313,tCe=4,nCe=5,iCe=0,QC=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Jz=125,rCe=59,UC=47,oCe=42,sCe=43,aCe=45,lCe=60,uCe=44,cCe=new xz({start:!1,shift(t,e){return e==tCe||e==nCe||e==J4e?t:e==eCe},strict:!1}),fCe=new Ls((t,e)=>{let{next:n}=t;(n==Jz||n==-1||e.context)&&t.acceptToken(K4e)},{contextual:!0,fallback:!0}),dCe=new Ls((t,e)=>{let{next:n}=t,i;QC.indexOf(n)>-1||n==UC&&((i=t.peek(1))==UC||i==oCe)||n!=Jz&&n!=rCe&&n!=-1&&!e.context&&t.acceptToken(V4e)},{contextual:!0}),hCe=new Ls((t,e)=>{let{next:n}=t;if((n==sCe||n==aCe)&&(t.advance(),n==t.next)){t.advance();let i=!e.context&&e.canShift(Kz);t.acceptToken(i?Kz:X4e)}},{contextual:!0});function ZC(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const pCe=new Ls((t,e)=>{if(t.next!=lCe||!e.dialectEnabled(iCe)||(t.advance(),t.next==UC))return;let n=0;for(;QC.indexOf(t.next)>-1;)t.advance(),n++;if(ZC(t.next,!0)){for(t.advance(),n++;ZC(t.next,!1);)t.advance(),n++;for(;QC.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==uCe)return;for(let i=0;;i++){if(i==7){if(!ZC(t.next,!0))return;break}if(t.next!="extends".charCodeAt(i))break;t.advance(),n++}}t.acceptToken(G4e,-n)}),gCe=Lk({"get set async static":X.modifier,"for while do if else switch try catch finally return throw break continue default case":X.controlKeyword,"in of await yield void typeof delete instanceof":X.operatorKeyword,"let var const using function class extends":X.definitionKeyword,"import export from":X.moduleKeyword,"with debugger as new":X.keyword,TemplateString:X.special(X.string),super:X.atom,BooleanLiteral:X.bool,this:X.self,null:X.null,Star:X.modifier,VariableName:X.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":X.function(X.variableName),VariableDefinition:X.definition(X.variableName),Label:X.labelName,PropertyName:X.propertyName,PrivatePropertyName:X.special(X.propertyName),"CallExpression/MemberExpression/PropertyName":X.function(X.propertyName),"FunctionDeclaration/VariableDefinition":X.function(X.definition(X.variableName)),"ClassDeclaration/VariableDefinition":X.definition(X.className),PropertyDefinition:X.definition(X.propertyName),PrivatePropertyDefinition:X.definition(X.special(X.propertyName)),UpdateOp:X.updateOperator,"LineComment Hashbang":X.lineComment,BlockComment:X.blockComment,Number:X.number,String:X.string,Escape:X.escape,ArithOp:X.arithmeticOperator,LogicOp:X.logicOperator,BitOp:X.bitwiseOperator,CompareOp:X.compareOperator,RegExp:X.regexp,Equals:X.definitionOperator,Arrow:X.function(X.punctuation),": Spread":X.punctuation,"( )":X.paren,"[ ]":X.squareBracket,"{ }":X.brace,"InterpolationStart InterpolationEnd":X.special(X.brace),".":X.derefOperator,", ;":X.separator,"@":X.meta,TypeName:X.typeName,TypeDefinition:X.definition(X.typeName),"type enum interface implements namespace module declare":X.definitionKeyword,"abstract global Privacy readonly override":X.modifier,"is keyof unique infer":X.operatorKeyword,JSXAttributeValue:X.attributeValue,JSXText:X.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":X.angleBracket,"JSXIdentifier JSXNameSpacedName":X.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":X.attributeName,"JSXBuiltin/JSXIdentifier":X.standard(X.tagName)}),mCe={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},vCe={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},bCe={__proto__:null,"<":143},kCe=ph.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#EuO:qQ7[O'#FbO;`QWO'#GmOOQO'#KV'#KVO;eQWO'#KVO;sQWO'#GuO;sQWO'#GvO;sQWO'#GxO9aQWO'#G{O<jQWO'#HOO>RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#EjOA]QWO'#EjOAhQpO'#FbOOQU'#Cf'#CfOOQ07`'#Dn'#DnOOQ07`'#Jm'#JmO%[Q^O'#JmOOQO'#Jq'#JqOOQO'#Ib'#IbOBhQ`O'#EcOOQ07`'#Eb'#EbOCdQ07pO'#EcOCnQ`O'#EVOOQO'#Jp'#JpODSQ`O'#JqOEaQ`O'#EVOCnQ`O'#EcPEnO!0LbO'#CaPOOO)CDu)CDuOOOO'#IX'#IXOEyO!bO,59TOOQ07b,59T,59TOOOO'#IY'#IYOFXO#tO,59TO%[Q^O'#D`OOOO'#I['#I[OFgO?MpO,59xOOQ07b,59x,59xOFuQ^O'#I]OGYQWO'#JkOI[QrO'#JkO+}Q^O'#JkOIcQWO,5:OOIyQWO'#ElOJWQWO'#JyOJcQWO'#JxOJcQWO'#JxOJkQWO,5;YOJpQWO'#JwOOQ07f,5:Z,5:ZOJwQ^O,5:ZOLxQ08SO,5:eOMiQWO,5:mONSQ07hO'#JvONZQWO'#JuO9ZQWO'#JuONoQWO'#JuONwQWO,5;XON|QWO'#JuO!#UQrO'#JjOOQ07b'#Ch'#ChO%[Q^O'#ERO!#tQpO,5:rOOQO'#Jr'#JrOOQO-E<c-E<cO9aQWO,5=XO!$[QWO,5=XO!$aQ^O,5;VO!&dQ7[O'#EgO!'}QWO,5;VO!)mQ7[O'#DsO!)tQ^O'#DxO!*OQ`O,5;`O!*WQ`O,5;`O%[Q^O,5;`OOQU'#FR'#FROOQU'#FT'#FTO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aO%[Q^O,5;aOOQU'#FX'#FXO!*fQ^O,5;rOOQ07b,5;w,5;wOOQ07b,5;x,5;xO!,iQWO,5;xOOQ07b,5;y,5;yO%[Q^O'#IiO!,qQ07hO,5<eO!&dQ7[O,5;aO!-`Q7[O,5;aO%[Q^O,5;uO!-gQ&jO'#FgO!.dQ&jO'#J}O!.OQ&jO'#J}O!.kQ&jO'#J}OOQO'#J}'#J}O!/PQ&jO,5<POOOS,5<],5<]O!/bQ^O'#FsOOOS'#Ih'#IhO7YO,YO,5;}O!/iQ&jO'#FuOOQ07b,5;},5;}O!0YQMhO'#CuOOQ07b'#Cy'#CyO!0mQWO'#CyO!0rO?MpO'#C}O!1`Q7[O,5<bO!1gQWO,5<dO!3SQ!LQO'#GSO!3aQWO'#GTO!3fQWO'#GTO!3kQ!LQO'#GXO!4jQ`O'#G]OOQO'#Gh'#GhO!(SQ7[O'#GgOOQO'#Gj'#GjO!(SQ7[O'#GiO!5]QMhO'#JdOOQ07b'#Jd'#JdO!5gQWO'#JcO!5uQWO'#JbO!5}QWO'#CtOOQ07b'#Cw'#CwOOQ07b'#DR'#DROOQ07b'#DT'#DTO1SQWO'#DVO!(SQ7[O'#FzO!(SQ7[O'#F|O!6VQWO'#GOO!6[QWO'#GPO!3fQWO'#GVO!(SQ7[O'#G[O!6aQWO'#EmO!7OQWO,5<cOOQ07`'#Cq'#CqO!7WQWO'#EnO!8QQ`O'#EoOOQ07`'#Jw'#JwO!8XQ07hO'#KWO9kQ07hO,5=]O`Q^O,5>mOOQU'#J`'#J`OOQU,5>n,5>nOOQU-E<U-E<UO!:ZQ08SO,5:]O!<wQ08SO,5:iO%[Q^O,5:iO!?bQ08SO,5:kOOQO,5@q,5@qO!@RQ7[O,5=XO!@aQ07hO'#JaO9UQWO'#JaO!@rQ07hO,59YO!@}Q`O,59YO!AVQ7[O,59YO:RQ7[O,59YO!AbQWO,5;VO!AjQWO'#HZO!BOQWO'#KZO%[Q^O,5;zO!7{Q`O,5;|O!BWQWO,5=tO!B]QWO,5=tO!BbQWO,5=tO9kQ07hO,5=tO;sQWO,5=dOOQO'#Cu'#CuO!BpQ`O,5=aO!BxQ7[O,5=bO!CTQWO,5=dO!CYQpO,5=gO!CbQWO'#KVO>pQWO'#HQO9aQWO'#HSO!CgQWO'#HSO:RQ7[O'#HUO!ClQWO'#HUOOQU,5=j,5=jO!CqQWO'#HVO!DSQWO'#CnO!DXQWO,59OO!DcQWO,59OO!FhQ^O,59OOOQU,59O,59OO!FxQ07hO,59OO%[Q^O,59OO!ITQ^O'#H^OOQU'#H_'#H_OOQU'#H`'#H`O`Q^O,5=vO!IkQWO,5=vO`Q^O,5=|O`Q^O,5>OO!IpQWO,5>QO`Q^O,5>SO!IuQWO,5>VO!IzQ^O,5>]OOQU,5>c,5>cO%[Q^O,5>cO9kQ07hO,5>eOOQU,5>g,5>gO!NUQWO,5>gOOQU,5>i,5>iO!NUQWO,5>iOOQU,5>k,5>kO!NZQ`O'#D[O%[Q^O'#JmO!NxQ`O'#JmO# gQ`O'#DjO# xQ`O'#DjO#$ZQ^O'#DjO#$bQWO'#JlO#$jQWO,5:TO#$oQWO'#EpO#$}QWO'#JzO#%VQWO,5;ZO#%[Q`O'#DjO#%iQ`O'#EUOOQ07b,5:n,5:nO%[Q^O,5:nO#%pQWO,5:nO>pQWO,5;UO!@}Q`O,5;UO!AVQ7[O,5;UO:RQ7[O,5;UO#%xQWO,5@XO#%}Q$ISO,5:rOOQO-E<`-E<`O#'TQ07pO,5:}OCnQ`O,5:qO#'_Q`O,5:qOCnQ`O,5:}O!@rQ07hO,5:qOOQ07`'#Ef'#EfOOQO,5:},5:}O%[Q^O,5:}O#'lQ07hO,5:}O#'wQ07hO,5:}O!@}Q`O,5:qOOQO,5;T,5;TO#(VQ07hO,5:}POOO'#IV'#IVP#(kO!0LbO,58{POOO,58{,58{OOOO-E<V-E<VOOQ07b1G.o1G.oOOOO-E<W-E<WO#(vQpO,59zOOOO-E<Y-E<YOOQ07b1G/d1G/dO#({QrO,5>wO+}Q^O,5>wOOQO,5>},5>}O#)VQ^O'#I]OOQO-E<Z-E<ZO#)dQWO,5@VO#)lQrO,5@VO#)sQWO,5@dOOQ07b1G/j1G/jO%[Q^O,5@eO#){QWO'#IcOOQO-E<a-E<aO#)sQWO,5@dOOQ07`1G0t1G0tOOQ07f1G/u1G/uOOQ07f1G0X1G0XO%[Q^O,5@bO#*aQ07hO,5@bO#*rQ07hO,5@bO#*yQWO,5@aO9ZQWO,5@aO#+RQWO,5@aO#+aQWO'#IfO#*yQWO,5@aOOQ07`1G0s1G0sO!*OQ`O,5:tO!*ZQ`O,5:tOOQO,5:v,5:vO#,RQWO,5:vO#,ZQ7[O1G2sO9aQWO1G2sOOQ07b1G0q1G0qO#,iQ08SO1G0qO#-nQ08QO,5;ROOQ07b'#GR'#GRO#.[Q08SO'#JdO!$aQ^O1G0qO#0dQ7[O'#JnO#0nQWO,5:_O#0sQrO'#JoO%[Q^O'#JoO#0}QWO,5:dOOQ07b'#D['#D[OOQ07b1G0z1G0zO%[Q^O1G0zOOQ07b1G1d1G1dO#1SQWO1G0zO#3kQ08SO1G0{O#3rQ08SO1G0{O#6]Q08SO1G0{O#6dQ08SO1G0{O#8nQ08SO1G0{O#9UQ08SO1G0{O#<OQ08SO1G0{O#<VQ08SO1G0{O#>pQ08SO1G0{O#>wQ08SO1G0{O#@oQ08SO1G0{O#CoQ(CYO'#ChO#EmQ(CYO1G1^O#EtQ(CYO'#JjO!,lQWO1G1dO#FUQ08SO,5?TOOQ07`-E<g-E<gO#FxQ08SO1G0{OOQ07b1G0{1G0{O#ITQ08SO1G1aO#IwQ&jO,5<TO#JPQ&jO,5<UO#JXQ&jO'#FlO#JpQWO'#FkOOQO'#KO'#KOOOQO'#Ig'#IgO#JuQ&jO1G1kOOQ07b1G1k1G1kOOOS1G1v1G1vO#KWQ(CYO'#JiO#KbQWO,5<_O!*fQ^O,5<_OOOS-E<f-E<fOOQ07b1G1i1G1iO#KgQ`O'#J}OOQ07b,5<a,5<aO#KoQ`O,5<aOOQ07b,59e,59eO!&dQ7[O'#DPOOOO'#IZ'#IZO#KtO?MpO,59iOOQ07b,59i,59iO%[Q^O1G1|O!6[QWO'#IkO#LPQ7[O,5<uOOQ07b,5<r,5<rO!(SQ7[O'#InO#LoQ7[O,5=RO!(SQ7[O'#IpO#MbQ7[O,5=TO!&dQ7[O,5=VOOQO1G2O1G2OO#MlQpO'#CqO#NPQpO,5<nO#NWQWO'#KRO9aQWO'#KRO#NfQWO,5<pO!(SQ7[O,5<oO#NkQWO'#GUO#NvQWO,5<oO#N{QpO'#GRO$ YQpO'#KSO$ dQWO'#KSO!&dQ7[O'#KSO$ iQWO,5<sO$ nQ`O'#G^O!4eQ`O'#G^O$!PQWO'#G`O$!UQWO'#GbO!3fQWO'#GeO$!ZQ07hO'#ImO$!fQ`O,5<wOOQ07f,5<w,5<wO$!mQ`O'#G^O$!{Q`O'#G_O$#TQ`O'#G_O$#YQ7[O,5=RO$#jQ7[O,5=TOOQ07b,5=W,5=WO!(SQ7[O,5?}O!(SQ7[O,5?}O$#zQWO'#IrO$$VQWO,5?|O$$_QWO,59`O$%OQ7[O,59qOOQ07b,59q,59qO$%qQ7[O,5<fO$&dQ7[O,5<hO@bQWO,5<jOOQ07b,5<k,5<kO$&nQWO,5<qO$&sQ7[O,5<vO$'TQWO'#JuO!$aQ^O1G1}O$'YQWO1G1}O9ZQWO'#JxO9ZQWO'#EpO%[Q^O'#EpO9ZQWO'#ItO$'_Q07hO,5@rOOQU1G2w1G2wOOQU1G4X1G4XOOQ07b1G/w1G/wO!,iQWO1G/wO$)dQ08SO1G0TOOQU1G2s1G2sO!&dQ7[O1G2sO%[Q^O1G2sO#,^QWO1G2sO$+hQ7[O'#EgOOQ07`,5?{,5?{O$+rQ07hO,5?{OOQU1G.t1G.tO!@rQ07hO1G.tO!@}Q`O1G.tO!AVQ7[O1G.tO$,TQWO1G0qO$,YQWO'#ChO$,eQWO'#K[O$,mQWO,5=uO$,rQWO'#K[O$,wQWO'#K[O$-VQWO'#IzO$-eQWO,5@uO$-mQrO1G1fOOQ07b1G1h1G1hO9aQWO1G3`O@bQWO1G3`O$-tQWO1G3`O$-yQWO1G3`OOQU1G3`1G3`O!CTQWO1G3OO!&dQ7[O1G2{O$.OQWO1G2{OOQU1G2|1G2|O!&dQ7[O1G2|O$.TQWO1G2|O$.]Q`O'#GzOOQU1G3O1G3OO!4eQ`O'#IvO!CYQpO1G3ROOQU1G3R1G3ROOQU,5=l,5=lO$.eQ7[O,5=nO9aQWO,5=nO$!UQWO,5=pO9UQWO,5=pO!@}Q`O,5=pO!AVQ7[O,5=pO:RQ7[O,5=pO$.sQWO'#KYO$/OQWO,5=qOOQU1G.j1G.jO$/TQ07hO1G.jO@bQWO1G.jO$/`QWO1G.jO9kQ07hO1G.jO$1eQrO,5@wO$1uQWO,5@wO9ZQWO,5@wO$2QQ^O,5=xO$2XQWO,5=xOOQU1G3b1G3bO`Q^O1G3bOOQU1G3h1G3hOOQU1G3j1G3jO>kQWO1G3lO$2^Q^O1G3nO$6bQ^O'#HmOOQU1G3q1G3qO$6oQWO'#HsO>pQWO'#HuOOQU1G3w1G3wO$6wQ^O1G3wO9kQ07hO1G3}OOQU1G4P1G4POOQ07`'#GY'#GYO9kQ07hO1G4RO9kQ07hO1G4TO$;OQWO,5@XO!*fQ^O,5;[O9ZQWO,5;[O>pQWO,5:UO!*fQ^O,5:UO!@}Q`O,5:UO$;TQ(CYO,5:UOOQO,5;[,5;[O$;_Q`O'#I^O$;uQWO,5@WOOQ07b1G/o1G/oO$;}Q`O'#IdO$<XQWO,5@fOOQ07`1G0u1G0uO# xQ`O,5:UOOQO'#Ia'#IaO$<aQ`O,5:pOOQ07f,5:p,5:pO#%sQWO1G0YOOQ07b1G0Y1G0YO%[Q^O1G0YOOQ07b1G0p1G0pO>pQWO1G0pO!@}Q`O1G0pO!AVQ7[O1G0pOOQ07`1G5s1G5sO!@rQ07hO1G0]OOQO1G0i1G0iO%[Q^O1G0iO$<hQ07hO1G0iO$<sQ07hO1G0iO!@}Q`O1G0]OCnQ`O1G0]O$=RQ07hO1G0iOOQO1G0]1G0]O$=gQ08SO1G0iPOOO-E<T-E<TPOOO1G.g1G.gOOOO1G/f1G/fO$=qQpO,5<eO$=yQrO1G4cOOQO1G4i1G4iO%[Q^O,5>wO$>TQWO1G5qO$>]QWO1G6OO$>eQrO1G6PO9ZQWO,5>}O$>oQ08SO1G5|O%[Q^O1G5|O$?PQ07hO1G5|O$?bQWO1G5{O$?bQWO1G5{O9ZQWO1G5{O$?jQWO,5?QO9ZQWO,5?QOOQO,5?Q,5?QO$@OQWO,5?QO$'TQWO,5?QOOQO-E<d-E<dOOQO1G0`1G0`OOQO1G0b1G0bO!,lQWO1G0bOOQU7+(_7+(_O!&dQ7[O7+(_O%[Q^O7+(_O$@^QWO7+(_O$@iQ7[O7+(_O$@wQ08SO,5=RO$CSQ08SO,5=TO$E_Q08SO,5=RO$GpQ08SO,5=TO$JRQ08SO,59qO$LZQ08SO,5<fO$NfQ08SO,5<hO%!qQ08SO,5<vOOQ07b7+&]7+&]O%%SQ08SO7+&]O%%vQ7[O'#I_O%&QQWO,5@YOOQ07b1G/y1G/yO%&YQ^O'#I`O%&gQWO,5@ZO%&oQrO,5@ZOOQ07b1G0O1G0OO%&yQWO7+&fOOQ07b7+&f7+&fO%'OQ(CYO,5:eO%[Q^O7+&xO%'YQ(CYO,5:]O%'gQ(CYO,5:iO%'qQ(CYO,5:kOOQ07b7+'O7+'OOOQO1G1o1G1oOOQO1G1p1G1pO%'{QtO,5<WO!*fQ^O,5<VOOQO-E<e-E<eOOQ07b7+'V7+'VOOOS7+'b7+'bOOOS1G1y1G1yO%(WQWO1G1yOOQ07b1G1{1G1{O%(]QpO,59kOOOO-E<X-E<XOOQ07b1G/T1G/TO%(dQ08SO7+'hOOQ07b,5?V,5?VO%)WQpO,5?VOOQ07b1G2a1G2aP!&dQ7[O'#IkPOQ07b-E<i-E<iO%)vQ7[O,5?YOOQ07b-E<l-E<lO%*iQ7[O,5?[OOQ07b-E<n-E<nO%*sQpO1G2qOOQ07b1G2Y1G2YO%*zQWO'#IjO%+YQWO,5@mO%+YQWO,5@mO%+bQWO,5@mO%+mQWO,5@mOOQO1G2[1G2[O%+{Q7[O1G2ZO!(SQ7[O1G2ZO%,]Q!LQO'#IlO%,mQWO,5@nO!&dQ7[O,5@nO%,uQpO,5@nOOQ07b1G2_1G2_OOQ07`,5<x,5<xOOQ07`,5<y,5<yO$'TQWO,5<yOC_QWO,5<yO!@}Q`O,5<xOOQO'#Ga'#GaO%-PQWO,5<zOOQ07`,5<|,5<|O$'TQWO,5=POOQO,5?X,5?XOOQO-E<k-E<kOOQ07f1G2c1G2cO!4eQ`O,5<xO%-XQWO,5<yO$!PQWO,5<zO!4eQ`O,5<yO!(SQ7[O'#InO%-{Q7[O1G2mO!(SQ7[O'#IpO%.nQ7[O1G2oO%.xQ7[O1G5iO%/SQ7[O1G5iOOQO,5?^,5?^OOQO-E<p-E<pOOQO1G.z1G.zO!7{Q`O,59sO%[Q^O,59sO%/aQWO1G2UO!(SQ7[O1G2]O%/fQ08SO7+'iOOQ07b7+'i7+'iO!$aQ^O7+'iO%0YQWO,5;[OOQ07`,5?`,5?`OOQ07`-E<r-E<rOOQ07b7+%c7+%cO%0_QpO'#KTO#%sQWO7+(_O%0iQrO7+(_O$@aQWO7+(_O%0pQ08QO'#ChO%1TQ08QO,5<}O%1uQWO,5<}OOQ07`1G5g1G5gOOQU7+$`7+$`O!@rQ07hO7+$`O!@}Q`O7+$`O!$aQ^O7+&]O%1zQWO'#IyO%2cQWO,5@vOOQO1G3a1G3aO9aQWO,5@vO%2cQWO,5@vO%2kQWO,5@vOOQO,5?f,5?fOOQO-E<x-E<xOOQ07b7+'Q7+'QO%2pQWO7+(zO9kQ07hO7+(zO9aQWO7+(zO@bQWO7+(zOOQU7+(j7+(jO%2uQ08QO7+(gO!&dQ7[O7+(gO%3PQpO7+(hOOQU7+(h7+(hO!&dQ7[O7+(hO%3WQWO'#KXO%3cQWO,5=fOOQO,5?b,5?bOOQO-E<t-E<tOOQU7+(m7+(mO%4rQ`O'#HTOOQU1G3Y1G3YO!&dQ7[O1G3YO%[Q^O1G3YO%4yQWO1G3YO%5UQ7[O1G3YO9kQ07hO1G3[O$!UQWO1G3[O9UQWO1G3[O!@}Q`O1G3[O!AVQ7[O1G3[O%5dQWO'#IxO%5xQWO,5@tO%6QQ`O,5@tOOQ07`1G3]1G3]OOQU7+$U7+$UO@bQWO7+$UO9kQ07hO7+$UO%6]QWO7+$UO%[Q^O1G6cO%[Q^O1G6dO%6bQ07hO1G6cO%6lQ^O1G3dO%6sQWO1G3dO%6xQ^O1G3dOOQU7+(|7+(|O9kQ07hO7+)WO`Q^O7+)YOOQU'#K_'#K_OOQU'#I{'#I{O%7PQ^O,5>XOOQU,5>X,5>XO%[Q^O'#HnO%7^QWO'#HpOOQU,5>_,5>_O9ZQWO,5>_OOQU,5>a,5>aOOQU7+)c7+)cOOQU7+)i7+)iOOQU7+)m7+)mOOQU7+)o7+)oO%7cQ`O1G5sO%7wQ(CYO1G0vO%8RQWO1G0vOOQO1G/p1G/pO%8^Q(CYO1G/pO>pQWO1G/pO!*fQ^O'#DjOOQO,5>x,5>xOOQO-E<[-E<[OOQO,5?O,5?OOOQO-E<b-E<bO!@}Q`O1G/pOOQO-E<_-E<_OOQ07f1G0[1G0[OOQ07b7+%t7+%tO#%sQWO7+%tOOQ07b7+&[7+&[O>pQWO7+&[O!@}Q`O7+&[OOQO7+%w7+%wO$=gQ08SO7+&TOOQO7+&T7+&TO%[Q^O7+&TO%8hQ07hO7+&TO!@rQ07hO7+%wO!@}Q`O7+%wO%8sQ07hO7+&TO%9RQ08SO7++hO%[Q^O7++hO%9cQWO7++gO%9cQWO7++gOOQO1G4l1G4lO9ZQWO1G4lO%9kQWO1G4lOOQO7+%|7+%|O#%sQWO<<KyO%0iQrO<<KyO%9yQWO<<KyOOQU<<Ky<<KyO!&dQ7[O<<KyO%[Q^O<<KyO%:RQWO<<KyO%:^Q08SO,5?YO%<iQ08SO,5?[O%>tQ08SO1G2ZO%AVQ08SO1G2mO%CbQ08SO1G2oO%EmQ7[O,5>yOOQO-E<]-E<]O%EwQrO,5>zO%[Q^O,5>zOOQO-E<^-E<^O%FRQWO1G5uOOQ07b<<JQ<<JQO%FZQ(CYO1G0qO%HeQ(CYO1G0{O%HlQ(CYO1G0{O%JpQ(CYO1G0{O%JwQ(CYO1G0{O%LlQ(CYO1G0{O%MSQ(CYO1G0{O& gQ(CYO1G0{O& nQ(CYO1G0{O&#rQ(CYO1G0{O&#yQ(CYO1G0{O&%qQ(CYO1G0{O&&UQ08SO<<JdO&'ZQ(CYO1G0{O&)PQ(CYO'#JdO&+SQ(CYO1G1aO&+aQ(CYO1G0TO!*fQ^O'#FnOOQO'#KP'#KPOOQO1G1r1G1rO&+kQWO1G1qO&+pQ(CYO,5?TOOOS7+'e7+'eOOOO1G/V1G/VOOQ07b1G4q1G4qO!(SQ7[O7+(]O&+zQWO,5?UO9aQWO,5?UOOQO-E<h-E<hO&,YQWO1G6XO&,YQWO1G6XO&,bQWO1G6XO&,mQ7[O7+'uO&,}QpO,5?WO&-XQWO,5?WO!&dQ7[O,5?WOOQO-E<j-E<jO&-^QpO1G6YO&-hQWO1G6YOOQ07`1G2e1G2eO$'TQWO1G2eOOQ07`1G2d1G2dO&-pQWO1G2fO!&dQ7[O1G2fOOQ07`1G2k1G2kO!@}Q`O1G2dOC_QWO1G2eO&-uQWO1G2fO&-}QWO1G2eO&.qQ7[O,5?YOOQ07b-E<m-E<mO&/dQ7[O,5?[OOQ07b-E<o-E<oO!(SQ7[O7++TOOQ07b1G/_1G/_O&/nQWO1G/_OOQ07b7+'p7+'pO&/sQ7[O7+'wO&0TQ08SO<<KTOOQ07b<<KT<<KTO&0wQWO1G0vO!&dQ7[O'#IsO&0|QWO,5@oO!&dQ7[O1G2iOOQU<<Gz<<GzO!@rQ07hO<<GzO&1UQ08SO<<IwOOQ07b<<Iw<<IwOOQO,5?e,5?eO&1xQWO,5?eO&1}QWO,5?eOOQO-E<w-E<wO&2]QWO1G6bO&2]QWO1G6bO9aQWO1G6bO@bQWO<<LfOOQU<<Lf<<LfO&2eQWO<<LfO9kQ07hO<<LfOOQU<<LR<<LRO%2uQ08QO<<LROOQU<<LS<<LSO%3PQpO<<LSO&2jQ`O'#IuO&2uQWO,5@sO!*fQ^O,5@sOOQU1G3Q1G3QO&2}Q^O'#JmOOQO'#Iw'#IwO9kQ07hO'#IwO&3XQ`O,5=oOOQU,5=o,5=oO&3`Q`O'#EcO&3tQWO7+(tO&3yQWO7+(tOOQU7+(t7+(tO!&dQ7[O7+(tO%[Q^O7+(tO&4RQWO7+(tOOQU7+(v7+(vO9kQ07hO7+(vO$!UQWO7+(vO9UQWO7+(vO!@}Q`O7+(vO&4^QWO,5?dOOQO-E<v-E<vOOQO'#HW'#HWO&4iQWO1G6`O9kQ07hO<<GpOOQU<<Gp<<GpO@bQWO<<GpO&4qQWO7++}O&4vQWO7+,OO%[Q^O7++}O%[Q^O7+,OOOQU7+)O7+)OO&4{QWO7+)OO&5QQ^O7+)OO&5XQWO7+)OOOQU<<Lr<<LrOOQU<<Lt<<LtOOQU-E<y-E<yOOQU1G3s1G3sO&5^QWO,5>YOOQU,5>[,5>[O&5cQWO1G3yO9ZQWO7+&bO!*fQ^O7+&bOOQO7+%[7+%[O&5hQ(CYO1G6PO>pQWO7+%[OOQ07b<<I`<<I`OOQ07b<<Iv<<IvO>pQWO<<IvOOQO<<Io<<IoO$=gQ08SO<<IoO%[Q^O<<IoOOQO<<Ic<<IcO!@rQ07hO<<IcO&5rQ07hO<<IoO&5}Q08SO<= SO&6_QWO<= ROOQO7+*W7+*WO9ZQWO7+*WOOQUANAeANAeO&6gQWOANAeO!&dQ7[OANAeO#%sQWOANAeO%0iQrOANAeO%[Q^OANAeO&6oQ08SO7+'uO&9QQ08SO,5?YO&;]Q08SO,5?[O&=hQ08SO7+'wO&?yQrO1G4fO&@TQ(CYO7+&]O&BXQ(CYO,5=RO&D`Q(CYO,5=TO&DpQ(CYO,5=RO&EQQ(CYO,5=TO&EbQ(CYO,59qO&GeQ(CYO,5<fO&IhQ(CYO,5<hO&KkQ(CYO,5<vO&MaQ(CYO7+'hO&MnQ(CYO7+'iO&M{QWO,5<YOOQO7+']7+']O&NQQ7[O<<KwOOQO1G4p1G4pO&NXQWO1G4pO&NdQWO1G4pO&NrQWO7++sO&NrQWO7++sO!&dQ7[O1G4rO&NzQpO1G4rO' UQWO7++tOOQ07`7+(P7+(PO$'TQWO7+(QO' ^QpO7+(QOOQ07`7+(O7+(OO$'TQWO7+(PO' eQWO7+(QO!&dQ7[O7+(QOC_QWO7+(PO' jQ7[O<<NoOOQ07b7+$y7+$yO' tQpO,5?_OOQO-E<q-E<qO'!OQ08QO7+(TOOQUAN=fAN=fO9aQWO1G5POOQO1G5P1G5PO'!`QWO1G5PO'!eQWO7++|O'!eQWO7++|O9kQ07hOANBQO@bQWOANBQOOQUANBQANBQOOQUANAmANAmOOQUANAnANAnO'!mQWO,5?aOOQO-E<s-E<sO'!xQ(CYO1G6_O'%YQrO'#ChOOQO,5?c,5?cOOQO-E<u-E<uOOQU1G3Z1G3ZO&2}Q^O,5<zOOQU<<L`<<L`O!&dQ7[O<<L`O&3tQWO<<L`O'%dQWO<<L`O%[Q^O<<L`OOQU<<Lb<<LbO9kQ07hO<<LbO$!UQWO<<LbO9UQWO<<LbO'%lQ`O1G5OO'%wQWO7++zOOQUAN=[AN=[O9kQ07hOAN=[OOQU<= i<= iOOQU<= j<= jO'&PQWO<= iO'&UQWO<= jOOQU<<Lj<<LjO'&ZQWO<<LjO'&`Q^O<<LjOOQU1G3t1G3tO>pQWO7+)eO'&gQWO<<I|O'&rQ(CYO<<I|OOQO<<Hv<<HvOOQ07bAN?bAN?bOOQOAN?ZAN?ZO$=gQ08SOAN?ZOOQOAN>}AN>}O%[Q^OAN?ZOOQO<<Mr<<MrOOQUG27PG27PO!&dQ7[OG27PO#%sQWOG27PO'&|QWOG27PO%0iQrOG27PO''UQ(CYO<<JdO''cQ(CYO1G2ZO')XQ(CYO,5?YO'+[Q(CYO,5?[O'-_Q(CYO1G2mO'/bQ(CYO1G2oO'1eQ(CYO<<KTO'1rQ(CYO<<IwOOQO1G1t1G1tO!(SQ7[OANAcOOQO7+*[7+*[O'2PQWO7+*[O'2[QWO<= _O'2dQpO7+*^OOQ07`<<Kl<<KlO$'TQWO<<KlOOQ07`<<Kk<<KkO'2nQpO<<KlO$'TQWO<<KkOOQO7+*k7+*kO9aQWO7+*kO'2uQWO<= hOOQUG27lG27lO9kQ07hOG27lO!*fQ^O1G4{O'2}QWO7++yO&3tQWOANAzOOQUANAzANAzO!&dQ7[OANAzO'3VQWOANAzOOQUANA|ANA|O9kQ07hOANA|O$!UQWOANA|OOQO'#HX'#HXOOQO7+*j7+*jOOQUG22vG22vOOQUANETANETOOQUANEUANEUOOQUANBUANBUO'3_QWOANBUOOQU<<MP<<MPO!*fQ^OAN?hOOQOG24uG24uO$=gQ08SOG24uO#%sQWOLD,kOOQULD,kLD,kO!&dQ7[OLD,kO'3dQWOLD,kO'3lQ(CYO7+'uO'5bQ(CYO,5?YO'7eQ(CYO,5?[O'9hQ(CYO7+'wO';^Q7[OG26}OOQO<<Mv<<MvOOQ07`ANAWANAWO$'TQWOANAWOOQ07`ANAVANAVOOQO<<NV<<NVOOQULD-WLD-WO';nQ(CYO7+*gOOQUG27fG27fO&3tQWOG27fO!&dQ7[OG27fOOQUG27hG27hO9kQ07hOG27hOOQUG27pG27pO';xQ(CYOG25SOOQOLD*aLD*aOOQU!$(!V!$(!VO#%sQWO!$(!VO!&dQ7[O!$(!VO'<SQ08SOG26}OOQ07`G26rG26rOOQULD-QLD-QO&3tQWOLD-QOOQULD-SLD-SOOQU!)9Eq!)9EqO#%sQWO!)9EqOOQU!$(!l!$(!lOOQU!.K;]!.K;]O'>eQ(CYOG26}O!*fQ^O'#DyO1PQWO'#EWO'@ZQrO'#JiO!*fQ^O'#DqO'@bQ^O'#D}O'@iQrO'#ChO'CPQrO'#ChO!*fQ^O'#EPO'CaQ^O,5;VO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O,5;aO!*fQ^O'#IiO'EdQWO,5<eO'ElQ7[O,5;aO'GVQ7[O,5;aO!*fQ^O,5;uO!&dQ7[O'#GgO'ElQ7[O'#GgO!&dQ7[O'#GiO'ElQ7[O'#GiO1SQWO'#DVO1SQWO'#DVO!&dQ7[O'#FzO'ElQ7[O'#FzO!&dQ7[O'#F|O'ElQ7[O'#F|O!&dQ7[O'#G[O'ElQ7[O'#G[O!*fQ^O,5:iO!*fQ^O,5@eO'CaQ^O1G0qO'G^Q(CYO'#ChO!*fQ^O1G1|O!&dQ7[O'#InO'ElQ7[O'#InO!&dQ7[O'#IpO'ElQ7[O'#IpO!&dQ7[O,5<oO'ElQ7[O,5<oO'CaQ^O1G1}O!*fQ^O7+&xO!&dQ7[O1G2ZO'ElQ7[O1G2ZO!&dQ7[O'#InO'ElQ7[O'#InO!&dQ7[O'#IpO'ElQ7[O'#IpO!&dQ7[O1G2]O'ElQ7[O1G2]O'CaQ^O7+'iO'CaQ^O7+&]O!&dQ7[OANAcO'ElQ7[OANAcO'GhQWO'#EkO'GmQWO'#EkO'GuQWO'#FZO'GzQWO'#EuO'HPQWO'#JyO'H[QWO'#JwO'HgQWO,5;VO'HlQ7[O,5<bO'HsQWO'#GTO'HxQWO'#GTO'H}QWO,5<cO'IVQWO,5;VO'I_Q(CYO1G1^O'IfQWO,5<oO'IkQWO,5<oO'IpQWO,5<qO'IuQWO,5<qO'IzQWO1G1}O'JPQWO1G0qO'JUQ7[O<<KwO'J]Q7[O<<KwO7hQ7[O'#FxO9UQWO'#FwOA]QWO'#EjO!*fQ^O,5;rO!3fQWO'#GTO!3fQWO'#GTO!3fQWO'#GVO!3fQWO'#GVO!(SQ7[O7+(]O!(SQ7[O7+(]O%*sQpO1G2qO%*sQpO1G2qO!&dQ7[O,5=VO!&dQ7[O,5=V",stateData:"'Ka~O'tOS'uOSSOS'vRQ~OPYOQYORfOX!VO`qOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!twO!wxO!{]O#s!PO$T|O%b}O%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO&P!WO&V!XO&X!YO&Z!ZO&]![O&`!]O&f!^O&l!_O&n!`O&p!aO&r!bO&t!cO'{SO'}TO(QUO(XVO(g[O(tiO~OVtO~P`OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`!vOo!nO!P!oO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!wO#S!pO#T!pO#W!yO#X!yO'|!lO'}TO(QUO([!mO(g!sO~O'v!zO~OP[XZ[X`[Xn[X|[X}[X!P[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X'r[X(X[X(h[X(o[X(p[X~O!d$|X~P(qO^!|O'}#OO(O!|O(P#OO~O^#PO(P#OO(Q#OO(R#PO~Ot#RO!R#SO(Y#SO(Z#UO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{:hO'}TO(QUO(XVO(g[O(tiO~O!X#YO!Y#VO!V(_P!V(lP~P+}O!Z#bO~P`OPYOQYORfOc!jOd!iOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'}TO(QUO(XVO(g[O(tiO~Ol#lO!X#hO!{]O#e#kO#f#hO'{:iO!j(iP~P.iO!k#nO'{#mO~O!w#rO!{]O%b#sO~O#g#tO~O!d#uO#g#tO~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y$aO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`(]X'r(]X'p(]X!j(]X!V(]X![(]X%c(]X!d(]X~P1qO#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X![(^X%c(^X~O`(^X!i(^X'r(^X'p(^X!V(^X!j(^Xr(^X!d(^X~P4XO#[$eO~O$Y$gO$[$fO$c$lO~ORfO![$mO$f$nO$h$pO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{$rO'}TO(QUO(X$uO(o$}O(p%POf(UP~O!k%bO~O!P%eO![%fO'{%dO~O!d%jO~O`%kO'r%kO~O'|!lO~P%[O%h%rO~P%[Og%VO!k%bO'{%dO'|!lO~Od%yO!k%bO'{%dO~O#r$SO~O|&OO![%{O!k%}O%d&RO'{%dO'|!lO'}TO(QUO_(}P~O!w#rO~O%m&TO!P(yX![(yX'{(yX~O'{&UO~O!t&ZO#s!PO%d!QO%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO~Oc&`Od&_O!w&]O%b&^O%u&[O~P;xOc&cOdyO![&bO!t&ZO!wxO!{]O#s!PO%b}O%f!OO%g!OO%h!OO%k!RO%m!SO%p!TO%q!TO%s!UO~Oa&fO#[&iO%d&dO'|!lO~P<}O!k&jO!t&nO~O!k#nO~O![XO~O`%kO'q&vO'r%kO~O`%kO'q&yO'r%kO~O`%kO'q&{O'r%kO~O'p[X!V[Xr[X!j[X&T[X![[X%c[X!d[X~P(qO!_'YO!`'RO!a'RO'|!lO'}TO(QUO~Oo'PO!P'OO!X'SO([&}O!Z(`P!Z(nP~P@UOj']O!['ZO'{%dO~Od'bO!k%bO'{%dO~O|&OO!k%}O~Oo!nO!P!oO!{:dO#P!pO#Q!pO#S!pO#T!pO'|!lO'}TO(QUO([!mO(g!sO~O!_'hO!`'gO!a'gO#R!pO#W'iO#X'iO~PApO`%kOg%VO!d#uO!k%bO'r%kO(h'kO~O!o'oO#['mO~PCOOo!nO!P!oO'}TO(QUO([!mO(g!sO~O![XOo(eX!P(eX!_(eX!`(eX!a(eX!{(eX#P(eX#Q(eX#R(eX#S(eX#T(eX#W(eX#X(eX'|(eX'}(eX(Q(eX([(eX(g(eX~O!`'gO!a'gO'|!lO~PCnO'w'sO'x'sO'y'uO~O^!|O'}'wO(O!|O(P'wO~O^#PO(P'wO(Q'wO(R#PO~Ot#RO!R#SO(Y#SO(Z'{O~O!X'}O!V'PX!V'VX!Y'PX!Y'VX~P+}O!Y(PO!V(_X~OP$]OZ$dOn$QO|#yO}#zO!P#{O!Y(PO!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O!V(_X~PGbO!V(UO~O!V(kX!Y(kX!d(kX!j(kX(h(kX~O#[(kX#g#`X!Z(kX~PIhO#[(VO!V(mX!Y(mX~O!Y(WO!V(lX~O!V(ZO~O#[$eO~PIhO!Z([O~P`O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!maZ!man!ma!Y!ma!h!ma!o!ma#j!ma#k!ma#l!ma#m!ma#n!ma#o!ma#p!ma#q!ma#r!ma#t!ma#v!ma#x!ma#y!ma(h!ma(o!ma(p!ma~O`!ma'r!ma'p!ma!V!ma!j!mar!ma![!ma%c!ma!d!ma~PKOO!j(]O~O!d#uO#[(^O(h'kO!Y(jX`(jX'r(jX~O!j(jX~PMnO!P%eO![%fO!{]O#e(cO#f(bO'{%dO~O!Y(dO!j(iX~O!j(fO~O!P%eO![%fO#f(bO'{%dO~OP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!i(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#r(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O!d#uO!j(^X~P! [O|(gO}(hO!i#wO!k#xO!{!za!P!za~O!w!za%b!za![!za#e!za#f!za'{!za~P!#`O!w(lO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![XO!fuO!kZO!nYO!oYO!pYO!rvO!t!gO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#g(rO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz%ZO!P${O![$|O!f%`O!k$xO#f%aO$T%^O$o%[O$q%]O$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~Of(bP~P!(SO!X(vO!j(cP~P%[O([(xO(g[O~O!P(zO!k#xO([(xO(g[O~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O})]O!k#xO~O!Y$aO`$ma'r$ma'p$ma!j$ma!V$ma![$ma%c$ma!d$ma~O#s)aO~P!&dO|)dO!d)cO![$ZX$W$ZX$Y$ZX$[$ZX$c$ZX~O!d)cO![(qX$W(qX$Y(qX$[(qX$c(qX~O|)dO~P!.OO|)dO![(qX$W(qX$Y(qX$[(qX$c(qX~O![)fO$W)jO$Y)eO$[)eO$c)kO~O!X)nO~P!*fO$Y$gO$[$fO$c)rO~Oj$uX|$uX!P$uX!i$uX(o$uX(p$uX~OfiXf$uXjiX!YiX#[iX~P!/tOo)tO~Ot)uO(Y)vO(Z)xO~Oj*RO|)zO!P){O(o$}O(p%PO~Of)yO~P!0}Of*SO~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~O!X*WO'{*TO!j(uP~P!1lO#g*YO~O!k*ZO~O!X*`O'{*]O!V(vP~P!1lOn*lO!P*dO!_*jO!`*cO!a*cO!k*ZO#W*kO%Y*fO'|!lO([!mO~O!Z*iO~P!3xO!i#wOj(WX|(WX!P(WX(o(WX(p(WX!Y(WX#[(WX~Of(WX#|(WX~P!4qOj*qO#[*pOf(VX!Y(VX~O!Y*rOf(UX~O'{&UOf(UP~O!k*yO~O'{(pO~Ol*}O!P%eO!X#hO![%fO!{]O#e#kO#f#hO'{%dO!j(iP~O!d#uO#g+OO~O!P%eO!X+QO!Y(WO![%fO'{%dO!V(lP~Oo'VO!P+SO!X+RO'}TO(QUO([(xO~O!Z(nP~P!7lO!Y+TO`(zX'r(zX~OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO#y$YO(XVO(h$ZO(o#|O(p#}O~O`!ea!Y!ea'r!ea'p!ea!V!ea!j!ear!ea![!ea%c!ea!d!ea~P!8dO|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qaZ!qan!qa!Y!qa!h!qa!o!qa#j!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#t!qa#v!qa#x!qa#y!qa(h!qa(o!qa(p!qa~O`!qa'r!qa'p!qa!V!qa!j!qar!qa![!qa%c!qa!d!qa~P!:}O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!saZ!san!sa!Y!sa!h!sa!o!sa#j!sa#k!sa#l!sa#m!sa#n!sa#o!sa#p!sa#q!sa#r!sa#t!sa#v!sa#x!sa#y!sa(h!sa(o!sa(p!sa~O`!sa'r!sa'p!sa!V!sa!j!sar!sa![!sa%c!sa!d!sa~P!=hOg%VOj+^O!['ZO%c+]O~O!d+`O`(TX![(TX'r(TX!Y(TX~O`%kO![XO'r%kO~Og%VO!k%bO~Og%VO!k%bO'{%dO~O!d#uO#g(rO~Oa+kO%d+lO'{+hO'}TO(QUO!Z)OP~O!Y+mO_(}X~OZ+qO~O_+rO~O![%{O'{%dO'|!lO_(}P~Og%VO#[+wO~Og%VOj+zO![$|O~O![+|O~O|,OO![XO~O%h%rO~O!w,TO~Od,YO~Oa,ZO'{#mO'}TO(QUO!Z(|P~Od%yO~O%d!QO'{&UO~P<}OZ,`O_,_O~OPYOQYORfOczOdyOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO!fuO!kZO!nYO!oYO!pYO!rvO!wxO!{]O%b}O'}TO(QUO(XVO(g[O(tiO~O![!eO!t!gO$T!kO'{!dO~P!DkO_,_O`%kO'r%kO~OPYOQYORfOc!jOd!iOlkOnYOokOpkOvkOxYOzYO!PWO!TkO!UkO![!eO!fuO!kZO!nYO!oYO!pYO!rvO!w!hO$T!kO'{!dO'}TO(QUO(XVO(g[O(tiO~O`,eO!twO#s!OO%f!OO%g!OO%h!OO~P!GTO!k&jO~O&V,kO~O![,mO~O&h,oO&j,pOP&eaQ&eaR&eaX&ea`&eac&ead&eal&ean&eao&eap&eav&eax&eaz&ea!P&ea!T&ea!U&ea![&ea!f&ea!k&ea!n&ea!o&ea!p&ea!r&ea!t&ea!w&ea!{&ea#s&ea$T&ea%b&ea%d&ea%f&ea%g&ea%h&ea%k&ea%m&ea%p&ea%q&ea%s&ea&P&ea&V&ea&X&ea&Z&ea&]&ea&`&ea&f&ea&l&ea&n&ea&p&ea&r&ea&t&ea'p&ea'{&ea'}&ea(Q&ea(X&ea(g&ea(t&ea!Z&ea&^&eaa&ea&c&ea~O'{,uO~Og!bX!Y!OX!Y!bX!Z!OX!Z!bX!d!OX!d!bX!k!bX#[!OX~O!d,zO#[,yOg(aX!Y#dX!Y(aX!Z#dX!Z(aX!d(aX!k(aX~Og%VO!d,|O!k%bO!Y!^X!Z!^X~Oo!nO!P!oO'}TO(QUO([!mO~OP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![!eO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'}TO(QUO(XVO(g[O(t<YO~O'{;]O~P#!ZO!Y-QO!Z(`X~O!Z-SO~O!d,zO#[,yO!Y#dX!Z#dX~O!Y-TO!Z(nX~O!Z-VO~O!`-WO!a-WO'|!lO~P# xO!Z-ZO~P'_Oj-^O!['ZO~O!V-cO~Oo!za!_!za!`!za!a!za#P!za#Q!za#R!za#S!za#T!za#W!za#X!za'|!za'}!za(Q!za([!za(g!za~P!#`O!o-hO#[-fO~PCOO!`-jO!a-jO'|!lO~PCnO`%kO#[-fO'r%kO~O`%kO!d#uO#[-fO'r%kO~O`%kO!d#uO!o-hO#[-fO'r%kO(h'kO~O'w'sO'x'sO'y-oO~Or-pO~O!V'Pa!Y'Pa~P!8dO!X-tO!V'PX!Y'PX~P%[O!Y(PO!V(_a~O!V(_a~PGbO!Y(WO!V(la~O!P%eO!X-xO![%fO'{%dO!V'VX!Y'VX~O#[-zO!Y(ja!j(ja`(ja'r(ja~O!d#uO~P#*aO!Y(dO!j(ia~O!P%eO![%fO#f.OO'{%dO~Ol.TO!P%eO!X.QO![%fO!{]O#e.SO#f.QO'{%dO!Y'YX!j'YX~O}.XO!k#xO~Og%VOj.[O!['ZO%c.ZO~O`#_i!Y#_i'r#_i'p#_i!V#_i!j#_ir#_i![#_i%c#_i!d#_i~P!8dOj<fO|)zO!P){O(o$}O(p%PO~O#g#Za`#Za#[#Za'r#Za!Y#Za!j#Za![#Za!V#Za~P#-]O#g(WXP(WXZ(WX`(WXn(WX}(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX'r(WX(X(WX(h(WX!j(WX!V(WX'p(WXr(WX![(WX%c(WX!d(WX~P!4qO!Y.iOf(bX~P!0}Of.kO~O!Y.lO!j(cX~P!8dO!j.oO~O!V.qO~OP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#ii`#iin#ii!Y#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O#j#ii~P#1XO#j$OO~P#1XOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO(XVOZ#ii`#ii!Y#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~On#ii~P#3yOn$QO~P#3yOP$]On$QO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO(XVO`#ii!Y#ii#t#ii#v#ii#x#ii#y#ii'r#ii(h#ii(o#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P#6kOZ$dO!h$SO#o$SO#p$SO#q$cO#r$SO~P#6kOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO(XVO`#ii!Y#ii#v#ii#x#ii#y#ii'r#ii(h#ii(p#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O(o#ii~P#9lO(o#|O~P#9lOP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO(XVO(o#|O`#ii!Y#ii#x#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~O(p#ii~P#<^O(p#}O~P#<^OP$]OZ$dOn$QO|#yO}#zO!P#{O!h$SO!i#wO!k#xO!o$]O#j$OO#k$PO#l$PO#m$PO#n$RO#o$SO#p$SO#q$cO#r$SO#t$TO#v$VO#x$XO(XVO(o#|O(p#}O~O`#ii!Y#ii#y#ii'r#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#?OOP[XZ[Xn[X|[X}[X!P[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X!Y[X!Z[X~O#|[X~P#AiOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO#y:vO(XVO(h$ZO(o#|O(p#}O~O#|.sO~P#CvO#[:{O$O:{O#|(^X!Z(^X~P! [O`']a!Y']a'r']a'p']a!j']a!V']ar']a![']a%c']a!d']a~P!8dOP#iiZ#ii`#iin#ii}#ii!Y#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii'r#ii(X#ii(h#ii'p#ii!V#ii!j#iir#ii![#ii%c#ii!d#ii~P#-]O`#}i!Y#}i'r#}i'p#}i!V#}i!j#}ir#}i![#}i%c#}i!d#}i~P!8dO$Y.xO$[.xO~O$Y.yO$[.yO~O!d)cO#[.zO![$`X$W$`X$Y$`X$[$`X$c$`X~O!X.{O~O![)fO$W.}O$Y)eO$[)eO$c/OO~O!Y:wO!Z(]X~P#CvO!Z/PO~O!d)cO$c(qX~O$c/RO~Ot)uO(Y)vO(Z/UO~O!V/YO~P!&dO(o$}Oj%Za|%Za!P%Za(p%Za!Y%Za#[%Za~Of%Za#|%Za~P#LWO(p%POj%]a|%]a!P%]a(o%]a!Y%]a#[%]a~Of%]a#|%]a~P#LyO!YeX!deX!jeX!j$uX(heX~P!/tO!j/bO~P#-]O!Y/cO!d#uO(h'kO!j(uX~O!j/hO~O!X*WO'{%dO!j(uP~O#g/jO~O!V$uX!Y$uX!d$|X~P!/tO!Y/kO!V(vX~P#-]O!d/mO~O!V/oO~Og%VOn/sO!d#uO!k%bO(h'kO~O'{/uO~O!d+`O~O`%kO!Y/yO'r%kO~O!Z/{O~P!3xO!`/|O!a/|O'|!lO([!mO~O!P0OO([!mO~O#W0PO~Of%Za!Y%Za#[%Za#|%Za~P!0}Of%]a!Y%]a#[%]a#|%]a~P!0}O'{&UOf'fX!Y'fX~O!Y*rOf(Ua~Of0YO~O|0ZO}0ZO!P0[Ojya(oya(pya!Yya#[ya~Ofya#|ya~P$$dO|)zO!P){Oj$na(o$na(p$na!Y$na#[$na~Of$na#|$na~P$%YO|)zO!P){Oj$pa(o$pa(p$pa!Y$pa#[$pa~Of$pa#|$pa~P$%{O#g0^O~Of%Oa!Y%Oa#[%Oa#|%Oa~P!0}O!d#uO~O#g0aO~O!Y+TO`(za'r(za~O|#yO}#zO!P#{O!i#wO!k#xO(XVOP!qiZ!qin!qi!Y!qi!h!qi!o!qi#j!qi#k!qi#l!qi#m!qi#n!qi#o!qi#p!qi#q!qi#r!qi#t!qi#v!qi#x!qi#y!qi(h!qi(o!qi(p!qi~O`!qi'r!qi'p!qi!V!qi!j!qir!qi![!qi%c!qi!d!qi~P$'jOg%VOn$tOo$sOp$sOv%XOx%YOz;QO!P${O![$|O!f<`O!k$xO#f;WO$T%^O$o;SO$q;UO$t%_O'}TO(QUO(X$uO(o$}O(p%PO~Ol0kO'{0jO~P$*TO!d+`O`(Ta![(Ta'r(Ta!Y(Ta~O#g0qO~OZ[X!YeX!ZeX~O!Y0rO!Z)OX~O!Z0tO~OZ0uO~Oa0wO'{+hO'}TO(QUO~O![%{O'{%dO_'nX!Y'nX~O!Y+mO_(}a~O!j0zO~P!8dOZ0}O~O_1OO~O#[1RO~Oj1UO![$|O~O([(xO!Z({P~Og%VOj1_O![1[O%c1^O~OZ1iO!Y1gO!Z(|X~O!Z1jO~O_1lO`%kO'r%kO~O'{#mO'}TO(QUO~O#[$eO$O$eOP(^XZ(^Xn(^X|(^X}(^X!P(^X!Y(^X!h(^X!k(^X!o(^X#j(^X#k(^X#l(^X#m(^X#n(^X#o(^X#p(^X#q(^X#t(^X#v(^X#x(^X#y(^X(X(^X(h(^X(o(^X(p(^X~O#r1oO&T1pO`(^X!i(^X~P$/kO#[$eO#r1oO&T1pO~O`1rO~P%[O`1tO~O&^1wOP&[iQ&[iR&[iX&[i`&[ic&[id&[il&[in&[io&[ip&[iv&[ix&[iz&[i!P&[i!T&[i!U&[i![&[i!f&[i!k&[i!n&[i!o&[i!p&[i!r&[i!t&[i!w&[i!{&[i#s&[i$T&[i%b&[i%d&[i%f&[i%g&[i%h&[i%k&[i%m&[i%p&[i%q&[i%s&[i&P&[i&V&[i&X&[i&Z&[i&]&[i&`&[i&f&[i&l&[i&n&[i&p&[i&r&[i&t&[i'p&[i'{&[i'}&[i(Q&[i(X&[i(g&[i(t&[i!Z&[ia&[i&c&[i~Oa1}O!Z1{O&c1|O~P`O![XO!k2PO~O&j,pOP&eiQ&eiR&eiX&ei`&eic&eid&eil&ein&eio&eip&eiv&eix&eiz&ei!P&ei!T&ei!U&ei![&ei!f&ei!k&ei!n&ei!o&ei!p&ei!r&ei!t&ei!w&ei!{&ei#s&ei$T&ei%b&ei%d&ei%f&ei%g&ei%h&ei%k&ei%m&ei%p&ei%q&ei%s&ei&P&ei&V&ei&X&ei&Z&ei&]&ei&`&ei&f&ei&l&ei&n&ei&p&ei&r&ei&t&ei'p&ei'{&ei'}&ei(Q&ei(X&ei(g&ei(t&ei!Z&ei&^&eia&ei&c&ei~O!V2VO~O!Y!^a!Z!^a~P#CvOo!nO!P!oO!X2]O([!mO!Y'QX!Z'QX~P@UO!Y-QO!Z(`a~O!Y'WX!Z'WX~P!7lO!Y-TO!Z(na~O!Z2dO~P'_O`%kO#[2mO'r%kO~O`%kO!d#uO#[2mO'r%kO~O`%kO!d#uO!o2qO#[2mO'r%kO(h'kO~O`%kO'r%kO~P!8dO!Y$aOr$ma~O!V'Pi!Y'Pi~P!8dO!Y(PO!V(_i~O!Y(WO!V(li~O!V(mi!Y(mi~P!8dO!Y(ji!j(ji`(ji'r(ji~P!8dO#[2sO!Y(ji!j(ji`(ji'r(ji~O!Y(dO!j(ii~O!P%eO![%fO!{]O#e2xO#f2wO'{%dO~O!P%eO![%fO#f2wO'{%dO~Oj3PO!['ZO%c3OO~Og%VOj3PO!['ZO%c3OO~O#g%ZaP%ZaZ%Za`%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Zar%Za![%Za%c%Za!d%Za~P#LWO#g%]aP%]aZ%]a`%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]ar%]a![%]a%c%]a!d%]a~P#LyO#g%ZaP%ZaZ%Za`%Zan%Za}%Za!Y%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za'r%Za(X%Za(h%Za!j%Za!V%Za'p%Za#[%Zar%Za![%Za%c%Za!d%Za~P#-]O#g%]aP%]aZ%]a`%]an%]a}%]a!Y%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a'r%]a(X%]a(h%]a!j%]a!V%]a'p%]a#[%]ar%]a![%]a%c%]a!d%]a~P#-]O#gyaPyaZya`yanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya'rya(Xya(hya!jya!Vya'pyarya![ya%cya!dya~P$$dO#g$naP$naZ$na`$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na'r$na(X$na(h$na!j$na!V$na'p$nar$na![$na%c$na!d$na~P$%YO#g$paP$paZ$pa`$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa'r$pa(X$pa(h$pa!j$pa!V$pa'p$par$pa![$pa%c$pa!d$pa~P$%{O#g%OaP%OaZ%Oa`%Oan%Oa}%Oa!Y%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa'r%Oa(X%Oa(h%Oa!j%Oa!V%Oa'p%Oa#[%Oar%Oa![%Oa%c%Oa!d%Oa~P#-]O`#_q!Y#_q'r#_q'p#_q!V#_q!j#_qr#_q![#_q%c#_q!d#_q~P!8dOf'RX!Y'RX~P!(SO!Y.iOf(ba~O!X3ZO!Y'SX!j'SX~P%[O!Y.lO!j(ca~O!Y.lO!j(ca~P!8dO!V3^O~O#|!ma!Z!ma~PKOO#|!ea!Y!ea!Z!ea~P#CvO#|!qa!Z!qa~P!:}O#|!sa!Z!sa~P!=hORfO![3pO$a3qO~O!Z3uO~Or3vO~P#-]O`$jq!Y$jq'r$jq'p$jq!V$jq!j$jqr$jq![$jq%c$jq!d$jq~P!8dO!V3wO~P#-]O|)zO!P){O(p%POj'ba(o'ba!Y'ba#['ba~Of'ba#|'ba~P%)_O|)zO!P){Oj'da(o'da(p'da!Y'da#['da~Of'da#|'da~P%*QO(h$ZO~P#-]O!X3zO'{%dO!Y'^X!j'^X~O!Y/cO!j(ua~O!Y/cO!d#uO!j(ua~O!Y/cO!d#uO(h'kO!j(ua~Of$wi!Y$wi#[$wi#|$wi~P!0}O!X4SO'{*]O!V'`X!Y'`X~P!1lO!Y/kO!V(va~O!Y/kO!V(va~P#-]O!d#uO#r4[O~On4_O!d#uO(h'kO~O(o$}Oj%Zi|%Zi!P%Zi(p%Zi!Y%Zi#[%Zi~Of%Zi#|%Zi~P%-dO(p%POj%]i|%]i!P%]i(o%]i!Y%]i#[%]i~Of%]i#|%]i~P%.VOf(Vi!Y(Vi~P!0}O#[4fOf(Vi!Y(Vi~P!0}O!j4iO~O`$kq!Y$kq'r$kq'p$kq!V$kq!j$kqr$kq![$kq%c$kq!d$kq~P!8dO!V4mO~O!Y4nO![(wX~P#-]O!i#wO~P4XO`$uX![$uX%W[X'r$uX!Y$uX~P!/tO%W4pO`kXjkX|kX!PkX![kX'rkX(okX(pkX!YkX~O%W4pO~Oa4vO%d4wO'{+hO'}TO(QUO!Y'mX!Z'mX~O!Y0rO!Z)Oa~OZ4{O~O_4|O~O`%kO'r%kO~P#-]O![$|O~P#-]O!Y5UO#[5WO!Z({X~O!Z5XO~Oo!nO!P5YO!_!xO!`!uO!a!uO!{:dO#P!pO#Q!pO#R!pO#S!pO#T!pO#W5_O#X!yO'|!lO'}TO(QUO([!mO(g!sO~O!Z5^O~P%3hOj5dO![1[O%c5cO~Og%VOj5dO![1[O%c5cO~Oa5kO'{#mO'}TO(QUO!Y'lX!Z'lX~O!Y1gO!Z(|a~O'}TO(QUO([5mO~O_5qO~O#r5tO&T5uO~PMnO!j5vO~P%[O`5xO~O`5xO~P%[Oa1}O!Z5}O&c1|O~P`O!d6PO~O!d6ROg(ai!Y(ai!Z(ai!d(ai!k(ai~O!Y#di!Z#di~P#CvO#[6SO!Y#di!Z#di~O!Y!^i!Z!^i~P#CvO`%kO#[6]O'r%kO~O`%kO!d#uO#[6]O'r%kO~O!Y(jq!j(jq`(jq'r(jq~P!8dO!Y(dO!j(iq~O!P%eO![%fO#f6dO'{%dO~O!['ZO%c6gO~Oj6jO!['ZO%c6gO~O#g'baP'baZ'ba`'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba'r'ba(X'ba(h'ba!j'ba!V'ba'p'bar'ba!['ba%c'ba!d'ba~P%)_O#g'daP'daZ'da`'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da'r'da(X'da(h'da!j'da!V'da'p'dar'da!['da%c'da!d'da~P%*QO#g$wiP$wiZ$wi`$win$wi}$wi!Y$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi'r$wi(X$wi(h$wi!j$wi!V$wi'p$wi#[$wir$wi![$wi%c$wi!d$wi~P#-]O#g%ZiP%ZiZ%Zi`%Zin%Zi}%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi'r%Zi(X%Zi(h%Zi!j%Zi!V%Zi'p%Zir%Zi![%Zi%c%Zi!d%Zi~P%-dO#g%]iP%]iZ%]i`%]in%]i}%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i'r%]i(X%]i(h%]i!j%]i!V%]i'p%]ir%]i![%]i%c%]i!d%]i~P%.VOf'Ra!Y'Ra~P!0}O!Y'Sa!j'Sa~P!8dO!Y.lO!j(ci~O#|#_i!Y#_i!Z#_i~P#CvOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O(XVOZ#iin#ii!h#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~O#j#ii~P%FhO#j:lO~P%FhOP$]O|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO(XVOZ#ii!h#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~On#ii~P%HsOn:nO~P%HsOP$]On:nO|#yO}#zO!P#{O!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO(XVO#t#ii#v#ii#x#ii#y#ii#|#ii(h#ii(o#ii(p#ii!Y#ii!Z#ii~OZ#ii!h#ii#o#ii#p#ii#q#ii#r#ii~P%KOOZ:zO!h:pO#o:pO#p:pO#q:yO#r:pO~P%KOOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO(XVO#v#ii#x#ii#y#ii#|#ii(h#ii(p#ii!Y#ii!Z#ii~O(o#ii~P%MjO(o#|O~P%MjOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO(XVO(o#|O#x#ii#y#ii#|#ii(h#ii!Y#ii!Z#ii~O(p#ii~P& uO(p#}O~P& uOP$]OZ:zOn:nO|#yO}#zO!P#{O!h:pO!i#wO!k#xO!o$]O#j:lO#k:mO#l:mO#m:mO#n:oO#o:pO#p:pO#q:yO#r:pO#t:qO#v:sO#x:uO(XVO(o#|O(p#}O~O#y#ii#|#ii(h#ii!Y#ii!Z#ii~P&$QO`#zy!Y#zy'r#zy'p#zy!V#zy!j#zyr#zy![#zy%c#zy!d#zy~P!8dOj<gO|)zO!P){O(o$}O(p%PO~OP#iiZ#iin#ii}#ii!h#ii!i#ii!k#ii!o#ii#j#ii#k#ii#l#ii#m#ii#n#ii#o#ii#p#ii#q#ii#r#ii#t#ii#v#ii#x#ii#y#ii#|#ii(X#ii(h#ii!Y#ii!Z#ii~P&&xO!i#wOP(WXZ(WXj(WXn(WX|(WX}(WX!P(WX!h(WX!k(WX!o(WX#j(WX#k(WX#l(WX#m(WX#n(WX#o(WX#p(WX#q(WX#r(WX#t(WX#v(WX#x(WX#y(WX#|(WX(X(WX(h(WX(o(WX(p(WX!Y(WX!Z(WX~O#|#}i!Y#}i!Z#}i~P#CvO#|!qi!Z!qi~P$'jO!Z6|O~O!Y']a!Z']a~P#CvO!d#uO(h'kO!Y'^a!j'^a~O!Y/cO!j(ui~O!Y/cO!d#uO!j(ui~Of$wq!Y$wq#[$wq#|$wq~P!0}O!V'`a!Y'`a~P#-]O!d7TO~O!Y/kO!V(vi~P#-]O!Y/kO!V(vi~O!V7XO~O!d#uO#r7^O~On7_O!d#uO(h'kO~O|)zO!P){O(p%POj'ca(o'ca!Y'ca#['ca~Of'ca#|'ca~P&.YO|)zO!P){Oj'ea(o'ea(p'ea!Y'ea#['ea~Of'ea#|'ea~P&.{O!V7aO~Of$yq!Y$yq#[$yq#|$yq~P!0}O`$ky!Y$ky'r$ky'p$ky!V$ky!j$kyr$ky![$ky%c$ky!d$ky~P!8dO!d6RO~O!Y4nO![(wa~O`#_y!Y#_y'r#_y'p#_y!V#_y!j#_yr#_y![#_y%c#_y!d#_y~P!8dOZ7fO~Oa7hO'{+hO'}TO(QUO~O!Y0rO!Z)Oi~O_7lO~O([(xO!Y'iX!Z'iX~O!Y5UO!Z({a~OlkO'{7sO~P.iO!Z7vO~P%3hOo!nO!P7wO'}TO(QUO([!mO(g!sO~O![1[O~O![1[O%c7yO~Oj7|O![1[O%c7yO~OZ8RO!Y'la!Z'la~O!Y1gO!Z(|i~O!j8VO~O!j8WO~O!j8ZO~O!j8ZO~P%[O`8]O~O!d8^O~O!j8_O~O!Y(mi!Z(mi~P#CvO`%kO#[8gO'r%kO~O!Y(jy!j(jy`(jy'r(jy~P!8dO!Y(dO!j(iy~O!['ZO%c8jO~O#g$wqP$wqZ$wq`$wqn$wq}$wq!Y$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq'r$wq(X$wq(h$wq!j$wq!V$wq'p$wq#[$wqr$wq![$wq%c$wq!d$wq~P#-]O#g'caP'caZ'ca`'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca'r'ca(X'ca(h'ca!j'ca!V'ca'p'car'ca!['ca%c'ca!d'ca~P&.YO#g'eaP'eaZ'ea`'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea'r'ea(X'ea(h'ea!j'ea!V'ea'p'ear'ea!['ea%c'ea!d'ea~P&.{O#g$yqP$yqZ$yq`$yqn$yq}$yq!Y$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq'r$yq(X$yq(h$yq!j$yq!V$yq'p$yq#[$yqr$yq![$yq%c$yq!d$yq~P#-]O!Y'Si!j'Si~P!8dO#|#_q!Y#_q!Z#_q~P#CvO(o$}OP%ZaZ%Zan%Za}%Za!h%Za!i%Za!k%Za!o%Za#j%Za#k%Za#l%Za#m%Za#n%Za#o%Za#p%Za#q%Za#r%Za#t%Za#v%Za#x%Za#y%Za#|%Za(X%Za(h%Za!Y%Za!Z%Za~Oj%Za|%Za!P%Za(p%Za~P&@bO(p%POP%]aZ%]an%]a}%]a!h%]a!i%]a!k%]a!o%]a#j%]a#k%]a#l%]a#m%]a#n%]a#o%]a#p%]a#q%]a#r%]a#t%]a#v%]a#x%]a#y%]a#|%]a(X%]a(h%]a!Y%]a!Z%]a~Oj%]a|%]a!P%]a(o%]a~P&BiOj<gO|)zO!P){O(p%PO~P&@bOj<gO|)zO!P){O(o$}O~P&BiO|0ZO}0ZO!P0[OPyaZyajyanya!hya!iya!kya!oya#jya#kya#lya#mya#nya#oya#pya#qya#rya#tya#vya#xya#yya#|ya(Xya(hya(oya(pya!Yya!Zya~O|)zO!P){OP$naZ$naj$nan$na}$na!h$na!i$na!k$na!o$na#j$na#k$na#l$na#m$na#n$na#o$na#p$na#q$na#r$na#t$na#v$na#x$na#y$na#|$na(X$na(h$na(o$na(p$na!Y$na!Z$na~O|)zO!P){OP$paZ$paj$pan$pa}$pa!h$pa!i$pa!k$pa!o$pa#j$pa#k$pa#l$pa#m$pa#n$pa#o$pa#p$pa#q$pa#r$pa#t$pa#v$pa#x$pa#y$pa#|$pa(X$pa(h$pa(o$pa(p$pa!Y$pa!Z$pa~OP%OaZ%Oan%Oa}%Oa!h%Oa!i%Oa!k%Oa!o%Oa#j%Oa#k%Oa#l%Oa#m%Oa#n%Oa#o%Oa#p%Oa#q%Oa#r%Oa#t%Oa#v%Oa#x%Oa#y%Oa#|%Oa(X%Oa(h%Oa!Y%Oa!Z%Oa~P&&xO#|$jq!Y$jq!Z$jq~P#CvO#|$kq!Y$kq!Z$kq~P#CvO!Z8vO~O#|8wO~P!0}O!d#uO!Y'^i!j'^i~O!d#uO(h'kO!Y'^i!j'^i~O!Y/cO!j(uq~O!V'`i!Y'`i~P#-]O!Y/kO!V(vq~O!V8}O~P#-]O!V8}O~Of(Vy!Y(Vy~P!0}O!Y'ga!['ga~P#-]O`%Vq![%Vq'r%Vq!Y%Vq~P#-]OZ9SO~O!Y0rO!Z)Oq~O#[9WO!Y'ia!Z'ia~O!Y5UO!Z({i~P#CvOP[XZ[Xn[X|[X}[X!P[X!V[X!Y[X!h[X!i[X!k[X!o[X#[[X#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!d%TX#r%TX~P'#SO![1[O%c9[O~O'}TO(QUO([9aO~O!Y1gO!Z(|q~O!j9dO~O!j9eO~O!j9fO~O!j9fO~P%[O#[9iO!Y#dy!Z#dy~O!Y#dy!Z#dy~P#CvO!['ZO%c9nO~O#|#zy!Y#zy!Z#zy~P#CvOP$wiZ$win$wi}$wi!h$wi!i$wi!k$wi!o$wi#j$wi#k$wi#l$wi#m$wi#n$wi#o$wi#p$wi#q$wi#r$wi#t$wi#v$wi#x$wi#y$wi#|$wi(X$wi(h$wi!Y$wi!Z$wi~P&&xO|)zO!P){O(p%POP'baZ'baj'ban'ba}'ba!h'ba!i'ba!k'ba!o'ba#j'ba#k'ba#l'ba#m'ba#n'ba#o'ba#p'ba#q'ba#r'ba#t'ba#v'ba#x'ba#y'ba#|'ba(X'ba(h'ba(o'ba!Y'ba!Z'ba~O|)zO!P){OP'daZ'daj'dan'da}'da!h'da!i'da!k'da!o'da#j'da#k'da#l'da#m'da#n'da#o'da#p'da#q'da#r'da#t'da#v'da#x'da#y'da#|'da(X'da(h'da(o'da(p'da!Y'da!Z'da~O(o$}OP%ZiZ%Zij%Zin%Zi|%Zi}%Zi!P%Zi!h%Zi!i%Zi!k%Zi!o%Zi#j%Zi#k%Zi#l%Zi#m%Zi#n%Zi#o%Zi#p%Zi#q%Zi#r%Zi#t%Zi#v%Zi#x%Zi#y%Zi#|%Zi(X%Zi(h%Zi(p%Zi!Y%Zi!Z%Zi~O(p%POP%]iZ%]ij%]in%]i|%]i}%]i!P%]i!h%]i!i%]i!k%]i!o%]i#j%]i#k%]i#l%]i#m%]i#n%]i#o%]i#p%]i#q%]i#r%]i#t%]i#v%]i#x%]i#y%]i#|%]i(X%]i(h%]i(o%]i!Y%]i!Z%]i~O#|$ky!Y$ky!Z$ky~P#CvO#|#_y!Y#_y!Z#_y~P#CvO!d#uO!Y'^q!j'^q~O!Y/cO!j(uy~O!V'`q!Y'`q~P#-]O!V9wO~P#-]O!Y0rO!Z)Oy~O!Y5UO!Z({q~O![1[O%c:OO~O!j:RO~O!['ZO%c:WO~OP$wqZ$wqn$wq}$wq!h$wq!i$wq!k$wq!o$wq#j$wq#k$wq#l$wq#m$wq#n$wq#o$wq#p$wq#q$wq#r$wq#t$wq#v$wq#x$wq#y$wq#|$wq(X$wq(h$wq!Y$wq!Z$wq~P&&xO|)zO!P){O(p%POP'caZ'caj'can'ca}'ca!h'ca!i'ca!k'ca!o'ca#j'ca#k'ca#l'ca#m'ca#n'ca#o'ca#p'ca#q'ca#r'ca#t'ca#v'ca#x'ca#y'ca#|'ca(X'ca(h'ca(o'ca!Y'ca!Z'ca~O|)zO!P){OP'eaZ'eaj'ean'ea}'ea!h'ea!i'ea!k'ea!o'ea#j'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#t'ea#v'ea#x'ea#y'ea#|'ea(X'ea(h'ea(o'ea(p'ea!Y'ea!Z'ea~OP$yqZ$yqn$yq}$yq!h$yq!i$yq!k$yq!o$yq#j$yq#k$yq#l$yq#m$yq#n$yq#o$yq#p$yq#q$yq#r$yq#t$yq#v$yq#x$yq#y$yq#|$yq(X$yq(h$yq!Y$yq!Z$yq~P&&xOf%_!Z!Y%_!Z#[%_!Z#|%_!Z~P!0}O!Y'iq!Z'iq~P#CvO!Y#d!Z!Z#d!Z~P#CvO#g%_!ZP%_!ZZ%_!Z`%_!Zn%_!Z}%_!Z!Y%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z'r%_!Z(X%_!Z(h%_!Z!j%_!Z!V%_!Z'p%_!Z#[%_!Zr%_!Z![%_!Z%c%_!Z!d%_!Z~P#-]OP%_!ZZ%_!Zn%_!Z}%_!Z!h%_!Z!i%_!Z!k%_!Z!o%_!Z#j%_!Z#k%_!Z#l%_!Z#m%_!Z#n%_!Z#o%_!Z#p%_!Z#q%_!Z#r%_!Z#t%_!Z#v%_!Z#x%_!Z#y%_!Z#|%_!Z(X%_!Z(h%_!Z!Y%_!Z!Z%_!Z~P&&xOr(]X~P1qO'|!lO~P!*fO!VeX!YeX#[eX~P'#SOP[XZ[Xn[X|[X}[X!P[X!Y[X!YeX!h[X!i[X!k[X!o[X#[[X#[eX#geX#j[X#k[X#l[X#m[X#n[X#o[X#p[X#q[X#r[X#t[X#v[X#x[X#y[X$O[X(X[X(h[X(o[X(p[X~O!deX!j[X!jeX(heX~P'@vOP:cOQ:cORfOc<[Od!iOlkOn:cOokOpkOvkOx:cOz:cO!PWO!TkO!UkO![XO!f:fO!kZO!n:cO!o:cO!p:cO!r:gO!t:jO!w!hO$T!kO'{)YO'}TO(QUO(XVO(g[O(t<YO~O!Y:wO!Z$ma~Og%VOl%WOn$tOo$sOp$sOv%XOx%YOz;RO!P${O![$|O!f<aO!k$xO#f;XO$T%^O$o;TO$q;VO$t%_O'{(pO'}TO(QUO(X$uO(o$}O(p%PO~O#s)aO~P'ElO!Z[X!ZeX~P'@vO#g:kO~O!d#uO#g:kO~O#[:{O~O#r:pO~O#[;ZO!Y(mX!Z(mX~O#[:{O!Y(kX!Z(kX~O#g;[O~Of;^O~P!0}O#g;cO~O#g;dO~O!d#uO#g;eO~O!d#uO#g;[O~O#|;fO~P#CvO#g;gO~O#g;hO~O#g;mO~O#g;nO~O#g;oO~O#g;pO~O#|;qO~P!0}O#|;rO~P!0}O!i#P#Q#S#T#W#e#f#q(t$o$q$t%W%b%c%d%k%m%p%q%s%u~'vS#k!U't'|#lo#j#mn|'u$Y'u'{$[([~",goto:"$2p)SPPPPP)TPP)WP)iP*x.|PPPP5pPP6WPP<S?gP?zP?zPPP?zPAxP?zP?zP?zPA|PPBRPBlPGdPPPGhPPPPGhJiPPPJoKjPGhPMxPPPP!!WGhPPPGhPGhP!$fGhP!'z!(|!)VP!)y!)}!)yPPPPP!-Y!(|PP!-v!.pP!1dGhGh!1i!4s!9Y!9Y!=OPPP!=VGhPPPPPPPPPPP!@dP!AuPPGh!CSPGhPGhGhGhGhPGh!DfP!GnP!JrP!Jv!KQ!KU!KUP!GkP!KY!KYP!N^P!NbGhGh!Nh##k?zP?zP?z?zP#$v?z?z#'O?z#)k?z#+m?z?z#,[#.f#.f#.j#.r#.f#.zP#.fP?z#/d?z#3R?z?z5pPPP#6vPPP#7a#7aP#7aP#7w#7aPP#7}P#7tP#7t#8b#7t#8|#9S5m)W#9V)WP#9^#9^#9^P)WP)WP)WP)WPP)WP#9d#9gP#9g)WP#9kP#9nP)WP)WP)WP)WP)WP)W)WPP#9t#9z#:V#:]#:c#:i#:o#:}#;T#;Z#;e#;k#;u#<U#<[#<|#=`#=f#=l#=z#>a#@O#@^#@d#Ax#BW#Cr#DQ#DW#D^#Dd#Dn#Dt#Dz#EU#Eh#EnPPPPPPPPPP#EtPPPPPPP#Fi#Ip#KP#KW#K`PPPP$!d$%Z$+r$+u$+x$,q$,t$,w$-O$-WPP$-^$-b$.Y$/X$/]$/qPP$/u$/{$0PP$0S$0W$0Z$1P$1h$2P$2T$2W$2Z$2a$2d$2h$2lR!{RoqOXst!Z#c%j&m&o&p&r,h,m1w1zY!uQ'Z-Y1[5]Q%pvQ%xyQ&P|Q&e!VS'R!e-QQ'a!iS'g!r!xS*c$|*hQ+f%yQ+s&RQ,X&_Q-W'YQ-b'bQ-j'hQ/|*jQ1f,YR;Y:g%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8gS#p]:d!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q*u%ZQ+k%{Q,Z&bQ,b&jQ.c;QQ0h+^Q0l+`Q0w+lQ1n,`Q2{.[Q4v0rQ5k1gQ6i3PQ6u;RQ7h4wR8m6j&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]t!nQ!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_$v$si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gQ&S|Q'P!eS'V%f-TQ+k%{Q,Z&bQ0]*yQ0w+lQ0|+rQ1m,_Q1n,`Q4v0rQ5P1OQ5k1gQ5n1iQ5o1lQ7h4wQ7k4|Q8U5qQ9V7lR9b8RrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR,]&f&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O']'m(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<[<][#[WZ#V#Y'S'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ%sxQ%wyS%||&RQ&Y!TQ'^!hQ'`!iQ(k#rS*V$x*ZS+e%x%yQ+i%{Q,S&]Q,W&_S-a'a'bQ.^(lQ/g*WQ0p+fQ0v+lQ0x+mQ0{+qQ1a,TS1e,X,YQ2i-bQ3y/cQ4u0rQ4y0uQ5O0}Q5j1fQ7Q3zQ7g4wQ7j4{Q9R7fR9y9S!O$zi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c!S%uy!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^Q+_%sQ+x&VQ+{&WQ,V&_Q.](kQ1`,SU1d,W,X,YQ3Q.^Q5e1aS5i1e1fQ8Q5j#W<^#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go<_:y:z:};P;T;V;X;`;b;d;h;j;l;n;rW%Ti%V*r<YS&V!Q&dQ&W!RQ&X!SR+v&T$w%Si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gT)v$u)wV*v%Z;Q;RU'V!e%f-TS(y#y#zQ+p&OS.V(g(hQ1V+|Q4g0ZR7p5U&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]$i$`c#X#d%n%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.t.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q'T!eR2^-Qv!nQ!e!r!u!x!y'R'Y'Z'g'h'i-Q-W-Y-j1[5]5_S*b$|*hS/t*c*jQ/}*kQ1X,OQ4^/|R4a0PnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&t!^Q'q!wS(m#t:kQ+c%vQ,Q&YQ,R&[Q-_'_Q-l'jS.g(r;[S0`+O;eQ0n+dQ1Z,PQ2O,oQ2Q,pQ2Y,{Q2g-`Q2j-dS4l0a;oQ4q0oS4t0q;pQ6T2[Q6X2hQ6^2oQ7e4rQ8b6VQ8c6YQ8f6_R9h8_$d$_c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(j#o'dU*o%R(q3mS+Y%n.tQ2|0hQ6f2{Q8l6iR9o8m$d$^c#X#d%o%q'|(S(n(u(})O)P)Q)R)S)T)U)V)W)X)Z)^)b)l+Z+o-O-m-r-w-y.h.n.r.u.v/V0_2W2Z2k2r3Y3_3`3a3b3c3d3e3f3g3h3i3j3k3n3o3t4k4s6U6[6a6o6p6y6z7r8a8e8n8t8u9k9{:S:e<PS(i#o'dS({#z$_S+X%n.tS.W(h(jQ.w)]Q0e+YR2y.X&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]S#p]:dQ&o!XQ&p!YQ&r![Q&s!]R1v,kQ'[!hQ+[%sQ-]'^S.Y(k+_Q2e-[W2}.].^0g0iQ6W2fU6e2z2|3QS8i6f6hS9m8k8lS:U9l9oQ:^:VR:a:_U!vQ'Z-YT5Z1[5]!Q_OXZ`st!V!Z#c#g%b%j&d&f&m&o&p&r(d,h,m.P1w1z]!pQ!r'Z-Y1[5]T#p]:d%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS(y#y#zS.V(g(h!s;v$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Y!tQ'Z-Y1[5]Q'f!rS'p!u!xS'r!y5_S-i'g'hQ-k'iR2p-jQ'o!tS(`#f1qS-h'f'rQ/f*VQ/r*bQ2q-kQ4O/gS4X/s/}Q7P3yS7[4_4aQ8y7QR9Q7_Q#vbQ'n!tS(_#f1qS(a#l*}Q+P%cQ+a%tQ+g%zU-g'f'o'rQ-{(`Q/e*VQ/q*bQ/w*eQ0m+bQ1b,US2n-h-kQ2v.TS3}/f/gS4W/r/}Q4Z/vQ4]/xQ5g1cQ6`2qQ7O3yQ7S4OS7W4X4aQ7]4`Q8O5hS8x7P7QQ8|7XQ9O7[Q9_8PQ9u8yQ9v8}Q9x9QQ:Q9`Q:Y9wQ;y;tQ<U;}R<V<OV!vQ'Z-Y%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gS#vz!j!r;s$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]R;y<[%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gQ%cj!S%ty!i!t%w%x%y'Q'`'a'b'f'p*b+e+f,}-a-b-i/t0p2b2i2p4^S%zz!jQ+b%uQ,U&_W1c,V,W,X,YU5h1d1e1fS8P5i5jQ9`8Q!r;t$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q;}<ZR<O<[$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8gY#aWZ#V#Y'}!S%gm#g#h#k%b%e(W(b(c(d+Q+R+T,d,z-x.O.P.Q.S2P2w2x6R6dQ,c&j!p;u$[$m)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]R;x'SS'W!e%fR2`-T%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S,e,h,m-^-f-t-z.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3Z5Y5d5t5u5x6]7w7|8]8g!r)[$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]Q,b&jQ0h+^Q2{.[Q6i3PR8m6j!f$Uc#X%n'|(S(n(u)U)V)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!T:r)Z)l-O.t2W2Z3_3g3h3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!b$Wc#X%n'|(S(n(u)W)X)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:e!P:t)Z)l-O.t2W2Z3_3i3j3n3t6U6p6y6z7r8a8n8t8u9{:S<P!^$[c#X%n'|(S(n(u)^)b+o-m-r-w-y.h.n/V0_2k2r3Y3k4k4s6[6a6o8e9k:eQ3x/az<])Z)l-O.t2W2Z3_3n3t6U6p6y6z7r8a8n8t8u9{:S<PQ<b<dR<c<e&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]S$nh$oR3q.z'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.z.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]T$jf$pQ$hfS)e$k)iR)q$pT$if$pT)g$k)i'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%j%p%}&f&i&j&m&o&p&r&v'O'S']'m'}(P(V(^(r(v(z)n)y+O+S+^,e,h,m,y,|-^-f-t-z.[.l.s.z.{0[0a0q1_1o1p1r1t1w1z1|2]2m2s3P3Z3p5W5Y5d5t5u5x6S6]6j7w7|8]8g9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]T$nh$oQ$qhR)p$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%j%p%}&f&i&j&m&o&p&r&v'O']'m'}(P(V(^(r(v(z)y+O+S+^,e,h,m-^-f-t-z.[.l.s0[0a0q1_1o1p1r1t1w1z1|2m2s3P3Z5Y5d5t5u5x6]6j7w7|8]8g!s<Z$[$m'S)n,y,|.{2]3p5W6S9W9i:c:f:g:j:k:l:m:n:o:p:q:r:s:t:u:v:w:{;Y;Z;[;^;e;f;o;p<]#clOPXZst!Z!`!o#R#c#n#{$m%j&f&i&j&m&o&p&r&v'O'](z)n+S+^,e,h,m-^.[.{0[1_1o1p1r1t1w1z1|3P3p5Y5d5t5u5x6j7w7|8]!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gQ*z%_Q/W)zo3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!O$yi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cQ*[$zS*e$|*hQ*{%`Q/x*f#W;{#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;|:y:z:};P;T;V;X;`;b;d;h;j;l;n;rQ<Q<^Q<R<_Q<S<`R<T<a!O%Ri#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<c#W(q#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<go3m:y:z:};P;T;V;X;`;b;d;h;j;l;n;rnoOXst!Z#c%j&m&o&p&r,h,m1w1zQ*_${Q,v&yQ,w&{R4R/k$v%Si#u#w$c$d$x${%O%Q%[%]%a)u){)}*P*R*Y*`*p*q+]+`+w+z.Z.i/Z/j/k/m0Q0S0^1R1U1^3O3x4S4[4f4n4p5c6g7T7^7y8j8w9[9n:O:W:y:z:|:};O;P;S;T;U;V;W;X;_;`;a;b;c;d;g;h;i;j;k;l;m;n;q;r<Y<b<c<f<gQ+y&WQ1T+{Q5S1SR7o5TT*g$|*hS*g$|*hT5[1[5]S/v*d5YT4`0O7wQ+a%tQ/w*eQ0m+bQ1b,UQ5g1cQ8O5hQ9_8PR:Q9`!O%Oi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cr)}$v(s*O*n*|/i0U0V3W4P4j6}7`9t;z<W<XS0Q*m0R#W:|#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn:}:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!^;_(o)`*U*^._.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<e`;`3l6q6t6x8o9p9s:bS;i.a3UT;j6s8r!O%Qi#w%O%Q%[%]%a)}*P*Y*p*q.i/j0Q0S0^3x4f8w<Y<b<cv*P$v(s*Q*m*|/]/i0U0V3W4P4b4j6}7`9t;z<W<XS0S*n0T#W;O#u$c$d$x${)u){*R*`+]+`+w+z.Z/Z/k/m1R1U1^3O4S4[4n4p5c6g7T7^7y8j9[9n:O:W:|;O;S;U;W;_;a;c;g;i;k;m;q<f<gn;P:y:z:};P;T;V;X;`;b;d;h;j;l;n;r!b;a(o)`*U*^.`.a.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<ed;b3l6r6s6x8o8p9p9q9s:bS;k.b3VT;l6t8srnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ&a!UR,e&jrnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zR&a!UQ+}&XR1P+vsnOXst!V!Z#c%j&d&m&o&p&r,h,m1w1zQ1],SS5b1`1aU7x5`5a5eS9Z7z7{S9|9Y9]Q:Z9}R:`:[Q&h!VR,^&dR5n1iS%||&RR0x+mQ&m!WR,h&nR,n&sT1x,m1zR,r&tQ,q&tR2R,rQ't!zR-n'tSsOtQ#cXT%ms#cQ!}TR'v!}Q#QUR'x#QQ)w$uR/T)wQ#TVR'z#TQ#WWU(Q#W(R-uQ(R#XR-u(SQ-R'TR2_-RQ.j(sR3X.jQ.m(uS3[.m3]R3].nQ-Y'ZR2c-YY!rQ'Z-Y1[5]R'e!rS#^W%eU(X#^(Y-vQ(Y#_R-v(TQ-U'WR2a-Ut`OXst!V!Z#c%j&d&f&m&o&p&r,h,m1w1zS#gZ%bU#q`#g.PR.P(dQ(e#iQ-|(aW.U(e-|2t6bQ2t-}R6b2uQ)i$kR.|)iQ$ohR)o$oQ$bcU)_$b-q:xQ-q:eR:x)lQ/d*VW3{/d3|7R8zU3|/e/f/gS7R3}4OR8z7S$X)|$v(o(s)`*U*^*m*n*w*x*|.a.b.d.e.f/S/X/]/_/a/i/n0U0V0f1Q1S3R3S3T3W3l4P4Q4U4b4d4j5R5T6k6l6m6n6s6t6v6w6x6}7U7Y7`7b7d8o8p8q8{9P9p9q9r9s9t:X:b;z<W<X<d<eQ/l*^U4T/l4V7VQ4V/nR7V4UQ*h$|R/z*hr*O$v(s*m*n*|/i0U0V3W4P4j6}7`9t;z<W<X!^._(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3T4Q4U5R5T6k6n7U7Y7b7d8{9P:X<d<eU/^*O._6qa6q3l6s6t6x8o9p9s:bQ0R*mQ3U.aU4c0R3U8rR8r6sv*Q$v(s*m*n*|/]/i0U0V3W4P4b4j6}7`9t;z<W<X!b.`(o)`*U*^.a.b.f/S/X/a/n0f1Q1S3R3T4Q4U5R5T6k6l6n7U7Y7b7d8{9P:X<d<eU/`*Q.`6re6r3l6s6t6x8o8p9p9q9s:bQ0T*nQ3V.bU4e0T3V8sR8s6tQ*s%UR0X*sQ4o0fR7c4oQ+U%hR0d+UQ5V1VS7q5V9XR9X7rQ,P&YR1Y,PQ5]1[R7u5]Q1h,ZS5l1h8SR8S5nQ0s+iW4x0s4z7i9TQ4z0vQ7i4yR9T7jQ+n%|R0y+nQ1z,mR5|1zYrOXst#cQ&q!ZQ+W%jQ,g&mQ,i&oQ,j&pQ,l&rQ1u,hS1x,m1zR5{1wQ%lpQ&u!_Q&x!aQ&z!bQ&|!cQ'l!tQ+V%iQ+c%vQ+u&SQ,]&hQ,t&wW-e'f'n'o'rQ-l'jQ/y*gQ0n+dS1k,^,aQ2S,sQ2T,vQ2U,wQ2j-dW2l-g-h-k-mQ4q0oQ4}0|Q5Q1QQ5f1bQ5p1mQ5z1vU6Z2k2n2qQ6^2oQ7e4rQ7m5PQ7n5RQ7t5[Q7}5gQ8T5oS8d6[6`Q8f6_Q9U7kQ9^8OQ9c8UQ9j8eQ9z9VQ:P9_Q:T9kR:]:QQ%vyQ'_!iQ'j!tU+d%w%x%yQ,{'QU-`'`'a'bS-d'f'pQ/p*bS0o+e+fQ2[,}S2h-a-bQ2o-iQ4Y/tQ4r0pQ6V2bQ6Y2iQ6_2pR7Z4^S$wi<YR*t%VU%Ui%V<YR0W*rQ$viS(o#u+`Q(s#wS)`$c$dQ*U$xQ*^${Q*m%OQ*n%QQ*w%[Q*x%]Q*|%aQ.a:|Q.b;OQ.d;SQ.e;UQ.f;WQ/S)uS/X){/ZQ/])}Q/_*PQ/a*RQ/i*YQ/n*`Q0U*pQ0V*qh0f+].Z1^3O5c6g7y8j9[9n:O:WQ1Q+wQ1S+zQ3R;_Q3S;aQ3T;cQ3W.iS3l:y:zQ4P/jQ4Q/kQ4U/mQ4b0QQ4d0SQ4j0^Q5R1RQ5T1UQ6k;gQ6l;iQ6m;kQ6n;mQ6s:}Q6t;PQ6v;TQ6w;VQ6x;XQ6}3xQ7U4SQ7Y4[Q7`4fQ7b4nQ7d4pQ8o;dQ8p;`Q8q;bQ8{7TQ9P7^Q9p;hQ9q;jQ9r;lQ9s;nQ9t8wQ:X;qQ:b;rQ;z<YQ<W<bQ<X<cQ<d<fR<e<gnpOXst!Z#c%j&m&o&p&r,h,m1w1zQ!fPS#eZ#nQ&w!`U'c!o5Y7wQ'y#RQ(|#{Q)m$mS,a&f&iQ,f&jQ,s&vQ,x'OQ-[']Q.p(zQ/Q)nQ0b+SQ0i+^Q1s,eQ2f-^Q2|.[Q3s.{Q4h0[Q5a1_Q5r1oQ5s1pQ5w1rQ5y1tQ6O1|Q6f3PQ6{3pQ7{5dQ8X5tQ8Y5uQ8[5xQ8l6jQ9]7|R9g8]#WcOPXZst!Z!`!o#c#n#{%j&f&i&j&m&o&p&r&v'O'](z+S+^,e,h,m-^.[0[1_1o1p1r1t1w1z1|3P5Y5d5t5u5x6j7w7|8]Q#XWQ#dYQ%nuQ%ovS%qw!gS'|#V(PQ(S#YQ(n#tQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)X$YQ)Z$[Q)^$aQ)b$eW)l$m)n.{3pQ+Z%pQ+o%}S-O'S2]Q-m'mS-r'}-tQ-w(VQ-y(^Q.h(rQ.n(vQ.r:cQ.t:fQ.u:gQ.v:jQ/V)yQ0_+OQ2W,yQ2Z,|Q2k-fQ2r-zQ3Y.lQ3_:kQ3`:lQ3a:mQ3b:nQ3c:oQ3d:pQ3e:qQ3f:rQ3g:sQ3h:tQ3i:uQ3j:vQ3k.sQ3n:{Q3o;YQ3t:wQ4k0aQ4s0qQ6U;ZQ6[2mQ6a2sQ6o3ZQ6p;[Q6y;^Q6z;eQ7r5WQ8a6SQ8e6]Q8n;fQ8t;oQ8u;pQ9k8gQ9{9WQ:S9iQ:e#RR<P<]R#ZWR'U!eY!tQ'Z-Y1[5]S'Q!e-QQ'f!rS'p!u!xS'r!y5_S,}'R'YS-i'g'hQ-k'iQ2b-WR2p-jR(t#wR(w#xQ!fQT-X'Z-Y]!qQ!r'Z-Y1[5]Q#o]R'd:dT#jZ%bS#iZ%bS%hm,dU(a#g#h#kS-}(b(cQ.R(dQ0c+TQ2u.OU2v.P.Q.SS6c2w2xR8h6d`#]W#V#Y%e'}(W+Q-xr#fZm#g#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:cCe,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[gCe],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$f&j(Op(R!b't(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST(P#S$f&j'u(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$f&j(Op(R!b'u(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$f&j!o$Ip(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#t$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|3l_'}$(n$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$f&j(R!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$f&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$a`$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$a``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$a`$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(R!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$a`(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k#%|:hh$f&j(Op(R!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__VS$f&j(Op(R!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]VS$f&j(R!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXVS$f&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSVSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWVS(R!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]VS$f&j(OpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWVS(OpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYVS(Op(R!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S#%|C}i$f&j(g!L^(Op(R!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr#%|EoP;=`<%lCr(CSFRk$f&j(Op(R!b$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$f&j(Op(R!b$Y#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv(CSJPP;=`<%lEr%#SJ_`$f&j(Op(R!b#l$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SKl_$f&j$O$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&COLva(p&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SNW`$f&j#x$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/|! c_(Q$)`$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$f&j(OpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$f&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$a`$f&j(OpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(OpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$a`(OpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b(*Q!'t_!k(!b$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'l!)O_!jM|$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h!*[b$f&j(Op(R!b'|#)d#m$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S!+o`$f&j(Op(R!b#j$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&-O!,|`$f&j(Op(R!bn&%`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&C[!.Z_!Y&;l$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!/ec$f&j(Op(R!b|'<nOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!0ya$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z!'d!2Z_!XMt$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!3eg$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!5Vg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!6wc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l!8_c$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS!9uf$f&j(Op(R!b#k$IdOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpxz!;Zz{#,f{!P!;Z!P!Q#-{!Q!^!;Z!^!_#'Z!_!`#5k!`!a#7Q!a!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(r!;fb$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(Q!<w`$f&j(R!b!USOY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eb!Q!^!<n!^!_!GY!_!}!<n!}#O!Ja#O#P!Dj#P#o!<n#o#p!GY#p;'S!<n;'S;=`!Kj<%lO!<n&n!>Q^$f&j!USOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$f&j!USO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!USOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!US#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$f&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$f&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$f&j(R!b!USOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ(R!b!USOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb(R!b!USOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX(R!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$f&j(R!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!<n#Q#o!Ja#o#p!Ic#p;'S!Ja;'S;=`!Kd<%lO!Ja(Q!KgP;=`<%l!Ja(Q!KmP;=`<%l!<n'`!Ky`$f&j(Op!USOY!KpYZ&cZr!Kprs!=ys!P!Kp!P!Q!L{!Q!^!Kp!^!_!Ns!_!}!Kp!}#O##z#O#P!Dj#P#o!Kp#o#p!Ns#p;'S!Kp;'S;=`#%T<%lO!Kp'`!MUi$f&j(Op!USOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#Z(r#Z#[!L{#[#](r#]#^!L{#^#a(r#a#b!L{#b#g(r#g#h!L{#h#i(r#i#j!L{#j#m(r#m#n!L{#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rt!NzZ(Op!USOY!NsZr!Nsrs!@Ys!P!Ns!P!Q# m!Q!}!Ns!}#O#!|#O#P!Bb#P;'S!Ns;'S;=`##t<%lO!Nst# tb(Op!USOY)rZr)rs#O)r#P#Z)r#Z#[# m#[#])r#]#^# m#^#a)r#a#b# m#b#g)r#g#h# m#h#i)r#i#j# m#j#m)r#m#n# m#n;'S)r;'S;=`*Z<%lO)rt##RX(OpOY#!|Zr#!|rs!Acs#O#!|#O#P!A{#P#Q!Ns#Q;'S#!|;'S;=`##n<%lO#!|t##qP;=`<%l#!|t##wP;=`<%l!Ns'`#$R^$f&j(OpOY##zYZ&cZr##zrs!Bws!^##z!^!_#!|!_#O##z#O#P!Cr#P#Q!Kp#Q#o##z#o#p#!|#p;'S##z;'S;=`#$}<%lO##z'`#%QP;=`<%l##z'`#%WP;=`<%l!Kp(r#%fk$f&j(Op(R!b!USOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#Z%Z#Z#[#%Z#[#]%Z#]#^#%Z#^#a%Z#a#b#%Z#b#g%Z#g#h#%Z#h#i%Z#i#j#%Z#j#m%Z#m#n#%Z#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#W#'d](Op(R!b!USOY#'ZZr#'Zrs!GYsw#'Zwx!Nsx!P#'Z!P!Q#(]!Q!}#'Z!}#O#)w#O#P!Bb#P;'S#'Z;'S;=`#*w<%lO#'Z#W#(fe(Op(R!b!USOY*gZr*grs'}sw*gwx)rx#O*g#P#Z*g#Z#[#(]#[#]*g#]#^#(]#^#a*g#a#b#(]#b#g*g#g#h#(]#h#i*g#i#j#(]#j#m*g#m#n#(]#n;'S*g;'S;=`+Z<%lO*g#W#*OZ(Op(R!bOY#)wZr#)wrs!Icsw#)wwx#!|x#O#)w#O#P!A{#P#Q#'Z#Q;'S#)w;'S;=`#*q<%lO#)w#W#*tP;=`<%l#)w#W#*zP;=`<%l#'Z(r#+W`$f&j(Op(R!bOY#*}YZ&cZr#*}rs!Jasw#*}wx##zx!^#*}!^!_#)w!_#O#*}#O#P!Cr#P#Q!;Z#Q#o#*}#o#p#)w#p;'S#*};'S;=`#,Y<%lO#*}(r#,]P;=`<%l#*}(r#,cP;=`<%l!;Z(CS#,sb$f&j(Op(R!b'v(;d!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z(CS#.W_$f&j(Op(R!bS(;dOY#-{YZ&cZr#-{rs#/Vsw#-{wx#2gx!^#-{!^!_#4f!_#O#-{#O#P#0X#P#o#-{#o#p#4f#p;'S#-{;'S;=`#5e<%lO#-{(Bb#/`]$f&j(R!bS(;dOY#/VYZ&cZw#/Vwx#0Xx!^#/V!^!_#1j!_#O#/V#O#P#0X#P#o#/V#o#p#1j#p;'S#/V;'S;=`#2a<%lO#/V(AO#0`X$f&jS(;dOY#0XYZ&cZ!^#0X!^!_#0{!_#o#0X#o#p#0{#p;'S#0X;'S;=`#1d<%lO#0X(;d#1QSS(;dOY#0{Z;'S#0{;'S;=`#1^<%lO#0{(;d#1aP;=`<%l#0{(AO#1gP;=`<%l#0X(<v#1qW(R!bS(;dOY#1jZw#1jwx#0{x#O#1j#O#P#0{#P;'S#1j;'S;=`#2Z<%lO#1j(<v#2^P;=`<%l#1j(Bb#2dP;=`<%l#/V(Ap#2p]$f&j(OpS(;dOY#2gYZ&cZr#2grs#0Xs!^#2g!^!_#3i!_#O#2g#O#P#0X#P#o#2g#o#p#3i#p;'S#2g;'S;=`#4`<%lO#2g(<U#3pW(OpS(;dOY#3iZr#3irs#0{s#O#3i#O#P#0{#P;'S#3i;'S;=`#4Y<%lO#3i(<U#4]P;=`<%l#3i(Ap#4cP;=`<%l#2g(=h#4oY(Op(R!bS(;dOY#4fZr#4frs#1jsw#4fwx#3ix#O#4f#O#P#0{#P;'S#4f;'S;=`#5_<%lO#4f(=h#5bP;=`<%l#4f(CS#5hP;=`<%l#-{%#W#5xb$f&j$O$Id(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z+h#7_b$W#t$f&j(Op(R!b!USOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Kpx!P!;Z!P!Q#%Z!Q!^!;Z!^!_#'Z!_!}!;Z!}#O#*}#O#P!Dj#P#o!;Z#o#p#'Z#p;'S!;Z;'S;=`#,`<%lO!;Z$/l#8rp$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#U%Z#U#V#>Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#d#AY#d#l%Z#l#m#D[#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#;Rk$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#:v![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#:v#S#X%Z#X#Y!4|#Y#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#=R_$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#>Zd$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Acc$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Bye$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#Bn!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#Bn#S#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#Deg$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#FXi$f&j(Op(R!bo$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#E|![!^%Z!^!_*g!_!c%Z!c!i#E|!i#O%Z#O#P&c#P#R%Z#R#S#E|#S#T%Z#T#Z#E|#Z#b%Z#b#c#<v#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#HT_!d$b$f&j#|%<f(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#I__`l$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^#Jk^g!*v!h'.r(Op(R!b(tSOY*gZr*grs'}sw*gwx)rx!P*g!P!Q#Kg!Q!^*g!^!_#L]!_!`#M}!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#KpX$h&j(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#LfZ#n$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#MX!`#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#MbX$O$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g$Kh#NWX#o$Id(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g%Gh$ Oa#[%?x$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$!T!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#W$!`_#g$Ih$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh$#nafBf#o$Id$c#|$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$$s!`!a$%}!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$%O_#o$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$&Ya#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$'_!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$'j`#n$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+h$(wc(h$Ip$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P$*S!P!^%Z!^!_*g!_!a%Z!a!b$+^!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'+`$*__}'#p$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$+i`$f&j#y$Id(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&^$,v_!{!Ln$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(@^$.Q_!P(8n$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/UZ$f&jO!^$/w!^!_$0_!_#i$/w#i#j$0d#j#l$/w#l#m$2V#m#o$/w#o#p$0_#p;'S$/w;'S;=`$4b<%lO$/w(n$0OT^#S$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0dO^#S(n$0i[$f&jO!Q&c!Q![$1_![!^&c!_!c&c!c!i$1_!i#T&c#T#Z$1_#Z#o&c#o#p$3u#p;'S&c;'S;=`&w<%lO&c(n$1dZ$f&jO!Q&c!Q![$2V![!^&c!_!c&c!c!i$2V!i#T&c#T#Z$2V#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2[Z$f&jO!Q&c!Q![$2}![!^&c!_!c&c!c!i$2}!i#T&c#T#Z$2}#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3SZ$f&jO!Q&c!Q![$/w![!^&c!_!c&c!c!i$/w!i#T&c#T#Z$/w#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$3xR!Q![$4R!c!i$4R#T#Z$4R#S$4US!Q![$4R!c!i$4R#T#Z$4R#q#r$0_(n$4eP;=`<%l$/w!2r$4s_!V!+S$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S$5}`#v$Id$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&,v$7[_$f&j(Op(R!b(X&%WOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$8jk$f&j(Op(R!b'{&;d$[#t([!LYOY%ZYZ&cZr%Zrs&}st%Ztu$8Zuw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$8Z![!^%Z!^!_*g!_!c%Z!c!}$8Z!}#O%Z#O#P&c#P#R%Z#R#S$8Z#S#T%Z#T#o$8Z#o#p*g#p$g%Z$g;'S$8Z;'S;=`$<e<%lO$8Z+d$:jk$f&j(Op(R!b$[#tOY%ZYZ&cZr%Zrs&}st%Ztu$:_uw%Zwx(rx}%Z}!O$:_!O!Q%Z!Q![$:_![!^%Z!^!_*g!_!c%Z!c!}$:_!}#O%Z#O#P&c#P#R%Z#R#S$:_#S#T%Z#T#o$:_#o#p*g#p$g%Z$g;'S$:_;'S;=`$<_<%lO$:_+d$<bP;=`<%l$:_(CS$<hP;=`<%l$8Z!5p$<tX![!3l(Op(R!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g&CO$=la(o&;`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+^#q;'S%Z;'S;=`+a<%lO%Z%#`$?O_!Z$I`r`$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(r$@Y_!pS$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(CS$Aj|$f&j(Op(R!b't(;d$Y#t'{&;d([!LYOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(CS$Duk$f&j(Op(R!b'u(;d$Y#t'{&;d([!LYOY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[dCe,hCe,pCe,2,3,4,5,6,7,8,9,10,11,12,13,fCe,new Dy("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new Dy("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14602},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:t=>mCe[t]||-1},{term:334,get:t=>vCe[t]||-1},{term:70,get:t=>bCe[t]||-1}],tokenPrec:14626}),eB=[co("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),co("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),co("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),co("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),co("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),co(`try {
|
||
\${}
|
||
} catch (\${error}) {
|
||
\${}
|
||
}`,{label:"try",detail:"/ catch block",type:"keyword"}),co("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),co(`if (\${}) {
|
||
\${}
|
||
} else {
|
||
\${}
|
||
}`,{label:"if",detail:"/ else block",type:"keyword"}),co(`class \${name} {
|
||
constructor(\${params}) {
|
||
\${}
|
||
}
|
||
}`,{label:"class",detail:"definition",type:"keyword"}),co('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),co('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],yCe=eB.concat([co("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),co("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),co("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),tB=new QL,nB=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Km(t){return(e,n)=>{let i=e.node.getChild("VariableDefinition");return i&&n(i,t),!0}}const wCe=["FunctionDeclaration"],xCe={FunctionDeclaration:Km("function"),ClassDeclaration:Km("class"),ClassExpression:()=>!0,EnumDeclaration:Km("constant"),TypeAliasDeclaration:Km("type"),NamespaceDeclaration:Km("namespace"),VariableDefinition(t,e){t.matchContext(wCe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function iB(t,e){let n=tB.get(e);if(n)return n;let i=[],r=!0;function o(s,a){let l=t.sliceString(s.from,s.to);i.push({label:l,type:a})}return e.cursor(ln.IncludeAnonymous).iterate(s=>{if(r)r=!1;else if(s.name){let a=xCe[s.name];if(a&&a(s,o)||nB.has(s.name))return!1}else if(s.to-s.from>8192){for(let a of iB(t,s.node))i.push(a);return!1}}),tB.set(e,i),i}const rB=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,oB=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function _Ce(t){let e=Gn(t.state).resolveInner(t.pos,-1);if(oB.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&rB.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let i=[];for(let r=e;r;r=r.parent)nB.has(r.name)&&(i=i.concat(iB(t.state.doc,r)));return{options:i,from:n?e.from:t.pos,validFor:rB}}const Oa=Kd.define({name:"javascript",parser:kCe.configure({props:[Hk.add({IfStatement:Qk({except:/^\s*({|else\b)/}),TryStatement:Qk({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e2e,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:i?1:2)*t.unit},Block:Jxe({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":Qk({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Uk.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":lR,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),sB={test:t=>/^JSX/.test(t.name),facet:nR({commentTokens:{block:{open:"{/*",close:"*/}"}}})},aB=Oa.configure({dialect:"ts"},"typescript"),lB=Oa.configure({dialect:"jsx",props:[D4.add(t=>t.isTop?[sB]:void 0)]}),uB=Oa.configure({dialect:"jsx ts",props:[D4.add(t=>t.isTop?[sB]:void 0)]},"typescript");let cB=t=>({label:t,type:"keyword"});const fB="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(cB),OCe=fB.concat(["declare","implements","private","protected","public"].map(cB));function qC(t={}){let e=t.jsx?t.typescript?uB:lB:t.typescript?aB:Oa,n=t.typescript?yCe.concat(OCe):eB.concat(fB);return new L4(e,[Oa.data.of({autocomplete:c3e(oB,$j(n))}),Oa.data.of({autocomplete:_Ce}),t.jsx?ECe:[]])}function SCe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function dB(t,e,n=t.length){for(let i=e==null?void 0:e.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return t.sliceString(i.from,Math.min(i.to,n));return""}const CCe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),ECe=Te.inputHandler.of((t,e,n,i,r)=>{if((CCe?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||i!=">"&&i!="/"||!Oa.isActiveAt(t.state,e,-1))return!1;let o=r(),{state:s}=o,a=s.changeByRange(l=>{var u;let{head:f}=l,d=Gn(s).resolveInner(f-1,-1),h;if(d.name=="JSXStartTag"&&(d=d.parent),!(s.doc.sliceString(f-1,f)!=i||d.name=="JSXAttributeValue"&&d.to>f)){if(i==">"&&d.name=="JSXFragmentTag")return{range:l,changes:{from:f,insert:"</>"}};if(i=="/"&&d.name=="JSXStartCloseTag"){let g=d.parent,m=g.parent;if(m&&g.from==f-2&&((h=dB(s.doc,m.firstChild,f))||((u=m.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let y=`${h}>`;return{range:he.cursor(f+y.length,-1),changes:{from:f,insert:y}}}}else if(i==">"){let g=SCe(d);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(s.doc.sliceString(f,f+2))&&(h=dB(s.doc,g,f)))return{range:l,changes:{from:f,insert:`</${h}>`}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Jm=["_blank","_self","_top","_parent"],YC=["ascii","utf-8","utf-16","latin1","latin1"],VC=["get","post","put","delete"],XC=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Do=["true","false"],Ge={},TCe={a:{attrs:{href:null,ping:null,type:null,media:null,target:Jm,hreflang:null}},abbr:Ge,address:Ge,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Ge,aside:Ge,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Ge,base:{attrs:{href:null,target:Jm}},bdi:Ge,bdo:Ge,blockquote:{attrs:{cite:null}},body:Ge,br:Ge,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:XC,formmethod:VC,formnovalidate:["novalidate"],formtarget:Jm,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Ge,center:Ge,cite:Ge,code:Ge,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Ge,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Ge,div:Ge,dl:Ge,dt:Ge,em:Ge,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Ge,figure:Ge,footer:Ge,form:{attrs:{action:null,name:null,"accept-charset":YC,autocomplete:["on","off"],enctype:XC,method:VC,novalidate:["novalidate"],target:Jm}},h1:Ge,h2:Ge,h3:Ge,h4:Ge,h5:Ge,h6:Ge,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Ge,hgroup:Ge,hr:Ge,html:{attrs:{manifest:null}},i:Ge,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:XC,formmethod:VC,formnovalidate:["novalidate"],formtarget:Jm,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Ge,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Ge,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Ge,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:YC,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Ge,noscript:Ge,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Ge,param:{attrs:{name:null,value:null}},pre:Ge,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Ge,rt:Ge,ruby:Ge,samp:Ge,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:YC}},section:Ge,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Ge,source:{attrs:{src:null,type:null,media:null}},span:Ge,strong:Ge,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Ge,summary:Ge,sup:Ge,table:Ge,tbody:Ge,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Ge,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Ge,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Ge,time:{attrs:{datetime:null}},title:Ge,tr:Ge,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Ge,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Ge},hB={accesskey:null,class:null,contenteditable:Do,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Do,autocorrect:Do,autocapitalize:Do,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Do,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Do,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Do,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Do,"aria-hidden":Do,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Do,"aria-multiselectable":Do,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Do,"aria-relevant":null,"aria-required":Do,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},pB="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of pB)hB[t]=null;class jy{constructor(e,n){this.tags={...TCe,...e},this.globalAttrs={...hB,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}jy.default=new jy;function gh(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}function mh(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function gB(t,e,n){let i=n.tags[gh(t,mh(e))];return(i==null?void 0:i.children)||n.allTags}function GC(t,e){let n=[];for(let i=mh(e);i&&!i.type.isTop;i=mh(i.parent)){let r=gh(t,i);if(r&&i.lastChild.name=="CloseTag")break;r&&n.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&n.push(r)}return n}const mB=/^[:\-\.\w\u00b7-\uffff]*$/;function vB(t,e,n,i,r){let o=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",s=mh(n,n.name=="StartTag"||n.name=="TagName");return{from:i,to:r,options:gB(t.doc,s,e).map(a=>({label:a,type:"type"})).concat(GC(t.doc,n).map((a,l)=>({label:"/"+a,apply:"/"+a+o,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function bB(t,e,n,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:GC(t.doc,e).map((o,s)=>({label:o,apply:o+r,type:"type",boost:99-s})),validFor:mB}}function $Ce(t,e,n,i){let r=[],o=0;for(let s of gB(t.doc,n,e))r.push({label:"<"+s,type:"type"});for(let s of GC(t.doc,n))r.push({label:"</"+s+">",type:"type",boost:99-o++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function MCe(t,e,n,i,r){let o=mh(n),s=o?e.tags[gh(t.doc,o)]:null,a=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:l.map(u=>({label:u,type:"property"})),validFor:mB}}function NCe(t,e,n,i,r){var o;let s=(o=n.parent)===null||o===void 0?void 0:o.getChild("AttributeName"),a=[],l;if(s){let u=t.sliceDoc(s.from,s.to),f=e.globalAttrs[u];if(!f){let d=mh(n),h=d?e.tags[gh(t.doc,d)]:null;f=(h==null?void 0:h.attrs)&&h.attrs[u]}if(f){let d=t.sliceDoc(i,r).toLowerCase(),h='"',g='"';/^['"]/.test(d)?(l=d[0]=='"'?/^[^"]*$/:/^[^']*$/,h="",g=t.sliceDoc(r,r+1)==d[0]?"":d[0],d=d.slice(1),i++):l=/^[^\s<>='"]*$/;for(let m of f)a.push({label:m,apply:h+m+g,type:"constant"})}}return{from:i,to:r,options:a,validFor:l}}function ACe(t,e){let{state:n,pos:i}=e,r=Gn(n).resolveInner(i,-1),o=r.resolve(i);for(let s=i,a;o==r&&(a=r.childBefore(s));){let l=a.lastChild;if(!l||!l.type.isError||l.from<l.to)break;o=r=a,s=l.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?bB(n,r,r.from,i):vB(n,t,r,r.from,i):r.name=="StartTag"||r.name=="IncompleteTag"?vB(n,t,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?bB(n,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?MCe(n,t,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?NCe(n,t,r,r.name=="Is"?i:r.from,i):e.explicit&&(o.name=="Element"||o.name=="Text"||o.name=="Document")?$Ce(n,t,r,i):null}function PCe(t){let{extraTags:e,extraGlobalAttributes:n}=t,i=n||e?new jy(e,n):jy.default;return r=>ACe(i,r)}const DCe=Oa.parser.configure({top:"SingleExpression"}),kB=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:aB.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:lB.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:uB.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:DCe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Oa.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Ly.parser}],yB=[{name:"style",parser:Ly.parser.configure({top:"Styles"})}].concat(pB.map(t=>({name:t,parser:Oa.parser}))),wB=Kd.define({name:"html",parser:Y4e.configure({props:[Hk.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let i=t.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Uk.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),xR.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Fy=wB.configure({wrap:Gz(kB,yB)});function xB(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=Gz((t.nestedLanguages||[]).concat(kB),(t.nestedAttributes||[]).concat(yB)));let i=n?wB.configure({wrap:n,dialect:e}):e?Fy.configure({dialect:e}):Fy;return new L4(i,[Fy.data.of({autocomplete:PCe(t)}),t.autoCloseTags!==!1?ICe:[],qC().support,Pz().support])}const _B=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),ICe=Te.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!Fy.isActiveAt(t.state,e,-1))return!1;let o=r(),{state:s}=o,a=s.changeByRange(l=>{var u,f,d;let h=s.doc.sliceString(l.from-1,l.to)==i,{head:g}=l,m=Gn(s).resolveInner(g,-1),y;if(h&&i==">"&&m.name=="EndTag"){let x=m.parent;if(((f=(u=x.parent)===null||u===void 0?void 0:u.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(y=gh(s.doc,x.parent,g))&&!_B.has(y)){let _=g+(s.doc.sliceString(g,g+1)===">"?1:0),S=`</${y}>`;return{range:l,changes:{from:g,to:_,insert:S}}}}else if(h&&i=="/"&&m.name=="IncompleteCloseTag"){let x=m.parent;if(m.from==g-2&&((d=x.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(y=gh(s.doc,x,g))&&!_B.has(y)){let _=g+(s.doc.sliceString(g,g+1)===">"?1:0),S=`${y}>`;return{range:he.cursor(g+S.length,-1),changes:{from:g,to:_,insert:S}}}}return{range:l}});return a.changes.empty?!1:(t.dispatch([o,s.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function OB({code:t,language:e,updateCode:n,updateLanguage:i}){const[r,o]=T.useState(!0),{darkMode:s}=T.useContext(ft);T.useEffect(()=>{const S=()=>{o(!0)};return window.addEventListener("mousemove",S),()=>{window.removeEventListener("mousemove",S)}},[]);const a=T.useCallback(S=>{o(!1),n(S)},[n]),l=T.useCallback(S=>{i(S.target.value)},[i]),u=Te.theme({"&.cm-editor":{background:"transparent"},"&.cm-focused":{outline:"0"},"&.cm-editor .cm-content":{padding:"7px 0"},"&.cm-editor .cm-scroller":{overflow:"auto"},"&.cm-editor .cm-gutters":{background:"none",border:"none",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",color:"#CED4D9",lineHeight:"2.25rem"},"&.cm-editor .cm-gutter":{minHeight:"170px"},"&.cm-editor .cm-lineNumbers":{padding:"0"},"&.cm-editor .cm-foldGutter":{width:"0"},"&.cm-editor .cm-line":{padding:"0 .8rem",color:"#394047",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",fontSize:"1.6rem",lineHeight:"2.25rem"},"&.cm-editor .cm-activeLine, &.cm-editor .cm-activeLineGutter":{background:"none"},"&.cm-editor .cm-cursor, &.cm-editor .cm-dropCursor":{borderLeft:"1.2px solid black"}}),f=Te.theme({"&.cm-editor":{background:"transparent"},"&.cm-focused":{outline:"0"},"&.cm-editor .cm-content":{padding:"7px 0"},"&.cm-editor .cm-scroller":{overflow:"auto"},"&.cm-editor .cm-gutters":{background:"none",border:"none",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",color:"rgb(108, 118, 127);",lineHeight:"2.25rem"},"&.cm-editor .cm-gutter":{minHeight:"170px"},"&.cm-editor .cm-lineNumbers":{padding:"0"},"&.cm-editor .cm-foldGutter":{width:"0"},"&.cm-editor .cm-line":{padding:"0 .8rem",color:"rgb(210, 215, 218)",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",fontSize:"1.6rem",lineHeight:"2.25rem"},"&.cm-editor .cm-activeLine, &.cm-editor .cm-activeLineGutter":{background:"none"},"&.cm-editor .cm-cursor, &.cm-editor .cm-dropCursor":{borderLeft:"1.2px solid white"}}),d=ol.define([{tag:X.keyword,color:"#5A5CAD"},{tag:X.atom,color:"#6C8CD5"},{tag:X.number,color:"#116644"},{tag:X.definition(X.variableName),textDecoration:"underline"},{tag:X.variableName,color:"black"},{tag:X.comment,color:"#0080FF",fontStyle:"italic",background:"rgba(0,0,0,.05)"},{tag:[X.string,X.special(X.brace)],color:"#183691"},{tag:X.meta,color:"yellow"},{tag:X.bracket,color:"#63a35c"},{tag:X.tagName,color:"#63a35c"},{tag:X.attributeName,color:"#795da3"}]),h=ol.define([{tag:X.keyword,color:"#795da3"},{tag:X.atom,color:"#6C8CD5"},{tag:X.number,color:"#63a35c"},{tag:X.definition(X.variableName),textDecoration:"underline"},{tag:X.variableName,color:"white"},{tag:X.comment,color:"#0080FF",fontStyle:"italic",background:"rgba(0,0,0,.05)"},{tag:[X.string,X.special(X.brace)],color:"rgb(72, 110, 225)"},{tag:X.meta,color:"yellow"},{tag:X.bracket,color:"#63a35c"},{tag:X.tagName,color:"#63a35c"},{tag:X.attributeName,color:"#795da3"},{tag:[X.className,X.propertyName],color:"rgb(72, 110, 225)"}]),g=s?f:u,m=s?h:d,y=[Te.lineWrapping,Fm(m),g,O4(),sF({defaultKeymap:!1,history:!1}),nl.of(J4),Vk({joinToEvent:void 0})],_={javascript:qC,js:qC,html:xB,css:Pz}[e==null?void 0:e.toLowerCase().trim()]||null;return _&&y.push(_()),k.jsxs("div",{className:"not-kg-prose min-h-[170px]",children:[k.jsx(bC,{autoFocus:!0,basicSetup:!1,extensions:y,value:t,onChange:a}),k.jsx("input",{"aria-label":"Code card language",className:`z-999 absolute right-1.5 top-1.5 w-1/5 rounded-md border border-grey-300 px-2 py-1 font-sans text-[1.3rem] leading-4 text-grey-900 transition-opacity focus-visible:outline-none dark:border-grey-900 dark:text-grey-400 ${r?"opacity-100":"opacity-0"}`,"data-testid":"code-card-language",placeholder:"Language...",type:"text",value:e,onChange:l})]})}function SB({code:t,darkMode:e,language:n}){const i=e?"rounded-md border border-grey-950 bg-grey-950 px-2 py-[6px] font-mono text-[1.6rem] leading-9 text-grey-400 whitespace-pre-wrap":"rounded-md border border-grey-200 bg-grey-100 px-2 py-[6px] font-mono text-[1.6rem] leading-9 text-grey-900 whitespace-pre-wrap";return k.jsxs("div",{className:"not-kg-prose",children:[k.jsx("pre",{className:i,children:k.jsx("code",{className:n&&`language-${n}`,children:t})}),k.jsx("div",{className:"absolute right-2 top-2 flex items-center justify-center px-1",children:k.jsx("span",{className:"block font-sans text-sm font-medium leading-normal text-grey",children:n})})]})}function CB({captionEditor:t,captionEditorInitialState:e,code:n,darkMode:i,isEditing:r,isSelected:o,language:s,updateCode:a,updateLanguage:l}){return r?k.jsx(OB,{code:n,darkMode:i,language:s,updateCode:a,updateLanguage:l}):k.jsxs(k.Fragment,{children:[k.jsx(SB,{code:n,darkMode:i,language:s}),k.jsx(dh,{captionEditor:t,captionEditorInitialState:e,captionPlaceholder:"Type caption for code block (optional)",dataTestId:"codeblock-caption",isSelected:o})]})}OB.propTypes={code:P.string,language:P.string,updateCode:P.func,updateLanguage:P.func},SB.propTypes={code:P.string,darkMode:P.bool,language:P.string},CB.propTypes={code:P.string,darkMode:P.bool,language:P.string,captionEditor:P.object,captionEditorInitialState:P.object,isEditing:P.bool,isSelected:P.bool,updateCode:P.func,updateLanguage:P.func};const LCe=t=>J.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M4.47 1.867a4.525 4.525 0 015.02 1.378.4.4 0 01-.618.51 3.725 3.725 0 00-6.597 2.369v.159l.817-.817a.4.4 0 11.565.565l-1.48 1.48a.4.4 0 01-.605 0l-1.48-1.48a.4.4 0 11.565-.565l.818.817v-.16A4.526 4.526 0 014.47 1.868zm5.655 3.107a.4.4 0 01.283.117l1.5 1.5a.4.4 0 01-.566.565l-.822-.822A4.525 4.525 0 012.709 9.23a.4.4 0 01.582-.55 3.725 3.725 0 006.427-2.333l-.81.81a.4.4 0 11-.566-.565l1.5-1.5a.4.4 0 01.283-.117z"})),RCe=({snippets:t,onCreateSnippet:e,onUpdateSnippet:n,value:i,isCreateButtonActive:r,onKeyDown:o,activeMenuItem:s})=>k.jsxs("ul",{className:"absolute mt-[-1px] w-full max-w-[240px] rounded-b border border-grey-200 bg-white shadow-md dark:border-grey-900 dark:bg-grey-950",tabIndex:0,onKeyDown:o,children:[k.jsx("li",{className:"mb-0 block",children:k.jsxs("button",{className:`flex w-full cursor-pointer items-center justify-between px-3 py-2 text-left text-sm font-medium text-green-600 hover:bg-grey-100 dark:hover:bg-black ${r?"bg-grey-100 dark:bg-black":""}`,type:"button",onClick:e,children:[k.jsxs("span",{children:['Create "',i,"“"]}),k.jsx(rv,{className:"size-3 stroke-green-600 stroke-[3px]"})]})}),!!t.length&&k.jsx(jCe,{activeMenuItem:s,list:t,onClick:n})]}),jCe=({list:t=[],onClick:e,activeMenuItem:n})=>k.jsxs("li",{role:"separator",children:[k.jsx("span",{className:"block border-t border-grey-200 px-3 pb-2 pt-3 text-[1.1rem] font-semibold uppercase tracking-wide text-grey-600 dark:border-grey-900 dark:text-grey-800",children:"Replace existing"}),k.jsx("ul",{role:"menu",children:t.map((i,r)=>k.jsx(FCe,{active:n,index:r,name:i.name,onClick:e},i.name))})]}),FCe=({onClick:t,name:e,active:n,index:i})=>k.jsx("li",{className:"mb-1",children:k.jsxs("button",{className:`flex w-full cursor-pointer items-center justify-between px-3 py-2 text-left text-sm hover:bg-grey-100 ${i===n?"bg-grey-100 dark:bg-black":""} dark:hover:bg-black`,type:"button",onClick:()=>t(e),children:[k.jsx("span",{children:e}),k.jsx("div",{className:"size-5 fill-grey-900",children:k.jsx(LCe,{className:"size-4 fill-grey-900 dark:fill-grey-600"})})]})}),vh=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M19 5 5 19m14 0L5 5"})),zCe=({value:t,onChange:e,onClear:n,onKeyDown:i})=>k.jsxs("div",{className:"relative m-0 flex items-center justify-evenly gap-1 rounded-lg bg-white font-sans text-md font-normal text-black shadow-md dark:bg-grey-950",children:[k.jsx("input",{autoComplete:"off",autoFocus:!0,className:`mb-[1px] h-auto w-full bg-white py-1 pl-3 pr-9 font-normal leading-loose text-grey-900 selection:bg-grey/40 dark:bg-grey-950 dark:text-grey-100 dark:placeholder:text-grey-800 ${t?"rounded-b-none rounded-t":"rounded"}`,"data-testid":"snippet-name",placeholder:"Snippet name",value:t,"data-1p-ignore":!0,onChange:e,onKeyDown:i}),k.jsx("button",{"aria-label":"Close",className:"absolute right-3 cursor-pointer",type:"button",onClick:n,children:k.jsx(vh,{className:"size-3 stroke-2 text-grey"})})]});function EB({value:t,onChange:e,onCreateSnippet:n,onUpdateSnippet:i,onClose:r,snippets:o=[]}){const s=T.useRef(null),[a,l]=T.useState(!0),[u,f]=T.useState(-1),[d,h]=T.useState([]);T.useEffect(()=>{const m=o.filter(y=>y.name.toLowerCase().includes(t.toLowerCase()));m.length===0?(l(!0),f(-1)):(l(!1),f(0)),h(m)},[t,o]),T.useEffect(()=>{const m=y=>{s.current&&!s.current.contains(y.target)&&r()};return window.addEventListener("mousedown",m),()=>{window.removeEventListener("mousedown",m)}},[r]);const g=m=>{if((m.key==="Escape"||m.key==="Esc")&&(m.stopPropagation(),r()),m.key==="ArrowDown"||m.key==="Down"){if(m.stopPropagation(),m.preventDefault(),d.length===0)return;if(u===-1&&!a){l(!0);return}const y=u+1;y>d.length-1?(f(-1),l(!0)):(f(y),l(!1))}if(m.key==="ArrowUp"||m.key==="Up"){if(m.stopPropagation(),m.preventDefault(),d.length===0)return;if(a){f(d.length-1),l(!1);return}const y=u-1;y<0?(f(-1),l(!0)):(f(y),l(!1))}m.key==="Enter"&&(a?(m.stopPropagation(),m.preventDefault(),n()):u>-1&&(m.stopPropagation(),m.preventDefault(),i(d[u].name)))};return k.jsxs("div",{ref:s,onClick:m=>m.stopPropagation(),children:[k.jsx(zCe,{value:t,onChange:e,onClear:r,onKeyDown:g}),!!t&&k.jsx(RCe,{activeMenuItem:u,isCreateButtonActive:a,snippets:d,value:t,onCreateSnippet:n,onUpdateSnippet:i})]})}EB.propTypes={value:P.string,onChange:P.func,onCreateSnippet:P.func,onReplaceSnippet:P.func,onClose:P.func,suggestedList:P.arrayOf(P.shape({name:P.string.isRequired,value:P.string.isRequired}))};function Kn({onClose:t,...e}){const{cardConfig:{snippets:n,createSnippet:i},darkMode:r}=T.useContext(ft),[o]=Oe.useLexicalComposerContext(),{selectedCardKey:s}=zc(),[a,l]=T.useState(""),u=d=>{l(d.target.value)},f=d=>{o.update(()=>{if(s){const h=A.$createNodeSelection();h.add(s);const g=Ac.$generateJSONFromSelectedNodes(o,h);i({name:d,value:JSON.stringify(g)}),o.dispatchCommand(Nu,{cardKey:s})}else{const h=A.$getSelection(),g=Ac.$generateJSONFromSelectedNodes(o,h);i({name:d,value:JSON.stringify(g)})}t==null||t(),o.getRootElement().focus()})};return k.jsx(EB,{darkMode:r,snippets:n,value:a,onChange:u,onClose:t,onCreateSnippet:()=>f(a),onUpdateSnippet:d=>f(d),...e})}const BCe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m14.2 4.3 5.5 5.5m-11 11L1 23l2.2-7.7L16.856 1.644a2.2 2.2 0 0 1 3.11 0l2.39 2.39a2.2 2.2 0 0 1 0 3.11L8.7 20.8Z"})),WCe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.373 13.33A2.528 2.528 0 0 1 1 12c0-.476.13-.94.373-1.33C2.946 8.163 6.819 3 12 3c5.181 0 9.054 5.164 10.627 7.67.243.39.373.854.373 1.33 0 .476-.13.94-.373 1.33C21.054 15.837 17.181 21 12 21c-5.181 0-9.054-5.164-10.627-7.67Z"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z"})),HCe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 12h8v10H1V12Zm0 0C1 5 2.75 3.344 6 2m8 10h8m-8 0v10h4m-4-10c0-7 1.75-8.656 5-10m1.7 14.4 1.75-1.4h.35v7"})),QCe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 12h8v10H1V12Zm0 0C1 5 2.75 3.344 6 2m8 10h8m-8 0v10h2m-2-10c0-7 1.75-8.656 5-10m.5 13.583c.517-.311 1.275-.559 1.878-.583 1.195 0 2.22.512 2.22 1.878-.015 2.205-4.098 4.78-4.098 4.78V22h4.098"})),Kc=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.917 5.583h20.166m-8.02-3.666H9.936a1.375 1.375 0 0 0-1.374 1.375v2.291h6.874V3.292a1.375 1.375 0 0 0-1.374-1.375ZM9.938 17.27v-6.874m4.125 6.874v-6.874"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M18.288 20.818a1.366 1.366 0 0 1-1.366 1.265H7.077a1.366 1.366 0 0 1-1.365-1.265L4.438 5.583h15.125l-1.275 15.235Z"})),zy=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1 21.094 3.913 24 17 10.906 14.125 8 1 21.094ZM11 11l3 3M5.25 4.25a2.5 2.5 0 0 0 2.5-2.5 2.5 2.5 0 0 0 2.5 2.5 2.5 2.5 0 0 0-2.5 2.5 2.5 2.5 0 0 0-2.5-2.5Zm12 0a2.5 2.5 0 0 0 2.5-2.5 2.5 2.5 0 0 0 2.5 2.5 2.5 2.5 0 0 0-2.5 2.5 2.5 2.5 0 0 0-2.5-2.5Zm0 11.99a2.5 2.5 0 0 0 2.5-2.5 2.5 2.5 0 0 0 2.5 2.5 2.5 2.5 0 0 0-2.5 2.5 2.5 2.5 0 0 0-2.5-2.5Z"}));function Cu({label:t,shortcutKeys:e}){return k.jsxs("div",{className:`invisible absolute -top-8 left-1/2 z-[1000] flex -translate-x-1/2 items-center gap-1 whitespace-nowrap rounded-md bg-black py-1 font-sans text-2xs font-medium text-white group-hover:visible dark:bg-grey-900 ${e?"pl-[1rem] pr-1":"px-[1rem]"}`,children:[k.jsx("span",{children:t}),e&&e.map(n=>k.jsx("div",{className:"rounded bg-grey-900 px-2 text-2xs text-white dark:bg-grey-950",children:n},n))]})}const UCe={bold:V8,italic:t9,headingTwo:e9,headingThree:J8,quote:n9,quoteOne:HCe,quoteTwo:QCe,link:f_,imgRegular:Tp,imgWide:$p,imgFull:Ep,imgReplace:i9,add:Y8,edit:BCe,wand:zy,visibility:WCe,snippet:ov,remove:Kc};function Jn({children:t,hide:e,...n}){return e?null:k.jsx("ul",{className:"relative m-0 flex items-center justify-evenly gap-1 rounded-lg bg-white px-1 font-sans text-md font-normal text-black shadow-md dark:bg-grey-950",...n,children:t})}function at({label:t,isActive:e,onClick:n,icon:i,shortcutKeys:r,secondary:o,dataTestId:s,hide:a,...l}){if(a)return null;const u=UCe[i];return k.jsxs("li",{className:"group relative m-0 flex p-0 first:m-0",...l,children:[k.jsx("button",{"aria-label":t,className:`my-1 flex h-8 w-9 cursor-pointer items-center justify-center rounded-md transition hover:bg-grey-200/80 dark:bg-grey-950 dark:hover:bg-grey-900 ${e?"bg-grey-200/80":"bg-white"}`,"data-kg-active":e,"data-testid":s,type:"button",onClick:n,children:k.jsx(u,{className:`size-4 overflow-visible transition ${o?"stroke-2":"stroke-[2.5]"} ${e?"text-green-600 dark:text-green-600":"text-black dark:text-white"}`})}),k.jsx(Cu,{label:t,shortcutKeys:r})]})}function Bn({hide:t}){return t?null:k.jsx("li",{className:"m-0 w-px self-stretch bg-grey-300/80 dark:bg-grey-900"})}function ZCe({nodeKey:t,captionEditor:e,captionEditorInitialState:n,code:i,language:r}){const[o]=Oe.useLexicalComposerContext(),{isEditing:s,setEditing:a,isSelected:l}=T.useContext(rn),{cardConfig:u,darkMode:f}=T.useContext(ft),[d,h]=T.useState(!1),g=x=>{o.update(()=>{const _=A.$getNodeByKey(t);_.code=x})},m=x=>{o.update(()=>{const _=A.$getNodeByKey(t);_.language=x})},y=x=>{x.preventDefault(),x.stopPropagation(),a(!0)};return k.jsxs(k.Fragment,{children:[k.jsx(CB,{captionEditor:e,captionEditorInitialState:n,code:i,darkMode:f,handleToolbarEdit:y,isEditing:s,isSelected:l,language:r,nodeKey:t,updateCode:g,updateLanguage:m}),k.jsx(xt,{"data-kg-card-toolbar":"button",isVisible:d,children:k.jsx(Kn,{onClose:()=>h(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"button",isVisible:l&&!s,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-code-card",icon:"edit",isActive:!1,label:"Edit",onClick:y}),k.jsx(Bn,{hide:!u.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!u.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>h(!0)})]})})]})}function qCe(t,e){const i=new DOMParser().parseFromString(e,"text/html");return Mn.$generateNodesFromDOM(t,i)}function TB({editor:t,initialHtml:e}){return e?t.update(()=>{const n=qCe(t,e);A.$getRoot().select(),A.$getRoot().clear(),A.$insertNodes(n),n.length&&A.$setSelection(null)},{discrete:!0,tag:"history-merge"}):t.update(()=>{A.$getRoot().append(A.$createParagraphNode())},{discrete:!0,tag:"history-merge"}),t.getEditorState()}const YCe=JSON.stringify({root:{children:[{children:[],direction:null,format:"",indent:0,type:"paragraph",version:1}],direction:null,format:"",indent:0,type:"root",version:1}});function vi(t,e,{editor:n,initialEditorState:i=YCe,nodes:r=Qi}={}){if(n)t[e]=n;else{t[e]=A.createEditor({nodes:r});const o=t[e].parseEditorState(i);t[e].setEditorState(o,{tag:"history-merge"})}}function bi(t,e,n){if(!n)return;const i=t[e],r=TB({editor:i,initialHtml:n});i.setEditorState(r,{tag:"history-merge"}),t[`${e}InitialState`]=r}A.createCommand();class By extends Rg{constructor(n={},i){super(n,i);ye(this,"__openInEditMode",!1);ye(this,"__captionEditor");ye(this,"__captionEditorInitialState");const{_openInEditMode:r}=n;this.__openInEditMode=r||!1,vi(this,"__captionEditor",{editor:n.captionEditor,nodes:Qi}),!n.captionEditor&&n.caption&&bi(this,"__captionEditor",`${n.caption}`)}getIcon(){return Eke}clearOpenInEditMode(){const n=this.getWritable();n.__openInEditMode=!1}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.captionEditor=i.__captionEditor,n.captionEditorInitialState=i.__captionEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__captionEditor&&this.__captionEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__captionEditor,null),r=si(i);n.caption=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),wrapperStyle:"code-card",children:k.jsx(ZCe,{captionEditor:this.__captionEditor,captionEditorInitialState:this.__captionEditorInitialState,code:this.code,language:this.language,nodeKey:this.getKey()})})}}function KC(t){return new By(t)}function VCe(t){return t instanceof By}const XCe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...t},J.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"M22.525 29 3 3h6.475L29 29h-6.475Zm5.557-26L17.789 14.075M3.918 29l10.285-11.067"}));var cl={},$B=ut,fl=A;let GCe=new Set(["http:","https:","mailto:","sms:","tel:"]),Wy=class Mee extends fl.ElementNode{static getType(){return"link"}static clone(e){return new Mee(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,n={},i){super(i);let{target:r=null,rel:o=null,title:s=null}=n;this.__url=e,this.__target=r,this.__rel=o,this.__title=s}createDOM(e){let n=document.createElement("a");return n.href=this.sanitizeUrl(this.__url),this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),this.__title!==null&&(n.title=this.__title),$B.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let i=this.__url,r=this.__target,o=this.__rel,s=this.__title;return i!==e.__url&&(n.href=i),r!==e.__target&&(r?n.target=r:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),s!==e.__title&&(s?n.title=s:n.removeAttribute("title")),!1}static importDOM(){return{a:()=>({conversion:KCe,priority:1})}}static importJSON(e){let n=e0(e.url,{rel:e.rel,target:e.target,title:e.title});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}sanitizeUrl(e){try{let n=new URL(e);if(!GCe.has(n.protocol))return"about:blank"}catch{}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,n=!0){return e=e0(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),this.insertAfter(e,n),e}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!fl.$isRangeSelection(n))return!1;e=n.anchor.getNode();let i=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(i)&&0<n.getTextContent().length}};function KCe(t){let e=null;if($B.isHTMLAnchorElement(t)){let n=t.textContent;(n!==null&&n!==""||0<t.children.length)&&(e=e0(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function e0(t,e){return fl.$applyNodeReplacement(new Wy(t,e))}function bh(t){return t instanceof Wy}let JC=class Nee extends Wy{static getType(){return"autolink"}static clone(e){return new Nee(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}static importJSON(e){let n=e6(e.url,{rel:e.rel,target:e.target,title:e.title});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e,n=!0){return e=this.getParentOrThrow().insertNewAfter(e,n),fl.$isElementNode(e)?(n=e6(this.__url,{rel:this.__rel,target:this.__target,title:this.__title}),e.append(n),n):null}};function e6(t,e){return fl.$applyNodeReplacement(new JC(t,e))}let JCe=fl.createCommand("TOGGLE_LINK_COMMAND");function e6e(t,e){for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}cl.$createAutoLinkNode=e6,cl.$createLinkNode=e0,cl.$isAutoLinkNode=function(t){return t instanceof JC},cl.$isLinkNode=bh,cl.AutoLinkNode=JC,cl.LinkNode=Wy,cl.TOGGLE_LINK_COMMAND=JCe,cl.toggleLink=function(t,e={}){let{target:n,title:i}=e,r=e.rel===void 0?"noreferrer":e.rel;if(e=fl.$getSelection(),fl.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),bh(o)){let s=o.getChildren();for(let a=0;a<s.length;a++)o.insertBefore(s[a]);o.remove()}});else{if(e.length===1){let a=e6e(e[0],bh);if(a!==null){a.setURL(t),n!==void 0&&a.setTarget(n),r!==null&&a.setRel(r),i!==void 0&&a.setTitle(i);return}}let o=null,s=null;e.forEach(a=>{var l=a.getParent();if(l!==s&&l!==null&&(!fl.$isElementNode(a)||a.isInline()))if(bh(l))s=l,l.setURL(t),n!==void 0&&l.setTarget(n),r!==null&&s.setRel(r),i!==void 0&&s.setTitle(i);else if(l.is(o)||(o=l,s=e0(t,{rel:r,target:n,title:i}),bh(l)?a.getPreviousSibling()===null?l.insertBefore(s):l.insertAfter(s):a.insertBefore(s)),bh(a)){if(!a.is(s)){if(s!==null){l=a.getChildren();for(let u=0;u<l.length;u++)s.append(l[u])}a.remove()}}else s!==null&&s.append(a)})}};var ki=cl;function t6e({value:t,onEnter:e}){const[n]=Oe.useLexicalComposerContext();T.useEffect(()=>ut.mergeRegister(n.registerCommand(A.KEY_ENTER_COMMAND,i=>(e(i),!1),A.COMMAND_PRIORITY_LOW)),[n,e,t])}function MB({dataTestId:t,value:e,placeholder:n,handleUrlChange:i,handleUrlSubmit:r,hasError:o,handlePasteAsLink:s,handleRetry:a,handleClose:l,isLoading:u}){return T.useEffect(()=>{const f=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",f),()=>{window.removeEventListener("keydown",f)}},[l]),u?k.jsx("div",{className:"flex w-full items-center justify-center rounded-md border border-grey-300 p-2 font-sans text-sm font-normal leading-snug text-grey-900 focus-visible:outline-none dark:border-grey-800 dark:bg-grey-900 dark:placeholder:text-grey-800","data-testid":`${t}-loading-container`,children:k.jsx("div",{className:"-ml-1 mr-3 inline-block size-5 animate-spin rounded-full border-4 border-green/20 text-white after:mt-[11px] after:block after:size-1 after:rounded-full after:bg-green/70 after:content-['']","data-testid":`${t}-loading-spinner`})}):o?k.jsxs("div",{className:"min-width-[500px] flex flex-row items-center justify-between rounded-md border border-grey-300 px-3 py-2 text-sm font-normal leading-snug text-grey-900","data-testid":`${t}-error-container`,children:[k.jsxs("div",{children:[k.jsx("span",{className:"mr-3","data-testid":`${t}-error-message`,children:"Oops, that link didn't work."}),k.jsx("button",{className:"mr-3 cursor-pointer","data-testid":`${t}-error-retry`,type:"button",children:k.jsx("span",{className:"font-semibold underline",onClick:a,children:"Retry"})}),k.jsx("button",{className:"mr-3 cursor-pointer","data-testid":`${t}-error-pasteAsLink`,type:"button",children:k.jsx("span",{className:"font-semibold underline",onClick:()=>s(e),children:"Paste URL as link"})})]}),k.jsx("button",{className:"cursor-pointer p-1","data-testid":`${t}-error-close`,type:"button",onClick:l,children:k.jsx(vh,{className:"size-4 stroke-2 text-grey-400"})})]}):k.jsxs(k.Fragment,{children:[k.jsx(t6e,{value:e,onEnter:r}),k.jsx("input",{autoFocus:!0,className:"w-full rounded-md border border-grey-300 p-2 font-sans text-sm font-normal leading-snug text-grey-900 focus-visible:outline-none dark:border-grey-800 dark:bg-grey-950 dark:text-grey-100 dark:placeholder:text-grey-800","data-testid":t,placeholder:n,value:e,onChange:i,onKeyDown:r})]})}function n6e({children:t,waitBeforeShow:e=500}){const[n,i]=T.useState(e===0);return T.useEffect(()=>{if(n)return;const r=setTimeout(()=>{i(!0)},e);return()=>{clearTimeout(r)}},[n,e]),n?t:null}var i6e=$s,r6e=function(){return i6e.Date.now()},o6e=r6e,s6e=/\s/;function a6e(t){for(var e=t.length;e--&&s6e.test(t.charAt(e)););return e}var l6e=a6e,u6e=l6e,c6e=/^\s+/;function f6e(t){return t&&t.slice(0,u6e(t)+1).replace(c6e,"")}var d6e=f6e,h6e=Sd,p6e=Nc,g6e="[object Symbol]";function m6e(t){return typeof t=="symbol"||p6e(t)&&h6e(t)==g6e}var Hy=m6e,v6e=d6e,NB=Ya,b6e=Hy,AB=NaN,k6e=/^[-+]0x[0-9a-f]+$/i,y6e=/^0b[01]+$/i,w6e=/^0o[0-7]+$/i,x6e=parseInt;function _6e(t){if(typeof t=="number")return t;if(b6e(t))return AB;if(NB(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=NB(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=v6e(t);var n=y6e.test(t);return n||w6e.test(t)?x6e(t.slice(2),n?2:8):k6e.test(t)?AB:+t}var O6e=_6e,S6e=Ya,t6=o6e,PB=O6e,C6e="Expected a function",E6e=Math.max,T6e=Math.min;function $6e(t,e,n){var i,r,o,s,a,l,u=0,f=!1,d=!1,h=!0;if(typeof t!="function")throw new TypeError(C6e);e=PB(e)||0,S6e(n)&&(f=!!n.leading,d="maxWait"in n,o=d?E6e(PB(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h);function g(M){var I=i,W=r;return i=r=void 0,u=M,s=t.apply(W,I),s}function m(M){return u=M,a=setTimeout(_,e),f?g(M):s}function y(M){var I=M-l,W=M-u,B=e-I;return d?T6e(B,o-W):B}function x(M){var I=M-l,W=M-u;return l===void 0||I>=e||I<0||d&&W>=o}function _(){var M=t6();if(x(M))return S(M);a=setTimeout(_,y(M))}function S(M){return a=void 0,h&&i?g(M):(i=r=void 0,s)}function C(){a!==void 0&&clearTimeout(a),u=0,i=l=r=a=void 0}function E(){return a===void 0?s:S(t6())}function N(){var M=t6(),I=x(M);if(i=arguments,r=this,l=M,I){if(a===void 0)return m(l);if(d)return clearTimeout(a),a=setTimeout(_,e),g(l)}return a===void 0&&(a=setTimeout(_,e)),s}return N.cancel=C,N.flush=E,N}var DB=$6e;const kh=xo(DB);function n6({dataTestId:t,className:e="z-[-1] max-h-[30vh] w-full overflow-y-auto bg-white shadow rounded-lg dark:border-grey-800 dark:bg-grey-900",placementTopClass:n="-top-0.5 -translate-y-full",placementBottomClass:i="mt-0.5",children:r,...o}){const s=T.useRef(null),[a,l]=T.useState("bottom"),u=()=>{if(!s||!s.current)return;const d=s.current.parentNode.getBoundingClientRect().bottom;window.innerHeight-d<s.current.offsetHeight?l("top"):l("bottom")};return T.useLayoutEffect(()=>{u()},[]),T.useEffect(()=>{const f=kh(()=>{u()},250);return window.addEventListener("resize",f,{passive:!0}),()=>{window.removeEventListener("resize",f,{passive:!0})}},[]),k.jsx("ul",{ref:s,className:nt("absolute",a==="top"&&n,a==="bottom"&&i,e),"data-testid":`${t}-dropdown`,...o,children:r})}const M6e="h-9 rounded-lg border border-grey-100 bg-grey-100 dark:bg-grey-900 dark:border-transparent dark:focus:border-green dark:hover:bg-grey-925 dark:focus:bg-grey-925 transition-colors px-3 py-1.5 font-sans text-sm font-normal text-grey-900 focus:border-green focus:bg-white focus:shadow-[0_0_0_2px_rgba(48,207,67,.25)] focus-visible:outline-none dark:text-white dark:selection:bg-grey-800 placeholder:text-grey-500 md:h-[38px] md:py-2 dark:placeholder:text-grey-700";function i6({autoFocus:t,className:e,dataTestId:n,value:i,onChange:r,...o}){const s=T.useRef(null),a=T.useRef(t),[l,u]=T.useState(i),f=T.useCallback(d=>{u(d.target.value),r&&r(d)},[r]);return T.useEffect(()=>{if(u(i),a.current){const d=setTimeout(()=>{s.current&&(a.current=!1,s.current.focus())},0);return()=>clearTimeout(d)}},[i]),k.jsx(k.Fragment,{children:k.jsx("div",{className:"relative",children:k.jsx("input",{ref:s,autoFocus:t,className:`relative w-full ${e||M6e}`,"data-testid":n,value:l,onChange:f,...o})})})}function r6({items:t,getItem:e,onSelect:n,defaultSelected:i}){const r=Math.max(0,t.findIndex(l=>l===i)),[o,s]=T.useState(r);T.useEffect(()=>{o>=t.length&&s(r)},[t,o,r]),T.useEffect(()=>{s(r)},[r]);const a=T.useCallback(l=>{l.key==="ArrowDown"&&(l.preventDefault(),l.stopPropagation(),s(u=>Math.min(u+1,t.length-1))),l.key==="ArrowUp"&&(l.preventDefault(),l.stopPropagation(),s(u=>Math.max(u-1,0))),l.key==="Enter"&&(l.preventDefault(),l.stopPropagation(),n(t[o]))},[t,o,n]);return T.useEffect(()=>(window.addEventListener("keydown",a,{capture:!0}),()=>{window.removeEventListener("keydown",a,{capture:!0})}),[a]),k.jsx(k.Fragment,{children:t.map((l,u)=>e(l,u===o))})}const N6e=({children:t})=>k.jsx(k.Fragment,{children:t});function o6({groups:t,getItem:e,getGroup:n,onSelect:i,defaultSelected:r,isLoading:o}){const s=t.flatMap(g=>g.items),a=Math.max(0,s.findIndex(g=>g===r)),[l,u]=T.useState(a),[f,d]=T.useState(!1);T.useEffect(()=>{l>=s.length&&u(a)},[s,l,a]),T.useEffect(()=>{u(a)},[a]);const h=T.useCallback(g=>{g.key==="ArrowDown"&&(g.preventDefault(),g.stopPropagation(),u(m=>Math.min(m+1,s.length-1)),d(!0)),g.key==="ArrowUp"&&(g.preventDefault(),g.stopPropagation(),u(m=>Math.max(m-1,0)),d(!0)),g.key==="Enter"&&(g.preventDefault(),g.stopPropagation(),i(s[l]))},[s,l,i]);return T.useEffect(()=>(window.addEventListener("keydown",h,{capture:!0}),()=>{window.removeEventListener("keydown",h,{capture:!0})}),[h]),k.jsx(k.Fragment,{children:t.map((g,m)=>k.jsxs(N6e,{children:[n(g,{showSpinner:m===0&&o}),(g.items||[]).map((y,x)=>{const S=t.slice(0,m).reduce((N,M)=>N+M.items.length,0)+x,C=S===l&&!!y.value;return e(y,C,()=>{y.value&&u(S),d(!1)},f)})]},g.label))})}function IB({size:t}){let e="";switch(t){case"mini":e="h-3 w-3";break;default:e="h-5 w-5";break}return k.jsx("div",{className:"","data-testid":"spinner",children:k.jsxs("svg",{className:`${e} animate-spin text-grey-500 dark:text-grey-200`,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[k.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",style:{opacity:"0.3"}}),k.jsx("path",{d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]})})}IB.propTypes={colorClass:P.string,size:P.string};function LB({dataTestId:t}){return k.jsx(n6e,{children:k.jsx("li",{className:"mb-0 px-4 py-2 text-left","data-testid":`${t}-loading`,children:k.jsx("span",{className:"block text-sm font-medium leading-tight text-grey-900 dark:text-white",children:"Searching..."})})})}function RB({dataTestId:t,item:e,selected:n,onClick:i,onMouseOver:r,scrollIntoView:o,className:s,selectedClassName:a,children:l}){const u=T.useRef(null);T.useEffect(()=>{n&&o&&u.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[n,o]);const f=h=>{h.preventDefault(),i(e)},d=e.value?"":"pointer-events-none";return k.jsx("li",{ref:u,"aria-selected":n,className:`${n?a:""} ${d} ${s}`,"data-testid":`${t}-listOption`,role:"option",onMouseDownCapture:f,onMouseOver:r,children:l})}function s6({dataTestId:t,group:e,showSpinner:n}){return k.jsx("li",{className:"mb-0 mt-2 flex items-center justify-between border-t border-grey-200 px-4 pb-2 pt-3 text-[1.1rem] font-semibold uppercase tracking-wide text-grey-600 first-of-type:mt-0 first-of-type:border-t-0 dark:border-grey-900","data-testid":`${t}-listGroup`,children:k.jsxs("div",{className:"flex items-center gap-1.5",children:[e.label,n&&k.jsx("span",{className:"ml-px","data-testid":"input-list-spinner",children:k.jsx(IB,{size:"mini"})})]})})}function A6e(){throw new Error("<InputList> getItem function prop must be provided")}function jB({autoFocus:t,className:e,inputClassName:n,dropdownClassName:i,dropdownPlacementBottomClass:r,dropdownPlacementTopClass:o,dataTestId:s,listOptions:a,isLoading:l,value:u,placeholder:f,onChange:d,onSelect:h,getItem:g=A6e}){var W;const[m,y]=T.useState(!1),x=()=>{y(!0)},_=()=>{y(!1)},S=(B,{showSpinner:Z}={})=>k.jsx(s6,{dataTestId:s,group:B,showSpinner:Z},B.label),C=B=>{d(B.target.value)},E=B=>{(h||d)(B.value,B.type)},N=a&&((W=a[0])==null?void 0:W.items),M=(l||a&&!!a.length)&&m,I=()=>k.jsxs(n6,{className:i,dataTestId:s,placementBottomClass:r,placementTopClass:o,children:[l&&!(a!=null&&a.length)&&k.jsx(LB,{dataTestId:s}),N?k.jsx(o6,{getGroup:S,getItem:g,groups:a,isLoading:l,onSelect:E}):k.jsx(r6,{getItem:g,items:a,onSelect:E})]});return k.jsx(k.Fragment,{children:k.jsxs("div",{className:`relative z-0 ${e||""}`,children:[k.jsx(i6,{autoFocus:t,className:n,dataTestId:s,placeholder:f,value:u,onBlur:_,onChange:C,onFocus:x}),M&&k.jsx(I,{})]})})}var FB=Od,P6e=jA,D6e=Va,I6e=Hy,zB=FB?FB.prototype:void 0,BB=zB?zB.toString:void 0;function WB(t){if(typeof t=="string")return t;if(D6e(t))return P6e(t,WB)+"";if(I6e(t))return BB?BB.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var L6e=WB,R6e=L6e;function j6e(t){return t==null?"":R6e(t)}var Qy=j6e,F6e=Qy,HB=/[\\^$.*+?()[\]{}|]/g,z6e=RegExp(HB.source);function B6e(t){return t=F6e(t),t&&z6e.test(t)?t.replace(HB,"\\$&"):t}var W6e=B6e;const H6e=xo(W6e);function Q6e({string:t,highlightString:e,shouldHighlight:n=!0}){if(!e||n===!1)return t;const i=t.split(new RegExp(`(${H6e(e)})`,"gi"));return k.jsx(k.Fragment,{children:i.map((r,o)=>r.toLowerCase()===e.toLowerCase()?k.jsx("span",{className:"font-bold",children:r},o):r)})}function a6({dataTestId:t,item:e,highlightString:n,selected:i,onMouseOver:r,scrollIntoView:o,onClick:s}){return k.jsxs(RB,{className:"my-[.2rem] flex cursor-pointer items-center justify-between gap-3 rounded-md px-4 py-2 text-left text-black dark:text-white",dataTestId:t,item:e,scrollIntoView:o,selected:i,selectedClassName:"bg-grey-100 dark:bg-grey-900",onClick:s,onMouseOver:r,children:[k.jsxs("span",{className:"line-clamp-1 flex items-center gap-[.6rem]",children:[e.Icon&&k.jsx(e.Icon,{className:"size-[1.4rem] stroke-[1.5px]"}),k.jsx("span",{className:"block truncate text-sm font-medium leading-snug","data-testid":`${t}-listOption-label`,children:k.jsx(Q6e,{highlightString:n,shouldHighlight:e.highlight,string:e.label})})]}),i&&(e.metaText||e.MetaIcon)&&k.jsxs("span",{className:"flex shrink-0 items-center gap-[.6rem] text-[1.3rem] leading-snug tracking-tight text-grey-600 dark:text-grey-500","data-testid":`${t}-listOption-meta`,children:[k.jsx("span",{title:e.metaIconTitle,children:e.MetaIcon&&k.jsx(e.MetaIcon,{className:"size-[1.4rem]"})}),e.metaText&&k.jsx("span",{children:e.metaText})]})]})}const QB=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("g",null,J.createElement("path",{d:"M0.75 12a11.25 11.25 0 1 0 22.5 0 11.25 11.25 0 1 0 -22.5 0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M9.88 23.05c-1.57 -2.2 -2.63 -6.33 -2.63 -11S8.31 3.15 9.88 1",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M14.12 23.05c1.57 -2.2 2.63 -6.33 2.63 -11S15.69 3.15 14.12 1",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"m0.75 12 22.5 0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"m2.05 17.25 19.9 0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"m2.05 6.75 19.9 0",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))),U6e=100,UB=/^http|^#|^\/|^mailto:|^tel:/;function Z6e(t){return[{label:"Link to web page",items:[{label:t,value:t,Icon:QB,highlight:!1,type:"url"}]}]}function q6e(t){return[{label:"Link to web page",items:[{label:"Enter URL to create link",value:null,Icon:QB,highlight:!1,type:"no-results"}]}]}function ZB(t,{noResultOptions:e,type:n}={}){return!t||!t.length?(e||q6e)():t.map(i=>{const r=i.items.map(o=>({label:o.title,value:o.url,Icon:o.Icon,metaText:o.metaText,MetaIcon:o.MetaIcon,metaIconTitle:o.metaIconTitle,type:n||"internal"}));return{...i,items:r}})}const l6=(t,e,{noResultOptions:n}={})=>{const[i,r]=T.useState([]),[o,s]=T.useState([]),[a,l]=T.useState(!1),u=T.useMemo(()=>async function(g){if(UB.test(g)){s(Z6e(g));return}l(!0);const m=await e(g);m!==void 0&&(s(ZB(m,{noResultOptions:n})),l(!1))},[e,n]),f=T.useMemo(()=>kh(u,U6e),[u]);return T.useEffect(()=>{(async()=>{!t&&l(!0);const g=await e();r(ZB(g,{type:"default"})),!t&&l(!1)})().catch(console.error)},[]),T.useEffect(()=>{UB.test(t)?(f.cancel(),u(t)):f(t)},[t,u,f]),{isSearching:a,listOptions:t?o:i}};function Y6e({dataTestId:t,value:e,placeholder:n,handleUrlChange:i,handleUrlSubmit:r,hasError:o,handlePasteAsLink:s,handleRetry:a,handleClose:l,isLoading:u,searchLinks:f}){const{isSearching:d,listOptions:h}=l6(e,f);if(T.useEffect(()=>{e||ui("Link dropdown: Opened",{context:"bookmark"})},[]),T.useEffect(()=>{const _=S=>{S.key==="Escape"&&l()};return window.addEventListener("keydown",_),()=>{window.removeEventListener("keydown",_)}},[l]),u)return k.jsx("div",{className:"flex w-full items-center justify-center rounded-md border border-grey-300 p-2 font-sans text-sm font-normal leading-snug text-grey-900 focus-visible:outline-none dark:border-grey-800 dark:bg-grey-900 dark:placeholder:text-grey-800","data-testid":`${t}-loading-container`,children:k.jsx("div",{className:"-ml-1 mr-3 inline-block size-5 animate-spin rounded-full border-4 border-green/20 text-white after:mt-[11px] after:block after:size-1 after:rounded-full after:bg-green/70 after:content-['']","data-testid":`${t}-loading-spinner`})});if(o)return k.jsxs("div",{className:"min-width-[500px] flex flex-row items-center justify-between rounded-md border border-grey-300 px-3 py-2 text-sm font-normal leading-snug text-grey-900","data-testid":`${t}-error-container`,children:[k.jsxs("div",{children:[k.jsx("span",{className:"mr-3","data-testid":`${t}-error-message`,children:"Oops, that link didn't work."}),k.jsx("button",{className:"mr-3 cursor-pointer","data-testid":`${t}-error-retry`,type:"button",children:k.jsx("span",{className:"font-semibold underline",onClick:a,children:"Retry"})}),k.jsx("button",{className:"mr-3 cursor-pointer","data-testid":`${t}-error-pasteAsLink`,type:"button",children:k.jsx("span",{className:"font-semibold underline",onClick:()=>s(e),children:"Paste URL as link"})})]}),k.jsx("button",{className:"cursor-pointer p-1","data-testid":`${t}-error-close`,type:"button",onClick:l,children:k.jsx(vh,{className:"size-4 stroke-2 text-grey-400"})})]});const g=async _=>{i(_)},m=(_,S)=>{if(_===null)return;const C=_&&typeof _=="string"?_:_.value;r(C,S)},y=_=>{!_.isComposing&&_.key==="Enter"&&(_.preventDefault(),r(_.target.value))},x=(_,S,C,E)=>k.jsx(a6,{dataTestId:t,highlightString:e,item:_,scrollIntoView:E,selected:S,onClick:m,onMouseOver:C},_.value);return k.jsx("div",{className:"not-kg-prose",onKeyDown:y,children:k.jsx(jB,{autoFocus:!0,dataTestId:t,dropdownClassName:"z-[-1] max-h-[30vh] w-full overflow-y-auto bg-white px-2 py-1 shadow-md dark:bg-grey-950",dropdownPlacementBottomClass:"mt-[.6rem] rounded-md",dropdownPlacementTopClass:"top-[-.6rem] -translate-y-full rounded-md",getItem:x,inputClassName:"w-full rounded-md border border-grey-300 p-2 font-sans text-sm font-normal leading-snug text-grey-900 placeholder:text-grey-500 focus-visible:outline-none dark:border-grey-800 dark:bg-grey-950 dark:text-grey-100 dark:placeholder:text-grey-800",isLoading:d,listOptions:h,placeholder:n,value:e,onChange:g,onSelect:m})})}function qB({author:t,handleClose:e,handlePasteAsLink:n,handleRetry:i,handleUrlChange:r,handleUrlSubmit:o,url:s,urlInputValue:a,urlPlaceholder:l,thumbnail:u,title:f,description:d,icon:h,publisher:g,captionEditor:m,captionEditorInitialState:y,isSelected:x,isLoading:_,urlError:S,searchLinks:C}){const[E,N]=T.useState(!0),M=()=>{N(!1)};return s&&!S&&f?k.jsxs("div",{children:[k.jsxs("div",{className:"not-kg-prose relative flex min-h-[120px] w-full rounded-md border border-grey/40 bg-transparent font-sans dark:border-grey/20","data-testid":"bookmark-container",children:[k.jsxs("div",{className:"flex grow basis-full flex-col items-start justify-start p-5","data-testid":"bookmark-text-container",children:[k.jsx("div",{className:"text-[1.5rem] font-semibold leading-normal tracking-normal text-grey-900 dark:text-grey-100","data-testid":"bookmark-title",children:f}),k.jsx("div",{className:"mt-1 line-clamp-2 max-h-[44px] overflow-y-hidden text-sm font-normal leading-normal text-grey-800 dark:text-grey-600","data-testid":"bookmark-description",children:d}),k.jsxs("div",{className:"mt-[20px] flex items-center text-sm font-medium leading-9 text-grey-900",children:[h&&k.jsx(YB,{src:h}),k.jsx("span",{className:" db max-w-[240px] truncate leading-6 text-grey-900 dark:text-grey-100","data-testid":"bookmark-publisher",children:g}),t&&k.jsx("span",{className:"font-normal text-grey-800 before:mx-1.5 before:text-grey-900 before:content-['•'] dark:text-grey-600 dark:before:text-grey-100","data-testid":"bookmark-author",children:t})]})]}),u&&E&&k.jsx("div",{className:"grow-1 relative m-0 min-w-[33%]","data-testid":"bookmark-thumbnail-container",children:k.jsx("img",{alt:"",className:"absolute inset-0 size-full rounded-r-[.5rem] object-cover","data-testid":"bookmark-thumbnail",src:u,onError:M})}),k.jsx("div",{className:"absolute inset-0 z-50 mt-0"})]}),k.jsx(dh,{captionEditor:m,captionEditorInitialState:y,captionPlaceholder:"Type caption for bookmark (optional)",dataTestId:"bookmark-caption",isSelected:x})]}):typeof C=="function"?k.jsx(Y6e,{dataTestId:"bookmark-url",handleClose:e,handlePasteAsLink:n,handleRetry:i,handleUrlChange:r,handleUrlSubmit:o,hasError:S,isLoading:_,placeholder:l,searchLinks:C,value:a}):k.jsx(MB,{dataTestId:"bookmark-url",handleClose:e,handlePasteAsLink:n,handleRetry:i,handleUrlChange:r,handleUrlSubmit:o,hasError:S,isLoading:_,placeholder:l,value:a})}function YB({src:t}){return k.jsx("img",{alt:"",className:"mr-2 size-5 shrink-0","data-testid":"bookmark-icon",src:t})}qB.propTypes={author:P.string,handleClose:P.func,handlePasteAsLink:P.func,handleRetry:P.func,handleUrlChange:P.func,handleUrlSubmit:P.func,url:P.string,urlInputValue:P.string,urlPlaceholder:P.string,thumbnail:P.string,title:P.string,description:P.string,icon:P.string,publisher:P.string,captionEditor:P.object,captionEditorInitialState:P.object,isSelected:P.bool,isLoading:P.bool,urlError:P.bool,searchLinks:P.func},YB.propTypes={src:P.string};function u6(t,e){if(!t||!e)return!1;try{const n=new URL(t),i=`/${new URL(e).pathname.split("/")[1]}`;return n.hostname===new URL(e).hostname&&n.pathname.startsWith(i)}catch{return!1}}function V6e({author:t,nodeKey:e,url:n,icon:i,title:r,description:o,publisher:s,thumbnail:a,captionEditor:l,captionEditorInitialState:u,createdWithUrl:f}){const[d]=Oe.useLexicalComposerContext(),{cardConfig:h}=T.useContext(ft),{isSelected:g}=T.useContext(rn),[m,y]=T.useState(n),[x,_]=T.useState(!1),[S,C]=T.useState(!1),[E,N]=T.useState(!1),M=H=>{if(typeof H=="string"){y(H);return}y(H.target.value)},I=async(H,j)=>{if(H){if(typeof H=="string"){if((j==="internal"||j==="default")&&ui("Link dropdown: Internal link chosen",{context:"bookmark",fromLatest:j==="default"}),j==="url"){const q=u6(H,h==null?void 0:h.siteUrl)?"internal":"external";ui("Link dropdown: URL entered",{context:"bookmark",target:q})}R(H)}(H==null?void 0:H.key)==="Enter"&&R(H.target.value)}},W=async()=>{C(!1)},B=T.useCallback(()=>{d.update(()=>{const H=A.$getNodeByKey(e),j=A.$createParagraphNode().append(ki.$createLinkNode(m).append(A.$createTextNode(m)));H.replace(j),j.selectEnd()})},[d,e,m]),Z=T.useCallback(()=>{d.update(()=>{const H=A.$getNodeByKey(e),j=H.getNextSibling();if(j&&A.$isParagraphNode(j)&&j.getTextContentSize()===0)H.remove(),j.selectEnd();else{const q=A.$createParagraphNode();H.replace(q),q.selectEnd()}})},[d,e]),R=async H=>{d.getRootElement().focus({preventScroll:!0}),_(!0);let j;try{j=await h.fetchEmbed(H,{type:"bookmark"})}catch{_(!1),C(!0);return}d.update(()=>{const q=A.$getNodeByKey(e);q.url=H,q.author=j.metadata.author,q.icon=j.metadata.icon,q.title=j.metadata.title,q.description=j.metadata.description,q.publisher=j.metadata.publisher,q.thumbnail=j.metadata.thumbnail}),_(!1)},Q=T.useCallback(async()=>{_(!0);let H;try{H=await h.fetchEmbed(n,{type:"bookmark"})}catch{_(!1),C(!0);return}d.update(()=>{const j=A.$getNodeByKey(e);j.url=H.url,j.author=H.metadata.author,j.icon=H.metadata.icon,j.title=H.metadata.title,j.description=H.metadata.description,j.publisher=H.metadata.publisher,j.thumbnail=H.metadata.thumbnail,f&&j.selectNext()}),_(!1)},[]);T.useEffect(()=>{if(f){y(n);try{Q(n)}catch{B(n)}}},[]);const V=typeof(h==null?void 0:h.searchLinks)=="function";return k.jsxs(k.Fragment,{children:[k.jsx(qB,{author:t,captionEditor:l,captionEditorInitialState:u,description:o,handleClose:Z,handlePasteAsLink:B,handleRetry:W,handleUrlChange:M,handleUrlSubmit:I,icon:i,isLoading:x,isSelected:g,publisher:s,searchLinks:h==null?void 0:h.searchLinks,thumbnail:a,title:r,url:n,urlError:S,urlInputValue:m,urlPlaceholder:V?"Paste URL or search posts and pages...":"Paste URL to add bookmark content..."}),k.jsx(xt,{"data-kg-card-toolbar":"bookmark",isVisible:E,children:k.jsx(Kn,{onClose:()=>N(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"bookmark",isVisible:r&&g&&!E&&h.createSnippet,children:k.jsx(Jn,{children:k.jsx(at,{dataTestId:"create-snippet",hide:!h.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>N(!0)})})})]})}const VB=A.createCommand();class Uy extends Vg{constructor(n={},i){super(n,i);ye(this,"__captionEditor");ye(this,"__captionEditorInitialState");ye(this,"__createdWithUrl");this.__createdWithUrl=!!n.url&&!n.metadata,vi(this,"__captionEditor",{editor:n.captionEditor,nodes:Qi}),!n.captionEditor&&n.caption&&bi(this,"__captionEditor",`${n.caption}`)}getIcon(){return t_}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.captionEditor=i.__captionEditor,n.captionEditorInitialState=i.__captionEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__captionEditor&&this.__captionEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__captionEditor,null),r=si(i);n.caption=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),children:k.jsx(V6e,{author:this.author,captionEditor:this.__captionEditor,captionEditorInitialState:this.__captionEditorInitialState,createdWithUrl:this.__createdWithUrl,description:this.description,icon:this.icon,nodeKey:this.getKey(),publisher:this.publisher,thumbnail:this.thumbnail,title:this.title,url:this.url})})}}ye(Uy,"kgMenu",[{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:t_,insertCommand:VB,matches:["bookmark"],queryParams:["url"],priority:4,shortcut:"/bookmark [url]"}]);const c6=t=>new Uy(t);function XB({captionEditor:t,captionEditorInitialState:e,html:n,isSelected:i,urlInputValue:r,urlPlaceholder:o,urlError:s,isLoading:a,handleUrlChange:l,handleUrlSubmit:u,handleRetry:f,handlePasteAsLink:d,handleClose:h}){return n?k.jsxs("div",{children:[k.jsxs("div",{className:"not-kg-prose relative",children:[k.jsx(GB,{dataTestId:"embed-iframe",html:n}),k.jsx("div",{className:"absolute inset-0 z-50 mt-0"})]}),k.jsx(dh,{captionEditor:t,captionEditorInitialState:e,captionPlaceholder:"Type caption for embed (optional)",dataTestId:"embed-caption",isSelected:i})]}):k.jsx(MB,{dataTestId:"embed-url",handleClose:h,handlePasteAsLink:d,handleRetry:f,handleUrlChange:l,handleUrlSubmit:u,hasError:s,isLoading:a,placeholder:o,value:r})}function GB({dataTestId:t,html:e}){const n=T.useRef(null),i=()=>{var u,f,d,h,g,m;const a=(d=(f=(u=n.current)==null?void 0:u.contentDocument)==null?void 0:f.body)==null?void 0:d.firstChild;if(!a)return;if(a.tagName==="IFRAME"){const y=a.getAttribute("width"),x=a.getAttribute("height");if(y&&x&&y.indexOf("%")===-1&&x.indexOf("%")===-1){const _=parseInt(y)/parseInt(x),S=n.current.offsetWidth/_;a.style.height=`${S}px`,n.current.style.height=`${S}px`,a.style.width="100%";return}if(x&&x.indexOf("%")===-1){n.current.style.height=`${x}px`;return}}const l=(m=(g=(h=n.current)==null?void 0:h.contentDocument)==null?void 0:g.scrollingElement)==null?void 0:m.scrollHeight;l&&(n.current.style.height=`${l}px`)},r={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},o=new MutationObserver(i),s=()=>{const a=n.current.contentDocument.body;a.style.display="flex",a.style.margin="0",a.style.justifyContent="center",i(),o.observe(n.current.contentWindow.document,r)};return T.useEffect(()=>{const a=new ResizeObserver(i);return a.observe(n.current),function(){a.disconnect(),o.disconnect()}},[]),k.jsx("iframe",{ref:n,className:"bn miw-100 w-full","data-testid":t,srcDoc:e,tabIndex:-1,title:"embed-card-iframe",onLoad:s})}XB.propTypes={html:P.string,isSelected:P.bool,urlInputValue:P.string,urlPlaceholder:P.string,urlError:P.bool,isLoading:P.bool,handleUrlChange:P.func,handleUrlSubmit:P.func,handleRetry:P.func,handlePasteAsLink:P.func,handleClose:P.func,captionEditor:P.object,captionEditorInitialState:P.object},GB.propTypes={dataTestId:P.string,html:P.string};function X6e({nodeKey:t,url:e,html:n,createdWithUrl:i,embedType:r,metadata:o,captionEditor:s,captionEditorInitialState:a}){const[l]=Oe.useLexicalComposerContext(),{cardConfig:u}=T.useContext(ft),{isSelected:f}=T.useContext(rn),[d,h]=T.useState(""),[g,m]=T.useState(!1),[y,x]=T.useState(!1),[_,S]=T.useState(!1),C=B=>{h(B.target.value)},E=async B=>{B.key==="Enter"&&W(B.target.value)},N=async()=>{x(!1)},M=T.useCallback(B=>{l.update(()=>{const Z=A.$getNodeByKey(t);if(!Z)return;const R=A.$createParagraphNode().append(ki.$createLinkNode(B).append(A.$createTextNode(B)));Z.replace(R),R.getNextSibling()||R.insertAfter(A.$createParagraphNode()),R.selectNext()})},[l,t]),I=T.useCallback(()=>{l.update(()=>{const B=A.$getNodeByKey(t),Z=B.getNextSibling();if(Z&&A.$isParagraphNode(Z)&&Z.getTextContentSize()===0)B.remove(),Z.selectEnd();else{const R=A.$createParagraphNode();B.replace(R),R.selectEnd()}})},[l,t]),W=async B=>{m(!0);let Z;try{if(Z=await u.fetchEmbed(B,{}),Z.type==="bookmark"){l.update(()=>{const R=A.$getNodeByKey(t),Q=c6({url:Z.url,metadata:Z.metadata});R.replace(Q)});return}}catch{if(i){m(!1),M(B);return}m(!1),x(!0);return}l.update(()=>{const R=A.$getNodeByKey(t);R.url=B,R.metadata=Z,R.embedType=Z.type,R.html=Z.html,i&&R.selectNext()}),m(!1)};return T.useEffect(()=>{if(i){h(e);try{W(e)}catch{M(e)}}},[]),k.jsxs(k.Fragment,{children:[k.jsx(XB,{captionEditor:s,captionEditorInitialState:a,handleClose:I,handlePasteAsLink:M,handleRetry:N,handleUrlChange:C,handleUrlSubmit:E,html:n,isLoading:g,isSelected:f,metadata:o,url:e,urlError:y,urlInputValue:d,urlPlaceholder:"Paste URL to add embedded content..."}),k.jsx(xt,{"data-kg-card-toolbar":"embed",isVisible:_,children:k.jsx(Kn,{onClose:()=>S(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"embed",isVisible:n&&f&&!_&&u.createSnippet,children:k.jsx(Jn,{children:k.jsx(at,{dataTestId:"create-snippet",hide:!u.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>S(!0)})})})]})}const Eu=A.createCommand();class Zy extends em{constructor(n={},i){super(n,i);ye(this,"__captionEditor");ye(this,"__captionEditorInitialState");ye(this,"__createdWithUrl");this.__createdWithUrl=!!n.url&&!n.html,vi(this,"__captionEditor",{editor:n.captionEditor,nodes:Qi}),!n.captionEditor&&n.caption&&bi(this,"__captionEditor",`${n.caption}`)}getIcon(){return h_}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.captionEditor=i.__captionEditor,n.captionEditorInitialState=i.__captionEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__captionEditor&&this.__captionEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__captionEditor,null),r=si(i);n.caption=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),children:k.jsx(X6e,{captionEditor:this.__captionEditor,captionEditorInitialState:this.__captionEditorInitialState,createdWithUrl:this.__createdWithUrl,embedType:this.embedType,html:this.html,metadata:this.metadata,nodeKey:this.getKey(),url:this.url})})}}ye(Zy,"kgMenu",[{section:"Embeds",label:"Other...",desc:"/embed [url]",Icon:h_,insertCommand:Eu,matches:["embed"],queryParams:["url"],priority:100,shortcut:"/embed [url]"},{section:"Embeds",label:"YouTube",desc:"/youtube [video url]",Icon:u9,insertCommand:Eu,queryParams:["url"],matches:["youtube"],priority:1,shortcut:"/youtube [url]"},{section:"Embeds",label:"X (formerly Twitter)",desc:"/twitter [tweet url]",Icon:XCe,insertCommand:Eu,queryParams:["url"],matches:["twitter","x"],priority:2,shortcut:"/twitter [url]"},{section:"Embeds",label:"Vimeo",desc:"/vimeo [video url]",Icon:l9,insertCommand:Eu,queryParams:["url"],matches:["vimeo"],priority:4,shortcut:"/vimeo [url]"},{section:"Embeds",label:"CodePen",desc:"/codepen [pen url]",Icon:X8,insertCommand:Eu,queryParams:["url"],matches:["codepen"],priority:5,shortcut:"/codepen [url]"},{section:"Embeds",label:"Spotify",desc:"/spotify [track or playlist url]",Icon:s9,insertCommand:Eu,queryParams:["url"],matches:["spotify"],priority:6,shortcut:"/spotify [url]"},{section:"Embeds",label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:o9,insertCommand:Eu,queryParams:["url"],matches:["soundcloud"],priority:7,shortcut:"/soundcloud [url]"}]);const KB=t=>new Zy(t),G6e=({selectedNode:t,newNode:e})=>{const n=A.$isParagraphNode(t),i=t.getTextContent()==="";t.insertAfter(e),n&&i&&t.remove();const r=A.$createNodeSelection();if(r.add(e.getKey()),A.$setSelection(r),!e.getNextSibling()){const o=A.$createParagraphNode();e.insertAfter(o)}};var Hr={},Vt=A,Tu=ut;function dl(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function JB(t){let e=1;for(t=t.getParent();t!=null;){if(bn(t)){if(t=t.getParent(),Pt(t)){e++,t=t.getParent();continue}dl(40)}break}return e}function f6(t){t=t.getParent(),Pt(t)||dl(40);let e=t;for(;e!==null;)e=e.getParent(),Pt(e)&&(t=e);return t}function eW(t){let e=[];t=t.getChildren().filter(bn);for(let n=0;n<t.length;n++){let i=t[n],r=i.getFirstChild();Pt(r)?e=e.concat(eW(r)):e.push(i)}return e}function Sa(t){return bn(t)&&Pt(t.getFirstChild())}function K6e(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!bn(t)&&!Pt(t))break;t=e}t.remove()}function tW(t){return Io().append(t)}function nW(t,e){return bn(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Jc(t,e){t.splice(t.getChildrenSize(),0,e)}function iW(t,e){if(Pt(t))return t;let n=t.getPreviousSibling(),i=t.getNextSibling(),r=Io();return r.setFormat(t.getFormatType()),r.setIndent(t.getIndent()),Jc(r,t.getChildren()),Pt(n)&&e===n.getListType()?(n.append(r),t.remove(),Pt(i)&&e===i.getListType()&&(Jc(n,i.getChildren()),i.remove()),n):Pt(i)&&e===i.getListType()?(i.getFirstChildOrThrow().insertBefore(r),t.remove(),i):(e=Ur(e),e.append(r),t.replace(e),Qr(e),e)}function rW(t,e){var n=t.getLastChild();let i=e.getFirstChild();n&&i&&Sa(n)&&Sa(i)&&(rW(n.getFirstChild(),i.getFirstChild()),i.remove()),n=e.getChildren(),0<n.length&&(t.append(...n),Qr(t)),e.remove()}function Qr(t,e){if(t=e||t.getChildren(),t!==void 0)for(e=0;e<t.length;e++){let o=t[e];if(bn(o)){let s=o.getValue();var n=o,i=n.getParent(),r=1;for(i!=null&&(Pt(i)?r=i.getStart():dl(44)),n=n.getPreviousSiblings(),i=0;i<n.length;i++){let a=n[i];bn(a)&&!Pt(a.getFirstChild())&&r++}s!==r&&o.setValue(r)}}}function J6e(t){if(!Sa(t)){var e=t.getParent(),n=e?e.getParent():void 0,i=n?n.getParent():void 0;if(Pt(i)&&bn(n)&&Pt(e)){var r=e?e.getFirstChild():void 0,o=e?e.getLastChild():void 0;if(t.is(r))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(o))n.insertAfter(t),e.isEmpty()&&n.remove();else{var s=e.getListType();r=Io();let a=Ur(s);r.append(a),t.getPreviousSiblings().forEach(l=>a.append(l)),o=Io(),s=Ur(s),o.append(s),Jc(s,t.getNextSiblings()),n.insertBefore(r),n.insertAfter(o),n.replace(t)}Qr(e),Qr(i)}}}let qy=class Aee extends Vt.ElementNode{static getType(){return"listitem"}static clone(e){return new Aee(e.__value,e.__checked,e.__key)}constructor(e,n,i){super(i),this.__value=e===void 0?1:e,this.__checked=n}createDOM(e){let n=document.createElement("li"),i=this.getParent();return Pt(i)&&i.getListType()==="check"&&sW(n,this,null),n.value=this.__value,oW(n,e.theme,this),n}updateDOM(e,n,i){let r=this.getParent();return Pt(r)&&r.getListType()==="check"&&sW(n,this,e),n.value=this.__value,oW(n,i.theme,this),!1}static transform(){return e=>{let n=e.getParent();Pt(n)&&(Qr(n),bn(e)||dl(144),n.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0))}}static importDOM(){return{li:()=>({conversion:e5e,priority:0})}}static importJSON(e){let n=Io();return n.setChecked(e.checked),n.setValue(e.value),n.setFormat(e.format),n.setDirection(e.direction),n}exportDOM(e){return e=this.createDOM(e._config),e.style.textAlign=this.getFormatType(),{element:e}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let n=0;n<e.length;n++){let i=e[n];if(Vt.$isElementNode(i)&&this.canMergeWith(i)){let r=i.getChildren();this.append(...r),i.remove()}else super.append(i)}return this}replace(e,n){if(bn(e))return super.replace(e);this.setIndent(0);let i=this.getParentOrThrow();if(!Pt(i))return e;if(i.__first===this.getKey())i.insertBefore(e);else if(i.__last===this.getKey())i.insertAfter(e);else{let r=Ur(i.getListType()),o=this.getNextSibling();for(;o;){let s=o;o=o.getNextSibling(),r.append(s)}i.insertAfter(e),e.insertAfter(r)}return n&&(Vt.$isElementNode(e)||dl(139),this.getChildren().forEach(r=>{e.append(r)})),this.remove(),i.getChildrenSize()===0&&i.remove(),e}insertAfter(e,n=!0){var i=this.getParentOrThrow();Pt(i)||dl(39);var r=this.getNextSiblings();if(bn(e))return n=super.insertAfter(e,n),e=e.getParentOrThrow(),Pt(e)&&Qr(e),n;if(Pt(e)){for(i=e,e=e.getChildren(),r=e.length-1;0<=r;r--)i=e[r],this.insertAfter(i,n);return i}if(i.insertAfter(e,n),r.length!==0){let o=Ur(i.getListType());r.forEach(s=>o.append(s)),e.insertAfter(o,n)}return e}remove(e){let n=this.getPreviousSibling(),i=this.getNextSibling();super.remove(e),n&&i&&Sa(n)&&Sa(i)?(rW(n.getFirstChild(),i.getFirstChild()),i.remove()):i&&(e=i.getParent(),Pt(e)&&Qr(e))}insertNewAfter(e,n=!0){return e=Io(this.__checked==null?void 0:!1),this.insertAfter(e,n),e}collapseAtStart(e){let n=Vt.$createParagraphNode();this.getChildren().forEach(s=>n.append(s));var i=this.getParentOrThrow(),r=i.getParentOrThrow();let o=bn(r);return i.getChildrenSize()===1?o?(i.remove(),r.select()):(i.insertBefore(n),i.remove(),i=e.anchor,e=e.focus,r=n.getKey(),i.type==="element"&&i.getNode().is(this)&&i.set(r,i.offset,"element"),e.type==="element"&&e.getNode().is(this)&&e.set(r,e.offset,"element")):(i.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(e===null)return this.getLatest().__indent;e=e.getParentOrThrow();let n=0;for(;bn(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){typeof e=="number"&&-1<e||dl(117);let n=this.getIndent();for(;n!==e;)if(n<e){e:{var i=new Set;if(Sa(this)||i.has(this.getKey()))break e;let a=this.getParent();var r=this.getNextSibling(),o=this.getPreviousSibling();if(Sa(r)&&Sa(o)){if(o=o.getFirstChild(),Pt(o)){o.append(this);var s=r.getFirstChild();Pt(s)&&(s=s.getChildren(),Jc(o,s),r.remove(),i.add(r.getKey())),Qr(o)}}else Sa(r)?(r=r.getFirstChild(),Pt(r)&&(i=r.getFirstChild(),i!==null&&i.insertBefore(this),Qr(r))):Sa(o)?(r=o.getFirstChild(),Pt(r)&&(r.append(this),Qr(r))):Pt(a)&&(i=Io(),s=Ur(a.getListType()),i.append(s),s.append(this),o?o.insertAfter(i):r?r.insertBefore(i):a.append(i),Qr(s));Pt(a)&&Qr(a)}n++}else J6e(this),n--;return this}insertBefore(e){if(bn(e)){let n=this.getParentOrThrow();if(Pt(n)){let i=this.getNextSiblings();Qr(n,i)}}return super.insertBefore(e)}canInsertAfter(e){return bn(e)}canReplaceWith(e){return bn(e)}canMergeWith(e){return Vt.$isParagraphNode(e)||bn(e)}extractWithChild(e,n){if(!Vt.$isRangeSelection(n))return!1;e=n.anchor.getNode();let i=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(i)&&this.getTextContent().length===n.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ur("bullet")}};function oW(t,e,n){let i=[],r=[];var o=(e=e.list)?e.listitem:void 0;if(e&&e.nested)var s=e.nested.listitem;if(o!==void 0&&(o=o.split(" "),i.push(...o)),e){o=n.getParent(),o=Pt(o)&&o.getListType()==="check";let a=n.getChecked();o&&!a||r.push(e.listitemUnchecked),o&&a||r.push(e.listitemChecked),o&&i.push(a?e.listitemChecked:e.listitemUnchecked)}s!==void 0&&(s=s.split(" "),n.getChildren().some(a=>Pt(a))?i.push(...s):r.push(...s)),0<r.length&&Tu.removeClassNamesFromElement(t,...r),0<i.length&&Tu.addClassNamesToElement(t,...i)}function sW(t,e,n){Pt(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false"))}function e5e(t){return t=Tu.isHTMLElement(t)&&t.getAttribute("aria-checked")==="true",{node:Io(t)}}function Io(t){return Vt.$applyNodeReplacement(new qy(void 0,t))}function bn(t){return t instanceof qy}let d6=class Pee extends Vt.ElementNode{static getType(){return"list"}static clone(e){return new Pee(e.__listType||uW[e.__tag],e.__start,e.__key)}constructor(e,n,i){super(i),this.__listType=e=uW[e]||e,this.__tag=e==="number"?"ol":"ul",this.__start=n}getTag(){return this.__tag}setListType(e){let n=this.getWritable();n.__listType=e,n.__tag=e==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let n=document.createElement(this.__tag);return this.__start!==1&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,aW(n,e.theme,this),n}updateDOM(e,n,i){return e.__tag!==this.__tag?!0:(aW(n,i.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:lW,priority:0}),ul:()=>({conversion:lW,priority:0})}}static importJSON(e){let n=Ur(e.listType,e.start);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportDOM(e){return{element:e}=super.exportDOM(e),e&&Tu.isHTMLElement(e)&&(this.__start!==1&&e.setAttribute("start",String(this.__start)),this.__listType==="check"&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let i=0;i<e.length;i++){var n=e[i];if(bn(n))super.append(n);else{let r=Io();Pt(n)||Vt.$isElementNode(n)&&(n=Vt.$createTextNode(n.getTextContent())),r.append(n),super.append(r)}}return Qr(this),this}extractWithChild(e){return bn(e)}};function aW(t,e,n){let i=[],r=[];var o=e.list;if(o!==void 0){let a=o[`${n.__tag}Depth`]||[];e=JB(n)-1;let l=e%a.length;var s=a[l];let u=o[n.__tag],f,d=o.nested;if(o=o.checklist,d!==void 0&&d.list&&(f=d.list),u!==void 0&&i.push(u),o!==void 0&&n.__listType==="check"&&i.push(o),s!==void 0)for(s=s.split(" "),i.push(...s),s=0;s<a.length;s++)s!==l&&r.push(n.__tag+s);f!==void 0&&(n=f.split(" "),1<e?i.push(...n):r.push(...n))}0<r.length&&Tu.removeClassNamesFromElement(t,...r),0<i.length&&Tu.addClassNamesToElement(t,...i)}function t5e(t){let e=[];for(let i=0;i<t.length;i++){var n=t[i];bn(n)?(e.push(n),n=n.getChildren(),1<n.length&&n.forEach(r=>{Pt(r)&&e.push(tW(r))})):e.push(tW(n))}return e}function lW(t){let e=t.nodeName.toLowerCase(),n=null;return e==="ol"?n=Ur("number",t.start):e==="ul"&&(n=Tu.isHTMLElement(t)&&t.getAttribute("__lexicallisttype")==="check"?Ur("check"):Ur("bullet")),{after:t5e,node:n}}let uW={ol:"number",ul:"bullet"};function Ur(t,e=1){return Vt.$applyNodeReplacement(new d6(t,e))}function Pt(t){return t instanceof d6}let n5e=Vt.createCommand("INSERT_UNORDERED_LIST_COMMAND"),i5e=Vt.createCommand("INSERT_ORDERED_LIST_COMMAND"),r5e=Vt.createCommand("INSERT_CHECK_LIST_COMMAND"),o5e=Vt.createCommand("REMOVE_LIST_COMMAND");Hr.$createListItemNode=Io,Hr.$createListNode=Ur,Hr.$getListDepth=JB,Hr.$handleListInsertParagraph=function(){var t=Vt.$getSelection();if(!Vt.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!bn(t)||t.getChildrenSize()!==0))return!1;var e=f6(t),n=t.getParent();Pt(n)||dl(40);let i=n.getParent(),r;if(Vt.$isRootOrShadowRoot(i))r=Vt.$createParagraphNode(),e.insertAfter(r);else if(bn(i))r=Io(),i.insertAfter(r);else return!1;if(r.select(),e=t.getNextSiblings(),0<e.length){let o=Ur(n.getListType());Vt.$isParagraphNode(r)?r.insertAfter(o):(n=Io(),n.append(o),r.insertAfter(n)),e.forEach(s=>{s.remove(),o.append(s)})}return K6e(t),!0},Hr.$isListItemNode=bn,Hr.$isListNode=Pt,Hr.INSERT_CHECK_LIST_COMMAND=r5e,Hr.INSERT_ORDERED_LIST_COMMAND=i5e,Hr.INSERT_UNORDERED_LIST_COMMAND=n5e,Hr.ListItemNode=qy,Hr.ListNode=d6,Hr.REMOVE_LIST_COMMAND=o5e,Hr.insertList=function(t,e){t.update(()=>{var n=Vt.$getSelection();if(n!==null){var i=n.getNodes();n=n.getStartEndPoints(),n===null&&dl(143),[n]=n,n=n.getNode();var r=n.getParent();if(nW(n,i))i=Ur(e),Vt.$isRootOrShadowRoot(r)?(n.replace(i),r=Io(),Vt.$isElementNode(n)&&(r.setFormat(n.getFormatType()),r.setIndent(n.getIndent())),i.append(r)):bn(n)&&(n=n.getParentOrThrow(),Jc(i,n.getChildren()),n.replace(i));else for(n=new Set,r=0;r<i.length;r++){var o=i[r];if(Vt.$isElementNode(o)&&o.isEmpty()&&!bn(o)&&!n.has(o.getKey()))iW(o,e);else if(Vt.$isLeafNode(o))for(o=o.getParent();o!=null;){let a=o.getKey();if(Pt(o)){if(!n.has(a)){var s=Ur(e);Jc(s,o.getChildren()),o.replace(s),Qr(s),n.add(a)}break}else{if(s=o.getParent(),Vt.$isRootOrShadowRoot(s)&&!n.has(a)){n.add(a),iW(o,e);break}o=s}}}}})},Hr.removeList=function(t){t.update(()=>{let e=Vt.$getSelection();if(Vt.$isRangeSelection(e)){var n=new Set,i=e.getNodes(),r=e.anchor.getNode();if(nW(r,i))n.add(f6(r));else for(r=0;r<i.length;r++){var o=i[r];Vt.$isLeafNode(o)&&(o=Tu.$getNearestNodeOfType(o,qy),o!=null&&n.add(f6(o)))}for(let s of n){n=s,i=eW(s);for(let a of i)i=Vt.$createParagraphNode(),Jc(i,a.getChildren()),n.insertAfter(i),n=i,a.__key===e.anchor.key&&e.anchor.set(i.getKey(),0,"element"),a.__key===e.focus.key&&e.focus.set(i.getKey(),0,"element"),a.remove();s.remove()}}})};var ei=Hr;function h6(t){let[e]=t.getNodes();A.$isTextNode(e)&&(e=e.getParent());let n=e.getTopLevelElement();if(ei.$isListItemNode(e)&&n!==e.getParent())return!1;const i=e.getIndexWithinParent(),r=n?n.getIndexWithinParent():void 0;return i===0&&r===0&&t.anchor.offset===0&&t.focus.offset===0}function or(t){const e=A.$createNodeSelection();e.add(t.getKey()),A.$setSelection(e)}function p6(t){return t.nodeType===Node.TEXT_NODE&&(t=t.parentNode),t.closest("[data-lexical-editor] > *")}function g6(t,e=10){const i=t.getRangeAt(0).cloneRange().getClientRects();if(i.length>0){const r=i[1]||i[0],s=p6(t.anchorNode).getBoundingClientRect();return Math.abs(r.top-s.top)<=e}}const s5e=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8.2 5 1 12l7.2 7m7.6-14 7.2 7-7.2 7"}));function a5e({darkMode:t,html:e,updateHtml:n}){const i=T.useCallback(d=>{n(d)},[n]),r=Te.theme({"&.cm-editor":{background:"transparent"},"&.cm-focused":{outline:"0"},"&.cm-editor .cm-content":{padding:"7px 0"},"&.cm-editor .cm-content, &.cm-editor .cm-gutter":{minHeight:"170px"},"&.cm-editor .cm-scroller":{overflow:"auto"},"&.cm-editor .cm-gutters":{background:"none",border:"none",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",color:"#CED4D9",lineHeight:"2.25rem"},"&.cm-editor .cm-lineNumbers":{padding:"0"},"&.cm-editor .cm-foldGutter":{width:"0"},"&.cm-editor .cm-line":{padding:"0 .8rem",color:"#394047",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",fontSize:"1.6rem",lineHeight:"2.25rem"},"&.cm-editor .cm-activeLine, &.cm-editor .cm-activeLineGutter":{background:"none"},"&.cm-editor .cm-cursor, &.cm-editor .cm-dropCursor":{borderLeft:"1.2px solid black"}}),o=Te.theme({"&.cm-editor":{background:"transparent"},"&.cm-focused":{outline:"0"},"&.cm-editor .cm-content":{padding:"7px 0"},"&.cm-editor .cm-content, &.cm-editor .cm-gutter":{minHeight:"170px"},"&.cm-editor .cm-scroller":{overflow:"auto"},"&.cm-editor .cm-gutters":{background:"none",border:"none",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",color:"rgb(108, 118, 127);",lineHeight:"2.25rem"},"&.cm-editor .cm-lineNumbers":{padding:"0"},"&.cm-editor .cm-foldGutter":{width:"0"},"&.cm-editor .cm-line":{padding:"0 .8rem",color:"rgb(210, 215, 218)",fontFamily:"Consolas,Liberation Mono,Menlo,Courier,monospace;",fontSize:"1.6rem",lineHeight:"2.25rem"},"&.cm-editor .cm-activeLine, &.cm-editor .cm-activeLineGutter":{background:"none"},"&.cm-editor .cm-cursor, &.cm-editor .cm-dropCursor":{borderLeft:"1.2px solid white"}}),s=ol.define([{tag:X.keyword,color:"#5A5CAD"},{tag:X.atom,color:"#6C8CD5"},{tag:X.number,color:"#116644"},{tag:X.definition(X.variableName),textDecoration:"underline"},{tag:X.variableName,color:"black"},{tag:X.comment,color:"#0080FF",fontStyle:"italic",background:"rgba(0,0,0,.05)"},{tag:[X.string,X.special(X.brace)],color:"#183691"},{tag:X.meta,color:"yellow"},{tag:X.bracket,color:"#63a35c"},{tag:X.tagName,color:"#63a35c"},{tag:X.attributeName,color:"#795da3"}]),a=ol.define([{tag:X.keyword,color:"#795da3"},{tag:X.atom,color:"#6C8CD5"},{tag:X.number,color:"#63a35c"},{tag:X.definition(X.variableName),textDecoration:"underline"},{tag:X.variableName,color:"white"},{tag:X.comment,color:"#0080FF",fontStyle:"italic",background:"rgba(0,0,0,.05)"},{tag:[X.string,X.special(X.brace)],color:"rgb(72, 110, 225)"},{tag:X.meta,color:"yellow"},{tag:X.bracket,color:"#63a35c"},{tag:X.tagName,color:"#63a35c"},{tag:X.attributeName,color:"#795da3"},{tag:[X.className,X.propertyName],color:"rgb(72, 110, 225)"}]),l=t?o:r,u=t?a:s,f=[Te.lineWrapping,Fm(u),l,O4(),sF({defaultKeymap:!1,history:!1}),nl.of(qj),nl.of(J4),xB(),Qj(),Vk({joinToEvent:void 0})];return k.jsx("div",{className:"not-kg-prose min-h-[170px]",children:k.jsx(bC,{autoFocus:!0,basicSetup:!1,extensions:f,value:e,onChange:i})})}/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */const{entries:cW,setPrototypeOf:fW,isFrozen:l5e,getPrototypeOf:u5e,getOwnPropertyDescriptor:c5e}=Object;let{freeze:Zr,seal:ds,create:m6}=Object,{apply:v6,construct:b6}=typeof Reflect<"u"&&Reflect;Zr||(Zr=function(e){return e}),ds||(ds=function(e){return e}),v6||(v6=function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return e.apply(n,r)}),b6||(b6=function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return new e(...i)});const Yy=Yr(Array.prototype.forEach),f5e=Yr(Array.prototype.lastIndexOf),dW=Yr(Array.prototype.pop),t0=Yr(Array.prototype.push),d5e=Yr(Array.prototype.splice),Vy=Yr(String.prototype.toLowerCase),k6=Yr(String.prototype.toString),y6=Yr(String.prototype.match),n0=Yr(String.prototype.replace),h5e=Yr(String.prototype.indexOf),p5e=Yr(String.prototype.trim),Rs=Yr(Object.prototype.hasOwnProperty),qr=Yr(RegExp.prototype.test),i0=g5e(TypeError);function Yr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return v6(t,e,i)}}function g5e(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return b6(t,n)}}function Dt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Vy;fW&&fW(t,null);let i=e.length;for(;i--;){let r=e[i];if(typeof r=="string"){const o=n(r);o!==r&&(l5e(e)||(e[i]=o),r=o)}t[r]=!0}return t}function m5e(t){for(let e=0;e<t.length;e++)Rs(t,e)||(t[e]=null);return t}function hl(t){const e=m6(null);for(const[n,i]of cW(t))Rs(t,n)&&(Array.isArray(i)?e[n]=m5e(i):i&&typeof i=="object"&&i.constructor===Object?e[n]=hl(i):e[n]=i);return e}function r0(t,e){for(;t!==null;){const i=c5e(t,e);if(i){if(i.get)return Yr(i.get);if(typeof i.value=="function")return Yr(i.value)}t=u5e(t)}function n(){return null}return n}const hW=Zr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),w6=Zr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x6=Zr(["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"]),v5e=Zr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_6=Zr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),b5e=Zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),pW=Zr(["#text"]),gW=Zr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),O6=Zr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mW=Zr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Xy=Zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),k5e=ds(/\{\{[\w\W]*|[\w\W]*\}\}/gm),y5e=ds(/<%[\w\W]*|[\w\W]*%>/gm),w5e=ds(/\$\{[\w\W]*/gm),x5e=ds(/^data-[\-\w.\u00B7-\uFFFF]+$/),_5e=ds(/^aria-[\-\w]+$/),vW=ds(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O5e=ds(/^(?:\w+script|data):/i),S5e=ds(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bW=ds(/^html$/i),C5e=ds(/^[a-z][.\w]*(-[.\w]+)+$/i);var kW=Object.freeze({__proto__:null,ARIA_ATTR:_5e,ATTR_WHITESPACE:S5e,CUSTOM_ELEMENT:C5e,DATA_ATTR:x5e,DOCTYPE_NAME:bW,ERB_EXPR:y5e,IS_ALLOWED_URI:vW,IS_SCRIPT_OR_DATA:O5e,MUSTACHE_EXPR:k5e,TMPLIT_EXPR:w5e});const o0={element:1,text:3,progressingInstruction:7,comment:8,document:9},E5e=function(){return typeof window>"u"?null:window},T5e=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let i=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},yW=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function wW(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E5e();const e=Je=>wW(Je);if(e.version="3.3.0",e.removed=[],!t||!t.document||t.document.nodeType!==o0.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const i=n,r=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:g}=t,m=l.prototype,y=r0(m,"cloneNode"),x=r0(m,"remove"),_=r0(m,"nextSibling"),S=r0(m,"childNodes"),C=r0(m,"parentNode");if(typeof s=="function"){const Je=n.createElement("template");Je.content&&Je.content.ownerDocument&&(n=Je.content.ownerDocument)}let E,N="";const{implementation:M,createNodeIterator:I,createDocumentFragment:W,getElementsByTagName:B}=n,{importNode:Z}=i;let R=yW();e.isSupported=typeof cW=="function"&&typeof C=="function"&&M&&M.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Q,ERB_EXPR:V,TMPLIT_EXPR:H,DATA_ATTR:j,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:te}=kW;let{IS_ALLOWED_URI:oe}=kW,ce=null;const U=Dt({},[...hW,...w6,...x6,..._6,...pW]);let F=null;const se=Dt({},[...gW,...O6,...mW,...Xy]);let le=Object.seal(m6(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pe=null,je=null;const He=Object.seal(m6(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ot=!0,ht=!0,ve=!1,De=!0,st=!1,It=!0,Mt=!1,Wt=!1,Ue=!1,St=!1,Lt=!1,Be=!1,Re=!0,ae=!1;const Ze="user-content-";let Ut=!0,ii=!1,Nt={},On=null;const Zo=Dt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Nl=null;const Al=Dt({},["audio","video","img","source","image","track"]);let Jh=null;const oc=Dt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ep="http://www.w3.org/1998/Math/MathML",ja="http://www.w3.org/2000/svg",eo="http://www.w3.org/1999/xhtml";let sc=eo,qo=!1,tp=null;const rt=Dt({},[ep,ja,eo],k6);let ac=Dt({},["mi","mo","mn","ms","mtext"]),Vi=Dt({},["annotation-xml"]);const Un=Dt({},["title","style","font","a","script"]);let Sn=null;const v2=["application/xhtml+xml","text/html"],bo="text/html";let Cn=null,ri=null;const b2=n.createElement("form"),np=function(ne){return ne instanceof RegExp||ne instanceof Function},Pl=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ri&&ri===ne)){if((!ne||typeof ne!="object")&&(ne={}),ne=hl(ne),Sn=v2.indexOf(ne.PARSER_MEDIA_TYPE)===-1?bo:ne.PARSER_MEDIA_TYPE,Cn=Sn==="application/xhtml+xml"?k6:Vy,ce=Rs(ne,"ALLOWED_TAGS")?Dt({},ne.ALLOWED_TAGS,Cn):U,F=Rs(ne,"ALLOWED_ATTR")?Dt({},ne.ALLOWED_ATTR,Cn):se,tp=Rs(ne,"ALLOWED_NAMESPACES")?Dt({},ne.ALLOWED_NAMESPACES,k6):rt,Jh=Rs(ne,"ADD_URI_SAFE_ATTR")?Dt(hl(oc),ne.ADD_URI_SAFE_ATTR,Cn):oc,Nl=Rs(ne,"ADD_DATA_URI_TAGS")?Dt(hl(Al),ne.ADD_DATA_URI_TAGS,Cn):Al,On=Rs(ne,"FORBID_CONTENTS")?Dt({},ne.FORBID_CONTENTS,Cn):Zo,pe=Rs(ne,"FORBID_TAGS")?Dt({},ne.FORBID_TAGS,Cn):hl({}),je=Rs(ne,"FORBID_ATTR")?Dt({},ne.FORBID_ATTR,Cn):hl({}),Nt=Rs(ne,"USE_PROFILES")?ne.USE_PROFILES:!1,ot=ne.ALLOW_ARIA_ATTR!==!1,ht=ne.ALLOW_DATA_ATTR!==!1,ve=ne.ALLOW_UNKNOWN_PROTOCOLS||!1,De=ne.ALLOW_SELF_CLOSE_IN_ATTR!==!1,st=ne.SAFE_FOR_TEMPLATES||!1,It=ne.SAFE_FOR_XML!==!1,Mt=ne.WHOLE_DOCUMENT||!1,St=ne.RETURN_DOM||!1,Lt=ne.RETURN_DOM_FRAGMENT||!1,Be=ne.RETURN_TRUSTED_TYPE||!1,Ue=ne.FORCE_BODY||!1,Re=ne.SANITIZE_DOM!==!1,ae=ne.SANITIZE_NAMED_PROPS||!1,Ut=ne.KEEP_CONTENT!==!1,ii=ne.IN_PLACE||!1,oe=ne.ALLOWED_URI_REGEXP||vW,sc=ne.NAMESPACE||eo,ac=ne.MATHML_TEXT_INTEGRATION_POINTS||ac,Vi=ne.HTML_INTEGRATION_POINTS||Vi,le=ne.CUSTOM_ELEMENT_HANDLING||{},ne.CUSTOM_ELEMENT_HANDLING&&np(ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(le.tagNameCheck=ne.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&np(ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(le.attributeNameCheck=ne.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ne.CUSTOM_ELEMENT_HANDLING&&typeof ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(le.allowCustomizedBuiltInElements=ne.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),st&&(ht=!1),Lt&&(St=!0),Nt&&(ce=Dt({},pW),F=[],Nt.html===!0&&(Dt(ce,hW),Dt(F,gW)),Nt.svg===!0&&(Dt(ce,w6),Dt(F,O6),Dt(F,Xy)),Nt.svgFilters===!0&&(Dt(ce,x6),Dt(F,O6),Dt(F,Xy)),Nt.mathMl===!0&&(Dt(ce,_6),Dt(F,mW),Dt(F,Xy))),ne.ADD_TAGS&&(typeof ne.ADD_TAGS=="function"?He.tagCheck=ne.ADD_TAGS:(ce===U&&(ce=hl(ce)),Dt(ce,ne.ADD_TAGS,Cn))),ne.ADD_ATTR&&(typeof ne.ADD_ATTR=="function"?He.attributeCheck=ne.ADD_ATTR:(F===se&&(F=hl(F)),Dt(F,ne.ADD_ATTR,Cn))),ne.ADD_URI_SAFE_ATTR&&Dt(Jh,ne.ADD_URI_SAFE_ATTR,Cn),ne.FORBID_CONTENTS&&(On===Zo&&(On=hl(On)),Dt(On,ne.FORBID_CONTENTS,Cn)),Ut&&(ce["#text"]=!0),Mt&&Dt(ce,["html","head","body"]),ce.table&&(Dt(ce,["tbody"]),delete pe.tbody),ne.TRUSTED_TYPES_POLICY){if(typeof ne.TRUSTED_TYPES_POLICY.createHTML!="function")throw i0('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ne.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw i0('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=ne.TRUSTED_TYPES_POLICY,N=E.createHTML("")}else E===void 0&&(E=T5e(g,r)),E!==null&&typeof N=="string"&&(N=E.createHTML(""));Zr&&Zr(ne),ri=ne}},ip=Dt({},[...w6,...x6,...v5e]),S1=Dt({},[..._6,...b5e]),qT=function(ne){let _e=C(ne);(!_e||!_e.tagName)&&(_e={namespaceURI:sc,tagName:"template"});const Fe=Vy(ne.tagName),hn=Vy(_e.tagName);return tp[ne.namespaceURI]?ne.namespaceURI===ja?_e.namespaceURI===eo?Fe==="svg":_e.namespaceURI===ep?Fe==="svg"&&(hn==="annotation-xml"||ac[hn]):!!ip[Fe]:ne.namespaceURI===ep?_e.namespaceURI===eo?Fe==="math":_e.namespaceURI===ja?Fe==="math"&&Vi[hn]:!!S1[Fe]:ne.namespaceURI===eo?_e.namespaceURI===ja&&!Vi[hn]||_e.namespaceURI===ep&&!ac[hn]?!1:!S1[Fe]&&(Un[Fe]||!ip[Fe]):!!(Sn==="application/xhtml+xml"&&tp[ne.namespaceURI]):!1},ko=function(ne){t0(e.removed,{element:ne});try{C(ne).removeChild(ne)}catch{x(ne)}},Dl=function(ne,_e){try{t0(e.removed,{attribute:_e.getAttributeNode(ne),from:_e})}catch{t0(e.removed,{attribute:null,from:_e})}if(_e.removeAttribute(ne),ne==="is")if(St||Lt)try{ko(_e)}catch{}else try{_e.setAttribute(ne,"")}catch{}},rp=function(ne){let _e=null,Fe=null;if(Ue)ne="<remove></remove>"+ne;else{const In=y6(ne,/^[\r\n\t ]+/);Fe=In&&In[0]}Sn==="application/xhtml+xml"&&sc===eo&&(ne='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ne+"</body></html>");const hn=E?E.createHTML(ne):ne;if(sc===eo)try{_e=new h().parseFromString(hn,Sn)}catch{}if(!_e||!_e.documentElement){_e=M.createDocument(sc,"template",null);try{_e.documentElement.innerHTML=qo?N:hn}catch{}}const Dn=_e.body||_e.documentElement;return ne&&Fe&&Dn.insertBefore(n.createTextNode(Fe),Dn.childNodes[0]||null),sc===eo?B.call(_e,Mt?"html":"body")[0]:Mt?_e.documentElement:Dn},k2=function(ne){return I.call(ne.ownerDocument||ne,ne,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Df=function(ne){return ne instanceof d&&(typeof ne.nodeName!="string"||typeof ne.textContent!="string"||typeof ne.removeChild!="function"||!(ne.attributes instanceof f)||typeof ne.removeAttribute!="function"||typeof ne.setAttribute!="function"||typeof ne.namespaceURI!="string"||typeof ne.insertBefore!="function"||typeof ne.hasChildNodes!="function")},y2=function(ne){return typeof a=="function"&&ne instanceof a};function Qs(Je,ne,_e){Yy(Je,Fe=>{Fe.call(e,ne,_e,ri)})}const op=function(ne){let _e=null;if(Qs(R.beforeSanitizeElements,ne,null),Df(ne))return ko(ne),!0;const Fe=Cn(ne.nodeName);if(Qs(R.uponSanitizeElement,ne,{tagName:Fe,allowedTags:ce}),It&&ne.hasChildNodes()&&!y2(ne.firstElementChild)&&qr(/<[/\w!]/g,ne.innerHTML)&&qr(/<[/\w!]/g,ne.textContent)||ne.nodeType===o0.progressingInstruction||It&&ne.nodeType===o0.comment&&qr(/<[/\w]/g,ne.data))return ko(ne),!0;if(!(He.tagCheck instanceof Function&&He.tagCheck(Fe))&&(!ce[Fe]||pe[Fe])){if(!pe[Fe]&&sp(Fe)&&(le.tagNameCheck instanceof RegExp&&qr(le.tagNameCheck,Fe)||le.tagNameCheck instanceof Function&&le.tagNameCheck(Fe)))return!1;if(Ut&&!On[Fe]){const hn=C(ne)||ne.parentNode,Dn=S(ne)||ne.childNodes;if(Dn&&hn){const In=Dn.length;for(let hr=In-1;hr>=0;--hr){const Zt=y(Dn[hr],!0);Zt.__removalCount=(ne.__removalCount||0)+1,hn.insertBefore(Zt,_(ne))}}}return ko(ne),!0}return ne instanceof l&&!qT(ne)||(Fe==="noscript"||Fe==="noembed"||Fe==="noframes")&&qr(/<\/no(script|embed|frames)/i,ne.innerHTML)?(ko(ne),!0):(st&&ne.nodeType===o0.text&&(_e=ne.textContent,Yy([Q,V,H],hn=>{_e=n0(_e,hn," ")}),ne.textContent!==_e&&(t0(e.removed,{element:ne.cloneNode()}),ne.textContent=_e)),Qs(R.afterSanitizeElements,ne,null),!1)},w2=function(ne,_e,Fe){if(Re&&(_e==="id"||_e==="name")&&(Fe in n||Fe in b2))return!1;if(!(ht&&!je[_e]&&qr(j,_e))){if(!(ot&&qr(q,_e))){if(!(He.attributeCheck instanceof Function&&He.attributeCheck(_e,ne))){if(!F[_e]||je[_e]){if(!(sp(ne)&&(le.tagNameCheck instanceof RegExp&&qr(le.tagNameCheck,ne)||le.tagNameCheck instanceof Function&&le.tagNameCheck(ne))&&(le.attributeNameCheck instanceof RegExp&&qr(le.attributeNameCheck,_e)||le.attributeNameCheck instanceof Function&&le.attributeNameCheck(_e,ne))||_e==="is"&&le.allowCustomizedBuiltInElements&&(le.tagNameCheck instanceof RegExp&&qr(le.tagNameCheck,Fe)||le.tagNameCheck instanceof Function&&le.tagNameCheck(Fe))))return!1}else if(!Jh[_e]){if(!qr(oe,n0(Fe,K,""))){if(!((_e==="src"||_e==="xlink:href"||_e==="href")&&ne!=="script"&&h5e(Fe,"data:")===0&&Nl[ne])){if(!(ve&&!qr(Y,n0(Fe,K,"")))){if(Fe)return!1}}}}}}}return!0},sp=function(ne){return ne!=="annotation-xml"&&y6(ne,te)},Il=function(ne){Qs(R.beforeSanitizeAttributes,ne,null);const{attributes:_e}=ne;if(!_e||Df(ne))return;const Fe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let hn=_e.length;for(;hn--;){const Dn=_e[hn],{name:In,namespaceURI:hr,value:Zt}=Dn,ze=Cn(In),Us=Zt;let di=In==="value"?Us:p5e(Us);if(Fe.attrName=ze,Fe.attrValue=di,Fe.keepAttr=!0,Fe.forceKeepAttr=void 0,Qs(R.uponSanitizeAttribute,ne,Fe),di=Fe.attrValue,ae&&(ze==="id"||ze==="name")&&(Dl(In,ne),di=Ze+di),It&&qr(/((--!?|])>)|<\/(style|title|textarea)/i,di)){Dl(In,ne);continue}if(ze==="attributename"&&y6(di,"href")){Dl(In,ne);continue}if(Fe.forceKeepAttr)continue;if(!Fe.keepAttr){Dl(In,ne);continue}if(!De&&qr(/\/>/i,di)){Dl(In,ne);continue}st&&Yy([Q,V,H],Bt=>{di=n0(di,Bt," ")});const Yo=Cn(ne.nodeName);if(!w2(Yo,ze,di)){Dl(In,ne);continue}if(E&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!hr)switch(g.getAttributeType(Yo,ze)){case"TrustedHTML":{di=E.createHTML(di);break}case"TrustedScriptURL":{di=E.createScriptURL(di);break}}if(di!==Us)try{hr?ne.setAttributeNS(hr,In,di):ne.setAttribute(In,di),Df(ne)?ko(ne):dW(e.removed)}catch{Dl(In,ne)}}Qs(R.afterSanitizeAttributes,ne,null)},YT=function Je(ne){let _e=null;const Fe=k2(ne);for(Qs(R.beforeSanitizeShadowDOM,ne,null);_e=Fe.nextNode();)Qs(R.uponSanitizeShadowNode,_e,null),op(_e),Il(_e),_e.content instanceof o&&Je(_e.content);Qs(R.afterSanitizeShadowDOM,ne,null)};return e.sanitize=function(Je){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=null,Fe=null,hn=null,Dn=null;if(qo=!Je,qo&&(Je="<!-->"),typeof Je!="string"&&!y2(Je))if(typeof Je.toString=="function"){if(Je=Je.toString(),typeof Je!="string")throw i0("dirty is not a string, aborting")}else throw i0("toString is not a function");if(!e.isSupported)return Je;if(Wt||Pl(ne),e.removed=[],typeof Je=="string"&&(ii=!1),ii){if(Je.nodeName){const Zt=Cn(Je.nodeName);if(!ce[Zt]||pe[Zt])throw i0("root node is forbidden and cannot be sanitized in-place")}}else if(Je instanceof a)_e=rp("<!---->"),Fe=_e.ownerDocument.importNode(Je,!0),Fe.nodeType===o0.element&&Fe.nodeName==="BODY"||Fe.nodeName==="HTML"?_e=Fe:_e.appendChild(Fe);else{if(!St&&!st&&!Mt&&Je.indexOf("<")===-1)return E&&Be?E.createHTML(Je):Je;if(_e=rp(Je),!_e)return St?null:Be?N:""}_e&&Ue&&ko(_e.firstChild);const In=k2(ii?Je:_e);for(;hn=In.nextNode();)op(hn),Il(hn),hn.content instanceof o&&YT(hn.content);if(ii)return Je;if(St){if(Lt)for(Dn=W.call(_e.ownerDocument);_e.firstChild;)Dn.appendChild(_e.firstChild);else Dn=_e;return(F.shadowroot||F.shadowrootmode)&&(Dn=Z.call(i,Dn,!0)),Dn}let hr=Mt?_e.outerHTML:_e.innerHTML;return Mt&&ce["!doctype"]&&_e.ownerDocument&&_e.ownerDocument.doctype&&_e.ownerDocument.doctype.name&&qr(bW,_e.ownerDocument.doctype.name)&&(hr="<!DOCTYPE "+_e.ownerDocument.doctype.name+`>
|
||
`+hr),st&&Yy([Q,V,H],Zt=>{hr=n0(hr,Zt," ")}),E&&Be?E.createHTML(hr):hr},e.setConfig=function(){let Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pl(Je),Wt=!0},e.clearConfig=function(){ri=null,Wt=!1},e.isValidAttribute=function(Je,ne,_e){ri||Pl({});const Fe=Cn(Je),hn=Cn(ne);return w2(Fe,hn,_e)},e.addHook=function(Je,ne){typeof ne=="function"&&t0(R[Je],ne)},e.removeHook=function(Je,ne){if(ne!==void 0){const _e=f5e(R[Je],ne);return _e===-1?void 0:d5e(R[Je],_e,1)[0]}return dW(R[Je])},e.removeHooks=function(Je){R[Je]=[]},e.removeAllHooks=function(){R=yW()},e}var $5e=wW();function Gy(t="",e={}){return e={replaceJS:!0,...e},e.replaceJS&&(t=t.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,'<pre class="js-embed-placeholder">Embedded JavaScript</pre>'),t=t.replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,'<pre class="iframe-embed-placeholder">Embedded iFrame</pre>')),$5e.sanitize(t,{ALLOWED_URI_REGEXP:/^https?:|^\/|blob:/,ADD_ATTR:["id"],FORBID_TAGS:["style"]})}function xW({html:t,updateHtml:e,isEditing:n,darkMode:i}){return k.jsx(k.Fragment,{children:n?k.jsx(k.Fragment,{children:k.jsx(a5e,{darkMode:i,html:t,updateHtml:e})}):k.jsxs("div",{children:[k.jsx(_W,{html:t}),k.jsx("div",{className:"absolute inset-0 z-50 mt-0"})]})})}function _W({html:t}){const e=Gy(t,{replaceJS:!0});return k.jsx("div",{dangerouslySetInnerHTML:{__html:e},className:"min-h-[3.5vh] whitespace-normal"})}_W.propTypes={html:P.string},xW.propTypes={html:P.string,updateHtml:P.func,isEditing:P.bool,darkMode:P.bool};function M5e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}function N5e({adjustOnResize:t,adjustOnDrag:e}={}){const n=T.useRef(null),i=3,r=T.useRef(!1),o=T.useRef(),s=T.useRef(),a=T.useRef(),l=T.useRef(),u=T.useRef(),f=T.useRef(),d=M5e(),h=(V,H)=>{const j=q=>{var Y;(Y=n.current)!=null&&Y.contains(q.target)&&H(q)};return document.body.addEventListener(V,j,!1),j},g=T.useCallback(V=>{V.preventDefault(),V.stopPropagation()},[]),m=T.useCallback((V,H)=>{n.current.style.transform=`translate(${V}px, ${H}px)`},[n]),y=T.useCallback(({x:V,y:H})=>{o.current=V,s.current=H;const j=n.current.offsetWidth,q=n.current.offsetHeight,Y={top:H,left:V,right:window.innerWidth-V-j,bottom:window.innerHeight-H-q};u.current=Y,m(V,H)},[m]),x=T.useCallback(()=>({x:o.current,y:s.current,lastSpacing:u.current}),[]),_=T.useCallback(()=>{var V;f.current=(V=n.current)==null?void 0:V.style.overflow,n.current.style.overflow="hidden"},[n]),S=T.useCallback(()=>{n.current.style.overflow=f.current},[n]),C=T.useCallback(()=>{window.getSelection().removeAllRanges();const V=document.createElement("style");V.id=`stylesheet-${d}`,document.head.appendChild(V),V.sheet.insertRule("* { user-select: none !important; }",0)},[d]),E=T.useCallback(()=>{const V=document.getElementById(`stylesheet-${d}`);V==null||V.remove()},[d]),N=T.useCallback(()=>{n.current&&(n.current.style.pointerEvents="none"),window.addEventListener("click",g,{capture:!0,passive:!1})},[n,g]),M=T.useCallback(()=>{n.current&&(n.current.style.pointerEvents=""),window.removeEventListener("click",g,{capture:!0,passive:!1})},[n,g]),I=T.useCallback(V=>{let H,j;if(V.type==="touchmove"?(H=V.touches[0].clientX,j=V.touches[0].clientY):(H=V.clientX,j=V.clientY),r.current||(Math.abs(H-a.current-o.current)>i||Math.abs(j-l.current-s.current)>i)&&(_(),C(),N(),r.current=!0),r.current){let q={x:H-a.current,y:j-l.current};e&&(q=e(n.current,{...q,lastSpacing:u.current})),y(q)}},[i,y,_,C,N,e]),W=T.useCallback(V=>{r.current=!1,window.removeEventListener("touchend",W,{capture:!0,passive:!0}),window.removeEventListener("touchmove",I,{capture:!0,passive:!0}),window.removeEventListener("mouseup",W,{capture:!0,passive:!0}),window.removeEventListener("mousemove",I,{capture:!0,passive:!0}),setTimeout(()=>{window.removeEventListener("click",g.bind(this),{capture:!0,passive:!1})},1),S(),E(),setTimeout(()=>{M()},5)},[S,E,M,I,g]),B=T.useCallback(()=>{window.addEventListener("touchend",W,{capture:!0,passive:!0}),window.addEventListener("touchmove",I,{capture:!0,passive:!0}),window.addEventListener("mouseup",W,{capture:!0,passive:!0}),window.addEventListener("mousemove",I,{capture:!0,passive:!0})},[W,I]),Z=T.useCallback(V=>{var H;if(V.stopPropagation(),r.current=!1,V.type==="touchstart"||V.button===0){V.type==="touchstart"?(a.current=V.touches[0].clientX-(o.current||0),l.current=V.touches[0].clientY-(s.current||0)):(a.current=V.clientX-(o.current||0),l.current=V.clientY-(s.current||0));for(const j of V.path||V.composedPath()){if((H=j==null?void 0:j.matches)!=null&&H.call(j,"input, .ember-basic-dropdown-trigger"))break;if(j===n.current){B();break}}}},[n,B]),R=T.useCallback(()=>{const V=h("touchstart",Z),H=h("mousedown",Z);return()=>{var j,q;(j=n.current)==null||j.removeEventListener("touchstart",V),(q=n.current)==null||q.removeEventListener("mousedown",H)}},[Z]),Q=T.useCallback(()=>{window.removeEventListener("touchend",W,{capture:!0,passive:!0}),window.removeEventListener("touchmove",I,{capture:!0,passive:!0}),window.removeEventListener("mouseup",W,{capture:!0,passive:!0}),window.removeEventListener("mousemove",I,{capture:!0,passive:!0}),setTimeout(()=>{window.removeEventListener("click",g.bind(this),{capture:!0,passive:!1})},1)},[W,I,g]);return T.useEffect(()=>{var q;const V=n.current;V.setAttribute("draggable",!0),(q=n.current)==null||q.classList.add("kg-card-movable");let H;const j=R();return t&&(H=new ResizeObserver(()=>{if(o.current===void 0||s.current===void 0)return;const Y=t(V,{x:o.current,y:s.current,lastSpacing:u.current});(Y.x!==o.current||Y.y!==s.current)&&(a.current=a.current-(Y.x-o.current),l.current=l.current-(Y.y-s.current),y(Y))}),H.observe(V)),()=>{j(),Q(),H==null||H.disconnect(),E()}},[]),{ref:n,setPosition:y,getPosition:x}}function yh(t){const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY,i=n!=="visible"&&n!=="hidden";if(t){if(i&&t.scrollHeight>=t.clientHeight)return t}else return null;return yh(t.parentNode)||document.body}const OW=20,A5e=20,P5e=66,D5e=20,I5e=20;function L5e(){return window.innerWidth<768&&window.innerHeight>window.innerWidth}const R5e=()=>{const t=document.querySelector('[data-kg-card-editing="true"]');if(!t)return{x:0,y:0};const e=t.getBoundingClientRect(),n=window.getComputedStyle(t),i={x:0,y:0};return n.transform!=="none"&&(i.x=e.left,i.y=e.top),i};function SW(t){return t?parseInt(window.getComputedStyle(t).getPropertyValue("--kg-breakout-adjustment")||0,10):0}function CW(t){const e=SW(t);return{width:window.innerWidth-e,height:window.innerHeight}}function EW(t,{x:e,y:n,origin:i={x:0,y:0},topSpacing:r,bottomSpacing:o,rightSpacing:s,leftSpacing:a,lastSpacing:l}){if(i=R5e(),!t)return{x:e+i.x,y:n+i.y};const u=SW(t);l&&l.top<r&&(r=l.top),l&&l.bottom<o&&(o=l.bottom),l&&l.right<s&&(s=l.right),l&&l.left<a&&(a=l.left);const f=t.offsetWidth,d=t.offsetHeight,h=e+f+i.x,g=n+d+i.y,m=n+i.y<r,y=window.innerHeight-g<o,x=window.innerWidth-h-u<s,_=e<a;let S=0,C=0;return m&&!y&&(S=r-n-i.y),y&&!m&&(S=-(o-(window.innerHeight-g))),x&&(C=-(s-(window.innerWidth-h-u))),_&&(C=a-e-i.x),{x:e+C,y:n+S}}function S6(t,{x:e,y:n,origin:i}){return EW(t,{x:e,y:n,origin:i,topSpacing:10,bottomSpacing:10,rightSpacing:10,leftSpacing:10,lastSpacing:void 0})}function s0(t,{x:e,y:n,origin:i,lastSpacing:r}){return S6(t,EW(t,{x:e,y:n,origin:i,topSpacing:P5e,bottomSpacing:D5e,rightSpacing:A5e,leftSpacing:I5e,lastSpacing:r}))}function j5e({positionToRef:t}={},e){const{ref:n,getPosition:i,setPosition:r}=N5e({adjustOnResize:s0,adjustOnDrag:S6}),o=T.useRef(CW(n.current)),s=T.useRef(e),a=T.useRef({x:0,y:0}),l=T.useCallback(f=>{const d=f.offsetHeight,h=t||document.querySelector('[data-kg-card-editing="true"]')||document.querySelector('[data-kg-card-selected="true"]');if(!h)return;const g=h.getBoundingClientRect();if(L5e()){const E=window.innerWidth/2-f.offsetWidth/2,N=g.bottom+OW;return S6(f,{x:E,y:N})}const m=Math.min(window.innerHeight,g.bottom)-g.top;let x=g.top+m/2-d/2,_=g.right+OW;const S=window.getComputedStyle(h),C={x:0,y:0};return S.transform!=="none"&&(C.x=g.left,C.y=g.top),s0(f,{x:_,y:x,origin:C})},[t]),u=T.useCallback(f=>{let{x:d,y:h,lastSpacing:g}=i();const m=CW(f);if(m.height>o.current.height){const y=m.height-o.current.height,x=l(f);x&&x.y>h&&(h+=Math.min(x.y-h,y))}if(m.width>o.current.width){const y=m.width-o.current.width,x=l(f);x&&x.x>d&&(d+=Math.min(x.x-d,y))}r(s0(f,{x:d,y:h,lastSpacing:g})),o.current=m},[l,r,i]);return T.useLayoutEffect(()=>{if(!n.current)return;const f=yh(n.current)||document.body;let d=0;const h=kh(m=>{d=m,u(n.current)},100,{leading:!0,trailing:!0}),g=new ResizeObserver(m=>{var y;for(const x of m)if((y=x.contentBoxSize)!=null&&y[0]){const _=x.contentBoxSize[0].inlineSize;typeof _=="number"&&_!==d&&h(_)}});return g.observe(f),()=>{g.disconnect()}},[u,n]),T.useLayoutEffect(()=>{if(!(!n||!n.current))try{r(l(n.current))}catch(f){console.error(f)}},[l,r,n]),T.useLayoutEffect(()=>{if(e==="wide"&&s.current!=="wide"){const f=document.querySelector('[data-kg-card-editing="true"]');if(!f)return;const d=f.getBoundingClientRect(),h={x:d.left+2,y:d.top+1};a.current=h;const g=i().x-h.x,m=i().y-h.y;r(s0(n.current,{x:g,y:m,origin:h}))}else if(s.current==="wide"&&e!=="wide"){const f=i().x+a.current.x,d=i().y+a.current.y;r(s0(n.current,{x:f,y:d,origin:{x:0,y:0}}))}s.current=e},[e,i,l,r,n]),{ref:n}}const TW=(t,e)=>{const n=T.useRef(null);return{handleMousedown:()=>{const o=document.getSelection();n.current=o.rangeCount===0?null:o.getRangeAt(0)},handleClick:o=>{if(o.preventDefault(),t(e),n.current){const s=document.getSelection();s.removeAllRanges(),s.addRange(n.current),n.current=null}}}};function $W({buttons:t=[],selectedName:e,onClick:n,hasTooltip:i=!0}){return k.jsx("div",{className:"flex",children:k.jsx("ul",{className:"flex items-center justify-evenly rounded-lg bg-grey-100 font-sans text-md font-normal text-white dark:bg-grey-900",role:"menubar",children:t.map(({label:r,name:o,Icon:s,dataTestId:a,ariaLabel:l})=>k.jsx(F5e,{ariaLabel:l,dataTestId:a,hasTooltip:i,Icon:s,label:r,name:o,selectedName:e,onClick:n},`${o}-${r}`))})})}function F5e({dataTestId:t,onClick:e,label:n,ariaLabel:i,name:r,selectedName:o,Icon:s,hasTooltip:a}){const l=r===o,{handleMousedown:u,handleClick:f}=TW(e,r);return k.jsx("li",{className:"mb-0",children:k.jsxs("button",{"aria-checked":l,"aria-label":i||n,className:`group relative flex h-7 w-8 cursor-pointer items-center justify-center rounded-lg text-black dark:text-white ${l?"border border-grey-300 bg-white shadow-xs dark:border-grey-800 dark:bg-grey-950":""} ${s?"":"text-[1.3rem] font-bold"}`,"data-testid":t,role:"menuitemradio",type:"button",onClick:f,onMouseDown:u,children:[s?k.jsx(s,{className:"size-4 stroke-2"}):n,s&&n&&a&&k.jsx(Cu,{label:n})]})})}$W.propTypes={selectedName:P.oneOf(["regular","wide","full","split","center","left","small","medium","large","grid","list","minimal","immersive"]).isRequired,hasTooltip:P.bool,onClick:P.func.isRequired,buttons:P.arrayOf(P.shape({label:P.string,name:P.string.isRequired,Icon:P.elementType,dataTestId:P.string,ariaLabel:P.string}))};const z5e=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M17.041 12.025 6.91 22.156 1 23l.844-5.91L11.975 6.96m0-5.067 10.132 10.132M19.8 9l2.206-2.207a3.396 3.396 0 0 0 0-4.8 3.397 3.397 0 0 0-4.8 0L15 4.2"})),C6=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M22.883 19.771a.786.786 0 0 1-.668.372H1.785a.786.786 0 0 1-.666-1.202l3.93-6.286a.785.785 0 0 1 1.269-.086l3.292 3.95 6.476-8.633a.81.81 0 0 1 .7-.315.786.786 0 0 1 .628.431l5.5 11a.785.785 0 0 1-.03.769Z",clipRule:"evenodd"}),J.createElement("circle",{cx:8,cy:6,r:3,fill:"currentColor"}));function Ca({color:t="accent",dataTestId:e,href:n,size:i="small",width:r="regular",rounded:o=!0,shrink:s=!1,value:a="",placeholder:l="Add button text",type:u="button",disabled:f=!1,target:d,...h}){const g=n?"a":"button",m={type:n?null:u,href:n||null,rel:d==="_blank"?"noopener noreferrer":null,target:d||null,...h};return k.jsx(g,{className:nt("not-kg-prose inline-block cursor-pointer text-center font-sans font-medium",!s&&"shrink-0",r==="regular"||"w-full",o&&"rounded-md",a?"opacity-100":"opacity-50",t==="white"&&"bg-white text-black",t==="grey"&&"bg-grey-200 text-black",t==="black"&&"bg-black text-white",t==="accent"&&"bg-accent text-white",!["white","grey","black","accent"].includes(t)&&"bg-green text-white"),"data-testid":`${e}`,disabled:f,...m,children:k.jsx("span",{className:nt("block",i==="small"&&"px-5 py-[1rem] text-md leading-[1.4]",i==="medium"&&"px-5 py-2 text-[1.6rem]",i==="large"&&"px-6 py-3 text-lg leading-[1.35]"),"data-testid":`${e}-span`,children:a||l})})}Ca.propTypes={color:P.oneOf(["white","grey","black","accent"]),size:P.oneOf(["small","medium","large"]),width:P.oneOf(["regular","full"]),rounded:P.bool,value:P.string,placeholder:P.string,href:P.string,target:P.string,disabled:P.bool};function wh(){return(wh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function Ky(t,e){if(t==null)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}function a0(t){var e=T.useRef(t),n=T.useRef(function(i){e.current&&e.current(i)});return e.current=t,n.current}var l0=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=1),t>n?n:t<e?e:t},u0=function(t){return"touches"in t},E6=function(t){return t&&t.ownerDocument.defaultView||self},MW=function(t,e,n){var i=t.getBoundingClientRect(),r=u0(e)?function(o,s){for(var a=0;a<o.length;a++)if(o[a].identifier===s)return o[a];return o[0]}(e.touches,n):e;return{left:l0((r.pageX-(i.left+E6(t).pageXOffset))/i.width),top:l0((r.pageY-(i.top+E6(t).pageYOffset))/i.height)}},NW=function(t){!u0(t)&&t.preventDefault()},AW=T.memo(function(t){var e=t.onMove,n=t.onKey,i=Ky(t,["onMove","onKey"]),r=T.useRef(null),o=a0(e),s=a0(n),a=T.useRef(null),l=T.useRef(!1),u=T.useMemo(function(){var g=function(x){NW(x),(u0(x)?x.touches.length>0:x.buttons>0)&&r.current?o(MW(r.current,x,a.current)):y(!1)},m=function(){return y(!1)};function y(x){var _=l.current,S=E6(r.current),C=x?S.addEventListener:S.removeEventListener;C(_?"touchmove":"mousemove",g),C(_?"touchend":"mouseup",m)}return[function(x){var _=x.nativeEvent,S=r.current;if(S&&(NW(_),!function(E,N){return N&&!u0(E)}(_,l.current)&&S)){if(u0(_)){l.current=!0;var C=_.changedTouches||[];C.length&&(a.current=C[0].identifier)}S.focus(),o(MW(S,_,a.current)),y(!0)}},function(x){var _=x.which||x.keyCode;_<37||_>40||(x.preventDefault(),s({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},y]},[s,o]),f=u[0],d=u[1],h=u[2];return T.useEffect(function(){return h},[h]),T.createElement("div",wh({},i,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:r,onKeyDown:d,tabIndex:0,role:"slider"}))}),T6=function(t){return t.filter(Boolean).join(" ")},PW=function(t){var e=t.color,n=t.left,i=t.top,r=i===void 0?.5:i,o=T6(["react-colorful__pointer",t.className]);return T.createElement("div",{className:o,style:{top:100*r+"%",left:100*n+"%"}},T.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},sr=function(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=Math.pow(10,e)),Math.round(n*t)/n},B5e=function(t){return Z5e($6(t))},$6=function(t){return t[0]==="#"&&(t=t.substring(1)),t.length<6?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?sr(parseInt(t[3]+t[3],16)/255,2):1}:{r:parseInt(t.substring(0,2),16),g:parseInt(t.substring(2,4),16),b:parseInt(t.substring(4,6),16),a:t.length===8?sr(parseInt(t.substring(6,8),16)/255,2):1}},W5e=function(t){return U5e(Q5e(t))},H5e=function(t){var e=t.s,n=t.v,i=t.a,r=(200-e)*n/100;return{h:sr(t.h),s:sr(r>0&&r<200?e*n/100/(r<=100?r:200-r)*100:0),l:sr(r/2),a:sr(i,2)}},M6=function(t){var e=H5e(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Q5e=function(t){var e=t.h,n=t.s,i=t.v,r=t.a;e=e/360*6,n/=100,i/=100;var o=Math.floor(e),s=i*(1-n),a=i*(1-(e-o)*n),l=i*(1-(1-e+o)*n),u=o%6;return{r:sr(255*[i,a,s,s,l,i][u]),g:sr(255*[l,i,i,a,s,s][u]),b:sr(255*[s,s,l,i,i,a][u]),a:sr(r,2)}},Jy=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},U5e=function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=r<1?Jy(sr(255*r)):"";return"#"+Jy(e)+Jy(n)+Jy(i)+o},Z5e=function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=Math.max(e,n,i),s=o-Math.min(e,n,i),a=s?o===e?(n-i)/s:o===n?2+(i-e)/s:4+(e-n)/s:0;return{h:sr(60*(a<0?a+6:a)),s:sr(o?s/o*100:0),v:sr(o/255*100),a:r}},q5e=T.memo(function(t){var e=t.hue,n=t.onChange,i=T6(["react-colorful__hue",t.className]);return T.createElement("div",{className:i},T.createElement(AW,{onMove:function(r){n({h:360*r.left})},onKey:function(r){n({h:l0(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":sr(e),"aria-valuemax":"360","aria-valuemin":"0"},T.createElement(PW,{className:"react-colorful__hue-pointer",left:e/360,color:M6({h:e,s:100,v:100,a:1})})))}),Y5e=T.memo(function(t){var e=t.hsva,n=t.onChange,i={backgroundColor:M6({h:e.h,s:100,v:100,a:1})};return T.createElement("div",{className:"react-colorful__saturation",style:i},T.createElement(AW,{onMove:function(r){n({s:100*r.left,v:100-100*r.top})},onKey:function(r){n({s:l0(e.s+100*r.left,0,100),v:l0(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+sr(e.s)+"%, Brightness "+sr(e.v)+"%"},T.createElement(PW,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:M6(e)})))}),DW=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0},V5e=function(t,e){return t.toLowerCase()===e.toLowerCase()||DW($6(t),$6(e))};function X5e(t,e,n){var i=a0(n),r=T.useState(function(){return t.toHsva(e)}),o=r[0],s=r[1],a=T.useRef({color:e,hsva:o});T.useEffect(function(){if(!t.equal(e,a.current.color)){var u=t.toHsva(e);a.current={hsva:u,color:e},s(u)}},[e,t]),T.useEffect(function(){var u;DW(o,a.current.hsva)||t.equal(u=t.fromHsva(o),a.current.color)||(a.current={hsva:o,color:u},i(u))},[o,t,i]);var l=T.useCallback(function(u){s(function(f){return Object.assign({},f,u)})},[]);return[o,l]}var G5e=typeof window<"u"?T.useLayoutEffect:T.useEffect,K5e=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},IW=new Map,J5e=function(t){G5e(function(){var e=t.current?t.current.ownerDocument:document;if(e!==void 0&&!IW.has(e)){var n=e.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,IW.set(e,n);var i=K5e();i&&n.setAttribute("nonce",i),e.head.appendChild(n)}},[])},eEe=function(t){var e=t.className,n=t.colorModel,i=t.color,r=i===void 0?n.defaultColor:i,o=t.onChange,s=Ky(t,["className","colorModel","color","onChange"]),a=T.useRef(null);J5e(a);var l=X5e(n,r,o),u=l[0],f=l[1],d=T6(["react-colorful",e]);return T.createElement("div",wh({},s,{ref:a,className:d}),T.createElement(Y5e,{hsva:u,onChange:f}),T.createElement(q5e,{hue:u.h,onChange:f,className:"react-colorful__last-control"}))},tEe={defaultColor:"000",toHsva:B5e,fromHsva:function(t){return W5e({h:t.h,s:t.s,v:t.v,a:1})},equal:V5e},nEe=function(t){return T.createElement(eEe,wh({},t,{colorModel:tEe}))},iEe=/^#?([0-9A-F]{3,8})$/i,rEe=function(t){var e=t.color,n=e===void 0?"":e,i=t.onChange,r=t.onBlur,o=t.escape,s=t.validate,a=t.format,l=t.process,u=Ky(t,["color","onChange","onBlur","escape","validate","format","process"]),f=T.useState(function(){return o(n)}),d=f[0],h=f[1],g=a0(i),m=a0(r),y=T.useCallback(function(_){var S=o(_.target.value);h(S),s(S)&&g(l?l(S):S)},[o,l,s,g]),x=T.useCallback(function(_){s(_.target.value)||h(o(n)),m(_)},[n,o,s,m]);return T.useEffect(function(){h(o(n))},[n,o]),T.createElement("input",wh({},u,{value:a?a(d):d,spellCheck:"false",onChange:y,onBlur:x}))},LW=function(t){return"#"+t},oEe=function(t){var e=t.prefixed,n=t.alpha,i=Ky(t,["prefixed","alpha"]),r=T.useCallback(function(s){return s.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),o=T.useCallback(function(s){return function(a,l){var u=iEe.exec(a),f=u?u[1].length:0;return f===3||f===6||!!l&&f===4||!!l&&f===8}(s,n)},[n]);return T.createElement(rEe,wh({},i,{escape:r,format:e?LW:void 0,process:LW,validate:o}))};function $u(){const t=document.body.querySelector(".koenig-lexical");return t&&getComputedStyle(t).getPropertyValue("--kg-accent-color")||"#ff0095"}function RW(t,e,n){T.useEffect(()=>{if(!t)return;const i=r=>{e.current&&!e.current.contains(r.target)&&n()};return window.addEventListener("mousedown",i,{capture:!0}),()=>window.removeEventListener("mousedown",i,{capture:!0})},[t,n,e])}function sEe({value:t,eyedropper:e,hasTransparentOption:n,onChange:i,children:r}){const o=T.useRef(null),s=T.useCallback(g=>{var x,_,S;g.stopPropagation();const m=(x=o.current)==null?void 0:x.querySelector("input");g.target!==m&&((S=(_=o.current)==null?void 0:_.querySelector("input"))==null||S.focus(),g.preventDefault())},[]),a=T.useRef(!1),l=T.useCallback(()=>{var g,m;a.current=!1,(m=(g=o.current)==null?void 0:g.querySelector("input"))==null||m.focus(),document.removeEventListener("mouseup",l),document.removeEventListener("touchend",l)},[]),u=T.useCallback(()=>{a.current=!0,document.addEventListener("mouseup",l),document.addEventListener("touchend",l)},[l]),f=T.useCallback(g=>{g.preventDefault(),a.current=!0,document.body.style.setProperty("pointer-events","none"),new window.EyeDropper().open().then(y=>i(y.sRGBHex)).finally(()=>{var y,x;a.current=!1,document.body.style.removeProperty("pointer-events"),(x=(y=o.current)==null?void 0:y.querySelector("input"))==null||x.focus()})},[i]);T.useEffect(()=>{var g,m;(m=(g=o.current)==null?void 0:g.querySelector("input"))==null||m.focus()},[]);let d=t;t==="accent"?d=$u():t==="transparent"&&(d="");const h=T.useCallback(g=>{var m,y;(y=(m=o.current)==null?void 0:m.querySelector("input"))==null||y.focus()},[]);return k.jsxs("div",{onMouseDown:s,onTouchStart:s,children:[k.jsx(nEe,{color:d||"#ffffff",onChange:i,onMouseDown:u,onTouchStart:u}),k.jsxs("div",{className:"mt-3 flex gap-2",children:[k.jsxs("div",{ref:o,className:"relative flex w-full items-center rounded-lg border border-grey-100 bg-grey-100 px-3 py-1.5 font-sans text-sm font-normal text-grey-900 transition-colors placeholder:text-grey-500 focus-within:border-green focus-within:bg-white focus-within:shadow-[0_0_0_2px_rgba(48,207,67,.25)] focus-within:outline-none dark:border-transparent dark:bg-grey-900 dark:text-white dark:selection:bg-grey-800 dark:placeholder:text-grey-700 dark:focus-within:border-green dark:hover:bg-grey-925 dark:focus:bg-grey-925",onClick:h,children:[k.jsx("span",{className:"ml-1 mr-2 text-grey-700",children:"#"}),k.jsx(oEe,{"aria-label":"Color value",className:"z-50 w-full bg-transparent",color:d,onChange:i}),e&&!!window.EyeDropper&&k.jsx("button",{className:"absolute inset-y-0 right-3 z-50 my-auto size-4 p-[1px]",type:"button",onClick:f,children:k.jsx(z5e,{className:"size-full stroke-2"})})]}),n&&k.jsx(Ca,{color:"grey",value:"Clear",onClick:()=>i("transparent")}),r]})]})}function aEe({hex:t,accent:e,transparent:n,title:i,isSelected:r,onSelect:o}){const s=e?$u():t,a=T.useRef(null),l=u=>{u.preventDefault(),o(e?"accent":n?"transparent":t)};return k.jsxs("button",{ref:a,className:nt("group relative flex size-5 shrink-0 items-center rounded-full border border-grey-250 dark:border-grey-800",r&&"outline outline-2 outline-green"),style:{backgroundColor:s},title:i,type:"button",onClick:l,children:[n&&k.jsx("div",{className:"absolute left-0 top-0 z-10 w-[136%] origin-left rotate-45 border-b border-b-red"}),k.jsx(Cu,{label:i})]})}function lEe({value:t,swatches:e,onSwatchChange:n,onTogglePicker:i,onChange:r,isExpanded:o,eyedropper:s,hasTransparentOption:a,children:l}){var S,C,E,N;const[u,f]=T.useState(!1),[d,h]=T.useState(!1),g=T.useRef(null);RW(u,g,()=>f(!1));const m=T.useCallback(M=>{M.stopPropagation(),M.preventDefault()},[]);let y=t,x=(S=e.find(M=>M.hex===t))==null?void 0:S.title;t==="accent"?(y=$u(),x=(C=e.find(M=>M.accent))==null?void 0:C.title):t==="image"?(y="transparent",x=(E=e.find(M=>M.image))==null?void 0:E.title):t==="transparent"&&(y="white",x=(N=e.find(M=>M.transparent))==null?void 0:N.title),o&&(x=null);const _=M=>{r(M)};return k.jsxs("div",{className:"relative","data-testid":"color-selector-button",children:[k.jsxs("button",{className:`relative size-6 cursor-pointer rounded-full ${t?"p-[2px]":"border border-grey-200 dark:border-grey-800"}`,type:"button",onClick:()=>{f(!u),h(!1)},children:[t&&k.jsx("div",{className:"absolute inset-0 rounded-full bg-clip-content p-[3px]",style:{background:"conic-gradient(hsl(360,100%,50%),hsl(315,100%,50%),hsl(270,100%,50%),hsl(225,100%,50%),hsl(180,100%,50%),hsl(135,100%,50%),hsl(90,100%,50%),hsl(45,100%,50%),hsl(0,100%,50%))",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude"}}),k.jsxs("span",{className:nt("block size-full rounded-full border-2 border-white dark:border-grey-950",t==="image"&&"flex items-center justify-center"),style:{backgroundColor:y},children:[t==="image"&&k.jsx(C6,{className:"size-[1.4rem]"}),t==="transparent"&&k.jsx("div",{className:"absolute left-[3px] top-[3px] z-10 w-[136%] origin-left rotate-45 border-b border-b-red"})]})]}),u&&k.jsxs("div",{ref:g,className:nt("absolute -right-3 bottom-full z-10 mb-2 flex flex-col gap-3 rounded-lg bg-white p-3 shadow transition-[width] duration-200 ease-in-out dark:bg-grey-900",(o||d)&&"min-w-[296px]"),onClick:m,onMouseDown:m,onTouchStart:m,children:[!o&&l,o&&k.jsx(sEe,{eyedropper:s,hasTransparentOption:a,value:t,onChange:_}),d&&l,k.jsxs("div",{className:"flex justify-end gap-1",children:[k.jsx("div",{className:"flex items-center gap-1",children:e.map(({customContent:M,...I})=>M?k.jsx(T.Fragment,{children:M},I.title):k.jsx(aEe,{isSelected:x===I.title,onSelect:W=>{n(W)},...I},I.title))}),k.jsxs("button",{"aria-label":"Pick color",className:`group relative size-6 rounded-full ${x?"border border-grey-200 dark:border-grey-800":"p-[2px]"}`,"data-testid":"color-picker-toggle",type:"button",onClick:()=>{h(!1),i(!o)},children:[x?k.jsx("div",{className:"absolute inset-0 rounded-full bg-[conic-gradient(hsl(360,100%,50%),hsl(315,100%,50%),hsl(270,100%,50%),hsl(225,100%,50%),hsl(180,100%,50%),hsl(135,100%,50%),hsl(90,100%,50%),hsl(45,100%,50%),hsl(0,100%,50%))]"}):k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"absolute inset-0 rounded-full bg-clip-content p-[3px]",style:{background:"conic-gradient(hsl(360,100%,50%),hsl(315,100%,50%),hsl(270,100%,50%),hsl(225,100%,50%),hsl(180,100%,50%),hsl(135,100%,50%),hsl(90,100%,50%),hsl(45,100%,50%),hsl(0,100%,50%))",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude"}}),k.jsx("span",{className:"block size-full rounded-full border-2 border-white dark:border-grey-950",style:{backgroundColor:t},children:t==="transparent"&&k.jsx("div",{className:"absolute left-[3px] top-[3px] z-10 w-[136%] origin-left rotate-45 border-b border-b-red"})})]}),k.jsx(Cu,{label:"Pick color"})]})]})]})]})}function uEe({buttons:t=[],selectedName:e,onClick:n}){const[i,r]=T.useState(!1),o=T.useRef(null),s=t.find(a=>a.name===e);return RW(i,o,()=>r(!1)),k.jsxs("div",{ref:o,className:"relative",children:[k.jsxs("button",{className:`relative size-6 cursor-pointer rounded-full ${e?"p-[2px]":"border border-grey-200 dark:border-grey-800"}`,"data-testid":"color-options-button",type:"button",onClick:()=>r(!i),children:[e&&k.jsx("div",{className:"absolute inset-0 rounded-full bg-clip-content p-[3px]",style:{background:"conic-gradient(hsl(360,100%,50%),hsl(315,100%,50%),hsl(270,100%,50%),hsl(225,100%,50%),hsl(180,100%,50%),hsl(135,100%,50%),hsl(90,100%,50%),hsl(45,100%,50%),hsl(0,100%,50%))",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"exclude"}}),k.jsx("span",{className:`${(s==null?void 0:s.color)||""} block size-full rounded-full border-2 border-white dark:border-grey-950`})]}),i&&k.jsx("div",{className:"absolute -right-3 bottom-full z-10 mb-2 rounded-lg bg-white px-3 py-2 shadow dark:bg-grey-900","data-testid":"color-options-popover",children:k.jsx("div",{className:"flex",children:k.jsx("ul",{className:"flex w-full items-center justify-between rounded-md font-sans text-md font-normal text-white",children:t.map(({label:a,name:l,color:u})=>l!=="image"?k.jsx(cEe,{color:u,"data-testid":`color-options-${l}-button`,label:a,name:l,selectedName:e,onClick:f=>{n(f),r(!1)}},`${l}-${a}`):k.jsx("li",{className:`mb-0 flex size-[3rem] cursor-pointer items-center justify-center rounded-full border-2 ${e===l?"border-green":"border-transparent"}`,"data-testid":"background-image-color-button",type:"button",onClick:()=>n(l),children:k.jsx("span",{className:"border-1 flex size-6 items-center justify-center rounded-full border border-black/5",children:k.jsx(rv,{className:"size-3 stroke-grey-700 stroke-2 dark:stroke-grey-500 dark:group-hover:stroke-grey-100"})})},"background-image"))})})})]})}function cEe({onClick:t,label:e,name:n,color:i,selectedName:r}){const o=n===r,{handleMousedown:s,handleClick:a}=TW(t,n);return k.jsx("li",{className:"mb-0",children:k.jsxs("button",{"aria-label":e,className:`group relative flex size-6 cursor-pointer items-center justify-center rounded-full border-2 ${o?"border-green":"border-transparent"}`,"data-testid":`color-picker-${n}`,type:"button",onClick:a,onMouseDown:s,children:[k.jsx("span",{className:`${i} size-[1.8rem] rounded-full border`}),k.jsx(Cu,{label:e})]})})}const jW=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:26,height:17,viewBox:"0 0 26 17",...t},J.createElement("path",{fill:"none",fillRule:"evenodd",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m1.469 2.5 11.5 12.143L24.469 2.5"}));function fEe({item:t,selected:e,onChange:n}){let i="";e&&(i="bg-grey-100 dark:bg-grey-950");const r=(o,s)=>{o.preventDefault(),n(s)};return k.jsx("li",{className:`${i} m-0 hover:bg-grey-100 dark:hover:bg-grey-950`,children:k.jsx("button",{className:"size-full cursor-pointer px-3 py-[7px] text-left dark:text-white","data-test-value":t.name,type:"button",onMouseDownCapture:o=>r(o,t.name),children:t.label})},t.name)}function dEe({value:t,menu:e,onChange:n,dataTestId:i}){const[r,o]=T.useState(!1),s=m=>{o(!r),r||m.target.focus()},a=m=>{m.preventDefault(),m.stopPropagation()},l=()=>{o(!1)},u=m=>{o(!1),n(m)},f=(m,y)=>k.jsx(fEe,{item:m,selected:y,onChange:u},m.name),d=e.find(m=>m.name===t),h=(d==null?void 0:d.label)??"",g=r?"z-10":"z-0";return k.jsxs("div",{className:`relative ${g} font-sans text-sm font-normal`,"data-testid":i,children:[k.jsxs("button",{className:"relative h-9 w-full cursor-pointer rounded-lg border border-grey-150 bg-grey-150 px-3 py-1 pr-5 text-left font-sans font-normal leading-[1.5] text-grey-900 hover:border-grey-100 hover:bg-grey-100 focus-visible:outline-none dark:border-grey-900 dark:bg-grey-900 dark:text-white dark:placeholder:text-grey-800 md:h-[38px] md:py-2","data-testid":`${i}-value`,type:"button",onBlur:l,onClick:s,onMouseDownCapture:a,children:[h,k.jsx(jW,{className:`absolute right-3 top-[1.5rem] size-2 text-grey-900 ${r&&"rotate-180"}`})]}),r&&k.jsx(n6,{children:k.jsx(r6,{defaultSelected:d,getItem:f,items:e,onSelect:m=>u(m.name)})})]})}function ew({onFileChange:t,fileInputRef:e,mimeTypes:n=["image/*"],multiple:i=!1,disabled:r}){const o=n.join(",");return k.jsx("form",{onChange:t,children:k.jsx("input",{ref:e,accept:o,disabled:r,hidden:!0,multiple:i,name:"image-input",type:"file",onClick:s=>s.stopPropagation()})})}function pl({className:t,onClick:e,label:n,dataTestId:i,Icon:r}){return k.jsxs("button",{"aria-label":n,className:nt("group pointer-events-auto relative flex h-8 w-9 cursor-pointer items-center justify-center rounded-md bg-white/90 text-grey-900 transition-all hover:bg-white hover:text-black",t),"data-testid":i,type:"button",onClick:e,children:[k.jsx(r,{className:"size-4 stroke-2"}),n&&k.jsx(Cu,{label:n})]})}const hEe=t=>J.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none",...t},J.createElement("path",{d:"M11.25 17.25a6 6 0 1 0 12 0 6 6 0 1 0-12 0Zm6 3v-6m0 0L15 16.5m2.25-2.25 2.25 2.25"}),J.createElement("path",{d:"M8.25 20.25h-6a1.5 1.5 0 0 1-1.5-1.5V2.25a1.5 1.5 0 0 1 1.5-1.5h10.629a1.5 1.5 0 0 1 1.06.439l2.872 2.872a1.5 1.5 0 0 1 .439 1.06V8.25"}),J.createElement("path",{d:"M3.75 12.75a2.25 1.5 0 1 0 4.5 0 2.25 1.5 0 1 0-4.5 0Z"}),J.createElement("path",{d:"m8.25 12.75-.295-5.929 1.062-.113A2.685 2.685 0 0 1 11.6 7.99"})),FW=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{d:"M12.001 15.75v-12m4.5 4.5-4.5-4.5-4.5 4.5m15.75 7.5v1.5a3 3 0 0 1-3 3h-16.5a3 3 0 0 1-3-3v-1.5",style:{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px"}})),pEe={image:c_,gallery:G8,video:t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},J.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},J.createElement("rect",{x:2,y:18,width:31,height:26,rx:4}),J.createElement("circle",{cx:8.5,cy:7.5,r:5.5}),J.createElement("circle",{cx:25.5,cy:9.5,r:3.5}),J.createElement("path",{"data-cap":"butt",d:"m33 27 13-6v20l-13-6"}))),audio:hEe,file:FW,product:t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},J.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},J.createElement("path",{d:"M4 10h40"}),J.createElement("path",{d:"M44 46H4V10l8-8h24l8 8z"}),J.createElement("path",{d:"M34 20c0 5.5-4.5 10-10 10s-10-4.5-10-10"})))},N6=({text:t,type:e})=>k.jsx("span",{className:nt("text-center font-sans text-sm font-semibold text-grey-800 transition-all group-hover:text-grey-800",e==="button"&&"px-3 py-1"),"data-kg-card-drag-text":!0,children:t}),gEe=({desc:t,hasErrors:e})=>e?null:k.jsx("p",{className:"!font-sans !text-[1.3rem] !font-medium text-grey-900",children:t}),mEe=({desc:t,hasErrors:e,icon:n,size:i})=>{if(i==="xsmall"&&e)return null;const r=pEe[n],o=nt("shrink-0 opacity-80 transition-all ease-linear hover:scale-105 group-hover:opacity-100",i==="large"&&"size-20 text-grey",i==="small"&&"size-14 text-grey",i==="xsmall"&&"size-5 text-grey-700",!["large","small","xsmall"].includes(i)&&"size-16 text-grey",i==="xsmall"&&t&&"mr-3"),s=nt("flex min-w-[auto] !font-sans !text-sm !font-normal text-grey-700 opacity-80 transition-all group-hover:opacity-100",i==="xsmall"&&"!mt-0",i!=="xsmall"&&"!mt-4");return k.jsxs(k.Fragment,{children:[k.jsx(r,{className:o}),k.jsx("p",{className:s,children:t})]})};function Mu({desc:t,icon:e,filePicker:n,size:i,type:r,borderStyle:o="squared",isDraggedOver:s,errors:a=[],placeholderRef:l,dataTestId:u="media-placeholder",errorDataTestId:f="media-placeholder-errors",multiple:d=!1,...h}){const g=nt("relative flex h-full items-center justify-center",r==="button"?"rounded-lg bg-grey-100":"border bg-grey-50",i==="xsmall"&&r!=="button"&&"before:pb-[12.5%] dark:bg-grey-900",i!=="xsmall"&&r!=="button"&&"before:pb-[62.5%] dark:bg-grey-950",o==="rounded"&&r!=="button"&&"rounded-lg border-grey/20 dark:border-transparent",o!=="rounded"&&r!=="button"&&"border-grey/20 dark:border-grey/10"),m=nt("group flex cursor-pointer select-none items-center justify-center",r==="button"&&"px-3 py-1",r!=="button"&&(i==="xsmall"?"p-4":"flex-col p-20")),y=nt("font-sans text-sm font-semibold text-red",i!=="xsmall"&&"mt-3 max-w-[65%]"),x=a.map(_=>k.jsx("span",{className:y,"data-testid":f,children:_.message},_.message));return k.jsx("div",{ref:l,className:"not-kg-prose size-full",...h,"data-testid":u,children:k.jsx("div",{className:g,children:s?k.jsx(N6,{text:`Drop ${d?"'em":"it"} like it's hot 🔥`,type:r}):k.jsxs("button",{className:m,name:"placeholder-button",type:"button",onClick:n,children:[r==="button"?k.jsx(gEe,{desc:t,hasErrors:a.length>0}):k.jsx(mEe,{desc:t,hasErrors:a.length>0,icon:e,size:i}),x]})})})}Mu.propTypes={icon:P.oneOf(["image","gallery","video","audio","file","product"]),desc:P.string,size:P.oneOf(["xsmall","small","medium","large"]),type:P.oneOf(["image","button"]),borderStyle:P.oneOf(["squared","rounded"])};function js({style:t,fullWidth:e,bgStyle:n}){return k.jsx("div",{className:`rounded-full bg-grey-200 dark:bg-black ${e?"w-full":"mx-auto w-3/5"} ${n==="transparent"?"bg-white/30":"bg-grey-200"}`,"data-testid":"progress-bar",children:k.jsx("div",{className:"rounded-full bg-green py-1 text-center text-2xs leading-none text-white",style:t})})}js.propTypes={style:P.object,fullWidth:P.bool};function Wi({fileInputRef:t}){var e;(e=t.current)==null||e.click()}function tw({className:t,imgClassName:e,src:n,alt:i,desc:r,icon:o,size:s,type:a,borderStyle:l="squared",backgroundSize:u="cover",mimeTypes:f,onFileChange:d,dragHandler:h,isEditing:g=!0,isLoading:m,isPinturaEnabled:y,openImageEditor:x,progress:_,errors:S,onRemoveMedia:C=()=>{},additionalActions:E,setFileInputRef:N}){const M=T.useRef(null),I=R=>{M.current=R,N==null||N(R)},W={width:`${_==null?void 0:_.toFixed(0)}%`},B=R=>{R.stopPropagation(),C()};return!m&&!n?k.jsxs("div",{className:t,children:[k.jsx(Mu,{borderStyle:l,dataTestId:"media-upload-placeholder",desc:g?r:"",errorDataTestId:"media-upload-errors",errors:S,filePicker:()=>Wi({fileInputRef:M}),icon:o,isDraggedOver:h==null?void 0:h.isDraggedOver,placeholderRef:h==null?void 0:h.setRef,size:s,type:a}),k.jsx(ew,{fileInputRef:I,filePicker:()=>Wi({fileInputRef:M}),mimeTypes:f,onFileChange:d})]}):k.jsxs("div",{className:nt("group/image relative flex items-center justify-center",m?"min-w-[6.8rem]":"min-w-[5.2rem]",l==="rounded"&&"rounded",t),"data-testid":"media-upload-filled",children:[n&&k.jsxs(k.Fragment,{children:[k.jsx("img",{alt:i,className:nt("mx-auto h-full w-auto min-w-[5.2rem]",l==="rounded"&&"rounded-lg",u==="cover"?"object-cover":"object-contain",e),src:n}),k.jsx("div",{className:nt("absolute inset-0 bg-gradient-to-t from-black/0 via-black/5 to-black/30 opacity-0 transition-all group-hover/image:opacity-100",l==="rounded"&&"rounded-lg")})]}),!m&&k.jsxs("div",{className:"absolute right-1 top-1 flex space-x-1 opacity-0 transition-all group-hover/image:opacity-100",children:[E,y&&k.jsx(pl,{Icon:zy,label:"Edit",onClick:()=>x({image:n,handleSave:R=>{d({target:{files:[R]}})}})}),k.jsx(pl,{dataTestId:"media-upload-remove",Icon:Kc,label:"Delete",onClick:B})]}),m&&k.jsx("div",{className:nt("absolute inset-0 flex min-w-full items-center justify-center overflow-hidden bg-grey-100",l==="rounded"&&"rounded-lg"),"data-testid":"custom-thumbnail-progress",children:k.jsx(js,{style:W})})]})}tw.propTypes={additionalActions:P.node,alt:P.string,backgroundSize:P.oneOf(["cover","contain"]),borderStyle:P.oneOf(["squared","rounded"]),className:P.string,desc:P.string,dragHandler:P.shape({isDraggedOver:P.bool,setRef:P.func}),errors:P.arrayOf(P.shape({message:P.string})),icon:P.string,imgClassName:P.string,isEditing:P.bool,isLoading:P.bool,isPinturaEnabled:P.bool,mimeTypes:P.arrayOf(P.string),onFileChange:P.func,onRemoveMedia:P.func,openImageEditor:P.func,progress:P.number,setFileInputRef:P.func,size:P.string,src:P.string,type:P.oneOf(["image","button"])};function vEe({item:t,selected:e,onChange:n}){let i="";e&&(i="bg-grey-100 dark:bg-grey-900");const r=o=>{o.preventDefault(),n(t)};return k.jsx("li",{className:`${i} m-0 hover:bg-grey-100 dark:hover:bg-grey-900`,children:k.jsx("button",{className:"size-full cursor-pointer px-3 py-[7px] text-left dark:text-white","data-testid":"multiselect-dropdown-item",type:"button",onMouseDownCapture:r,children:t.label})},t.name)}function bEe({placeholder:t="",items:e=[],availableItems:n=[],onChange:i,dataTestId:r,allowAdd:o=!0}){const[s,a]=T.useState(!1),[l,u]=T.useState(""),[f,d]=T.useState(!1),h=T.useRef(null),g=B=>{a(!s),s||B.target.focus()},m=()=>{a(!1),u(""),d(!1)},y=()=>{d(!0),g()},x=B=>{!B.name||e!=null&&e.includes(B.name)||(i(e.concat(B.name)),u(""))},_=(B,Z)=>{B.preventDefault(),B.stopPropagation(),i(e.filter(R=>R!==Z.name))},S=B=>{B.key==="Backspace"&&!l&&i(e.slice(0,-1))},C=(B,Z)=>k.jsx(vEe,{item:B,selected:Z,onChange:x},B.name),E=e.map(B=>({name:B,label:B})),M=n.map(B=>({name:B,label:B})).filter(B=>!E.some(Z=>Z.name===B.name)).filter(B=>B.name.toLocaleLowerCase().includes(l.toLocaleLowerCase()));let I="";const W=M[0];return l&&o&&(e.find(Z=>Z.toLocaleLowerCase()===l.toLocaleLowerCase())||n.find(Z=>Z.toLocaleLowerCase()===l.toLocaleLowerCase())||M.unshift({name:l,label:k.jsxs(k.Fragment,{children:["Add ",k.jsxs("strong",{children:['"',l,'"...']})]})})),k.jsxs("div",{className:"relative z-0 font-sans text-sm font-normal","data-testid":r,children:[k.jsxs("div",{className:`relative flex w-full cursor-text flex-wrap gap-1 rounded-lg border ${f?"border-green bg-white shadow-[0_0_0_2px_rgba(48,207,67,.25)] dark:bg-grey-925":"border-grey-100 bg-grey-100 dark:border-transparent dark:bg-grey-900 dark:hover:bg-grey-925"} px-[10px] py-2 pr-5 font-sans text-sm font-normal leading-[1.5] text-grey-900 placeholder:text-grey-500 focus-visible:outline-none dark:text-white dark:selection:bg-grey-800 dark:placeholder:text-grey-700`,type:"button",onClick:()=>h.current.focus(),children:[E.map(B=>k.jsxs("button",{className:"flex cursor-pointer items-center gap-1.5 rounded bg-black py-px pl-2 pr-1 leading-[1.5] text-white dark:bg-grey-100 dark:text-grey-900","data-testid":"multiselect-dropdown-selected",type:"button",onMouseDownCapture:Z=>_(Z,B),children:[B.label,k.jsx(vh,{className:"mt-px size-[1rem] stroke-[3]"})]},B.name)),k.jsx("div",{className:"flex-1",children:k.jsx("input",{ref:h,className:"size-full min-w-[5rem] appearance-none bg-transparent px-0 leading-none outline-none",placeholder:E.length===0?t:"",value:l,onBlur:m,onChange:B=>u(B.target.value),onFocus:y,onKeyDown:S})}),k.jsx(jW,{className:`absolute right-3 top-4 size-2 text-grey-900 ${s&&"rotate-180"}`})]}),s&&!!M.length&&k.jsxs(n6,{children:[I,k.jsx(r6,{defaultSelected:W,getItem:C,items:M,onSelect:x})]})]})}function A6(t,e){return A6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,r){return i.__proto__=r,i},A6(t,e)}function kEe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,A6(t,e)}P.number,P.number,P.number,P.func;const zW=({tabs:t,defaultTab:e,tabContent:n})=>{const[i,r]=T.useState(e||t[0].id),o=s=>{r(s)};return k.jsxs(k.Fragment,{children:[k.jsx("div",{className:`no-scrollbar flex gap-4 border-b border-grey-300 dark:border-grey-900 ${t.length>1?"w-full px-6":"mx-6"}`,children:t.map(s=>k.jsx("button",{className:`-mb-px appearance-none whitespace-nowrap pb-3 pt-4 text-sm font-semibold transition-all ${t.length>1?"cursor-pointer border-b-2":"cursor-default"} ${i===s.id?"border-black text-black dark:border-white dark:text-white":"border-transparent text-grey-600 hover:border-grey-500 dark:text-grey-500 dark:hover:border-grey-500"}`,"data-testid":`tab-${s.id}`,type:"button",onClick:()=>o(s.id),children:s.label},s.id))}),k.jsx("div",{className:"flex flex-col gap-3 p-6 pt-4","data-testid":`tab-contents-${i}`,children:n[i]})]})};zW.propTypes={tabs:P.arrayOf(P.shape({id:P.string.isRequired,label:P.string.isRequired})).isRequired,defaultTab:P.string,tabContent:P.objectOf(P.node).isRequired};function BW({isChecked:t,onChange:e,dataTestId:n}){return k.jsxs("label",{className:"relative inline-block h-4 w-7 outline-none","data-testid":n,id:n,children:[k.jsx("input",{checked:t,className:"peer absolute hidden",type:"checkbox",onChange:e}),k.jsx("div",{className:"absolute inset-0 cursor-pointer rounded-full bg-grey-300 transition-all before:absolute before:bottom-[2px] before:left-[2px] before:size-3 before:rounded-full before:bg-white before:transition-all before:duration-100 peer-checked:bg-black peer-checked:before:translate-x-[12px] dark:bg-grey-800 dark:peer-checked:bg-green"})]})}BW.propTypes={isChecked:P.bool,onChange:P.func};function Fs({children:t,darkMode:e,cardWidth:n,tabs:i,defaultTab:r}){const{ref:o}=j5e({},n),s=T.useMemo(()=>i?typeof t=="object"&&t!==null?t:{default:t}:{default:t},[i,t]);return k.jsx("div",{className:`!mt-0 touch-none ${e?"dark":""}`,children:i?k.jsx("div",{ref:o,className:"not-kg-prose fixed left-0 top-0 z-[9999999] m-0 flex w-[320px] flex-col rounded-lg bg-white bg-clip-padding font-sans shadow-lg will-change-transform dark:bg-grey-950 dark:shadow-xl","data-testid":"settings-panel","data-kg-settings-panel":!0,children:k.jsx(zW,{defaultTab:r,tabContent:s,tabs:i})}):k.jsx("div",{ref:o,className:"not-kg-prose fixed left-0 top-0 z-[9999999] m-0 flex w-[320px] flex-col gap-3 rounded-lg bg-white bg-clip-padding p-6 font-sans shadow-lg will-change-transform dark:bg-grey-950 dark:shadow-xl","data-testid":"settings-panel","data-kg-settings-panel":!0,children:t})})}function fo({label:t,description:e,isChecked:n,onChange:i,dataTestId:r}){return k.jsxs("label",{className:"flex w-full cursor-pointer items-center justify-between",children:[k.jsxs("div",{children:[k.jsx("div",{className:"text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300",children:t}),e&&k.jsx("p",{className:"mt-1 w-11/12 text-xs font-normal leading-snug text-grey-700 dark:text-grey-600",children:e})]}),k.jsx("div",{className:"flex shrink-0 pl-2",children:k.jsx(BW,{dataTestId:r,isChecked:n,onChange:i})})]})}function ef({label:t,hideLabel:e,description:n,onChange:i,value:r,placeholder:o,dataTestId:s,onBlur:a}){return k.jsxs("div",{className:"flex w-full flex-col justify-between",children:[k.jsx("div",{className:e?"sr-only":"mb-1.5 text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300",children:t}),k.jsx(i6,{dataTestId:s,placeholder:o,value:r,onBlur:a,onChange:i}),n&&k.jsx("p",{className:"text-xs font-normal leading-snug text-grey-700 dark:text-grey-600",children:n})]})}function xh({dataTestId:t,label:e,value:n,onChange:i}){const{cardConfig:r}=T.useContext(ft),[o,s]=T.useState([]);T.useEffect(()=>{r!=null&&r.fetchAutocompleteLinks&&r.fetchAutocompleteLinks().then(l=>{s(l.map(u=>({value:u.value,label:u.label})))})},[r]);const a=o.filter(l=>l.label.toLocaleLowerCase().includes(n.toLocaleLowerCase()));return k.jsx(yEe,{dataTestId:t,label:e,listOptions:a,placeholder:"https://yoursite.com/#/portal/signup/",value:n,onChange:i})}function yEe({dataTestId:t,description:e,label:n,listOptions:i,onChange:r,placeholder:o,value:s}){function a(u){r(u.value)}const l=(u,f,d,h)=>k.jsxs(RB,{className:nt(f&&"bg-grey-100 dark:bg-grey-925","m-0 cursor-pointer px-3 py-[7px] text-left hover:bg-grey-100 dark:hover:bg-grey-925"),dataTestId:t,item:u,scrollIntoView:h,selected:f,onClick:a,onMouseOver:d,children:[k.jsx("span",{className:"block text-sm font-normal leading-tight text-black dark:text-white","data-testid":`${t}-listOption-${u.label}`,children:u.label}),k.jsx("span",{className:"block truncate text-xs leading-tight text-grey-700 dark:text-grey-600","data-testid":`${t}-listOption-${u.value}`,children:u.value})]},u.value);return k.jsxs("div",{className:"flex w-full flex-col justify-between",children:[k.jsx("div",{className:"text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300",children:n}),k.jsx(jB,{dataTestId:t,getItem:l,listOptions:i,placeholder:o,value:s,onChange:r}),e&&k.jsx("p",{className:"text-xs font-normal leading-snug text-grey-700 dark:text-grey-600",children:e})]})}function wEe({label:t,description:e,value:n,menu:i,onChange:r,dataTestId:o}){return k.jsxs("div",{className:"flex w-full flex-col justify-between gap-1",children:[k.jsx("div",{className:"text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300","data-testid":`${o}-label`,children:t}),k.jsx(dEe,{dataTestId:o,menu:i,value:n,onChange:r}),e&&k.jsx("p",{className:"text-xs font-normal leading-snug text-grey-700 dark:text-grey-600",children:e})]})}function xEe({label:t,description:e,placeholder:n="",items:i,availableItems:r,onChange:o,dataTestId:s,allowAdd:a=!0}){return k.jsxs("div",{className:"flex w-full flex-col justify-between gap-1",children:[k.jsx("div",{className:"text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300",children:t}),k.jsx(bEe,{allowAdd:a,availableItems:r,dataTestId:s,items:i,placeholder:n,onChange:o}),e&&k.jsx("p",{className:"text-xs font-normal leading-snug text-grey-700 dark:text-grey-600",children:e})]})}function Ea({label:t,onClick:e,selectedName:n,buttons:i,hasTooltip:r}){return k.jsxs("div",{className:"flex w-full items-center justify-between text-[1.3rem]",children:[k.jsx("div",{className:"text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300",children:t}),k.jsx("div",{className:"shrink-0 pl-2",children:k.jsx($W,{buttons:i,hasTooltip:r,selectedName:n,onClick:e})})]})}function nw({label:t,onClick:e,selectedName:n,buttons:i,layout:r,dataTestId:o}){return k.jsxs("div",{className:`flex w-full text-[1.3rem] ${r==="stacked"?"flex-col":"items-center justify-between"}`,"data-testid":o,children:[k.jsx("div",{className:"text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300",children:t}),k.jsx("div",{className:`shrink-0 ${r==="stacked"?"-mx-1 pt-[.6rem]":"pl-2"}`,children:k.jsx(uEe,{buttons:i,selectedName:n,onClick:e})})]})}function c0({label:t,isExpanded:e,onSwatchChange:n,onPickerChange:i,onTogglePicker:r,value:o,swatches:s,eyedropper:a,hasTransparentOption:l,dataTestId:u,children:f,showChildren:d}){const h=g=>{g.stopPropagation()};return k.jsx("div",{className:"flex-col","data-testid":u,onClick:h,children:k.jsxs("div",{className:"flex w-full items-center justify-between text-[1.3rem]",children:[k.jsx("div",{className:"text-sm font-medium tracking-normal text-grey-900 dark:text-grey-300",children:t}),k.jsx("div",{className:"shrink-0 pl-2",children:k.jsx(lEe,{eyedropper:a,hasTransparentOption:l,isExpanded:e,showChildren:d,swatches:s,value:o,onChange:i,onSwatchChange:n,onTogglePicker:r,children:f})})]})})}function iw({className:t,imgClassName:e,label:n,hideLabel:i,onFileChange:r,isDraggedOver:o,placeholderRef:s,src:a,alt:l,isLoading:u,errors:f=[],progress:d,onRemoveMedia:h,icon:g,desc:m,size:y,type:x,stacked:_,borderStyle:S,mimeTypes:C,isPinturaEnabled:E,openImageEditor:N,setFileInputRef:M}){return k.jsxs("div",{className:nt(t,!_&&"flex justify-between gap-3"),"data-testid":"media-upload-setting",children:[k.jsx("div",{className:i?"sr-only":"mb-2 shrink-0 text-sm font-medium tracking-normal text-grey-900 dark:text-grey-400",children:n}),k.jsx(tw,{alt:l,borderStyle:S,className:nt(_&&"h-32",!_&&a&&"h-[5.2rem]",!_&&x!=="button"&&!a&&"h-[5.2rem] w-[7.2rem]"),desc:m,dragHandler:{isDraggedOver:o,setRef:s},errors:f,icon:g,imgClassName:e,isLoading:u,isPinturaEnabled:E,mimeTypes:C,openImageEditor:N,progress:d,setFileInputRef:M,size:y,src:a,type:x,onFileChange:r,onRemoveMedia:h})]})}function P6({visibilityOptions:t,toggleVisibility:e}){return t.map((i,r)=>{const o=i.toggles.map(s=>k.jsx(fo,{dataTestId:`visibility-toggle-${i.key}-${s.key}`,isChecked:s.checked,label:s.label,onChange:()=>e(i.key,s.key,!s.checked)},s.key));return k.jsxs("div",{className:"flex flex-col gap-3","data-testid":"visibility-settings",children:[k.jsx("p",{className:"text-sm font-bold tracking-normal text-grey-900 dark:text-grey-300",children:i.label}),o,r<t.length-1&&k.jsx("hr",{className:"not-kg-prose my-2 block border-t-grey-300 dark:border-t-grey-900"})]},i.key)})}function WW(t){return{web:{nonMembers:t.web.nonMember,freeMembers:t.web.memberSegment.indexOf("status:free")!==-1,paidMembers:t.web.memberSegment.indexOf("status:-free")!==-1},email:{freeMembers:t.email.memberSegment.indexOf("status:free")!==-1,paidMembers:t.email.memberSegment.indexOf("status:-free")!==-1}}}function _Ee(t,{isStripeEnabled:e=!0}={}){t=t||rD.visibility.buildDefaultVisibility();const n=WW(t),i=[{label:"Web",key:"web",toggles:[{key:"nonMembers",label:"Public visitors",checked:n.web.nonMembers},{key:"freeMembers",label:"Free members",checked:n.web.freeMembers},{key:"paidMembers",label:"Paid members",checked:n.web.paidMembers}]},{label:"Email",key:"email",toggles:[{key:"freeMembers",label:"Free members",checked:n.email.freeMembers},{key:"paidMembers",label:"Paid members",checked:n.email.paidMembers}]}];return e||(i[0].toggles=i[0].toggles.filter(r=>r.key!=="paidMembers"),i[1].toggles=i[1].toggles.filter(r=>r.key!=="paidMembers")),i}function OEe(t){var o,s,a,l,u;const e=t.find(f=>f.key==="web").toggles,n=[];(o=e.find(f=>f.key==="freeMembers"))!=null&&o.checked&&n.push("status:free"),(s=e.find(f=>f.key==="paidMembers"))!=null&&s.checked&&n.push("status:-free");const i=t.find(f=>f.key==="email").toggles,r=[];return(a=i.find(f=>f.key==="freeMembers"))!=null&&a.checked&&r.push("status:free"),(l=i.find(f=>f.key==="paidMembers"))!=null&&l.checked&&r.push("status:-free"),{web:{nonMember:((u=e.find(f=>f.key==="nonMembers"))==null?void 0:u.checked)||!1,memberSegment:n.join(",")},email:{memberSegment:r.join(",")}}}const D6=(t,e,n)=>{const i=n==null?void 0:n.stripeEnabled;let r;t.getEditorState().read(()=>{r=A.$getNodeByKey(e).visibility});const o=WW(r),s=_Ee(r,{isStripeEnabled:i});return{visibilityData:o,visibilityOptions:s,toggleVisibility:(a,l,u)=>{t.update(()=>{const f=structuredClone(s),h=f.find(m=>m.key===a).toggles.find(m=>m.key===l);h.checked=u;const g=A.$getNodeByKey(e);g.visibility=OEe(f)})}}};function SEe({nodeKey:t,html:e}){const[n]=Oe.useLexicalComposerContext(),i=T.useContext(rn),{cardConfig:r,darkMode:o}=T.useContext(ft),[s,a]=T.useState(!1),{showVisibilitySettings:l}=zc(),{visibilityOptions:u,toggleVisibility:f}=D6(n,t,r),d=[{id:"visibility",label:"Visibility"}],h=_=>{n.update(()=>{const S=A.$getNodeByKey(t);S.html=_})},g=_=>{_.preventDefault(),_.stopPropagation(),n.dispatchCommand(Lo,{cardKey:t,focusEditor:!1})},m=_=>{var S;((S=_==null?void 0:_.relatedTarget)==null?void 0:S.className)!=="kg-prose"&&n.dispatchCommand(sw,{cardKey:t})},y=k.jsx(P6,{toggleVisibility:f,visibilityOptions:u}),x=T.useCallback(_=>{_.preventDefault(),_.stopPropagation(),n.dispatchCommand(z6,{cardKey:t})},[n,t]);return k.jsxs(k.Fragment,{children:[k.jsx(xW,{darkMode:o,html:e,isEditing:i.isEditing,updateHtml:h,onBlur:m}),k.jsx(xt,{"data-kg-card-toolbar":"html",isVisible:s,children:k.jsx(Kn,{onClose:()=>a(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"html",isVisible:i.isSelected&&!s&&!i.isEditing,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-html",icon:"edit",isActive:!1,label:"Edit",onClick:g}),k.jsx(Bn,{}),k.jsx(at,{dataTestId:"show-visibility",icon:"visibility",isActive:l,label:"Visibility",onClick:x}),k.jsx(Bn,{hide:!r.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!r.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>a(!0)})]})}),l&&i.isSelected&&k.jsx(Fs,{darkMode:o,defaultTab:"visibility",tabs:d,onMouseDown:_=>{_.preventDefault(),_.stopPropagation()},children:{visibility:y}})]})}const HW=A.createCommand();class f0 extends Zg{getIcon(){return l_}constructor(e={},n){super(e,n)}decorate(){return k.jsx(An,{IndicatorIcon:s5e,isVisibilityActive:this.getIsVisibilityActive(),nodeKey:this.getKey(),wrapperStyle:"wide",children:k.jsx(SEe,{html:this.__html,nodeKey:this.getKey(),visibility:this.__visibility})})}}ye(f0,"kgMenu",{label:"HTML",desc:"Insert a HTML editor card",Icon:l_,insertCommand:HW,matches:["html"],priority:18,shortcut:"/html"});function CEe(t){return new f0(t)}function EEe(t){return t instanceof f0}const QW=ib;var TEe=function(t="",{ghostVersion:e="4.0",type:n="mobiledoc"}={}){const i=QW.coerce(e);return typeof t!="string"||(t||"").trim()===""?"":QW.satisfies(i,"<4.x")?n==="markdown"?t.replace(/[^\w]/g,"").toLowerCase():t.replace(/[<>&"?]/g,"").trim().replace(/[^\w]/g,"-").replace(/-{2,}/g,"-").toLowerCase():encodeURIComponent(t.trim().toLowerCase().replace(/[\][!"#$%&'()*+,./:;<=>?@\\^_{|}~]/g,"").replace(/\s+/g,"-").replace(/^-|-{2,}|-$/g,""))},$Ee={slugify:TEe},MEe=$Ee;const UW=MM,ZW=ib,{slugify:NEe}=MEe,_h={},qW=function({ghostVersion:t}={}){const e=function(n,i={}){let r=NEe(n,{ghostVersion:t,type:"markdown"});return i[r]&&(i[r]+=1,r+=i[r]),r};return function(n){const i=n.renderer.rules.heading_open;n.renderer.rules.heading_open=function(r,o,s,a,l){const u={};r[o].attrs=r[o].attrs||[];const f=r[o+1].children.reduce(function(h,g){return h+g.content},""),d=e(f,u);return r[o].attrs.push(["id",d]),i?i.apply(this,arguments):l.renderToken.apply(l,arguments)}}},AEe=function(t){const e=ZW.coerce(t.ghostVersion||"4.0");if(ZW.satisfies(e,"<4.x")){if(_h["<4.x"])return _h["<4.x"];const n=new UW({html:!0,breaks:!0,linkify:!0}).use(rb()).use(ob()).use(sb()).use(fb()).use(qW(t)).use(db()).use(hb());return n.linkify.set({fuzzyLink:!1}),_h["<4.x"]=n,n}else{if(_h.latest)return _h.latest;const n=new UW({html:!0,breaks:!0,linkify:!0}).use(rb()).use(ob()).use(sb()).use(fb()).use(qW(t)).use(db()).use(hb());return n.linkify.set({fuzzyLink:!1}),_h.latest=n,n}};var PEe={render:function(t,e={}){return AEe(e).render(t)}},DEe=PEe;const YW=xo(DEe),I6=A.createCommand("PASTE_MARKDOWN_COMMAND"),L6="text/plain",R6="text/html",IEe=()=>{const[t]=Oe.useLexicalComposerContext(),[e,n]=T.useState(!1);return T.useEffect(()=>{const i=r=>{r.key==="Shift"&&n(!1)};return document.addEventListener("keyup",i),()=>{document.removeEventListener("keyup",i)}},[n]),T.useEffect(()=>{const i=r=>{r.key==="Shift"&&n(!0)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[n]),T.useEffect(()=>ut.mergeRegister(t.registerCommand(I6,({text:i,allowBr:r})=>{const o=A.$getSelection();if(!A.$isRangeSelection(o))return!1;const s=new DataTransfer;if(e)s.setData(L6,i);else{const a=YW.render(i),l=r?a:a.replace(/<br\s?\/?>/g,""),u=Gy(l,{replaceJS:!0});s.setData(R6,u)}return Ac.$insertDataTransferForRichText(s,o,t),!0},A.COMMAND_PRIORITY_LOW)),[t,e]),null};var VW={},XW={},d0={};Object.defineProperty(d0,"__esModule",{value:!0}),d0.denestTransform=KW,d0.registerDenestTransform=jEe;const tf=ei,nf=A;function LEe(t){if(!(0,tf.$isListNode)(t))return!1;const e=t.getParent();return!((0,nf.$isRootNode)(e)||(0,tf.$isListItemNode)(e))}function REe(t){if(!(0,tf.$isListItemNode)(t))return!1;const e=t.getParent();return!(0,tf.$isListNode)(e)}function GW(t){return(0,nf.$isLineBreakNode)(t)||(0,nf.$isTextNode)(t)?!1:LEe(t)||REe(t)||t.isInline&&!t.isInline()&&!(0,tf.$isListNode)(t)&&!(0,tf.$isListItemNode)(t)}function KW(t,e){const n=t.getChildren();if(!n.some(GW))return;const r=(0,nf.$createParagraphNode)();let o=e(t);n.forEach(a=>{GW(a)?(o.getChildrenSize()>0&&(r.append(o),o=e(t)),r.append(a)):o.append(a)}),o.getChildrenSize()>0&&r.append(o);let s=t;for(;s.getParent()&&s.getParent()!==(0,nf.$getRoot)();)s=s.getParentOrThrow();r.getChildren().reverse().forEach(a=>{if((0,nf.$isRootNode)(s.getParent())&&(0,tf.$isListItemNode)(a)){const l=(0,nf.$createParagraphNode)();l.append(...a.getChildren()),a.remove(),s.insertAfter(l);return}s.insertAfter(a)}),t.remove(),r.remove()}function jEe(t,e,n){return t.hasNodes([e])?t.registerNodeTransform(e,i=>{KW(i,n)}):()=>{}}var h0={};Object.defineProperty(h0,"__esModule",{value:!0}),h0.removeAlignmentTransform=JW,h0.registerRemoveAlignmentTransform=FEe;function JW(t){t.getFormatType()!==""&&t.setFormat("")}function FEe(t,e){return t.hasNodes([e])?t.registerNodeTransform(e,JW):()=>{}}const eH=tv(Cke);var p0={};Object.defineProperty(p0,"__esModule",{value:!0}),p0.mergeListNodesTransform=tH,p0.registerMergeListNodesTransform=zEe;const rw=ei;function tH(t){const e=t.getNextSibling();(0,rw.$isListNode)(e)&&(0,rw.$isListNode)(t)&&e.getListType()===t.getListType()&&(t.append(...e.getChildren()),e.remove())}function zEe(t){return t.hasNodes([rw.ListNode])?t.registerNodeTransform(rw.ListNode,tH):()=>{}}var ow={};Object.defineProperty(ow,"__esModule",{value:!0}),ow.removeAtLinkNodesTransform=rH,ow.registerRemoveAtLinkNodesTransform=BEe;const nH=A,iH=eH;function rH(t){const e=t.getPreviousSibling(),n=t.getNextSibling();e?(0,nH.$isTextNode)(e)&&e.getTextContent().endsWith(" ")&&e.setTextContent(e.getTextContent().slice(0,-1)):n&&(0,nH.$isTextNode)(n)&&n.getTextContent().startsWith(" ")&&n.setTextContent(n.getTextContent().slice(1)),t.remove()}function BEe(t){return t.hasNodes([iH.AtLinkNode])?t.registerNodeTransform(iH.AtLinkNode,rH):()=>{}}(function(t){var e=tn&&tn.__createBinding||(Object.create?function(h,g,m,y){y===void 0&&(y=m);var x=Object.getOwnPropertyDescriptor(g,m);(!x||("get"in x?!g.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return g[m]}}),Object.defineProperty(h,y,x)}:function(h,g,m,y){y===void 0&&(y=m),h[y]=g[m]}),n=tn&&tn.__exportStar||function(h,g){for(var m in h)m!=="default"&&!Object.prototype.hasOwnProperty.call(g,m)&&e(g,h,m)};Object.defineProperty(t,"__esModule",{value:!0}),t.registerDefaultTransforms=d;const i=d0,r=h0,o=ut,s=A,a=Kt,l=eH,u=ei,f=p0;n(d0,t),n(p0,t),n(h0,t),n(ow,t);function d(h){return(0,o.mergeRegister)((0,r.registerRemoveAlignmentTransform)(h,s.ParagraphNode),(0,r.registerRemoveAlignmentTransform)(h,a.HeadingNode),(0,r.registerRemoveAlignmentTransform)(h,l.ExtendedHeadingNode),(0,r.registerRemoveAlignmentTransform)(h,a.QuoteNode),(0,i.registerDenestTransform)(h,s.ParagraphNode,()=>(0,s.$createParagraphNode)()),(0,i.registerDenestTransform)(h,a.HeadingNode,g=>(0,a.$createHeadingNode)(g.getTag())),(0,i.registerDenestTransform)(h,l.ExtendedHeadingNode,g=>(0,a.$createHeadingNode)(g.getTag())),(0,i.registerDenestTransform)(h,a.QuoteNode,()=>(0,a.$createQuoteNode)()),(0,i.registerDenestTransform)(h,u.ListNode,g=>(0,u.$createListNode)(g.getListType(),g.getStart())),(0,i.registerDenestTransform)(h,u.ListItemNode,()=>(0,u.$createListItemNode)()),(0,f.registerMergeListNodesTransform)(h))}})(XW),function(t){var e=tn&&tn.__createBinding||(Object.create?function(i,r,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(r,o);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[o]}}),Object.defineProperty(i,s,a)}:function(i,r,o,s){s===void 0&&(s=o),i[s]=r[o]}),n=tn&&tn.__exportStar||function(i,r){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(r,o)&&e(r,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),n(XW,t)}(VW);const j6=t=>{if(!t)return!1;const{metaKey:e,key:n,target:i}=t;return n==="Escape"||e&&n==="Enter"?!1:i.matches("input, textarea")||i.cmView||i.cmIgnore||!!i.closest(".cm-editor")},kn=A.createCommand("INSERT_CARD_COMMAND"),Nu=A.createCommand("SELECT_CARD_COMMAND"),sw=A.createCommand("DESELECT_CARD_COMMAND"),Lo=A.createCommand("EDIT_CARD_COMMAND"),rf=A.createCommand("DELETE_CARD_COMMAND"),F6=A.createCommand("PASTE_LINK_COMMAND"),z6=A.createCommand("SHOW_CARD_VISIBILITY_SETTINGS_COMMAND"),WEe=A.createCommand("HIDE_CARD_VISIBILITY_SETTINGS_COMMAND"),B6=10,oH={code:"`",superscript:"^",subscript:"~",strikethrough:"~~"};function of(t,e){const n=A.$createNodeSelection();n.add(e),A.$setSelection(n),document.activeElement!==t.getRootElement()&&t.getRootElement().focus({preventScroll:!0})}function Oh(t,e){var i;const n=A.$getNodeByKey(e);(i=n==null?void 0:n.isEmpty)!=null&&i.call(n)&&HEe(t,n)}function HEe(t,e){if(A.$getRoot().getLastChild().is(e)){const n=A.$createParagraphNode();A.$getRoot().append(n),n.select()}else{const n=e.getNextSibling();A.$isDecoratorNode(n)?(or(n),t.getRootElement().focus()):n.selectStart()}e.remove()}function QEe({editor:t,containerElem:e,cursorDidExitAtTop:n,isNested:i}){const{selectedCardKey:r,setSelectedCardKey:o,isEditingCard:s,setIsEditingCard:a,setShowVisibilitySettings:l}=zc(),u=T.useRef(!1);return T.useEffect(()=>{const f=h=>{u.current=h.shiftKey},d=h=>{u.current=h.shiftKey};return document.addEventListener("keydown",f),document.addEventListener("keyup",d),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",d)}},[]),T.useEffect(()=>{const f=d=>{document.body.contains(d.target)&&e.current&&!e.current.contains(d.target)&&t.getEditorState().read(()=>{const h=A.$getSelection();if(A.$isNodeSelection(h)){const g=h.getNodes()[0];Pc(g)&&t.dispatchCommand(sw,{cardKey:g.getKey()})}})};return i||window.addEventListener("mousedown",f),()=>{window.removeEventListener("mousedown",f)}},[t,e,i]),T.useEffect(()=>ut.mergeRegister(t.registerUpdateListener(({editorState:f,tags:d})=>{if(d.has("collaboration")||d.has("card-export")||i||document.activeElement.closest("[data-lexical-decorator]"))return;const{isCardSelected:h,cardKey:g,cardNode:m}=f.read(()=>{const y=A.$getSelection();if(A.$isNodeSelection(y)&&y.getNodes().length===1&&Pc(y.getNodes()[0])){const _=y.getNodes()[0];return{isCardSelected:!0,cardKey:_.getKey(),cardNode:_}}else return{isCardSelected:!1}});h&&!r?(o(g),a(!1)):h&&r!==g&&t.update(()=>{Oh(t,r),o(g),a(!1)},{tag:"history-merge"}),!h&&r&&t.update(()=>{Oh(t,r),o(null),a(!1)},{tag:"history-merge"}),h&&m.__openInEditMode&&(t.update(()=>{m.clearOpenInEditMode()},{tag:"history-merge"}),a(!0))}),t.registerCommand(kn,({cardNode:f,openInEditMode:d})=>{let h;const g=A.$getSelection();if(A.$isRangeSelection(g))h=g.focus.getNode();else if(A.$isNodeSelection(g))h=g.getNodes()[0];else return!1;return h!==null&&(G6e({selectedNode:h,newNode:f}),o(f.getKey()),d&&a(!0)),!0},A.COMMAND_PRIORITY_LOW),t.registerCommand(Nu,({cardKey:f})=>{var d;if(r===f&&s){const h=A.$getNodeByKey(f);if((d=h.isEmpty)!=null&&d.call(h))return t.dispatchCommand(rf,{cardKey:f}),!0}r&&r!==f&&(Oh(t,r),l(!1)),of(t,f),o(f),a(!1)},A.COMMAND_PRIORITY_LOW),t.registerCommand(Lo,({cardKey:f,focusEditor:d})=>{var g;r&&r!==f&&Oh(t,r),of(t,f),o(f);const h=A.$getNodeByKey(f);(g=h.hasEditMode)!=null&&g.call(h)&&a(!0)},A.COMMAND_PRIORITY_LOW),t.registerCommand(sw,({cardKey:f})=>{Oh(t,f),o(null),a(!1),l(!1)},A.COMMAND_PRIORITY_LOW),t.registerCommand(rf,({cardKey:f,direction:d="forward"})=>{const h=A.$getNodeByKey(f),g=h.getPreviousSibling(),m=h.getNextSibling();if(d==="backward"&&g)if(A.$isDecoratorNode(g)){const y=A.$createNodeSelection();y.add(g.getKey()),A.$setSelection(y)}else g.selectEnd?g.selectEnd():h.selectPrevious();else if(m)if(A.$isDecoratorNode(m)){const y=A.$createNodeSelection();y.add(m.getKey()),A.$setSelection(y)}else m.selectStart?m.selectStart():h.selectNext();else{const y=A.$createParagraphNode();A.$getRoot().append(y),y.select()}return h.remove(),t.getRootElement().focus(),!0},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_DOWN_COMMAND,f=>!!j6(f),A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_ENTER_COMMAND,f=>{var d,h;if(r&&(f.metaKey||f.ctrlKey)){const g=A.$getNodeByKey(r);if((d=g.hasEditMode)!=null&&d.call(g)){if(f.preventDefault(),s){if(t.getRootElement().focus({preventScroll:!0}),(h=g.isEmpty)!=null&&h.call(g)){if(A.$getRoot().getLastChild().is(g)){const m=A.$createParagraphNode();A.$getRoot().append(m),m.select()}else of(t,r),t.dispatchCommand(A.KEY_ARROW_DOWN_COMMAND);g.remove()}else of(t,r);a(!1)}else a(!0);return!0}}if(!f._fromNested&&document.activeElement!==t.getRootElement())return!0;if(!i&&r){f.preventDefault();const g=A.$getNodeByKey(r),m=A.$createParagraphNode();return g.insertAfter(m),m.select(),!0}if(!i){const g=A.$getSelection(),m=g==null?void 0:g.getNodes()[0];if(A.$isTextNode(m)){const y=m.getTextContent();if(y.match(/^```(\w{1,10})?/)){f.preventDefault();const x=y.replace(/^```/,""),_=m.getTopLevelElement().insertAfter(KC({language:x,_openInEditMode:!0}));m.getTopLevelElement().remove();const S=A.$createNodeSelection();return S.add(_.getKey()),A.$setSelection(S),!0}}}},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_ARROW_UP_COMMAND,f=>{const d=A.$getSelection();if(f!=null&&f.shiftKey){if(A.$isRangeSelection(d)){let h=d.anchor.getNode();if(!A.$isRootNode(h)){h=h.getTopLevelElement();let g=d.focus.getNode().getTopLevelElement(),m=g.getTopLevelElement().getPreviousSibling();if(A.$isTextNode(g)&&A.$isTextNode(m))return!1;if(A.$isDecoratorNode(h)||A.$isDecoratorNode(m))return d.anchor.offset===0?(d.focus.set("root",g.getIndexWithinParent()-1,"element"),d.anchor.set("root",h.getIndexWithinParent(),"element")):(d.focus.set("root",g.getIndexWithinParent(),"element"),d.anchor.set("root",h.getIndexWithinParent()+1,"element")),f.preventDefault(),!0}if(A.$isRootNode(h))return d.focus.offset>0&&d.focus.set("root",d.focus.offset-1,"element"),f.preventDefault(),!0}return!1}if(f!=null&&f._fromCaptionEditor&&of(t,r),document.activeElement!==t.getRootElement())return!0;if(A.$isNodeSelection(d)){const g=d.getNodes()[0].getPreviousSibling();return!g&&n?(d.clear(),n(),!0):A.$isDecoratorNode(g)?(or(g),!0):(f.preventDefault(),g.selectEnd(),!0)}if(A.$isRangeSelection(d)&&d.isCollapsed()){const h=d.anchor.getNode().getTopLevelElement(),g=window.getSelection();if(n&&h6(d))return n(),!0;const m=(h==null?void 0:h.getTextContent().trim())===""&&d.anchor.offset===0,y=d.anchor.offset===0&&d.focus.offset===0;if(m||y){const x=h.getPreviousSibling();if(A.$isDecoratorNode(x))return or(x),!0}else if(g6(g,B6)){const _=h.getPreviousSibling();if(A.$isDecoratorNode(_))return or(_),!0}}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_ARROW_DOWN_COMMAND,f=>{const d=A.$getSelection();if(f!=null&&f.shiftKey){if(A.$isRangeSelection(d)){let h=d.anchor.getNode();if(!A.$isRootNode(h)){h=h.getTopLevelElement();let g=d.focus.getNode().getTopLevelElement(),m=g.getTopLevelElement().getNextSibling();if(A.$isTextNode(g)&&A.$isTextNode(m))return!1;if(A.$isDecoratorNode(h)||A.$isDecoratorNode(m))return d.anchor.offset===h.getTextContentSize()?(d.anchor.set("root",h.getIndexWithinParent()+1,"element"),d.focus.set("root",g.getIndexWithinParent()+2,"element")):(d.anchor.set("root",h.getIndexWithinParent(),"element"),d.focus.set("root",g.getIndexWithinParent()+1,"element")),f.preventDefault(),!0}if(A.$isRootNode(h))return d.focus.offset<=h.getLastChildOrThrow().getIndexWithinParent()&&d.focus.set("root",d.focus.offset+1,"element"),f.preventDefault(),!0}return!1}if(f!=null&&f._fromCaptionEditor&&of(t,r),document.activeElement!==t.getRootElement())return!0;if(A.$isNodeSelection(d)){const h=d.getNodes()[0],g=h.getNextSibling();if(!g){const m=A.$createParagraphNode();return h.insertAfter(m),m.select(),!0}return A.$isDecoratorNode(g)?(or(g),!0):(f==null||f.preventDefault(),g.selectStart(),!0)}if(A.$isRangeSelection(d)&&d.isCollapsed()){const h=d.anchor.getNode().getTopLevelElement(),g=window.getSelection(),m=p6(g.anchorNode),y=(h==null?void 0:h.getTextContent().trim())===""&&d.anchor.offset===0,x=g.rangeCount!==0&&g.anchorNode===m&&g.anchorOffset===m.children.length-1&&g.focusOffset===m.children.length-1;if(y||x){const _=h.getNextSibling();if(A.$isDecoratorNode(_))return or(_),!0}else{const S=g.getRangeAt(0).cloneRange().getClientRects();if(S.length>0){const C=S.length>1?S[1]:S[0],E=m.getBoundingClientRect();if(Math.abs(C.bottom-E.bottom)<B6){const N=h.getNextSibling();if(A.$isDecoratorNode(N))return or(N),!0}}}}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_ARROW_LEFT_COMMAND,f=>{if(document.activeElement!==t.getRootElement())return!0;const d=A.$getSelection();if(n){if(A.$isNodeSelection(d)){if(!d.getNodes()[0].getPreviousSibling())return f.preventDefault(),d.clear(),n==null||n(),!0}else if(h6(d))return f.preventDefault(),n(),!0}if(!A.$isNodeSelection(d))return!1;const h=d.getNodes()[0];let g;return Pc(h)?g=h.getPreviousSibling():g=h.getTopLevelElement().getPreviousSibling(),A.$isDecoratorNode(g)?(f.preventDefault(),or(g),!0):!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_ARROW_RIGHT_COMMAND,f=>{if(document.activeElement!==t.getRootElement())return!0;const d=A.$getSelection();if(!A.$isNodeSelection(d))return!1;const h=d.getNodes(),g=h[h.length-1];let m;return Pc(g)?m=g.getNextSibling():m=g.getTopLevelElement().getNextSibling(),A.$isDecoratorNode(m)?(f.preventDefault(),or(m),!0):!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_MODIFIER_COMMAND,f=>{const{altKey:d,ctrlKey:h,metaKey:g,shiftKey:m,code:y,key:x}=f,_=x==="ArrowUp"||f.keyCode===38,S=x==="ArrowDown"||f.keyCode===40;if(g&&(_||S)){const C=A.$getSelection(),E=A.$isNodeSelection(C),N=A.$isDecoratorNode(A.$getRoot().getFirstChild()),M=A.$isDecoratorNode(A.$getRoot().getLastChild());if(E||N||M){if(S){f.preventDefault();const I=A.$getRoot().getLastChild();return A.$isDecoratorNode(I)?(or(I),!0):(I.selectEnd(),!0)}if(_){f.preventDefault();const I=A.$getRoot().getFirstChild();return A.$isDecoratorNode(I)?(or(I),!0):(I.selectStart(),!0)}}}if(h&&y==="KeyQ"){f.preventDefault();const C=A.$getSelection();if(A.$isRangeSelection(C)){const E=C.anchor.getNode().getTopLevelElement();A.$isParagraphNode(E)?Oi.$setBlocksType(C,()=>Kt.$createQuoteNode()):Kt.$isQuoteNode(E)?Oi.$setBlocksType(C,()=>sD()):aD(E)&&Oi.$setBlocksType(C,()=>A.$createParagraphNode())}}if((h||g)&&d&&y==="KeyH")return f.preventDefault(),t.dispatchCommand(A.FORMAT_TEXT_COMMAND,"highlight"),!0;if(h&&m&&y==="KeyK")return t.dispatchCommand(A.FORMAT_TEXT_COMMAND,"code"),!0;if(h&&d&&y==="KeyU")return t.dispatchCommand(A.FORMAT_TEXT_COMMAND,"strikethrough"),!0;if(h&&d&&x.match(/^[1-6]$/)){f.preventDefault();const C=A.$getSelection();A.$isRangeSelection(C)&&Oi.$setBlocksType(C,()=>Kt.$createHeadingNode(`h${x}`))}if(h&&y==="KeyL"){f.preventDefault();const C=A.$getSelection();if(A.$isRangeSelection(C)){const E=C.anchor.getNode().getTopLevelElement();ei.$isListNode(E)?t.update(()=>{const N=A.$createParagraphNode();Oi.$setBlocksType(C,()=>N),N.setIndent(0)}):d?t.dispatchCommand(ei.INSERT_ORDERED_LIST_COMMAND,void 0):t.dispatchCommand(ei.INSERT_UNORDERED_LIST_COMMAND,void 0)}}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_BACKSPACE_COMMAND,f=>{if(document.activeElement!==t.getRootElement())return!0;if(!i&&r)return f.preventDefault(),t.dispatchCommand(rf,{cardKey:r,direction:"backward"}),!0;const d=A.$getSelection();if(A.$isRangeSelection(d)&&d.isCollapsed()){const g=d.anchor.getNode(),m=g.getTopLevelElement(),y=m.getPreviousSibling(),x=d.anchor.offset===0&&d.focus.offset===0;if(x&&ei.$isListItemNode(g)&&g.getIndent()===0&&g.isEmpty())return f.preventDefault(),t.dispatchCommand(A.INSERT_PARAGRAPH_COMMAND),!0;if(x&&ki.$isLinkNode(g.getPreviousSibling())){const N=g.getPreviousSibling().getLastDescendant();if(A.$isTextNode(N))return N.spliceText(N.getTextContentSize(),1,"",!0),!0}if(A.$isParagraphNode(g)&&g.isEmpty()&&A.$isDecoratorNode(y))return m.remove(),or(y),!0;if(x&&ei.$isListItemNode(g.getParent())){const E=g.getParent();if(E.getIndent()===0){f.preventDefault();const N=A.$createParagraphNode();return N.append(...E.getChildren()),E.replace(N),!0}}const _=g.getParent();if(x&&(Kt.$isQuoteNode(_)||aD(_))){const E=A.$createParagraphNode();return _.getChildren().forEach(N=>{E.append(N)}),_.replace(E),E.selectStart(),f.preventDefault(),!0}if(x&&A.$isDecoratorNode(y)&&_===m&&_.getFirstChild().is(g))return f.preventDefault(),y.remove(),!0;const S=g.getTextContentSize();if(d.anchor.offset===S&&d.focus.offset===S&&A.$isTextNode(g)){const E=g.getTextContent();for(const N of Object.keys(oH))if(g.hasFormat(N)){const M=oH[N];let I=E;return N==="code"&&E.match(/{.*?}(?![A-Za-z\s])/)||(I=M+I+M),I=I.slice(0,-1),g.setFormat(0),g.setTextContent(I),d.anchor.offset=d.anchor.offset+I.length-E.length,d.focus.offset=d.focus.offset+I.length-E.length,f.preventDefault(),!0}}}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_DELETE_COMMAND,f=>{if(document.activeElement!==t.getRootElement())return!0;if(!i&&r)return f.preventDefault(),t.dispatchCommand(rf,{cardKey:r,direction:"forward"}),!0;const d=A.$getSelection();if(A.$isRangeSelection(d)&&d.isCollapsed()){const h=d.anchor,g=h.getNode(),m=g.getTopLevelElement(),y=m.getNextSibling();if((m==null?void 0:m.getTextContent().trim())===""&&d.anchor.offset===0&&A.$isDecoratorNode(y))return f.preventDefault(),m.remove(),or(y),!0;if((h.type==="element"&&A.$isElementNode(g)&&h.offset===g.getChildrenSize()||h.type==="text"&&h.offset===g.getTextContentSize()&&h.getNode().getParent().getLastChild().is(h.getNode()))&&A.$isDecoratorNode(y))return f.preventDefault(),y.remove(),!0}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.DELETE_LINE_COMMAND,f=>{if(r&&document.activeElement===t.getRootElement()&&!i)return t.dispatchCommand(rf,{cardKey:r,direction:f?"backward":"forward"}),!0;const d=A.$getSelection();if(A.$isRangeSelection(d)&&d.isCollapsed()){const g=d.anchor.getNode(),m=g.getTopLevelElement(),y=m.getPreviousSibling(),x=m.getNextSibling(),_=f?y:x,S=window.getSelection(),C=g6(S,B6);if(A.$isDecoratorNode(_)&&C)return f&&A.$isLineBreakNode(g.getNextSibling())?(g.remove(),!0):(m.remove(),or(_),!0)}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_TAB_COMMAND,f=>{if(document.activeElement!==t.getRootElement())return!0;if(f.shiftKey&&n){const d=A.$getSelection();if(A.$isNodeSelection(d))return f.preventDefault(),d.clear(),n(),!0;let h;if(d.isCollapsed()){const m=d.anchor.getNode();h=A.$isTextNode(m)?[m.getParent()]:[m]}else h=d.getNodes();if(!h.some(m=>m.getIndent&&m.getIndent()>0))return f.preventDefault(),n(),!0}if(!i){const h=A.$getSelection().getNodes()[0];if(A.$isTextNode(h)){const g=h.getTextContent();if(g.match(/^```(\w{1,10})?/)){f.preventDefault();const m=g.replace(/^```/,""),y=h.getTopLevelElement().insertAfter(KC({language:m,_openInEditMode:!0}));h.getTopLevelElement().remove();const x=A.$createNodeSelection();return x.add(y.getKey()),A.$setSelection(x),!0}}if(ei.$isListItemNode(h)||A.$isTextNode(h)&&ei.$isListItemNode(h.getParent())){f.preventDefault();let g=A.$isTextNode(h)?h.getParent():h;const m=g.getIndent();return f.shiftKey?m>0&&g.setIndent(m-1):g.setIndent(m+1),!0}return f.preventDefault(),!0}},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.KEY_ESCAPE_COMMAND,f=>(r&&s&&(t._parentEditor||t).dispatchCommand(Nu,{cardKey:r}),t._parentEditor&&t._parentEditor.getRootElement().focus(),f.preventDefault(),!0),A.COMMAND_PRIORITY_LOW),t.registerCommand(A.PASTE_COMMAND,f=>{var S;if(document.activeElement!==t.getRootElement()&&!i)return!!j6(f);const d=f.clipboardData;if(!d)return!1;const h=d.getData(L6),g=h==null?void 0:h.match(/^(https?:\/\/[^\s]+)$/);if(g){const C=(S=A.$getSelection())==null?void 0:S.anchor.getNode();return C&&C.getTextContent().startsWith("/")?!1:(f.preventDefault(),t.dispatchCommand(F6,{linkMatch:g}),!0)}const m=d.getData(R6);if(h&&!m)return f==null||f.preventDefault(),t.dispatchCommand(I6,{text:h,allowBr:!0}),!0;const y=d.files?Array.from(d.files):[],x=y.filter(C=>C.type.startsWith("image/")),_=m&&!!m.match(/<\s*img\b/gi);return x.length===1&&_?(f.preventDefault(),t.dispatchCommand(Kt.DRAG_DROP_PASTE,y),!0):!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(F6,({linkMatch:f})=>{const d=A.$getSelection(),h=d.getTextContent(),m=d.anchor.getNode().getTextContent();if(h.length>0){const y=f[1];return A.$isRangeSelection(d)&&t.dispatchCommand(ki.TOGGLE_LINK_COMMAND,{url:y,rel:null}),!0}if(m.length>0||u.current===!0){const y=f[1],x=ki.$createLinkNode(y),_=A.$createTextNode(y);x.append(_);const S=A.$createTextNode(" ");return A.$insertNodes([x,S]),S.remove(),!0}if(h.length===0&&m.length===0){const y=f[1],x=KB({url:y});return t.dispatchCommand(kn,{cardNode:x,createdWithUrl:!0}),!0}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.CLICK_COMMAND,f=>{if(f.target.matches('[data-lexical-decorator="true"]')){f.preventDefault();const d=A.$getNearestNodeFromDOMNode(f.target);return of(t,d.getKey()),!0}return!1},A.COMMAND_PRIORITY_LOW),t.registerCommand(A.CUT_COMMAND,f=>!!j6(f),A.COMMAND_PRIORITY_LOW),t.registerCommand(z6,({cardKey:f})=>(t.update(()=>{var h;const d=A.$getNodeByKey(f);EEe(d)?(l(!0),r||t.dispatchCommand(Nu,{cardKey:f,focusEditor:!0})):(h=d==null?void 0:d.hasEditMode)!=null&&h.call(d)&&!s?(l(!0),t.dispatchCommand(Lo,{cardKey:f,focusEditor:!0})):s&&Oh(t,f)}),!0),A.COMMAND_PRIORITY_LOW),t.registerCommand(WEe,({cardKey:f})=>(t.update(()=>{l(!1),t.dispatchCommand(sw,{cardKey:f})}),!0),A.COMMAND_PRIORITY_LOW))),T.useEffect(()=>VW.registerDefaultTransforms(t),[t]),null}function sH({containerElem:t=document.querySelector(".koenig-editor"),cursorDidExitAtTop:e,isNested:n}){const[i]=Oe.useLexicalComposerContext();return QEe({editor:i,containerElem:t,cursorDidExitAtTop:e,isNested:n})}const An=({nodeKey:t,width:e,wrapperStyle:n,IndicatorIcon:i,children:r})=>{const{cardConfig:o}=T.useContext(ft),[s]=Oe.useLexicalComposerContext(),[a,l]=T.useState(null),[u,f]=T.useState(null),[d,h]=T.useState(e||"regular"),g=T.useRef(null),m=T.useRef(!1),{selectedCardKey:y,isEditingCard:x,isDragging:_}=zc(),S=y===t,C=S&&x,E=T.useCallback(I=>{I.preventDefault(),I.stopPropagation(),s.dispatchCommand(z6,{cardKey:t})},[s,t]);T.useLayoutEffect(()=>{s.getEditorState().read(()=>{const I=A.$getNodeByKey(t);l(I.getType())})},[]),T.useEffect(()=>ut.mergeRegister(s.registerCommand(A.CLICK_COMMAND,I=>{var W;if(!m.current&&g.current.contains(I.target)){const B=A.$getNodeByKey(t),Z=!B,R=I.target.closest('[data-kg-allow-clickthrough="false"]'),Q=I.target.closest("[data-kg-settings-panel]");return S&&((W=B==null?void 0:B.hasEditMode)!=null&&W.call(B))&&!C&&!R&&!Q?s.dispatchCommand(Lo,{cardKey:t,focusEditor:!Z}):S||s.dispatchCommand(Nu,{cardKey:t,focusEditor:!Z}),Z?void 0:!0}return m.current===!0?(m.current=!1,!0):(m.current=!1,!1)},A.COMMAND_PRIORITY_LOW))),T.useEffect(()=>{var I;(I=g.current)!=null&&I.parentElement&&(d==="regular"?delete g.current.parentElement.dataset.kgCardWidth:(d!==e&&h(d),g.current.parentElement.dataset.kgCardWidth=e))},[d,g,e]);const N=I=>{I?s.dispatchCommand(Lo,{cardKey:t}):S||s.dispatchCommand(Nu,{cardKey:t})};T.useEffect(()=>{const I=g.current;function W(B){if(!S&&!C){s.dispatchCommand(Nu,{cardKey:t}),m.current=!0;const Z=B.target.tagName,R=["INPUT","TEXTAREA"],Q=!!B.target.closest("[data-kg-allow-clickthrough]");!R.includes(Z)&&!Q&&B.preventDefault()}}return I==null||I.addEventListener("mousedown",W),()=>{I==null||I.removeEventListener("mousedown",W)}},[s,S,C,t,g]);let M=!1;return s.getEditorState().read(()=>{var W;const I=A.$getNodeByKey(t);M=(W=I==null?void 0:I.getIsVisibilityActive)==null?void 0:W.call(I)}),k.jsx(rn.Provider,{value:{isSelected:S,captionHasFocus:u,isEditing:C,cardWidth:d,setCardWidth:h,setCaptionHasFocus:f,setEditing:N,nodeKey:t,cardContainerRef:g},children:k.jsx(g3,{ref:g,cardType:a,cardWidth:e,feature:o==null?void 0:o.feature,IndicatorIcon:i,isDragging:_,isEditing:C,isSelected:S,isVisibilityActive:M,wrapperStyle:n,onIndicatorClick:E,children:r})})};function W6(t){const e=t._nodes,n=[];for(const[i,{klass:r}]of e)r.kgMenu&&n.push([i,r]);return n}const aw=A.createCommand();function aH(t,e){const n=t.type;return Object.keys(e).find(r=>e[r].includes(n))}function UEe(t,e){const n=t[Symbol.iterator]();return new Promise((i,r)=>{const o=[],s=()=>{const{done:a,value:l}=n.next();if(a)return i({processed:o});const u=new FileReader;u.addEventListener("error",r),u.addEventListener("load",()=>{const d=u.result,h=aH(l,e);typeof d=="string"&&o.push({type:h,file:l}),s()}),aH(l,e)?u.readAsDataURL(l):(console.error("unsupported file type"),s())};s()})}async function ZEe(t,e){const n=W6(t);let i={};for(const[r,o]of n)r&&o.uploadType&&(i[r]=e[o.uploadType].mimeTypes);return{acceptableMimeTypes:i}}function lH(){const[t]=Oe.useLexicalComposerContext(),{fileUploader:e}=T.useContext(ft),n=T.useCallback(async i=>{if(!e)return;const{acceptableMimeTypes:r}=await ZEe(t,e.fileTypes),{processed:o}=await UEe(i,r);o.forEach(s=>{t.dispatchCommand(aw,s)})},[t,e]);return T.useEffect(()=>t.registerCommand(A.DROP_COMMAND,i=>{const r=Array.from(i.dataTransfer.files);return r.length>0?(i.preventDefault(),i.stopPropagation(),t.dispatchCommand(Kt.DRAG_DROP_PASTE,r),!0):!1},A.COMMAND_PRIORITY_HIGH),[t]),T.useEffect(()=>{const i=t.getRootElement(),r=a=>{!a.dataTransfer||a.target.closest("[data-kg-card]")||(a.stopPropagation(),a.preventDefault())},o=a=>{a.preventDefault()},s=a=>{a.dataTransfer.getData("text/html")&&(a.preventDefault(),t.update(()=>{t.focus();let u=A.$getSelection();u||(A.$getRoot().selectEnd(),u=A.$getSelection()),Ac.$insertDataTransferForRichText(a.dataTransfer,u,t)}))};return i.addEventListener("dragover",r),i.addEventListener("dragleave",o),i.addEventListener("drop",s),()=>{i.removeEventListener("dragover",r),i.removeEventListener("dragleave",o),i.removeEventListener("drop",s)}},[t]),T.useEffect(()=>t.registerCommand(Kt.DRAG_DROP_PASTE,async i=>{try{return t.focus(),await n(i)}catch(r){console.error(r)}},A.COMMAND_PRIORITY_LOW),[t,n]),null}function qEe({enabled:t=!0,canDrop:e,onDrop:n,onDropEnd:i,getDraggableInfo:r,getIndicatorPosition:o,draggableSelector:s,droppableSelector:a}){const l=T.useContext(ft),[u,f]=T.useState(null),[d,h]=T.useState(!1),g=T.useRef(null),m=T.useCallback(M=>{e(M)?g.current.enableDrag():g.current.disableDrag()},[e]),y=T.useCallback(()=>{h(!1)},[h]),x=T.useCallback(M=>{h(e(M))},[h,e]),_=T.useCallback(()=>{h(!1)},[h]),S=T.useCallback(M=>(n==null?void 0:n(M))||!1,[n]),C=T.useCallback((M,I)=>{i==null||i(M,I)},[i]),E=T.useCallback(M=>(o==null?void 0:o(M))||!1,[o]),N=T.useCallback(M=>(r==null?void 0:r(M))||{},[r]);return T.useEffect(()=>{var M,I;t?(M=g.current)==null||M.enableDrag():(I=g.current)==null||I.disableDrag()},[t,u]),T.useEffect(()=>{!u||!l.dragDropHandler||(g.current=l.dragDropHandler.registerContainer(u,{draggableSelector:s,droppableSelector:a,isDragEnabled:t,onDragStart:m,onDragEnd:y,onDragEnterContainer:x,onDragLeaveContainer:_,getDraggableInfo:N,getIndicatorPosition:E,onDrop:S,onDropEnd:C}))},[N,E,S,C,u,s,a,t,l.dragDropHandler,y,x,_,m]),{setRef:f,isDraggedOver:d}}function zs({handleDrop:t,disabled:e=!1}){const[n,i]=T.useState(null),[r,o]=T.useState(!1);return T.useEffect(()=>{const s=n;if(!s||e)return;s.addEventListener("dragenter",a),s.addEventListener("dragover",l),s.addEventListener("dragleave",u),s.addEventListener("drop",f);function a(h){d(h),o(!0)}function l(h){d(h),o(!0)}function u(h){d(h),o(!1)}function f(h){d(h);const{dataTransfer:g}=h;g.files&&g.files.length>0&&t(Array.from(g.files)),o(!1)}function d(h){h.preventDefault(),h.stopPropagation()}return()=>{s.removeEventListener("dragenter",a),s.removeEventListener("dragover",l),s.removeEventListener("dragleave",u),s.removeEventListener("drop",f)}},[t,n,e]),{setRef:i,isDraggedOver:r}}function lw({config:t,disabled:e=!1}){const[n,i]=T.useState(!1),[r,o]=T.useState(!1),s=T.useRef(!1),a=!e&&n&&r;T.useEffect(()=>{const u=t==null?void 0:t.jsUrl;if(u){if(window.pintura){i(!0);return}try{const f=new URL(u);import(`${f.protocol}//${f.host}${f.pathname}`).then(()=>{i(!0)}).catch(()=>{})}catch{}}},[t==null?void 0:t.jsUrl]),T.useEffect(()=>{let u=t==null?void 0:t.cssUrl;if(u)try{if(document.querySelector(`link[href="${u}"]`))o(!0);else{let d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.href=u,d.onload=()=>{o(!0)},document.head.appendChild(d)}}catch{}},[t==null?void 0:t.cssUrl]);const l=T.useCallback(({image:u,handleSave:f})=>{if(s.current=!1,ui("Image Edit Button Clicked",{location:"editor"}),u&&a){const d=new URL(u);d.searchParams.has("v")||d.searchParams.set("v",Date.now());const h=d.href,g=window.pintura.openDefaultEditor({src:h,enableTransparencyGrid:!0,util:"crop",utils:["crop","filter","finetune","redact","annotate","trim","frame","resize"],frameOptions:[[void 0,m=>m.labelNone],["solidSharp",m=>m.frameLabelMatSharp],["solidRound",m=>m.frameLabelMatRound],["lineSingle",m=>m.frameLabelLineSingle],["hook",m=>m.frameLabelCornerHooks],["polaroid",m=>m.frameLabelPolaroid]],cropSelectPresetFilter:"landscape",cropSelectPresetOptions:[[void 0,"Custom"],[1,"Square"],[2/1,"2:1"],[3/2,"3:2"],[4/3,"4:3"],[16/10,"16:10"],[16/9,"16:9"],[1/2,"1:2"],[2/3,"2:3"],[3/4,"3:4"],[10/16,"10:16"],[9/16,"9:16"]],locale:{labelButtonExport:"Save and close"},previewPad:!0,willClose:()=>s.current});g.on("loaderror",()=>{}),g.on("process",m=>{f(m.dest),ui("Image Edit Saved",{location:"editor"})})}},[a]);return T.useEffect(()=>{const u=f=>{f.target.closest('.PinturaModal button[title="Close"]')&&(s.current=!0)};return window.addEventListener("click",u,{capture:!0}),()=>{window.removeEventListener("click",u)}},[]),{isEnabled:a,openEditor:l}}var YEe=Va,VEe=Hy,XEe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GEe=/^\w*$/;function KEe(t,e){if(YEe(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||VEe(t)?!0:GEe.test(t)||!XEe.test(t)||e!=null&&t in Object(e)}var JEe=KEe,uH=XA,eTe="Expected a function";function H6(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(eTe);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(H6.Cache||uH),n}H6.Cache=uH;var tTe=H6,nTe=tTe,iTe=500;function rTe(t){var e=nTe(t,function(i){return n.size===iTe&&n.clear(),i}),n=e.cache;return e}var oTe=rTe,sTe=oTe,aTe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lTe=/\\(\\)?/g,uTe=sTe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(aTe,function(n,i,r,o){e.push(r?o.replace(lTe,"$1"):i||n)}),e}),cTe=uTe,fTe=Va,dTe=JEe,hTe=cTe,pTe=Qy;function gTe(t,e){return fTe(t)?t:dTe(t,e)?[t]:hTe(pTe(t))}var uw=gTe,mTe=Hy;function vTe(t){if(typeof t=="string"||mTe(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var Q6=vTe,bTe=uw,kTe=Q6;function yTe(t,e){e=bTe(e,t);for(var n=0,i=e.length;t!=null&&n<i;)t=t[kTe(e[n++])];return n&&n==i?t:void 0}var wTe=yTe,xTe=QO,_Te=uw,OTe=FO,cH=Ya,STe=Q6;function CTe(t,e,n,i){if(!cH(t))return t;e=_Te(e,t);for(var r=-1,o=e.length,s=o-1,a=t;a!=null&&++r<o;){var l=STe(e[r]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(r!=s){var f=a[l];u=i?i(f,l,a):void 0,u===void 0&&(u=cH(f)?f:OTe(e[r+1])?[]:{})}xTe(a,l,u),a=a[l]}return t}var ETe=CTe,TTe=wTe,$Te=ETe,MTe=uw;function NTe(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=TTe(t,s);n(a,s)&&$Te(o,MTe(s,t),a)}return o}var ATe=NTe;function PTe(t,e){return t!=null&&e in Object(t)}var DTe=PTe,ITe=uw,LTe=jO,RTe=Va,jTe=FO,FTe=DO,zTe=Q6;function BTe(t,e,n){e=ITe(e,t);for(var i=-1,r=e.length,o=!1;++i<r;){var s=zTe(e[i]);if(!(o=t!=null&&n(t,s)))break;t=t[s]}return o||++i!=r?o:(r=t==null?0:t.length,!!r&&FTe(r)&&jTe(s,r)&&(RTe(t)||LTe(t)))}var WTe=BTe,HTe=DTe,QTe=WTe;function UTe(t,e){return t!=null&&QTe(t,e,HTe)}var ZTe=UTe,qTe=ATe,YTe=ZTe;function VTe(t,e){return qTe(t,e,function(n,i){return YTe(t,i)})}var XTe=VTe,fH=Od,GTe=jO,KTe=Va,dH=fH?fH.isConcatSpreadable:void 0;function JTe(t){return KTe(t)||GTe(t)||!!(dH&&t&&t[dH])}var e8e=JTe,t8e=qO,n8e=e8e;function hH(t,e,n,i,r){var o=-1,s=t.length;for(n||(n=n8e),r||(r=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?hH(a,e-1,n,i,r):t8e(r,a):i||(r[r.length]=a)}return r}var i8e=hH,r8e=i8e;function o8e(t){var e=t==null?0:t.length;return e?r8e(t,1):[]}var s8e=o8e;function a8e(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var l8e=a8e,u8e=l8e,pH=Math.max;function c8e(t,e,n){return e=pH(e===void 0?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=pH(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),u8e(t,this,a)}}var f8e=c8e;function d8e(t){return function(){return t}}var h8e=d8e;function p8e(t){return t}var g8e=p8e,m8e=h8e,gH=GA,v8e=g8e,b8e=gH?function(t,e){return gH(t,"toString",{configurable:!0,enumerable:!1,value:m8e(e),writable:!0})}:v8e,k8e=b8e,y8e=800,w8e=16,x8e=Date.now;function _8e(t){var e=0,n=0;return function(){var i=x8e(),r=w8e-(i-n);if(n=i,r>0){if(++e>=y8e)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var O8e=_8e,S8e=k8e,C8e=O8e,E8e=C8e(S8e),T8e=E8e,$8e=s8e,M8e=f8e,N8e=T8e;function A8e(t){return N8e(M8e(t,void 0,$8e),t+"")}var P8e=A8e,D8e=XTe,I8e=P8e,L8e=I8e(function(t,e){return t==null?{}:D8e(t,e)}),R8e=L8e;const U6=xo(R8e);function Z6(t){return new URL(t).pathname.match(/\/([^/]*)$/)[1]}function j8e({images:t,updateImages:e,isSelected:n=!1,maxImages:i=9,disabled:r=!1}){const o=T.useContext(ft),[s,a]=T.useState(null),[l,u]=T.useState(!1),f=T.useRef(null),d=T.useRef(!1),h=N=>{(N.type==="image"||N.cardName==="image")&&N.dataset.src&&t.length!==i&&f.current.enableDrag()},g=()=>{u(!1)},m=()=>{u(!0)},y=()=>{u(!1)},x=N=>{if(N.type!=="image"&&N.cardName!=="image")return!1;let M=[...t],{insertIndex:I}=N;const B=Array.from(s.querySelectorAll("[data-image]")).indexOf(N.element);if(M.length||(I=0),E(B,I)){if(B===-1){const{dataset:Z}=N,R=N.element.querySelector(`img[src="${Z.src}"]`);Z.width=Z.width||R.naturalWidth,Z.height=Z.height||R.naturalHeight,Z.fileName=(Z==null?void 0:Z.fileName)||Z6(Z.src),M.splice(I,0,Z)}else{const Z=M.find(Q=>Q.src===N.dataset.src),R=B<I&&I?-1:0;M=M.filter(Q=>Q!==Z),M.splice(I+R,0,Z)}return e(M),f.current.refresh(),d.current=!0,!0}return!1},_=(N,M)=>{if(d.current||!M){d.current=!1;return}const I=t.find(W=>W.src===N.dataset.src);if(I){const W=t.filter(B=>B!==I);e(W),f.current.refresh()}},S=N=>{let M=N.querySelector("img").getAttribute("src"),I=t.find(B=>B.src===M)||t.find(B=>B.previewSrc===M),W=I&&U6(I,["fileName","src","row","width","height","caption"]);return I?{type:"image",dataset:W}:{}},C=(N,M,I)=>{if(N.type!=="image"&&N.cardName!=="image")return!1;const W=M.closest("[data-row]"),B=Array.from(s.querySelectorAll("[data-image]")),Z=B.indexOf(N.element),R=B.indexOf(M);if(W&&E(Z,R,I)){const Q=Array.from(W.querySelectorAll("[data-image]")),V=Q.indexOf(M);let H=R;const j=[],q=[];return Q.forEach((Y,K)=>{K<V&&j.push(Y),K===V&&(I.match(/left/)?q.push(Y):j.push(Y)),K>V&&q.push(Y)}),I.match(/right/)&&(H+=1),{direction:"horizontal",position:I.match(/left/)?"left":"right",beforeElems:j,afterElems:q,insertIndex:H}}else return!1},E=(N,M,I="")=>N===-1?!0:N===M||typeof M>"u"?!1:(I.match(/left/)&&(M-=1),I.match(/right/)&&(M+=1),M!==N);return T.useEffect(()=>{var N,M;n?(N=f.current)==null||N.enableDrag():(M=f.current)==null||M.disableDrag()},[n,s]),T.useEffect(()=>{const N=s;if(!(!N||!(o!=null&&o.dragDropHandler)))return f.current=o.dragDropHandler.registerContainer(N,{draggableSelector:"[data-image]",droppableSelector:"[data-image]",isDragEnabled:!r&&t.length>0,onDragStart:h,onDragEnd:g,onDragEnterContainer:m,onDragLeaveContainer:y,getDraggableInfo:S,getIndicatorPosition:C,onDrop:x,onDropEnd:_}),()=>{f.current&&(f.current.destroy(),f.current=null)}},[s,t,o.dragDropHandler]),{setContainerRef:a,isDraggedOver:l}}function mH({index:t,images:e,deleteImage:n,isDragging:i}){const r=e.map((o,s)=>{const a=e.length===1?"single":s===0?"first":s===e.length-1?"last":"middle";return k.jsx(vH,{deleteImage:n,image:o,isDragging:i,position:a},o.src)});return k.jsx("div",{className:`flex flex-row justify-center ${t!==0&&"mt-4"}`,"data-row":t,children:r})}function vH({image:t,deleteImage:e,position:n,isDragging:i}){const o={flex:`${(t.width||1)/(t.height||1)} 1 0%`};let s=[],a=[];switch(n){case"first":s=["pr-2"],a=["mr-2"];break;case"middle":s=["pl-2","pr-2"],a=["ml-2","mr-2"];break;case"last":s=["pl-2"],a=["ml-2"];break}return k.jsxs("div",{className:`group/image relative ${s.join(" ")}`,"data-testid":"gallery-image",style:o,"data-image":!0,children:[k.jsx("img",{alt:t.alt,className:"pointer-events-none block size-full",height:t.height,src:t.previewSrc||t.src,width:t.width}),i?null:k.jsx("div",{className:`pointer-events-none invisible absolute inset-0 bg-gradient-to-t from-black/0 via-black/5 to-black/30 p-3 opacity-0 transition-all group-hover/image:visible group-hover/image:opacity-100 ${a.join(" ")}`,children:k.jsx("div",{className:"flex flex-row-reverse",children:k.jsx(pl,{Icon:Kc,label:"Delete",onClick:()=>e(t)})})})]})}function bH({images:t,deleteImage:e,reorderHandler:n,isDragging:i}){const r=[],o=t.length,s=function(l){return o>1&&o%3===1&&l===o-2};t.forEach((l,u)=>{let f=l.row||0;s(u)&&(f=f+1),r[f]||(r[f]=[]),r[f].push(l)});const a=r.map((l,u)=>k.jsx(mH,{deleteImage:e,images:l,index:u,isDragging:i},u));return k.jsx("div",{ref:n.setContainerRef,className:"not-kg-prose flex flex-col","data-gallery":!0,children:a})}function kH({openFilePicker:t,isDraggedOver:e,reorderHandler:n}){return k.jsx(Mu,{desc:"Click to select up to 9 images",filePicker:t,icon:"gallery",isDraggedOver:e,multiple:!0,placeholderRef:n.setContainerRef,size:"large"})}function yH({progress:t}){const e={width:`${t==null?void 0:t.toFixed(0)}%`};return k.jsx("div",{className:"absolute inset-0 flex min-w-full items-center justify-center overflow-hidden bg-white/50","data-testid":"gallery-progress",children:k.jsx(js,{bgStyle:"transparent",style:e})})}function F8e(){return k.jsx("div",{className:"bg-black-60 pointer-events-none absolute inset-0 flex items-center bg-black/60","data-kg-card-drag-text":!0,children:k.jsx("span",{className:"sans-serif fw7 f7 block w-full text-center font-bold text-white",children:"Drop to add up to 9 images"})})}function wH({captionEditor:t,captionEditorInitialState:e,clearErrorMessage:n,deleteImage:i,filesDropper:r,errorMessage:o,fileInputRef:s,imageMimeTypes:a=[],images:l=[],isSelected:u,onFileChange:f,uploader:d={},reorderHandler:h={}}){const g=()=>{s.current.click()},{isLoading:m,progress:y}=d,{isDraggedOver:x}=r,{isDraggedOver:_}=h,S=x||_;return k.jsxs("figure",{children:[k.jsxs("div",{ref:r.setRef,className:"not-kg-prose relative","data-testid":"gallery-container",children:[l.length?k.jsx(bH,{deleteImage:i,images:l,isDragging:S,reorderHandler:h}):k.jsx(kH,{isDraggedOver:S,openFilePicker:g,reorderHandler:h}),m?k.jsx(yH,{progress:y}):null,l.length&&x?k.jsx(F8e,{}):null,o&&!S?k.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/60","data-testid":"gallery-error",children:k.jsxs("span",{className:"center sans-serif f7 block bg-red px-2 font-bold text-white",children:[o,".",k.jsx("button",{className:"ml-2 cursor-pointer underline","data-testid":"clear-gallery-error",type:"button",onClick:n,children:"Dismiss"})]})}):null,k.jsx("form",{onChange:f,children:k.jsx("input",{ref:s,accept:a.join(","),hidden:!0,multiple:!0,name:"image-input",type:"file"})})]}),k.jsx(dh,{captionEditor:t,captionEditorInitialState:e,captionPlaceholder:"Type caption for gallery (optional)",dataTestId:"gallery-card-caption",isSelected:u})]})}mH.propTypes={deleteImage:P.func,images:P.array,index:P.number,isDragging:P.bool},vH.propTypes={deleteImage:P.func,image:P.object,position:P.string,isDragging:P.bool},bH.propTypes={deleteImage:P.func,filesDropper:P.object,images:P.array,isDragging:P.bool,reorderHandler:P.object},kH.propTypes={openFilePicker:P.func,isDraggedOver:P.bool,reorderHandler:P.object},yH.propTypes={progress:P.number},wH.propTypes={isSelected:P.bool,onFileChange:P.func,captionEditor:P.object,captionEditorInitialState:P.object,errorMessage:P.string,clearErrorMessage:P.func,deleteImage:P.func,fileInputRef:P.object,filesDropper:P.object,imageMimeTypes:P.array,images:P.array,uploader:P.object,reorderHandler:P.object};async function sf(t){const e=new Image;return new Promise((n,i)=>{e.onload=()=>{n({width:e.naturalWidth,height:e.naturalHeight})},e.onerror=i,e.src=t})}function z8e({nodeKey:t,captionEditor:e,captionEditorInitialState:n}){const[i]=Oe.useLexicalComposerContext(),{fileUploader:r,cardConfig:o}=T.useContext(ft),{isSelected:s}=T.useContext(rn),a=T.useRef(),[l,u]=T.useState(null),[f,d]=T.useState(!1),[h,g]=T.useState(()=>i.getEditorState().read(()=>A.$getNodeByKey(t).images)),m=j8e({images:h,updateImages:_,isSelected:s}),y=r.useFileUpload("image"),x=zs({handleDrop:M});function _(Z){g0(Z),g(Z),S(Z)}function S(Z){i.update(()=>{A.$getNodeByKey(t).setImages(Z)})}const C=Z=>{const R=h.filter(Q=>Q.fileName!==Z.fileName);g0(R),g(R),S(R)},E=async Z=>{const R=h.length,Q=q6-R,V=Array.prototype.slice.call(Z,0,Q);if(V.length<Z.length&&u("Galleries are limited to 9 images"),V.length===0)return;const H=[...h];for(const Y of V){const K=URL.createObjectURL(Y),{width:te,height:oe}=await sf(K);H.push({fileName:Y.name,previewSrc:K,width:te,height:oe})}g0(H),g(H);const j=await y.upload(V),q=[...H];if(!j){u("Something went wrong while uploading images. Please refresh the page and try again");return}j.forEach(Y=>{const K=q.find(te=>te.fileName===Y.fileName);if(!K){console.error("Uploaded image not found in images array. Filename:",Y.fileName);return}K.src=Y.url}),g(H),S(H)},N=async Z=>{const R=Z.target.files;if(!(!R||!R.length))return await E(R)};async function M(Z){await E(Z)}function I(Z){Z.preventDefault(),a.current.click()}const W=()=>{u(null)},B=!s||x.isDraggedOver||m.isDraggedOver||h.length<=0;return k.jsxs(k.Fragment,{children:[k.jsx(wH,{captionEditor:e,captionEditorInitialState:n,clearErrorMessage:W,deleteImage:C,errorMessage:l,fileInputRef:a,filesDropper:x,imageMimeTypes:r.fileTypes.image.mimeTypes,images:h,isSelected:s,reorderHandler:m,uploader:y,onFileChange:N}),k.jsx(xt,{"data-kg-card-toolbar":"gallery",isVisible:f,children:k.jsx(Kn,{onClose:()=>d(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"gallery",isVisible:!B,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"add-gallery-image",icon:"add",isActive:!1,label:"Add images",onClick:I}),k.jsx(Bn,{hide:!o.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!o.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>d(!0)})]})})]})}const xH=A.createCommand(),q6=9,B8e=3,_H=["row","src","width","height","alt","caption","fileName"];function g0(t){t.forEach((e,n)=>{e.row=Math.ceil((n+1)/B8e)-1})}class cw extends nm{constructor(n={},i){super(n,i);ye(this,"__captionEditor");ye(this,"__captionEditorInitialState");const{caption:r}=n;vi(this,"__captionEditor",{editor:n.captionEditor,nodes:Qi}),!n.captionEditor&&r&&bi(this,"__captionEditor",`${r}`)}getIcon(){return a_}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.captionEditor=i.__captionEditor,n.captionEditorInitialState=i.__captionEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__captionEditor&&this.__captionEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__captionEditor,null),r=si(i);n.caption=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),width:"wide",children:k.jsx(z8e,{captionEditor:this.__captionEditor,captionEditorInitialState:this.__captionEditorInitialState,nodeKey:this.getKey()})})}setImages(n){const i=n.slice(0,q6).map(r=>U6(r,_H));g0(i),this.images=i}addImages(n){const i=[...this.images,...n].slice(0,q6).map(r=>U6(r,_H));g0(i),this.images=i}}ye(cw,"kgMenu",[{label:"Gallery",desc:"Create an image gallery",Icon:a_,insertCommand:xH,insertParams:{triggerFileDialog:!0},matches:["gallery"],priority:5,shortcut:"/gallery"}]);const OH=t=>new cw(t);function m0(t){return/\.(gif)$/.test(t)}function SH({src:t,alt:e,previewSrc:n,imageUploader:i,imageCardDragHandler:r,imageFileDragHandler:o,isPinturaEnabled:s,openImageEditor:a,onFileChange:l}){var h;const u={width:`${(h=i.progress)==null?void 0:h.toFixed(0)}%`},f=i.progress.toFixed(0)<100?`upload in progress, ${i.progress}`:"";function d(g){o==null||o.setRef(g),r==null||r.setRef(g)}return k.jsxs("div",{ref:d,className:"not-kg-prose group/image relative",children:[k.jsx("img",{alt:e||f,className:`mx-auto block ${n?"opacity-40":""}`,"data-testid":i.isLoading?"image-card-loading":"image-card-populated",src:n||t}),i.isLoading?k.jsx("div",{className:"absolute inset-0 flex min-w-full items-center justify-center overflow-hidden bg-white/50","data-testid":"upload-progress",children:k.jsx(js,{style:u})}):k.jsx(k.Fragment,{}),r!=null&&r.isDraggedOver?k.jsx("div",{className:"absolute inset-0 flex items-center justify-center border border-grey/20 bg-black/80 dark:border-grey/10 dark:bg-grey-950",children:k.jsx(N6,{text:"Drop to convert to a gallery"})}):null,o!=null&&o.isDraggedOver?k.jsx("div",{className:"absolute inset-0 flex items-center justify-center border border-grey/20 bg-black/80 dark:border-grey/10 dark:bg-grey-950","data-testid":"drag-overlay",children:k.jsx(N6,{text:"Drop to replace image"})}):null,s&&!m0(t)&&k.jsx("div",{className:"pointer-events-none invisible absolute inset-0 bg-gradient-to-t from-black/0 via-black/5 to-black/30 p-3 opacity-0 transition-all group-hover/image:visible group-hover/image:opacity-100",children:k.jsx("div",{className:"flex flex-row-reverse",children:k.jsx(pl,{Icon:zy,label:"Edit",onClick:()=>a({image:t,handleSave:g=>{l({target:{files:[g]}})}})})})})]})}function CH({onFileChange:t,setFileInputRef:e,imageFileDragHandler:n,errors:i}){const r=T.useRef(null),o=s=>{r.current=s,e(r)};return k.jsxs(k.Fragment,{children:[k.jsx(Mu,{desc:"Click to select an image",errors:i,filePicker:()=>Wi({fileInputRef:r}),icon:"image",isDraggedOver:n==null?void 0:n.isDraggedOver,placeholderRef:n==null?void 0:n.setRef}),k.jsx(ew,{fileInputRef:o,filePicker:()=>Wi({fileInputRef:r}),onFileChange:t})]})}const EH=({src:t,altText:e,previewSrc:n,imageUploader:i,onFileChange:r,setFileInputRef:o,imageCardDragHandler:s,imageFileDragHandler:a,isPinturaEnabled:l,openImageEditor:u})=>n||t?k.jsx(SH,{alt:e,imageCardDragHandler:s,imageFileDragHandler:a,imageUploader:i,isPinturaEnabled:l,openImageEditor:u,previewSrc:n,src:t,onFileChange:r}):k.jsx(CH,{errors:i.errors,imageFileDragHandler:a,setFileInputRef:o,onFileChange:r});function TH({isSelected:t,src:e,onFileChange:n,captionEditor:i,captionEditorInitialState:r,altText:o,setAltText:s,setFigureRef:a,fileInputRef:l,cardWidth:u,previewSrc:f,imageUploader:d,imageCardDragHandler:h,imageFileDragHandler:g,isPinturaEnabled:m,openImageEditor:y}){const x=T.useRef(null);T.useEffect(()=>{a&&a(x)},[x,a]);const _=S=>{l&&(l.current=S.current)};return k.jsx(k.Fragment,{children:k.jsxs("figure",{ref:x,"data-kg-card-width":u,children:[k.jsx(EH,{altText:o,imageCardDragHandler:h,imageFileDragHandler:g,imageUploader:d,isPinturaEnabled:m,openImageEditor:y,previewSrc:f,setFileInputRef:_,src:e,onFileChange:n}),k.jsx(dh,{altText:o||"",altTextPlaceholder:"Type alt text for image (optional)",captionEditor:i,captionEditorInitialState:r,captionPlaceholder:"Type caption for image (optional)",dataTestId:"image-caption-editor",isSelected:t,readOnly:!t,setAltText:s})]})})}EH.propTypes={src:P.string,altText:P.string,previewSrc:P.string,imageUploader:P.object,onFileChange:P.func,setFileInputRef:P.func,imageFileDragHandler:P.object,imageCardDragHandler:P.object,isPinturaEnabled:P.bool,openImageEditor:P.func},SH.propTypes={src:P.string,alt:P.string,previewSrc:P.string,imageUploader:P.object,imageCardDragHandler:P.object,imageFileDragHandler:P.object,isPinturaEnabled:P.bool,openImageEditor:P.func,onFileChange:P.func},CH.propTypes={onFileChange:P.func,setFileInputRef:P.func,errors:P.array,imageFileDragHandler:P.object},TH.propTypes={isSelected:P.bool,src:P.string,onFileChange:P.func,captionEditor:P.object,captionEditorInitialState:P.object,altText:P.string,setAltText:P.func,setFigureRef:P.func,fileInputRef:P.object,cardWidth:P.string,previewSrc:P.string,imageUploader:P.object,imageFileDragHandler:P.object,imageCardDragHandler:P.object,isPinturaEnabled:P.bool,openImageEditor:P.func};function Y6({href:t,update:e,cancel:n}){const[i,r]=T.useState(t),o=T.useRef(null),s=T.useRef(null);T.useEffect(()=>{r(t)},[t]),T.useEffect(()=>{o.current.focus()},[]);const a=T.useCallback(u=>{s.current&&!s.current.contains(u.target)&&n()},[n]);T.useEffect(()=>(window.addEventListener("mousedown",a),()=>{window.removeEventListener("mousedown",a)}),[a]);const l=T.useCallback(u=>{u.key==="Escape"&&n()},[n]);return T.useEffect(()=>(window.addEventListener("keydown",l),()=>{window.removeEventListener("keydown",l)}),[l]),k.jsxs("div",{ref:s,className:"relative m-0 flex items-center justify-evenly gap-1 rounded-lg bg-white p-1 font-sans text-md font-normal text-black shadow-md dark:bg-grey-950",children:[k.jsx("input",{ref:o,className:"mb-[1px] h-8 w-full pl-3 pr-9 leading-loose text-grey-900 selection:bg-grey/40 dark:bg-grey-950 dark:text-grey-300 dark:selection:bg-grey-800/40 dark:selection:text-grey-100","data-testid":"link-input",name:"link-input",placeholder:"Enter url",value:i,"data-kg-link-input":!0,onInput:u=>{r(u.target.value)},onKeyDown:u=>{if(u.key==="Enter"){u.preventDefault(),e(i);return}}}),!!i&&k.jsx("button",{"aria-label":"Close",className:"absolute right-3 cursor-pointer",type:"button",onClick:u=>{u.stopPropagation(),r(""),o.current.focus()},children:k.jsx(vh,{className:"size-4 stroke-2 text-grey"})})]})}Y6.propTypes={href:P.string};async function W8e(t,e){if(!t.startsWith("data:"))return;const n=t.split(",")[0].split(":")[1].split(";")[0];if(!e){let o;try{o=window.crypto.randomUUID()}catch{o=Math.random().toString(36).substring(2,15)}const s=n.split("/")[1];e=`data-src-image-${o}.${s}`}const i=await fetch(t).then(o=>o.blob());return new File([i],e,{type:n,lastModified:new Date})}const v0=async(t,e,n,i)=>{if(!t)return;let r=URL.createObjectURL(t[0]);r&&await n.update(()=>{const u=A.$getNodeByKey(e);u.previewSrc=r});const{width:o,height:s}=await sf(r),a=await i(t),l=a==null?void 0:a[0].url;await n.update(()=>{const u=A.$getNodeByKey(e);u.width=o,u.height=s,u.src=l,u.previewSrc=null})},V6=async(t,e)=>{if(!t)return;const n=await e(t),i=n==null?void 0:n[0].url,{width:r,height:o}=await sf(i);return{imageSrc:i,width:r,height:o}};function H8e({nodeKey:t,initialFile:e,src:n,altText:i,captionEditor:r,captionEditorInitialState:o,triggerFileDialog:s,previewSrc:a,href:l}){var te;const[u]=Oe.useLexicalComposerContext(),[f,d]=T.useState(!1),{fileUploader:h,cardConfig:g}=T.useContext(ft),{isSelected:m,cardWidth:y,setCardWidth:x}=T.useContext(rn),_=T.useRef(),S=T.useRef(),[C,E]=T.useState(!1),N=h.useFileUpload("image"),M=zs({handleDrop:K}),I=T.useCallback(oe=>oe.type==="card"&&oe.cardName==="image"&&oe.nodeKey!==t,[t]),W=T.useCallback(oe=>{const{type:ce,cardName:U,nodeKey:F,dataset:se}=oe;ce==="card"&&U==="image"&&F&&se&&u.update(()=>{const le=A.$getNodeByKey(t),pe=A.$getNodeByKey(F),je=OH();se.fileName=(se==null?void 0:se.fileName)||Z6(se.src);const He=le.getDataset();He.fileName=(He==null?void 0:He.fileName)||Z6(He.src),je.addImages([He,se]),le.replace(je),pe.remove()})},[u,t]),B=qEe({canDrop:I,onDrop:W}),{isEnabled:Z,openEditor:R}=lw({config:g.pinturaConfig});T.useEffect(()=>{if(!(n!=null&&n.startsWith("data:"))||N.isLoading)return;let oe=!0;return(async()=>{const U=await W8e(n);oe&&await v0([U],t,u,N.upload)})(),()=>oe=!1},[u,N.isLoading,N.upload,t,n]),T.useEffect(()=>{(async F=>{F&&!n&&await v0([F],t,u,N.upload)})(e);const ce=async()=>{if(n&&!e&&!s){const{width:F,height:se}=await sf(n);u.update(()=>{const le=A.$getNodeByKey(t);le.width=F,le.height=se})}};u.getEditorState().read(()=>{const F=A.$getNodeByKey(t);return!F.width||!F.height})&&ce()},[]);const Q=async oe=>{const ce=oe.target.files;return u.update(()=>{const U=A.$getNodeByKey(t);U.src=""}),await v0(ce,t,u,N.upload)},V=oe=>{u.update(()=>{const ce=A.$getNodeByKey(t);ce.href=oe})},H=oe=>{u.update(()=>{const ce=A.$getNodeByKey(t);ce.alt=oe})};T.useEffect(()=>{if(!s)return;const oe=setTimeout(()=>{Wi({fileInputRef:_}),u.update(()=>{const ce=A.$getNodeByKey(t);ce.triggerFileDialog=!1})});return()=>{clearTimeout(oe)}});const j=oe=>{u.update(()=>{const ce=A.$getNodeByKey(t);ce.cardWidth=oe,x(oe)})},q=()=>{d(!1),Y()},Y=()=>{u.update(()=>{const oe=A.$createNodeSelection();oe.add(t),A.$setSelection(oe)})};async function K(oe){await v0(oe,t,u,N.upload)}return k.jsxs(k.Fragment,{children:[k.jsx(TH,{altText:i,captionEditor:r,captionEditorInitialState:o,cardWidth:y,fileInputRef:_,imageCardDragHandler:B,imageFileDragHandler:M,imageUploader:N,isPinturaEnabled:Z,isSelected:m,openImageEditor:R,previewSrc:a,setAltText:H,src:n,onFileChange:Q}),k.jsx(xt,{"data-kg-card-toolbar":"image",isVisible:f,children:k.jsx(Y6,{cancel:q,href:l,update:oe=>{V(oe),q()}})}),k.jsx(xt,{"data-kg-card-toolbar":"image",isVisible:C,children:k.jsx(Kn,{onClose:()=>E(!1)})}),k.jsxs(xt,{"data-kg-card-toolbar":"image",isVisible:n&&m&&!f&&!C,children:[k.jsx(ew,{fileInputRef:S,mimeTypes:(te=h.fileTypes.image)==null?void 0:te.mimeTypes,onFileChange:Q}),k.jsxs(Jn,{children:[k.jsx(at,{hide:m0(n),icon:"imgRegular",isActive:y==="regular",label:"Regular width",onClick:()=>j("regular")}),k.jsx(at,{hide:m0(n),icon:"imgWide",isActive:y==="wide",label:"Wide width",onClick:()=>j("wide")}),k.jsx(at,{hide:m0(n),icon:"imgFull",isActive:y==="full",label:"Full width",onClick:()=>j("full")}),k.jsx(Bn,{hide:m0(n)}),k.jsx(at,{icon:"link",isActive:l||!1,label:"Link",onClick:()=>{d(!0)}}),k.jsx(Bn,{hide:!g.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!g.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>E(!0)})]})]})]})}const Q8e=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},J.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09Zm14.749 2.863 7.029 7.03"})),U8e="https://tenor.googleapis.com",Z8e="v2",q8e=600,fw={COMMON:"common",INVALID_API_KEY:"invalid_key"};function Y8e({config:t}){const[e,n]=T.useState([]),[i,r]=T.useState(null),[o,s]=T.useState(!1),[a,l]=T.useState(!1),[u,f]=T.useState([]),d=T.useRef(null),h=T.useRef(""),g=T.useRef([]),m=T.useRef(null),y=T.useRef(""),x=T.useRef(4),_=T.useRef([]),S=T.useRef([]);function C(te){return y.current=te,I(),te?N(te):M()}const E=kh((te="")=>C(te),q8e);async function N(te){h.current="search",await Q(h.current,{params:{q:te,media_filter:"minimal"}})}async function M(){h.current="featured",await Q(h.current,{params:{q:"excited",media_filter:"minimal"}})}function I(){S.current=[],d.current=null,W()}function W(){let te=[],oe=[];for(let ce=0;ce<x.current;ce+=1)te[ce]=[],oe[ce]=0;_.current=te,g.current=oe,S.current.length&&B()}function B(){S.current.forEach(te=>{Z(te)})}function Z(te){const oe=Math.min(...g.current),ce=g.current.indexOf(oe);g.current[ce]+=300*te.ratio,_.current[ce].push(te),te.columnIndex=ce,te.columnRowIndex=_.current[ce].length-1}function R(te,oe){const[ce,U]=te.media_formats.tinygif.dims;te.ratio=U/ce,S.current.push(te),te.index=oe,Z(te)}async function Q(te,oe){const ce=`${Z8e}/${te}`.replace(/\/+/,"/"),U=new URL(ce,U8e),F=new URLSearchParams(oe.params);return F.set("key",t.googleApiKey),F.set("client_key","ghost-editor"),F.set("contentfilter",Y()),U.search=F.toString(),m.current=arguments,r(null),s(!0),fetch(U).then(se=>V(se)).then(se=>se.json()).then(se=>H(se)).then(se=>j(se)).then(()=>{n(_.current),f(S.current)}).catch(se=>{!oe.ignoreErrors&&!i&&r(fw.COMMON),i&&i.startsWith("API key not valid")&&r(fw.INVALID_API_KEY),console.error(se)}).finally(()=>{s(!1),l(!1)})}async function V(te){if(te.status>=200&&te.status<300)return te;let oe;te.headers.map["content-type"].startsWith("application/json")?oe=await te.json().then(U=>U.error.message||U.error):te.headers.map["content-type"]==="text/xml"&&(oe=await te.text()),r(oe);const ce=new Error(oe);throw ce.response=te,ce}async function H(te){return d.current=te.next,te}async function j(te){return te.results.forEach((ce,U)=>R(ce,U)),te}function q(){if(!o){if(!S.current.length)return M();if(d.current!==null){const te={pos:d.current,media_filter:"minimal"};return h.current==="search"&&(te.q=y),l(!0),Q(h.current,{params:te})}}}function Y(){return t.contentFilter||"off"}function K(te){x.current=te,W(),n(_.current)}return{updateSearch:E,isLoading:o,isLazyLoading:a,error:i,loadNextPage:q,columns:e,changeColumnCount:K,gifs:u}}function V8e({error:t}){return t===fw.COMMON?k.jsx("p",{children:"Uh-oh! Trouble reaching the Tenor API, please check your connection"}):t===fw.INVALID_API_KEY?k.jsxs("p",{children:["This version of the Tenor API is no longer supported. Please update your API key by following our",k.jsx("a",{href:"https://ghost.org/docs/config/#tenor",rel:"noopener noreferrer",target:"_blank",children:" documentation here"}),"."]}):k.jsx("p",{children:t})}function X8e({gif:t,onClick:e,highlightedGif:n={}}){const i=T.useRef(null),r=t.media_formats.tinygif;T.useEffect(()=>{var a,l;n.id===t.id?(a=i.current)==null||a.focus():(l=i.current)==null||l.blur()},[t.id,n.id]);const o=()=>{e(t)};return k.jsx("button",{ref:i,className:"cursor-pointer border-2 border-transparent focus:border-green-600","data-tenor-index":t.index,type:"button",onClick:o,children:k.jsx("img",{alt:r.content_description,height:r.dims[1],src:r.url,width:r.dims[0]})})}function G8e({isLazyLoading:t}){return t?k.jsx("div",{className:"inset-y-0 w-full p-6 text-center",children:k.jsx("div",{className:"inline-block size-[50px] animate-spin rounded-full border border-black/10 before:z-10 before:mt-[7px] before:block before:size-[7px] before:rounded-full before:bg-grey-800"})}):k.jsx("div",{className:"absolute inset-y-0 left-0 flex w-full items-center justify-center overflow-hidden",children:k.jsx("div",{className:"relative inline-block size-[50px] animate-spin rounded-full border border-black/10 before:z-10 before:mt-[7px] before:block before:size-[7px] before:rounded-full before:bg-grey-800"})})}const K8e=540,J8e=940,e9e=({onGifInsert:t,onClickOutside:e,updateSearch:n,columns:i,isLoading:r,isLazyLoading:o,error:s,changeColumnCount:a,loadNextPage:l,gifs:u})=>{const f=T.useRef(null),d=T.useRef(null),[h,g]=T.useState(void 0);T.useEffect(()=>{n()},[]),T.useEffect(()=>{if(!f.current)return;const K=new ResizeObserver(te=>{const[oe]=te,U=(Array.isArray(oe.contentBoxSize)?oe.contentBoxSize[0]:oe.contentBoxSize).inlineSize;let F=4;U<=K8e?F=2:U<=J8e&&(F=3),a(F)});return K.observe(f.current),()=>{K==null||K.disconnect()}},[]),T.useEffect(()=>(document.addEventListener("keydown",Z),()=>{document.removeEventListener("keydown",Z)}),[Z]),T.useEffect(()=>{const K=te=>{f.current&&!f.current.contains(te.target)&&e()};return window.addEventListener("mousedown",K),()=>{window.removeEventListener("mousedown",K)}},[e]);function m(K){const te=K.media_formats.gif,oe={src:te.url,width:te.dims[0],height:te.dims[1]};t(oe)}const y=K=>{n(K.target.value)},x=K=>{const te=K.target;te.scrollTop+te.clientHeight>=te.scrollHeight-1e3&&l()};function _(){var K;(K=d.current)==null||K.focus()}function S(){g(u[0])}function C(){h!==u[u.length-1]&&g(u[h.index+1])}function E(){h.index===0&&_(),g(u[h.index-1])}function N(){const K=i[h.columnIndex][h.columnRowIndex+1];K&&g(K)}function M(){const K=i[h.columnIndex][h.columnRowIndex-1];K?g(K):_()}function I(K){var le;const oe=document.querySelector(`[data-tenor-index="${h.index}"]`).getBoundingClientRect();let ce;K==="left"?ce=oe.left-oe.width/2:ce=oe.right+oe.width/2;let U=oe.top+oe.height/3,F,se=0;for(;!F;){let pe=(le=document.elementFromPoint(ce,U))==null?void 0:le.closest("[data-tenor-index]");if((pe==null?void 0:pe.dataset.tenorIndex)!==void 0){F=pe;break}if(se+=1,U-=5,se>10)break}F&&g(u[F.dataset.tenorIndex])}function W(){h.columnIndex!==i.length-1&&I("right")}function B(){if(h.index===0)return _();h.columnIndex!==0&&I("left")}function Z(K){switch(K.key){case"Tab":return R(K);case"ArrowLeft":return Q(K);case"ArrowRight":return V(K);case"ArrowUp":return H(K);case"ArrowDown":return j(K);case"Enter":return q(K);default:return null}}function R(K){if(K.shiftKey){if(h)return K.preventDefault(),E()}else{if((K==null?void 0:K.target.tagName)==="INPUT")return K.preventDefault(),K.target.blur(),S();if(h)return K==null||K.preventDefault(),C()}}function Q(K){h&&(K.preventDefault(),B())}function V(K){h&&(K.preventDefault(),W())}function H(K){h&&(K.preventDefault(),M())}function j(K){if(K.target.tagName==="INPUT")return K.preventDefault(),K.target.blur(),S();h&&(K.preventDefault(),N())}function q(K){if(K.preventDefault(),K.target.tagName==="INPUT")return K.target.blur(),S();if(h)return m(h)}const Y=r&&!o;return k.jsxs("div",{ref:f,className:"flex h-[540px] flex-col rounded border border-grey-200 bg-grey-50 dark:border-none dark:bg-grey-900","data-testid":"tenor-selector",onClick:K=>K.stopPropagation(),children:[k.jsx("header",{className:"p-6",children:k.jsxs("div",{className:"relative w-full",children:[k.jsx(Q8e,{className:"absolute left-4 top-1/2 size-4 -translate-y-2 text-grey-500 dark:text-grey-800"}),k.jsx("input",{ref:d,className:"h-10 w-full rounded-full border border-grey-300 pl-10 pr-8 font-sans text-md font-normal text-black focus:border-green focus:shadow-insetgreen dark:border-grey-800 dark:bg-grey-950 dark:text-white dark:placeholder:text-grey-800 dark:focus:border-green",placeholder:"Search Tenor for GIFs",autoFocus:!0,onChange:y})]})}),k.jsx("div",{className:"relative h-full overflow-hidden",children:k.jsxs("div",{className:"h-full overflow-auto px-6",onScroll:x,children:[!s&&!Y&&k.jsx("div",{className:"flex gap-4",children:i.map((K,te)=>k.jsx("section",{className:"flex grow basis-0 flex-col justify-start gap-4",children:K.map(oe=>k.jsx(X8e,{gif:oe,highlightedGif:h,onClick:m},oe.id))},te))}),!!r&&!s&&k.jsx(G8e,{isLazyLoading:o}),!!s&&k.jsx("div",{"data-testid":"tenor-selector-error",children:k.jsx(V8e,{error:s})})]})})]})},t9e=({nodeKey:t})=>{const{cardConfig:e}=T.useContext(ft),n=Y8e({config:e.tenor}),[i]=Oe.useLexicalComposerContext();T.useEffect(()=>{const s=a=>{a.key==="Escape"&&i.dispatchCommand(rf,{cardKey:t})};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[]);const r=()=>{i.dispatchCommand(rf,{cardKey:t})},o=async s=>{i.dispatchCommand(DH,s)};return k.jsx(e9e,{onClickOutside:r,onGifInsert:o,...n})};var n9e=Object.defineProperty,i9e=(t,e,n)=>e in t?n9e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wn=(t,e,n)=>i9e(t,typeof e!="symbol"?e+"":e,n),$H={exports:{}},b0={};/**
|
||
* @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 MH;function r9e(){if(MH)return b0;MH=1;var t=T,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,r=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,u){var f,d={},h=null,g=null;u!==void 0&&(h=""+u),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(g=l.ref);for(f in l)i.call(l,f)&&!o.hasOwnProperty(f)&&(d[f]=l[f]);if(a&&a.defaultProps)for(f in l=a.defaultProps,l)d[f]===void 0&&(d[f]=l[f]);return{$$typeof:e,type:a,key:h,ref:g,props:d,_owner:r.current}}return b0.Fragment=n,b0.jsx=s,b0.jsxs=s,b0}$H.exports=r9e();var pt=$H.exports;class o9e{constructor(e=3){Wn(this,"columnCount"),Wn(this,"columns",[]),Wn(this,"columnHeights"),this.columnCount=e,this.columns=[[]],this.columnHeights=null}reset(){let e=[],n=[];for(let i=0;i<this.columnCount;i+=1)e[i]=[],n[i]=0;this.columns=e,this.columnHeights=n}addColumns(){for(let e=0;e<this.columnCount;e++)this.columns.push([]),this.columnHeights.push(0)}addPhotoToColumns(e){this.columns||this.reset();let n=Math.min(...this.columnHeights),i=this.columnHeights.indexOf(n);this.columnHeights[i]+=300*e.ratio,this.columns[i].push(e)}getColumns(){return this.columns}changeColumnCount(e){e!==this.columnCount&&(this.columnCount=e,this.reset())}}const s9e=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{d:"M20 5.5l-8 8-8-8m-3.5 13h23",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,fill:"none"})),a9e=t=>J.createElement("svg",{viewBox:"0 0 32 32",...t},J.createElement("path",{d:"M17.4 29c-.8.8-2 .8-2.8 0L2.3 16.2C-.8 13.1-.8 8 2.3 4.8c3.1-3.1 8.2-3.1 11.3 0L16 7.6l2.3-2.8c3.1-3.1 8.2-3.1 11.3 0 3.1 3.1 3.1 8.2 0 11.4L17.4 29z"})),l9e={heart:a9e,download:s9e},X6=({icon:t,label:e,...n})=>{let i=null;return t&&(i=l9e[t]),pt.jsxs("a",{className:"text-grey-700 flex h-8 shrink-0 cursor-pointer items-center rounded-md bg-white px-3 py-2 font-sans text-sm font-medium leading-6 opacity-90 transition-all ease-in-out hover:opacity-100",onClick:r=>r.stopPropagation(),...n,children:[t&&i&&pt.jsx(i,{className:`size-4 ${t==="heart"?"fill-red":""} stroke-[3px] ${e&&"mr-1"}`}),e&&pt.jsx("span",{children:e})]})},NH=({payload:t,srcUrl:e,links:n,likes:i,user:r,alt:o,urls:s,height:a,width:l,zoomed:u,insertImage:f,selectImg:d})=>{const h=g=>{g.stopPropagation(),d(u?null:t)};return pt.jsxs("div",{className:`relative mb-6 block ${u?"h-full w-[max-content] cursor-zoom-out":"w-full cursor-zoom-in"}`,style:{backgroundColor:t.color||"transparent"},"data-kg-unsplash-gallery-item":!0,onClick:h,children:[pt.jsx("img",{alt:o,className:`${u?"h-full w-auto object-contain":"block h-auto"}`,height:a,loading:"lazy",src:e,width:l,"data-kg-unsplash-gallery-img":!0}),pt.jsxs("div",{className:"absolute inset-0 flex flex-col justify-between bg-gradient-to-b from-black/5 via-black/5 to-black/30 p-5 opacity-0 transition-all ease-in-out hover:opacity-100",children:[pt.jsxs("div",{className:"flex items-center justify-end gap-3",children:[pt.jsx(X6,{"data-kg-button":"unsplash-like",href:`${n.html}/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit`,icon:"heart",label:i.toString(),rel:"noopener noreferrer",target:"_blank"}),pt.jsx(X6,{"data-kg-button":"unsplash-download",href:`${n.download}/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit&force=true`,icon:"download"})]}),pt.jsxs("div",{className:"flex items-center justify-between",children:[pt.jsxs("div",{className:"flex items-center",children:[pt.jsx("img",{alt:"author",className:"mr-2 size-8 rounded-full",src:r.profile_image.medium}),pt.jsx("div",{className:"mr-2 truncate font-sans text-sm font-medium text-white",children:r.name})]}),pt.jsx(X6,{label:"Insert image","data-kg-unsplash-insert-button":!0,onClick:g=>{g.stopPropagation(),f({src:s.regular.replace(/&w=1080/,"&w=2000"),caption:`<span>Photo by <a href="${r.links.html}">${r.name}</a> / <a href="https://unsplash.com/?utm_source=ghost&utm_medium=referral&utm_campaign=api-credit">Unsplash</a></span>`,height:a,width:l,alt:o,links:n})}})]})]})]})},u9e=({payload:t,insertImage:e,selectImg:n,zoomed:i})=>pt.jsx("div",{className:"flex h-full grow basis-0 justify-center","data-kg-unsplash-zoomed":!0,onClick:()=>n(null),children:pt.jsx(NH,{alt:t.alt_description,height:t.height,insertImage:e,likes:t.likes,links:t.links,payload:t,selectImg:n,srcUrl:t.urls.regular,urls:t.urls,user:t.user,width:t.width,zoomed:i})}),c9e=()=>pt.jsx("div",{className:"absolute inset-y-0 left-0 flex w-full items-center justify-center overflow-hidden pb-[8vh]","data-kg-loader":!0,children:pt.jsx("div",{className:"animate-spin before:bg-grey-800 relative inline-block size-[50px] rounded-full border border-black/10 before:z-10 before:mt-[7px] before:block before:size-[7px] before:rounded-full"})}),f9e=t=>pt.jsx("div",{className:"mr-6 flex grow basis-0 flex-col justify-start last-of-type:mr-0",children:t.children}),d9e=t=>t!=null&&t.columns?t==null?void 0:t.columns.map((e,n)=>pt.jsx(f9e,{children:e.map(i=>pt.jsx(NH,{alt:i.alt_description,height:i.height,insertImage:t==null?void 0:t.insertImage,likes:i.likes,links:i.links,payload:i,selectImg:t==null?void 0:t.selectImg,srcUrl:i.urls.regular,urls:i.urls,user:i.user,width:i.width,zoomed:(t==null?void 0:t.zoomed)||null},i.id))},n)):null,G6=t=>pt.jsx("div",{className:"relative h-full overflow-hidden","data-kg-unsplash-gallery":!0,children:pt.jsxs("div",{ref:t.galleryRef,className:`flex size-full justify-center overflow-auto px-20 ${t!=null&&t.zoomed?"pb-10":""}`,"data-kg-unsplash-gallery-scrollref":!0,children:[t.children,(t==null?void 0:t.isLoading)&&pt.jsx(c9e,{})]})}),h9e=({zoomed:t,error:e,galleryRef:n,isLoading:i,dataset:r,selectImg:o,insertImage:s})=>t?pt.jsx(G6,{galleryRef:n,zoomed:t,children:pt.jsx(u9e,{alt:t.alt_description,height:t.height,insertImage:s,likes:t.likes,links:t.links,payload:t,selectImg:o,srcUrl:t.urls.regular,urls:t.urls,user:t.user,width:t.width,zoomed:t})}):e?pt.jsx(G6,{galleryRef:n,zoomed:t,children:pt.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[pt.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Error"}),pt.jsx("p",{className:"text-lg font-medium",children:e})]})}):pt.jsx(G6,{galleryRef:n,isLoading:i,zoomed:t,children:pt.jsx(d9e,{columns:r,insertImage:s,selectImg:o,zoomed:t})}),p9e=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},J.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),g9e=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},J.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09Zm14.749 2.863 7.029 7.03"})),m9e=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",...t},J.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),v9e=({closeModal:t,handleSearch:e,children:n})=>pt.jsxs(pt.Fragment,{children:[pt.jsx("div",{className:"fixed inset-0 z-40 h-[100vh] bg-black opacity-60"}),pt.jsxs("div",{className:"not-kg-prose fixed inset-8 z-50 overflow-hidden rounded bg-white shadow-xl","data-kg-modal":"unsplash",children:[pt.jsx("button",{className:"absolute right-6 top-6 cursor-pointer",type:"button",children:pt.jsx(p9e,{className:"text-grey-400 size-4 stroke-2","data-kg-modal-close-button":!0,onClick:()=>t()})}),pt.jsxs("div",{className:"flex h-full flex-col",children:[pt.jsxs("header",{className:"flex shrink-0 items-center justify-between px-20 py-10",children:[pt.jsxs("h1",{className:"flex items-center gap-2 font-sans text-3xl font-bold text-black",children:[pt.jsx(m9e,{className:"mb-1"}),"Unsplash"]}),pt.jsxs("div",{className:"relative w-full max-w-sm",children:[pt.jsx(g9e,{className:"text-grey-700 absolute left-4 top-1/2 size-4 -translate-y-2"}),pt.jsx("input",{className:"border-grey-300 focus:border-grey-400 h-10 w-full rounded-full border border-solid pl-10 pr-8 font-sans text-md font-normal text-black focus-visible:outline-none",placeholder:"Search free high-resolution photos",autoFocus:!0,"data-kg-unsplash-search":!0,onChange:e})]})]}),n]})]})]}),b9e=[{id:"TA5hw14Coh4",slug:"a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4",alternative_slugs:{en:"a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4"},created_at:"2024-02-07T22:39:36Z",updated_at:"2024-03-07T23:46:14Z",promoted_at:null,width:8640,height:5760,color:"#8c5940",blur_hash:"LKD]brE2IUr?Lgwci_NaDjR*ofoe",description:"NEOM will be home to one of the world’s largest nature reserves: a 25,000 sq km stretch of wilderness, encompassing two deserts divided by a mountain range. | NEOM, Saudi Arabia",alt_description:"a person standing on a sand dune in the desert",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1707345512638-997d31a10eaa?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1707345512638-997d31a10eaa"},links:{self:"https://api.unsplash.com/photos/a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4",html:"https://unsplash.com/photos/a-person-standing-on-a-sand-dune-in-the-desert-TA5hw14Coh4",download:"https://unsplash.com/photos/TA5hw14Coh4/download?ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/TA5hw14Coh4/download?ixid=M3wxMTc3M3wxfDF8YWxsfDF8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:226,liked_by_user:!1,current_user_collections:[],sponsorship:{impression_urls:[],tagline:"Made to Change",tagline_url:"https://www.neom.com/en-us?utm_source=unsplash&utm_medium=referral",sponsor:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},topic_submissions:{},user:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},{id:"UArA9A02Kvk",slug:"a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk",alternative_slugs:{en:"a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk"},created_at:"2024-03-05T15:48:31Z",updated_at:"2024-03-11T06:59:25Z",promoted_at:"2024-03-11T06:59:25Z",width:2160,height:2700,color:"#262626",blur_hash:"L78;S$~p00oLD%D%IVay9F9ZIUay",description:null,alt_description:"a black and white photo of a man with his head in his hands",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709653688483-fc2b356c1f36?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709653688483-fc2b356c1f36"},links:{self:"https://api.unsplash.com/photos/a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk",html:"https://unsplash.com/photos/a-black-and-white-photo-of-a-man-with-his-head-in-his-hands-UArA9A02Kvk",download:"https://unsplash.com/photos/UArA9A02Kvk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/UArA9A02Kvk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDJ8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:20,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"gwWL9kMcm2g",updated_at:"2024-03-11T10:14:07Z",username:"nickandreka",name:"Nick Andréka",first_name:"Nick",last_name:"Andréka",twitter_username:null,portfolio_url:null,bio:null,location:null,links:{self:"https://api.unsplash.com/users/nickandreka",html:"https://unsplash.com/@nickandreka",photos:"https://api.unsplash.com/users/nickandreka/photos",likes:"https://api.unsplash.com/users/nickandreka/likes",portfolio:"https://api.unsplash.com/users/nickandreka/portfolio",following:"https://api.unsplash.com/users/nickandreka/following",followers:"https://api.unsplash.com/users/nickandreka/followers"},profile_image:{small:"https://images.unsplash.com/profile-1698854198608-989031a5ccdeimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1698854198608-989031a5ccdeimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1698854198608-989031a5ccdeimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"andreka.art",total_collections:0,total_likes:8,total_photos:35,total_promoted_photos:19,accepted_tos:!0,for_hire:!0,social:{instagram_username:"andreka.art",portfolio_url:null,twitter_username:null,paypal_email:null}}},{id:"QX_7m4Lh2qg",slug:"a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg",alternative_slugs:{en:"a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg"},created_at:"2024-03-10T16:46:33Z",updated_at:"2024-03-11T06:59:11Z",promoted_at:"2024-03-11T06:59:11Z",width:4e3,height:5751,color:"#f3f3f3",blur_hash:"LAQJiu~X-;9G-:?cIURj~qD%00xt",description:null,alt_description:"a black and white photo of a lighthouse",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710088912041-34d1767d376a?ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710088912041-34d1767d376a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710088912041-34d1767d376a"},links:{self:"https://api.unsplash.com/photos/a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg",html:"https://unsplash.com/photos/a-black-and-white-photo-of-a-lighthouse-QX_7m4Lh2qg",download:"https://unsplash.com/photos/QX_7m4Lh2qg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/QX_7m4Lh2qg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDN8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:21,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"ue6QWAAHoIQ",updated_at:"2024-03-11T08:53:54Z",username:"huzhewseh",name:"Volodymyr M",first_name:"Volodymyr",last_name:"M",twitter_username:"huzhewseh",portfolio_url:null,bio:null,location:null,links:{self:"https://api.unsplash.com/users/huzhewseh",html:"https://unsplash.com/@huzhewseh",photos:"https://api.unsplash.com/users/huzhewseh/photos",likes:"https://api.unsplash.com/users/huzhewseh/likes",portfolio:"https://api.unsplash.com/users/huzhewseh/portfolio",following:"https://api.unsplash.com/users/huzhewseh/following",followers:"https://api.unsplash.com/users/huzhewseh/followers"},profile_image:{small:"https://images.unsplash.com/profile-1663221970918-58b1620c49c9image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1663221970918-58b1620c49c9image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1663221970918-58b1620c49c9image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"huzhewseh",total_collections:0,total_likes:0,total_photos:18,total_promoted_photos:3,accepted_tos:!0,for_hire:!0,social:{instagram_username:"huzhewseh",portfolio_url:null,twitter_username:"huzhewseh",paypal_email:null}}},{id:"fMNP7XVcct0",slug:"a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0",alternative_slugs:{en:"a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0"},created_at:"2024-03-09T08:40:07Z",updated_at:"2024-03-11T06:58:58Z",promoted_at:"2024-03-11T06:58:58Z",width:3264,height:4928,color:"#262626",blur_hash:"L35hY|xu00D%-;xuIUD%00j[?bWB",description:null,alt_description:"a woman standing in a dark room with her eyes closed",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709973540503-77d699279634?ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709973540503-77d699279634?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709973540503-77d699279634"},links:{self:"https://api.unsplash.com/photos/a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0",html:"https://unsplash.com/photos/a-woman-standing-in-a-dark-room-with-her-eyes-closed-fMNP7XVcct0",download:"https://unsplash.com/photos/fMNP7XVcct0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/fMNP7XVcct0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDR8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:7,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"lSlibqdw_c8",updated_at:"2024-03-11T08:54:13Z",username:"vitaliyshev89",name:"Vitaliy Shevchenko",first_name:"Vitaliy",last_name:"Shevchenko",twitter_username:null,portfolio_url:null,bio:null,location:"Kharkiv, Ukraine",links:{self:"https://api.unsplash.com/users/vitaliyshev89",html:"https://unsplash.com/@vitaliyshev89",photos:"https://api.unsplash.com/users/vitaliyshev89/photos",likes:"https://api.unsplash.com/users/vitaliyshev89/likes",portfolio:"https://api.unsplash.com/users/vitaliyshev89/portfolio",following:"https://api.unsplash.com/users/vitaliyshev89/following",followers:"https://api.unsplash.com/users/vitaliyshev89/followers"},profile_image:{small:"https://images.unsplash.com/profile-1652271342920-31eebbc2c3d0image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1652271342920-31eebbc2c3d0image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1652271342920-31eebbc2c3d0image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:null,total_collections:0,total_likes:1,total_photos:205,total_promoted_photos:29,accepted_tos:!0,for_hire:!1,social:{instagram_username:null,portfolio_url:null,twitter_username:null,paypal_email:null}}},{id:"b4kKyX0BQvc",slug:"a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc",alternative_slugs:{en:"a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc"},created_at:"2024-03-08T21:58:28Z",updated_at:"2024-03-11T06:57:35Z",promoted_at:"2024-03-11T06:57:27Z",width:6e3,height:4e3,color:"#0c2626",blur_hash:"LSDJS6kD9Zxu~qkDM|xaS%j]xaV@",description:'Stunning metro train station "Elbbrücken" in Hamburg, Germany during sunset',alt_description:"a train station with a train on the tracks",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709934645859-f1ed8d3a4954?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709934645859-f1ed8d3a4954"},links:{self:"https://api.unsplash.com/photos/a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc",html:"https://unsplash.com/photos/a-train-station-with-a-train-on-the-tracks-b4kKyX0BQvc",download:"https://unsplash.com/photos/b4kKyX0BQvc/download?ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/b4kKyX0BQvc/download?ixid=M3wxMTc3M3wwfDF8YWxsfDV8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:8,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{"street-photography":{status:"approved",approved_on:"2024-03-11T06:57:35Z"}},user:{id:"TffftDPlBPk",updated_at:"2024-03-11T06:59:04Z",username:"christianlue",name:"Christian Lue",first_name:"Christian",last_name:"Lue",twitter_username:"chrrischii",portfolio_url:null,bio:null,location:"Frankfurt / Berlin",links:{self:"https://api.unsplash.com/users/christianlue",html:"https://unsplash.com/@christianlue",photos:"https://api.unsplash.com/users/christianlue/photos",likes:"https://api.unsplash.com/users/christianlue/likes",portfolio:"https://api.unsplash.com/users/christianlue/portfolio",following:"https://api.unsplash.com/users/christianlue/following",followers:"https://api.unsplash.com/users/christianlue/followers"},profile_image:{small:"https://images.unsplash.com/profile-1581889127238-ea4aa40e8cb4image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1581889127238-ea4aa40e8cb4image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1581889127238-ea4aa40e8cb4image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:null,total_collections:7,total_likes:15,total_photos:571,total_promoted_photos:103,accepted_tos:!0,for_hire:!0,social:{instagram_username:null,portfolio_url:null,twitter_username:"chrrischii",paypal_email:null}}},{id:"9633dHhioC8",slug:"a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8",alternative_slugs:{en:"a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8"},created_at:"2023-04-28T15:30:26Z",updated_at:"2024-03-10T10:46:58Z",promoted_at:"2023-05-13T12:02:35Z",width:8316,height:5544,color:"#734026",blur_hash:"LVHdd89G57-o.9IBsSR-~pD*M{xt",description:"Amongst expansive red sands and spectacular sandstone rock formations, Hisma Desert – NEOM, Saudi Arabia | The NEOM Nature Reserve region is being designed to deliver protection and restoration of biodiversity across 95% of NEOM.",alt_description:"a person walking through a canyon in the desert",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1682695795255-b236b1f1267d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1682695795255-b236b1f1267d"},links:{self:"https://api.unsplash.com/photos/a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8",html:"https://unsplash.com/photos/a-person-walking-through-a-canyon-in-the-desert-9633dHhioC8",download:"https://unsplash.com/photos/9633dHhioC8/download?ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/9633dHhioC8/download?ixid=M3wxMTc3M3wxfDF8YWxsfDZ8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:631,liked_by_user:!1,current_user_collections:[],sponsorship:{impression_urls:["https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false&bannerID=11515595&rnd=[timestamp]&redir=https://secure.insightexpressai.com/adserver/1pixel.gif","https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false&bannerID=11515798&rnd=[timestamp]&redir=https://secure.insightexpressai.com/adserver/1pixel.gif"],tagline:"Made to Change",tagline_url:"https://www.neom.com/en-us?utm_source=unsplash&utm_medium=referral",sponsor:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},topic_submissions:{},user:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},{id:"4PmYYBFhwFM",slug:"a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM",alternative_slugs:{en:"a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM"},created_at:"2024-03-09T18:40:37Z",updated_at:"2024-03-11T06:57:23Z",promoted_at:"2024-03-11T06:57:23Z",width:5248,height:7872,color:"#a6a6a6",blur_hash:"LHDA40%MbGxu%L?bt7of_N%gIBRj",description:null,alt_description:"a close up of a car door with the word budder on it",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710009439657-c0dfdc051a28?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710009439657-c0dfdc051a28"},links:{self:"https://api.unsplash.com/photos/a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM",html:"https://unsplash.com/photos/a-close-up-of-a-car-door-with-the-word-budder-on-it-4PmYYBFhwFM",download:"https://unsplash.com/photos/4PmYYBFhwFM/download?ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/4PmYYBFhwFM/download?ixid=M3wxMTc3M3wwfDF8YWxsfDd8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:5,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"Xz7_QPPM2So",updated_at:"2024-03-11T08:27:09Z",username:"tiago_f_ferreira",name:"Tiago Ferreira",first_name:"Tiago",last_name:"Ferreira",twitter_username:null,portfolio_url:"https://tiagoferreira765.wixsite.com/photographyandmusic",bio:`Photography - a hobby, a passion.\r
|
||
Planet earth 🌎, a creative space to enjoy.`,location:"Lisboa, Portugal",links:{self:"https://api.unsplash.com/users/tiago_f_ferreira",html:"https://unsplash.com/@tiago_f_ferreira",photos:"https://api.unsplash.com/users/tiago_f_ferreira/photos",likes:"https://api.unsplash.com/users/tiago_f_ferreira/likes",portfolio:"https://api.unsplash.com/users/tiago_f_ferreira/portfolio",following:"https://api.unsplash.com/users/tiago_f_ferreira/following",followers:"https://api.unsplash.com/users/tiago_f_ferreira/followers"},profile_image:{small:"https://images.unsplash.com/profile-1595844391672-cdf854039843image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1595844391672-cdf854039843image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1595844391672-cdf854039843image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"tiago_f_ferreira",total_collections:1,total_likes:144,total_photos:205,total_promoted_photos:8,accepted_tos:!0,for_hire:!1,social:{instagram_username:"tiago_f_ferreira",portfolio_url:"https://tiagoferreira765.wixsite.com/photographyandmusic",twitter_username:null,paypal_email:null}}},{id:"BUhVFtY-890",slug:"a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890",alternative_slugs:{en:"a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890"},created_at:"2024-03-09T10:03:28Z",updated_at:"2024-03-11T06:57:20Z",promoted_at:"2024-03-11T06:57:20Z",width:3511,height:2231,color:"#262626",blur_hash:"L24epEWB0eMx$*t8OEV@RPj]baay",description:null,alt_description:"a close up of a bird with a red head",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709978601970-036e92662b46?ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709978601970-036e92662b46?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709978601970-036e92662b46"},links:{self:"https://api.unsplash.com/photos/a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890",html:"https://unsplash.com/photos/a-close-up-of-a-bird-with-a-red-head-BUhVFtY-890",download:"https://unsplash.com/photos/BUhVFtY-890/download?ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/BUhVFtY-890/download?ixid=M3wxMTc3M3wwfDF8YWxsfDh8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:8,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{"textures-patterns":{status:"rejected"},spring:{status:"rejected"},"earth-hour":{status:"approved",approved_on:"2024-03-10T12:31:10Z"},health:{status:"unevaluated"},animals:{status:"unevaluated"},film:{status:"unevaluated"},travel:{status:"unevaluated"},nature:{status:"unevaluated"},wallpapers:{status:"unevaluated"}},user:{id:"3SCC0WcF-wA",updated_at:"2024-03-11T09:44:02Z",username:"refargotohp",name:"refargotohp",first_name:"refargotohp",last_name:null,twitter_username:null,portfolio_url:null,bio:"Hello 👋🏼 My name is Pavel, and I am a photographer. I enjoy the photo in any of its manifestations. Sequential shooting, street, studio, portraiture - it's all me. Waiting for you on my social networks - @refargotohp",location:null,links:{self:"https://api.unsplash.com/users/refargotohp",html:"https://unsplash.com/@refargotohp",photos:"https://api.unsplash.com/users/refargotohp/photos",likes:"https://api.unsplash.com/users/refargotohp/likes",portfolio:"https://api.unsplash.com/users/refargotohp/portfolio",following:"https://api.unsplash.com/users/refargotohp/following",followers:"https://api.unsplash.com/users/refargotohp/followers"},profile_image:{small:"https://images.unsplash.com/profile-1653036388874-dab6bdb375bcimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1653036388874-dab6bdb375bcimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1653036388874-dab6bdb375bcimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"refargotohp",total_collections:1,total_likes:86,total_photos:132,total_promoted_photos:61,accepted_tos:!0,for_hire:!0,social:{instagram_username:"refargotohp",portfolio_url:null,twitter_username:null,paypal_email:null}}},{id:"99clkpyauJI",slug:"there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI",alternative_slugs:{en:"there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI"},created_at:"2024-03-10T00:15:28Z",updated_at:"2024-03-11T06:56:32Z",promoted_at:"2024-03-11T06:56:32Z",width:4299,height:3448,color:"#f3f3f3",blur_hash:"LjJuGn?bM{xu~qoKRPM{9FM{t6M_",description:null,alt_description:"there are bottles of beer on a shelf in front of a window",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710029721414-9e2125e155c3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710029721414-9e2125e155c3"},links:{self:"https://api.unsplash.com/photos/there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI",html:"https://unsplash.com/photos/there-are-bottles-of-beer-on-a-shelf-in-front-of-a-window-99clkpyauJI",download:"https://unsplash.com/photos/99clkpyauJI/download?ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA",download_location:"https://api.unsplash.com/photos/99clkpyauJI/download?ixid=M3wxMTc3M3wwfDF8YWxsfDl8fHx8fHwyfHwxNzEwMTUzMjA1fA"},likes:2,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{film:{status:"approved",approved_on:"2024-03-10T16:39:06Z"}},user:{id:"TPCcwPbQzmY",updated_at:"2024-03-11T06:59:01Z",username:"suzm4film",name:"szm 4",first_name:"szm",last_name:"4",twitter_username:null,portfolio_url:null,bio:null,location:"Japan",links:{self:"https://api.unsplash.com/users/suzm4film",html:"https://unsplash.com/@suzm4film",photos:"https://api.unsplash.com/users/suzm4film/photos",likes:"https://api.unsplash.com/users/suzm4film/likes",portfolio:"https://api.unsplash.com/users/suzm4film/portfolio",following:"https://api.unsplash.com/users/suzm4film/following",followers:"https://api.unsplash.com/users/suzm4film/followers"},profile_image:{small:"https://images.unsplash.com/profile-1632890829763-5c518f873dee?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1632890829763-5c518f873dee?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1632890829763-5c518f873dee?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:null,total_collections:0,total_likes:0,total_photos:189,total_promoted_photos:19,accepted_tos:!0,for_hire:!1,social:{instagram_username:null,portfolio_url:null,twitter_username:null,paypal_email:null}}},{id:"Lbt-cZyOUM4",slug:"an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4",alternative_slugs:{en:"an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4"},created_at:"2024-03-09T16:58:57Z",updated_at:"2024-03-11T06:57:06Z",promoted_at:"2024-03-11T06:55:38Z",width:5783,height:3848,color:"#0c2626",blur_hash:"LkG[.y01Ri-:?bM{RjofM{xuRkWB",description:null,alt_description:"an old fashioned typewriter sitting on a table in front of a window",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710003364549-de37d4ed3413?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710003364549-de37d4ed3413"},links:{self:"https://api.unsplash.com/photos/an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4",html:"https://unsplash.com/photos/an-old-fashioned-typewriter-sitting-on-a-table-in-front-of-a-window-Lbt-cZyOUM4",download:"https://unsplash.com/photos/Lbt-cZyOUM4/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/Lbt-cZyOUM4/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEwfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:3,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"8D4VFtkiIuw",updated_at:"2024-03-11T07:28:57Z",username:"tama66",name:"Peter Herrmann",first_name:"Peter",last_name:"Herrmann",twitter_username:null,portfolio_url:null,bio:"Everything... but not boring! Instagram@Tiefstapler66",location:"Leverkusen/Germany",links:{self:"https://api.unsplash.com/users/tama66",html:"https://unsplash.com/@tama66",photos:"https://api.unsplash.com/users/tama66/photos",likes:"https://api.unsplash.com/users/tama66/likes",portfolio:"https://api.unsplash.com/users/tama66/portfolio",following:"https://api.unsplash.com/users/tama66/following",followers:"https://api.unsplash.com/users/tama66/followers"},profile_image:{small:"https://images.unsplash.com/profile-1611475141936-383e23c6cc6dimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1611475141936-383e23c6cc6dimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1611475141936-383e23c6cc6dimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"tiefstapler66",total_collections:1,total_likes:149,total_photos:363,total_promoted_photos:152,accepted_tos:!0,for_hire:!0,social:{instagram_username:"tiefstapler66",portfolio_url:null,twitter_username:null,paypal_email:null}}},{id:"D1jr0Mevs-c",slug:"an-aerial-view-of-a-body-of-water-D1jr0Mevs-c",alternative_slugs:{en:"an-aerial-view-of-a-body-of-water-D1jr0Mevs-c"},created_at:"2024-02-07T22:34:15Z",updated_at:"2024-03-10T10:54:36Z",promoted_at:null,width:5280,height:2970,color:"#0c2626",blur_hash:"LH9[JL0i+HM{^}Ezw#R.b@n$nhbb",description:"The Islands of NEOM are home to kaleidoscopic-coloured coral reefs and an abundance of diverse marine life | Islands of NEOM – NEOM, Saudi Arabia",alt_description:"an aerial view of a body of water",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1707343843982-f8275f3994c5?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1707343843982-f8275f3994c5"},links:{self:"https://api.unsplash.com/photos/an-aerial-view-of-a-body-of-water-D1jr0Mevs-c",html:"https://unsplash.com/photos/an-aerial-view-of-a-body-of-water-D1jr0Mevs-c",download:"https://unsplash.com/photos/D1jr0Mevs-c/download?ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/D1jr0Mevs-c/download?ixid=M3wxMTc3M3wxfDF8YWxsfDExfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:308,liked_by_user:!1,current_user_collections:[],sponsorship:{impression_urls:[],tagline:"Made to Change",tagline_url:"https://www.neom.com/en-us?utm_source=unsplash&utm_medium=referral",sponsor:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},topic_submissions:{},user:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},{id:"0RBEUjWQBBA",slug:"a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA",alternative_slugs:{en:"a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA"},created_at:"2024-03-10T10:15:48Z",updated_at:"2024-03-11T06:55:22Z",promoted_at:"2024-03-11T06:55:22Z",width:4672,height:7008,color:"#262626",blur_hash:"LOG8o{t7WBWB~DofR*j@D%NGR%WB",description:null,alt_description:"a woman standing under a cherry blossom tree",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710065574765-a685385c6d9a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710065574765-a685385c6d9a"},links:{self:"https://api.unsplash.com/photos/a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA",html:"https://unsplash.com/photos/a-woman-standing-under-a-cherry-blossom-tree-0RBEUjWQBBA",download:"https://unsplash.com/photos/0RBEUjWQBBA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/0RBEUjWQBBA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEyfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:11,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"ePlndXHeIiM",updated_at:"2024-03-11T09:04:03Z",username:"lwdzl",name:"Jack Dong",first_name:"Jack",last_name:"Dong",twitter_username:null,portfolio_url:"https://www.xiaohongshu.com/user/profile/5f11b998000000000101d8d2?xhsshare=CopyLink&appuid=5f11b998000000000101d8d2&apptime=1696562673",bio:null,location:null,links:{self:"https://api.unsplash.com/users/lwdzl",html:"https://unsplash.com/@lwdzl",photos:"https://api.unsplash.com/users/lwdzl/photos",likes:"https://api.unsplash.com/users/lwdzl/likes",portfolio:"https://api.unsplash.com/users/lwdzl/portfolio",following:"https://api.unsplash.com/users/lwdzl/following",followers:"https://api.unsplash.com/users/lwdzl/followers"},profile_image:{small:"https://images.unsplash.com/profile-1696563144074-80a8da44bcd4?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1696563144074-80a8da44bcd4?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1696563144074-80a8da44bcd4?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:null,total_collections:0,total_likes:101,total_photos:640,total_promoted_photos:112,accepted_tos:!0,for_hire:!0,social:{instagram_username:null,portfolio_url:"https://www.xiaohongshu.com/user/profile/5f11b998000000000101d8d2?xhsshare=CopyLink&appuid=5f11b998000000000101d8d2&apptime=1696562673",twitter_username:null,paypal_email:null}}},{id:"2IGDvJa2Bd0",slug:"a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0",alternative_slugs:{en:"a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0"},created_at:"2024-02-21T14:32:53Z",updated_at:"2024-03-11T06:54:06Z",promoted_at:"2024-03-11T06:54:06Z",width:4672,height:5840,color:"#f3f3f3",blur_hash:"L#Gv00ofD%ay~qoeM_ay%NafWVj[",description:null,alt_description:"a path in the middle of a foggy forest",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1708525736169-534ee3e24e99?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1708525736169-534ee3e24e99"},links:{self:"https://api.unsplash.com/photos/a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0",html:"https://unsplash.com/photos/a-path-in-the-middle-of-a-foggy-forest-2IGDvJa2Bd0",download:"https://unsplash.com/photos/2IGDvJa2Bd0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/2IGDvJa2Bd0/download?ixid=M3wxMTc3M3wwfDF8YWxsfDEzfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:11,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"zL5HAN1fnJw",updated_at:"2024-03-11T06:58:57Z",username:"viklukphotography",name:"Viktor Mischke",first_name:"Viktor",last_name:"Mischke",twitter_username:null,portfolio_url:"https://www.istockphoto.com/de/portfolio/snoviktor",bio:null,location:"Schloss Holte-Stukenbrock",links:{self:"https://api.unsplash.com/users/viklukphotography",html:"https://unsplash.com/@viklukphotography",photos:"https://api.unsplash.com/users/viklukphotography/photos",likes:"https://api.unsplash.com/users/viklukphotography/likes",portfolio:"https://api.unsplash.com/users/viklukphotography/portfolio",following:"https://api.unsplash.com/users/viklukphotography/following",followers:"https://api.unsplash.com/users/viklukphotography/followers"},profile_image:{small:"https://images.unsplash.com/profile-1646051425690-ed09fae6858fimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1646051425690-ed09fae6858fimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1646051425690-ed09fae6858fimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"viktormischke",total_collections:0,total_likes:141,total_photos:38,total_promoted_photos:8,accepted_tos:!0,for_hire:!1,social:{instagram_username:"viktormischke",portfolio_url:"https://www.istockphoto.com/de/portfolio/snoviktor",twitter_username:null,paypal_email:null}}},{id:"PZfeP0uwBpQ",slug:"a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ",alternative_slugs:{en:"a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ"},created_at:"2024-02-24T10:57:49Z",updated_at:"2024-03-11T06:53:56Z",promoted_at:"2024-03-11T06:53:56Z",width:2720,height:4080,color:"#404026",blur_hash:"LIB:Tx%K56NGORbYxas:0KRj-poe",description:"A woman wearing a traditional coolie hat kneels in a field of green vegetables, carefully harvesting the crops.",alt_description:"a person with a hat on their head in a field",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1708771641703-0df3d179cec3?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1708771641703-0df3d179cec3"},links:{self:"https://api.unsplash.com/photos/a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ",html:"https://unsplash.com/photos/a-person-with-a-hat-on-their-head-in-a-field-PZfeP0uwBpQ",download:"https://unsplash.com/photos/PZfeP0uwBpQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/PZfeP0uwBpQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE0fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:2,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{people:{status:"rejected"},experimental:{status:"rejected"}},user:{id:"mWjiXj5vQuQ",updated_at:"2024-03-11T06:58:57Z",username:"chanwei_snap",name:"Chanwei",first_name:"Chanwei",last_name:null,twitter_username:null,portfolio_url:null,bio:`👋 Just a snap-happy amateur sharing my photos with you!\r
|
||
📍Instagram: @chanwei.snap\r
|
||
`,location:"Taipei, Taiwan",links:{self:"https://api.unsplash.com/users/chanwei_snap",html:"https://unsplash.com/@chanwei_snap",photos:"https://api.unsplash.com/users/chanwei_snap/photos",likes:"https://api.unsplash.com/users/chanwei_snap/likes",portfolio:"https://api.unsplash.com/users/chanwei_snap/portfolio",following:"https://api.unsplash.com/users/chanwei_snap/following",followers:"https://api.unsplash.com/users/chanwei_snap/followers"},profile_image:{small:"https://images.unsplash.com/profile-1705518610211-a929b876f4d5image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1705518610211-a929b876f4d5image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1705518610211-a929b876f4d5image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"chanwei.snap",total_collections:15,total_likes:63,total_photos:150,total_promoted_photos:2,accepted_tos:!0,for_hire:!1,social:{instagram_username:"chanwei.snap",portfolio_url:null,twitter_username:null,paypal_email:null}}},{id:"1JwHaWeSK9s",slug:"a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s",alternative_slugs:{en:"a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s"},created_at:"2024-03-10T11:33:51Z",updated_at:"2024-03-11T06:57:09Z",promoted_at:"2024-03-11T06:53:39Z",width:3586,height:3917,color:"#f3f3d9",blur_hash:"LIQ0T^j=_4%M%MxbM{M{_4jZITbH",description:"Title: Christmas eve Artist: Callowhill, James Publisher: L. Prang & Co. Name on Item: JC Date: [ca. 1861–1897] https://www.digitalcommonwealth.org/search/commonwealth:7w62f880r",alt_description:"a picture of some white flowers on a white background",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710069455079-2059d3cefe91?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710069455079-2059d3cefe91"},links:{self:"https://api.unsplash.com/photos/a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s",html:"https://unsplash.com/photos/a-picture-of-some-white-flowers-on-a-white-background-1JwHaWeSK9s",download:"https://unsplash.com/photos/1JwHaWeSK9s/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/1JwHaWeSK9s/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE1fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:7,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"piFVWeoWxU8",updated_at:"2024-03-11T07:28:12Z",username:"bostonpubliclibrary",name:"Boston Public Library",first_name:"Boston",last_name:"Public Library",twitter_username:null,portfolio_url:"https://www.bpl.org/",bio:"Considered a pioneer of public library service in the United States, the Boston Public Library is among the three largest collections in the country and is committed to be ‘Free for All’.",location:"Boston, USA",links:{self:"https://api.unsplash.com/users/bostonpubliclibrary",html:"https://unsplash.com/@bostonpubliclibrary",photos:"https://api.unsplash.com/users/bostonpubliclibrary/photos",likes:"https://api.unsplash.com/users/bostonpubliclibrary/likes",portfolio:"https://api.unsplash.com/users/bostonpubliclibrary/portfolio",following:"https://api.unsplash.com/users/bostonpubliclibrary/following",followers:"https://api.unsplash.com/users/bostonpubliclibrary/followers"},profile_image:{small:"https://images.unsplash.com/profile-1579171056760-0293bb679901image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1579171056760-0293bb679901image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1579171056760-0293bb679901image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:null,total_collections:6,total_likes:0,total_photos:510,total_promoted_photos:62,accepted_tos:!0,for_hire:!1,social:{instagram_username:null,portfolio_url:"https://www.bpl.org/",twitter_username:null,paypal_email:null}}},{id:"efzvMAIpfWY",slug:"a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY",alternative_slugs:{en:"a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY"},created_at:"2023-04-28T12:46:16Z",updated_at:"2024-03-11T09:48:19Z",promoted_at:null,width:9504,height:6336,color:"#c07359",blur_hash:"LELo7xNHxa~Bz:s9S4nO~VbwoLS~",description:"Amongst expansive red sands and spectacular sandstone rock formations, Hisma Desert – NEOM, Saudi Arabia | The NEOM Nature Reserve region is being designed to deliver protection and restoration of biodiversity across 95% of NEOM.",alt_description:"a couple of people that are standing in the dirt",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1682685797742-42c9987a2c34?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1682685797742-42c9987a2c34"},links:{self:"https://api.unsplash.com/photos/a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY",html:"https://unsplash.com/photos/a-couple-of-people-that-are-standing-in-the-dirt-efzvMAIpfWY",download:"https://unsplash.com/photos/efzvMAIpfWY/download?ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/efzvMAIpfWY/download?ixid=M3wxMTc3M3wxfDF8YWxsfDE2fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:211,liked_by_user:!1,current_user_collections:[],sponsorship:{impression_urls:["https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false&bannerID=11515544&rnd=[timestamp]&redir=https://secure.insightexpressai.com/adserver/1pixel.gif","https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false&bannerID=11515747&rnd=[timestamp]&redir=https://secure.insightexpressai.com/adserver/1pixel.gif"],tagline:"Made to Change",tagline_url:"https://www.neom.com/en-us?utm_source=unsplash&utm_medium=referral",sponsor:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},topic_submissions:{},user:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},{id:"j39-6Uto9QQ",slug:"a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ",alternative_slugs:{en:"a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ"},created_at:"2024-03-09T22:12:40Z",updated_at:"2024-03-11T07:57:13Z",promoted_at:"2024-03-11T06:51:56Z",width:3759,height:5639,color:"#26260c",blur_hash:"L79tDG?H4;IURu%MM{RP~oohIoIo",description:null,alt_description:"a forest filled with lots of tall trees",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710020339360-ce951881b835?ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710020339360-ce951881b835?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710020339360-ce951881b835"},links:{self:"https://api.unsplash.com/photos/a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ",html:"https://unsplash.com/photos/a-forest-filled-with-lots-of-tall-trees-j39-6Uto9QQ",download:"https://unsplash.com/photos/j39-6Uto9QQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/j39-6Uto9QQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE3fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:1,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"MarIhx6ztc0",updated_at:"2024-03-11T06:51:56Z",username:"brice_cooper18",name:"Brice Cooper",first_name:"Brice",last_name:"Cooper",twitter_username:null,portfolio_url:null,bio:"Always down for an adventure, capturing those adventures one photo at a time. Never stop exploring!",location:"Florida",links:{self:"https://api.unsplash.com/users/brice_cooper18",html:"https://unsplash.com/@brice_cooper18",photos:"https://api.unsplash.com/users/brice_cooper18/photos",likes:"https://api.unsplash.com/users/brice_cooper18/likes",portfolio:"https://api.unsplash.com/users/brice_cooper18/portfolio",following:"https://api.unsplash.com/users/brice_cooper18/following",followers:"https://api.unsplash.com/users/brice_cooper18/followers"},profile_image:{small:"https://images.unsplash.com/profile-1673045276376-91bb892b6e94image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1673045276376-91bb892b6e94image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1673045276376-91bb892b6e94image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"brice_cooper18",total_collections:14,total_likes:0,total_photos:1467,total_promoted_photos:51,accepted_tos:!0,for_hire:!0,social:{instagram_username:"brice_cooper18",portfolio_url:null,twitter_username:null,paypal_email:null}}},{id:"oTE1p2Awp3I",slug:"a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I",alternative_slugs:{en:"a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I"},created_at:"2024-02-27T22:15:01Z",updated_at:"2024-03-11T06:51:52Z",promoted_at:"2024-03-11T06:51:52Z",width:4e3,height:5333,color:"#c0c0c0",blur_hash:"LLE:C[u5IooJ_N%gE1ax~ps8Vsoe",description:null,alt_description:"a couple of people standing on top of a cliff next to the ocean",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709071784840-cf3ecc434749?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709071784840-cf3ecc434749"},links:{self:"https://api.unsplash.com/photos/a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I",html:"https://unsplash.com/photos/a-couple-of-people-standing-on-top-of-a-cliff-next-to-the-ocean-oTE1p2Awp3I",download:"https://unsplash.com/photos/oTE1p2Awp3I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/oTE1p2Awp3I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE4fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:8,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"khtnjqjzcq0",updated_at:"2024-03-11T06:51:53Z",username:"mitchorr",name:"Mitchell Orr",first_name:"Mitchell",last_name:"Orr",twitter_username:null,portfolio_url:"https://mitchorr.darkroom.tech/",bio:`If you feel you would like to support my work, any donations no matter how small, would be extremely helpful. \r
|
||
Thanks for looking!`,location:"Wirral",links:{self:"https://api.unsplash.com/users/mitchorr",html:"https://unsplash.com/@mitchorr",photos:"https://api.unsplash.com/users/mitchorr/photos",likes:"https://api.unsplash.com/users/mitchorr/likes",portfolio:"https://api.unsplash.com/users/mitchorr/portfolio",following:"https://api.unsplash.com/users/mitchorr/following",followers:"https://api.unsplash.com/users/mitchorr/followers"},profile_image:{small:"https://images.unsplash.com/profile-1687891061126-8858e815018fimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1687891061126-8858e815018fimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1687891061126-8858e815018fimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"mitchorr1",total_collections:0,total_likes:41,total_photos:358,total_promoted_photos:118,accepted_tos:!0,for_hire:!0,social:{instagram_username:"mitchorr1",portfolio_url:"https://mitchorr.darkroom.tech/",twitter_username:null,paypal_email:null}}},{id:"ihmo0uRQ3jA",slug:"a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA",alternative_slugs:{en:"a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA"},created_at:"2024-02-24T20:00:04Z",updated_at:"2024-03-11T06:51:48Z",promoted_at:"2024-03-11T06:51:48Z",width:4e3,height:6e3,color:"#260c0c",blur_hash:"L78;b;?I4Xx?tcIUD+xt03oy-.M|",description:null,alt_description:"a bed sitting in a bedroom next to a window",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1708804309492-5ef3f3458c33?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1708804309492-5ef3f3458c33"},links:{self:"https://api.unsplash.com/photos/a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA",html:"https://unsplash.com/photos/a-bed-sitting-in-a-bedroom-next-to-a-window-ihmo0uRQ3jA",download:"https://unsplash.com/photos/ihmo0uRQ3jA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/ihmo0uRQ3jA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDE5fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:20,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"Og5qBrDjufI",updated_at:"2024-03-11T06:51:49Z",username:"mariailves",name:"Maria Ilves",first_name:"Maria",last_name:"Ilves",twitter_username:null,portfolio_url:"http://www.mariailves.com",bio:null,location:"Ambleside",links:{self:"https://api.unsplash.com/users/mariailves",html:"https://unsplash.com/@mariailves",photos:"https://api.unsplash.com/users/mariailves/photos",likes:"https://api.unsplash.com/users/mariailves/likes",portfolio:"https://api.unsplash.com/users/mariailves/portfolio",following:"https://api.unsplash.com/users/mariailves/following",followers:"https://api.unsplash.com/users/mariailves/followers"},profile_image:{small:"https://images.unsplash.com/profile-1708802611867-ab4ff1564c8cimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1708802611867-ab4ff1564c8cimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1708802611867-ab4ff1564c8cimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"mariailves_",total_collections:0,total_likes:0,total_photos:38,total_promoted_photos:4,accepted_tos:!0,for_hire:!0,social:{instagram_username:"mariailves_",portfolio_url:"http://www.mariailves.com",twitter_username:null,paypal_email:null}}},{id:"UvQtTVdFi9I",slug:"UvQtTVdFi9I",alternative_slugs:{en:"UvQtTVdFi9I"},created_at:"2016-08-12T16:12:25Z",updated_at:"2024-03-11T06:50:27Z",promoted_at:"2024-03-11T06:50:27Z",width:3648,height:5472,color:"#8ca673",blur_hash:"LGG9g4IAVax[.Zxus=kB9HtQ%LRj",description:null,alt_description:null,breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1471018289981-5d9f06e2bf45?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1471018289981-5d9f06e2bf45"},links:{self:"https://api.unsplash.com/photos/UvQtTVdFi9I",html:"https://unsplash.com/photos/UvQtTVdFi9I",download:"https://unsplash.com/photos/UvQtTVdFi9I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/UvQtTVdFi9I/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIwfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:60,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"dhG1THiRwtA",updated_at:"2024-03-11T06:50:28Z",username:"clarissemeyer",name:"Clarisse Meyer",first_name:"Clarisse",last_name:"Meyer",twitter_username:"claireymeyer",portfolio_url:"https://www.clarisserae.com",bio:`Photo | Video | Design - Southern California & Beyond\r
|
||
Instagram: @clarisse.rae`,location:"Orange County, CA",links:{self:"https://api.unsplash.com/users/clarissemeyer",html:"https://unsplash.com/@clarissemeyer",photos:"https://api.unsplash.com/users/clarissemeyer/photos",likes:"https://api.unsplash.com/users/clarissemeyer/likes",portfolio:"https://api.unsplash.com/users/clarissemeyer/portfolio",following:"https://api.unsplash.com/users/clarissemeyer/following",followers:"https://api.unsplash.com/users/clarissemeyer/followers"},profile_image:{small:"https://images.unsplash.com/profile-1470948329031-558b487bdf37?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1470948329031-558b487bdf37?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1470948329031-558b487bdf37?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"clarisse.rae",total_collections:2,total_likes:139,total_photos:99,total_promoted_photos:58,accepted_tos:!1,for_hire:!1,social:{instagram_username:"clarisse.rae",portfolio_url:"https://www.clarisserae.com",twitter_username:"claireymeyer",paypal_email:null}}},{id:"iswshBYbTBk",slug:"a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk",alternative_slugs:{en:"a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk"},created_at:"2024-02-27T19:26:10Z",updated_at:"2024-03-11T06:48:50Z",promoted_at:"2024-03-11T06:48:50Z",width:3940,height:2634,color:"#73a673",blur_hash:"LEDn~t%{y:WXDPVtH[jt8{o|VGk9",description:null,alt_description:"a woman riding an escalator down an escalator",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709061965707-9a89ffb23103?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709061965707-9a89ffb23103"},links:{self:"https://api.unsplash.com/photos/a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk",html:"https://unsplash.com/photos/a-woman-riding-an-escalator-down-an-escalator-iswshBYbTBk",download:"https://unsplash.com/photos/iswshBYbTBk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/iswshBYbTBk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIyfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:4,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{people:{status:"rejected"}},user:{id:"d-2o2yQwtxY",updated_at:"2024-03-11T06:48:59Z",username:"vitalymazur",name:"Vitalii Mazur",first_name:"Vitalii",last_name:"Mazur",twitter_username:"@madebyvitalii",portfolio_url:"https://www.behance.net/vitaliimazur",bio:`Life through photography 🌿 \r
|
||
Feel free to support me via PayPal (vitaly.mazur@icloud.com) if you like to use my shots. Also I'm available for a photoshoot in Toronto 📸🇨🇦`,location:"Toronto, Canada",links:{self:"https://api.unsplash.com/users/vitalymazur",html:"https://unsplash.com/@vitalymazur",photos:"https://api.unsplash.com/users/vitalymazur/photos",likes:"https://api.unsplash.com/users/vitalymazur/likes",portfolio:"https://api.unsplash.com/users/vitalymazur/portfolio",following:"https://api.unsplash.com/users/vitalymazur/following",followers:"https://api.unsplash.com/users/vitalymazur/followers"},profile_image:{small:"https://images.unsplash.com/profile-1708119387274-fad12c7d293b?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1708119387274-fad12c7d293b?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1708119387274-fad12c7d293b?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"vitalymazur ",total_collections:14,total_likes:773,total_photos:263,total_promoted_photos:15,accepted_tos:!0,for_hire:!0,social:{instagram_username:"vitalymazur ",portfolio_url:"https://www.behance.net/vitaliimazur",twitter_username:"@madebyvitalii",paypal_email:null}}},{id:"uSNuKKh7wpA",slug:"a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA",alternative_slugs:{en:"a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA"},created_at:"2024-03-01T10:58:28Z",updated_at:"2024-03-11T06:48:07Z",promoted_at:"2024-03-11T06:48:07Z",width:9600,height:5400,color:"#d9d9d9",blur_hash:"LJLq]_WI_3%eo$xa?cRi~qobITM|",description:"Made in blender 4.0",alt_description:"a picture of a green object with a white background",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709290649154-54c725bd4484?ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709290649154-54c725bd4484?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709290649154-54c725bd4484"},links:{self:"https://api.unsplash.com/photos/a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA",html:"https://unsplash.com/photos/a-picture-of-a-green-object-with-a-white-background-uSNuKKh7wpA",download:"https://unsplash.com/photos/uSNuKKh7wpA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/uSNuKKh7wpA/download?ixid=M3wxMTc3M3wwfDF8YWxsfDIzfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:42,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{"3d-renders":{status:"approved",approved_on:"2024-03-06T08:20:20Z"},experimental:{status:"approved",approved_on:"2024-03-06T07:38:30Z"}},user:{id:"5TCQxdaW0wE",updated_at:"2024-03-11T10:04:04Z",username:"theshubhamdhage",name:"Shubham Dhage",first_name:"Shubham",last_name:"Dhage",twitter_username:"theshubhamdhage",portfolio_url:"https://theshubhamdhage.com/",bio:"Creating things is my passion.",location:"Pune, India",links:{self:"https://api.unsplash.com/users/theshubhamdhage",html:"https://unsplash.com/@theshubhamdhage",photos:"https://api.unsplash.com/users/theshubhamdhage/photos",likes:"https://api.unsplash.com/users/theshubhamdhage/likes",portfolio:"https://api.unsplash.com/users/theshubhamdhage/portfolio",following:"https://api.unsplash.com/users/theshubhamdhage/following",followers:"https://api.unsplash.com/users/theshubhamdhage/followers"},profile_image:{small:"https://images.unsplash.com/profile-1702918491890-622aa47079a5image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1702918491890-622aa47079a5image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1702918491890-622aa47079a5image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"theshubhamdhage",total_collections:2,total_likes:296,total_photos:734,total_promoted_photos:147,accepted_tos:!0,for_hire:!0,social:{instagram_username:"theshubhamdhage",portfolio_url:"https://theshubhamdhage.com/",twitter_username:"theshubhamdhage",paypal_email:null}}},{id:"7lN8MJPnlXs",slug:"a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs",alternative_slugs:{en:"a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs"},created_at:"2024-03-06T19:31:23Z",updated_at:"2024-03-11T06:47:23Z",promoted_at:"2024-03-11T06:47:23Z",width:6720,height:4480,color:"#26260c",blur_hash:"L05OKD},~lR7TJRj%d^$_0E49Is:",description:null,alt_description:"a close up of a pine tree with lots of needles",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709753422610-39ed7ddf9e08?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709753422610-39ed7ddf9e08"},links:{self:"https://api.unsplash.com/photos/a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs",html:"https://unsplash.com/photos/a-close-up-of-a-pine-tree-with-lots-of-needles-7lN8MJPnlXs",download:"https://unsplash.com/photos/7lN8MJPnlXs/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/7lN8MJPnlXs/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI0fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:5,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{"textures-patterns":{status:"approved",approved_on:"2024-03-11T06:47:18Z"}},user:{id:"gMFqynHNocY",updated_at:"2024-03-11T06:48:57Z",username:"blakecheekk",name:"Blake Cheek",first_name:"Blake",last_name:"Cheek",twitter_username:"blakecheekk",portfolio_url:"http://blakecheek.com",bio:"Photographer and Videographer. Lover of coffee and Jesus. ",location:"Atlanta, Ga",links:{self:"https://api.unsplash.com/users/blakecheekk",html:"https://unsplash.com/@blakecheekk",photos:"https://api.unsplash.com/users/blakecheekk/photos",likes:"https://api.unsplash.com/users/blakecheekk/likes",portfolio:"https://api.unsplash.com/users/blakecheekk/portfolio",following:"https://api.unsplash.com/users/blakecheekk/following",followers:"https://api.unsplash.com/users/blakecheekk/followers"},profile_image:{small:"https://images.unsplash.com/profile-1709746841716-156061dd4fe9image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1709746841716-156061dd4fe9image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1709746841716-156061dd4fe9image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"blakecheekk",total_collections:4,total_likes:0,total_photos:423,total_promoted_photos:165,accepted_tos:!0,for_hire:!0,social:{instagram_username:"blakecheekk",portfolio_url:"http://blakecheek.com",twitter_username:"blakecheekk",paypal_email:null}}},{id:"Fw8vp9G6FtE",slug:"the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE",alternative_slugs:{en:"the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE"},created_at:"2024-03-10T00:43:31Z",updated_at:"2024-03-11T06:46:50Z",promoted_at:"2024-03-11T06:46:50Z",width:6240,height:4160,color:"#262626",blur_hash:"LIINNov{ae}=56I]eToaEmWC^iI;",description:null,alt_description:"the contents of a backpack laid out on a table",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710031407576-135a680d6e10?ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710031407576-135a680d6e10?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710031407576-135a680d6e10"},links:{self:"https://api.unsplash.com/photos/the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE",html:"https://unsplash.com/photos/the-contents-of-a-backpack-laid-out-on-a-table-Fw8vp9G6FtE",download:"https://unsplash.com/photos/Fw8vp9G6FtE/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/Fw8vp9G6FtE/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI1fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:4,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"UmKpkFAcSDE",updated_at:"2024-03-11T06:46:50Z",username:"taylorheeryphoto",name:"Taylor Heery",first_name:"Taylor",last_name:"Heery",twitter_username:"tahegri",portfolio_url:"http://www.taylorheery.com",bio:`VENMO: @taylorheeryphoto\r
|
||
Fujifilm fanatic.`,location:"Hendersonville, NC",links:{self:"https://api.unsplash.com/users/taylorheeryphoto",html:"https://unsplash.com/@taylorheeryphoto",photos:"https://api.unsplash.com/users/taylorheeryphoto/photos",likes:"https://api.unsplash.com/users/taylorheeryphoto/likes",portfolio:"https://api.unsplash.com/users/taylorheeryphoto/portfolio",following:"https://api.unsplash.com/users/taylorheeryphoto/following",followers:"https://api.unsplash.com/users/taylorheeryphoto/followers"},profile_image:{small:"https://images.unsplash.com/profile-1710031596049-549d947d2a3a?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1710031596049-549d947d2a3a?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1710031596049-549d947d2a3a?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"taylorheeryphoto",total_collections:0,total_likes:107,total_photos:520,total_promoted_photos:209,accepted_tos:!0,for_hire:!0,social:{instagram_username:"taylorheeryphoto",portfolio_url:"http://www.taylorheery.com",twitter_username:"tahegri",paypal_email:null}}},{id:"e75CfMG0Sgo",slug:"a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo",alternative_slugs:{en:"a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo"},created_at:"2023-04-28T12:46:16Z",updated_at:"2024-03-10T11:50:20Z",promoted_at:null,width:5429,height:3619,color:"#a6c0d9",blur_hash:"LnHLYm%0IAi_?wn$ngj[OtRjs:f6",description:"Nature Reserve – NEOM, Saudi Arabia | The NEOM Nature Reserve region is being designed to deliver protection and restoration of biodiversity across 95% of NEOM.",alt_description:"a person with a backpack looking at mountains",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1682685796002-e05458d61f07?ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1682685796002-e05458d61f07?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1682685796002-e05458d61f07"},links:{self:"https://api.unsplash.com/photos/a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo",html:"https://unsplash.com/photos/a-person-with-a-backpack-looking-at-mountains-e75CfMG0Sgo",download:"https://unsplash.com/photos/e75CfMG0Sgo/download?ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/e75CfMG0Sgo/download?ixid=M3wxMTc3M3wxfDF8YWxsfDI2fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:174,liked_by_user:!1,current_user_collections:[],sponsorship:{impression_urls:["https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false&bannerID=11515577&rnd=[timestamp]&redir=https://secure.insightexpressai.com/adserver/1pixel.gif","https://secure.insightexpressai.com/adServer/adServerESI.aspx?script=false&bannerID=11515780&rnd=[timestamp]&redir=https://secure.insightexpressai.com/adserver/1pixel.gif"],tagline:"Made to Change",tagline_url:"https://www.neom.com/en-us?utm_source=unsplash&utm_medium=referral",sponsor:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},topic_submissions:{},user:{id:"mYizSrdJkkU",updated_at:"2024-03-11T08:54:08Z",username:"neom",name:"NEOM",first_name:"NEOM",last_name:null,twitter_username:"neom",portfolio_url:"http://www.neom.com",bio:"Located in the northwest of Saudi Arabia, NEOM’s diverse climate offers both sun-soaked beaches and snow-capped mountains. NEOM’s unique location will provide residents with enhanced livability while protecting 95% of the natural landscape.",location:"NEOM, Saudi Arabia",links:{self:"https://api.unsplash.com/users/neom",html:"https://unsplash.com/@neom",photos:"https://api.unsplash.com/users/neom/photos",likes:"https://api.unsplash.com/users/neom/likes",portfolio:"https://api.unsplash.com/users/neom/portfolio",following:"https://api.unsplash.com/users/neom/following",followers:"https://api.unsplash.com/users/neom/followers"},profile_image:{small:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1679489218992-ebe823c797dfimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"discoverneom",total_collections:7,total_likes:1,total_photos:222,total_promoted_photos:72,accepted_tos:!0,for_hire:!1,social:{instagram_username:"discoverneom",portfolio_url:"http://www.neom.com",twitter_username:"neom",paypal_email:null}}},{id:"jSjHcyHFOdQ",slug:"a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ",alternative_slugs:{en:"a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ"},created_at:"2024-02-08T15:36:25Z",updated_at:"2024-03-11T06:46:46Z",promoted_at:"2024-03-11T06:46:46Z",width:8400,height:5600,color:"#0c260c",blur_hash:"L44CLsVuD7pF.Po2R7R*-.oyX5My",description:null,alt_description:"a picture of a green plant in a dark room",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1707406543260-ed14bbd0d086?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1707406543260-ed14bbd0d086"},links:{self:"https://api.unsplash.com/photos/a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ",html:"https://unsplash.com/photos/a-picture-of-a-green-plant-in-a-dark-room-jSjHcyHFOdQ",download:"https://unsplash.com/photos/jSjHcyHFOdQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/jSjHcyHFOdQ/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI3fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:14,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"ogQykx6hk_c",updated_at:"2024-03-11T06:46:46Z",username:"pawel_czerwinski",name:"Pawel Czerwinski",first_name:"Pawel",last_name:"Czerwinski",twitter_username:"pm_cze",portfolio_url:"http://paypal.me/pmcze",bio:"Questions about how you can use the photos? help.unsplash.com/en/collections/1463188-unsplash-license 👍",location:"Poland",links:{self:"https://api.unsplash.com/users/pawel_czerwinski",html:"https://unsplash.com/@pawel_czerwinski",photos:"https://api.unsplash.com/users/pawel_czerwinski/photos",likes:"https://api.unsplash.com/users/pawel_czerwinski/likes",portfolio:"https://api.unsplash.com/users/pawel_czerwinski/portfolio",following:"https://api.unsplash.com/users/pawel_czerwinski/following",followers:"https://api.unsplash.com/users/pawel_czerwinski/followers"},profile_image:{small:"https://images.unsplash.com/profile-1592328433409-d9ce8a5333eaimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1592328433409-d9ce8a5333eaimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1592328433409-d9ce8a5333eaimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"pmcze",total_collections:7,total_likes:39154,total_photos:2137,total_promoted_photos:1760,accepted_tos:!0,for_hire:!1,social:{instagram_username:"pmcze",portfolio_url:"http://paypal.me/pmcze",twitter_username:"pm_cze",paypal_email:null}}},{id:"OfGHUYX0CCg",slug:"a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg",alternative_slugs:{en:"a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg"},created_at:"2024-03-06T14:06:51Z",updated_at:"2024-03-11T08:56:52Z",promoted_at:"2024-03-11T06:45:54Z",width:8192,height:5460,color:"#260c0c",blur_hash:"LUF{kg=cj@fQ}XxFS3azxFfjS2WW",description:null,alt_description:"a body of water that has some waves on it",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709733167477-25398ca709c0?ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709733167477-25398ca709c0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709733167477-25398ca709c0"},links:{self:"https://api.unsplash.com/photos/a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg",html:"https://unsplash.com/photos/a-body-of-water-that-has-some-waves-on-it-OfGHUYX0CCg",download:"https://unsplash.com/photos/OfGHUYX0CCg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/OfGHUYX0CCg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI4fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:16,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{"earth-hour":{status:"approved",approved_on:"2024-03-07T09:43:45Z"}},user:{id:"uFFemR6e1vs",updated_at:"2024-03-11T06:48:56Z",username:"marcospradobr",name:"Marcos Paulo Prado",first_name:"Marcos Paulo",last_name:"Prado",twitter_username:null,portfolio_url:"https://www.instagram.com/eusoumarcosprado",bio:"People and commercial photographer based in Rio de Janeiro, Brasil",location:"Rio de Janeiro, Brazil",links:{self:"https://api.unsplash.com/users/marcospradobr",html:"https://unsplash.com/@marcospradobr",photos:"https://api.unsplash.com/users/marcospradobr/photos",likes:"https://api.unsplash.com/users/marcospradobr/likes",portfolio:"https://api.unsplash.com/users/marcospradobr/portfolio",following:"https://api.unsplash.com/users/marcospradobr/following",followers:"https://api.unsplash.com/users/marcospradobr/followers"},profile_image:{small:"https://images.unsplash.com/profile-1572910425876-25d44d080554image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1572910425876-25d44d080554image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1572910425876-25d44d080554image?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"eusoumarcosprado",total_collections:0,total_likes:306,total_photos:413,total_promoted_photos:139,accepted_tos:!0,for_hire:!0,social:{instagram_username:"eusoumarcosprado",portfolio_url:"https://www.instagram.com/eusoumarcosprado",twitter_username:null,paypal_email:null}}},{id:"VKQpbzeWbrk",slug:"a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk",alternative_slugs:{en:"a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk"},created_at:"2024-03-09T21:24:04Z",updated_at:"2024-03-11T06:45:51Z",promoted_at:"2024-03-11T06:45:51Z",width:2592,height:3872,color:"#8c2626",blur_hash:"LFI2{Exr0gE}Dlo|=_W-5RE3O=xH",description:null,alt_description:"a bouquet of orange and white tulips on a red door",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1710018337941-58197591d55a?ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1710018337941-58197591d55a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1710018337941-58197591d55a"},links:{self:"https://api.unsplash.com/photos/a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk",html:"https://unsplash.com/photos/a-bouquet-of-orange-and-white-tulips-on-a-red-door-VKQpbzeWbrk",download:"https://unsplash.com/photos/VKQpbzeWbrk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/VKQpbzeWbrk/download?ixid=M3wxMTc3M3wwfDF8YWxsfDI5fHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:3,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"H8-Yyg-eX4A",updated_at:"2024-03-11T06:48:56Z",username:"jaelphotos",name:"Jael Coon",first_name:"Jael",last_name:"Coon",twitter_username:null,portfolio_url:"https://linktr.ee/jaelcoon",bio:"Coffee drinker, photographer, artist and chef/baker",location:"USA",links:{self:"https://api.unsplash.com/users/jaelphotos",html:"https://unsplash.com/@jaelphotos",photos:"https://api.unsplash.com/users/jaelphotos/photos",likes:"https://api.unsplash.com/users/jaelphotos/likes",portfolio:"https://api.unsplash.com/users/jaelphotos/portfolio",following:"https://api.unsplash.com/users/jaelphotos/following",followers:"https://api.unsplash.com/users/jaelphotos/followers"},profile_image:{small:"https://images.unsplash.com/profile-1693432710439-47b22b3f6a9eimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1693432710439-47b22b3f6a9eimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1693432710439-47b22b3f6a9eimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"jaelcoon",total_collections:51,total_likes:0,total_photos:230,total_promoted_photos:3,accepted_tos:!0,for_hire:!1,social:{instagram_username:"jaelcoon",portfolio_url:"https://linktr.ee/jaelcoon",twitter_username:null,paypal_email:null}}},{id:"W6AqsLH6HOg",slug:"a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg",alternative_slugs:{en:"a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg"},created_at:"2024-03-06T06:59:15Z",updated_at:"2024-03-11T06:45:45Z",promoted_at:"2024-03-11T06:45:45Z",width:6e3,height:4e3,color:"#595959",blur_hash:"LYE_]gO?}qOsW--Ux]$%RPoeX9oz",description:null,alt_description:"a license plate on the back of a car",breadcrumbs:[],urls:{raw:"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3",full:"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy&cs=srgb&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=85",regular:"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=1080",small:"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=400",thumb:"https://images.unsplash.com/photo-1709708210553-490ba885fcf6?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw&ixlib=rb-4.0.3&q=80&w=200",small_s3:"https://s3.us-west-2.amazonaws.com/images.unsplash.com/small/photo-1709708210553-490ba885fcf6"},links:{self:"https://api.unsplash.com/photos/a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg",html:"https://unsplash.com/photos/a-license-plate-on-the-back-of-a-car-W6AqsLH6HOg",download:"https://unsplash.com/photos/W6AqsLH6HOg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw",download_location:"https://api.unsplash.com/photos/W6AqsLH6HOg/download?ixid=M3wxMTc3M3wwfDF8YWxsfDMwfHx8fHx8Mnx8MTcxMDE1MzIwNXw"},likes:3,liked_by_user:!1,current_user_collections:[],sponsorship:null,topic_submissions:{},user:{id:"VNV70zPYNto",updated_at:"2024-03-11T06:48:56Z",username:"venajeborec",name:"Václav Pechar",first_name:"Václav",last_name:"Pechar",twitter_username:null,portfolio_url:null,bio:`Photographer from South Bohemia ✌🏻\r
|
||
Be free to contact me to book a shoot 🙏🏻`,location:"Czech Republic - Písek",links:{self:"https://api.unsplash.com/users/venajeborec",html:"https://unsplash.com/@venajeborec",photos:"https://api.unsplash.com/users/venajeborec/photos",likes:"https://api.unsplash.com/users/venajeborec/likes",portfolio:"https://api.unsplash.com/users/venajeborec/portfolio",following:"https://api.unsplash.com/users/venajeborec/following",followers:"https://api.unsplash.com/users/venajeborec/followers"},profile_image:{small:"https://images.unsplash.com/profile-1687031143105-2420498da92eimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=32&h=32",medium:"https://images.unsplash.com/profile-1687031143105-2420498da92eimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=64&h=64",large:"https://images.unsplash.com/profile-1687031143105-2420498da92eimage?ixlib=rb-4.0.3&crop=faces&fit=crop&w=128&h=128"},instagram_username:"amazingvena",total_collections:0,total_likes:7,total_photos:324,total_promoted_photos:30,accepted_tos:!0,for_hire:!0,social:{instagram_username:"amazingvena",portfolio_url:null,twitter_username:null,paypal_email:null}}}],k9e=b9e;class y9e{constructor(){Wn(this,"photos",k9e),Wn(this,"PAGINATION",{}),Wn(this,"REQUEST_IS_RUNNING",!1),Wn(this,"SEARCH_IS_RUNNING",!1),Wn(this,"LAST_REQUEST_URL",""),Wn(this,"ERROR",null),Wn(this,"IS_LOADING",!1),Wn(this,"currentPage",1)}async fetchPhotos(){this.IS_LOADING=!0;const e=(this.currentPage-1)*30,n=this.currentPage*30;return this.currentPage+=1,this.IS_LOADING=!1,this.photos.slice(e,n)}async fetchNextPage(){if(this.REQUEST_IS_RUNNING||this.SEARCH_IS_RUNNING)return null;const e=await this.fetchPhotos();return e.length>0?e:null}async searchPhotos(e){this.SEARCH_IS_RUNNING=!0;const n=this.photos.filter(i=>i.description&&i.description.toLowerCase().includes(e.toLowerCase())||i.alt_description&&i.alt_description.toLowerCase().includes(e.toLowerCase()));return this.SEARCH_IS_RUNNING=!1,n}searchIsRunning(){return this.SEARCH_IS_RUNNING}triggerDownload(e){}}class w9e{constructor(e){Wn(this,"_provider"),this._provider=e}async fetchPhotos(){return await this._provider.fetchPhotos()}async searchPhotos(e){return await this._provider.searchPhotos(e)}async triggerDownload(e){this._provider.triggerDownload(e)}async fetchNextPage(){return await this._provider.fetchNextPage()||null}searchIsRunning(){return this._provider.searchIsRunning()}}class x9e{constructor(e){Wn(this,"API_URL","https://api.unsplash.com"),Wn(this,"HEADERS"),Wn(this,"ERROR",null),Wn(this,"PAGINATION",{}),Wn(this,"REQUEST_IS_RUNNING",!1),Wn(this,"SEARCH_IS_RUNNING",!1),Wn(this,"LAST_REQUEST_URL",""),Wn(this,"IS_LOADING",!1),this.HEADERS=e}async makeRequest(e){if(this.REQUEST_IS_RUNNING)return null;this.LAST_REQUEST_URL=e;const n={method:"GET",headers:this.HEADERS};try{this.REQUEST_IS_RUNNING=!0,this.IS_LOADING=!0;const i=await fetch(e,n),r=await this.checkStatus(i);this.extractPagination(r);const o=await r.json();return"results"in o?o.results:o}catch(i){return this.ERROR=i,null}finally{this.REQUEST_IS_RUNNING=!1,this.IS_LOADING=!1}}extractPagination(e){let n=new RegExp('<(.*)>; rel="(.*)"'),i=[],r={};for(let o of e.headers.entries())o[0]==="link"&&i.push(o[1]);return i&&i.toString().split(",").forEach(o=>{if(o){let s=n.exec(o);s&&(r[s[2]]=s[1])}}),this.PAGINATION=r,e}async fetchPhotos(){const e=`${this.API_URL}/photos?per_page=30`;return await this.makeRequest(e)}async fetchNextPage(){if(this.REQUEST_IS_RUNNING||this.SEARCH_IS_RUNNING)return null;if(this.PAGINATION.next){const e=`${this.PAGINATION.next}`,n=await this.makeRequest(e);if(n)return n}return null}async searchPhotos(e){const n=`${this.API_URL}/search/photos?query=${e}&per_page=30`;return await this.makeRequest(n)||[]}async triggerDownload(e){e.links.download_location&&await this.makeRequest(e.links.download_location)}async checkStatus(e){if(e.status>=200&&e.status<300)return e;let n="",i;const r=e.headers.get("content-type");if(r==="application/json")i=e.json().then(o=>o.errors[0]);else if(r==="text/xml")i=e.text();else throw new Error("Unsupported content type");return i.then(o=>{throw e.status===403&&e.headers.get("x-ratelimit-remaining")==="0"&&(n="Unsplash API rate limit reached, please try again later."),n=n||o||`Error ${e.status}: Uh-oh! Trouble reaching the Unsplash API`,this.ERROR=n,new Error(n)})}searchIsRunning(){return this.SEARCH_IS_RUNNING}}class _9e{constructor(e,n){Wn(this,"photoUseCases"),Wn(this,"masonryService"),Wn(this,"photos",[]),this.photoUseCases=e,this.masonryService=n}async loadNew(){let e=await this.photoUseCases.fetchPhotos();this.photos=e,await this.layoutPhotos()}async layoutPhotos(){this.masonryService.reset(),this.photos&&this.photos.forEach(e=>{e.ratio=e.height/e.width,this.masonryService.addPhotoToColumns(e)})}getColumns(){return this.masonryService.getColumns()}async updateSearch(e){let n=await this.photoUseCases.searchPhotos(e);this.photos=n,this.layoutPhotos()}async loadNextPage(){const e=await this.photoUseCases.fetchNextPage()||[];this.photos=[...this.photos,...e],this.layoutPhotos()}clearPhotos(){this.photos=[]}triggerDownload(e){this.photoUseCases.triggerDownload(e)}searchIsRunning(){return this.photoUseCases.searchIsRunning()}}const O9e=({onClose:t,onImageInsert:e,unsplashProviderConfig:n})=>{const i=T.useMemo(()=>n?new x9e(n):new y9e,[n]),r=T.useMemo(()=>new w9e(i),[i]),o=T.useMemo(()=>new o9e(3),[]),s=T.useMemo(()=>new _9e(r,o),[r,o]),a=T.useRef(null),[l,u]=T.useState(0),[f,d]=T.useState(0),[h,g]=T.useState(s.searchIsRunning()||!0),m=T.useRef(!1),[y,x]=T.useState(""),[_,S]=T.useState(null),[C,E]=T.useState([]);T.useEffect(()=>{a.current&&_===null&&f!==0&&(a.current.scrollTop=f,d(0))},[_,l,f]),T.useEffect(()=>{const R=Q=>{Q.key==="Escape"&&t()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("keydown",R)}},[t]),T.useEffect(()=>{const R=a.current;if(!_)return R&&R.addEventListener("scroll",()=>{u(R.scrollTop)}),()=>{R&&R.removeEventListener("scroll",()=>{u(R.scrollTop)})}},[a,_]);const N=T.useCallback(async()=>{if(m.current===!1||y.length===0){E([]),s.clearPhotos(),await s.loadNew();const R=s.getColumns();E(R||[]),a.current&&a.current.scrollTop!==0&&(a.current.scrollTop=0),g(!1)}},[s,y]),M=async R=>{const Q=R.target.value;Q.length>2&&(S(null),x(Q)),Q.length===0&&(x(""),m.current=!1,await N())},I=T.useCallback(async()=>{if(y){g(!0),E([]),s.clearPhotos(),await s.updateSearch(y);const R=s.getColumns();R&&E(R),a.current&&a.current.scrollTop!==0&&(a.current.scrollTop=0),g(!1)}},[y,s]);T.useEffect(()=>{const R=setTimeout(async()=>{y.length>2?await I():await N()},300);return()=>{m.current=!0,clearTimeout(R)}},[y,I,N]);const W=T.useCallback(async()=>{g(!0),await s.loadNextPage();const R=s.getColumns();E(R||[]),g(!1)},[s]);T.useEffect(()=>{const R=a.current;if(R){const Q=async()=>{_===null&&R.scrollTop+R.clientHeight>=R.scrollHeight-1e3&&await W()};return R.addEventListener("scroll",Q),()=>{R.removeEventListener("scroll",Q)}}},[a,W,_]);const B=R=>{R&&(S(R),d(l)),R===null&&(S(null),a.current&&(a.current.scrollTop=f))};async function Z(R){R.src&&(s.triggerDownload(R),e(R))}return pt.jsx(v9e,{closeModal:t,handleSearch:M,children:pt.jsx(h9e,{dataset:C,error:null,galleryRef:a,insertImage:Z,isLoading:h,selectImg:B,zoomed:_})})},AH=({unsplashConf:t,onImageInsert:e,onClose:n})=>k.jsx(Gc,{children:k.jsx(O9e,{unsplashProviderConfig:t,onClose:n,onImageInsert:e})}),S9e=({nodeKey:t,isModalOpen:e=!0})=>{const{cardConfig:n}=T.useContext(ft),[i]=Oe.useLexicalComposerContext(),[r,o]=T.useState(e),s=()=>{t&&i.update(()=>{A.$getNodeByKey(t).remove()})},a=async l=>{i.update(()=>{const u=A.$getNodeByKey(t);u.src=l.src,u.height=l.height,u.width=l.width,u.caption=l.caption,u.alt=l.alt;const f=TB({editor:u.__captionEditor,initialHtml:`${l.caption}`});u.__captionEditor.setEditorState(f);const d=A.$createNodeSelection();d.add(u.getKey()),A.$setSelection(d)}),o(!1)};return r?k.jsx(AH,{unsplashConf:n.unsplash,onClose:s,onImageInsert:a}):null},PH=A.createCommand("OPEN_TENOR_SELECTOR_COMMAND"),DH=A.createCommand("INSERT_FROM_TENOR_COMMAND"),IH=A.createCommand("OPEN_UNSPLASH_SELECTOR_COMMAND"),C9e=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Au])){console.error("ImagePlugin: ImageNode not registered");return}return ut.mergeRegister(t.registerCommand(PH,async e=>{const n=Sh({...e,selector:t9e,isImageHidden:!0});return t.dispatchCommand(kn,{cardNode:n}),!0},A.COMMAND_PRIORITY_LOW),t.registerCommand(DH,async e=>{const n=Sh(e),r=A.$getSelection().getNodes()[0];return t.dispatchCommand(kn,{cardNode:n}),r.remove(),!0},A.COMMAND_PRIORITY_LOW),t.registerCommand(IH,async e=>{const n=Sh({...e,selector:S9e});return t.dispatchCommand(kn,{cardNode:n}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},K6=A.createCommand();class Au extends Lg{constructor(n={},i){super(n,i);ye(this,"__triggerFileDialog",!1);ye(this,"__previewSrc",null);ye(this,"__captionEditor");ye(this,"__captionEditorInitialState");const{previewSrc:r,triggerFileDialog:o,initialFile:s,selector:a,isImageHidden:l}=n;this.__previewSrc=r||"",this.__triggerFileDialog=!n.src&&o||!1,this.__initialFile=s||null,this.__selector=a,this.__isImageHidden=l,vi(this,"__captionEditor",{editor:n.captionEditor,nodes:Qi}),!n.captionEditor&&n.caption&&bi(this,"__captionEditor",`${n.caption}`)}getIcon(){return u_}getDataset(){const n=super.getDataset();n.__previewSrc=this.__previewSrc,n.__triggerFileDialog=this.__triggerFileDialog;const i=this.getLatest();return n.captionEditor=i.__captionEditor,n.captionEditorInitialState=i.__captionEditorInitialState,n}get previewSrc(){return this.getLatest().__previewSrc}set previewSrc(n){const i=this.getWritable();i.__previewSrc=n}set triggerFileDialog(n){const i=this.getWritable();i.__triggerFileDialog=n}createDOM(){return document.createElement("div")}exportJSON(){const n=super.exportJSON();return this.__captionEditor&&this.__captionEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__captionEditor,null),r=si(i,{firstChildInnerContent:!0});n.caption=r}),n}decorate(){const n=this.__selector;return k.jsxs(An,{nodeKey:this.getKey(),width:this.__cardWidth,children:[this.__selector&&k.jsx(n,{nodeKey:this.getKey()}),!this.__isImageHidden&&k.jsx(H8e,{altText:this.__alt,captionEditor:this.__captionEditor,captionEditorInitialState:this.__captionEditorInitialState,href:this.href,initialFile:this.__initialFile,nodeKey:this.getKey(),previewSrc:this.previewSrc,src:this.src,triggerFileDialog:this.__triggerFileDialog})]})}}ye(Au,"kgMenu",[{label:"Image",desc:"Upload, or embed with /image [url]",Icon:u_,insertCommand:K6,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"],priority:1,shortcut:"/image"},{section:"Embeds",label:"Unsplash",desc:"/unsplash [search term or url]",Icon:a9,insertCommand:IH,insertParams:{triggerFileDialog:!1},isHidden:({config:n})=>!(n!=null&&n.unsplash),matches:["unsplash","uns"],queryParams:["src"],priority:3,shortcut:"/unsplash"},{label:"GIF",desc:"Search and embed gifs",Icon:K8,insertCommand:PH,insertParams:{triggerFileDialog:!1},matches:["gif","giphy","tenor"],priority:17,queryParams:["src"],isHidden:({config:n})=>!(n!=null&&n.tenor),shortcut:"/gif"}]),ye(Au,"uploadType","image");const Sh=t=>new Au(t);function E9e(t){return t instanceof Au}function T9e(t,e,n,i){var r=-1,o=t==null?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}var $9e=T9e;function M9e(t){return function(e){return t==null?void 0:t[e]}}var N9e=M9e,A9e=N9e,P9e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},D9e=A9e(P9e),I9e=D9e,L9e=I9e,R9e=Qy,j9e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,F9e="\\u0300-\\u036f",z9e="\\ufe20-\\ufe2f",B9e="\\u20d0-\\u20ff",W9e=F9e+z9e+B9e,H9e="["+W9e+"]",Q9e=RegExp(H9e,"g");function U9e(t){return t=R9e(t),t&&t.replace(j9e,L9e).replace(Q9e,"")}var Z9e=U9e,q9e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Y9e(t){return t.match(q9e)||[]}var V9e=Y9e,X9e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function G9e(t){return X9e.test(t)}var K9e=G9e,LH="\\ud800-\\udfff",J9e="\\u0300-\\u036f",e$e="\\ufe20-\\ufe2f",t$e="\\u20d0-\\u20ff",n$e=J9e+e$e+t$e,RH="\\u2700-\\u27bf",jH="a-z\\xdf-\\xf6\\xf8-\\xff",i$e="\\xac\\xb1\\xd7\\xf7",r$e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",o$e="\\u2000-\\u206f",s$e=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",FH="A-Z\\xc0-\\xd6\\xd8-\\xde",a$e="\\ufe0e\\ufe0f",zH=i$e+r$e+o$e+s$e,BH="['’]",WH="["+zH+"]",l$e="["+n$e+"]",HH="\\d+",u$e="["+RH+"]",QH="["+jH+"]",UH="[^"+LH+zH+HH+RH+jH+FH+"]",c$e="\\ud83c[\\udffb-\\udfff]",f$e="(?:"+l$e+"|"+c$e+")",d$e="[^"+LH+"]",ZH="(?:\\ud83c[\\udde6-\\uddff]){2}",qH="[\\ud800-\\udbff][\\udc00-\\udfff]",Ch="["+FH+"]",h$e="\\u200d",YH="(?:"+QH+"|"+UH+")",p$e="(?:"+Ch+"|"+UH+")",VH="(?:"+BH+"(?:d|ll|m|re|s|t|ve))?",XH="(?:"+BH+"(?:D|LL|M|RE|S|T|VE))?",GH=f$e+"?",KH="["+a$e+"]?",g$e="(?:"+h$e+"(?:"+[d$e,ZH,qH].join("|")+")"+KH+GH+")*",m$e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",v$e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",b$e=KH+GH+g$e,k$e="(?:"+[u$e,ZH,qH].join("|")+")"+b$e,y$e=RegExp([Ch+"?"+QH+"+"+VH+"(?="+[WH,Ch,"$"].join("|")+")",p$e+"+"+XH+"(?="+[WH,Ch+YH,"$"].join("|")+")",Ch+"?"+YH+"+"+VH,Ch+"+"+XH,v$e,m$e,HH,k$e].join("|"),"g");function w$e(t){return t.match(y$e)||[]}var x$e=w$e,_$e=V9e,O$e=K9e,S$e=Qy,C$e=x$e;function E$e(t,e,n){return t=S$e(t),e=n?void 0:e,e===void 0?O$e(t)?C$e(t):_$e(t):t.match(e)||[]}var T$e=E$e,$$e=$9e,M$e=Z9e,N$e=T$e,A$e="['’]",P$e=RegExp(A$e,"g");function D$e(t){return function(e){return $$e(N$e(M$e(e).replace(P$e,"")),t,"")}}var I$e=D$e,L$e=I$e,R$e=L$e(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),j$e=R$e;const dw=xo(j$e),hw="koenigDndContainer",JH=`[data-${dw(hw)}]`,J6="koenigDndDraggable",F$e=`[data-${dw(J6)}]`,e5="koenigDndDroppable",t5=`[data-${dw(e5)}]`,z$e=`[data-${dw("koenigDndDisabled")}]`,eQ="koenig-drag-drop-indicator",n5=1e4,B$e="koenig-drag-drop-ghost-container",W$e=n5+1;function tQ(t,e,n=""){return t===-1?!0:t===e||typeof e>"u"?!1:(n.match(/top/)&&(e-=1),n.match(/bottom/)&&(e+=1),e!==t)}function Eh(t,e){return r5(t,e,n=>n.parentNode)}function H$e(t,e){return t=t.nextElementSibling,r5(t,e,n=>n.nextElementSibling)}function Q$e(t,e){return t=t.previousElementSibling,r5(t,e,n=>n.previousElementSibling)}function U$e(t){if(!t)return i5();let e=getComputedStyle(t).getPropertyValue("position"),n=e==="absolute",i=Eh(t,r=>n&&Z$e(r)?!1:q$e(r));return e==="fixed"&&!i?i5():i}function i5(){var t;return((t=document.scrollingElement)==null?void 0:t.body)||document.scrollingElement||document.element}function nQ(t,e){t.style.webkitUserSelect=e,t.style.mozUserSelect=e,t.style.msUserSelect=e,t.style.oUserSelect=e,t.style.userSelect=e}function r5(t,e,n){if(!t)return null;let i=e,r=e,o=typeof e=="string",s=typeof e=="function";function a(u){if(u){if(o)return u.matches(i);if(s)return r(u)}else return u}let l=t;do{if(a(l))return l;l=n(l)}while(l&&l!==document.body&&l!==document)}function Z$e(t){return getComputedStyle(t).getPropertyValue("position")==="static"}function q$e(t){let e=/(auto|scroll)/,n=getComputedStyle(t,null),i=n.getPropertyValue("overflow")+n.getPropertyValue("overflow-y")+n.getPropertyValue("overflow-x");return e.test(i)}var iQ={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(n=!1));function r(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function o(l,u,f,d,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new r(f,d||l,h),m=n?n+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],g]:l._events[m].push(g):(l._events[m]=g,l._eventsCount++),l}function s(l,u){--l._eventsCount===0?l._events=new i:delete l._events[u]}function a(){this._events=new i,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)e.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},a.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,g=d.length,m=new Array(g);h<g;h++)m[h]=d[h].fn;return m},a.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},a.prototype.emit=function(u,f,d,h,g,m){var y=n?n+u:u;if(!this._events[y])return!1;var x=this._events[y],_=arguments.length,S,C;if(x.fn){switch(x.once&&this.removeListener(u,x.fn,void 0,!0),_){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,f),!0;case 3:return x.fn.call(x.context,f,d),!0;case 4:return x.fn.call(x.context,f,d,h),!0;case 5:return x.fn.call(x.context,f,d,h,g),!0;case 6:return x.fn.call(x.context,f,d,h,g,m),!0}for(C=1,S=new Array(_-1);C<_;C++)S[C-1]=arguments[C];x.fn.apply(x.context,S)}else{var E=x.length,N;for(C=0;C<E;C++)switch(x[C].once&&this.removeListener(u,x[C].fn,void 0,!0),_){case 1:x[C].fn.call(x[C].context);break;case 2:x[C].fn.call(x[C].context,f);break;case 3:x[C].fn.call(x[C].context,f,d);break;case 4:x[C].fn.call(x[C].context,f,d,h);break;default:if(!S)for(N=1,S=new Array(_-1);N<_;N++)S[N-1]=arguments[N];x[C].fn.apply(x[C].context,S)}}return!0},a.prototype.on=function(u,f,d){return o(this,u,f,d,!1)},a.prototype.once=function(u,f,d){return o(this,u,f,d,!0)},a.prototype.removeListener=function(u,f,d,h){var g=n?n+u:u;if(!this._events[g])return this;if(!f)return s(this,g),this;var m=this._events[g];if(m.fn)m.fn===f&&(!h||m.once)&&(!d||m.context===d)&&s(this,g);else{for(var y=0,x=[],_=m.length;y<_;y++)(m[y].fn!==f||h&&!m[y].once||d&&m[y].context!==d)&&x.push(m[y]);x.length?this._events[g]=x.length===1?x[0]:x:s(this,g)}return this},a.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&s(this,f)):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,t.exports=a})(iQ);var Y$e=iQ.exports;const V$e=xo(Y$e);class X$e{constructor(e,n){ye(this,"element",null);ye(this,"draggables",[]);ye(this,"droppables",[]);ye(this,"isDragEnabled",!0);n.createGhostElement&&(this._createGhostElement=n.createGhostElement,delete n.createGhostElement),Object.assign(this,{element:e,draggables:[],droppables:[],isDragEnabled:!0},n),e.dataset[hw]="true",this.refresh()}getDraggableInfo(){return!1}getIndicatorPosition(){return!1}onDragStart(){}onDragEnterContainer(){}onDragEnterDroppable(){}onDragOverDroppable(){}onDragLeaveDroppable(){}onDragLeaveContainer(){}onDragEnd(){}onDrop(){}onDropEnd(){}createGhostElement(e){let n;if(typeof this._createGhostElement=="function"&&(n=this._createGhostElement(e)),!n&&(e.type==="image"||e.cardName==="image")){let i=e.element.querySelector("img");if(i){let r=i.width/i.height,o,s;i.width>i.height?(o=200,s=200/r):(o=200*r,s=200),n=document.createElement("img"),n.width=o,n.height=s,n.id="koenig-drag-drop-ghost",n.src=i.src,n.style.position="absolute",n.style.top="0",n.style.left=`-${o}px`,n.style.zIndex=W$e,n.style.willChange="transform"}else{console.warn("No <img> element found in draggable");return}}if(n)return n;console.warn(`No default createGhostElement handler for type "${e.type}"`)}enableDrag(){this.isDragEnabled=!0,this.element.dataset[hw]="true",this.refresh()}disableDrag(){this.isDragEnabled=!1,delete this.element.dataset[hw],this.refresh()}refresh(){this.draggables.forEach(e=>{delete e.dataset[J6]}),this.droppables.forEach(e=>{delete e.dataset[e5]}),this.draggables=[],this.droppables=[],this.isDragEnabled&&(this.element.querySelectorAll(this.draggableSelector).forEach(e=>{e.dataset[J6]="true",this.draggables.push(e)}),this.element.querySelectorAll(this.droppableSelector).forEach(e=>{e.dataset[e5]="true",this.droppables.push(e)}))}}const G$e={speed:8,sensitivity:50};class K$e{constructor(){this.options=Object.assign({},G$e),this.currentMousePosition=null,this.findScrollableElementFrame=null,this.scrollableElement=null,this.scrollAnimationFrame=null,this._scroll=this._scroll.bind(this),this._isSafari=navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}dragStart(e){this.findScrollableElementFrame=requestAnimationFrame(()=>{this.scrollableElement=this.getScrollableElement(e.element)})}dragMove(e){this.findScrollableElementFrame=requestAnimationFrame(()=>{this.scrollableElement=this.getScrollableElement(e.target)}),this.scrollableElement&&(this.currentMousePosition={clientX:e.mousePosition.x,clientY:e.mousePosition.y},this.scrollAnimationFrame=requestAnimationFrame(this._scroll))}dragStop(){cancelAnimationFrame(this.scrollAnimationFrame),cancelAnimationFrame(this.findScrollableElementFrame),this.currentMousePosition=null,this.findScrollableElementFrame=null,this.scrollableElement=null,this.scrollAnimationFrame=null}getScrollableElement(e){let n=U$e(e);return n===i5()&&(n=document.querySelector(".gh-koenig-editor")),n}_scroll(){if(!this.scrollableElement||!this.currentMousePosition)return;cancelAnimationFrame(this.scrollAnimationFrame);let{speed:e,sensitivity:n}=this.options,i=this.scrollableElement.getBoundingClientRect(),r=this.scrollableElement,o=this.currentMousePosition.clientX,s=this.currentMousePosition.clientY,{offsetHeight:a,offsetWidth:l}=r,u=i.top+a-s,f=s-i.top;u<n&&!(this._isSafari&&u<0)?r.scrollTop+=e:f<n&&!(this._isSafari&&f<0)&&(r.scrollTop-=e),i.left+l-o<n?r.scrollLeft+=e:o-i.left<n&&(r.scrollLeft-=e),this.scrollAnimationFrame=requestAnimationFrame(this._scroll)}}var Th={};/**
|
||
* @license React
|
||
* react-dom-server-legacy.browser.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 rQ=T;function Ot(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ho=Object.prototype.hasOwnProperty,J$e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oQ={},sQ={};function aQ(t){return ho.call(sQ,t)?!0:ho.call(oQ,t)?!1:J$e.test(t)?sQ[t]=!0:(oQ[t]=!0,!1)}function Vr(t,e,n,i,r,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var ar={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ar[t]=new Vr(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ar[e]=new Vr(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){ar[t]=new Vr(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ar[t]=new Vr(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ar[t]=new Vr(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){ar[t]=new Vr(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){ar[t]=new Vr(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){ar[t]=new Vr(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){ar[t]=new Vr(t,5,!1,t.toLowerCase(),null,!1,!1)});var o5=/[\-:]([a-z])/g;function s5(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(o5,s5);ar[e]=new Vr(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(o5,s5);ar[e]=new Vr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(o5,s5);ar[e]=new Vr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){ar[t]=new Vr(t,1,!1,t.toLowerCase(),null,!1,!1)}),ar.xlinkHref=new Vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){ar[t]=new Vr(t,1,!1,t.toLowerCase(),null,!0,!0)});var pw={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eMe=["Webkit","ms","Moz","O"];Object.keys(pw).forEach(function(t){eMe.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),pw[e]=pw[t]})});var tMe=/["'&<>]/;function Xr(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var e=tMe.exec(t);if(e){var n="",i,r=0;for(i=e.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:e=""";break;case 38:e="&";break;case 39:e="'";break;case 60:e="<";break;case 62:e=">";break;default:continue}r!==i&&(n+=t.substring(r,i)),r=i+1,n+=e}t=r!==i?n+t.substring(r,i):n}return t}var nMe=/([A-Z])/g,iMe=/^ms-/,a5=Array.isArray;function gl(t,e){return{insertionMode:t,selectedValue:e}}function rMe(t,e,n){switch(e){case"select":return gl(1,n.value!=null?n.value:n.defaultValue);case"svg":return gl(2,null);case"math":return gl(3,null);case"foreignObject":return gl(1,null);case"table":return gl(4,null);case"thead":case"tbody":case"tfoot":return gl(5,null);case"colgroup":return gl(7,null);case"tr":return gl(6,null)}return 4<=t.insertionMode||t.insertionMode===0?gl(1,null):t}var lQ=new Map;function uQ(t,e,n){if(typeof n!="object")throw Error(Ot(62));e=!0;for(var i in n)if(ho.call(n,i)){var r=n[i];if(r!=null&&typeof r!="boolean"&&r!==""){if(i.indexOf("--")===0){var o=Xr(i);r=Xr((""+r).trim())}else{o=i;var s=lQ.get(o);s!==void 0||(s=Xr(o.replace(nMe,"-$1").toLowerCase().replace(iMe,"-ms-")),lQ.set(o,s)),o=s,r=typeof r=="number"?r===0||ho.call(pw,i)?""+r:r+"px":Xr((""+r).trim())}e?(e=!1,t.push(' style="',o,":",r)):t.push(";",o,":",r)}}e||t.push('"')}function Ro(t,e,n,i){switch(n){case"style":uQ(t,e,i);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"){if(e=ar.hasOwnProperty(n)?ar[n]:null,e!==null){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!e.acceptsBooleans)return}switch(n=e.attributeName,e.type){case 3:i&&t.push(" ",n,'=""');break;case 4:i===!0?t.push(" ",n,'=""'):i!==!1&&t.push(" ",n,'="',Xr(i),'"');break;case 5:isNaN(i)||t.push(" ",n,'="',Xr(i),'"');break;case 6:!isNaN(i)&&1<=i&&t.push(" ",n,'="',Xr(i),'"');break;default:e.sanitizeURL&&(i=""+i),t.push(" ",n,'="',Xr(i),'"')}}else if(aQ(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(e=n.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")return}t.push(" ",n,'="',Xr(i),'"')}}}function gw(t,e,n){if(e!=null){if(n!=null)throw Error(Ot(60));if(typeof e!="object"||!("__html"in e))throw Error(Ot(61));e=e.__html,e!=null&&t.push(""+e)}}function oMe(t){var e="";return rQ.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function l5(t,e,n,i){t.push(Ta(n));var r=n=null,o;for(o in e)if(ho.call(e,o)){var s=e[o];if(s!=null)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":r=s;break;default:Ro(t,i,o,s)}}return t.push(">"),gw(t,r,n),typeof n=="string"?(t.push(Xr(n)),null):n}var sMe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,cQ=new Map;function Ta(t){var e=cQ.get(t);if(e===void 0){if(!sMe.test(t))throw Error(Ot(65,t));e="<"+t,cQ.set(t,e)}return e}function aMe(t,e,n,i,r){switch(e){case"select":t.push(Ta("select"));var o=null,s=null;for(f in n)if(ho.call(n,f)){var a=n[f];if(a!=null)switch(f){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:Ro(t,i,f,a)}}return t.push(">"),gw(t,s,o),o;case"option":s=r.selectedValue,t.push(Ta("option"));var l=a=null,u=null,f=null;for(o in n)if(ho.call(n,o)){var d=n[o];if(d!=null)switch(o){case"children":a=d;break;case"selected":u=d;break;case"dangerouslySetInnerHTML":f=d;break;case"value":l=d;default:Ro(t,i,o,d)}}if(s!=null)if(n=l!==null?""+l:oMe(a),a5(s)){for(i=0;i<s.length;i++)if(""+s[i]===n){t.push(' selected=""');break}}else""+s===n&&t.push(' selected=""');else u&&t.push(' selected=""');return t.push(">"),gw(t,f,a),a;case"textarea":t.push(Ta("textarea")),f=s=o=null;for(a in n)if(ho.call(n,a)&&(l=n[a],l!=null))switch(a){case"children":f=l;break;case"value":o=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(Ot(91));default:Ro(t,i,a,l)}if(o===null&&s!==null&&(o=s),t.push(">"),f!=null){if(o!=null)throw Error(Ot(92));if(a5(f)&&1<f.length)throw Error(Ot(93));o=""+f}return typeof o=="string"&&o[0]===`
|
||
`&&t.push(`
|
||
`),o!==null&&t.push(Xr(""+o)),null;case"input":t.push(Ta("input")),l=f=a=o=null;for(s in n)if(ho.call(n,s)&&(u=n[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(Ot(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":f=u;break;case"value":o=u;break;default:Ro(t,i,s,u)}return f!==null?Ro(t,i,"checked",f):l!==null&&Ro(t,i,"checked",l),o!==null?Ro(t,i,"value",o):a!==null&&Ro(t,i,"value",a),t.push("/>"),null;case"menuitem":t.push(Ta("menuitem"));for(var h in n)if(ho.call(n,h)&&(o=n[h],o!=null))switch(h){case"children":case"dangerouslySetInnerHTML":throw Error(Ot(400));default:Ro(t,i,h,o)}return t.push(">"),null;case"title":t.push(Ta("title")),o=null;for(d in n)if(ho.call(n,d)&&(s=n[d],s!=null))switch(d){case"children":o=s;break;case"dangerouslySetInnerHTML":throw Error(Ot(434));default:Ro(t,i,d,s)}return t.push(">"),o;case"listing":case"pre":t.push(Ta(e)),s=o=null;for(l in n)if(ho.call(n,l)&&(a=n[l],a!=null))switch(l){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;default:Ro(t,i,l,a)}if(t.push(">"),s!=null){if(o!=null)throw Error(Ot(60));if(typeof s!="object"||!("__html"in s))throw Error(Ot(61));n=s.__html,n!=null&&(typeof n=="string"&&0<n.length&&n[0]===`
|
||
`?t.push(`
|
||
`,n):t.push(""+n))}return typeof o=="string"&&o[0]===`
|
||
`&&t.push(`
|
||
`),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":t.push(Ta(e));for(var g in n)if(ho.call(n,g)&&(o=n[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(Ot(399,e));default:Ro(t,i,g,o)}return t.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return l5(t,n,e,i);case"html":return r.insertionMode===0&&t.push("<!DOCTYPE html>"),l5(t,n,e,i);default:if(e.indexOf("-")===-1&&typeof n.is!="string")return l5(t,n,e,i);t.push(Ta(e)),s=o=null;for(u in n)if(ho.call(n,u)&&(a=n[u],a!=null))switch(u){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":uQ(t,i,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:aQ(u)&&typeof a!="function"&&typeof a!="symbol"&&t.push(" ",u,'="',Xr(a),'"')}return t.push(">"),gw(t,s,o),o}}function fQ(t,e,n){if(t.push('<!--$?--><template id="'),n===null)throw Error(Ot(395));return t.push(n),t.push('"></template>')}function lMe(t,e,n,i){switch(n.insertionMode){case 0:case 1:return t.push('<div hidden id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 2:return t.push('<svg aria-hidden="true" style="display:none" id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 3:return t.push('<math aria-hidden="true" style="display:none" id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 4:return t.push('<table hidden id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 5:return t.push('<table hidden><tbody id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 6:return t.push('<table hidden><tr id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');case 7:return t.push('<table hidden><colgroup id="'),t.push(e.segmentPrefix),e=i.toString(16),t.push(e),t.push('">');default:throw Error(Ot(397))}}function uMe(t,e){switch(e.insertionMode){case 0:case 1:return t.push("</div>");case 2:return t.push("</svg>");case 3:return t.push("</math>");case 4:return t.push("</table>");case 5:return t.push("</tbody></table>");case 6:return t.push("</tr></table>");case 7:return t.push("</colgroup></table>");default:throw Error(Ot(397))}}var cMe=/[<\u2028\u2029]/g;function u5(t){return JSON.stringify(t).replace(cMe,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function fMe(t,e){return e=e===void 0?"":e,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:e+"P:",segmentPrefix:e+"S:",boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:t}}function dQ(t,e,n,i){return n.generateStaticMarkup?(t.push(Xr(e)),!1):(e===""?t=i:(i&&t.push("<!-- -->"),t.push(Xr(e)),t=!0),t)}var k0=Object.assign,dMe=Symbol.for("react.element"),hQ=Symbol.for("react.portal"),pQ=Symbol.for("react.fragment"),gQ=Symbol.for("react.strict_mode"),mQ=Symbol.for("react.profiler"),vQ=Symbol.for("react.provider"),bQ=Symbol.for("react.context"),kQ=Symbol.for("react.forward_ref"),yQ=Symbol.for("react.suspense"),wQ=Symbol.for("react.suspense_list"),xQ=Symbol.for("react.memo"),c5=Symbol.for("react.lazy"),hMe=Symbol.for("react.scope"),pMe=Symbol.for("react.debug_trace_mode"),gMe=Symbol.for("react.legacy_hidden"),mMe=Symbol.for("react.default_value"),_Q=Symbol.iterator;function f5(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case pQ:return"Fragment";case hQ:return"Portal";case mQ:return"Profiler";case gQ:return"StrictMode";case yQ:return"Suspense";case wQ:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case bQ:return(t.displayName||"Context")+".Consumer";case vQ:return(t._context.displayName||"Context")+".Provider";case kQ:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case xQ:return e=t.displayName||null,e!==null?e:f5(t.type)||"Memo";case c5:e=t._payload,t=t._init;try{return f5(t(e))}catch{}}return null}var OQ={};function SQ(t,e){if(t=t.contextTypes,!t)return OQ;var n={},i;for(i in t)n[i]=e[i];return n}var af=null;function mw(t,e){if(t!==e){t.context._currentValue2=t.parentValue,t=t.parent;var n=e.parent;if(t===null){if(n!==null)throw Error(Ot(401))}else{if(n===null)throw Error(Ot(401));mw(t,n)}e.context._currentValue2=e.value}}function CQ(t){t.context._currentValue2=t.parentValue,t=t.parent,t!==null&&CQ(t)}function EQ(t){var e=t.parent;e!==null&&EQ(e),t.context._currentValue2=t.value}function TQ(t,e){if(t.context._currentValue2=t.parentValue,t=t.parent,t===null)throw Error(Ot(402));t.depth===e.depth?mw(t,e):TQ(t,e)}function $Q(t,e){var n=e.parent;if(n===null)throw Error(Ot(402));t.depth===n.depth?mw(t,n):$Q(t,n),e.context._currentValue2=e.value}function vw(t){var e=af;e!==t&&(e===null?EQ(t):t===null?CQ(e):e.depth===t.depth?mw(e,t):e.depth>t.depth?TQ(e,t):$Q(e,t),af=t)}var MQ={isMounted:function(){return!1},enqueueSetState:function(t,e){t=t._reactInternals,t.queue!==null&&t.queue.push(e)},enqueueReplaceState:function(t,e){t=t._reactInternals,t.replace=!0,t.queue=[e]},enqueueForceUpdate:function(){}};function NQ(t,e,n,i){var r=t.state!==void 0?t.state:null;t.updater=MQ,t.props=n,t.state=r;var o={queue:[],replace:!1};t._reactInternals=o;var s=e.contextType;if(t.context=typeof s=="object"&&s!==null?s._currentValue2:i,s=e.getDerivedStateFromProps,typeof s=="function"&&(s=s(n,r),r=s==null?r:k0({},r,s),t.state=r),typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function"))if(e=t.state,typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),e!==t.state&&MQ.enqueueReplaceState(t,t.state,null),o.queue!==null&&0<o.queue.length)if(e=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&e.length===1)t.state=e[0];else{for(o=s?e[0]:t.state,r=!0,s=s?1:0;s<e.length;s++){var a=e[s];a=typeof a=="function"?a.call(t,o,n,i):a,a!=null&&(r?(r=!1,o=k0({},o,a)):k0(o,a))}t.state=o}else o.queue=null}var vMe={id:1,overflow:""};function d5(t,e,n){var i=t.id;t=t.overflow;var r=32-bw(i)-1;i&=~(1<<r),n+=1;var o=32-bw(e)+r;if(30<o){var s=r-r%5;return o=(i&(1<<s)-1).toString(32),i>>=s,r-=s,{id:1<<32-bw(e)+r|n<<r|i,overflow:o+t}}return{id:1<<o|n<<r|i,overflow:t}}var bw=Math.clz32?Math.clz32:yMe,bMe=Math.log,kMe=Math.LN2;function yMe(t){return t>>>=0,t===0?32:31-(bMe(t)/kMe|0)|0}function wMe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var xMe=typeof Object.is=="function"?Object.is:wMe,ml=null,h5=null,kw=null,cn=null,y0=!1,yw=!1,w0=0,Pu=null,ww=0;function lf(){if(ml===null)throw Error(Ot(321));return ml}function AQ(){if(0<ww)throw Error(Ot(312));return{memoizedState:null,queue:null,next:null}}function p5(){return cn===null?kw===null?(y0=!1,kw=cn=AQ()):(y0=!0,cn=kw):cn.next===null?(y0=!1,cn=cn.next=AQ()):(y0=!0,cn=cn.next),cn}function g5(){h5=ml=null,yw=!1,kw=null,ww=0,cn=Pu=null}function PQ(t,e){return typeof e=="function"?e(t):e}function DQ(t,e,n){if(ml=lf(),cn=p5(),y0){var i=cn.queue;if(e=i.dispatch,Pu!==null&&(n=Pu.get(i),n!==void 0)){Pu.delete(i),i=cn.memoizedState;do i=t(i,n.action),n=n.next;while(n!==null);return cn.memoizedState=i,[i,e]}return[cn.memoizedState,e]}return t=t===PQ?typeof e=="function"?e():e:n!==void 0?n(e):e,cn.memoizedState=t,t=cn.queue={last:null,dispatch:null},t=t.dispatch=_Me.bind(null,ml,t),[cn.memoizedState,t]}function IQ(t,e){if(ml=lf(),cn=p5(),e=e===void 0?null:e,cn!==null){var n=cn.memoizedState;if(n!==null&&e!==null){var i=n[1];e:if(i===null)i=!1;else{for(var r=0;r<i.length&&r<e.length;r++)if(!xMe(e[r],i[r])){i=!1;break e}i=!0}if(i)return n[0]}}return t=t(),cn.memoizedState=[t,e],t}function _Me(t,e,n){if(25<=ww)throw Error(Ot(301));if(t===ml)if(yw=!0,t={action:n,next:null},Pu===null&&(Pu=new Map),n=Pu.get(e),n===void 0)Pu.set(e,t);else{for(e=n;e.next!==null;)e=e.next;e.next=t}}function OMe(){throw Error(Ot(394))}function xw(){}var LQ={readContext:function(t){return t._currentValue2},useContext:function(t){return lf(),t._currentValue2},useMemo:IQ,useReducer:DQ,useRef:function(t){ml=lf(),cn=p5();var e=cn.memoizedState;return e===null?(t={current:t},cn.memoizedState=t):e},useState:function(t){return DQ(PQ,t)},useInsertionEffect:xw,useLayoutEffect:function(){},useCallback:function(t,e){return IQ(function(){return t},e)},useImperativeHandle:xw,useEffect:xw,useDebugValue:xw,useDeferredValue:function(t){return lf(),t},useTransition:function(){return lf(),[!1,OMe]},useId:function(){var t=h5.treeContext,e=t.overflow;t=t.id,t=(t&~(1<<32-bw(t)-1)).toString(32)+e;var n=_w;if(n===null)throw Error(Ot(404));return e=w0++,t=":"+n.idPrefix+"R"+t,0<e&&(t+="H"+e.toString(32)),t+":"},useMutableSource:function(t,e){return lf(),e(t._source)},useSyncExternalStore:function(t,e,n){if(n===void 0)throw Error(Ot(407));return n()}},_w=null,m5=rQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function SMe(t){return console.error(t),null}function x0(){}function CMe(t,e,n,i,r,o,s,a,l){var u=[],f=new Set;return e={destination:null,responseState:e,progressiveChunkSize:i===void 0?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:r===void 0?SMe:r,onAllReady:x0,onShellReady:s===void 0?x0:s,onShellError:x0,onFatalError:x0},n=Ow(e,0,null,n,!1,!1),n.parentFlushed=!0,t=v5(e,t,null,n,f,OQ,null,vMe),u.push(t),e}function v5(t,e,n,i,r,o,s,a){t.allPendingTasks++,n===null?t.pendingRootTasks++:n.pendingTasks++;var l={node:e,ping:function(){var u=t.pingedTasks;u.push(l),u.length===1&&HQ(t)},blockedBoundary:n,blockedSegment:i,abortSet:r,legacyContext:o,context:s,treeContext:a};return r.add(l),l}function Ow(t,e,n,i,r,o){return{status:0,id:-1,index:e,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:r,textEmbedded:o}}function _0(t,e){if(t=t.onError(e),t!=null&&typeof t!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof t+'" instead');return t}function Sw(t,e){var n=t.onShellError;n(e),n=t.onFatalError,n(e),t.destination!==null?(t.status=2,t.destination.destroy(e)):(t.status=1,t.fatalError=e)}function RQ(t,e,n,i,r){for(ml={},h5=e,w0=0,t=n(i,r);yw;)yw=!1,w0=0,ww+=1,cn=null,t=n(i,r);return g5(),t}function jQ(t,e,n,i){var r=n.render(),o=i.childContextTypes;if(o!=null){var s=e.legacyContext;if(typeof n.getChildContext!="function")i=s;else{n=n.getChildContext();for(var a in n)if(!(a in o))throw Error(Ot(108,f5(i)||"Unknown",a));i=k0({},s,n)}e.legacyContext=i,jo(t,e,r),e.legacyContext=s}else jo(t,e,r)}function FQ(t,e){if(t&&t.defaultProps){e=k0({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function b5(t,e,n,i,r){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){r=SQ(n,e.legacyContext);var o=n.contextType;o=new n(i,typeof o=="object"&&o!==null?o._currentValue2:r),NQ(o,n,i,r),jQ(t,e,o,n)}else{o=SQ(n,e.legacyContext),r=RQ(t,e,n,i,o);var s=w0!==0;if(typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0)NQ(r,n,i,o),jQ(t,e,r,n);else if(s){i=e.treeContext,e.treeContext=d5(i,1,0);try{jo(t,e,r)}finally{e.treeContext=i}}else jo(t,e,r)}else if(typeof n=="string"){switch(r=e.blockedSegment,o=aMe(r.chunks,n,i,t.responseState,r.formatContext),r.lastPushedText=!1,s=r.formatContext,r.formatContext=rMe(s,n,i),k5(t,e,o),r.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push("</",n,">")}r.lastPushedText=!1}else{switch(n){case gMe:case pMe:case gQ:case mQ:case pQ:jo(t,e,i.children);return;case wQ:jo(t,e,i.children);return;case hMe:throw Error(Ot(343));case yQ:e:{n=e.blockedBoundary,r=e.blockedSegment,o=i.fallback,i=i.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=Ow(t,r.chunks.length,a,r.formatContext,!1,!1);r.children.push(l),r.lastPushedText=!1;var u=Ow(t,0,null,r.formatContext,!1,!1);u.parentFlushed=!0,e.blockedBoundary=a,e.blockedSegment=u;try{if(k5(t,e,i),t.responseState.generateStaticMarkup||u.lastPushedText&&u.textEmbedded&&u.chunks.push("<!-- -->"),u.status=1,Cw(a,u),a.pendingTasks===0)break e}catch(f){u.status=4,a.forceClientRender=!0,a.errorDigest=_0(t,f)}finally{e.blockedBoundary=n,e.blockedSegment=r}e=v5(t,o,n,l,s,e.legacyContext,e.context,e.treeContext),t.pingedTasks.push(e)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case kQ:if(i=RQ(t,e,n.render,i,r),w0!==0){n=e.treeContext,e.treeContext=d5(n,1,0);try{jo(t,e,i)}finally{e.treeContext=n}}else jo(t,e,i);return;case xQ:n=n.type,i=FQ(n,i),b5(t,e,n,i,r);return;case vQ:if(r=i.children,n=n._context,i=i.value,o=n._currentValue2,n._currentValue2=i,s=af,af=i={parent:s,depth:s===null?0:s.depth+1,context:n,parentValue:o,value:i},e.context=i,jo(t,e,r),t=af,t===null)throw Error(Ot(403));i=t.parentValue,t.context._currentValue2=i===mMe?t.context._defaultValue:i,t=af=t.parent,e.context=t;return;case bQ:i=i.children,i=i(n._currentValue2),jo(t,e,i);return;case c5:r=n._init,n=r(n._payload),i=FQ(n,i),b5(t,e,n,i,void 0);return}throw Error(Ot(130,n==null?n:typeof n,""))}}function jo(t,e,n){if(e.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case dMe:b5(t,e,n.type,n.props,n.ref);return;case hQ:throw Error(Ot(257));case c5:var i=n._init;n=i(n._payload),jo(t,e,n);return}if(a5(n)){zQ(t,e,n);return}if(n===null||typeof n!="object"?i=null:(i=_Q&&n[_Q]||n["@@iterator"],i=typeof i=="function"?i:null),i&&(i=i.call(n))){if(n=i.next(),!n.done){var r=[];do r.push(n.value),n=i.next();while(!n.done);zQ(t,e,r)}return}throw t=Object.prototype.toString.call(n),Error(Ot(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}typeof n=="string"?(i=e.blockedSegment,i.lastPushedText=dQ(e.blockedSegment.chunks,n,t.responseState,i.lastPushedText)):typeof n=="number"&&(i=e.blockedSegment,i.lastPushedText=dQ(e.blockedSegment.chunks,""+n,t.responseState,i.lastPushedText))}function zQ(t,e,n){for(var i=n.length,r=0;r<i;r++){var o=e.treeContext;e.treeContext=d5(o,i,r);try{k5(t,e,n[r])}finally{e.treeContext=o}}}function k5(t,e,n){var i=e.blockedSegment.formatContext,r=e.legacyContext,o=e.context;try{return jo(t,e,n)}catch(l){if(g5(),typeof l=="object"&&l!==null&&typeof l.then=="function"){n=l;var s=e.blockedSegment,a=Ow(t,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,t=v5(t,e.node,e.blockedBoundary,a,e.abortSet,e.legacyContext,e.context,e.treeContext).ping,n.then(t,t),e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=o,vw(o)}else throw e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=o,vw(o),l}}function EMe(t){var e=t.blockedBoundary;t=t.blockedSegment,t.status=3,WQ(this,e,t)}function BQ(t,e,n){var i=t.blockedBoundary;t.blockedSegment.status=3,i===null?(e.allPendingTasks--,e.status!==2&&(e.status=2,e.destination!==null&&e.destination.push(null))):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,t=n===void 0?Error(Ot(432)):n,i.errorDigest=e.onError(t),i.parentFlushed&&e.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(r){return BQ(r,e,n)}),i.fallbackAbortableTasks.clear(),e.allPendingTasks--,e.allPendingTasks===0&&(i=e.onAllReady,i()))}function Cw(t,e){if(e.chunks.length===0&&e.children.length===1&&e.children[0].boundary===null){var n=e.children[0];n.id=e.id,n.parentFlushed=!0,n.status===1&&Cw(t,n)}else t.completedSegments.push(e)}function WQ(t,e,n){if(e===null){if(n.parentFlushed){if(t.completedRootSegment!==null)throw Error(Ot(389));t.completedRootSegment=n}t.pendingRootTasks--,t.pendingRootTasks===0&&(t.onShellError=x0,e=t.onShellReady,e())}else e.pendingTasks--,e.forceClientRender||(e.pendingTasks===0?(n.parentFlushed&&n.status===1&&Cw(e,n),e.parentFlushed&&t.completedBoundaries.push(e),e.fallbackAbortableTasks.forEach(EMe,t),e.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(Cw(e,n),e.completedSegments.length===1&&e.parentFlushed&&t.partialBoundaries.push(e)));t.allPendingTasks--,t.allPendingTasks===0&&(t=t.onAllReady,t())}function HQ(t){if(t.status!==2){var e=af,n=m5.current;m5.current=LQ;var i=_w;_w=t.responseState;try{var r=t.pingedTasks,o;for(o=0;o<r.length;o++){var s=r[o],a=t,l=s.blockedSegment;if(l.status===0){vw(s.context);try{jo(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("<!-- -->"),s.abortSet.delete(s),l.status=1,WQ(a,s.blockedBoundary,l)}catch(m){if(g5(),typeof m=="object"&&m!==null&&typeof m.then=="function"){var u=s.ping;m.then(u,u)}else{s.abortSet.delete(s),l.status=4;var f=s.blockedBoundary,d=m,h=_0(a,d);if(f===null?Sw(a,d):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=h,f.parentFlushed&&a.clientRenderedBoundaries.push(f))),a.allPendingTasks--,a.allPendingTasks===0){var g=a.onAllReady;g()}}}finally{}}}r.splice(0,o),t.destination!==null&&y5(t,t.destination)}catch(m){_0(t,m),Sw(t,m)}finally{_w=i,m5.current=n,n===LQ&&vw(e)}}}function Ew(t,e,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=t.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,t=t.responseState,e.push('<template id="'),e.push(t.placeholderPrefix),t=i.toString(16),e.push(t),e.push('"></template>');case 1:n.status=2;var r=!0;i=n.chunks;var o=0;n=n.children;for(var s=0;s<n.length;s++){for(r=n[s];o<r.index;o++)e.push(i[o]);r=Tw(t,e,r)}for(;o<i.length-1;o++)e.push(i[o]);return o<i.length&&(r=e.push(i[o])),r;default:throw Error(Ot(390))}}function Tw(t,e,n){var i=n.boundary;if(i===null)return Ew(t,e,n);if(i.parentFlushed=!0,i.forceClientRender)return t.responseState.generateStaticMarkup||(i=i.errorDigest,e.push("<!--$!-->"),e.push("<template"),i&&(e.push(' data-dgst="'),i=Xr(i),e.push(i),e.push('"')),e.push("></template>")),Ew(t,e,n),t=t.responseState.generateStaticMarkup?!0:e.push("<!--/$-->"),t;if(0<i.pendingTasks){i.rootSegmentID=t.nextSegmentId++,0<i.completedSegments.length&&t.partialBoundaries.push(i);var r=t.responseState,o=r.nextSuspenseID++;return r=r.boundaryPrefix+o.toString(16),i=i.id=r,fQ(e,t.responseState,i),Ew(t,e,n),e.push("<!--/$-->")}if(i.byteSize>t.progressiveChunkSize)return i.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(i),fQ(e,t.responseState,i.id),Ew(t,e,n),e.push("<!--/$-->");if(t.responseState.generateStaticMarkup||e.push("<!--$-->"),n=i.completedSegments,n.length!==1)throw Error(Ot(391));return Tw(t,e,n[0]),t=t.responseState.generateStaticMarkup?!0:e.push("<!--/$-->"),t}function QQ(t,e,n){return lMe(e,t.responseState,n.formatContext,n.id),Tw(t,e,n),uMe(e,n.formatContext)}function UQ(t,e,n){for(var i=n.completedSegments,r=0;r<i.length;r++)ZQ(t,e,n,i[r]);if(i.length=0,t=t.responseState,i=n.id,n=n.rootSegmentID,e.push(t.startInlineScript),t.sentCompleteBoundaryFunction?e.push('$RC("'):(t.sentCompleteBoundaryFunction=!0,e.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),i===null)throw Error(Ot(395));return n=n.toString(16),e.push(i),e.push('","'),e.push(t.segmentPrefix),e.push(n),e.push('")<\/script>')}function ZQ(t,e,n,i){if(i.status===2)return!0;var r=i.id;if(r===-1){if((i.id=n.rootSegmentID)===-1)throw Error(Ot(392));return QQ(t,e,i)}return QQ(t,e,i),t=t.responseState,e.push(t.startInlineScript),t.sentCompleteSegmentFunction?e.push('$RS("'):(t.sentCompleteSegmentFunction=!0,e.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),e.push(t.segmentPrefix),r=r.toString(16),e.push(r),e.push('","'),e.push(t.placeholderPrefix),e.push(r),e.push('")<\/script>')}function y5(t,e){try{var n=t.completedRootSegment;if(n!==null&&t.pendingRootTasks===0){Tw(t,e,n),t.completedRootSegment=null;var i=t.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)e.push(i[n]);n<i.length&&e.push(i[n])}var r=t.clientRenderedBoundaries,o;for(o=0;o<r.length;o++){var s=r[o];i=e;var a=t.responseState,l=s.id,u=s.errorDigest,f=s.errorMessage,d=s.errorComponentStack;if(i.push(a.startInlineScript),a.sentClientRenderFunction?i.push('$RX("'):(a.sentClientRenderFunction=!0,i.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),l===null)throw Error(Ot(395));if(i.push(l),i.push('"'),u||f||d){i.push(",");var h=u5(u||"");i.push(h)}if(f||d){i.push(",");var g=u5(f||"");i.push(g)}if(d){i.push(",");var m=u5(d);i.push(m)}if(!i.push(")<\/script>")){t.destination=null,o++,r.splice(0,o);return}}r.splice(0,o);var y=t.completedBoundaries;for(o=0;o<y.length;o++)if(!UQ(t,e,y[o])){t.destination=null,o++,y.splice(0,o);return}y.splice(0,o);var x=t.partialBoundaries;for(o=0;o<x.length;o++){var _=x[o];e:{r=t,s=e;var S=_.completedSegments;for(a=0;a<S.length;a++)if(!ZQ(r,s,_,S[a])){a++,S.splice(0,a);var C=!1;break e}S.splice(0,a),C=!0}if(!C){t.destination=null,o++,x.splice(0,o);return}}x.splice(0,o);var E=t.completedBoundaries;for(o=0;o<E.length;o++)if(!UQ(t,e,E[o])){t.destination=null,o++,E.splice(0,o);return}E.splice(0,o)}finally{t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&e.push(null)}}function TMe(t,e){try{var n=t.abortableTasks;n.forEach(function(i){return BQ(i,t,e)}),n.clear(),t.destination!==null&&y5(t,t.destination)}catch(i){_0(t,i),Sw(t,i)}}function $Me(){}function qQ(t,e,n,i){var r=!1,o=null,s="",a={push:function(u){return u!==null&&(s+=u),!0},destroy:function(u){r=!0,o=u}},l=!1;if(t=CMe(t,fMe(n,e?e.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,$Me,void 0,function(){l=!0}),HQ(t),TMe(t,i),t.status===1)t.status=2,a.destroy(t.fatalError);else if(t.status!==2&&t.destination===null){t.destination=a;try{y5(t,a)}catch(u){_0(t,u),Sw(t,u)}}if(r)throw o;if(!l)throw Error(Ot(426));return s}Th.renderToNodeStream=function(){throw Error(Ot(207))},Th.renderToStaticMarkup=function(t,e){return qQ(t,e,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Th.renderToStaticNodeStream=function(){throw Error(Ot(208))},Th.renderToString=function(t,e){return qQ(t,e,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},Th.version="18.3.1";var w5={};/**
|
||
* @license React
|
||
* react-dom-server.browser.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 YQ=T;function Tt(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Fo=null,zo=0;function Ve(t,e){if(e.length!==0)if(512<e.length)0<zo&&(t.enqueue(new Uint8Array(Fo.buffer,0,zo)),Fo=new Uint8Array(512),zo=0),t.enqueue(e);else{var n=Fo.length-zo;n<e.length&&(n===0?t.enqueue(Fo):(Fo.set(e.subarray(0,n),zo),t.enqueue(Fo),e=e.subarray(n)),Fo=new Uint8Array(512),zo=0),Fo.set(e,zo),zo+=e.length}}function yn(t,e){return Ve(t,e),!0}function VQ(t){Fo&&0<zo&&(t.enqueue(new Uint8Array(Fo.buffer,0,zo)),Fo=null,zo=0)}var XQ=new TextEncoder;function $t(t){return XQ.encode(t)}function Ae(t){return XQ.encode(t)}function GQ(t,e){typeof t.error=="function"?t.error(e):t.close()}var po=Object.prototype.hasOwnProperty,MMe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,KQ={},JQ={};function eU(t){return po.call(JQ,t)?!0:po.call(KQ,t)?!1:MMe.test(t)?JQ[t]=!0:(KQ[t]=!0,!1)}function Gr(t,e,n,i,r,o,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var lr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){lr[t]=new Gr(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];lr[e]=new Gr(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){lr[t]=new Gr(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){lr[t]=new Gr(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){lr[t]=new Gr(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){lr[t]=new Gr(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){lr[t]=new Gr(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){lr[t]=new Gr(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){lr[t]=new Gr(t,5,!1,t.toLowerCase(),null,!1,!1)});var x5=/[\-:]([a-z])/g;function _5(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(x5,_5);lr[e]=new Gr(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(x5,_5);lr[e]=new Gr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(x5,_5);lr[e]=new Gr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){lr[t]=new Gr(t,1,!1,t.toLowerCase(),null,!1,!1)}),lr.xlinkHref=new Gr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){lr[t]=new Gr(t,1,!1,t.toLowerCase(),null,!0,!0)});var $w={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},NMe=["Webkit","ms","Moz","O"];Object.keys($w).forEach(function(t){NMe.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),$w[e]=$w[t]})});var AMe=/["'&<>]/;function ur(t){if(typeof t=="boolean"||typeof t=="number")return""+t;t=""+t;var e=AMe.exec(t);if(e){var n="",i,r=0;for(i=e.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:e=""";break;case 38:e="&";break;case 39:e="'";break;case 60:e="<";break;case 62:e=">";break;default:continue}r!==i&&(n+=t.substring(r,i)),r=i+1,n+=e}t=r!==i?n+t.substring(r,i):n}return t}var PMe=/([A-Z])/g,DMe=/^ms-/,O5=Array.isArray,IMe=Ae("<script>"),LMe=Ae("<\/script>"),RMe=Ae('<script src="'),jMe=Ae('<script type="module" src="'),tU=Ae('" async=""><\/script>'),FMe=/(<\/|<)(s)(cript)/gi;function zMe(t,e,n,i){return""+e+(n==="s"?"\\u0073":"\\u0053")+i}function BMe(t,e,n,i,r){t=t===void 0?"":t,e=e===void 0?IMe:Ae('<script nonce="'+ur(e)+'">');var o=[];if(n!==void 0&&o.push(e,$t((""+n).replace(FMe,zMe)),LMe),i!==void 0)for(n=0;n<i.length;n++)o.push(RMe,$t(ur(i[n])),tU);if(r!==void 0)for(i=0;i<r.length;i++)o.push(jMe,$t(ur(r[i])),tU);return{bootstrapChunks:o,startInlineScript:e,placeholderPrefix:Ae(t+"P:"),segmentPrefix:Ae(t+"S:"),boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function $a(t,e){return{insertionMode:t,selectedValue:e}}function WMe(t){return $a(t==="http://www.w3.org/2000/svg"?2:t==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function HMe(t,e,n){switch(e){case"select":return $a(1,n.value!=null?n.value:n.defaultValue);case"svg":return $a(2,null);case"math":return $a(3,null);case"foreignObject":return $a(1,null);case"table":return $a(4,null);case"thead":case"tbody":case"tfoot":return $a(5,null);case"colgroup":return $a(7,null);case"tr":return $a(6,null)}return 4<=t.insertionMode||t.insertionMode===0?$a(1,null):t}var S5=Ae("<!-- -->");function nU(t,e,n,i){return e===""?i:(i&&t.push(S5),t.push($t(ur(e))),!0)}var iU=new Map,QMe=Ae(' style="'),rU=Ae(":"),UMe=Ae(";");function oU(t,e,n){if(typeof n!="object")throw Error(Tt(62));e=!0;for(var i in n)if(po.call(n,i)){var r=n[i];if(r!=null&&typeof r!="boolean"&&r!==""){if(i.indexOf("--")===0){var o=$t(ur(i));r=$t(ur((""+r).trim()))}else{o=i;var s=iU.get(o);s!==void 0||(s=Ae(ur(o.replace(PMe,"-$1").toLowerCase().replace(DMe,"-ms-"))),iU.set(o,s)),o=s,r=typeof r=="number"?r===0||po.call($w,i)?$t(""+r):$t(r+"px"):$t(ur((""+r).trim()))}e?(e=!1,t.push(QMe,o,rU,r)):t.push(UMe,o,rU,r)}}e||t.push(uf)}var Du=Ae(" "),$h=Ae('="'),uf=Ae('"'),sU=Ae('=""');function Bo(t,e,n,i){switch(n){case"style":oU(t,e,i);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"){if(e=lr.hasOwnProperty(n)?lr[n]:null,e!==null){switch(typeof i){case"function":case"symbol":return;case"boolean":if(!e.acceptsBooleans)return}switch(n=$t(e.attributeName),e.type){case 3:i&&t.push(Du,n,sU);break;case 4:i===!0?t.push(Du,n,sU):i!==!1&&t.push(Du,n,$h,$t(ur(i)),uf);break;case 5:isNaN(i)||t.push(Du,n,$h,$t(ur(i)),uf);break;case 6:!isNaN(i)&&1<=i&&t.push(Du,n,$h,$t(ur(i)),uf);break;default:e.sanitizeURL&&(i=""+i),t.push(Du,n,$h,$t(ur(i)),uf)}}else if(eU(n)){switch(typeof i){case"function":case"symbol":return;case"boolean":if(e=n.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-")return}t.push(Du,$t(n),$h,$t(ur(i)),uf)}}}var Iu=Ae(">"),aU=Ae("/>");function Mw(t,e,n){if(e!=null){if(n!=null)throw Error(Tt(60));if(typeof e!="object"||!("__html"in e))throw Error(Tt(61));e=e.__html,e!=null&&t.push($t(""+e))}}function ZMe(t){var e="";return YQ.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}var C5=Ae(' selected=""');function E5(t,e,n,i){t.push(Ma(n));var r=n=null,o;for(o in e)if(po.call(e,o)){var s=e[o];if(s!=null)switch(o){case"children":n=s;break;case"dangerouslySetInnerHTML":r=s;break;default:Bo(t,i,o,s)}}return t.push(Iu),Mw(t,r,n),typeof n=="string"?(t.push($t(ur(n))),null):n}var T5=Ae(`
|
||
`),qMe=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,lU=new Map;function Ma(t){var e=lU.get(t);if(e===void 0){if(!qMe.test(t))throw Error(Tt(65,t));e=Ae("<"+t),lU.set(t,e)}return e}var YMe=Ae("<!DOCTYPE html>");function VMe(t,e,n,i,r){switch(e){case"select":t.push(Ma("select"));var o=null,s=null;for(f in n)if(po.call(n,f)){var a=n[f];if(a!=null)switch(f){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"defaultValue":case"value":break;default:Bo(t,i,f,a)}}return t.push(Iu),Mw(t,s,o),o;case"option":s=r.selectedValue,t.push(Ma("option"));var l=a=null,u=null,f=null;for(o in n)if(po.call(n,o)){var d=n[o];if(d!=null)switch(o){case"children":a=d;break;case"selected":u=d;break;case"dangerouslySetInnerHTML":f=d;break;case"value":l=d;default:Bo(t,i,o,d)}}if(s!=null)if(n=l!==null?""+l:ZMe(a),O5(s)){for(i=0;i<s.length;i++)if(""+s[i]===n){t.push(C5);break}}else""+s===n&&t.push(C5);else u&&t.push(C5);return t.push(Iu),Mw(t,f,a),a;case"textarea":t.push(Ma("textarea")),f=s=o=null;for(a in n)if(po.call(n,a)&&(l=n[a],l!=null))switch(a){case"children":f=l;break;case"value":o=l;break;case"defaultValue":s=l;break;case"dangerouslySetInnerHTML":throw Error(Tt(91));default:Bo(t,i,a,l)}if(o===null&&s!==null&&(o=s),t.push(Iu),f!=null){if(o!=null)throw Error(Tt(92));if(O5(f)&&1<f.length)throw Error(Tt(93));o=""+f}return typeof o=="string"&&o[0]===`
|
||
`&&t.push(T5),o!==null&&t.push($t(ur(""+o))),null;case"input":t.push(Ma("input")),l=f=a=o=null;for(s in n)if(po.call(n,s)&&(u=n[s],u!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(Tt(399,"input"));case"defaultChecked":l=u;break;case"defaultValue":a=u;break;case"checked":f=u;break;case"value":o=u;break;default:Bo(t,i,s,u)}return f!==null?Bo(t,i,"checked",f):l!==null&&Bo(t,i,"checked",l),o!==null?Bo(t,i,"value",o):a!==null&&Bo(t,i,"value",a),t.push(aU),null;case"menuitem":t.push(Ma("menuitem"));for(var h in n)if(po.call(n,h)&&(o=n[h],o!=null))switch(h){case"children":case"dangerouslySetInnerHTML":throw Error(Tt(400));default:Bo(t,i,h,o)}return t.push(Iu),null;case"title":t.push(Ma("title")),o=null;for(d in n)if(po.call(n,d)&&(s=n[d],s!=null))switch(d){case"children":o=s;break;case"dangerouslySetInnerHTML":throw Error(Tt(434));default:Bo(t,i,d,s)}return t.push(Iu),o;case"listing":case"pre":t.push(Ma(e)),s=o=null;for(l in n)if(po.call(n,l)&&(a=n[l],a!=null))switch(l){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;default:Bo(t,i,l,a)}if(t.push(Iu),s!=null){if(o!=null)throw Error(Tt(60));if(typeof s!="object"||!("__html"in s))throw Error(Tt(61));n=s.__html,n!=null&&(typeof n=="string"&&0<n.length&&n[0]===`
|
||
`?t.push(T5,$t(n)):t.push($t(""+n)))}return typeof o=="string"&&o[0]===`
|
||
`&&t.push(T5),o;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":t.push(Ma(e));for(var g in n)if(po.call(n,g)&&(o=n[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(Tt(399,e));default:Bo(t,i,g,o)}return t.push(aU),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return E5(t,n,e,i);case"html":return r.insertionMode===0&&t.push(YMe),E5(t,n,e,i);default:if(e.indexOf("-")===-1&&typeof n.is!="string")return E5(t,n,e,i);t.push(Ma(e)),s=o=null;for(u in n)if(po.call(n,u)&&(a=n[u],a!=null))switch(u){case"children":o=a;break;case"dangerouslySetInnerHTML":s=a;break;case"style":oU(t,i,a);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:eU(u)&&typeof a!="function"&&typeof a!="symbol"&&t.push(Du,$t(u),$h,$t(ur(a)),uf)}return t.push(Iu),Mw(t,s,o),o}}var XMe=Ae("</"),GMe=Ae(">"),KMe=Ae('<template id="'),JMe=Ae('"></template>'),e7e=Ae("<!--$-->"),t7e=Ae('<!--$?--><template id="'),n7e=Ae('"></template>'),i7e=Ae("<!--$!-->"),r7e=Ae("<!--/$-->"),o7e=Ae("<template"),s7e=Ae('"'),a7e=Ae(' data-dgst="');Ae(' data-msg="'),Ae(' data-stck="');var l7e=Ae("></template>");function uU(t,e,n){if(Ve(t,t7e),n===null)throw Error(Tt(395));return Ve(t,n),yn(t,n7e)}var u7e=Ae('<div hidden id="'),c7e=Ae('">'),f7e=Ae("</div>"),d7e=Ae('<svg aria-hidden="true" style="display:none" id="'),h7e=Ae('">'),p7e=Ae("</svg>"),g7e=Ae('<math aria-hidden="true" style="display:none" id="'),m7e=Ae('">'),v7e=Ae("</math>"),b7e=Ae('<table hidden id="'),k7e=Ae('">'),y7e=Ae("</table>"),w7e=Ae('<table hidden><tbody id="'),x7e=Ae('">'),_7e=Ae("</tbody></table>"),O7e=Ae('<table hidden><tr id="'),S7e=Ae('">'),C7e=Ae("</tr></table>"),E7e=Ae('<table hidden><colgroup id="'),T7e=Ae('">'),$7e=Ae("</colgroup></table>");function M7e(t,e,n,i){switch(n.insertionMode){case 0:case 1:return Ve(t,u7e),Ve(t,e.segmentPrefix),Ve(t,$t(i.toString(16))),yn(t,c7e);case 2:return Ve(t,d7e),Ve(t,e.segmentPrefix),Ve(t,$t(i.toString(16))),yn(t,h7e);case 3:return Ve(t,g7e),Ve(t,e.segmentPrefix),Ve(t,$t(i.toString(16))),yn(t,m7e);case 4:return Ve(t,b7e),Ve(t,e.segmentPrefix),Ve(t,$t(i.toString(16))),yn(t,k7e);case 5:return Ve(t,w7e),Ve(t,e.segmentPrefix),Ve(t,$t(i.toString(16))),yn(t,x7e);case 6:return Ve(t,O7e),Ve(t,e.segmentPrefix),Ve(t,$t(i.toString(16))),yn(t,S7e);case 7:return Ve(t,E7e),Ve(t,e.segmentPrefix),Ve(t,$t(i.toString(16))),yn(t,T7e);default:throw Error(Tt(397))}}function N7e(t,e){switch(e.insertionMode){case 0:case 1:return yn(t,f7e);case 2:return yn(t,p7e);case 3:return yn(t,v7e);case 4:return yn(t,y7e);case 5:return yn(t,_7e);case 6:return yn(t,C7e);case 7:return yn(t,$7e);default:throw Error(Tt(397))}}var A7e=Ae('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),P7e=Ae('$RS("'),D7e=Ae('","'),I7e=Ae('")<\/script>'),L7e=Ae('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),R7e=Ae('$RC("'),j7e=Ae('","'),F7e=Ae('")<\/script>'),z7e=Ae('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),B7e=Ae('$RX("'),W7e=Ae('"'),H7e=Ae(")<\/script>"),$5=Ae(","),Q7e=/[<\u2028\u2029]/g;function M5(t){return JSON.stringify(t).replace(Q7e,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var O0=Object.assign,U7e=Symbol.for("react.element"),cU=Symbol.for("react.portal"),fU=Symbol.for("react.fragment"),dU=Symbol.for("react.strict_mode"),hU=Symbol.for("react.profiler"),pU=Symbol.for("react.provider"),gU=Symbol.for("react.context"),mU=Symbol.for("react.forward_ref"),vU=Symbol.for("react.suspense"),bU=Symbol.for("react.suspense_list"),kU=Symbol.for("react.memo"),N5=Symbol.for("react.lazy"),Z7e=Symbol.for("react.scope"),q7e=Symbol.for("react.debug_trace_mode"),Y7e=Symbol.for("react.legacy_hidden"),V7e=Symbol.for("react.default_value"),yU=Symbol.iterator;function A5(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case fU:return"Fragment";case cU:return"Portal";case hU:return"Profiler";case dU:return"StrictMode";case vU:return"Suspense";case bU:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case gU:return(t.displayName||"Context")+".Consumer";case pU:return(t._context.displayName||"Context")+".Provider";case mU:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case kU:return e=t.displayName||null,e!==null?e:A5(t.type)||"Memo";case N5:e=t._payload,t=t._init;try{return A5(t(e))}catch{}}return null}var wU={};function xU(t,e){if(t=t.contextTypes,!t)return wU;var n={},i;for(i in t)n[i]=e[i];return n}var cf=null;function Nw(t,e){if(t!==e){t.context._currentValue=t.parentValue,t=t.parent;var n=e.parent;if(t===null){if(n!==null)throw Error(Tt(401))}else{if(n===null)throw Error(Tt(401));Nw(t,n)}e.context._currentValue=e.value}}function _U(t){t.context._currentValue=t.parentValue,t=t.parent,t!==null&&_U(t)}function OU(t){var e=t.parent;e!==null&&OU(e),t.context._currentValue=t.value}function SU(t,e){if(t.context._currentValue=t.parentValue,t=t.parent,t===null)throw Error(Tt(402));t.depth===e.depth?Nw(t,e):SU(t,e)}function CU(t,e){var n=e.parent;if(n===null)throw Error(Tt(402));t.depth===n.depth?Nw(t,n):CU(t,n),e.context._currentValue=e.value}function Aw(t){var e=cf;e!==t&&(e===null?OU(t):t===null?_U(e):e.depth===t.depth?Nw(e,t):e.depth>t.depth?SU(e,t):CU(e,t),cf=t)}var EU={isMounted:function(){return!1},enqueueSetState:function(t,e){t=t._reactInternals,t.queue!==null&&t.queue.push(e)},enqueueReplaceState:function(t,e){t=t._reactInternals,t.replace=!0,t.queue=[e]},enqueueForceUpdate:function(){}};function TU(t,e,n,i){var r=t.state!==void 0?t.state:null;t.updater=EU,t.props=n,t.state=r;var o={queue:[],replace:!1};t._reactInternals=o;var s=e.contextType;if(t.context=typeof s=="object"&&s!==null?s._currentValue:i,s=e.getDerivedStateFromProps,typeof s=="function"&&(s=s(n,r),r=s==null?r:O0({},r,s),t.state=r),typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function"&&(typeof t.UNSAFE_componentWillMount=="function"||typeof t.componentWillMount=="function"))if(e=t.state,typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),e!==t.state&&EU.enqueueReplaceState(t,t.state,null),o.queue!==null&&0<o.queue.length)if(e=o.queue,s=o.replace,o.queue=null,o.replace=!1,s&&e.length===1)t.state=e[0];else{for(o=s?e[0]:t.state,r=!0,s=s?1:0;s<e.length;s++){var a=e[s];a=typeof a=="function"?a.call(t,o,n,i):a,a!=null&&(r?(r=!1,o=O0({},o,a)):O0(o,a))}t.state=o}else o.queue=null}var X7e={id:1,overflow:""};function P5(t,e,n){var i=t.id;t=t.overflow;var r=32-Pw(i)-1;i&=~(1<<r),n+=1;var o=32-Pw(e)+r;if(30<o){var s=r-r%5;return o=(i&(1<<s)-1).toString(32),i>>=s,r-=s,{id:1<<32-Pw(e)+r|n<<r|i,overflow:o+t}}return{id:1<<o|n<<r|i,overflow:t}}var Pw=Math.clz32?Math.clz32:J7e,G7e=Math.log,K7e=Math.LN2;function J7e(t){return t>>>=0,t===0?32:31-(G7e(t)/K7e|0)|0}function eNe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var tNe=typeof Object.is=="function"?Object.is:eNe,vl=null,D5=null,Dw=null,fn=null,S0=!1,Iw=!1,C0=0,Lu=null,Lw=0;function ff(){if(vl===null)throw Error(Tt(321));return vl}function $U(){if(0<Lw)throw Error(Tt(312));return{memoizedState:null,queue:null,next:null}}function I5(){return fn===null?Dw===null?(S0=!1,Dw=fn=$U()):(S0=!0,fn=Dw):fn.next===null?(S0=!1,fn=fn.next=$U()):(S0=!0,fn=fn.next),fn}function L5(){D5=vl=null,Iw=!1,Dw=null,Lw=0,fn=Lu=null}function MU(t,e){return typeof e=="function"?e(t):e}function NU(t,e,n){if(vl=ff(),fn=I5(),S0){var i=fn.queue;if(e=i.dispatch,Lu!==null&&(n=Lu.get(i),n!==void 0)){Lu.delete(i),i=fn.memoizedState;do i=t(i,n.action),n=n.next;while(n!==null);return fn.memoizedState=i,[i,e]}return[fn.memoizedState,e]}return t=t===MU?typeof e=="function"?e():e:n!==void 0?n(e):e,fn.memoizedState=t,t=fn.queue={last:null,dispatch:null},t=t.dispatch=nNe.bind(null,vl,t),[fn.memoizedState,t]}function AU(t,e){if(vl=ff(),fn=I5(),e=e===void 0?null:e,fn!==null){var n=fn.memoizedState;if(n!==null&&e!==null){var i=n[1];e:if(i===null)i=!1;else{for(var r=0;r<i.length&&r<e.length;r++)if(!tNe(e[r],i[r])){i=!1;break e}i=!0}if(i)return n[0]}}return t=t(),fn.memoizedState=[t,e],t}function nNe(t,e,n){if(25<=Lw)throw Error(Tt(301));if(t===vl)if(Iw=!0,t={action:n,next:null},Lu===null&&(Lu=new Map),n=Lu.get(e),n===void 0)Lu.set(e,t);else{for(e=n;e.next!==null;)e=e.next;e.next=t}}function iNe(){throw Error(Tt(394))}function Rw(){}var PU={readContext:function(t){return t._currentValue},useContext:function(t){return ff(),t._currentValue},useMemo:AU,useReducer:NU,useRef:function(t){vl=ff(),fn=I5();var e=fn.memoizedState;return e===null?(t={current:t},fn.memoizedState=t):e},useState:function(t){return NU(MU,t)},useInsertionEffect:Rw,useLayoutEffect:function(){},useCallback:function(t,e){return AU(function(){return t},e)},useImperativeHandle:Rw,useEffect:Rw,useDebugValue:Rw,useDeferredValue:function(t){return ff(),t},useTransition:function(){return ff(),[!1,iNe]},useId:function(){var t=D5.treeContext,e=t.overflow;t=t.id,t=(t&~(1<<32-Pw(t)-1)).toString(32)+e;var n=jw;if(n===null)throw Error(Tt(404));return e=C0++,t=":"+n.idPrefix+"R"+t,0<e&&(t+="H"+e.toString(32)),t+":"},useMutableSource:function(t,e){return ff(),e(t._source)},useSyncExternalStore:function(t,e,n){if(n===void 0)throw Error(Tt(407));return n()}},jw=null,R5=YQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function rNe(t){return console.error(t),null}function E0(){}function oNe(t,e,n,i,r,o,s,a,l){var u=[],f=new Set;return e={destination:null,responseState:e,progressiveChunkSize:i===void 0?12800:i,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:r===void 0?rNe:r,onAllReady:o===void 0?E0:o,onShellReady:s===void 0?E0:s,onShellError:a===void 0?E0:a,onFatalError:l===void 0?E0:l},n=Fw(e,0,null,n,!1,!1),n.parentFlushed=!0,t=j5(e,t,null,n,f,wU,null,X7e),u.push(t),e}function j5(t,e,n,i,r,o,s,a){t.allPendingTasks++,n===null?t.pendingRootTasks++:n.pendingTasks++;var l={node:e,ping:function(){var u=t.pingedTasks;u.push(l),u.length===1&&zU(t)},blockedBoundary:n,blockedSegment:i,abortSet:r,legacyContext:o,context:s,treeContext:a};return r.add(l),l}function Fw(t,e,n,i,r,o){return{status:0,id:-1,index:e,parentFlushed:!1,chunks:[],children:[],formatContext:i,boundary:n,lastPushedText:r,textEmbedded:o}}function T0(t,e){if(t=t.onError(e),t!=null&&typeof t!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof t+'" instead');return t}function zw(t,e){var n=t.onShellError;n(e),n=t.onFatalError,n(e),t.destination!==null?(t.status=2,GQ(t.destination,e)):(t.status=1,t.fatalError=e)}function DU(t,e,n,i,r){for(vl={},D5=e,C0=0,t=n(i,r);Iw;)Iw=!1,C0=0,Lw+=1,fn=null,t=n(i,r);return L5(),t}function IU(t,e,n,i){var r=n.render(),o=i.childContextTypes;if(o!=null){var s=e.legacyContext;if(typeof n.getChildContext!="function")i=s;else{n=n.getChildContext();for(var a in n)if(!(a in o))throw Error(Tt(108,A5(i)||"Unknown",a));i=O0({},s,n)}e.legacyContext=i,Wo(t,e,r),e.legacyContext=s}else Wo(t,e,r)}function LU(t,e){if(t&&t.defaultProps){e=O0({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function F5(t,e,n,i,r){if(typeof n=="function")if(n.prototype&&n.prototype.isReactComponent){r=xU(n,e.legacyContext);var o=n.contextType;o=new n(i,typeof o=="object"&&o!==null?o._currentValue:r),TU(o,n,i,r),IU(t,e,o,n)}else{o=xU(n,e.legacyContext),r=DU(t,e,n,i,o);var s=C0!==0;if(typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0)TU(r,n,i,o),IU(t,e,r,n);else if(s){i=e.treeContext,e.treeContext=P5(i,1,0);try{Wo(t,e,r)}finally{e.treeContext=i}}else Wo(t,e,r)}else if(typeof n=="string"){switch(r=e.blockedSegment,o=VMe(r.chunks,n,i,t.responseState,r.formatContext),r.lastPushedText=!1,s=r.formatContext,r.formatContext=HMe(s,n,i),z5(t,e,o),r.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:r.chunks.push(XMe,$t(n),GMe)}r.lastPushedText=!1}else{switch(n){case Y7e:case q7e:case dU:case hU:case fU:Wo(t,e,i.children);return;case bU:Wo(t,e,i.children);return;case Z7e:throw Error(Tt(343));case vU:e:{n=e.blockedBoundary,r=e.blockedSegment,o=i.fallback,i=i.children,s=new Set;var a={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s,errorDigest:null},l=Fw(t,r.chunks.length,a,r.formatContext,!1,!1);r.children.push(l),r.lastPushedText=!1;var u=Fw(t,0,null,r.formatContext,!1,!1);u.parentFlushed=!0,e.blockedBoundary=a,e.blockedSegment=u;try{if(z5(t,e,i),u.lastPushedText&&u.textEmbedded&&u.chunks.push(S5),u.status=1,Bw(a,u),a.pendingTasks===0)break e}catch(f){u.status=4,a.forceClientRender=!0,a.errorDigest=T0(t,f)}finally{e.blockedBoundary=n,e.blockedSegment=r}e=j5(t,o,n,l,s,e.legacyContext,e.context,e.treeContext),t.pingedTasks.push(e)}return}if(typeof n=="object"&&n!==null)switch(n.$$typeof){case mU:if(i=DU(t,e,n.render,i,r),C0!==0){n=e.treeContext,e.treeContext=P5(n,1,0);try{Wo(t,e,i)}finally{e.treeContext=n}}else Wo(t,e,i);return;case kU:n=n.type,i=LU(n,i),F5(t,e,n,i,r);return;case pU:if(r=i.children,n=n._context,i=i.value,o=n._currentValue,n._currentValue=i,s=cf,cf=i={parent:s,depth:s===null?0:s.depth+1,context:n,parentValue:o,value:i},e.context=i,Wo(t,e,r),t=cf,t===null)throw Error(Tt(403));i=t.parentValue,t.context._currentValue=i===V7e?t.context._defaultValue:i,t=cf=t.parent,e.context=t;return;case gU:i=i.children,i=i(n._currentValue),Wo(t,e,i);return;case N5:r=n._init,n=r(n._payload),i=LU(n,i),F5(t,e,n,i,void 0);return}throw Error(Tt(130,n==null?n:typeof n,""))}}function Wo(t,e,n){if(e.node=n,typeof n=="object"&&n!==null){switch(n.$$typeof){case U7e:F5(t,e,n.type,n.props,n.ref);return;case cU:throw Error(Tt(257));case N5:var i=n._init;n=i(n._payload),Wo(t,e,n);return}if(O5(n)){RU(t,e,n);return}if(n===null||typeof n!="object"?i=null:(i=yU&&n[yU]||n["@@iterator"],i=typeof i=="function"?i:null),i&&(i=i.call(n))){if(n=i.next(),!n.done){var r=[];do r.push(n.value),n=i.next();while(!n.done);RU(t,e,r)}return}throw t=Object.prototype.toString.call(n),Error(Tt(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t))}typeof n=="string"?(i=e.blockedSegment,i.lastPushedText=nU(e.blockedSegment.chunks,n,t.responseState,i.lastPushedText)):typeof n=="number"&&(i=e.blockedSegment,i.lastPushedText=nU(e.blockedSegment.chunks,""+n,t.responseState,i.lastPushedText))}function RU(t,e,n){for(var i=n.length,r=0;r<i;r++){var o=e.treeContext;e.treeContext=P5(o,i,r);try{z5(t,e,n[r])}finally{e.treeContext=o}}}function z5(t,e,n){var i=e.blockedSegment.formatContext,r=e.legacyContext,o=e.context;try{return Wo(t,e,n)}catch(l){if(L5(),typeof l=="object"&&l!==null&&typeof l.then=="function"){n=l;var s=e.blockedSegment,a=Fw(t,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,t=j5(t,e.node,e.blockedBoundary,a,e.abortSet,e.legacyContext,e.context,e.treeContext).ping,n.then(t,t),e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=o,Aw(o)}else throw e.blockedSegment.formatContext=i,e.legacyContext=r,e.context=o,Aw(o),l}}function sNe(t){var e=t.blockedBoundary;t=t.blockedSegment,t.status=3,FU(this,e,t)}function jU(t,e,n){var i=t.blockedBoundary;t.blockedSegment.status=3,i===null?(e.allPendingTasks--,e.status!==2&&(e.status=2,e.destination!==null&&e.destination.close())):(i.pendingTasks--,i.forceClientRender||(i.forceClientRender=!0,t=n===void 0?Error(Tt(432)):n,i.errorDigest=e.onError(t),i.parentFlushed&&e.clientRenderedBoundaries.push(i)),i.fallbackAbortableTasks.forEach(function(r){return jU(r,e,n)}),i.fallbackAbortableTasks.clear(),e.allPendingTasks--,e.allPendingTasks===0&&(i=e.onAllReady,i()))}function Bw(t,e){if(e.chunks.length===0&&e.children.length===1&&e.children[0].boundary===null){var n=e.children[0];n.id=e.id,n.parentFlushed=!0,n.status===1&&Bw(t,n)}else t.completedSegments.push(e)}function FU(t,e,n){if(e===null){if(n.parentFlushed){if(t.completedRootSegment!==null)throw Error(Tt(389));t.completedRootSegment=n}t.pendingRootTasks--,t.pendingRootTasks===0&&(t.onShellError=E0,e=t.onShellReady,e())}else e.pendingTasks--,e.forceClientRender||(e.pendingTasks===0?(n.parentFlushed&&n.status===1&&Bw(e,n),e.parentFlushed&&t.completedBoundaries.push(e),e.fallbackAbortableTasks.forEach(sNe,t),e.fallbackAbortableTasks.clear()):n.parentFlushed&&n.status===1&&(Bw(e,n),e.completedSegments.length===1&&e.parentFlushed&&t.partialBoundaries.push(e)));t.allPendingTasks--,t.allPendingTasks===0&&(t=t.onAllReady,t())}function zU(t){if(t.status!==2){var e=cf,n=R5.current;R5.current=PU;var i=jw;jw=t.responseState;try{var r=t.pingedTasks,o;for(o=0;o<r.length;o++){var s=r[o],a=t,l=s.blockedSegment;if(l.status===0){Aw(s.context);try{Wo(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(S5),s.abortSet.delete(s),l.status=1,FU(a,s.blockedBoundary,l)}catch(m){if(L5(),typeof m=="object"&&m!==null&&typeof m.then=="function"){var u=s.ping;m.then(u,u)}else{s.abortSet.delete(s),l.status=4;var f=s.blockedBoundary,d=m,h=T0(a,d);if(f===null?zw(a,d):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=h,f.parentFlushed&&a.clientRenderedBoundaries.push(f))),a.allPendingTasks--,a.allPendingTasks===0){var g=a.onAllReady;g()}}}finally{}}}r.splice(0,o),t.destination!==null&&B5(t,t.destination)}catch(m){T0(t,m),zw(t,m)}finally{jw=i,R5.current=n,n===PU&&Aw(e)}}}function Ww(t,e,n){switch(n.parentFlushed=!0,n.status){case 0:var i=n.id=t.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,t=t.responseState,Ve(e,KMe),Ve(e,t.placeholderPrefix),t=$t(i.toString(16)),Ve(e,t),yn(e,JMe);case 1:n.status=2;var r=!0;i=n.chunks;var o=0;n=n.children;for(var s=0;s<n.length;s++){for(r=n[s];o<r.index;o++)Ve(e,i[o]);r=Hw(t,e,r)}for(;o<i.length-1;o++)Ve(e,i[o]);return o<i.length&&(r=yn(e,i[o])),r;default:throw Error(Tt(390))}}function Hw(t,e,n){var i=n.boundary;if(i===null)return Ww(t,e,n);if(i.parentFlushed=!0,i.forceClientRender)i=i.errorDigest,yn(e,i7e),Ve(e,o7e),i&&(Ve(e,a7e),Ve(e,$t(ur(i))),Ve(e,s7e)),yn(e,l7e),Ww(t,e,n);else if(0<i.pendingTasks){i.rootSegmentID=t.nextSegmentId++,0<i.completedSegments.length&&t.partialBoundaries.push(i);var r=t.responseState,o=r.nextSuspenseID++;r=Ae(r.boundaryPrefix+o.toString(16)),i=i.id=r,uU(e,t.responseState,i),Ww(t,e,n)}else if(i.byteSize>t.progressiveChunkSize)i.rootSegmentID=t.nextSegmentId++,t.completedBoundaries.push(i),uU(e,t.responseState,i.id),Ww(t,e,n);else{if(yn(e,e7e),n=i.completedSegments,n.length!==1)throw Error(Tt(391));Hw(t,e,n[0])}return yn(e,r7e)}function BU(t,e,n){return M7e(e,t.responseState,n.formatContext,n.id),Hw(t,e,n),N7e(e,n.formatContext)}function WU(t,e,n){for(var i=n.completedSegments,r=0;r<i.length;r++)HU(t,e,n,i[r]);if(i.length=0,t=t.responseState,i=n.id,n=n.rootSegmentID,Ve(e,t.startInlineScript),t.sentCompleteBoundaryFunction?Ve(e,R7e):(t.sentCompleteBoundaryFunction=!0,Ve(e,L7e)),i===null)throw Error(Tt(395));return n=$t(n.toString(16)),Ve(e,i),Ve(e,j7e),Ve(e,t.segmentPrefix),Ve(e,n),yn(e,F7e)}function HU(t,e,n,i){if(i.status===2)return!0;var r=i.id;if(r===-1){if((i.id=n.rootSegmentID)===-1)throw Error(Tt(392));return BU(t,e,i)}return BU(t,e,i),t=t.responseState,Ve(e,t.startInlineScript),t.sentCompleteSegmentFunction?Ve(e,P7e):(t.sentCompleteSegmentFunction=!0,Ve(e,A7e)),Ve(e,t.segmentPrefix),r=$t(r.toString(16)),Ve(e,r),Ve(e,D7e),Ve(e,t.placeholderPrefix),Ve(e,r),yn(e,I7e)}function B5(t,e){Fo=new Uint8Array(512),zo=0;try{var n=t.completedRootSegment;if(n!==null&&t.pendingRootTasks===0){Hw(t,e,n),t.completedRootSegment=null;var i=t.responseState.bootstrapChunks;for(n=0;n<i.length-1;n++)Ve(e,i[n]);n<i.length&&yn(e,i[n])}var r=t.clientRenderedBoundaries,o;for(o=0;o<r.length;o++){var s=r[o];i=e;var a=t.responseState,l=s.id,u=s.errorDigest,f=s.errorMessage,d=s.errorComponentStack;if(Ve(i,a.startInlineScript),a.sentClientRenderFunction?Ve(i,B7e):(a.sentClientRenderFunction=!0,Ve(i,z7e)),l===null)throw Error(Tt(395));Ve(i,l),Ve(i,W7e),(u||f||d)&&(Ve(i,$5),Ve(i,$t(M5(u||"")))),(f||d)&&(Ve(i,$5),Ve(i,$t(M5(f||"")))),d&&(Ve(i,$5),Ve(i,$t(M5(d)))),yn(i,H7e)}r.splice(0,o);var h=t.completedBoundaries;for(o=0;o<h.length;o++)WU(t,e,h[o]);h.splice(0,o),VQ(e),Fo=new Uint8Array(512),zo=0;var g=t.partialBoundaries;for(o=0;o<g.length;o++){var m=g[o];e:{r=t,s=e;var y=m.completedSegments;for(a=0;a<y.length;a++)if(!HU(r,s,m,y[a])){a++,y.splice(0,a);var x=!1;break e}y.splice(0,a),x=!0}if(!x){t.destination=null,o++,g.splice(0,o);return}}g.splice(0,o);var _=t.completedBoundaries;for(o=0;o<_.length;o++)WU(t,e,_[o]);_.splice(0,o)}finally{VQ(e),t.allPendingTasks===0&&t.pingedTasks.length===0&&t.clientRenderedBoundaries.length===0&&t.completedBoundaries.length===0&&e.close()}}function QU(t,e){try{var n=t.abortableTasks;n.forEach(function(i){return jU(i,t,e)}),n.clear(),t.destination!==null&&B5(t,t.destination)}catch(i){T0(t,i),zw(t,i)}}w5.renderToReadableStream=function(t,e){return new Promise(function(n,i){var r,o,s=new Promise(function(f,d){o=f,r=d}),a=oNe(t,BMe(e?e.identifierPrefix:void 0,e?e.nonce:void 0,e?e.bootstrapScriptContent:void 0,e?e.bootstrapScripts:void 0,e?e.bootstrapModules:void 0),WMe(e?e.namespaceURI:void 0),e?e.progressiveChunkSize:void 0,e?e.onError:void 0,o,function(){var f=new ReadableStream({type:"bytes",pull:function(d){if(a.status===1)a.status=2,GQ(d,a.fatalError);else if(a.status!==2&&a.destination===null){a.destination=d;try{B5(a,d)}catch(h){T0(a,h),zw(a,h)}}},cancel:function(){QU(a)}},{highWaterMark:0});f.allReady=s,n(f)},function(f){s.catch(function(){}),i(f)},r);if(e&&e.signal){var l=e.signal,u=function(){QU(a,l.reason),l.removeEventListener("abort",u)};l.addEventListener("abort",u)}zU(a)})},w5.version="18.3.1";var Mh,UU;Mh=Th,UU=w5,Mh.version;var ZU=Mh.renderToString;Mh.renderToStaticMarkup,Mh.renderToNodeStream,Mh.renderToStaticNodeStream,UU.renderToReadableStream;class aNe{constructor({editorContainerElement:e}){ye(this,"EE",null);ye(this,"editorContainerElement",null);ye(this,"containers",null);ye(this,"draggableInfo",null);ye(this,"ghostInfo",null);ye(this,"grabbedElement",null);ye(this,"scrollHandler",null);ye(this,"sourceContainer",null);ye(this,"_currentOverContainer",null);ye(this,"_currentOverContainerElem",null);ye(this,"_currentOverDroppableElem",null);ye(this,"_currentOverDroppablePosition",null);ye(this,"_dropIndicator",null);ye(this,"_elementsWithHoverRemoved",null);ye(this,"_eventHandlers",null);ye(this,"_ghostContainerElement",null);ye(this,"_rafUpdateGhostElementPosition",null);ye(this,"_transformedDroppables",null);ye(this,"_waitForDragStartPromise",null);this.editorContainerElement=e||document.querySelector("[data-kg-editor] [data-lexical-editor]"),this.containers=[],this.scrollHandler=new K$e,this._eventHandlers=[],this._transformedDroppables=[],this._rafUpdateGhostElementPosition=this._updateGhostElementPosition.bind(this),this._addGrabListeners(),this._appendGhostContainerElement(),this.EE=new V$e}destroy(){this.cleanup(),this._removeGrabListeners(),this._removeDropIndicator(),this._removeGhostContainerElement()}registerContainer(e,n){const i=new X$e(e,n);return this.containers.push(i),{enableDrag:()=>{i.enableDrag()},disableDrag:()=>{i.disableDrag()},refresh:()=>{i.refresh()},destroy:()=>{i.disableDrag(),this.containers=this.containers.filter(r=>r!==i)}}}cleanup(){this.containers.forEach(e=>e.disableDrag()),this.containers=[],this._resetDrag()}_onMouseDown(e){if(!this.isDragging&&(e.button===void 0||e.button===0)&&(this.grabbedElement=Eh(e.target,F$e),this.grabbedElement)){const n=Eh(e.target,z$e);if(n&&this.grabbedElement.contains(n))return;const i=Eh(this.grabbedElement,JH),r=this.containers.find(o=>o.element===i);this.sourceContainer=r,r!=null&&r.isDragEnabled&&this._waitForDragStart(e).then(()=>{window.getSelection().removeAllRanges(),this._initiateDrag(e)}).catch(o=>{if(!o.isCanceled)throw o})}}_onMouseMove(e){e.preventDefault(),this.draggableInfo&&(this.draggableInfo.mousePosition.x=e.clientX,this.draggableInfo.mousePosition.y=e.clientY,this._handleDrag(e))}_onMouseUp(){if(this.draggableInfo){let e=!1;this._currentOverContainer&&(e=this._currentOverContainer.onDrop(this.draggableInfo,this._currentOverDroppableElem,this._currentOverDroppablePosition)),this.containers.forEach(n=>{n.onDropEnd(this.draggableInfo,e)})}this._resetDrag()}_onKeyDown(e){this.isDragging&&e.key==="Escape"&&this._resetDrag()}async _waitForDragStart(e){this._waitForDragStartPromise&&(this.EE.emit("drag-start-canceled"),this._waitForDragStartPromise=null);const i=a=>{let{clientX:l,clientY:u}=a;(Math.abs(e.clientX-l)>1||Math.abs(e.clientY-u)>1)&&this.EE.emit("drag-start-conditions-met")},r=()=>{this.EE.emit("drag-start-canceled")},o=()=>{this.EE.emit("drag-start-canceled")},s=()=>(document.addEventListener("mousemove",i,{passive:!1}),document.addEventListener("mouseup",r,{passive:!1}),document.addEventListener("drag",o,{passive:!1}),new Promise((a,l)=>{const u=()=>{this.EE.removeListener("drag-start-canceled",f),a()},f=()=>{this.EE.removeListener("drag-start-conditions-met",u),l({isCanceled:!0})};this.EE.once("drag-start-conditions-met",u),this.EE.once("drag-start-canceled",f)}));return this._waitForDragStartPromise=s().finally(()=>{this._waitForDragStartPromise=null,document.removeEventListener("mousemove",i,{passive:!1}),document.removeEventListener("mouseup",r,{passive:!1}),document.removeEventListener("drag",o,{passive:!1})}),this._waitForDragStartPromise}_initiateDrag(e){this.isDragging=!0,nQ(document.body,"none");let n=this.sourceContainer.getDraggableInfo(this.grabbedElement);if(!n){this._resetDrag();return}this._appendDropIndicator(),n=Object.assign({},n,{element:this.grabbedElement,mousePosition:{x:e.clientX,y:e.clientY}}),this.draggableInfo=n,this.containers.forEach(r=>{r.onDragStart(n)}),this.draggableInfo.element.style.opacity=.5;const i=this.sourceContainer.createGhostElement(this.draggableInfo);if(i&&i instanceof HTMLElement){this._ghostContainerElement.appendChild(i);const r=i.getBoundingClientRect(),o={element:i,positionX:r.x,positionY:r.y};this.ghostInfo=o}else{console.warn("container.createGhostElement did not return an element",this.draggableInfo,{ghostElement:i}),this._resetDrag();return}this._addMoveListeners(),this._addReleaseListeners(),this._addKeyDownListeners(),requestAnimationFrame(this._rafUpdateGhostElementPosition),this.scrollHandler.dragStart(this.draggableInfo),document.querySelectorAll('[data-kg="editor"] [data-lexical-editor]').forEach(r=>{r.style.setProperty("cursor","default","important")}),this._removeHoverClasses(),this._handleDrag()}_removeHoverClasses(){this._restoreHoverClasses(),this._elementsWithHoverRemoved=new Map,document.querySelectorAll('[class*="hover:"]').forEach(n=>{const i=Array.from(n.classList.values()).filter(r=>r.startsWith("hover:"));this._elementsWithHoverRemoved.set(n,i),n.classList.remove(...i)})}_restoreHoverClasses(){this._elementsWithHoverRemoved&&(this._elementsWithHoverRemoved.forEach((e,n)=>{n.classList.add(...e)}),this._elementsWithHoverRemoved=new Map)}_handleDrag(e){this._ghostContainerElement.hidden=!0;const n=document.elementFromPoint(this.draggableInfo.mousePosition.x,this.draggableInfo.mousePosition.y);this.draggableInfo.target=n,this._ghostContainerElement.hidden=!1,this.scrollHandler.dragMove(this.draggableInfo);const i=Eh(n,JH);let r=Eh(n,t5);(!i||!i.contains(r))&&(r=null);const o=this._currentOverContainerElem&&i!==this._currentOverContainerElem,s=this._currentOverDroppableElem&&r!==this._currentOverDroppableElem,a=i&&i!==this._currentOverContainer,l=r;if(o&&(this._currentOverContainer.onDragLeaveContainer(this.draggableInfo),this._currentOverContainer=null,this._currentOverContainerElem=null,this._hideDropIndicator()),a){const u=this.containers.find(f=>f.element===i);this._currentOverContainer||u.onDragEnterContainer(this.draggableInfo),this._currentOverContainer=u,this._currentOverContainerElem=i}if(s&&(this._currentOverContainer&&this._currentOverContainer.onDragLeaveDroppable(r),this._currentOverDroppableElem=null),l){const u=r.getBoundingClientRect(),f=this.draggableInfo.mousePosition.y<u.y+u.height/2,d=this.draggableInfo.mousePosition.x<u.x+u.width/2,h=`${f?"top":"bottom"}-${d?"left":"right"}`;if(this._currentOverDroppableElem||this._currentOverContainer.onDragEnterDroppable(r,h),r!==this._currentOverDroppableElem||h!==this._currentOverDroppablePosition){this._currentOverDroppableElem=r,this._currentOverDroppablePosition=h,this._currentOverContainer.onDragOverDroppable(r,h);const g=this._currentOverContainer.getIndicatorPosition(this.draggableInfo,r,h);g?(this.draggableInfo.insertIndex=g.insertIndex,this._showDropIndicator(g)):this._hideDropIndicator()}}}_updateGhostElementPosition(){this.isDragging&&requestAnimationFrame(this._rafUpdateGhostElementPosition);const{ghostInfo:e,draggableInfo:n}=this;if(n&&e){const i=e.positionX*-1+n.mousePosition.x,r=e.positionY*-1+n.mousePosition.y;e.element.style.transform=`translate3d(${i}px, ${r}px, 0)`}}_showDropIndicator({direction:e,position:n,beforeElems:i,afterElems:r}){const o=this._dropIndicator;if(this._hideDropIndicator({clearInsertIndex:!1}),e==="horizontal"){i.forEach(S=>{S.style.transform="translate3d(-30px, 0, 0)",S.style.transitionDuration="250ms",this._transformedDroppables.push(S)}),r.forEach(S=>{S.style.transform="translate3d(30px, 0, 0)",S.style.transitionDuration="250ms",this._transformedDroppables.push(S)});let s=0;const a=this._currentOverDroppableElem,l=getComputedStyle(a),u=a.offsetParent.getBoundingClientRect(),f=u.left+a.offsetLeft,d=u.top+a.offsetTop;n==="left"?s-=parseInt(l.marginLeft):s+=parseInt(a.offsetWidth)+parseInt(l.marginRight),s-=2;const h=o.parentNode.getBoundingClientRect(),g=parseInt(o.style.left),m=parseInt(o.style.top),y=f+s-h.left,x=d-h.top,_=a.offsetHeight;x>=m-1&&x<=m+1&&y>=g-1&&y<=g+1?o.style.opacity=1:(o.style.opacity=0,this._dropIndicatorTimeout=setTimeout(function(){o.style.width="4px",o.style.height=`${_}px`,o.style.left=`${y}px`,o.style.top=`${x}px`,o.style.opacity=1},150))}if(e==="vertical"){let s=60;const a=this._currentOverDroppableElem;let l,u;n==="top"?(l=Q$e(a,t5),u=a):n==="bottom"&&(l=a,u=H$e(a,t5));const f=(l||u).parentElement.children[0],d=getComputedStyle(f),h=parseInt(d.marginTop),g=a.offsetWidth,m=a.offsetLeft;let y;if(l&&u){const S=getComputedStyle(l),C=getComputedStyle(u),E=u.offsetTop,N=parseInt(S.marginBottom),M=parseInt(C.marginTop),I=N+M;y=E-I/2+h}else l?y=l.offsetTop+l.offsetHeight+h:u&&(y=-26,s=30);y-=2,y+=30;let x=parseInt(o.style.left),_=parseInt(o.style.top);y>=_-1&&y<=_+1&&m>=x-1&&m<=x+1?o.style.opacity=1:(o.style.opacity=0,this._dropIndicatorTimeout=setTimeout(()=>{o.style.height="4px",o.style.width=`${g}px`,o.style.left=`${m}px`,o.style.top=`${y}px`,o.style.opacity=1},150)),i.forEach(S=>{S.style.transform="translate3d(0, 0, 0)",S.style.transitionDuration="250ms",this._transformedDroppables.push(S)}),r.forEach(S=>{S.style.transform=`translate3d(0, ${s}px, 0)`,S.style.transitionDuration="250ms",this._transformedDroppables.push(S)})}}_hideDropIndicator({clearInsertIndex:e=!0}={}){clearTimeout(this._dropIndicatorTimeout),e&&this.draggableInfo&&delete this.draggableInfo.insertIndex,this._transformedDroppables.forEach(n=>{n.style.transform=""}),this.transformedDroppables=[],this._dropIndicator&&(this._dropIndicator.style.opacity=0)}_resetDrag(){this.EE.emit("drag-start-canceled"),this._hideDropIndicator(),this._removeMoveListeners(),this._removeReleaseListeners(),this.scrollHandler.dragStop(),this.grabbedElement&&(this.grabbedElement.style.opacity=""),this.isDragging=!1,this.grabbedElement=null,this.sourceContainer=null,this.ghostInfo&&(this.ghostInfo.element.remove(),this.ghostInfo=null),this.containers.forEach(e=>{e.onDragEnd()}),this._restoreHoverClasses(),nQ(document.body,""),document.querySelectorAll('[data-kg="editor"] [data-lexical-editor]').forEach(e=>{e.style.cursor=""})}_appendDropIndicator(){let e=document.querySelector(`#${eQ}`);if(!e){const n=()=>{const r={position:"absolute",opacity:0,width:"4px",height:0,zIndex:n5,pointerEvents:"none"};return k.jsx("div",{className:"rounded-full bg-green",id:eQ,style:r})},i=document.createElement("div");i.innerHTML=ZU(k.jsx(n,{})),e=i.firstChild,this.editorContainerElement.appendChild(e)}this._dropIndicator=e}_removeDropIndicator(){var e;(e=this._dropIndicator)==null||e.remove()}_appendGhostContainerElement(){if(!this._ghostContainerElement){const e=document.createElement("div");e.id=B$e,e.style.position="fixed",e.style.width="100%",e.style.zIndex=n5+1,this.editorContainerElement.appendChild(e),this._ghostContainerElement=e}}_removeGhostContainerElement(){var e;(e=this._ghostContainerElement)==null||e.remove()}_addGrabListeners(){this._addEventListener("mousedown",this._onMouseDown,{passive:!1})}_removeGrabListeners(){this._removeEventListener("mousedown")}_addMoveListeners(){this._addEventListener("mousemove",this._onMouseMove,{passive:!1})}_removeMoveListeners(){this._removeEventListener("mousemove")}_addReleaseListeners(){this._addEventListener("mouseup",this._onMouseUp,{passive:!1})}_removeReleaseListeners(){this._removeEventListener("mouseup")}_addKeyDownListeners(){this._addEventListener("keydown",this._onKeyDown)}_removeKeyDownListeners(){this._removeEventListener("keydown")}_addEventListener(e,n,i){if(!this._eventHandlers[e]){let r=n.bind(this);this._eventHandlers[e]={handler:r,options:i},document.addEventListener(e,r,i)}}_removeEventListener(e){let n=this._eventHandlers[e];n&&(document.removeEventListener(e,n.handler,n.options),delete this._eventHandlers[e])}}function qU(t){t.preventDefault()}function lNe(t,e){const n=T.useContext(ft),{setIsDragging:i,isEditingCard:r}=zc(),o=T.useRef(null),s=T.useRef(!1),a=T.useRef(()=>{o.current.refresh(),i(!0)}),l=T.useRef(()=>{i(!1)}),u=T.useRef(m=>{let y;return t.update(()=>{var _;const x=A.$getNearestNodeFromDOMNode(m);x&&(y={type:"card",nodeKey:x.getKey(),cardName:x.getType(),dataset:(_=x.getDataset)==null?void 0:_.call(x),Icon:x.getIcon()})}),y||!1}),f=T.useRef(m=>{const{cardName:y,Icon:x}=m;if(!y||y==="image")return;const _={top:"0",left:"-100%",zIndex:10001,willChange:"transform"},S=()=>k.jsx("div",{className:"absolute flex size-16 flex-col items-center justify-center rounded bg-white shadow-sm",style:_,children:k.jsx("div",{className:"flex items-center",children:k.jsx(x,{className:"size-8"})})}),C=document.createElement("div");return C.innerHTML=ZU(k.jsx(S,{})),C.firstChild}),d=T.useRef((m,y,x)=>{const _=Array.from(t.getRootElement().querySelectorAll(":scope > *")),S=_.indexOf(y),C=_.indexOf(m.element);if(m.type!=="card"&&m.type!=="image")return!1;if(tQ(C,S,x)){let E=S;x.match(/bottom/)&&(E+=1);let N,M;return x.match(/bottom/)?(N=_.slice(0,S+1),M=_.slice(S+1)):(N=_.slice(0,S),M=_.slice(S)),{direction:"vertical",position:x.match(/top/)?"top":"bottom",beforeElems:N,afterElems:M,insertIndex:E}}return!1}),h=T.useRef(m=>{if(m.type!=="card"&&m.type!=="image")return!1;const y=Array.from(t.getRootElement().querySelectorAll(":scope > *")),x=y.indexOf(m.element);if(tQ(x,m.insertIndex)){let _;return t.update(()=>{if(m.type==="card"){const S=A.$getNodeByKey(m.nodeKey);m.insertIndex>=y.length?A.$getNearestNodeFromDOMNode(y[y.length-1]).insertAfter(S):A.$getNearestNodeFromDOMNode(y[m.insertIndex]).insertBefore(S),A.$setSelection(null),s.current=!0,_=!0;return}if(m.type==="image"){const S=A.$getNearestNodeFromDOMNode(y[m.insertIndex]),C=Sh(m.dataset);S.insertBefore(C);const E=A.$createNodeSelection();E.add(C.getKey()),A.$setSelection(E),_=!0;return}}),_}}),g=T.useRef((m,y)=>{if(s.current||!y||m.type!=="card"){s.current=!1;return}t.update(()=>{A.$getNodeByKey(m.nodeKey).remove(!1)})});T.useEffect(()=>(n.dragDropHandler=new aNe({editorContainerElement:n.editorContainerRef.current}),o.current=n.dragDropHandler.registerContainer(t.getRootElement(),{draggableSelector:":scope > div",droppableSelector:":scope > *",onDragStart:a.current,onDragEnd:l.current,getDraggableInfo:u.current,createGhostElement:f.current,getIndicatorPosition:d.current,onDrop:h.current,onDropEnd:g.current}),()=>{var m;o.current=null,(m=n.dragDropHandler)==null||m.destroy(),delete n.dragDropHandler}),[t,n]),T.useEffect(()=>t.registerUpdateListener(()=>{var m;(m=o.current)==null||m.refresh()}),[t]),T.useEffect(()=>t.registerRootListener((m,y)=>{m==null||m.addEventListener("dragstart",qU),y==null||y.removeEventListener("dragstart",qU)}),[t]),T.useEffect(()=>{var m,y;r?(m=o.current)==null||m.disableDrag():(y=o.current)==null||y.enableDrag()},[r])}function YU(){const[t]=Oe.useLexicalComposerContext();return lNe(t,t._editable)}function VU({selection:t,editor:e}){if(!t||!A.$isRangeSelection(t))return null;const n=t.anchor,i=t.focus,r=Oi.createDOMRange(e,n.getNode(),t.anchor.offset,i.getNode(),t.focus.offset);if(!r)return null;const o=Oi.createRectsFromDOMRange(e,r),s=o[0];if(o.length>1)for(let a=1;a<o.length;a++){const l=o[a];l.top===s.top&&(s.width+=l.width)}return s}const uNe=10;function cNe(t,e,n,i={}){i=Object.assign({verticalGap:uNe,controlOpacity:!1},i);const r=n.parentElement;if(!t||!r||!e)return;const o=e.getBoundingClientRect(),s=r.getBoundingClientRect();let a=t.top-o.height-i.verticalGap,l=t.left+t.width/2-o.width/2;l<s.left&&(l=s.left),l+o.width>s.right&&(l=s.right-o.width),i.controlOpacity&&(e.style.opacity="1"),e.style.top=`${a}px`,e.style.left=`${l}px`}function XU({anchorElem:t,children:e,editor:n,isVisible:i,toolbarRef:r,targetElem:o,onReposition:s,shouldReposition:a=!0,controlOpacity:l}){const u=T.useCallback((f=!0)=>{n.update(()=>{const d=r==null?void 0:r.current;if(!d||d.style.opacity==="1"&&!f)return;let h;if(o&&(h=o.getClientRects()[0]),!h){const g=A.$getSelection();h=VU({editor:n,selection:g})}h&&cNe(h,d,t,{controlOpacity:l})})},[t,l,n,o,r]);return T.useEffect(()=>{i&&(u(a),a&&(s==null||s()))},[i,s,a,u]),T.useEffect(()=>{const f=yh(t);return window.addEventListener("resize",u),f&&f.addEventListener("scroll",u),()=>{window.removeEventListener("resize",u),f&&f.removeEventListener("scroll",u)}},[t,u]),i?k.jsx(Gc,{children:k.jsx("div",{ref:r,className:"not-kg-prose fixed z-[10000]",style:{opacity:0,transition:"opacity 100ms ease"},"data-kg-floating-toolbar":!0,children:e})}):null}function W5(){return navigator.userAgent.indexOf("Mac")!==-1}function H5(){return W5()?"⌘":"Ctrl"}function Q5(){return W5()?"⌃":"Ctrl"}function GU(){return W5()?"⌥":"Alt"}function Ru(t){const e=t.anchor,n=t.focus,i=t.anchor.getNode(),r=t.focus.getNode();return i===r?i:t.isBackward()?Oi.$isAtNodeEnd(n)?i:r:Oi.$isAtNodeEnd(e)?r:i}const fNe={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote","extended-quote":"Quote",aside:"Aside"};function dNe(t=""){var e,n;return(e=t.endsWith)!=null&&e.call(t,"quote")?"quoteOne":(n=t.endsWith)!=null&&n.call(t,"aside")?"quoteTwo":"quote"}function hNe({editor:t,isSnippetsEnabled:e,isLinkSelected:n,onLinkClick:i,onSnippetClick:r,hiddenFormats:o=[]}){var N,M;const[s,a]=T.useState(!1),[l,u]=T.useState(!1),[f,d]=T.useState("paragraph"),{cardConfig:{createSnippet:h}}=T.useContext(ft);let g=!1;t.hasNodes([Kt.HeadingNode])||(g=!0);let m=!1;t.hasNodes([Kt.QuoteNode])||(m=!0);let y=!e||!h;t._parentEditor&&(y=!0);let x=!1;o.includes("bold")&&(x=!0);const _=T.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const I=A.$getSelection();if(!A.$isRangeSelection(I))return;a(I.hasFormat("bold")),u(I.hasFormat("italic"));const W=Ru(I),B=W.getKey()==="root"?W:W.getTopLevelElementOrThrow(),Z=B.getKey();if(t.getElementByKey(Z)!==null)if(ei.$isListNode(B)){const Q=ut.$getNearestNodeOfType(W,ei.ListNode),V=Q?Q.getListType():B.getListType();d(V)}else{const Q=Kt.$isHeadingNode(B)?B.getTag():B.getType();Q in fNe&&d(Q)}})},[t]);T.useEffect(()=>(_(),t.registerUpdateListener(()=>{_()})),[t,_]);const S=()=>{f!=="paragraph"&&t.update(()=>{const I=A.$getSelection();A.$isRangeSelection(I)&&Oi.$setBlocksType(I,()=>A.$createParagraphNode())})},C=I=>{f!==I&&t.update(()=>{const W=A.$getSelection();A.$isRangeSelection(W)&&Oi.$setBlocksType(W,()=>Kt.$createHeadingNode(I))})},E=()=>{t.update(()=>{var W;const I=A.$getSelection();A.$isRangeSelection(I)&&(f!=null&&f.endsWith("quote")?Oi.$setBlocksType(I,()=>sD()):(W=f==null?void 0:f.endsWith)!=null&&W.call(f,"aside")?Oi.$setBlocksType(I,()=>A.$createParagraphNode()):Oi.$setBlocksType(I,()=>Kt.$createQuoteNode()))})};return k.jsxs(Jn,{children:[k.jsx(at,{"data-kg-toolbar-button":"bold",hide:x,icon:"bold",isActive:s,label:"Bold",shortcutKeys:[H5(),"B"],onClick:()=>t.dispatchCommand(A.FORMAT_TEXT_COMMAND,"bold")}),k.jsx(at,{"data-kg-toolbar-button":"italic",icon:"italic",isActive:l,label:"Emphasize",shortcutKeys:[H5(),"I"],onClick:()=>t.dispatchCommand(A.FORMAT_TEXT_COMMAND,"italic")}),k.jsx(at,{"data-kg-toolbar-button":"h2",hide:g,icon:"headingTwo",isActive:f==="h2",label:"Heading 2",shortcutKeys:[Q5(),GU(),"2"],onClick:()=>f==="h2"?S():C("h2")}),k.jsx(at,{"data-kg-toolbar-button":"h3",hide:g,icon:"headingThree",isActive:f==="h3",label:"Heading 3",shortcutKeys:[Q5(),GU(),"3"],onClick:()=>f==="h3"?S():C("h3")}),k.jsx(Bn,{hide:m}),k.jsx(at,{"data-kg-toolbar-button":"quote",hide:m,icon:dNe(f),isActive:((N=f.endsWith)==null?void 0:N.call(f,"quote"))||((M=f.endsWith)==null?void 0:M.call(f,"aside")),label:"Quote",shortcutKeys:[Q5(),"Q"],onClick:E}),k.jsx(at,{"data-kg-toolbar-button":"link",icon:"link",isActive:!!n,label:"Link",shortcutKeys:[H5(),"K"],onClick:i}),k.jsx(Bn,{hide:y}),k.jsx(at,{"data-kg-toolbar-button":"snippet",hide:y,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:r})]})}function pNe({href:t,onClose:e,...n}){const[i]=Oe.useLexicalComposerContext(),r=o=>{i.update(()=>{i.dispatchCommand(ki.TOGGLE_LINK_COMMAND,o||null);const a=A.$getSelection().focus.getNode(),l=A.$createRangeSelection();l.setTextNodeRange(a,a.getTextContentSize(),a,a.getTextContentSize()),A.$setSelection(l),e()})};return k.jsx(Y6,{cancel:e,href:t,update:r,...n})}function KU({href:t,update:e,cancel:n}){const{cardConfig:{searchLinks:i}}=T.useContext(ft),[r,o]=T.useState(t),{isSearching:s,listOptions:a}=l6(r,i),l=T.useRef(null),u="link-input";T.useEffect(()=>{ui("Link dropdown: Opened",{context:"text"})},[]),T.useEffect(()=>{o(t)},[t]),T.useEffect(()=>{const m=x=>{l.current&&!l.current.contains(x.target)&&n()},y=x=>{x.key==="Escape"&&n()};return window.addEventListener("mousedown",m),window.addEventListener("keydown",y),()=>{window.removeEventListener("mousedown",m),window.removeEventListener("keydown",y)}},[n]);const f=m=>{e(m.value,m.type)},d=(m,y,x,_)=>k.jsx(a6,{dataTestId:u,highlightString:r,item:m,scrollIntoView:_,selected:y,onClick:f,onMouseOver:x},m.value),h=(m,{showSpinner:y}={})=>k.jsx(s6,{dataTestId:u,group:m,showSpinner:y}),g=s||a&&!!a.length;return k.jsxs("div",{ref:l,className:"relative m-0 flex w-full flex-col rounded-lg bg-white p-1 px-2 font-sans text-sm font-medium shadow-md dark:bg-grey-950",children:[k.jsx(i6,{autoFocus:!0,className:"my-1 h-auto w-full rounded-md border border-transparent bg-grey-100 px-4 py-2 text-left text-sm font-medium leading-snug text-black placeholder:text-sm placeholder:font-medium placeholder:leading-snug placeholder:text-grey-500 focus:border-green focus:bg-white focus:shadow-[0_0_0_2px_rgba(48,207,67,.25)] dark:border-grey-800/80 dark:bg-grey-900 dark:text-white dark:selection:bg-grey-600/40 dark:selection:text-grey-100 dark:focus:border-green dark:focus:bg-grey-900",dataTestId:u,name:"link-input",placeholder:"Search or enter URL to link",value:r,"data-kg-link-input":!0,onChange:m=>{o(m.target.value)},onKeyDown:m=>{if(m.key==="Enter"){m.preventDefault(),e(r);return}}}),g&&k.jsx(k.Fragment,{children:k.jsxs("ul",{className:"max-h-[30vh] w-full overflow-y-auto bg-white py-1 dark:bg-grey-950",children:[s&&!a.length&&k.jsx(LB,{dataTestId:u}),k.jsx(o6,{getGroup:h,getItem:d,groups:a,isLoading:s,onSelect:f})]})})]})}KU.propTypes={href:P.string};function gNe({anchorElem:t,href:e,onClose:n,...i}){const[r]=Oe.useLexicalComposerContext(),{cardConfig:o}=T.useContext(ft),s=T.useMemo(()=>yh(r.getRootElement()),[r]),a=T.useRef(null),l=T.useCallback(()=>{r.update(()=>{const f=a.current;if(!f)return;const d=A.$getSelection();if(!d)return;const h=VU({editor:r,selection:d}),g=t.parentElement;if(!h||!g||!f)return;const m=g.getBoundingClientRect(),y=h.bottom+10,x=m.left,_=m.right;f.style.top=`${y}px`,f.style.left=`${x}px`,f.style.width=`${_-x}px`;const S=window.innerHeight/100*30+54,C=f.getBoundingClientRect();s.scrollTop+C.top+S>s.scrollHeight&&(f.style.top=`${h.top-C.height-55}px`)})},[t,r,s]);T.useEffect(()=>{l()},[l]),T.useEffect(()=>{const f=yh(t);window.addEventListener("resize",l),f&&f.addEventListener("scroll",l);const d=a.current,h=new MutationObserver(l);return h.observe(d,{childList:!0,subtree:!0}),()=>{window.removeEventListener("resize",l),f&&f.removeEventListener("scroll",l),d&&h.disconnect()}},[t,l]);const u=(f,d)=>{r.update(()=>{r.dispatchCommand(ki.TOGGLE_LINK_COMMAND,f||null);const h=A.$getSelection();if(h){const g=h.focus.getNode(),m=A.$createRangeSelection();m.setTextNodeRange(g,g.getTextContentSize(),g,g.getTextContentSize()),A.$setSelection(m)}if(n(),d==="internal"||d==="default")ui("Link dropdown: Internal link chosen",{context:"text",fromLatest:d==="default"});else try{const g=u6(f,o==null?void 0:o.siteUrl)?"internal":"external";ui("Link dropdown: URL entered",{context:"text",target:g})}catch{}})};return k.jsx(Gc,{children:k.jsx("div",{ref:a,className:"not-kg-prose fixed z-[10000]",children:k.jsx(KU,{cancel:n,href:e,update:u,...i})})})}const mNe=5,Bs={snippet:"snippet",link:"link",text:"text"};function vNe({editor:t,anchorElem:e,href:n,isSnippetsEnabled:i,toolbarItemType:r,setToolbarItemType:o,hiddenFormats:s=[]}){const{cardConfig:a}=T.useContext(ft),l=typeof(a==null?void 0:a.searchLinks)=="function"||!1,u=T.useRef(null),f=r===Bs.link&&l,d=T.useCallback(_=>{var S;r&&((S=u.current)==null?void 0:S.style.opacity)==="0"&&(u.current.style.opacity="1")},[r]);T.useEffect(()=>{const _=S=>{t.getEditorState().read(()=>{const C=A.$getSelection();A.$isRangeSelection(C)&&C.getNodes().find(N=>{const M=t.getElementByKey(N.getKey());return M&&(M.contains(S.target)||S.target.contains(M))})&&d(S)})};return document.addEventListener("mouseup",_),document.addEventListener("touchend",_),()=>{document.removeEventListener("mouseup",_),document.removeEventListener("touchend",_)}},[t,d]),T.useEffect(()=>ut.mergeRegister(t.registerCommand(A.DELETE_CHARACTER_COMMAND,()=>(o(null),!1),A.COMMAND_PRIORITY_LOW)),[t,o]),T.useEffect(()=>{let _=null;const C=kh(E=>{(E==null?void 0:E.buttons)>0||(_||(_={x:E.clientX,y:E.clientY}),Math.sqrt(Math.pow(E.clientX-_.x,2)+Math.pow(E.clientY-_.y,2))<mNe)||(_=null,t.getEditorState().read(()=>{const M=A.$getSelection();M===null||!A.$isRangeSelection(M)||M.getTextContent()!==null&&d()}))},10);return document.addEventListener("mousemove",C),()=>{document.removeEventListener("mousemove",C)}},[t,d]);const h=()=>{o(null)},g=Bs.snippet===r,m=Bs.link===r,y=Bs.text===r,x=y||l&&m;return k.jsxs(k.Fragment,{children:[k.jsxs(XU,{anchorElem:e,controlOpacity:!y,editor:t,isVisible:!!r,shouldReposition:r!==Bs.text,toolbarRef:u,children:[g&&k.jsx(Kn,{onClose:h}),m&&!l&&k.jsx(pNe,{href:n,onClose:h}),x&&k.jsx(hNe,{editor:t,hiddenFormats:s,isLinkSelected:!!n||l&&m,isSnippetsEnabled:i,onLinkClick:()=>o(Bs.link),onSnippetClick:()=>o(Bs.snippet)})]}),f&&k.jsx(gNe,{anchorElem:e,href:n,onClose:h})]})}function bNe({href:t,onEdit:e,onRemove:n}){return k.jsxs("div",{className:"relative m-0 flex items-center justify-evenly gap-1 rounded-lg bg-white px-1 font-sans text-md font-normal text-black shadow-md dark:bg-grey-950 dark:text-white",children:[k.jsx("a",{className:"ml-3 mr-2 max-w-2xl truncate",href:t,rel:"noopener noreferrer",target:"_blank",children:t}),k.jsx(at,{dataTestId:"edit-url",icon:"edit",isActive:!1,label:"Edit",secondary:!0,onClick:e}),k.jsx(at,{dataTestId:"remove-url",icon:"remove",isActive:!1,label:"Remove",secondary:!0,onClick:n})]})}function kNe({anchorElem:t,onEditLink:e,disabled:n}){const[i]=Oe.useLexicalComposerContext(),[r,o]=T.useState(null),[s,a]=T.useState(""),l=T.useRef(null),[u,f]=T.useState(null);T.useEffect(()=>{if(n){r&&(o(null),a(""));return}const m=kh(y=>{var x;(x=l.current)!=null&&x.contains(y.target)||i.update(()=>{const _=A.$getNearestNodeFromDOMNode(y.target);if(f(y.target),!(ki.$isLinkNode(_)||ki.$isLinkNode(_==null?void 0:_.getParent()))){r&&o(null);return}let C=ki.$isLinkNode(_)?_:_.getParent();o(C),a(C.getURL())})},50);return document.addEventListener("mousemove",m),()=>{m.cancel(),document.removeEventListener("mousemove",m)}},[n,i,r]);const d=()=>{i.update(()=>{const g=A.$createRangeSelection();g.setTextNodeRange(r.getFirstChild(),0,r.getLastChild(),r.getLastChild().getTextContentSize()),A.$setSelection(g),e({href:s})})},h=()=>{i.update(()=>{r.select(),i.dispatchCommand(ki.TOGGLE_LINK_COMMAND,null),o(null)})};return r?k.jsx(XU,{anchorElem:t,controlOpacity:!0,editor:i,isVisible:!0,targetElem:u,toolbarRef:l,children:k.jsx(bNe,{href:s,onEdit:d,onRemove:h})}):null}function JU({anchorElem:t=document.body,isSnippetsEnabled:e,hiddenFormats:n=[]}){const[i]=Oe.useLexicalComposerContext();return yNe(i,t,e,n)}function yNe(t,e,n,i=[]){const[r,o]=T.useState(null),[s,a]=T.useState(null),l=T.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const f=A.$getSelection(),d=window.getSelection(),h=t.getRootElement();if(d!==null&&(!A.$isRangeSelection(f)||h===null||!h.contains(d.anchorNode))){o(null);return}if(!A.$isRangeSelection(f)||Ka(f.anchor.getNode())){r&&o(null);return}const g=Ru(f),m=g.getParent();if(ki.$isLinkNode(m)?a(m.getURL()):ki.$isLinkNode(g)?a(g.getURL()):a(""),f.getTextContent().trim()!==""&&(A.$isTextNode(g)||A.$isParagraphNode(g))){o(Bs.text);return}o(null)})},[t,r]);T.useEffect(()=>{if(!(r&&r!==Bs.text))return document.addEventListener("selectionchange",l),()=>{document.removeEventListener("selectionchange",l)}},[l,r]),T.useEffect(()=>{t.registerCommand(A.KEY_MODIFIER_COMMAND,f=>{const{keyCode:d,ctrlKey:h,metaKey:g,shiftKey:m}=f;if(!m&&d===75&&(h||g)){const y=A.$getSelection();if(A.$isRangeSelection(y)&&!y.isCollapsed())return o(Bs.link),f.preventDefault(),!0}return!1},A.COMMAND_PRIORITY_LOW)},[t]),T.useEffect(()=>{const f=d=>{e.contains(d.target)||o(null)};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}});const u=f=>{o(Bs.link),a(f==null?void 0:f.href)};return k.jsxs(k.Fragment,{children:[k.jsx(vNe,{anchorElem:e,editor:t,hiddenFormats:i,href:s,isSnippetsEnabled:n,setToolbarItemType:o,toolbarItemType:r}),k.jsx(kNe,{anchorElem:e,disabled:!!r,onEditLink:u})]})}var wNe=function(e,n){return e===void 0&&(e=[]),n===void 0&&(n=[]),e.length!==n.length||e.some(function(i,r){return!Object.is(i,n[r])})},eZ={error:null},xNe=function(t){kEe(e,t);function e(){for(var i,r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=t.call.apply(t,[this].concat(o))||this,i.state=eZ,i.resetErrorBoundary=function(){for(var a,l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];i.props.onReset==null||(a=i.props).onReset.apply(a,u),i.reset()},i}e.getDerivedStateFromError=function(r){return{error:r}};var n=e.prototype;return n.reset=function(){this.setState(eZ)},n.componentDidCatch=function(r,o){var s,a;(s=(a=this.props).onError)==null||s.call(a,r,o)},n.componentDidUpdate=function(r,o){var s=this.state.error,a=this.props.resetKeys;if(s!==null&&o.error!==null&&wNe(r.resetKeys,a)){var l,u;(l=(u=this.props).onResetKeysChange)==null||l.call(u,r.resetKeys,a),this.reset()}},n.render=function(){var r=this.state.error,o=this.props,s=o.fallbackRender,a=o.FallbackComponent,l=o.fallback;if(r!==null){var u={error:r,resetErrorBoundary:this.resetErrorBoundary};if(J.isValidElement(l))return l;if(typeof s=="function")return s(u);if(a)return J.createElement(a,u);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(J.Component);function _Ne({children:t}){const{onError:e}=T.useContext(ft);return k.jsx(xNe,{fallback:k.jsx("div",{className:"border border-red p-2",children:"An error was thrown."}),onError:e,children:t})}function ONe(){return k.jsx("hr",{className:"m-0 block h-[1px] border-0 border-t border-grey-300"})}const tZ=A.createCommand();class Nh extends Ug{getIcon(){return r_}decorate(){return k.jsx(An,{className:"inline-block",nodeKey:this.getKey(),children:k.jsx(ONe,{})})}}ye(Nh,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:r_,insertCommand:tZ,matches:["divider","horizontal-rule","hr"],priority:2,shortcut:"/hr"});function U5(){return new Nh}function SNe(t){return t instanceof Nh}var Pn={},yi={},nZ={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
||
* Prism: Lightweight, robust, elegant syntax highlighting
|
||
*
|
||
* @license MIT <https://opensource.org/licenses/MIT>
|
||
* @author Lea Verou <https://lea.verou.me>
|
||
* @namespace
|
||
* @public
|
||
*/var n=function(i){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},a={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function S(C){return C instanceof l?new l(C.type,S(C.content),C.alias):Array.isArray(C)?C.map(S):C.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(S){return Object.prototype.toString.call(S).slice(8,-1)},objId:function(S){return S.__id||Object.defineProperty(S,"__id",{value:++o}),S.__id},clone:function S(C,E){E=E||{};var N,M;switch(a.util.type(C)){case"Object":if(M=a.util.objId(C),E[M])return E[M];N={},E[M]=N;for(var I in C)C.hasOwnProperty(I)&&(N[I]=S(C[I],E));return N;case"Array":return M=a.util.objId(C),E[M]?E[M]:(N=[],E[M]=N,C.forEach(function(W,B){N[B]=S(W,E)}),N);default:return C}},getLanguage:function(S){for(;S;){var C=r.exec(S.className);if(C)return C[1].toLowerCase();S=S.parentElement}return"none"},setLanguage:function(S,C){S.className=S.className.replace(RegExp(r,"gi"),""),S.classList.add("language-"+C)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(N){var S=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(N.stack)||[])[1];if(S){var C=document.getElementsByTagName("script");for(var E in C)if(C[E].src==S)return C[E]}return null}},isActive:function(S,C,E){for(var N="no-"+C;S;){var M=S.classList;if(M.contains(C))return!0;if(M.contains(N))return!1;S=S.parentElement}return!!E}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(S,C){var E=a.util.clone(a.languages[S]);for(var N in C)E[N]=C[N];return E},insertBefore:function(S,C,E,N){N=N||a.languages;var M=N[S],I={};for(var W in M)if(M.hasOwnProperty(W)){if(W==C)for(var B in E)E.hasOwnProperty(B)&&(I[B]=E[B]);E.hasOwnProperty(W)||(I[W]=M[W])}var Z=N[S];return N[S]=I,a.languages.DFS(a.languages,function(R,Q){Q===Z&&R!=S&&(this[R]=I)}),I},DFS:function S(C,E,N,M){M=M||{};var I=a.util.objId;for(var W in C)if(C.hasOwnProperty(W)){E.call(C,W,C[W],N||W);var B=C[W],Z=a.util.type(B);Z==="Object"&&!M[I(B)]?(M[I(B)]=!0,S(B,E,null,M)):Z==="Array"&&!M[I(B)]&&(M[I(B)]=!0,S(B,E,W,M))}}},plugins:{},highlightAll:function(S,C){a.highlightAllUnder(document,S,C)},highlightAllUnder:function(S,C,E){var N={callback:E,container:S,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",N),N.elements=Array.prototype.slice.apply(N.container.querySelectorAll(N.selector)),a.hooks.run("before-all-elements-highlight",N);for(var M=0,I;I=N.elements[M++];)a.highlightElement(I,C===!0,N.callback)},highlightElement:function(S,C,E){var N=a.util.getLanguage(S),M=a.languages[N];a.util.setLanguage(S,N);var I=S.parentElement;I&&I.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(I,N);var W=S.textContent,B={element:S,language:N,grammar:M,code:W};function Z(Q){B.highlightedCode=Q,a.hooks.run("before-insert",B),B.element.innerHTML=B.highlightedCode,a.hooks.run("after-highlight",B),a.hooks.run("complete",B),E&&E.call(B.element)}if(a.hooks.run("before-sanity-check",B),I=B.element.parentElement,I&&I.nodeName.toLowerCase()==="pre"&&!I.hasAttribute("tabindex")&&I.setAttribute("tabindex","0"),!B.code){a.hooks.run("complete",B),E&&E.call(B.element);return}if(a.hooks.run("before-highlight",B),!B.grammar){Z(a.util.encode(B.code));return}if(C&&i.Worker){var R=new Worker(a.filename);R.onmessage=function(Q){Z(Q.data)},R.postMessage(JSON.stringify({language:B.language,code:B.code,immediateClose:!0}))}else Z(a.highlight(B.code,B.grammar,B.language))},highlight:function(S,C,E){var N={code:S,grammar:C,language:E};if(a.hooks.run("before-tokenize",N),!N.grammar)throw new Error('The language "'+N.language+'" has no grammar.');return N.tokens=a.tokenize(N.code,N.grammar),a.hooks.run("after-tokenize",N),l.stringify(a.util.encode(N.tokens),N.language)},tokenize:function(S,C){var E=C.rest;if(E){for(var N in E)C[N]=E[N];delete C.rest}var M=new d;return h(M,M.head,S),f(S,M,C,M.head,0),m(M)},hooks:{all:{},add:function(S,C){var E=a.hooks.all;E[S]=E[S]||[],E[S].push(C)},run:function(S,C){var E=a.hooks.all[S];if(!(!E||!E.length))for(var N=0,M;M=E[N++];)M(C)}},Token:l};i.Prism=a;function l(S,C,E,N){this.type=S,this.content=C,this.alias=E,this.length=(N||"").length|0}l.stringify=function S(C,E){if(typeof C=="string")return C;if(Array.isArray(C)){var N="";return C.forEach(function(Z){N+=S(Z,E)}),N}var M={type:C.type,content:S(C.content,E),tag:"span",classes:["token",C.type],attributes:{},language:E},I=C.alias;I&&(Array.isArray(I)?Array.prototype.push.apply(M.classes,I):M.classes.push(I)),a.hooks.run("wrap",M);var W="";for(var B in M.attributes)W+=" "+B+'="'+(M.attributes[B]||"").replace(/"/g,""")+'"';return"<"+M.tag+' class="'+M.classes.join(" ")+'"'+W+">"+M.content+"</"+M.tag+">"};function u(S,C,E,N){S.lastIndex=C;var M=S.exec(E);if(M&&N&&M[1]){var I=M[1].length;M.index+=I,M[0]=M[0].slice(I)}return M}function f(S,C,E,N,M,I){for(var W in E)if(!(!E.hasOwnProperty(W)||!E[W])){var B=E[W];B=Array.isArray(B)?B:[B];for(var Z=0;Z<B.length;++Z){if(I&&I.cause==W+","+Z)return;var R=B[Z],Q=R.inside,V=!!R.lookbehind,H=!!R.greedy,j=R.alias;if(H&&!R.pattern.global){var q=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,q+"g")}for(var Y=R.pattern||R,K=N.next,te=M;K!==C.tail&&!(I&&te>=I.reach);te+=K.value.length,K=K.next){var oe=K.value;if(C.length>S.length)return;if(!(oe instanceof l)){var ce=1,U;if(H){if(U=u(Y,te,S,V),!U||U.index>=S.length)break;var pe=U.index,F=U.index+U[0].length,se=te;for(se+=K.value.length;pe>=se;)K=K.next,se+=K.value.length;if(se-=K.value.length,te=se,K.value instanceof l)continue;for(var le=K;le!==C.tail&&(se<F||typeof le.value=="string");le=le.next)ce++,se+=le.value.length;ce--,oe=S.slice(te,se),U.index-=te}else if(U=u(Y,0,oe,V),!U)continue;var pe=U.index,je=U[0],He=oe.slice(0,pe),ot=oe.slice(pe+je.length),ht=te+oe.length;I&&ht>I.reach&&(I.reach=ht);var ve=K.prev;He&&(ve=h(C,ve,He),te+=He.length),g(C,ve,ce);var De=new l(W,Q?a.tokenize(je,Q):je,j,je);if(K=h(C,ve,De),ot&&h(C,K,ot),ce>1){var st={cause:W+","+Z,reach:ht};f(S,C,E,K.prev,te,st),I&&st.reach>I.reach&&(I.reach=st.reach)}}}}}}function d(){var S={value:null,prev:null,next:null},C={value:null,prev:S,next:null};S.next=C,this.head=S,this.tail=C,this.length=0}function h(S,C,E){var N=C.next,M={value:E,prev:C,next:N};return C.next=M,N.prev=M,S.length++,M}function g(S,C,E){for(var N=C.next,M=0;M<E&&N!==S.tail;M++)N=N.next;C.next=N,N.prev=C,S.length-=M}function m(S){for(var C=[],E=S.head.next;E!==S.tail;)C.push(E.value),E=E.next;return C}if(!i.document)return i.addEventListener&&(a.disableWorkerMessageHandler||i.addEventListener("message",function(S){var C=JSON.parse(S.data),E=C.language,N=C.code,M=C.immediateClose;i.postMessage(a.highlight(N,a.languages[E],E)),M&&i.close()},!1)),a;var y=a.util.currentScript();y&&(a.filename=y.src,y.hasAttribute("data-manual")&&(a.manual=!0));function x(){a.manual||a.highlightAll()}if(!a.manual){var _=document.readyState;_==="loading"||_==="interactive"&&y&&y.defer?document.addEventListener("DOMContentLoaded",x):window.requestAnimationFrame?window.requestAnimationFrame(x):window.setTimeout(x,16)}return a}(e);t.exports&&(t.exports=n),typeof tn<"u"&&(tn.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(r,o){var s={};s["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};a["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:a},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(i,r){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:n.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(i){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var o=i.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i="Loading…",r=function(y,x){return"✖ Error "+y+" while fetching file: "+x},o="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",l="loading",u="loaded",f="failed",d="pre[data-src]:not(["+a+'="'+u+'"]):not(['+a+'="'+l+'"])';function h(y,x,_){var S=new XMLHttpRequest;S.open("GET",y,!0),S.onreadystatechange=function(){S.readyState==4&&(S.status<400&&S.responseText?x(S.responseText):S.status>=400?_(r(S.status,S.statusText)):_(o))},S.send(null)}function g(y){var x=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(y||"");if(x){var _=Number(x[1]),S=x[2],C=x[3];return S?C?[_,Number(C)]:[_,void 0]:[_,_]}}n.hooks.add("before-highlightall",function(y){y.selector+=", "+d}),n.hooks.add("before-sanity-check",function(y){var x=y.element;if(x.matches(d)){y.code="",x.setAttribute(a,l);var _=x.appendChild(document.createElement("CODE"));_.textContent=i;var S=x.getAttribute("data-src"),C=y.language;if(C==="none"){var E=(/\.(\w+)$/.exec(S)||[,"none"])[1];C=s[E]||E}n.util.setLanguage(_,C),n.util.setLanguage(x,C);var N=n.plugins.autoloader;N&&N.loadLanguages(C),h(S,function(M){x.setAttribute(a,u);var I=g(x.getAttribute("data-range"));if(I){var W=M.split(/\r\n?|\n/g),B=I[0],Z=I[1]==null?W.length:I[1];B<0&&(B+=W.length),B=Math.max(0,Math.min(B-1,W.length)),Z<0&&(Z+=W.length),Z=Math.max(0,Math.min(Z,W.length)),M=W.slice(B,Z).join(`
|
||
`),x.hasAttribute("data-start")||x.setAttribute("data-start",String(B+1))}_.textContent=M,n.highlightElement(_)},function(M){x.setAttribute(a,f),_.textContent=M})}}),n.plugins.fileHighlight={highlight:function(x){for(var _=(x||document).querySelectorAll(d),S=0,C;C=_[S++];)n.highlightElement(C)}};var m=!1;n.fileHighlight=function(){m||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),m=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(nZ);var CNe=nZ.exports;Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var i={};i["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};r["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(f){return f=f.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+f+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+o+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+o+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(f){["url","bold","italic","strike","code-snippet"].forEach(function(d){f!==d&&(t.languages.markdown[f].inside.content.inside[d]=t.languages.markdown[d])})}),t.hooks.add("after-tokenize",function(f){if(f.language!=="markdown"&&f.language!=="md")return;function d(h){if(!(!h||typeof h=="string"))for(var g=0,m=h.length;g<m;g++){var y=h[g];if(y.type!=="code"){d(y.content);continue}var x=y.content[1],_=y.content[3];if(x&&_&&x.type==="code-language"&&_.type==="code-block"&&typeof x.content=="string"){var S=x.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");S=(/[a-z][\w-]*/i.exec(S)||[""])[0].toLowerCase();var C="language-"+S;_.alias?typeof _.alias=="string"?_.alias=[_.alias,C]:_.alias.push(C):_.alias=[C]}}}d(f.tokens)}),t.hooks.add("wrap",function(f){if(f.type==="code-block"){for(var d="",h=0,g=f.classes.length;h<g;h++){var m=f.classes[h],y=/language-(.+)/.exec(m);if(y){d=y[1];break}}var x=t.languages[d];if(x)f.content=t.highlight(u(f.content),x,d);else if(d&&d!=="none"&&t.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);f.attributes.id=_,t.plugins.autoloader.loadLanguages(d,function(){var S=document.getElementById(_);S&&(S.innerHTML=t.highlight(S.textContent,t.languages[d],d))})}}});var s=RegExp(t.languages.markup.tag.pattern.source,"gi"),a={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;function u(f){var d=f.replace(s,"");return d=d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(h,g){if(g=g.toLowerCase(),g[0]==="#"){var m;return g[1]==="x"?m=parseInt(g.slice(2),16):m=Number(g.slice(1)),l(m)}else{var y=a[g];return y||h}}),d}t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=Prism.languages.swift}),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism),function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism);var Ah=CNe,df=ut,be=A;let iZ=t=>t!=null&&Ah.languages.hasOwnProperty(t)?t:void 0;function rZ(t,e){for(let n of t.childNodes){if(df.isHTMLElement(n)&&n.tagName===e)return!0;rZ(n,e)}return!1}let Ph=class Dee extends be.ElementNode{static getType(){return"code"}static clone(e){return new Dee(e.__language,e.__key)}constructor(e,n){super(n),this.__language=iZ(e)}createDOM(e){let n=document.createElement("code");return df.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,n){let i=this.__language;return e=e.__language,i?i!==e&&n.setAttribute("data-highlight-language",i):e&&n.removeAttribute("data-highlight-language"),!1}exportDOM(){let e=document.createElement("pre");e.setAttribute("spellcheck","false");let n=this.getLanguage();return n&&e.setAttribute("data-highlight-language",n),{element:e}}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||rZ(e,"BR"))?{conversion:oZ,priority:1}:null,div:()=>({conversion:ENe,priority:1}),pre:()=>({conversion:oZ,priority:0}),table:e=>Z5(e)?{conversion:TNe,priority:3}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:$Ne,priority:3}:n&&Z5(n)?{conversion:sZ,priority:3}:null},tr:e=>(e=e.closest("table"))&&Z5(e)?{conversion:sZ,priority:3}:null}}static importJSON(e){let n=Dh(e.language);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e,n=!0){var i=this.getChildren(),r=i.length;if(2<=r&&i[r-1].getTextContent()===`
|
||
`&&i[r-2].getTextContent()===`
|
||
`&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return i[r-1].remove(),i[r-2].remove(),e=be.$createParagraphNode(),this.insertAfter(e,n),e;let{anchor:o,focus:s}=e;if(n=(o.isBefore(s)?o:s).getNode(),be.$isTextNode(n)){for(r=ju(n),i=[];;)if(be.$isTabNode(r))i.push(be.$createTabNode()),r=r.getNextSibling();else if(Hn(r)){for(var a=0,l=r.getTextContent(),u=r.getTextContentSize();a<u&&l[a]===" ";a++);if(a!==0&&i.push(Qw(" ".repeat(a))),a!==u)break;r=r.getNextSibling()}else break;r=n.splitText(o.offset)[0],a=o.offset===0?0:1,a=r.getIndexWithinParent()+a,l=n.getParentOrThrow(),u=[be.$createLineBreakNode(),...i],l.splice(a,0,u),(i=i[i.length-1])?i.select():o.offset===0?r.selectPrevious():r.getNextSibling().selectNext(0,0)}return hs(n)&&({offset:e}=e.anchor,n.splice(e,0,[be.$createLineBreakNode()]),n.select(e+1,e+1)),null}canIndent(){return!1}collapseAtStart(){let e=be.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=iZ(e)}getLanguage(){return this.getLatest().__language}};function Dh(t){return be.$applyNodeReplacement(new Ph(t))}function hs(t){return t instanceof Ph}function oZ(t){let e;return df.isHTMLElement(t)&&(e=t.getAttribute("data-highlight-language")),{node:Dh(e)}}function ENe(t){let e=t.style.fontFamily.match("monospace")!==null;return e||MNe(t)?{after:n=>{let i=t.parentNode;return i!=null&&t!==i.lastChild&&n.push(be.$createLineBreakNode()),n},node:e?Dh():null}:{node:null}}function TNe(){return{node:Dh()}}function sZ(){return{node:null}}function $Ne(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(be.$createLineBreakNode()),e),node:null}}function MNe(t){for(t=t.parentElement;t!==null;){if(t.style.fontFamily.match("monospace")!==null)return!0;t=t.parentElement}return!1}function Z5(t){return t.classList.contains("js-file-line-container")}let aZ={c:"C",clike:"C-like",cpp:"C++",css:"CSS",html:"HTML",java:"Java",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",typescript:"TypeScript",xml:"XML"},lZ={cpp:"cpp",java:"java",javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain",ts:"typescript"};function uZ(t){return lZ[t]||t}let $0=class Iee extends be.TextNode{constructor(e,n,i){super(e,i),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new Iee(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}canHaveFormat(){return!1}createDOM(e){let n=super.createDOM(e);return e=q5(e.theme,this.__highlightType),df.addClassNamesToElement(n,e),n}updateDOM(e,n,i){let r=super.updateDOM(e,n,i);return e=q5(i.theme,e.__highlightType),i=q5(i.theme,this.__highlightType),e!==i&&(e&&df.removeClassNamesFromElement(n,e),i&&df.addClassNamesToElement(n,i)),r}static importJSON(e){let n=Qw(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}isParentRequired(){return!0}createParentElementNode(){return Dh()}};function q5(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Qw(t,e){return be.$applyNodeReplacement(new $0(t,e))}function Hn(t){return t instanceof $0}function ju(t){let e=t;for(;Hn(t)||be.$isTabNode(t);)e=t,t=t.getPreviousSibling();return e}function Ih(t){let e=t;for(;Hn(t)||be.$isTabNode(t);)e=t,t=t.getNextSibling();return e}let cZ={defaultLanguage:"javascript",tokenize(t,e){return Ah.tokenize(t,Ah.languages[e||""]||Ah.languages[this.defaultLanguage])}};function fZ(t,e){let n=null;var i=null,r=t;let o=e,s=t.getTextContent();for(;;){if(o===0){if(r=r.getPreviousSibling(),r===null)break;if(!(Hn(r)||be.$isTabNode(r)||be.$isLineBreakNode(r)))throw Error("Expected a valid Code Node: CodeHighlightNode, TabNode, LineBreakNode");if(be.$isLineBreakNode(r)){n={node:r,offset:1};break}o=Math.max(0,r.getTextContentSize()-1),s=r.getTextContent()}else o--;let a=s[o];Hn(r)&&a!==" "&&(i={node:r,offset:o})}if(i!==null)return i;if(i=null,e<t.getTextContentSize()?Hn(t)&&(i=t.getTextContent()[e]):(r=t.getNextSibling(),Hn(r)&&(i=r.getTextContent()[0])),i!==null&&i!==" ")return n;e:for(i=t,r=t.getTextContent(),t=t.getTextContentSize();;){if(!Hn(i)||e===t){if(i=i.getNextSibling(),i===null||be.$isLineBreakNode(i)){t=null;break e}Hn(i)&&(e=0,r=i.getTextContent(),t=i.getTextContentSize())}if(Hn(i)){if(r[e]!==" "){t={node:i,offset:e};break e}e++}}return t!==null?t:n}function dZ(t){if(t=Ih(t),be.$isLineBreakNode(t))throw Error("Unexpected lineBreakNode in getEndOfCodeInLine");return t}function hZ(t,e,n){let i=t.getParent();hs(i)?pZ(i,e,n):Hn(t)&&t.replace(be.$createTextNode(t.__text))}let Y5=new Set;function pZ(t,e,n){let i=t.getKey();Y5.has(i)||(Y5.add(i),t.getLanguage()===void 0&&t.setLanguage(n.defaultLanguage),e.update(()=>{NNe(i,()=>{var r=be.$getNodeByKey(i);if(!hs(r)||!r.isAttached())return!1;var o=r.getTextContent();o=n.tokenize(o,r.getLanguage()||n.defaultLanguage),o=V5(o);var s=r.getChildren();for(r=0;r<s.length&&gZ(s[r],o[r]);)r++;var a=s.length;let l=o.length,u=Math.min(a,l)-r,f=0;for(;f<u;)if(f++,!gZ(s[a-f],o[l-f])){f--;break}s=r,a-=f,o=o.slice(r,l-f);let{from:d,to:h,nodesForReplacement:g}={from:s,nodesForReplacement:o,to:a};return d!==h||g.length?(t.splice(d,h-d,g),!0):!1})},{onUpdate:()=>{Y5.delete(i)},skipTransforms:!0}))}function V5(t,e){let n=[];for(let i of t)if(typeof i=="string"){t=i.split(/(\n|\t)/);let r=t.length;for(let o=0;o<r;o++){let s=t[o];s===`
|
||
`||s===`\r
|
||
`?n.push(be.$createLineBreakNode()):s===" "?n.push(be.$createTabNode()):0<s.length&&n.push(Qw(s,e))}}else({content:t}=i),typeof t=="string"?n.push(...V5([t],i.type)):Array.isArray(t)&&n.push(...V5(t,i.type));return n}function NNe(t,e){if(t=be.$getNodeByKey(t),hs(t)&&t.isAttached()){var n=be.$getSelection();if(be.$isRangeSelection(n)){n=n.anchor;var i=n.offset,r=n.type==="element"&&be.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!r){let s=n.getNode();o=i+s.getPreviousSiblings().reduce((a,l)=>a+l.getTextContentSize(),0)}e()&&(r?n.getNode().select(i,i):t.getChildren().some(s=>{let a=be.$isTextNode(s);if(a||be.$isLineBreakNode(s)){let l=s.getTextContentSize();if(a&&l>=o)return s.select(o,o),!0;o-=l}return!1}))}else e()}}function gZ(t,e){return Hn(t)&&Hn(e)&&t.__text===e.__text&&t.__highlightType===e.__highlightType||be.$isTabNode(t)&&be.$isTabNode(e)||be.$isLineBreakNode(t)&&be.$isLineBreakNode(e)}function Uw(t){if(!be.$isRangeSelection(t))return!1;var e=t.anchor.getNode();return t=t.focus.getNode(),e.is(t)&&hs(e)?!0:(e=e.getParent(),hs(e)&&e.is(t.getParent()))}function mZ(t){t=t.getNodes();let e=[[]];if(t.length===1&&hs(t[0]))return e;let n=e[0];for(let i=0;i<t.length;i++){let r=t[i];if(!(Hn(r)||be.$isTabNode(r)||be.$isLineBreakNode(r)))throw Error("Expected selection to be inside CodeBlock and consisting of CodeHighlightNode, TabNode and LineBreakNode");be.$isLineBreakNode(r)?i!==0&&0<n.length&&(n=[],e.push(n)):n.push(r)}return e}function ANe(t){var e=be.$getSelection();if(!be.$isRangeSelection(e)||!Uw(e))return null;let n=t?be.OUTDENT_CONTENT_COMMAND:be.INDENT_CONTENT_COMMAND;if(t=t?be.OUTDENT_CONTENT_COMMAND:be.INSERT_TAB_COMMAND,1<mZ(e).length)return n;var i=e.getNodes()[0];if(!(hs(i)||Hn(i)||be.$isTabNode(i)||be.$isLineBreakNode(i)))throw Error("Expected selection firstNode to be CodeHighlightNode or TabNode");if(hs(i))return n;let r=ju(i);i=Ih(i);var o=e.anchor;let s=e.focus;return s.isBefore(o)?e=s:(e=o,o=s),r!==null&&i!==null&&e.key===r.getKey()&&e.offset===0&&o.key===i.getKey()&&o.offset===i.getTextContentSize()?n:t}function vZ(t){var e=be.$getSelection();if(!be.$isRangeSelection(e)||!Uw(e))return!1;var n=mZ(e);let i=n.length;if(1<n.length){for(e=0;e<i;e++){var r=n[e];0<r.length&&(r=r[0],e===0&&(r=ju(r)),r!==null&&(t===be.INDENT_CONTENT_COMMAND?r.insertBefore(be.$createTabNode()):be.$isTabNode(r)&&r.remove()))}return!0}if(n=e.getNodes()[0],!(hs(n)||Hn(n)||be.$isTabNode(n)||be.$isLineBreakNode(n)))throw Error("Expected selection firstNode to be CodeHighlightNode or CodeTabNode");if(hs(n))return t===be.INDENT_CONTENT_COMMAND&&e.insertNodes([be.$createTabNode()]),!0;if(n=ju(n),n===null)throw Error("Expected getFirstCodeNodeOfLine to return a valid Code Node");return t===be.INDENT_CONTENT_COMMAND?be.$isLineBreakNode(n)?n.insertAfter(be.$createTabNode()):n.insertBefore(be.$createTabNode()):be.$isTabNode(n)&&n.remove(),!0}function bZ(t,e){let n=be.$getSelection();if(!be.$isRangeSelection(n))return!1;let{anchor:i,focus:r}=n,o=i.offset,s=r.offset,a=i.getNode(),l=r.getNode();var u=t===be.KEY_ARROW_UP_COMMAND;if(!Uw(n)||!Hn(a)&&!be.$isTabNode(a)||!Hn(l)&&!be.$isTabNode(l))return!1;if(!e.altKey){if(n.isCollapsed()){if(t=a.getParentOrThrow(),u&&o===0&&a.getPreviousSibling()===null){if(t.getPreviousSibling()===null)return t.selectPrevious(),e.preventDefault(),!0}else if(!u&&o===a.getTextContentSize()&&a.getNextSibling()===null&&t.getNextSibling()===null)return t.selectNext(),e.preventDefault(),!0}return!1}let f;if(a.isBefore(l)){var d=ju(a);f=Ih(l)}else d=ju(l),f=Ih(a);if(d==null||f==null)return!1;let h=d.getNodesBetween(f);for(let m=0;m<h.length;m++){let y=h[m];if(!Hn(y)&&!be.$isTabNode(y)&&!be.$isLineBreakNode(y))return!1}if(e.preventDefault(),e.stopPropagation(),e=u?d.getPreviousSibling():f.getNextSibling(),!be.$isLineBreakNode(e)||(d=u?e.getPreviousSibling():e.getNextSibling(),d==null))return!0;u=Hn(d)||be.$isTabNode(d)||be.$isLineBreakNode(d)?u?ju(d):Ih(d):null;let g=u??d;return e.remove(),h.forEach(m=>m.remove()),t===be.KEY_ARROW_UP_COMMAND?(h.forEach(m=>g.insertBefore(m)),g.insertBefore(e)):(g.insertAfter(e),g=e,h.forEach(m=>{g.insertAfter(m),g=m})),n.setTextNodeRange(a,o,l,s),!0}function kZ(t,e){let n=be.$getSelection();if(!be.$isRangeSelection(n))return!1;let{anchor:i,focus:r}=n;var o=i.getNode();let s=r.getNode();if(t=t===be.MOVE_TO_START,!Hn(o)&&!be.$isTabNode(o)||!Hn(s)&&!be.$isTabNode(s))return!1;if(t)if(o=fZ(s,r.offset),o!==null){let{node:a,offset:l}=o;be.$isLineBreakNode(a)?a.selectNext(0,0):n.setTextNodeRange(a,l,a,l)}else s.getParentOrThrow().selectStart();else dZ(s).select();return e.preventDefault(),e.stopPropagation(),!0}yi.$createCodeHighlightNode=Qw,yi.$createCodeNode=Dh,yi.$isCodeHighlightNode=Hn,yi.$isCodeNode=hs,yi.CODE_LANGUAGE_FRIENDLY_NAME_MAP=aZ,yi.CODE_LANGUAGE_MAP=lZ,yi.CodeHighlightNode=$0,yi.CodeNode=Ph,yi.DEFAULT_CODE_LANGUAGE="javascript",yi.PrismTokenizer=cZ,yi.getCodeLanguages=()=>Object.keys(Ah.languages).filter(t=>typeof Ah.languages[t]!="function").sort(),yi.getDefaultCodeLanguage=()=>"javascript",yi.getEndOfCodeInLine=dZ,yi.getFirstCodeNodeOfLine=ju,yi.getLanguageFriendlyName=function(t){return t=uZ(t),aZ[t]||t},yi.getLastCodeNodeOfLine=Ih,yi.getStartOfCodeInLine=fZ,yi.normalizeCodeLang=uZ,yi.registerCodeHighlighting=function(t,e){if(!t.hasNodes([Ph,$0]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return e==null&&(e=cZ),df.mergeRegister(t.registerMutationListener(Ph,n=>{t.update(()=>{for(let[o,s]of n)if(s!=="destroyed"){var i=be.$getNodeByKey(o);if(i!==null)e:{var r=i;if(i=t.getElementByKey(r.getKey()),i===null)break e;r=r.getChildren();let a=r.length;if(a===i.__cachedChildrenLength)break e;i.__cachedChildrenLength=a;let l="1",u=1;for(let f=0;f<a;f++)be.$isLineBreakNode(r[f])&&(l+=`
|
||
`+ ++u);i.setAttribute("data-gutter",l)}}})}),t.registerNodeTransform(Ph,n=>pZ(n,t,e)),t.registerNodeTransform(be.TextNode,n=>hZ(n,t,e)),t.registerNodeTransform($0,n=>hZ(n,t,e)),t.registerCommand(be.KEY_TAB_COMMAND,n=>{let i=ANe(n.shiftKey);return i===null?!1:(n.preventDefault(),t.dispatchCommand(i,void 0),!0)},be.COMMAND_PRIORITY_LOW),t.registerCommand(be.INSERT_TAB_COMMAND,()=>{let n=be.$getSelection();return Uw(n)?(be.$insertNodes([be.$createTabNode()]),!0):!1},be.COMMAND_PRIORITY_LOW),t.registerCommand(be.INDENT_CONTENT_COMMAND,()=>vZ(be.INDENT_CONTENT_COMMAND),be.COMMAND_PRIORITY_LOW),t.registerCommand(be.OUTDENT_CONTENT_COMMAND,()=>vZ(be.OUTDENT_CONTENT_COMMAND),be.COMMAND_PRIORITY_LOW),t.registerCommand(be.KEY_ARROW_UP_COMMAND,n=>bZ(be.KEY_ARROW_UP_COMMAND,n),be.COMMAND_PRIORITY_LOW),t.registerCommand(be.KEY_ARROW_DOWN_COMMAND,n=>bZ(be.KEY_ARROW_DOWN_COMMAND,n),be.COMMAND_PRIORITY_LOW),t.registerCommand(be.MOVE_TO_END,n=>kZ(be.MOVE_TO_END,n),be.COMMAND_PRIORITY_LOW),t.registerCommand(be.MOVE_TO_START,n=>kZ(be.MOVE_TO_START,n),be.COMMAND_PRIORITY_LOW))};var PNe=yi,Rt=A,M0=PNe,Hi=ei,Fu=Kt,DNe=ut,X5=ki;function G5(t,e){let n={};for(let i of t)t=e(i),n[t]?n[t].push(i):n[t]=[i];return n}function K5(t){return t=G5(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let Zw=/[!-/:-@[-`{-~\s]/;function INe(t){let e=K5(t),n=e.textFormat.filter(i=>i.format.length===1);return i=>{let r=[];i=(i||Rt.$getRoot()).getChildren();for(let o of i)i=LNe(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
|
||
|
||
`)}}function LNe(t,e,n,i){for(let r of e)if(e=r.export(t,o=>qw(o,n,i)),e!=null)return e;return Rt.$isElementNode(t)?qw(t,n,i):Rt.$isDecoratorNode(t)?t.getTextContent():null}function qw(t,e,n){let i=[];t=t.getChildren();e:for(let r of t){for(let o of n)if(t=o.export(r,s=>qw(s,e,n),(s,a)=>yZ(s,a,e)),t!=null){i.push(t);continue e}Rt.$isLineBreakNode(r)?i.push(`
|
||
`):Rt.$isTextNode(r)?i.push(yZ(r,r.getTextContent(),e)):Rt.$isElementNode(r)?i.push(qw(r,e,n)):Rt.$isDecoratorNode(r)&&i.push(r.getTextContent())}return i.join("")}function yZ(t,e,n){let i=e.trim(),r=i,o=new Set;for(let a of n){n=a.format[0];let l=a.tag;if(J5(t,n)&&!o.has(n)){o.add(n);var s=wZ(t,!0);J5(s,n)||(r=l+r),s=wZ(t,!1),J5(s,n)||(r+=l)}}return e.replace(i,()=>r)}function wZ(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(Rt.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),Rt.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(Rt.$isTextNode(n))return n;if(!Rt.$isElementNode(n))break}return null}function J5(t,e){return Rt.$isTextNode(t)&&t.hasFormat(e)}let Lh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RNe=Lh&&"documentMode"in document?document.documentMode:null;Lh&&"InputEvent"in window&&!RNe&&"getTargetRanges"in new window.InputEvent("input");let xZ=Lh&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),_Z=Lh&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,jNe=Lh&&/^(?=.*Chrome).*/i.test(navigator.userAgent),OZ=Lh&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!jNe,FNe=/^\s{0,3}$/,SZ=/^```(\w{1,10})?\s?$/;function zNe(t){let e=K5(t),n=WNe(e.textFormat);return(i,r)=>{i=i.split(`
|
||
`);var o=i.length;r=r||Rt.$getRoot(),r.clear();for(let m=0;m<o;m++){var s=i[m];e:{var a=i,l=m,u=r,f=a[l].match(SZ);if(f){for(var d=l,h=a.length;++d<h;)if(a[d].match(SZ)){f=M0.$createCodeNode(f[1]),a=Rt.$createTextNode(a.slice(l+1,d).join(`
|
||
`)),f.append(a),u.append(f),u=[f,d];break e}}u=[null,l]}let[y,x]=u;if(y!=null)m=x;else{u=s,h=r;var g=e.element;d=n,a=e.textMatch,l=u.trim(),f=Rt.$createTextNode(l),s=Rt.$createParagraphNode(),s.append(f),h.append(s);for(let{regExp:_,replace:S}of g)if(h=u.match(_)){f.setTextContent(u.slice(h[0].length)),S(s,[f],h,!0);break}Yw(f,d,a),s.isAttached()&&0<l.length&&(u=s.getPreviousSibling(),Rt.$isParagraphNode(u)||Fu.$isQuoteNode(u)||Hi.$isListNode(u))&&(d=u,Hi.$isListNode(u)&&(u=u.getLastDescendant(),d=u==null?null:DNe.$findMatchingParent(u,Hi.$isListItemNode)),d!=null&&0<d.getTextContentSize()&&(d.splice(d.getChildrenSize(),0,[Rt.$createLineBreakNode(),...s.getChildren()]),s.remove()))}}i=r.getChildren();for(let m of i)i=m,Rt.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&Rt.$isTextNode(o)&&FNe.test(o.getTextContent())):i=!1,i&&1<r.getChildrenSize()&&m.remove();Rt.$getSelection()!==null&&r.selectEnd()}}function Yw(t,e,n){var i=t.getTextContent();let r=BNe(i,e);if(r){var o,s;if(r[0]===i)var a=t;else{i=r.index||0;let l=i+r[0].length;i===0?[a,o]=t.splitText(l):[s,a,o]=t.splitText(i,l)}if(a.setTextContent(r[2]),t=e.transformersByTag[r[1]])for(let l of t.format)a.hasFormat(l)||a.toggleFormat(l);a.hasFormat("code")||Yw(a,e,n),s&&Yw(s,e,n),o&&Yw(o,e,n)}else CZ(t,n)}function CZ(t,e){e:for(;t;){for(let n of e){let i=t.getTextContent().match(n.importRegExp);if(!i)continue;let r=i.index||0,o=r+i[0].length,s,a;r===0?[s,t]=t.splitText(o):[,s,a]=t.splitText(r,o),a&&CZ(a,e),n.replace(s,i);continue e}break}}function BNe(t,e){var n=t.match(e.openTagsRegExp);if(n==null)return null;for(let o of n){var i=o.replace(/^\s/,"");if(n=e.fullMatchRegExpByTag[i],n!=null&&(n=t.match(n),i=e.transformersByTag[i],n!=null&&i!=null)){if(i.intraword!==!1)return n;var{index:r=0}=n;if(i=t[r-1],r=t[r+n[0].length],!(i&&!Zw.test(i)||r&&!Zw.test(r)))return n}}return null}function WNe(t){let e={},n={},i=[];for(let r of t){({tag:t}=r),e[t]=r;let o=t.replace(/(\*|\^|\+)/g,"\\$1");i.push(o),n[t]=xZ||_Z||OZ?new RegExp(`(${o})(?![${o}\\s])(.*?[^${o}\\s])${o}(?!${o})`):new RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((xZ||_Z||OZ?"":"(?<![\\\\])")+"("+i.join("|")+")","g"),transformersByTag:e}}function EZ(t,e,n){let i=n.length;for(;e>=i;e--){let r=e-i;if(TZ(t,r,n,0,i)&&t[r+i]!==" ")return r}return-1}function TZ(t,e,n,i,r){for(let o=0;o<r;o++)if(t[e+o]!==n[i+o])return!1;return!0}let $Z=t=>(e,n,i)=>{i=t(i),i.append(...n),e.replace(i),i.select(0,0)},eE=t=>(e,n,i)=>{var r=e.getPreviousSibling(),o=e.getNextSibling();const s=Hi.$createListItemNode(t==="check"?i[3]==="x":void 0);Hi.$isListNode(o)&&o.getListType()===t?(r=o.getFirstChild(),r!==null?r.insertBefore(s):o.append(s),e.remove()):Hi.$isListNode(r)&&r.getListType()===t?(r.append(s),e.remove()):(o=Hi.$createListNode(t,t==="number"?Number(i[2]):void 0),o.append(s),e.replace(o)),s.append(...n),s.select(0,0),(e=Math.floor(i[1].length/4))&&s.setIndent(e)},Vw=(t,e,n)=>{const i=[];var r=t.getChildren();let o=0;for(const a of r)if(Hi.$isListItemNode(a)){if(a.getChildrenSize()===1&&(r=a.getFirstChild(),Hi.$isListNode(r))){i.push(Vw(r,e,n+1));continue}r=" ".repeat(4*n);var s=t.getListType();s=s==="number"?`${t.getStart()+o}. `:s==="check"?`- [${a.getChecked()?"x":" "}] `:"- ",i.push(r+s+e(a)),o++}return i.join(`
|
||
`)},MZ={dependencies:[Fu.HeadingNode],export:(t,e)=>{if(!Fu.$isHeadingNode(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:$Z(t=>Fu.$createHeadingNode("h"+t[1].length)),type:"element"},NZ={dependencies:[Fu.QuoteNode],export:(t,e)=>{if(!Fu.$isQuoteNode(t))return null;t=e(t).split(`
|
||
`),e=[];for(const n of t)e.push("> "+n);return e.join(`
|
||
`)},regExp:/^>\s/,replace:(t,e,n,i)=>{if(i&&(n=t.getPreviousSibling(),Fu.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[Rt.$createLineBreakNode(),...e]),n.select(0,0),t.remove();return}n=Fu.$createQuoteNode(),n.append(...e),t.replace(n),n.select(0,0)},type:"element"},AZ={dependencies:[M0.CodeNode],export:t=>{if(!M0.$isCodeNode(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
|
||
`+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:$Z(t=>M0.$createCodeNode(t?t[1]:void 0)),type:"element"},PZ={dependencies:[Hi.ListNode,Hi.ListItemNode],export:(t,e)=>Hi.$isListNode(t)?Vw(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:eE("bullet"),type:"element"},HNe={dependencies:[Hi.ListNode,Hi.ListItemNode],export:(t,e)=>Hi.$isListNode(t)?Vw(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:eE("check"),type:"element"},DZ={dependencies:[Hi.ListNode,Hi.ListItemNode],export:(t,e)=>Hi.$isListNode(t)?Vw(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:eE("number"),type:"element"},IZ={format:["code"],tag:"`",type:"text-format"},LZ={format:["highlight"],tag:"==",type:"text-format"},RZ={format:["bold","italic"],tag:"***",type:"text-format"},jZ={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},FZ={format:["bold"],tag:"**",type:"text-format"},zZ={format:["bold"],intraword:!1,tag:"__",type:"text-format"},BZ={format:["strikethrough"],tag:"~~",type:"text-format"},WZ={format:["italic"],tag:"*",type:"text-format"},HZ={format:["italic"],intraword:!1,tag:"_",type:"text-format"},QZ={dependencies:[X5.LinkNode],export:(t,e,n)=>{if(!X5.$isLinkNode(t))return null;e=(e=t.getTitle())?`[${t.getTextContent()}](${t.getURL()} "${e}")`:`[${t.getTextContent()}](${t.getURL()})`;const i=t.getFirstChild();return t.getChildrenSize()===1&&Rt.$isTextNode(i)?n(i,e):e},importRegExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[([^[]+)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(t,e)=>{const[,n,i,r]=e;e=X5.$createLinkNode(i,{title:r});const o=Rt.$createTextNode(n);o.setFormat(t.getFormat()),e.append(o),t.replace(e)},trigger:")",type:"text-match"},UZ=[MZ,NZ,AZ,PZ,DZ],ZZ=[IZ,RZ,jZ,FZ,zZ,LZ,WZ,HZ,BZ],qZ=[QZ],Xw=[...UZ,...ZZ,...qZ];Pn.$convertFromMarkdownString=function(t,e=Xw,n){return zNe(e)(t,n)},Pn.$convertToMarkdownString=function(t=Xw,e){return INe(t)(e)},Pn.BOLD_ITALIC_STAR=RZ,Pn.BOLD_ITALIC_UNDERSCORE=jZ,Pn.BOLD_STAR=FZ,Pn.BOLD_UNDERSCORE=zZ,Pn.CHECK_LIST=HNe,Pn.CODE=AZ,Pn.ELEMENT_TRANSFORMERS=UZ,Pn.HEADING=MZ,Pn.HIGHLIGHT=LZ,Pn.INLINE_CODE=IZ,Pn.ITALIC_STAR=WZ,Pn.ITALIC_UNDERSCORE=HZ,Pn.LINK=QZ,Pn.ORDERED_LIST=DZ,Pn.QUOTE=NZ,Pn.STRIKETHROUGH=BZ,Pn.TEXT_FORMAT_TRANSFORMERS=ZZ,Pn.TEXT_MATCH_TRANSFORMERS=qZ,Pn.TRANSFORMERS=Xw,Pn.UNORDERED_LIST=PZ,Pn.registerMarkdownShortcuts=function(t,e=Xw){let n=K5(e),i=G5(n.textFormat,({tag:o})=>o[o.length-1]),r=G5(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,e==="element"||e==="text-match"){e=o.dependencies;for(let s of e)if(!t.hasNode(s))throw Error(`MarkdownShortcuts: missing dependency ${s.getType()} for transformer. Ensure node dependency is included in editor initial config.`)}return t.registerUpdateListener(({tags:o,dirtyLeaves:s,editorState:a,prevEditorState:l})=>{if(!o.has("historic")&&!t.isComposing()){var u=a.read(Rt.$getSelection);if(o=l.read(Rt.$getSelection),Rt.$isRangeSelection(o)&&Rt.$isRangeSelection(u)&&u.isCollapsed()){l=u.anchor.key;var f=u.anchor.offset,d=a._nodeMap.get(l);!Rt.$isTextNode(d)||!s.has(l)||f!==1&&f>o.anchor.offset+1||t.update(()=>{if(!d.hasFormat("code")){var h=d.getParent();if(h!==null&&!M0.$isCodeNode(h)){var g=u.anchor.offset;e:{var m=n.element,y=h.getParent();if(Rt.$isRootOrShadowRoot(y)&&h.getFirstChild()===d&&(y=d.getTextContent(),y[g-1]===" ")){for(let{regExp:N,replace:M}of m)if((m=y.match(N))&&m[0].length===g){y=d.getNextSiblings();let[I,W]=d.splitText(g);I.remove(),y=W?[W,...y]:y,M(h,y,m,!1),h=!0;break e}}h=!1}if(!h){e:{if(m=d.getTextContent(),h=r[m[g-1]],h!=null){g<m.length&&(m=m.slice(0,g));for(_ of h)if(h=m.match(_.regExp),h!==null){m=h.index||0,y=m+h[0].length;var x=void 0;m===0?[x]=d.splitText(y):[,x]=d.splitText(m,y),x.selectNext(0,0),_.replace(x,h);var _=!0;break e}}_=!1}if(!_)e:{y=d.getTextContent(),--g;var S=y[g];if(_=i[S])for(let N of _){var{tag:C}=N;_=C.length;let M=g-_+1;if(!(1<_&&!TZ(y,M,C,0,_)||y[M-1]===" ")&&(x=y[g+1],N.intraword!==!1||!x||Zw.test(x))){h=x=d,m=EZ(y,M,C);for(var E=h;0>m&&(E=E.getPreviousSibling())&&!Rt.$isLineBreakNode(E);)Rt.$isTextNode(E)&&(m=E.getTextContent(),h=E,m=EZ(m,m.length,C));if(!(0>m||h===x&&m+_===M||(C=h.getTextContent(),0<m&&C[m-1]===S||(E=C[m-1],N.intraword===!1&&E&&!Zw.test(E))))){y=x.getTextContent(),y=y.slice(0,M)+y.slice(g+1),x.setTextContent(y),y=h===x?y:C,h.setTextContent(y.slice(0,m)+y.slice(m+_)),y=Rt.$getSelection(),S=Rt.$createRangeSelection(),Rt.$setSelection(S),g=g-_*(h===x?2:1)+1,S.anchor.set(h.__key,m,"text"),S.focus.set(x.__key,g,"text");for(let I of N.format)S.hasFormat(I)||S.formatText(I);S.anchor.set(S.focus.key,S.focus.offset,S.focus.type);for(let I of N.format)S.hasFormat(I)&&S.toggleFormat(I);Rt.$isRangeSelection(y)&&(S.format=y.format);break e}}}}}}}})}}})};var Ti=Pn,tE={},N0={},YZ={},QNe=Oe,zu=A,Gw=T;function VZ(t,e){return t.getEditorState().read(()=>{let n=zu.$getNodeByKey(e);return n===null?!1:n.isSelected()})}YZ.useLexicalNodeSelection=function(t){let[e]=QNe.useLexicalComposerContext(),[n,i]=Gw.useState(()=>VZ(e,t));Gw.useEffect(()=>{let s=!0,a=e.registerUpdateListener(()=>{s&&i(VZ(e,t))});return()=>{s=!1,a()}},[e,t]);let r=Gw.useCallback(s=>{e.update(()=>{let a=zu.$getSelection();zu.$isNodeSelection(a)||(a=zu.$createNodeSelection(),zu.$setSelection(a)),zu.$isNodeSelection(a)&&(s?a.add(t):a.delete(t))})},[e,t]),o=Gw.useCallback(()=>{e.update(()=>{const s=zu.$getSelection();zu.$isNodeSelection(s)&&s.clear()})},[e]);return[n,r,o]};var UNe=YZ,ZNe=Oe,qNe=UNe,YNe=ut,ps=A,Kw=T;let VNe=ps.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function XNe({nodeKey:t}){let[e]=ZNe.useLexicalComposerContext(),[n,i,r]=qNe.useLexicalNodeSelection(t),o=Kw.useCallback(s=>(n&&ps.$isNodeSelection(ps.$getSelection())&&(s.preventDefault(),s=ps.$getNodeByKey(t),XZ(s)&&s.remove()),!1),[n,t]);return Kw.useEffect(()=>YNe.mergeRegister(e.registerCommand(ps.CLICK_COMMAND,s=>{let a=e.getElementByKey(t);return s.target===a?(s.shiftKey||r(),i(!n),!0):!1},ps.COMMAND_PRIORITY_LOW),e.registerCommand(ps.KEY_DELETE_COMMAND,o,ps.COMMAND_PRIORITY_LOW),e.registerCommand(ps.KEY_BACKSPACE_COMMAND,o,ps.COMMAND_PRIORITY_LOW)),[r,e,n,t,o,i]),Kw.useEffect(()=>{let s=e.getElementByKey(t);s!==null&&(s.className=n?"selected":"")},[e,n,t]),null}let nE=class Lee extends ps.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Lee(e.__key)}static importJSON(){return iE()}static importDOM(){return{hr:()=>({conversion:GNe,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){return document.createElement("hr")}getTextContent(){return`
|
||
`}isInline(){return!1}updateDOM(){return!1}decorate(){return Kw.createElement(XNe,{nodeKey:this.__key})}};function GNe(){return{node:iE()}}function iE(){return ps.$applyNodeReplacement(new nE)}function XZ(t){return t instanceof nE}N0.$createHorizontalRuleNode=iE,N0.$isHorizontalRuleNode=XZ,N0.HorizontalRuleNode=nE,N0.INSERT_HORIZONTAL_RULE_COMMAND=VNe;var KNe=N0,GZ=Ti,JNe=Oe,rE=KNe,eAe=T;let KZ=[{dependencies:[rE.HorizontalRuleNode],export:t=>rE.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,i)=>{e=rE.$createHorizontalRuleNode(),i||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...GZ.TRANSFORMERS];tE.DEFAULT_TRANSFORMERS=KZ,tE.MarkdownShortcutPlugin=function({transformers:t=KZ}){let[e]=JNe.useLexicalComposerContext();return eAe.useEffect(()=>GZ.registerMarkdownShortcuts(e,t),[e,t]),null};var tAe=tE;const oE={dependencies:[Nh],export:t=>SNe(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,i)=>{const r=U5();i||t.getNextSibling()!=null?t.replace(r):t.insertBefore(r),r.selectNext()},type:"element"},JZ={dependencies:[By],export:t=>{if(!VCe(t))return null;const e=t.getTextContent();return"```"+(t.language||"")+(e?`
|
||
`+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const i=n[1],r=KC({language:i,_openInEditMode:!0}),o=t.replace(r),s=A.$createNodeSelection();s.add(o.getKey()),A.$setSelection(s)},type:"element"},nAe={dependencies:[Au],export:t=>{if(E9e(t)){const{src:e,alt:n}=t.dataset;return``}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=Sh({altText:"",src:""});t.replace(o)},type:"element"},iAe={format:["subscript"],tag:"~",type:"text-format"},rAe={format:["superscript"],tag:"^",type:"text-format"},eq=[Ti.HEADING,Ti.QUOTE,Ti.UNORDERED_LIST,Ti.ORDERED_LIST,oE,JZ,nAe],Jw=[iAe,rAe],tq=[...eq,...Ti.TEXT_FORMAT_TRANSFORMERS,...Jw,...Ti.TEXT_MATCH_TRANSFORMERS],sE=[...Ti.TEXT_FORMAT_TRANSFORMERS,...Jw,...Ti.TEXT_MATCH_TRANSFORMERS],nq=[Ti.UNORDERED_LIST,Ti.ORDERED_LIST,...Ti.TEXT_FORMAT_TRANSFORMERS,...Jw,...Ti.TEXT_MATCH_TRANSFORMERS],iq=[Ti.HEADING,Ti.QUOTE,Ti.UNORDERED_LIST,Ti.ORDERED_LIST,oE,...Ti.TEXT_FORMAT_TRANSFORMERS,...Jw,...Ti.TEXT_MATCH_TRANSFORMERS];function rq({transformers:t=tq}={}){return tAe.MarkdownShortcutPlugin({transformers:t})}function oAe(t,e,n,i=A.TextNode){const[r]=Oe.useLexicalComposerContext();T.useEffect(()=>ut.mergeRegister(...sAe(r,t,e,n,i)),[n,r,t,e,i])}function sAe(t,e,n,i,r){const o=h=>h instanceof n,s=h=>{const g=A.$createTextNode(h.getTextContent());g.setFormat(h.getFormat()),h.replace(g)},a=h=>h.getLatest().__mode,l=h=>{if(!h.isSimpleText())return;const g=h.getPreviousSibling();let m=h.getTextContent(),y=h,x;if(A.$isTextNode(g)){const _=g.getTextContent(),S=_+m,C=e(S);if(o(g))if(C===null||a(g)!==0){s(g);return}else{const E=C.end-_.length;if(E>0){const N=m.slice(0,E),M=_+N;if(g.select(),g.setTextContent(M),E===m.length)h.remove();else{const I=m.slice(E);h.setTextContent(I)}return}}else if(C===null||C.start<_.length)return}for(;;){x=e(m);let _=x===null?"":m.slice(x.end);if(m=_,_===""){const E=y==null?void 0:y.getNextSibling();if(A.$isTextNode(E)){_=y.getTextContent()+E.getTextContent();const N=e(_);if(N===null){o(E)?s(E):E.markDirty();return}else if(N.start!==0)return}}else{const E=e(_);if(E!==null&&E.start===0)return}if(x===null)return;if(x.start===0&&A.$isTextNode(g)&&g.isTextEntity())continue;let S;x.start===0?[S,y]=y.splitText(x.end):[,S,y]=y.splitText(x.start,x.end);const C=i(S);if(C.setFormat(S.getFormat()),S.replace(C),y===null)return}},u=h=>{const g=h.getTextContent(),m=e(g);if(m===null||m.start!==0){s(h);return}if(g.length>m.end){h.splitText(m.end);return}const y=h.getPreviousSibling();A.$isTextNode(y)&&y.isTextEntity()&&(s(y),s(h));const x=h.getNextSibling();A.$isTextNode(x)&&x.isTextEntity()&&(s(x),o(h)&&s(h))},f=t.registerNodeTransform(r,l),d=t.registerNodeTransform(n,u);return[f,d]}var aAe=DB,lAe=Ya,uAe="Expected a function";function cAe(t,e,n){var i=!0,r=!0;if(typeof t!="function")throw new TypeError(uAe);return lAe(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),aAe(t,e,{leading:i,maxWait:e,trailing:r})}var fAe=cAe;const oq=xo(fAe),sq=T.createContext({}),dAe=({children:t})=>{const e=T.useRef(new Map),[n,i]=T.useState({}),[r,o]=T.useState(0),s=T.useMemo(()=>oq(()=>{const h=e.current,g={};let m=0;h.forEach(y=>{y.forEach(({topLevelNodeKey:x},_)=>{m=m+1,g[x]===void 0?g[x]=[_]:g[x].push(_)})}),i(g),o(m)},5,{trailing:!0}),[]),a=T.useCallback((d,h,g)=>{const m=e.current;m.has(d)||m.set(d,new Map),m.get(d).set(g,{topLevelNodeKey:h}),s()},[s]),l=T.useCallback((d,h)=>{var m,y;const g=e.current;(m=g.get(d))==null||m.delete(h),((y=g.get(d))==null?void 0:y.size)===0&&g.delete(d),s()},[s]),u=T.useCallback(d=>{e.current.delete(d),s()},[s]),f=T.useMemo(()=>({tkNodeMap:n,tkCount:r,addEditorTkNode:a,removeEditorTkNode:l,removeEditor:u}),[n,r,a,l,u]);return k.jsx(sq.Provider,{value:f,children:t})},aq=()=>T.useContext(sq),lq=new RegExp(/(^|.)([^\p{L}\p{N}\s]*(TK|Tk|tk)+[^\p{L}\p{N}\s]*)(.)?/u),uq=new RegExp(new RegExp("\\p{L}|\\p{N}","u"));function hAe({editor:t,rootElement:e,parentKey:n,nodeKeys:i}){var y,x;const r=((y=t._config.theme.tk)==null?void 0:y.split(" "))||[],o=((x=t._config.theme.tkHighlighted)==null?void 0:x.split(" "))||[],s=t.getElementByKey(n),a=T.useCallback(()=>{let _=0,S=-56;const C=e.getBoundingClientRect(),N=(s.querySelector("[data-kg-card]")||s).getBoundingClientRect();return _=N.top-C.top+4,N.right>C.right&&(S=S-(N.right-C.right)),{top:_,right:S}},[e,s]),[l,u]=T.useState(a()),f=_=>{_.preventDefault(),_.stopPropagation(),t.update(()=>{if(A.$isDecoratorNode(A.$getNodeByKey(n))){t.dispatchCommand(Nu,{cardKey:n});return}let S=i[0];const C=A.$getSelection();if(A.$isRangeSelection(C)&&iD(C.getNodes()[0])){const N=i.indexOf(C.getNodes()[0].getKey());N===i.length-1?S=i[0]:S=i[N+1]}const E=A.$getNodeByKey(S);E.select(0,E.getTextContentSize())})},d=_=>{let S;t.getEditorState().read(()=>{A.$isDecoratorNode(A.$getNodeByKey(n))&&(S=!0)}),!S&&i.forEach(C=>{_?(t.getElementByKey(C).classList.remove(...r),t.getElementByKey(C).classList.add(...o)):(t.getElementByKey(C).classList.add(...r),t.getElementByKey(C).classList.remove(...o))})},h=_=>{d(!0)},g=_=>{d(!1)};T.useEffect(()=>{const _=new ResizeObserver(()=>u(a()));return _.observe(e),_.observe(s),()=>{_.disconnect()}},[e,s,a]);const m={top:`${l.top}px`,right:`${l.right}px`};return k.jsx("div",{className:"absolute cursor-pointer p-1 text-2xs font-medium text-grey-600","data-testid":"tk-indicator",style:m,onClick:f,onMouseEnter:h,onMouseLeave:g,children:"TK"})}function pAe(){var h;const[t]=Oe.useLexicalComposerContext(),{tkNodeMap:e,addEditorTkNode:n,removeEditorTkNode:i,removeEditor:r}=aq(),{nodeKey:o}=T.useContext(rn);T.useEffect(()=>{if(!t.hasNodes([ts]))throw new Error("TKPlugin: TKNode not registered on editor");return()=>{r(t.getKey())}},[t,r]),T.useEffect(()=>t.registerMutationListener(ts,g=>{t.getEditorState().read(()=>{var m;for(let[y,x]of g)if(x==="destroyed")i(t.getKey(),y);else{const _=(m=A.$getNodeByKey(y).getTopLevelElement())==null?void 0:m.getKey(),S=o||_;n(t.getKey(),S,y)}})}),[t,n,i,o]);const s=T.useCallback(g=>hS(g.getTextContent()),[]),a=T.useCallback(g=>{let m=lq.exec(g);if(m===null)return null;function y(E){return!(E[1]&&E[1].trim()&&uq.test(E[1])&&E[2].slice(0,1)!=="—"||E[4]&&E[4].trim()&&uq.test(E[4])&&E[2].slice(-1)!=="—")}let x="";for(;m!==null&&!y(m);)x+=g.slice(0,m.index+m[0].length-1),g=g.slice(m.index+m[0].length-1),m=lq.exec(g);if(m===null)return null;const S=x.length+m.index+m[1].length;return{end:S+m[2].length,start:S}},[]),l=t.hasNode(Ns)?Ns:A.TextNode;if(oAe(a,ts,s,l),o)return null;const u=t.getRootElement(),f=(h=t.getRootElement())==null?void 0:h.parentElement;if(!f)return null;const d=Object.entries(e).map(([g,m])=>t.getElementByKey(g)?k.jsx(hAe,{editor:t,nodeKeys:m,parentKey:g,rootElement:u},g):!1).filter(Boolean);return Xs.createPortal(d,f)}var cq={},gAe=Oe,A0=T;function aE(){return aE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e],i;for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},aE.apply(this,arguments)}var mAe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?A0.useLayoutEffect:A0.useEffect;cq.ContentEditable=function({ariaActiveDescendant:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:i,ariaExpanded:r,ariaLabel:o,ariaLabelledBy:s,ariaMultiline:a,ariaOwns:l,ariaRequired:u,autoCapitalize:f,className:d,id:h,role:g="textbox",spellCheck:m=!0,style:y,tabIndex:x,"data-testid":_,...S}){let[C]=gAe.useLexicalComposerContext(),[E,N]=A0.useState(!1),M=A0.useCallback(I=>{C.setRootElement(I)},[C]);return mAe(()=>(N(C.isEditable()),C.registerEditableListener(I=>{N(I)})),[C]),A0.createElement("div",aE({},S,{"aria-activedescendant":E?t:void 0,"aria-autocomplete":E?e:"none","aria-controls":E?n:void 0,"aria-describedby":i,"aria-expanded":E&&g==="combobox"?!!r:void 0,"aria-label":o,"aria-labelledby":s,"aria-multiline":a,"aria-owns":E?l:void 0,"aria-readonly":E?void 0:!0,"aria-required":u,autoCapitalize:f,className:d,contentEditable:E,"data-testid":_,id:h,ref:M,role:g,spellCheck:m,style:y,tabIndex:x}))};var vAe=cq;function bAe({className:t,text:e}){return k.jsx("div",{className:`pointer-events-none absolute left-0 top-0 min-w-full cursor-text font-serif text-xl text-grey-500 dark:text-grey-800 ${t}`,children:typeof e=="string"?e:"Begin writing your post..."})}const fq=({registerAPI:t})=>{const[e]=Oe.useLexicalComposerContext();T.useEffect(()=>t?(t({editorInstance:e,serialize(){return JSON.stringify(e.getEditorState())},editorIsEmpty(){let i;return e.update(()=>{i=cs.$canShowPlaceholder(!1,!0)}),i},focusEditor({position:i="bottom"}={}){const r={defaultSelection:i==="top"?"rootStart":null};e.focus(()=>{},r),i==="top"&&e.update(()=>{const s=A.$getRoot().getFirstChild();A.$isDecoratorNode(s)&&(or(s),e.getRootElement().focus())}),i==="bottom"&&e.update(()=>{const s=A.$getRoot().getLastChild();A.$isDecoratorNode(s)?(or(s),e.getRootElement().focus()):s.select()})},blurEditor(){e.blur()},insertParagraphAtTop({focus:i=!0}={}){e.update(()=>{const r=A.$createParagraphNode(),[o]=A.$getRoot().getChildren();o.insertBefore(r),i&&r.selectStart()})},insertParagraphAtBottom({focus:i=!0}={}){e.update(()=>{const r=A.$createParagraphNode();A.$getRoot().append(r),i&&r.selectStart()})},insertFiles(i){e.dispatchCommand(Kt.DRAG_DROP_PASTE,i)},lastNodeIsDecorator(){let i=!1;return e.getEditorState().read(()=>{const r=A.$getRoot().getChildren(),o=r[r.length-1];i=o&&A.$isDecoratorNode(o)}),i}}),()=>{t==null||t(null)}):void 0,[e,t])};var lE={},uE={},kAe=ut,dn=A;function yAe(t,e,n,i,r){if(t===null||n.size===0&&i.size===0&&!r)return 0;var o=e._selection,s=t._selection;if(r)return 1;if(!(dn.$isRangeSelection(o)&&dn.$isRangeSelection(s)&&s.isCollapsed()&&o.isCollapsed()))return 0;r=e._nodeMap;let a=[];for(let l of n)n=r.get(l),n!==void 0&&a.push(n);for(let[l,u]of i)u&&(i=r.get(l),i===void 0||dn.$isRootNode(i)||a.push(i));return a.length===0?0:1<a.length?(i=e._nodeMap,e=i.get(o.anchor.key),s=i.get(s.anchor.key),e&&s&&!t._nodeMap.has(e.__key)&&dn.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=a[0],t=t._nodeMap.get(e.__key),!dn.$isTextNode(t)||!dn.$isTextNode(e)||t.__mode!==e.__mode||(t=t.__text,e=e.__text,t===e)||(o=o.anchor,s=s.anchor,o.key!==s.key||o.type!=="text")?0:(o=o.offset,s=s.offset,t=e.length-t.length,t===1&&s===o-1?2:t===-1&&s===o+1?3:t===-1&&s===o?4:0))}function wAe(t,e){let n=Date.now(),i=0;return(r,o,s,a,l,u)=>{let f=Date.now();if(u.has("historic"))return i=0,n=f,2;let d=yAe(r,o,a,l,t.isComposing()),h=(()=>{var g=s===null||s.editor===t,m=u.has("history-push");if(!m&&g&&u.has("history-merge"))return 0;if(r===null)return 1;var y=o._selection;if(!(0<a.size||0<l.size))return y!==null?0:2;if(m===!1&&d!==0&&d===i&&f<n+e&&g)return 0;if(a.size===1){{m=Array.from(a)[0],g=r._nodeMap.get(m),m=o._nodeMap.get(m),y=r._selection;let x=o._selection,_=!1;dn.$isRangeSelection(y)&&dn.$isRangeSelection(x)&&(_=y.anchor.type==="element"&&y.focus.type==="element"&&x.anchor.type==="text"&&x.focus.type==="text"),g=!_&&dn.$isTextNode(g)&&dn.$isTextNode(m)?g.__type===m.__type&&g.__text===m.__text&&g.__mode===m.__mode&&g.__detail===m.__detail&&g.__style===m.__style&&g.__format===m.__format&&g.__parent===m.__parent:!1}if(g)return 0}return 1})();return n=f,i=d,h}}uE.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},uE.registerHistory=function(t,e,n){let i=wAe(t,n);n=({editorState:s,prevEditorState:a,dirtyLeaves:l,dirtyElements:u,tags:f})=>{const d=e.current,h=e.redoStack,g=e.undoStack,m=d===null?null:d.editorState;if(d===null||s!==m){if(a=i(a,s,d,l,u,f),a===1)h.length!==0&&(e.redoStack=[],t.dispatchCommand(dn.CAN_REDO_COMMAND,!1)),d!==null&&(g.push({...d}),t.dispatchCommand(dn.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:s}}};let r=kAe.mergeRegister(t.registerCommand(dn.UNDO_COMMAND,()=>{let s=e.redoStack,a=e.undoStack;if(a.length!==0){let l=e.current,u=a.pop();l!==null&&(s.push(l),t.dispatchCommand(dn.CAN_REDO_COMMAND,!0)),a.length===0&&t.dispatchCommand(dn.CAN_UNDO_COMMAND,!1),e.current=u||null,u&&u.editor.setEditorState(u.editorState,{tag:"historic"})}return!0},dn.COMMAND_PRIORITY_EDITOR),t.registerCommand(dn.REDO_COMMAND,()=>{let s=e.redoStack;var a=e.undoStack;if(s.length!==0){let l=e.current;l!==null&&(a.push(l),t.dispatchCommand(dn.CAN_UNDO_COMMAND,!0)),a=s.pop(),s.length===0&&t.dispatchCommand(dn.CAN_REDO_COMMAND,!1),e.current=a||null,a&&a.editor.setEditorState(a.editorState,{tag:"historic"})}return!0},dn.COMMAND_PRIORITY_EDITOR),t.registerCommand(dn.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),dn.COMMAND_PRIORITY_EDITOR),t.registerCommand(dn.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(dn.CAN_REDO_COMMAND,!1),t.dispatchCommand(dn.CAN_UNDO_COMMAND,!1),!0),dn.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{r(),o()}};var xAe=uE,_Ae=Oe,cE=xAe,dq=T;function OAe(t,e,n=1e3){let i=dq.useMemo(()=>e||cE.createEmptyHistoryState(),[e]);dq.useEffect(()=>cE.registerHistory(t,i,n),[n,t,i])}lE.createEmptyHistoryState=cE.createEmptyHistoryState,lE.HistoryPlugin=function({externalHistoryState:t}){let[e]=_Ae.useLexicalComposerContext();return OAe(e,t),null};var hq=lE;const SAe=({onBlur:t})=>{const[e]=Oe.useLexicalComposerContext();return T.useEffect(()=>{e.registerCommand(A.BLUR_COMMAND,()=>{t==null||t()},A.COMMAND_PRIORITY_EDITOR)},[e,t]),null},CAe=({onFocus:t})=>{const[e]=Oe.useLexicalComposerContext();return T.useEffect(()=>{e.registerCommand(A.FOCUS_COMMAND,()=>{t==null||t()},A.COMMAND_PRIORITY_EDITOR)},[e,t]),null};var pq={},Rh=ki,EAe=Oe,TAe=ut,jh=A,$Ae=T;pq.LinkPlugin=function({validateUrl:t}){let[e]=EAe.useLexicalComposerContext();return $Ae.useEffect(()=>{if(!e.hasNodes([Rh.LinkNode]))throw Error("LinkPlugin: LinkNode not registered on editor");return TAe.mergeRegister(e.registerCommand(Rh.TOGGLE_LINK_COMMAND,n=>{if(n===null)return Rh.toggleLink(n),!0;if(typeof n=="string")return t===void 0||t(n)?(Rh.toggleLink(n),!0):!1;let{url:i,target:r,rel:o,title:s}=n;return Rh.toggleLink(i,{rel:o,target:r,title:s}),!0},jh.COMMAND_PRIORITY_LOW),t!==void 0?e.registerCommand(jh.PASTE_COMMAND,n=>{let i=jh.$getSelection();if(!jh.$isRangeSelection(i)||i.isCollapsed()||!(n instanceof ClipboardEvent)||n.clipboardData==null)return!1;let r=n.clipboardData.getData("text");return t(r)?i.getNodes().some(o=>jh.$isElementNode(o))?!1:(e.dispatchCommand(Rh.TOGGLE_LINK_COMMAND,r),n.preventDefault(),!0):!1},jh.COMMAND_PRIORITY_LOW):()=>{})},[e,t]),null};var MAe=pq,gq={},NAe=Oe,mq=T,AAe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?mq.useLayoutEffect:mq.useEffect;gq.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[i]=NAe.useLexicalComposerContext();return AAe(()=>{if(n)return i.registerUpdateListener(({editorState:r,dirtyElements:o,dirtyLeaves:s,prevEditorState:a,tags:l})=>{e&&o.size===0&&s.size===0||t&&l.has("history-merge")||a.isEmpty()||n(r,i,l)})},[i,t,e,n]),null};var vq=gq,bq={},PAe=Oe,P0=T,DAe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?P0.useLayoutEffect:P0.useEffect;function IAe(t){let[e]=PAe.useLexicalComposerContext(),n=P0.useMemo(()=>t(e),[e,t]),i=P0.useRef(n.initialValueFn()),[r,o]=P0.useState(i.current);return DAe(()=>{let{initialValueFn:s,subscribe:a}=n,l=s();return i.current!==l&&(i.current=l,o(l)),a(u=>{i.current=u,o(u)})},[n,t]),r}function LAe(t){return{initialValueFn:()=>t.isEditable(),subscribe:e=>t.registerEditableListener(e)}}var RAe=function(){return IAe(LAe)},jAe=RAe,kq={},ex=A;kq.registerDragonSupport=function(t){let e=window.location.origin,n=i=>{if(i.origin===e){var r=t.getRootElement();if(document.activeElement===r&&(r=i.data,typeof r=="string")){try{var o=JSON.parse(r)}catch{return}if(o&&o.protocol==="nuanria_messaging"&&o.type==="request"&&(o=o.payload)&&o.functionId==="makeChanges"&&(o=o.args)){const[s,a,l,u,f]=o;t.update(()=>{const d=ex.$getSelection();if(ex.$isRangeSelection(d)){var h=d.anchor;let g=h.getNode(),m=0,y=0;ex.$isTextNode(g)&&0<=s&&0<=a&&(m=s,y=s+a,d.setTextNodeRange(g,m,g,y)),(m!==y||l!=="")&&(d.insertRawText(l),g=h.getNode()),ex.$isTextNode(g)&&(m=u,y=u+f,h=g.getTextContentSize(),m=m>h?h:m,y=y>h?h:y,d.setTextNodeRange(g,m,g,y)),i.stopImmediatePropagation()}})}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}};var FAe=kq,yq=Oe,zAe=jAe,gs=T,BAe=cs,wq=ut,xq=Xs,WAe=FAe,HAe=Kt,fE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?gs.useLayoutEffect:gs.useEffect;function _q(t){return t.getEditorState().read(BAe.$canShowPlaceholderCurry(t.isComposing()))}function QAe(t){let[e,n]=gs.useState(()=>_q(t));return fE(()=>{function i(){let r=_q(t);n(r)}return i(),wq.mergeRegister(t.registerUpdateListener(()=>{i()}),t.registerEditableListener(()=>{i()}))},[t]),e}function UAe(t,e){let[n,i]=gs.useState(()=>t.getDecorators());return fE(()=>t.registerDecoratorListener(r=>{xq.flushSync(()=>{i(r)})}),[t]),gs.useEffect(()=>{i(t.getDecorators())},[t]),gs.useMemo(()=>{let r=[],o=Object.keys(n);for(let s=0;s<o.length;s++){let a=o[s],l=gs.createElement(e,{onError:f=>t._onError(f)},gs.createElement(gs.Suspense,{fallback:null},n[a])),u=t.getElementByKey(a);u!==null&&r.push(xq.createPortal(l,u,a))}return r},[e,n,t])}function ZAe(t){fE(()=>wq.mergeRegister(HAe.registerRichText(t),WAe.registerDragonSupport(t)),[t])}function qAe({content:t}){var[e]=yq.useLexicalComposerContext();e=QAe(e);let n=zAe();return e?typeof t=="function"?t(n):t:null}bq.RichTextPlugin=function({contentEditable:t,placeholder:e,ErrorBoundary:n}){let[i]=yq.useLexicalComposerContext();return n=UAe(i,n),ZAe(i),gs.createElement(gs.Fragment,null,t,gs.createElement(qAe,{content:e}),n)};var YAe=bq,dE={},Oq=T;let Sq=[["Cat","rgb(125, 50, 0)"],["Dog","rgb(100, 0, 0)"],["Rabbit","rgb(150, 0, 0)"],["Frog","rgb(200, 0, 0)"],["Fox","rgb(200, 75, 0)"],["Hedgehog","rgb(0, 75, 0)"],["Pigeon","rgb(0, 125, 0)"],["Squirrel","rgb(75, 100, 0)"],["Bear","rgb(125, 100, 0)"],["Tiger","rgb(0, 0, 150)"],["Leopard","rgb(0, 0, 200)"],["Zebra","rgb(0, 0, 250)"],["Wolf","rgb(0, 100, 150)"],["Owl","rgb(0, 100, 100)"],["Gull","rgb(100, 0, 100)"],["Squid","rgb(150, 0, 150)"]],Cq=Sq[Math.floor(Math.random()*Sq.length)],Eq=Oq.createContext({clientID:0,color:Cq[1],isCollabActive:!1,name:Cq[0],yjsDocMap:new Map});dE.CollaborationContext=Eq,dE.useCollaborationContext=function(t,e){let n=Oq.useContext(Eq);return t!=null&&(n.name=t),e!=null&&(n.color=e),n};var tx=dE;const Tq=T.createContext({}),VAe=({children:t})=>{const e=T.useMemo(()=>({historyState:hq.createEmptyHistoryState()}),[]);return k.jsx(Tq.Provider,{value:e,children:t})},XAe=()=>T.useContext(Tq),$q=T.createContext({}),GAe=({onChange:t,children:e})=>{const n=T.useMemo(()=>({onChange:t}),[t]);return k.jsx($q.Provider,{value:n,children:e})},KAe=()=>T.useContext($q),D0=({onChange:t,onBlur:e,onFocus:n,markdownTransformers:i,registerAPI:r,cursorDidExitAtTop:o,children:s,placeholder:a,singleParagraph:l,placeholderText:u,placeholderClassName:f="",className:d="",readOnly:h=!1,isDragEnabled:g=!0,inheritStyles:m=!1,isSnippetsEnabled:y=!0,hiddenFormats:x=[],useDefaultClasses:_=!0,dataTestId:S})=>{const{historyState:C}=XAe(),[E]=Oe.useLexicalComposerContext(),{isCollabActive:N}=tx.useCollaborationContext(),{editorContainerRef:M,darkMode:I,isTKEnabled:W}=T.useContext(ft),B=!!E._parentEditor,Z=g&&!h&&!B,{onChange:R}=KAe(),Q=T.useCallback(Y=>{if(R){const te=(E._parentEditor||E).getEditorState().toJSON();R(te)}if(t){const K=Y.toJSON();t(K)}},[t,R,E]),V=Y=>{B||(M.current=Y)},[H,j]=T.useState(null),q=Y=>{Y!==null&&j(Y)};return k.jsxs("div",{ref:V,className:`${_?"koenig-lexical":""} ${m?"kg-inherit-styles":""} ${I?"dark":""} ${d}`,"data-koenig-dnd-disabled":!g,"data-testid":S,children:[k.jsx(YAe.RichTextPlugin,{contentEditable:k.jsx("div",{ref:q,"data-kg":"editor",children:k.jsx(vAe.ContentEditable,{className:_?"kg-prose":"",readOnly:h})}),ErrorBoundary:_Ne,placeholder:a||k.jsx(bAe,{className:f,text:u})}),k.jsx(MAe.LinkPlugin,{}),k.jsx(vq.OnChangePlugin,{ignoreHistoryMergeTagChange:!1,ignoreSelectionChange:!0,onChange:Q}),!N&&k.jsx(hq.HistoryPlugin,{externalHistoryState:C})," ",k.jsx(sH,{containerElem:M,cursorDidExitAtTop:o,isNested:B}),k.jsx(rq,{transformers:i}),H&&k.jsx(JU,{anchorElem:H,hiddenFormats:x,isSnippetsEnabled:y}),k.jsx(lH,{}),r?k.jsx(fq,{registerAPI:r}):null,Z&&k.jsx(YU,{containerElem:M}),l&&k.jsx(O1,{paragraphs:1}),e&&k.jsx(SAe,{onBlur:e}),n&&k.jsx(CAe,{onFocus:n}),k.jsx(IEe,{}),W&&k.jsx(pAe,{}),s]})},JAe=t=>J.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",...t},J.createElement("path",{d:"M6 16.079a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0Zm7.5-1.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0Z"}),J.createElement("path",{d:"M16.5 14.579V9a1.5 1.5 0 0 0-1.864-1.455l-4.5.75A1.5 1.5 0 0 0 9 9.75v6.329"}),J.createElement("path",{d:"M22.5 21.75a1.5 1.5 0 0 1-1.5 1.5H3a1.5 1.5 0 0 1-1.5-1.5V2.25A1.5 1.5 0 0 1 3 .75h15a1.5 1.5 0 0 1 1.047.426l3 2.883a1.5 1.5 0 0 1 .453 1.074Z"}));function ePe({onFileChange:t,fileInputRef:e,mimeTypes:n=["audio/*"]}){return k.jsx("form",{onChange:t,children:k.jsx("input",{ref:e,accept:n.join(","),hidden:!0,name:"audio-input",type:"file"})})}const Mq=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{d:"M23.14 10.608 2.253.164A1.559 1.559 0 0 0 0 1.557v20.887a1.558 1.558 0 0 0 2.253 1.392L23.14 13.393a1.557 1.557 0 0 0 0-2.785Z"})),tPe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{d:"M15.189 2.021a9.728 9.728 0 0 0-7.924 4.85.249.249 0 0 1-.221.133H5.25a3 3 0 0 0-3 3v2a3 3 0 0 0 3 3h1.794a.249.249 0 0 1 .221.133 9.73 9.73 0 0 0 7.924 4.85h.06a1 1 0 0 0 1-1V3.02a1 1 0 0 0-1.06-.998Z"}));function hE({type:t,duration:e,theme:n,...i}){return k.jsxs("div",{className:"mt-auto flex w-full items-center py-2",...i,children:[k.jsx(Mq,{className:`mr-2 size-[1.4rem] ${n==="light"?"fill-white":"fill-black dark:fill-white"}`}),k.jsxs("div",{className:`mb-[1px] font-sans text-sm font-medium ${n==="light"?"text-white/60":"text-black/50 dark:text-white/50"} `,children:[k.jsx("span",{className:`${n==="light"?"text-white":"text-black dark:text-white"}`,children:"0:00 "}),"/ ",k.jsx("span",{"data-testid":"media-duration",children:e})]}),k.jsx("div",{className:`relative mx-2 h-1 grow rounded ${n==="light"?"bg-white/40":"bg-grey/30 dark:bg-white/40"}`,children:k.jsx("button",{className:"absolute left-0 top-[-6px] size-4 rounded-full border border-grey/50 bg-white shadow",type:"button"})}),k.jsx("button",{className:`mb-[1px] mr-4 px-1 font-sans text-sm font-medium ${n==="light"?"text-white":"text-current"}`,type:"button",children:"1×"}),k.jsx("button",{type:"button",children:k.jsx(tPe,{className:`${n==="light"?"fill-white":"fill-black dark:fill-black"}`})}),k.jsxs("div",{className:`relative ml-1 h-1 w-[80px] rounded ${n==="light"?"bg-white/40":"bg-grey/30 dark:bg-white/40"}`,children:[k.jsx("div",{className:`absolute left-0 h-1 w-[60%] rounded ${n==="light"?"bg-white":"bg-black dark:bg-white"}`}),k.jsx("button",{className:"absolute left-[55%] top-[-6px] size-4 rounded-full border border-grey/50 bg-white shadow",type:"button"})]})]})}hE.propTypes={theme:P.oneOf(["light","dark"])};function ms(){return k.jsx("div",{className:"absolute top-0 z-10 !m-0 size-full cursor-default p-0"})}function Nq({progress:t}){const e={width:`${t==null?void 0:t.toFixed(0)}%`};return k.jsx("div",{className:"h-full border border-transparent",children:k.jsx("div",{className:"relative flex h-full items-center justify-center border border-grey/20 bg-grey-50 before:pb-[12.5%]",children:k.jsx("div",{className:"flex w-full items-center justify-center overflow-hidden",children:k.jsx(js,{style:e})})})})}function Aq({audioUploader:t,audioMimeTypes:e,onFileChange:n,setFileInputRef:i,audioDragHandler:r={}}){const{isLoading:o,progress:s,errors:a}=t,l=T.useRef(null),u=f=>{l.current=f,i(l)};return o?k.jsx(Nq,{progress:s}):k.jsxs(k.Fragment,{children:[k.jsx(Mu,{desc:"Click to upload an audio file",errorDataTestId:"audio-upload-errors",errors:a,filePicker:()=>Wi({fileInputRef:l}),icon:"audio",isDraggedOver:r.isDraggedOver,placeholderRef:r.setRef,size:"xsmall"}),k.jsx(ePe,{fileInputRef:u,filePicker:()=>Wi({fileInputRef:l}),mimeTypes:e,onFileChange:n})]})}function Pq({mimeTypes:t,src:e,progress:n,isUploading:i,isEditing:r,setFileInputRef:o,onFileChange:s,removeThumbnail:a,isDraggedOver:l,errors:u}){const f=T.useRef(null),d=g=>{f.current=g,o(f)},h={width:`${n==null?void 0:n.toFixed(0)}%`};return l?k.jsx("div",{className:"group relative flex aspect-square h-20 items-center justify-center rounded-md bg-purple","data-testid":"audio-thumbnail-dragover",children:k.jsx("p",{className:"font-sans text-sm font-semibold text-white",children:"Drop it 🔥"})}):u&&u.length>0?k.jsx("span",{className:"group relative flex aspect-square h-20 items-center justify-center rounded-md bg-grey-200 px-1 text-center font-sans text-2xs font-semibold leading-snug text-red","data-testid":"thumbnail-errors",children:u[0].message}):e?k.jsxs("div",{className:"group/image relative flex aspect-square h-20 items-center justify-center rounded-md bg-purple",children:[k.jsx("img",{alt:"Audio thumbnail",className:"size-full rounded-md object-cover transition ease-in","data-testid":"audio-thumbnail",src:e}),r&&k.jsx("div",{className:"absolute right-2 top-2 flex opacity-0 transition-all group-hover/image:opacity-100",children:k.jsx(pl,{dataTestId:"remove-thumbnail",Icon:Kc,label:"Delete",onClick:a})})]}):i?k.jsx("div",{className:"group flex aspect-square h-20 items-center justify-center rounded-md bg-purple",children:k.jsx(js,{bgStyle:"transparent",style:h})}):k.jsxs("div",{className:"group flex aspect-square h-20 items-center justify-center rounded-md bg-purple",children:[k.jsx("button",{className:"flex size-20 cursor-pointer items-center justify-center","data-testid":"upload-thumbnail",type:"button",onClick:()=>Wi({fileInputRef:f}),children:r&&k.jsx(FW,{className:"ease-inx size-6 text-white transition-all duration-75 group-hover:scale-105"})||k.jsx(JAe,{className:"size-6 text-white"})}),k.jsx(ew,{disabled:!r,fileInputRef:d,filePicker:()=>Wi({fileInputRef:f}),mimeTypes:t,onFileChange:s})]})}function Dq({isEditing:t,title:e,placeholder:n,thumbnailUploader:i,thumbnailMimeTypes:r,duration:o,updateTitle:s,thumbnailSrc:a,setFileInputRef:l,onFileChange:u,removeThumbnail:f,thumbnailDragHandler:d={}}){const{isLoading:h,progress:g,errors:m}=i,y=_=>{const S=Math.floor(_/60),C=Math.floor(_-S*60),E=C<10?`0${C}`:`${C}`;return`${S}:${E}`},x=_=>{s(_.target.value)};return k.jsxs(k.Fragment,{children:[k.jsxs("div",{ref:d.setRef,className:"flex rounded-md border border-grey/30 p-2","data-testid":"audio-card-populated",children:[k.jsx(Pq,{errors:m,isDraggedOver:d.isDraggedOver,isEditing:t,isUploading:h,mimeTypes:r,progress:g,removeThumbnail:f,setFileInputRef:l,src:a,onFileChange:u}),k.jsxs("div",{className:"flex h-20 w-full flex-col justify-between px-4",children:[(t||e)&&k.jsx(My,{className:"bg-transparent font-sans text-lg font-bold text-current","data-testid":"audio-title",name:"title",placeholder:n,readOnly:!t,value:e,onChange:x}),k.jsx(hE,{duration:y(o),theme:"dark"})]})]}),!t&&k.jsx(ms,{})]})}function Iq({src:t,thumbnailSrc:e,title:n,isEditing:i,updateTitle:r,duration:o,audioUploader:s,audioMimeTypes:a,thumbnailUploader:l,thumbnailMimeTypes:u,audioFileInputRef:f,thumbnailFileInputRef:d,onAudioFileChange:h,onThumbnailFileChange:g,audioDragHandler:m,removeThumbnail:y,thumbnailDragHandler:x}){const _=C=>{f&&(f.current=C.current)},S=C=>{d&&(d.current=C.current)};return t?k.jsx("div",{className:"not-kg-prose",children:k.jsx(Dq,{duration:o,isEditing:i,placeholder:"Add a title...",removeThumbnail:y,setFileInputRef:S,setTitle:r,thumbnailDragHandler:x,thumbnailMimeTypes:u,thumbnailSrc:e,thumbnailUploader:l,title:n,updateTitle:r,onFileChange:g})}):k.jsx("div",{className:"not-kg-prose",children:k.jsx(Aq,{audioDragHandler:m,audioMimeTypes:a,audioUploader:s,setFileInputRef:_,onFileChange:h})})}Iq.propTypes={src:P.string,title:P.string,isEditing:P.bool,updateTitle:P.func,duration:P.number,thumbnailSrc:P.string,audioUploader:P.object,audioMimeTypes:P.array,thumbnailUploader:P.object,thumbnailMimeTypes:P.array,audioFileInputRef:P.object,thumbnailFileInputRef:P.object,onAudioFileChange:P.func,onThumbnailFileChange:P.func,audioDragHandler:P.object,removeThumbnail:P.func,thumbnailDragHandler:P.object},Nq.propTypes={progress:P.number},Pq.propTypes={errors:P.array,isDraggedOver:P.bool,isEditing:P.bool,isUploading:P.bool,mimeTypes:P.array,progress:P.number,removeThumbnail:P.func,setFileInputRef:P.func,src:P.string,onFileChange:P.func},Dq.propTypes={duration:P.number,errors:P.array,isEditing:P.bool,placeholder:P.string,removeThumbnail:P.func,setFileInputRef:P.func,thumbnailDragHandler:P.object,thumbnailMimeTypes:P.array,thumbnailSrc:P.string,thumbnailUploader:P.object,title:P.string,updateTitle:P.func,onFileChange:P.func},Aq.propTypes={audioDragHandler:P.object,audioMimeTypes:P.array,audioUploader:P.object,setFileInputRef:P.func,onFileChange:P.func};function nPe(t){if(!t||typeof t!="string")return"";let e=t.split(".").slice(0,-1).join(".").replace(/[-_]/g," ").replace(/[^\w\s]+/g,"").replace(/\s\s+/g," ");return e.charAt(0).toUpperCase()+e.slice(1)}async function iPe(t){let e=new Audio,n;return new Promise(i=>{e.onloadedmetadata=function(){n=e.duration,i({duration:n})},e.src=t})}const pE=async(t,e,n,i)=>{if(!t)return;const r=await i(t),o=r==null?void 0:r[0].url;if(!o)return;const s=t[0].name,a=nPe(s),l=URL.createObjectURL(t[0]),u=t[0].type,{duration:f}=await iPe(l);await n.update(()=>{const d=A.$getNodeByKey(e);d.duration=f,d.src=o,d.mimeType=u,d.title=a})},Lq=async(t,e,n,i)=>{if(!t)return;let r="";n.getEditorState().read(()=>{r=A.$getNodeByKey(e).src});const o=await i(t,{formData:{url:r}});await n.update(()=>{const s=A.$getNodeByKey(e);s.thumbnailSrc=o[0].url})};function rPe({duration:t,initialFile:e,nodeKey:n,src:i,thumbnailSrc:r,title:o,triggerFileDialog:s}){var V,H;const[a]=Oe.useLexicalComposerContext(),{fileUploader:l,cardConfig:u}=T.useContext(ft),{isSelected:f,isEditing:d,setEditing:h}=T.useContext(rn),g=T.useRef(),m=T.useRef(),y=T.useContext(rn),[x,_]=T.useState(!1),S=l.useFileUpload("audio"),C=l.useFileUpload("mediaThumbnail"),E=zs({handleDrop:Z}),N=zs({handleDrop:R,disabled:!d});T.useEffect(()=>{(async q=>{q&&!i&&!S.isLoading&&await pE([q],n,a,S.upload)})(e)},[]);const M=async j=>{const q=j.target.files;return await pE(q,n,a,S.upload)},I=async j=>{const q=j.target.files;return await Lq(q,n,a,C.upload)},W=j=>{a.update(()=>{const q=A.$getNodeByKey(n);q.title=j})},B=()=>{a.update(()=>{const j=A.$getNodeByKey(n);j.thumbnailSrc=""})};async function Z(j){await pE(j,n,a,S.upload)}async function R(j){await Lq(j,n,a,C.upload)}const Q=j=>{j.preventDefault(),j.stopPropagation(),h(!0)};return T.useEffect(()=>{if(!s)return;const j=setTimeout(()=>{Wi({fileInputRef:g}),a.update(()=>{const q=A.$getNodeByKey(n);q.triggerFileDialog=!1})});return()=>{clearTimeout(j)}}),k.jsxs(k.Fragment,{children:[k.jsx(Iq,{audioDragHandler:E,audioFileInputRef:g,audioMimeTypes:(V=l.fileTypes.audio)==null?void 0:V.mimeTypes,audioUploader:S,duration:t,isEditing:y.isEditing,nodeKey:n,removeThumbnail:B,src:i,thumbnailDragHandler:N,thumbnailFileInputRef:m,thumbnailMimeTypes:(H=l.fileTypes.image)==null?void 0:H.mimeTypes,thumbnailSrc:r,thumbnailUploader:C,title:o,updateTitle:W,onAudioFileChange:M,onThumbnailFileChange:I}),k.jsx(xt,{"data-kg-card-toolbar":"audio",isVisible:x,children:k.jsx(Kn,{onClose:()=>_(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"audio",isVisible:i&&f&&!d&&!x,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:Q}),k.jsx(Bn,{hide:!u.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!u.createSnippet,icon:"snippet",isActive:!1,label:"Snippet",onClick:()=>_(!0)})]})})]})}const gE=A.createCommand();class I0 extends zg{constructor(n={},i){super(n,i);ye(this,"__triggerFileDialog",!1);ye(this,"__initialFile",null);const{triggerFileDialog:r,initialFile:o}=n;this.__triggerFileDialog=!n.src&&r||!1,this.__initialFile=o||null}getIcon(){return e_}set triggerFileDialog(n){const i=this.getWritable();i.__triggerFileDialog=n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),children:k.jsx(rPe,{duration:this.duration,initialFile:this.__initialFile,nodeKey:this.getKey(),src:this.src,thumbnailSrc:this.thumbnailSrc,title:this.title,triggerFileDialog:this.__triggerFileDialog})})}}ye(I0,"kgMenu",[{label:"Audio",desc:"Upload and play an audio file",Icon:e_,insertCommand:gE,insertParams:{triggerFileDialog:!0},matches:["audio"],priority:14,shortcut:"/audio"}]),ye(I0,"uploadType","audio");const oPe=t=>new I0(t),L0=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5h18M9 12h6M3 19h18"})),R0=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5h18M3 12h6m-6 7h18"}));function Rq({alignment:t,buttonText:e,buttonPlaceholder:n,buttonUrl:i,handleAlignmentChange:r,handleButtonTextChange:o,handleButtonUrlChange:s,isEditing:a}){const l=[{label:"Left",name:"left",Icon:R0,dataTestId:"button-align-left"},{label:"Center",name:"center",Icon:L0,dataTestId:"button-align-center"}];return k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"inline-block w-full",children:k.jsx("div",{className:`my-3 flex items-center ${a||i?"opacity-100":"opacity-50"} ${t==="left"?"justify-start":"justify-center"} `,"data-testid":"button-card",children:k.jsx(Ca,{dataTestId:"button-card-btn",href:i,placeholder:n,shrink:!0,value:e})})}),k.jsx(ms,{}),a&&k.jsxs(Fs,{children:[k.jsx(Ea,{buttons:l,label:"Content alignment",selectedName:t,onClick:r}),k.jsx(ef,{dataTestId:"button-input-text",label:"Button text",placeholder:"Add button text",value:e,onChange:o}),k.jsx(xh,{dataTestId:"button-input-url",label:"Button URL",value:i,onChange:s})]})]})}Rq.propTypes={alignment:P.string,buttonText:P.string,buttonPlaceholder:P.string,buttonUrl:P.string,handleAlignmentChange:P.func,handleButtonTextChange:P.func,handleButtonUrlChange:P.func,handleButtonUrlFocus:P.func,handleOptionClick:P.func,isEditing:P.bool,suggestedUrls:P.array,suggestedUrlVisibility:P.bool};function sPe({alignment:t,buttonText:e,buttonUrl:n,nodeKey:i}){const[r]=Oe.useLexicalComposerContext(),{isEditing:o,isSelected:s,setEditing:a}=T.useContext(rn),{cardConfig:l}=T.useContext(ft),[u,f]=T.useState(!1),d=y=>{y.preventDefault(),y.stopPropagation(),a(!0)},h=y=>{r.update(()=>{const x=A.$getNodeByKey(i);x.buttonText=y.target.value})},g=y=>{r.update(()=>{const x=A.$getNodeByKey(i);x.buttonUrl=y})},m=y=>{r.update(()=>{const x=A.$getNodeByKey(i);x.alignment=y})};return k.jsxs(k.Fragment,{children:[k.jsx(Rq,{alignment:t,buttonPlaceholder:"Add button text",buttonText:e,buttonUrl:n,handleAlignmentChange:m,handleButtonTextChange:h,handleButtonUrlChange:g,isEditing:o}),k.jsx(xt,{"data-kg-card-toolbar":"button",isVisible:u,children:k.jsx(Kn,{onClose:()=>f(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"button",isVisible:s&&!o,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-button-card",icon:"edit",isActive:!1,label:"Edit",onClick:d}),k.jsx(Bn,{hide:!l.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!l.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>f(!0)})]})})]})}const jq=A.createCommand();class nx extends Yg{static getType(){return"button"}getIcon(){return n_}decorate(){return k.jsx(An,{nodeKey:this.getKey(),wrapperStyle:"wide",children:k.jsx(sPe,{alignment:this.alignment,buttonText:this.buttonText,buttonUrl:this.buttonUrl,nodeKey:this.getKey()})})}}ye(nx,"kgMenu",{label:"Button",desc:"Add a button to your post",Icon:n_,insertCommand:jq,matches:["button"],priority:3,shortcut:"/button"});function aPe(t){return new nx(t)}const lPe=t=>J.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M22.5 2.25H1.5V9.75H22.5V2.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M1.5 21.75H22.5M1.5 15.75H22.5",stroke:"currentColor",strokeOpacity:.5,strokeLinecap:"round",strokeLinejoin:"round"}));function uPe({autoFocus:t,focusNext:e,hasSettingsPanel:n,defaultKoenigEnterBehaviour:i=!1}){const[r]=Oe.useLexicalComposerContext(),{isEditing:o,nodeKey:s}=T.useContext(rn),[a,l]=T.useState(t);return T.useEffect(()=>{o&&a&&r.focus(()=>{r.getRootElement().focus({preventScroll:!0})})},[a,r,o]),T.useEffect(()=>ut.mergeRegister(r.registerEditableListener(u=>{t&&l(!!u)}),r.registerCommand(A.KEY_ENTER_COMMAND,u=>{var f;return document.querySelector("#typeahead-menu")?!1:u.metaKey||u.ctrlKey?(u._fromNested=!0,(f=r._parentEditor)==null||f.dispatchCommand(A.KEY_ENTER_COMMAND,u),!0):e&&!u.shiftKey?(u.preventDefault(),e.focus(()=>{e.getRootElement().focus({preventScroll:!0})}),!0):i?u.shiftKey?!1:(u._fromNested=!0,r._parentEditor.dispatchCommand(A.KEY_ENTER_COMMAND,u),!0):!1},A.COMMAND_PRIORITY_LOW),r.registerCommand(A.BLUR_COMMAND,()=>n&&r._parentEditor?(r._parentEditor.getEditorState().read(()=>{r._parentEditor.update(()=>{if(!A.$getSelection()){const u=A.$createNodeSelection();u.add(s),A.$setSelection(u)}},{tag:"history-merge"})}),!0):!1,A.COMMAND_PRIORITY_LOW)),[r,t,e,s,n,i]),null}const cPe=({text:t="Type here",className:e=""})=>k.jsx("div",{className:"placeholder not-kg-prose pointer-events-none h-0 cursor-text overflow-visible",children:k.jsx("div",{className:`line-clamp-1 translate-y-[-100%] xs:overflow-visible ${e}`,children:t})}),Er=({initialEditor:t,initialEditorState:e,initialTheme:n,nodes:i="basic",placeholderText:r="",textClassName:o="",placeholderClassName:s="",autoFocus:a=!1,focusNext:l=null,singleParagraph:u=!1,hasSettingsPanel:f=!1,defaultKoenigEnterBehaviour:d=!1,hiddenFormats:h=[],useDefaultClasses:g=!0,dataTestId:m,children:y})=>{const x=i==="minimal"?Qi:rc,_=i==="minimal"?sE:nq;return k.jsx(ZT,{initialEditor:t,initialEditorState:e,initialNodes:x,initialTheme:n,children:k.jsxs(D0,{className:o,dataTestId:m,hiddenFormats:h,inheritStyles:!0,isDragEnabled:!1,markdownTransformers:_,placeholder:k.jsx(cPe,{className:s,text:r}),useDefaultClasses:g,children:[u&&k.jsx(O1,{paragraphs:1}),y,k.jsx(uPe,{autoFocus:a,defaultKoenigEnterBehaviour:d,focusNext:l,hasSettingsPanel:f}),k.jsx($y,{})]})})},fPe=t=>J.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("path",{d:"M7.5 9H1.5V15H7.5V9Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M12 14.25H22.5M12 9.75H22.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),J.createElement("path",{d:"M1.5 21.75H22.5M1.5 2.25H22.5",stroke:"currentColor",strokeOpacity:.4,strokeLinecap:"round",strokeLinejoin:"round"}));function Fq(t){var r;if(t.hasFormat("code"))return;const e=t.getTextContent(),n=(r=e.match(/\{(\w*?)(?:,? *"(.*?)")?\}/))==null?void 0:r[0];if(!n)return;e.split(/({.*?})/g).filter(o=>o!=="").reverse().forEach(o=>{const s=new A.TextNode(o);o===n&&(s.setFormat("code"),s.select()),t.insertAfter(s)}),t.remove()}function dPe(t){T.useEffect(()=>{const e=t.registerNodeTransform(A.TextNode,Fq);let n;return t.hasNode(Ns)&&(n=t.registerNodeTransform(Ns,Fq)),()=>{e(),n&&n()}},[t])}function j0(){const[t]=Oe.useLexicalComposerContext();return dPe(t)}const zq={paragraph:void 0,heading:{h1:void 0,h2:void 0,h3:void 0,h4:void 0,h5:void 0,h6:void 0},quote:void 0,aside:void 0,list:{nested:{listitem:"!list-none"},ol:void 0,ul:void 0,listitem:void 0},link:void 0,text:{bold:void 0,italic:"italic",overflowed:void 0,hashtag:void 0,underline:"underline",strikethrough:"line-through",underlinestrikethrough:void 0,code:void 0},code:void 0,tkHighlighted:"bg-lime-500 dark:bg-lime-800 py-1",atLink:"inline-block bg-grey-200/70 mx-[-.2rem] px-1 pb-[.2rem] leading-[1.4] rounded dark:bg-grey-950",atLinkSearch:"after:content-[attr(data-placeholder)] after:text-grey-500 dark:after:text-grey-600 min-w-[5px]",atLinkIcon:"size-[1.5rem] stroke-[2.5] inline-block mx-1 mb-1 text-grey-600 dark:text-grey-500"},hPe={none:"bg-transparent border-transparent",white:"bg-transparent border-grey-900/15 dark:border-grey-100/20",grey:"bg-grey/10 border-transparent",blue:"bg-blue/10 border-transparent",green:"bg-green/10 border-transparent",yellow:"bg-yellow/10 border-transparent",red:"bg-red/10 border-transparent",pink:"bg-pink/10 border-transparent",purple:"bg-purple/10 border-transparent"};function mE(t,e){return e={exports:{}},t(e,e.exports),e.exports}var F0={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},pPe=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},z0=mE(function(t){var e=Array.prototype.concat,n=Array.prototype.slice,i=t.exports=function(o){for(var s=[],a=0,l=o.length;a<l;a++){var u=o[a];pPe(u)?s=e.call(s,n.call(u)):s.push(u)}return s};i.wrap=function(r){return function(){return r(i(arguments))}}}),hf=mE(function(t){var e=Object.hasOwnProperty,n=Object.create(null);for(var i in F0)e.call(F0,i)&&(n[F0[i]]=i);var r=t.exports={to:{},get:{}};r.get=function(a){var l=a.substring(0,3).toLowerCase(),u,f;switch(l){case"hsl":u=r.get.hsl(a),f="hsl";break;case"hwb":u=r.get.hwb(a),f="hwb";break;default:u=r.get.rgb(a),f="rgb";break}return u?{model:f,value:u}:null},r.get.rgb=function(a){if(!a)return null;var l=/^#([a-f0-9]{3,4})$/i,u=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,f=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,h=/^(\w+)$/,g=[0,0,0,1],m,y,x;if(m=a.match(u)){for(x=m[2],m=m[1],y=0;y<3;y++){var _=y*2;g[y]=parseInt(m.slice(_,_+2),16)}x&&(g[3]=parseInt(x,16)/255)}else if(m=a.match(l)){for(m=m[1],x=m[3],y=0;y<3;y++)g[y]=parseInt(m[y]+m[y],16);x&&(g[3]=parseInt(x+x,16)/255)}else if(m=a.match(f)){for(y=0;y<3;y++)g[y]=parseInt(m[y+1],0);m[4]&&(m[5]?g[3]=parseFloat(m[4])*.01:g[3]=parseFloat(m[4]))}else if(m=a.match(d)){for(y=0;y<3;y++)g[y]=Math.round(parseFloat(m[y+1])*2.55);m[4]&&(m[5]?g[3]=parseFloat(m[4])*.01:g[3]=parseFloat(m[4]))}else return(m=a.match(h))?m[1]==="transparent"?[0,0,0,0]:e.call(F0,m[1])?(g=F0[m[1]],g[3]=1,g):null:null;for(y=0;y<3;y++)g[y]=o(g[y],0,255);return g[3]=o(g[3],0,1),g},r.get.hsl=function(a){if(!a)return null;var l=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,u=a.match(l);if(u){var f=parseFloat(u[4]),d=(parseFloat(u[1])%360+360)%360,h=o(parseFloat(u[2]),0,100),g=o(parseFloat(u[3]),0,100),m=o(isNaN(f)?1:f,0,1);return[d,h,g,m]}return null},r.get.hwb=function(a){if(!a)return null;var l=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,u=a.match(l);if(u){var f=parseFloat(u[4]),d=(parseFloat(u[1])%360+360)%360,h=o(parseFloat(u[2]),0,100),g=o(parseFloat(u[3]),0,100),m=o(isNaN(f)?1:f,0,1);return[d,h,g,m]}return null},r.to.hex=function(){var a=z0(arguments);return"#"+s(a[0])+s(a[1])+s(a[2])+(a[3]<1?s(Math.round(a[3]*255)):"")},r.to.rgb=function(){var a=z0(arguments);return a.length<4||a[3]===1?"rgb("+Math.round(a[0])+", "+Math.round(a[1])+", "+Math.round(a[2])+")":"rgba("+Math.round(a[0])+", "+Math.round(a[1])+", "+Math.round(a[2])+", "+a[3]+")"},r.to.rgb.percent=function(){var a=z0(arguments),l=Math.round(a[0]/255*100),u=Math.round(a[1]/255*100),f=Math.round(a[2]/255*100);return a.length<4||a[3]===1?"rgb("+l+"%, "+u+"%, "+f+"%)":"rgba("+l+"%, "+u+"%, "+f+"%, "+a[3]+")"},r.to.hsl=function(){var a=z0(arguments);return a.length<4||a[3]===1?"hsl("+a[0]+", "+a[1]+"%, "+a[2]+"%)":"hsla("+a[0]+", "+a[1]+"%, "+a[2]+"%, "+a[3]+")"},r.to.hwb=function(){var a=z0(arguments),l="";return a.length>=4&&a[3]!==1&&(l=", "+a[3]),"hwb("+a[0]+", "+a[1]+"%, "+a[2]+"%"+l+")"},r.to.keyword=function(a){return n[a.slice(0,3)]};function o(a,l,u){return Math.min(Math.max(l,a),u)}function s(a){var l=Math.round(a).toString(16).toUpperCase();return l.length<2?"0"+l:l}});hf.to,hf.get;var pf={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},ti=mE(function(t){var e={};for(var n in pf)pf.hasOwnProperty(n)&&(e[pf[n]]=n);var i=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var r in i)if(i.hasOwnProperty(r)){if(!("channels"in i[r]))throw new Error("missing channels property: "+r);if(!("labels"in i[r]))throw new Error("missing channel labels property: "+r);if(i[r].labels.length!==i[r].channels)throw new Error("channel and label counts mismatch: "+r);var o=i[r].channels,s=i[r].labels;delete i[r].channels,delete i[r].labels,Object.defineProperty(i[r],"channels",{value:o}),Object.defineProperty(i[r],"labels",{value:s})}i.rgb.hsl=function(l){var u=l[0]/255,f=l[1]/255,d=l[2]/255,h=Math.min(u,f,d),g=Math.max(u,f,d),m=g-h,y,x,_;return g===h?y=0:u===g?y=(f-d)/m:f===g?y=2+(d-u)/m:d===g&&(y=4+(u-f)/m),y=Math.min(y*60,360),y<0&&(y+=360),_=(h+g)/2,g===h?x=0:_<=.5?x=m/(g+h):x=m/(2-g-h),[y,x*100,_*100]},i.rgb.hsv=function(l){var u,f,d,h,g,m=l[0]/255,y=l[1]/255,x=l[2]/255,_=Math.max(m,y,x),S=_-Math.min(m,y,x),C=function(E){return(_-E)/6/S+1/2};return S===0?h=g=0:(g=S/_,u=C(m),f=C(y),d=C(x),m===_?h=d-f:y===_?h=1/3+u-d:x===_&&(h=2/3+f-u),h<0?h+=1:h>1&&(h-=1)),[h*360,g*100,_*100]},i.rgb.hwb=function(l){var u=l[0],f=l[1],d=l[2],h=i.rgb.hsl(l)[0],g=1/255*Math.min(u,Math.min(f,d));return d=1-1/255*Math.max(u,Math.max(f,d)),[h,g*100,d*100]},i.rgb.cmyk=function(l){var u=l[0]/255,f=l[1]/255,d=l[2]/255,h,g,m,y;return y=Math.min(1-u,1-f,1-d),h=(1-u-y)/(1-y)||0,g=(1-f-y)/(1-y)||0,m=(1-d-y)/(1-y)||0,[h*100,g*100,m*100,y*100]};function a(l,u){return Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)+Math.pow(l[2]-u[2],2)}i.rgb.keyword=function(l){var u=e[l];if(u)return u;var f=1/0,d;for(var h in pf)if(pf.hasOwnProperty(h)){var g=pf[h],m=a(l,g);m<f&&(f=m,d=h)}return d},i.keyword.rgb=function(l){return pf[l]},i.rgb.xyz=function(l){var u=l[0]/255,f=l[1]/255,d=l[2]/255;u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,f=f>.04045?Math.pow((f+.055)/1.055,2.4):f/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var h=u*.4124+f*.3576+d*.1805,g=u*.2126+f*.7152+d*.0722,m=u*.0193+f*.1192+d*.9505;return[h*100,g*100,m*100]},i.rgb.lab=function(l){var u=i.rgb.xyz(l),f=u[0],d=u[1],h=u[2],g,m,y;return f/=95.047,d/=100,h/=108.883,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,g=116*d-16,m=500*(f-d),y=200*(d-h),[g,m,y]},i.hsl.rgb=function(l){var u=l[0]/360,f=l[1]/100,d=l[2]/100,h,g,m,y,x;if(f===0)return x=d*255,[x,x,x];d<.5?g=d*(1+f):g=d+f-d*f,h=2*d-g,y=[0,0,0];for(var _=0;_<3;_++)m=u+1/3*-(_-1),m<0&&m++,m>1&&m--,6*m<1?x=h+(g-h)*6*m:2*m<1?x=g:3*m<2?x=h+(g-h)*(2/3-m)*6:x=h,y[_]=x*255;return y},i.hsl.hsv=function(l){var u=l[0],f=l[1]/100,d=l[2]/100,h=f,g=Math.max(d,.01),m,y;return d*=2,f*=d<=1?d:2-d,h*=g<=1?g:2-g,y=(d+f)/2,m=d===0?2*h/(g+h):2*f/(d+f),[u,m*100,y*100]},i.hsv.rgb=function(l){var u=l[0]/60,f=l[1]/100,d=l[2]/100,h=Math.floor(u)%6,g=u-Math.floor(u),m=255*d*(1-f),y=255*d*(1-f*g),x=255*d*(1-f*(1-g));switch(d*=255,h){case 0:return[d,x,m];case 1:return[y,d,m];case 2:return[m,d,x];case 3:return[m,y,d];case 4:return[x,m,d];case 5:return[d,m,y]}},i.hsv.hsl=function(l){var u=l[0],f=l[1]/100,d=l[2]/100,h=Math.max(d,.01),g,m,y;return y=(2-f)*d,g=(2-f)*h,m=f*h,m/=g<=1?g:2-g,m=m||0,y/=2,[u,m*100,y*100]},i.hwb.rgb=function(l){var u=l[0]/360,f=l[1]/100,d=l[2]/100,h=f+d,g,m,y,x;h>1&&(f/=h,d/=h),g=Math.floor(6*u),m=1-d,y=6*u-g,g&1&&(y=1-y),x=f+y*(m-f);var _,S,C;switch(g){default:case 6:case 0:_=m,S=x,C=f;break;case 1:_=x,S=m,C=f;break;case 2:_=f,S=m,C=x;break;case 3:_=f,S=x,C=m;break;case 4:_=x,S=f,C=m;break;case 5:_=m,S=f,C=x;break}return[_*255,S*255,C*255]},i.cmyk.rgb=function(l){var u=l[0]/100,f=l[1]/100,d=l[2]/100,h=l[3]/100,g,m,y;return g=1-Math.min(1,u*(1-h)+h),m=1-Math.min(1,f*(1-h)+h),y=1-Math.min(1,d*(1-h)+h),[g*255,m*255,y*255]},i.xyz.rgb=function(l){var u=l[0]/100,f=l[1]/100,d=l[2]/100,h,g,m;return h=u*3.2406+f*-1.5372+d*-.4986,g=u*-.9689+f*1.8758+d*.0415,m=u*.0557+f*-.204+d*1.057,h=h>.0031308?1.055*Math.pow(h,1/2.4)-.055:h*12.92,g=g>.0031308?1.055*Math.pow(g,1/2.4)-.055:g*12.92,m=m>.0031308?1.055*Math.pow(m,1/2.4)-.055:m*12.92,h=Math.min(Math.max(0,h),1),g=Math.min(Math.max(0,g),1),m=Math.min(Math.max(0,m),1),[h*255,g*255,m*255]},i.xyz.lab=function(l){var u=l[0],f=l[1],d=l[2],h,g,m;return u/=95.047,f/=100,d/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,f=f>.008856?Math.pow(f,1/3):7.787*f+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,h=116*f-16,g=500*(u-f),m=200*(f-d),[h,g,m]},i.lab.xyz=function(l){var u=l[0],f=l[1],d=l[2],h,g,m;g=(u+16)/116,h=f/500+g,m=g-d/200;var y=Math.pow(g,3),x=Math.pow(h,3),_=Math.pow(m,3);return g=y>.008856?y:(g-16/116)/7.787,h=x>.008856?x:(h-16/116)/7.787,m=_>.008856?_:(m-16/116)/7.787,h*=95.047,g*=100,m*=108.883,[h,g,m]},i.lab.lch=function(l){var u=l[0],f=l[1],d=l[2],h,g,m;return h=Math.atan2(d,f),g=h*360/2/Math.PI,g<0&&(g+=360),m=Math.sqrt(f*f+d*d),[u,m,g]},i.lch.lab=function(l){var u=l[0],f=l[1],d=l[2],h,g,m;return m=d/360*2*Math.PI,h=f*Math.cos(m),g=f*Math.sin(m),[u,h,g]},i.rgb.ansi16=function(l){var u=l[0],f=l[1],d=l[2],h=1 in arguments?arguments[1]:i.rgb.hsv(l)[2];if(h=Math.round(h/50),h===0)return 30;var g=30+(Math.round(d/255)<<2|Math.round(f/255)<<1|Math.round(u/255));return h===2&&(g+=60),g},i.hsv.ansi16=function(l){return i.rgb.ansi16(i.hsv.rgb(l),l[2])},i.rgb.ansi256=function(l){var u=l[0],f=l[1],d=l[2];if(u===f&&f===d)return u<8?16:u>248?231:Math.round((u-8)/247*24)+232;var h=16+36*Math.round(u/255*5)+6*Math.round(f/255*5)+Math.round(d/255*5);return h},i.ansi16.rgb=function(l){var u=l%10;if(u===0||u===7)return l>50&&(u+=3.5),u=u/10.5*255,[u,u,u];var f=(~~(l>50)+1)*.5,d=(u&1)*f*255,h=(u>>1&1)*f*255,g=(u>>2&1)*f*255;return[d,h,g]},i.ansi256.rgb=function(l){if(l>=232){var u=(l-232)*10+8;return[u,u,u]}l-=16;var f,d=Math.floor(l/36)/5*255,h=Math.floor((f=l%36)/6)/5*255,g=f%6/5*255;return[d,h,g]},i.rgb.hex=function(l){var u=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),f=u.toString(16).toUpperCase();return"000000".substring(f.length)+f},i.hex.rgb=function(l){var u=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!u)return[0,0,0];var f=u[0];u[0].length===3&&(f=f.split("").map(function(y){return y+y}).join(""));var d=parseInt(f,16),h=d>>16&255,g=d>>8&255,m=d&255;return[h,g,m]},i.rgb.hcg=function(l){var u=l[0]/255,f=l[1]/255,d=l[2]/255,h=Math.max(Math.max(u,f),d),g=Math.min(Math.min(u,f),d),m=h-g,y,x;return m<1?y=g/(1-m):y=0,m<=0?x=0:h===u?x=(f-d)/m%6:h===f?x=2+(d-u)/m:x=4+(u-f)/m+4,x/=6,x%=1,[x*360,m*100,y*100]},i.hsl.hcg=function(l){var u=l[1]/100,f=l[2]/100,d=1,h=0;return f<.5?d=2*u*f:d=2*u*(1-f),d<1&&(h=(f-.5*d)/(1-d)),[l[0],d*100,h*100]},i.hsv.hcg=function(l){var u=l[1]/100,f=l[2]/100,d=u*f,h=0;return d<1&&(h=(f-d)/(1-d)),[l[0],d*100,h*100]},i.hcg.rgb=function(l){var u=l[0]/360,f=l[1]/100,d=l[2]/100;if(f===0)return[d*255,d*255,d*255];var h=[0,0,0],g=u%1*6,m=g%1,y=1-m,x=0;switch(Math.floor(g)){case 0:h[0]=1,h[1]=m,h[2]=0;break;case 1:h[0]=y,h[1]=1,h[2]=0;break;case 2:h[0]=0,h[1]=1,h[2]=m;break;case 3:h[0]=0,h[1]=y,h[2]=1;break;case 4:h[0]=m,h[1]=0,h[2]=1;break;default:h[0]=1,h[1]=0,h[2]=y}return x=(1-f)*d,[(f*h[0]+x)*255,(f*h[1]+x)*255,(f*h[2]+x)*255]},i.hcg.hsv=function(l){var u=l[1]/100,f=l[2]/100,d=u+f*(1-u),h=0;return d>0&&(h=u/d),[l[0],h*100,d*100]},i.hcg.hsl=function(l){var u=l[1]/100,f=l[2]/100,d=f*(1-u)+.5*u,h=0;return d>0&&d<.5?h=u/(2*d):d>=.5&&d<1&&(h=u/(2*(1-d))),[l[0],h*100,d*100]},i.hcg.hwb=function(l){var u=l[1]/100,f=l[2]/100,d=u+f*(1-u);return[l[0],(d-u)*100,(1-d)*100]},i.hwb.hcg=function(l){var u=l[1]/100,f=l[2]/100,d=1-f,h=d-u,g=0;return h<1&&(g=(d-h)/(1-h)),[l[0],h*100,g*100]},i.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},i.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},i.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},i.gray.hsl=i.gray.hsv=function(l){return[0,0,l[0]]},i.gray.hwb=function(l){return[0,100,l[0]]},i.gray.cmyk=function(l){return[0,0,0,l[0]]},i.gray.lab=function(l){return[l[0],0,0]},i.gray.hex=function(l){var u=Math.round(l[0]/100*255)&255,f=(u<<16)+(u<<8)+u,d=f.toString(16).toUpperCase();return"000000".substring(d.length)+d},i.rgb.gray=function(l){var u=(l[0]+l[1]+l[2])/3;return[u/255*100]}});ti.rgb,ti.hsl,ti.hsv,ti.hwb,ti.cmyk,ti.xyz,ti.lab,ti.lch,ti.hex,ti.keyword,ti.ansi16,ti.ansi256,ti.hcg,ti.apple,ti.gray;function gPe(){for(var t={},e=Object.keys(ti),n=e.length,i=0;i<n;i++)t[e[i]]={distance:-1,parent:null};return t}function mPe(t){var e=gPe(),n=[t];for(e[t].distance=0;n.length;)for(var i=n.pop(),r=Object.keys(ti[i]),o=r.length,s=0;s<o;s++){var a=r[s],l=e[a];l.distance===-1&&(l.distance=e[i].distance+1,l.parent=i,n.unshift(a))}return e}function vPe(t,e){return function(n){return e(t(n))}}function bPe(t,e){for(var n=[e[t].parent,t],i=ti[e[t].parent][t],r=e[t].parent;e[r].parent;)n.unshift(e[r].parent),i=vPe(ti[e[r].parent][r],i),r=e[r].parent;return i.conversion=n,i}var kPe=function(t){for(var e=mPe(t),n={},i=Object.keys(e),r=i.length,o=0;o<r;o++){var s=i[o],a=e[s];a.parent!==null&&(n[s]=bPe(s,e))}return n},Fh={},yPe=Object.keys(ti);function wPe(t){var e=function(n){return n==null?n:(arguments.length>1&&(n=Array.prototype.slice.call(arguments)),t(n))};return"conversion"in t&&(e.conversion=t.conversion),e}function xPe(t){var e=function(n){if(n==null)return n;arguments.length>1&&(n=Array.prototype.slice.call(arguments));var i=t(n);if(typeof i=="object")for(var r=i.length,o=0;o<r;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}yPe.forEach(function(t){Fh[t]={},Object.defineProperty(Fh[t],"channels",{value:ti[t].channels}),Object.defineProperty(Fh[t],"labels",{value:ti[t].labels});var e=kPe(t),n=Object.keys(e);n.forEach(function(i){var r=e[i];Fh[t][i]=xPe(r),Fh[t][i].raw=wPe(r)})});var Ho=Fh,vE=[].slice,Bq=["keyword","gray","hex"],bE={};Object.keys(Ho).forEach(function(t){bE[vE.call(Ho[t].labels).sort().join("")]=t});var ix={};function cr(t,e){if(!(this instanceof cr))return new cr(t,e);if(e&&e in Bq&&(e=null),e&&!(e in Ho))throw new Error("Unknown model: "+e);var n,i;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof cr)this.model=t.model,this.color=t.color.slice(),this.valpha=t.valpha;else if(typeof t=="string"){var r=hf.get(t);if(r===null)throw new Error("Unable to parse color from string: "+t);this.model=r.model,i=Ho[this.model].channels,this.color=r.value.slice(0,i),this.valpha=typeof r.value[i]=="number"?r.value[i]:1}else if(t.length){this.model=e||"rgb",i=Ho[this.model].channels;var o=vE.call(t,0,i);this.color=kE(o,i),this.valpha=typeof t[i]=="number"?t[i]:1}else if(typeof t=="number")t&=16777215,this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var a=s.sort().join("");if(!(a in bE))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=bE[a];var l=Ho[this.model].labels,u=[];for(n=0;n<l.length;n++)u.push(t[l[n]]);this.color=kE(u)}if(ix[this.model])for(i=Ho[this.model].channels,n=0;n<i;n++){var f=ix[this.model][n];f&&(this.color[n]=f(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}cr.prototype={toString:function(){return this.string()},toJSON:function(){return this[this.model]()},string:function(t){var e=this.model in hf.to?this:this.rgb();e=e.round(typeof t=="number"?t:1);var n=e.valpha===1?e.color:e.color.concat(this.valpha);return hf.to[e.model](n)},percentString:function(t){var e=this.rgb().round(typeof t=="number"?t:1),n=e.valpha===1?e.color:e.color.concat(this.valpha);return hf.to.rgb.percent(n)},array:function(){return this.valpha===1?this.color.slice():this.color.concat(this.valpha)},object:function(){for(var t={},e=Ho[this.model].channels,n=Ho[this.model].labels,i=0;i<e;i++)t[n[i]]=this.color[i];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray:function(){var t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject:function(){var t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round:function(t){return t=Math.max(t||0,0),new cr(this.color.map(OPe(t)).concat(this.valpha),this.model)},alpha:function(t){return arguments.length?new cr(this.color.concat(Math.max(0,Math.min(1,t))),this.model):this.valpha},red:ni("rgb",0,$i(255)),green:ni("rgb",1,$i(255)),blue:ni("rgb",2,$i(255)),hue:ni(["hsl","hsv","hsl","hwb","hcg"],0,function(t){return(t%360+360)%360}),saturationl:ni("hsl",1,$i(100)),lightness:ni("hsl",2,$i(100)),saturationv:ni("hsv",1,$i(100)),value:ni("hsv",2,$i(100)),chroma:ni("hcg",1,$i(100)),gray:ni("hcg",2,$i(100)),white:ni("hwb",1,$i(100)),wblack:ni("hwb",2,$i(100)),cyan:ni("cmyk",0,$i(100)),magenta:ni("cmyk",1,$i(100)),yellow:ni("cmyk",2,$i(100)),black:ni("cmyk",3,$i(100)),x:ni("xyz",0,$i(100)),y:ni("xyz",1,$i(100)),z:ni("xyz",2,$i(100)),l:ni("lab",0,$i(100)),a:ni("lab",1),b:ni("lab",2),keyword:function(t){return arguments.length?new cr(t):Ho[this.model].keyword(this.color)},hex:function(t){return arguments.length?new cr(t):hf.to.hex(this.rgb().round().color)},rgbNumber:function(){var t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity:function(){for(var t=this.rgb().color,e=[],n=0;n<t.length;n++){var i=t[n]/255;e[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return .2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return cr.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n+t)%360,n=n<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var n=t.rgb(),i=this.rgb(),r=e===void 0?.5:e,o=2*r-1,s=n.alpha()-i.alpha(),a=((o*s===-1?o:(o+s)/(1+o*s))+1)/2,l=1-a;return cr.rgb(a*n.red()+l*i.red(),a*n.green()+l*i.green(),a*n.blue()+l*i.blue(),n.alpha()*r+i.alpha()*(1-r))}},Object.keys(Ho).forEach(function(t){if(Bq.indexOf(t)===-1){var e=Ho[t].channels;cr.prototype[t]=function(){if(this.model===t)return new cr(this);if(arguments.length)return new cr(arguments,t);var n=typeof arguments[e]=="number"?e:this.valpha;return new cr(SPe(Ho[this.model][t].raw(this.color)).concat(n),t)},cr[t]=function(n){return typeof n=="number"&&(n=kE(vE.call(arguments),e)),new cr(n,t)}}});function _Pe(t,e){return Number(t.toFixed(e))}function OPe(t){return function(e){return _Pe(e,t)}}function ni(t,e,n){return t=Array.isArray(t)?t:[t],t.forEach(function(i){(ix[i]||(ix[i]=[]))[e]=n}),t=t[0],function(i){var r;return arguments.length?(n&&(i=n(i)),r=this[t](),r.color[e]=i,r):(r=this[t]().color[e],n&&(r=n(r)),r)}}function $i(t){return function(e){return Math.max(0,Math.min(t,e))}}function SPe(t){return Array.isArray(t)?t:[t]}function kE(t,e){for(var n=0;n<e;n++)typeof t[n]!="number"&&(t[n]=0);return t}var B0=cr;function yE(t){const e=B0(t),n=B0({r:255,g:255,b:255}),i=B0({r:0,g:0,b:0});return e.red()*.299+e.green()*.587+e.b()*.114>=186?i:n}const CPe=()=>({...zq,link:"cta-link-color"}),EPe=[{label:"None",name:"none",color:"bg-transparent border-black/15 dark:border-white/15 relative after:absolute after:left-1/2 after:top-1/2 after:h-[1px] after:w-[18px] after:-translate-x-1/2 after:-translate-y-1/2 after:-rotate-45 after:bg-red-500"},{label:"White",name:"white",color:"bg-transparent border-black/15 dark:border-white/15"},{label:"Grey",name:"grey",color:"bg-grey/20 border-black/[.08] dark:border-white/15"},{label:"Blue",name:"blue",color:"bg-blue/20 border-black/[.08] dark:border-white/15"},{label:"Green",name:"green",color:"bg-green/20 border-black/[.08] dark:border-white/15"},{label:"Yellow",name:"yellow",color:"bg-yellow/20 border-black/[.08] dark:border-white/15"},{label:"Red",name:"red",color:"bg-red/20 border-black/[.08] dark:border-white/15"},{label:"Pink",name:"pink",color:"bg-pink/20 border-black/[0.08] dark:border-white/15"},{label:"Purple",name:"purple",color:"bg-purple/20 border-black/[0.08] dark:border-white/15"}],TPe=[{label:"Text color",name:"text",color:"bg-black border-black dark:bg-white dark:border-white"},{label:"Brand color",name:"accent",color:"bg-accent border-accent"}];function Wq({alignment:t="left",buttonColor:e="",buttonText:n="",buttonTextColor:i="",buttonUrl:r="",color:o="none",hasSponsorLabel:s=!1,htmlEditor:a,htmlEditorInitialState:l,sponsorLabelHtmlEditor:u,sponsorLabelHtmlEditorInitialState:f,imageSrc:d="",isEditing:h=!1,layout:g="immersive",showButton:m=!1,showDividers:y=!0,visibilityOptions:x={},handleButtonColor:_=()=>{},handleColorChange:S=()=>{},handleLinkColorChange:C=()=>{},onFileChange:E=()=>{},onRemoveMedia:N=()=>{},setFileInputRef:M=()=>{},updateAlignment:I=()=>{},updateButtonText:W=()=>{},updateButtonUrl:B=()=>{},updateHasSponsorLabel:Z=()=>{},updateLayout:R=()=>{},updateShowButton:Q=()=>{},updateShowDividers:V=()=>{},toggleVisibility:H=()=>{},imageDragHandler:j={},imageUploader:q=()=>{},linkColor:Y="text",showVisibilitySettings:K=!1}){const[te,oe]=T.useState(!1),{isLoading:ce,progress:U}=q||{},F=[{id:"content",label:"Content"},{id:"design",label:"Design"},{id:"visibility",label:"Visibility"}],se=[{label:"Minimal",name:"minimal",Icon:fPe,dataTestId:"minimal-layout",ariaLabel:"Small, square image"},{label:"Full",name:"immersive",Icon:lPe,dataTestId:"immersive-layout",ariaLabel:"Full-width image"}],le=[{label:"Left",name:"left",Icon:R0,dataTestId:"left-align"},{label:"Center",name:"center",Icon:L0,dataTestId:"center-align"}],pe=ve=>ve==="transparent"?"":yE(ve==="accent"?$u():ve).hex(),je=CPe(),He=k.jsxs(k.Fragment,{children:[k.jsx(fo,{dataTestId:"sponsor-label-toggle",isChecked:s,label:"Sponsor label",onChange:Z}),k.jsx(iw,{alt:"Image",borderStyle:"rounded",desc:"Upload",icon:"file",isDraggedOver:j.isDraggedOver,isLoading:ce,label:"Image",mimeTypes:["image/*"],placeholderRef:j.setRef,progress:U,setFileInputRef:M,src:d,type:"button",onFileChange:E,onRemoveMedia:N}),k.jsx("hr",{className:"not-kg-prose my-2 block border-t-grey-300 dark:border-t-grey-900"}),k.jsx(fo,{dataTestId:"button-settings",isChecked:m,label:"Button",onChange:Q}),m&&k.jsxs(k.Fragment,{children:[k.jsx(ef,{dataTestId:"button-text",label:"Button text",placeholder:"Add button text",value:n,onChange:W}),k.jsx(xh,{dataTestId:"button-url",label:"Button URL",value:r,onChange:B})]})]}),ot=k.jsxs(k.Fragment,{children:[k.jsx(Ea,{buttons:se,label:"Layout",selectedName:g,onClick:R}),g==="immersive"&&k.jsx(k.Fragment,{children:k.jsx(Ea,{buttons:le,label:"Alignment",selectedName:t,onClick:I})}),k.jsx(nw,{buttons:EPe,dataTestId:"cta-background-color-picker",label:"Background",selectedName:o,onClick:S}),o==="none"&&k.jsx(fo,{dataTestId:"button-settings",isChecked:y,label:"Dividers",onChange:V}),k.jsx(nw,{buttons:TPe,dataTestId:"cta-link-color-picker",label:"Link color",selectedName:Y,onClick:C}),m&&k.jsx(c0,{dataTestId:"cta-button-color",eyedropper:!0,isExpanded:te,label:"Button Color",swatches:[{title:"Black",hex:"#000000"},{title:"Grey",hex:"#F0F0F0"},{title:"Brand color",accent:!0}],value:e,onPickerChange:ve=>_(ve,pe(ve)),onSwatchChange:ve=>{_(ve,pe(ve)),oe(!1)},onTogglePicker:ve=>{oe(ve)}})]}),ht=k.jsx(P6,{toggleVisibility:H,visibilityOptions:x});return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:nt("w-full rounded-lg border",hPe[o],{"py-3":o==="none"&&!s,"pb-3":o==="none"&&s,"pt-1":o==="none"&&!s&&!y&&!d}),"data-cta-layout":g,style:{"--cta-link-color":Y==="accent"?$u():"var(--cta-link-color-text)"},children:[s&&k.jsx("div",{className:nt("py-3",{"mx-6":o!=="none"}),children:k.jsx(Er,{autoFocus:!0,dataTestId:"sponsor-label-editor",hasSettingsPanel:!0,initialEditor:u,initialEditorState:f,initialTheme:je,nodes:"basic",textClassName:nt("koenig-lexical-cta-label not-kg-prose w-full whitespace-normal font-sans !text-xs font-semibold uppercase leading-8 tracking-normal text-grey-900/50 dark:text-grey-200/40"),useDefaultClasses:!1,children:k.jsx(O1,{allowBr:!1,paragraphs:1})})}),k.jsxs("div",{className:nt("flex gap-6",s&&o!=="none"&&d&&g==="immersive"||o==="none"&&!y?"":"pt-6",o==="none"&&!y?"":d&&!m?"pb-8":"pb-7",g==="immersive"?"flex-col":"flex-row",s&&!(d&&g==="immersive")&&!(o==="none"&&!y)&&"border-t border-grey-900/15 dark:border-grey-100/20",o==="none"&&y?"border-y border-grey-900/15 dark:border-grey-100/20":o!=="none"?"mx-6":""),children:[d&&k.jsx("div",{className:nt("block",g==="immersive"?"w-full":"w-16 shrink-0"),children:k.jsx("img",{alt:"Placeholder",className:nt(g==="immersive"?"h-auto w-full":"aspect-square w-16 object-cover","rounded-md"),"data-testid":"cta-card-image",src:d})}),k.jsxs("div",{className:nt("flex w-full flex-col gap-6",g==="immersive"&&t==="center"?"items-center":""),children:[k.jsx(Er,{autoFocus:!0,dataTestId:"cta-card-content-editor",hasSettingsPanel:!0,initialEditor:a,initialEditorState:l,initialTheme:je,nodes:"basic",placeholderClassName:"bg-transparent whitespace-normal font-serif text-xl !text-grey-500 !dark:text-grey-800 ",placeholderText:"Write something worth clicking...",textClassName:nt("koenig-lexical-cta-text w-full whitespace-normal text-pretty bg-transparent font-serif text-xl text-grey-900 dark:text-grey-200",t==="center"&&g==="immersive"?"text-center [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left":"text-left"),children:k.jsx(j0,{})}),m&&(h||n&&r)&&k.jsx("div",{className:nt(g==="immersive"&&d?"w-full":""),"data-test-cta-button-current-url":r,children:k.jsx(Ca,{color:"accent","data-test-cta-button-current-url":r,dataTestId:"cta-button",placeholder:"Add button text",size:g==="immersive"&&d?"medium":"small",style:e!=="accent"?{backgroundColor:e,color:i}:void 0,value:n,width:g==="minimal"||!d?"regular":"full"})})]})]}),!h&&k.jsx(ms,{})]}),h&&k.jsx(Fs,{defaultTab:K?"visibility":"content",tabs:F,onMouseDown:ve=>ve.preventDefault(),children:{content:He,design:ot,visibility:ht}})]})}Wq.propTypes={alignment:P.oneOf(["left","center"]),buttonText:P.string,buttonUrl:P.string,buttonColor:P.string,buttonTextColor:P.string,color:P.oneOf(["none","grey","white","blue","green","yellow","red","pink","purple"]),hasSponsorLabel:P.bool,imageSrc:P.string,isEditing:P.bool,layout:P.oneOf(["minimal","immersive"]),showButton:P.bool,showDividers:P.bool,htmlEditor:P.object,htmlEditorInitialState:P.object,updateAlignment:P.func,updateButtonText:P.func,updateButtonUrl:P.func,updateHasSponsorLabel:P.func,updateShowButton:P.func,updateShowDividers:P.func,updateLayout:P.func,handleColorChange:P.func,handleButtonColor:P.func,onFileChange:P.func,setFileInputRef:P.func,onRemoveMedia:P.func,sponsorLabelHtmlEditor:P.object,sponsorLabelHtmlEditorInitialState:P.object,visibilityOptions:P.array,toggleVisibility:P.func,imageUploadHandler:P.func,imageDragHandler:P.object,linkColor:P.oneOf(["text","accent"]),handleLinkColorChange:P.func,imageUploader:P.object,showVisibilitySettings:P.bool};const $Pe=({nodeKey:t,alignment:e,backgroundColor:n,buttonText:i,buttonUrl:r,hasSponsorLabel:o,imageUrl:s,layout:a,linkColor:l,showButton:u,showDividers:f,textValue:d,buttonColor:h,htmlEditor:g,htmlEditorInitialState:m,buttonTextColor:y,sponsorLabelHtmlEditor:x,sponsorLabelHtmlEditorInitialState:_})=>{const[S]=Oe.useLexicalComposerContext(),{isEditing:C,isSelected:E,setEditing:N}=T.useContext(rn),{fileUploader:M,cardConfig:I}=T.useContext(ft),[W,B]=T.useState(!1),Z=zs({handleDrop:ht}),{visibilityOptions:R,toggleVisibility:Q}=D6(S,t,I),{showVisibilitySettings:V}=zc(),H=ve=>{ve.preventDefault(),ve.stopPropagation(),N(!0)},j=T.useRef(null),q=M.useFileUpload("image"),Y=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.showButton=!De.showButton})},K=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.showDividers=!De.showDividers})},te=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.buttonText=ve.target.value})},oe=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.buttonUrl=ve})},ce=(ve,De)=>{S.update(()=>{const st=A.$getNodeByKey(t);st.buttonColor=ve,st.buttonTextColor=De})},U=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.hasSponsorLabel=!De.hasSponsorLabel})},F=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.backgroundColor=ve})},se=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.linkColor=ve})},le=async ve=>{const De=URL.createObjectURL(ve[0]);try{const{width:st,height:It}=await sf(De),Mt=await q.upload(ve);S.update(()=>{const Wt=A.$getNodeByKey(t);Wt.imageUrl=Mt==null?void 0:Mt[0].url,Wt.imageWidth=st,Wt.imageHeight=It})}finally{URL.revokeObjectURL(De)}},pe=async ve=>{le(ve.target.files)},je=()=>{S.update(()=>{const ve=A.$getNodeByKey(t);ve.imageUrl=null,ve.imageWidth=null,ve.imageHeight=null})},He=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.layout=ve})},ot=ve=>{S.update(()=>{const De=A.$getNodeByKey(t);De.alignment=ve})};async function ht(ve){await le(ve)}return T.useEffect(()=>{g.setEditable(C)},[C,g]),k.jsxs(k.Fragment,{children:[k.jsx(Wq,{alignment:e,buttonColor:h,buttonText:i,buttonTextColor:y,buttonUrl:r,color:n,handleButtonColor:ce,handleColorChange:F,handleLinkColorChange:se,hasSponsorLabel:o,htmlEditor:g,htmlEditorInitialState:m,imageDragHandler:Z,imageSrc:s,imageUploader:q,isEditing:C,layout:a,linkColor:l,setEditing:N,setFileInputRef:ve=>j.current=ve,showButton:u,showDividers:f,showVisibilitySettings:V,sponsorLabelHtmlEditor:x,sponsorLabelHtmlEditorInitialState:_,text:d,toggleVisibility:Q,updateAlignment:ot,updateButtonText:te,updateButtonUrl:oe,updateHasSponsorLabel:U,updateLayout:He,updateShowButton:Y,updateShowDividers:K,visibilityOptions:R,onFileChange:pe,onRemoveMedia:je}),k.jsx(xt,{"data-kg-card-toolbar":"button",isVisible:W,children:k.jsx(Kn,{onClose:()=>B(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"button",isVisible:E&&!C&&!W,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-button-card",icon:"edit",isActive:!1,label:"Edit",onClick:H}),k.jsx(Bn,{hide:!I.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!I.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>B(!0)})]})})]})},Hq=A.createCommand();class rx extends Hg{constructor(n={},i){super(n,i);ye(this,"__callToActionHtmlEditor");ye(this,"__callToActionHtmlEditorInitialState");ye(this,"__sponsorLabelHtmlEditor");ye(this,"__sponsorLabelHtmlEditorInitialState");vi(this,"__callToActionHtmlEditor",{editor:n.callToActionHtmlEditor,nodes:rc}),vi(this,"__sponsorLabelHtmlEditor",{editor:n.sponsorLabelHtmlEditor,nodes:rc}),!n.callToActionHtmlEditor&&n.textValue&&bi(this,"__callToActionHtmlEditor",`${n.textValue}`),n.sponsorLabelHtmlEditor||bi(this,"__sponsorLabelHtmlEditor",`${n.sponsorLabel||'<p><span style="white-space: pre-wrap;">SPONSORED</span></p>'}`)}static getType(){return"call-to-action"}getIcon(){return Cp}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.callToActionHtmlEditor=i.__callToActionHtmlEditor,n.callToActionHtmlEditorInitialState=i.__callToActionHtmlEditorInitialState,n.sponsorLabelHtmlEditor=i.__sponsorLabelHtmlEditor,n.sponsorLabelHtmlEditorInitialState=i.__sponsorLabelHtmlEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__callToActionHtmlEditor&&this.__callToActionHtmlEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__callToActionHtmlEditor,null),r=si(i,{allowBr:!0});n.textValue=r}),this.__sponsorLabelHtmlEditor&&this.__sponsorLabelHtmlEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__sponsorLabelHtmlEditor,null),r=si(i,{allowBr:!1});n.sponsorLabel=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),wrapperStyle:this.backgroundColor==="none"?"wide":"regular",children:k.jsx($Pe,{alignment:this.alignment,backgroundColor:this.backgroundColor,buttonColor:this.buttonColor,buttonText:this.buttonText,buttonTextColor:this.buttonTextColor,buttonUrl:this.buttonUrl,hasSponsorLabel:this.hasSponsorLabel,href:this.href,htmlEditor:this.__callToActionHtmlEditor,htmlEditorInitialState:this.__callToActionHtmlEditorInitialState,imageUrl:this.imageUrl,layout:this.layout,linkColor:this.linkColor,nodeKey:this.getKey(),showButton:this.showButton,showDividers:this.showDividers,sponsorLabelHtmlEditor:this.__sponsorLabelHtmlEditor,sponsorLabelHtmlEditorInitialState:this.__sponsorLabelHtmlEditorInitialState,textValue:this.textValue})})}}ye(rx,"kgMenu",{label:"Call to action",desc:"Add a call to action to your post",Icon:Cp,insertCommand:Hq,matches:["cta","call-to-action","email","email-cta","ad","sponsored","hidden"],priority:7,shortcut:"/cta",isHidden:()=>!1});function MPe(t){return new rx(t)}const Qi=[ki.LinkNode,ts];function NPe({setInstanceRef:t,...e}){const n=T.useRef(null),i=T.useRef(null);function r(o){i.current=o,t==null||t(o)}return i.current&&i.current.update(e),T.useEffect(()=>(r(new NC({...e,ref:n})),()=>{r(null)}),[]),T.createElement("div",{ref:n})}const Qq=({onEmojiClick:t,positionRef:e,data:n=hF,autoFocus:i=!0,dynamicWidth:r=!1,emojiButtonRadius:o="100%",emojiButtonSize:s=36,emojiSize:a=24,icons:l="outline",locale:u="en",maxFrequentRows:f=1,navPosition:d="bottom",noCountryFlags:h=!1,noResultsEmoji:g="cry",perLine:m=9,previewEmoji:y=null,previewPosition:x="none",searchPosition:_="sticky",set:S="native",skin:C=1,skinTonePosition:E="preview",...N})=>{const[M,I]=T.useState(null),{darkMode:W}=T.useContext(ft),B=35,Z=T.useCallback(()=>{if(e.current){const Y=e.current.getBoundingClientRect(),K=document.documentElement.scrollLeft,te=document.documentElement.scrollTop,oe=window.innerHeight,ce=352;let U=Y.top+te;U+ce>oe&&(U=Y.top-ce-B+te),I({x:(Y.left+K)/1.5,y:U})}},[e]);if(T.useEffect(()=>(Z(),document.addEventListener("scroll",Z,!0),()=>{document.removeEventListener("scroll",Z,!0)}),[Z]),!M)return null;const{x:R,y:Q}=M,V=Y=>{Y.stopPropagation()},H={left:R,top:Q,position:"fixed"},q={...{theme:W?"dark":"light",autoFocus:i,dynamicWidth:r,emojiButtonRadius:o,emojiButtonSize:s,emojiSize:a,icons:l,locale:u,maxFrequentRows:f,navPosition:d,noCountryFlags:h,noResultsEmoji:g,perLine:m,previewEmoji:y,previewPosition:x,searchPosition:_,set:S,skin:C,skinTonePosition:E},...N};return k.jsx(Gc,{children:k.jsx("div",{className:"z-20 mr-9 mt-10 rounded-md bg-white","data-testid":"emoji-picker-container",style:H,onClick:V,children:k.jsx("div",{className:"",children:k.jsx(NPe,{data:n,onEmojiSelect:t,...q})})})})};Qq.propTypes={onEmojiClick:P.func.isRequired,positionRef:P.object,data:P.array,autoFocus:P.bool,dynamicWidth:P.bool,emojiButtonColors:P.arrayOf(P.string),emojiButtonRadius:P.string,emojiButtonSize:P.number,emojiSize:P.number,emojiVersion:P.oneOf([1,2,3,4,5,11,12,12.1,13,13.1,14]),exceptEmojis:P.arrayOf(P.string),icons:P.oneOf(["auto","outline","solid"]),locale:P.oneOf(["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","kr","nl","pl","pt","ru","sa","tr","uk","vi","zh"]),maxFrequentRows:P.number,navPosition:P.oneOf(["top","bottom","none"]),noCountryFlags:P.bool,noResultsEmoji:P.string,perLine:P.number,previewEmoji:P.string,previewPosition:P.oneOf(["top","bottom","none"]),searchPosition:P.oneOf(["sticky","static","none"]),set:P.oneOf(["native","apple","facebook","google","twitter"]),setInstanceRef:P.func,skin:P.oneOf([1,2,3,4,5,6]),skinTonePosition:P.oneOf(["preview","search","none"])};const APe={white:"bg-transparent border-grey/30",grey:"bg-grey/10 border-transparent",blue:"bg-blue/10 border-transparent",green:"bg-green/10 border-transparent",yellow:"bg-yellow/10 border-transparent",red:"bg-red/10 border-transparent",pink:"bg-pink/10 border-transparent",purple:"bg-purple/10 border-transparent",accent:"bg-accent border-transparent"},Bu="text-black dark:text-grey-300 caret-black dark:caret-grey-300",PPe={white:Bu,grey:Bu,blue:Bu,green:Bu,yellow:Bu,red:Bu,pink:Bu,purple:Bu,accent:"text-white caret-white"+" kg-callout-accent"},DPe=[{label:"White",name:"white",color:"bg-transparent border-black/15 dark:border-white/10"},{label:"Grey",name:"grey",color:"bg-grey/20 border-black/[0.08] dark:border-white/10"},{label:"Blue",name:"blue",color:"bg-blue/20 border-black/[0.08] dark:border-white/10"},{label:"Green",name:"green",color:"bg-green/20 border-black/[0.08] dark:border-white/10"},{label:"Yellow",name:"yellow",color:"bg-yellow/20 border-black/[0.08] dark:border-white/10"},{label:"Red",name:"red",color:"bg-red/20 border-black/[0.08] dark:border-white/10"},{label:"Pink",name:"pink",color:"bg-pink/20 border-black/[0.08] dark:border-white/10"},{label:"Purple",name:"purple",color:"bg-purple/20 border-black/[0.08] dark:border-white/10"},{label:"Accent",name:"accent",color:"bg-accent border-black/[0.08] dark:border-white/10"}];function Uq({color:t="green",isEditing:e,setShowEmojiPicker:n,toggleEmoji:i,hasEmoji:r=!0,handleColorChange:o,changeEmoji:s,calloutEmoji:a="💡",textEditor:l,textEditorInitialState:u,nodeKey:f,toggleEmojiPicker:d,showEmojiPicker:h}){const g=T.useRef(null),{darkMode:m}=T.useContext(ft);return T.useEffect(()=>{e||n(!1)},[e,n]),k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:`flex rounded-md border px-7 py-5 ${APe[t]} `,"data-testid":`callout-bg-${t}`,children:[k.jsx("div",{children:r&&k.jsxs(k.Fragment,{children:[k.jsx("button",{ref:g,className:`mr-2 cursor-pointer rounded-md px-2 text-xl ${e?"hover:bg-grey-500/20":""} `,"data-testid":"emoji-picker-button",type:"button",onClick:d,children:a}),e&&h&&k.jsx(Qq,{positionRef:g,togglePortal:d,onEmojiClick:s})]})}),k.jsx(Er,{autoFocus:!0,defaultKoenigEnterBehaviour:!0,initialEditor:l,initialEditorState:u,nodes:"minimal",placeholderClassName:"font-serif text-xl font-normal tracking-wide text-grey-500 !dark:text-white opacity-30",placeholderText:"Callout text...",singleParagraph:!0,textClassName:`!my-0 w-full whitespace-normal bg-transparent font-serif text-xl font-normal ${PPe[t]}`})]}),e?k.jsxs(Fs,{darkMode:m,children:[k.jsx(fo,{dataTestId:"emoji-toggle",isChecked:!!a,label:"Emoji",onChange:i}),k.jsx(nw,{buttons:DPe,dataTestId:"callout-color-picker",label:"Background",selectedName:t,onClick:o})]}):k.jsx(ms,{})]})}Uq.propTypes={color:P.oneOf(["white","grey","blue","green","yellow","red","pink","purple","accent"]),text:P.string,hasEmoji:P.bool,placeholder:P.string,isEditing:P.bool,updateText:P.func,calloutEmoji:P.string,setShowEmojiPicker:P.func,toggleEmoji:P.func,handleColorChange:P.func,changeEmoji:P.func,textEditor:P.object,textEditorInitialState:P.object,nodeKey:P.string,toggleEmojiPicker:P.func,showEmojiPicker:P.bool};function IPe({nodeKey:t,textEditor:e,textEditorInitialState:n,backgroundColor:i,calloutEmoji:r}){const[o]=Oe.useLexicalComposerContext(),{isSelected:s,isEditing:a,setEditing:l}=T.useContext(rn),{cardConfig:u}=T.useContext(ft),[f,d]=T.useState(!1),[h,g]=T.useState(!1),[m,y]=T.useState(r),[x,_]=T.useState(!!r),S=I=>{I.stopPropagation(),l(!0),o.update(()=>{const W=A.$getNodeByKey(t);_(I.target.checked),I.target.checked&&m===""?W.calloutEmoji="💡":W.calloutEmoji=I.target.checked?m:""})},C=I=>{o.update(()=>{const W=A.$getNodeByKey(t);W.backgroundColor=I})},E=I=>{o.update(()=>{const W=A.$getNodeByKey(t);y(I.native),W.calloutEmoji=I.native,N()})},N=()=>{a||l(!0),f&&e.focus(),d(!f)},M=I=>{I.preventDefault(),I.stopPropagation(),o.dispatchCommand(Lo,{cardKey:t,focusEditor:!1})};return T.useEffect(()=>{e.setEditable(a)},[a,e]),k.jsxs(k.Fragment,{children:[k.jsx(Uq,{calloutEmoji:r,changeEmoji:E,color:i,handleColorChange:C,hasEmoji:x,isEditing:a,nodeKey:t,sanitizeHtml:Gy,setShowEmojiPicker:d,showEmojiPicker:f,textEditor:e,textEditorInitialState:n,toggleEmoji:S,toggleEmojiPicker:N}),k.jsx(xt,{"data-kg-card-toolbar":"callout",isVisible:h,children:k.jsx(Kn,{onClose:()=>g(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"callout",isVisible:s&&!a&&!h,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-callout-card",icon:"edit",isActive:!1,label:"Edit",onClick:M}),k.jsx(Bn,{hide:!u.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!u.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>g(!0)})]})})]})}const Zq=A.createCommand();class ox extends Bg{constructor(n={},i){super(n,i);ye(this,"__calloutTextEditor");ye(this,"__calloutTextEditorInitialState");vi(this,"__calloutTextEditor",{editor:n.calloutTextEditor,nodes:Qi}),!n.calloutTextEditor&&n.calloutText&&bi(this,"__calloutTextEditor",`${n.calloutText}`)}getIcon(){return i_}exportJSON(){const n=super.exportJSON();return this.__calloutTextEditor&&this.__calloutTextEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__calloutTextEditor,null),r=si(i,{allowBr:!0});n.calloutText=r}),n}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.calloutTextEditor=i.__calloutTextEditor,n.calloutTextEditorInitialState=i.__calloutTextEditorInitialState,n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),children:k.jsx(IPe,{backgroundColor:this.backgroundColor,calloutEmoji:this.calloutEmoji,nodeKey:this.getKey(),textEditor:this.__calloutTextEditor,textEditorInitialState:this.__calloutTextEditorInitialState})})}}ye(ox,"kgMenu",[{label:"Callout",desc:"Info boxes that stand out",Icon:i_,insertCommand:Zq,matches:["callout"],priority:9,shortcut:"/callout"}]);const LPe=t=>new ox(t),qq=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3 5 9 8 9-8"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20.182 4H3.818c-.48 0-.94.174-1.285.487a1.649 1.649 0 0 0-.394.54 1.56 1.56 0 0 0-.139.64v11.666c0 .443.192.866.533 1.179A1.9 1.9 0 0 0 3.818 19h16.364c.48.001.942-.174 1.286-.488.34-.313.532-.736.532-1.179V5.667c0-.22-.048-.437-.14-.64a1.65 1.65 0 0 0-.392-.539A1.904 1.904 0 0 0 20.182 4Z"}));function Yq({message:t}){return t?k.jsx("div",{className:"py-[.6rem] font-sans text-2xs font-semibold uppercase leading-8 tracking-normal text-grey dark:text-grey-800","data-testid":"visibility-message",children:t}):null}function Vq({alignment:t="left",buttonText:e="",buttonUrl:n="",handleSegmentChange:i,htmlEditor:r,htmlEditorInitialState:o,isEditing:s=!1,segment:a="status:free",showDividers:l=!0,showButton:u=!0,toggleDividers:f,updateAlignment:d,updateShowButton:h,updateButtonText:g,updateButtonUrl:m}){const y=[{label:"Left",name:"left",Icon:R0,dataTestId:"left-align"},{label:"Center",name:"center",Icon:L0,dataTestId:"center-align"}],x=[{label:"Free members",name:"status:free"},{label:"Paid members",name:"status:-free"}],S=(C=>{switch(C){case"status:free":return"Hidden on website and paid newsletter";case"status:-free":return"Hidden on website and free newsletter";default:return""}})(a);return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"w-full pb-6",children:[k.jsx(Yq,{message:S}),l&&k.jsx("hr",{className:"not-kg-prose mb-12 block border-t-grey-300 dark:border-t-grey-900","data-testid":"top-divider"}),k.jsx(Er,{autoFocus:!0,hasSettingsPanel:!0,initialEditor:r,initialEditorState:o,nodes:"basic",placeholderClassName:"bg-transparent whitespace-normal font-serif text-xl !text-grey-500 !dark:text-grey-800 ",placeholderText:"Email only text... (optional)",textClassName:`w-full bg-transparent whitespace-normal font-serif text-xl text-grey-900 dark:text-grey-200 ${t==="left"?"text-left":"text-center mx-auto [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left"} `,children:k.jsx(j0,{})}),u&&(s||e&&n)&&k.jsx("div",{className:`mt-6 ${t==="left"?"text-left":"text-center"} `,children:k.jsx(Ca,{color:"accent",dataTestId:"cta-button",placeholder:"Add button text",value:e})}),l&&k.jsx("hr",{className:"not-kg-prose mb-0 mt-12 block border-t-grey-300 dark:border-t-grey-900","data-testid":"bottom-divider"}),!s&&k.jsx(ms,{})]}),s&&k.jsxs(Fs,{children:[k.jsx(wEe,{description:"Visible for this audience when delivered by email. This card is not published on your site.",label:"Visibility",menu:x,value:a,onChange:i}),k.jsx(Ea,{buttons:y,label:"Content alignment",selectedName:t,onClick:d}),k.jsx(fo,{dataTestId:"dividers-settings",isChecked:l,label:"Separators",onChange:f}),k.jsx(fo,{dataTestId:"button-settings",isChecked:u,label:"Button",onChange:h}),u&&k.jsxs(k.Fragment,{children:[k.jsx(ef,{dataTestId:"button-text",label:"Button text",placeholder:"Add button text",value:e,onChange:g}),k.jsx(xh,{dataTestId:"button-url",label:"Button URL",value:n,onChange:m})]})]})]})}Vq.propTypes={alignment:P.oneOf(["left","center"]),buttonText:P.string,buttonUrl:P.string,isEditing:P.bool,segment:P.oneOf(["status:free","status:-free"]),showButton:P.bool,showDividers:P.bool,updateAlignment:P.func,updateButtonText:P.func,updateButtonUrl:P.func,updateShowButton:P.func,toggleDividers:P.func,suggestedUrls:P.array,handleSegmentChange:P.func,htmlEditor:P.object,htmlEditorInitialState:P.object};function RPe({nodeKey:t,alignment:e,htmlEditor:n,htmlEditorInitialState:i,segment:r,showDividers:o,showButton:s,buttonText:a,buttonUrl:l}){const[u]=Oe.useLexicalComposerContext(),f=T.useContext(rn),{cardConfig:d}=T.useContext(ft),{isEditing:h,isSelected:g}=f,[m,y]=T.useState(!1),x=I=>{I.preventDefault(),I.stopPropagation(),u.dispatchCommand(Lo,{cardKey:t,focusEditor:!1})},_=I=>{u.update(()=>{const W=A.$getNodeByKey(t);W.segment=I})};T.useEffect(()=>{n.setEditable(h)},[h,n]);const S=I=>{u.update(()=>{const W=A.$getNodeByKey(t);W.alignment=I})},C=I=>{u.update(()=>{const W=A.$getNodeByKey(t);W.showDividers=I.target.checked})},E=I=>{u.update(()=>{const W=A.$getNodeByKey(t);W.showButton=I.target.checked})},N=I=>{u.update(()=>{const W=A.$getNodeByKey(t);W.buttonText=I.target.value})},M=I=>{u.update(()=>{const W=A.$getNodeByKey(t);W.buttonUrl=I})};return k.jsxs(k.Fragment,{children:[k.jsx(Vq,{alignment:e,buttonText:a,buttonUrl:l,handleSegmentChange:_,htmlEditor:n,htmlEditorInitialState:i,isEditing:h,segment:r,showButton:s,showDividers:o,toggleDividers:C,updateAlignment:S,updateButtonText:N,updateButtonUrl:M,updateShowButton:E}),k.jsx(xt,{"data-kg-card-toolbar":"email-cta",isVisible:m,children:k.jsx(Kn,{onClose:()=>y(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"email-cta",isVisible:g&&!h&&!m,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:x}),k.jsx(Bn,{hide:!d.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!d.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>y(!0)})]})})]})}const Xq=A.createCommand();class sx extends im{constructor(n={},i){super(n,i);ye(this,"__htmlEditor");ye(this,"__htmlEditorInitialState");vi(this,"__htmlEditor",{editor:n.htmlEditor,nodes:rc}),n.htmlEditor||bi(this,"__htmlEditor",n.html)}getIcon(){return Cp}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.htmlEditor=i.__htmlEditor,n.htmlEditorInitialState=i.__htmlEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__htmlEditor&&this.__htmlEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__htmlEditor,null),r=si(i,{removeCodeWrappers:!0,allowBr:!0});n.html=r}),n}decorate(){return k.jsx(An,{IndicatorIcon:qq,nodeKey:this.getKey(),wrapperStyle:"wide",children:k.jsx(RPe,{alignment:this.alignment,buttonText:this.buttonText,buttonUrl:this.buttonUrl,htmlEditor:this.__htmlEditor,htmlEditorInitialState:this.__htmlEditorInitialState,nodeKey:this.getKey(),segment:this.__segment,showButton:this.showButton,showDividers:this.showDividers})})}isEmpty(){return this.__htmlEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1))&&(!this.showButton||!this.buttonText&&!this.buttonUrl)}}ye(sx,"kgMenu",{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:Cp,insertCommand:Xq,matches:["email","cta","email-cta"],priority:7,postType:"post",shortcut:"/email-cta",isHidden:({config:n})=>{var i;return((i=n==null?void 0:n.deprecated)==null?void 0:i.emailCta)??!0}});function jPe(){return new sx}function Gq({htmlEditor:t,htmlEditorInitialState:e,isEditing:n=!1}){return k.jsxs(k.Fragment,{children:[k.jsx(Yq,{message:"Hidden on website"}),k.jsxs("div",{className:"w-full",children:[k.jsx(Er,{autoFocus:!0,initialEditor:t,initialEditorState:e,nodes:"basic",textClassName:"kg-email-html whitespace-normal pb-1",children:k.jsx(j0,{})}),!n&&k.jsx(ms,{})]})]})}Gq.propTypes={htmlEditor:P.object,isEditing:P.bool,htmlEditorInitialState:P.object};function FPe({nodeKey:t,htmlEditor:e,htmlEditorInitialState:n}){const[i]=Oe.useLexicalComposerContext(),r=T.useContext(rn),{cardConfig:o}=T.useContext(ft),{isEditing:s,isSelected:a}=r,[l,u]=T.useState(!1),f=d=>{d.preventDefault(),d.stopPropagation(),i.dispatchCommand(Lo,{cardKey:t,focusEditor:!1})};return T.useEffect(()=>{e.setEditable(s)},[s,e]),k.jsxs(k.Fragment,{children:[k.jsx(Gq,{htmlEditor:e,htmlEditorInitialState:n,isEditing:s}),k.jsx(xt,{"data-kg-card-toolbar":"email",isVisible:l,children:k.jsx(Kn,{onClose:()=>u(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"email",isVisible:a&&!s&&!l,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:f}),k.jsx(Bn,{hide:!o.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!o.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>u(!0)})]})})]})}const Kq=A.createCommand();class ax extends tm{constructor(n={},i){super(n,i);ye(this,"__htmlEditor");ye(this,"__htmlEditorInitialState");vi(this,"__htmlEditor",{editor:n.htmlEditor,nodes:rc}),n.htmlEditor||bi(this,"__htmlEditor",n.html||'<p>Hey <code>{first_name, "there"}</code>,</p>')}getIcon(){return o_}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.htmlEditor=i.__htmlEditor,n.htmlEditorInitialState=i.__htmlEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__htmlEditor&&this.__htmlEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__htmlEditor,null),r=si(i,{removeCodeWrappers:!1,allowBr:!0});n.html=r}),n}decorate(){return k.jsx(An,{IndicatorIcon:qq,nodeKey:this.getKey(),wrapperStyle:"wide",children:k.jsx(FPe,{htmlEditor:this.__htmlEditor,htmlEditorInitialState:this.__htmlEditorInitialState,nodeKey:this.getKey()})})}isEmpty(){return this.__htmlEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1))}}ye(ax,"kgMenu",[{label:"Email content",desc:"Only visible when delivered by email",Icon:o_,insertCommand:Kq,matches:["email content","only email"],priority:8,postType:"post",shortcut:"/email"}]);const zPe=t=>new ax(t);function BPe({onFileChange:t,fileInputRef:e}){return k.jsx("form",{onChange:t,children:k.jsx("input",{ref:e,hidden:!0,name:"file-input",type:"file"})})}const WPe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("defs",null,J.createElement("style",null,`
|
||
.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px}
|
||
`)),J.createElement("path",{className:"a",d:"M8.25 14.25 12 18l3.75-3.75M12 6.75V18"}),J.createElement("circle",{className:"a",cx:12,cy:12,r:11.25}));function Jq({progress:t}){const e={width:`${t==null?void 0:t.toFixed(0)}%`};return k.jsx("div",{className:"h-full border border-transparent",children:k.jsx("div",{className:"relative flex h-full items-center justify-center border border-grey/20 bg-grey-50 before:pb-[12.5%] dark:bg-grey-900",children:k.jsx("div",{className:"flex w-full items-center justify-center overflow-hidden",children:k.jsx(js,{style:e})})})})}function eY({handleSelectorClick:t,fileDragHandler:e}){return k.jsx(Mu,{desc:"Click to upload a file",filePicker:()=>t(),icon:"file",isDraggedOver:e.isDraggedOver,placeholderRef:e.setRef,size:"xsmall"})}function tY({isEditing:t,title:e,titlePlaceholder:n,desc:i,descPlaceholder:r,name:o,size:s,handleFileTitle:a,handleFileDesc:l,...u}){return k.jsxs("div",{children:[k.jsxs("div",{className:"flex justify-between rounded-md border border-grey/30 p-2",children:[k.jsxs("div",{className:`flex w-full flex-col px-2 font-sans ${e||i||t?"justify-between":"justify-center"}`,...u,children:[(t||e||i)&&k.jsxs("div",{className:"flex flex-col",children:[(t||e)&&k.jsx(My,{className:"h-[30px] bg-transparent text-lg font-bold leading-none tracking-tight text-black dark:text-grey-200","data-kg-file-card":"fileTitle",maxLength:"80",placeholder:n,value:e,onChange:a}),(t||i)&&k.jsx(My,{className:"h-[26px] bg-transparent pb-1 text-[1.6rem] font-normal leading-none text-grey-700 placeholder:text-grey-500 dark:text-grey-300 dark:placeholder:text-grey-800","data-kg-file-card":"fileDescription",maxLength:"100",placeholder:r,value:i,onChange:l})]}),k.jsxs("div",{className:"!mt-0 py-1 text-sm font-medium text-grey-900 dark:text-grey-200","data-kg-file-card":"dataset",children:[o,k.jsxs("span",{className:"text-grey-700",children:[" • ",s]})]})]}),k.jsx("div",{className:`!mt-0 flex w-full max-w-[96px] items-center justify-center rounded-md bg-grey-200 dark:bg-grey-900 ${e&&i||t?"h-[96px]":e||i?"h-[64px]":"h-[40px]"}`,children:k.jsx(WPe,{className:`text-green transition-all duration-75 ease-in ${e||i||t?"size-6":"size-5"}`})})]}),!t&&k.jsx("div",{className:"absolute inset-0 z-50"})]})}function nY({isPopulated:t,fileTitle:e,fileTitlePlaceholder:n,fileDesc:i,fileDescPlaceholder:r,fileName:o,fileSize:s,fileDragHandler:a,isEditing:l,fileInputRef:u,onFileChange:f,handleFileTitle:d,handleFileDesc:h,fileUploader:g,...m}){const{isLoading:y,progress:x}=g||{},_=E=>{u&&(u.current=E.current)},S=E=>{u.current=E,_(u)},C=()=>{Wi({fileInputRef:u})};return y?k.jsx(Jq,{progress:x}):t?k.jsx(tY,{desc:i,descPlaceholder:r,handleFileDesc:h,handleFileTitle:d,isEditing:l,name:o,size:s,title:e,titlePlaceholder:n,...m}):k.jsxs(k.Fragment,{children:[k.jsx(eY,{fileDragHandler:a,handleSelectorClick:C}),k.jsx(BPe,{fileInputRef:S,setFileInputRef:_,onFileChange:f})]})}nY.propTypes={isPopulated:P.bool,fileTitle:P.string,fileTitlePlaceholder:P.string,fileDesc:P.string,fileDescPlaceholder:P.string,fileName:P.string,fileSize:P.string,fileDragHandler:P.object,isEditing:P.bool,fileInputRef:P.object,onFileChange:P.func,handleFileTitle:P.func,handleFileDesc:P.func,fileUploader:P.object},Jq.propTypes={progress:P.number},eY.propTypes={fileDragHandler:P.object,handleSelectorClick:P.func},tY.propTypes={desc:P.string,descPlaceholder:P.string,handleFileDesc:P.func,handleFileTitle:P.func,isEditing:P.bool,name:P.string,size:P.string,title:P.string,titlePlaceholder:P.string};const HPe=t=>{const e=t.split(".").pop();return t.replace(`.${e}`,"")},wE=async(t,e,n,i)=>{if(!t)return;const r=await i(t),o=t,s=o==null?void 0:o[0].name,a=o==null?void 0:o[0].size,l=r==null?void 0:r[0].url;let u={fileName:s,fileSize:a,src:l};await n.update(()=>{const f=A.$getNodeByKey(e);f.fileTitle=HPe(u.fileName),f.fileName=u.fileName,f.fileSize=u.fileSize,f.src=u.src})};function QPe({fileDesc:t,fileDescPlaceholder:e,fileName:n,fileSize:i,fileTitle:r,fileTitlePlaceholder:o,fileSrc:s,nodeKey:a,triggerFileDialog:l,initialFile:u}){const[f]=Oe.useLexicalComposerContext(),[d,h]=T.useState(!1),{fileUploader:g}=T.useContext(ft),{isSelected:m,isEditing:y}=T.useContext(rn),x=T.useRef(),[_,S]=T.useState(!1),C=g.useFileUpload("file"),E=zs({handleDrop:B});T.useEffect(()=>{(async R=>{R&&!s&&await wE([R],a,f,C.upload)})(u)},[]);const N=async Z=>{const R=Z.target.files;return f.update(()=>{const Q=A.$getNodeByKey(a);Q.src=""}),await wE(R,a,f,C.upload)};T.useEffect(()=>{s&&i&&n&&h(!0)},[n,i,s]);const M=Z=>{Z.preventDefault(),Z.stopPropagation()},I=Z=>{const R=Z.target.value;f.update(()=>{const Q=A.$getNodeByKey(a);Q.fileTitle=R})},W=Z=>{const R=Z.target.value;f.update(()=>{const Q=A.$getNodeByKey(a);Q.fileCaption=R})};T.useEffect(()=>{if(!l)return;const Z=setTimeout(()=>{Wi({fileInputRef:x}),f.update(()=>{const R=A.$getNodeByKey(a);R.triggerFileDialog=!1})});return()=>{clearTimeout(Z)}},[Wi]);async function B(Z){await wE(Z,a,f,C.upload)}return k.jsxs(k.Fragment,{children:[k.jsx(nY,{fileDesc:t,fileDescPlaceholder:e,fileDragHandler:E,fileInputRef:x,fileName:n,fileSize:i,fileTitle:r,fileTitlePlaceholder:o,fileUploader:C,handleFileDesc:W,handleFileTitle:I,isEditing:y,isPopulated:d,onFileChange:N}),k.jsx(xt,{"data-kg-card-toolbar":"file-upload",isVisible:_,children:k.jsx(Kn,{onClose:()=>S(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"file-upload",isVisible:m&&d&&!y&&!_,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-file-upload-card",icon:"edit",isActive:!1,label:"Edit",onClick:M}),k.jsx(Bn,{}),k.jsx(at,{icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>S(!0)})]})})]})}const iY=A.createCommand();class W0 extends Xg{constructor(n={},i){super(n,i);ye(this,"__triggerFileDialog",!1);ye(this,"__initialFile",null);const{triggerFileDialog:r,initialFile:o}=n;this.__triggerFileDialog=!n.src&&r||!1,this.__initialFile=o||null}getIcon(){return s_}set triggerFileDialog(n){const i=this.getWritable();i.__triggerFileDialog=n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),children:k.jsx(QPe,{fileDesc:this.fileCaption,fileDescPlaceholder:"Enter a description",fileName:this.fileName,fileSize:this.formattedFileSize,fileSrc:this.src,fileTitle:this.fileTitle,fileTitlePlaceholder:"Enter a title",initialFile:this.__initialFile,nodeKey:this.getKey(),triggerFileDialog:this.__triggerFileDialog})})}}ye(W0,"kgMenu",[{label:"File",desc:"Upload a downloadable file",Icon:s_,insertCommand:iY,insertParams:{triggerFileDialog:!0},matches:["file"],priority:15,shortcut:"/file"}]),ye(W0,"uploadType","file");const UPe=t=>new W0(t),rY=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m21 3-7 7m0-7h7v7M3 21l7-7m-7 0v7h7"})),oY=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.5,d:"M23 3H12v18h11V3Z"}),J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3H1v18h11V3Z"})),sY=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"},J.createElement("path",{d:"m14 10 8-8","data-cap":"butt"}),J.createElement("path",{d:"M21 10h-7V3"}),J.createElement("path",{d:"m10 14-8 8","data-cap":"butt"}),J.createElement("path",{d:"M10 21v-7H3"})));/*! Fast Average Color | © 2025 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */function ZPe(t){var e=t.toString(16);return e.length===1?"0"+e:e}function aY(t){return"#"+t.map(ZPe).join("")}function qPe(t){var e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128}function YPe(t){return t?VPe(t)?t:[t]:[]}function VPe(t){return Array.isArray(t[0])}function xE(t,e,n){for(var i=0;i<n.length;i++)if(XPe(t,e,n[i]))return!0;return!1}function XPe(t,e,n){switch(n.length){case 3:if(GPe(t,e,n))return!0;break;case 4:if(KPe(t,e,n))return!0;break;case 5:if(JPe(t,e,n))return!0;break;default:return!1}}function GPe(t,e,n){return t[e+3]!==255||t[e]===n[0]&&t[e+1]===n[1]&&t[e+2]===n[2]}function KPe(t,e,n){return t[e+3]&&n[3]?t[e]===n[0]&&t[e+1]===n[1]&&t[e+2]===n[2]&&t[e+3]===n[3]:t[e+3]===n[3]}function lx(t,e,n){return t>=e-n&&t<=e+n}function JPe(t,e,n){var i=n[0],r=n[1],o=n[2],s=n[3],a=n[4],l=t[e+3],u=lx(l,s,a);return s?!!(!l&&u||lx(t[e],i,a)&&lx(t[e+1],r,a)&&lx(t[e+2],o,a)&&u):u}var eDe=24;function tDe(t,e,n){for(var i={},r=n.dominantDivider||eDe,o=n.ignoredColor,s=n.step,a=[0,0,0,0,0],l=0;l<e;l+=s){var u=t[l],f=t[l+1],d=t[l+2],h=t[l+3];if(!(o&&xE(t,l,o))){var g=Math.round(u/r)+","+Math.round(f/r)+","+Math.round(d/r);i[g]?i[g]=[i[g][0]+u*h,i[g][1]+f*h,i[g][2]+d*h,i[g][3]+h,i[g][4]+1]:i[g]=[u*h,f*h,d*h,h,1],a[4]<i[g][4]&&(a=i[g])}}var m=a[0],y=a[1],x=a[2],_=a[3],S=a[4];return _?[Math.round(m/_),Math.round(y/_),Math.round(x/_),Math.round(_/S)]:n.defaultColor}function nDe(t,e,n){for(var i=0,r=0,o=0,s=0,a=0,l=n.ignoredColor,u=n.step,f=0;f<e;f+=u){var d=t[f+3],h=t[f]*d,g=t[f+1]*d,m=t[f+2]*d;l&&xE(t,f,l)||(i+=h,r+=g,o+=m,s+=d,a++)}return s?[Math.round(i/s),Math.round(r/s),Math.round(o/s),Math.round(s/a)]:n.defaultColor}function iDe(t,e,n){for(var i=0,r=0,o=0,s=0,a=0,l=n.ignoredColor,u=n.step,f=0;f<e;f+=u){var d=t[f],h=t[f+1],g=t[f+2],m=t[f+3];l&&xE(t,f,l)||(i+=d*d*m,r+=h*h*m,o+=g*g*m,s+=m,a++)}return s?[Math.round(Math.sqrt(i/s)),Math.round(Math.sqrt(r/s)),Math.round(Math.sqrt(o/s)),Math.round(s/a)]:n.defaultColor}function lY(t){return H0(t,"defaultColor",[0,0,0,0])}function H0(t,e,n){return t[e]===void 0?n:t[e]}var uY=10,_E=100;function rDe(t){return t.search(/\.svg(\?|$)/i)!==-1}function oDe(t){if(fY(t)){var e=t.naturalWidth,n=t.naturalHeight;return!t.naturalWidth&&rDe(t.src)&&(e=n=_E),{width:e,height:n}}return aDe(t)?{width:t.videoWidth,height:t.videoHeight}:hY(t)?{width:t.codedWidth,height:t.codedHeight}:{width:t.width,height:t.height}}function cY(t){return lDe(t)?"canvas":sDe(t)?"offscreencanvas":hY(t)?"videoframe":uDe(t)?"imagebitmap":t.src}function fY(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement}var dY=typeof OffscreenCanvas<"u";function sDe(t){return dY&&t instanceof OffscreenCanvas}function aDe(t){return typeof HTMLVideoElement<"u"&&t instanceof HTMLVideoElement}function hY(t){return typeof VideoFrame<"u"&&t instanceof VideoFrame}function lDe(t){return typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement}function uDe(t){return typeof ImageBitmap<"u"&&t instanceof ImageBitmap}function cDe(t,e){var n=H0(e,"left",0),i=H0(e,"top",0),r=H0(e,"width",t.width),o=H0(e,"height",t.height),s=r,a=o;if(e.mode==="precision")return{srcLeft:n,srcTop:i,srcWidth:r,srcHeight:o,destWidth:s,destHeight:a};var l;return r>o?(l=r/o,s=_E,a=Math.round(s/l)):(l=o/r,a=_E,s=Math.round(a/l)),(s>r||a>o||s<uY||a<uY)&&(s=r,a=o),{srcLeft:n,srcTop:i,srcWidth:r,srcHeight:o,destWidth:s,destHeight:a}}var fDe=typeof window>"u";function dDe(){return fDe?dY?new OffscreenCanvas(1,1):null:document.createElement("canvas")}var hDe="FastAverageColor: ";function Na(t){return Error(hDe+t)}function Q0(t,e){e||console.error(t)}var pY=function(){function t(){this.canvas=null,this.ctx=null}return t.prototype.getColorAsync=function(e,n){if(!e)return Promise.reject(Na("call .getColorAsync() without resource"));if(typeof e=="string"){if(typeof Image>"u")return Promise.reject(Na("resource as string is not supported in this environment"));var i=new Image;return i.crossOrigin=n&&n.crossOrigin||"",i.src=e,this.bindImageEvents(i,n)}else{if(fY(e)&&!e.complete)return this.bindImageEvents(e,n);var r=this.getColor(e,n);return r.error?Promise.reject(r.error):Promise.resolve(r)}},t.prototype.getColor=function(e,n){n=n||{};var i=lY(n);if(!e){var r=Na("call .getColor() without resource");return Q0(r,n.silent),this.prepareResult(i,r)}var o=oDe(e),s=cDe(o,n);if(!s.srcWidth||!s.srcHeight||!s.destWidth||!s.destHeight){var r=Na('incorrect sizes for resource "'.concat(cY(e),'"'));return Q0(r,n.silent),this.prepareResult(i,r)}if(!this.canvas&&(this.canvas=dDe(),!this.canvas)){var r=Na("OffscreenCanvas is not supported in this browser");return Q0(r,n.silent),this.prepareResult(i,r)}if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx){var r=Na("Canvas Context 2D is not supported in this browser");return Q0(r,n.silent),this.prepareResult(i)}this.ctx.imageSmoothingEnabled=!1}this.canvas.width=s.destWidth,this.canvas.height=s.destHeight;try{this.ctx.clearRect(0,0,s.destWidth,s.destHeight),this.ctx.drawImage(e,s.srcLeft,s.srcTop,s.srcWidth,s.srcHeight,0,0,s.destWidth,s.destHeight);var a=this.ctx.getImageData(0,0,s.destWidth,s.destHeight).data;return this.prepareResult(this.getColorFromArray4(a,n))}catch(l){var r=Na("security error (CORS) for resource ".concat(cY(e),`.
|
||
Details: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image`));return Q0(r,n.silent),n.silent||console.error(l),this.prepareResult(i,r)}},t.prototype.getColorFromArray4=function(e,n){n=n||{};var i=4,r=e.length,o=lY(n);if(r<i)return o;var s=r-r%i,a=(n.step||1)*i,l;switch(n.algorithm||"sqrt"){case"simple":l=nDe;break;case"sqrt":l=iDe;break;case"dominant":l=tDe;break;default:throw Na("".concat(n.algorithm," is unknown algorithm"))}return l(e,s,{defaultColor:o,ignoredColor:YPe(n.ignoredColor),step:a,dominantDivider:n.dominantDivider})},t.prototype.prepareResult=function(e,n){var i=e.slice(0,3),r=[e[0],e[1],e[2],e[3]/255],o=qPe(e);return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+i.join(",")+")",rgba:"rgba("+r.join(",")+")",hex:aY(i),hexa:aY(e),isDark:o,isLight:!o,error:n}},t.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},t.prototype.bindImageEvents=function(e,n){var i=this;return new Promise(function(r,o){var s=function(){u();var f=i.getColor(e,n);f.error?o(f.error):r(f)},a=function(){u(),o(Na('Error loading image "'.concat(e.src,'"')))},l=function(){u(),o(Na('Image "'.concat(e.src,'" loading aborted')))},u=function(){e.removeEventListener("load",s),e.removeEventListener("error",a),e.removeEventListener("abort",l)};e.addEventListener("load",s),e.addEventListener("error",a),e.addEventListener("abort",l)})},t}();function gY({alignment:t,buttonEnabled:e,buttonText:n,buttonUrl:i,showBackgroundImage:r,backgroundImageSrc:o,backgroundSize:s,backgroundColor:a,buttonColor:l,buttonTextColor:u,textColor:f,isEditing:d,fileUploader:h,handleAlignment:g,handleButtonText:m,handleButtonEnabled:y,handleShowBackgroundImage:x,handleHideBackgroundImage:_,handleClearBackgroundImage:S,handleBackgroundColor:C,handleButtonColor:E,handleLayout:N,handleTextColor:M,isPinturaEnabled:I,layout:W,onFileChange:B,openImageEditor:Z,imageDragHandler:R,headerTextEditor:Q,headerTextEditorInitialState:V,subheaderTextEditor:H,subheaderTextEditorInitialState:j,isSwapped:q,handleSwapLayout:Y,handleBackgroundSize:K,handleButtonTextBlur:te,handleButtonUrlBlur:oe,handleButtonUrl:ce,setFileInputRef:U}){const[F,se]=T.useState(!1),[le,pe]=T.useState(!1),je=ae=>ae==="transparent"?"":yE(Mt(ae)).hex(),He=({r:ae,g:Ze,b:Ut,a:ii})=>{const Nt=ii/255;return B0({r:ae*Nt+255*(1-Nt),g:Ze*Nt+255*(1-Nt),b:Ut*Nt+255*(1-Nt)}).hex()};T.useEffect(()=>{o&&W!=="split"&&new pY().getColorAsync(o,{defaultColor:[255,255,255,255]}).then(ae=>{const Ze=He({r:ae.value[0],g:ae.value[1],b:ae.value[2],a:ae.value[3]});M(je(Ze))})},[o,W==="split"]),T.useEffect(()=>{a&&W==="split"&&C(a,je(a))},[W==="split"]);const ot=[{label:"Regular",name:"regular",Icon:Tp,dataTestId:"header-layout-regular"},{label:"Wide",name:"wide",Icon:$p,dataTestId:"header-layout-wide"},{label:"Full",name:"full",Icon:Ep,dataTestId:"header-layout-full"},{label:"Split",name:"split",Icon:oY,dataTestId:"header-layout-split"}],ht=[{label:"Left",name:"left",Icon:R0,dataTestId:"header-alignment-left"},{label:"Center",name:"center",Icon:L0,dataTestId:"header-alignment-center"}],{isLoading:ve,progress:De}=h||{},st=W==="split"?"Heading":"Enter heading text",It=W==="split"?"Subheading text":"Enter subheading text",Mt=ae=>ae==="accent"?$u().trim():ae.trim(),Wt=()=>o&&W!=="split"&&f?{backgroundImage:`url(${o})`,backgroundSize:"cover",backgroundPosition:"center center",backgroundColor:"white",color:Mt(f)}:a&&f?{backgroundColor:Mt(a),color:Mt(f)}:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3ERectangle%3C/title%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23F2F6F8' d='M0 0h24v24H0z'/%3E%3Cpath fill='%23E5ECF0' d='M0 0h12v12H0zM12 12h12v12H12z'/%3E%3C/g%3E%3C/svg%3E")`,backgroundColor:"transparent",color:Mt(f)},Ue=ae=>{ae.stopPropagation(),s==="cover"?(K("contain"),ui("header Card Toggle Size",{size:"contain"})):(K("cover"),ui("header Card Toggle Size",{size:"cover"}))},St=()=>{ui("header Card Toggle Swapped",{swapped:!q}),Y()},Lt=()=>{ui("header card button toggled",{buttonEnabled:!e}),y()},Be=s==="contain"&&o?"contain":"cover",Re=ae=>{if(ae==="regular"||ae==="wide")return"medium";if(ae==="full")return"large";if(ae==="split")return"medium"};return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"flex w-full font-sans text-black transition-colors ease-in-out","data-testid":"header-card-container",style:Wt(),children:[k.jsxs("div",{className:nt("flex w-full flex-col transition-colors ease-in-out sm:flex-row",W==="split"&&q&&"flex-col-reverse sm:flex-row-reverse",(W==="full"||W==="split"&&Be==="contain")&&"mx-auto w-[calc(740px+4rem)] xs:w-[calc(740px+8rem)] md:w-[calc(740px+12rem)] lg:w-[calc(740px+22rem)] xl:w-[calc(740px+40rem)]",o&&W==="split"&&Be==="contain"&&"items-center"),"data-testid":"header-card-content",children:[W==="split"&&k.jsx(tw,{additionalActions:k.jsx(k.Fragment,{children:k.jsx(pl,{dataTestId:"media-upload-size",Icon:s==="cover"?sY:rY,label:s==="cover"?"Contain":"Cover",onClick:Ue})}),alt:"Background image",backgroundSize:s,className:nt("sm:w-1/2",Be==="contain"&&"sm:my-10 md:my-14",!q&&Be==="contain"&&"mt-10 px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:pl-[calc(92px-(12rem/2))] sm:pr-0 md:pl-[calc(92px-(12rem/2))] lg:pl-0",q&&Be==="contain"&&"mb-10 px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:pl-0 sm:pr-[calc(92px-(12rem/2))] md:pr-[calc(92px-(12rem/2))] lg:pr-0"),desc:"Click to select an image",dragHandler:R,errors:h==null?void 0:h.errors,icon:"image",imgClassName:`${Be==="cover"&&"aspect-[3/2]"}`,isEditing:d,isLoading:ve,isPinturaEnabled:I,mimeTypes:["image/*"],openImageEditor:Z,progress:De,size:"large",src:o,onFileChange:B,onRemoveMedia:S}),k.jsxs("div",{className:nt("mx-auto flex w-full flex-1 flex-col justify-center",t==="center"&&"items-center",W==="regular"&&"p-[4rem] sm:py-[6rem] md:px-[6rem] md:py-[10rem] lg:px-[8rem]",W==="wide"&&"max-w-[740px] p-[4rem] sm:py-[6rem] md:px-[8rem] md:py-[14rem] lg:px-0",W==="full"&&"px-[calc(32px-(4rem/2))] py-[4rem] xs:px-[calc(92px-(8rem/2))] sm:py-[6rem] md:px-[calc(92px-(12rem/2))] md:py-[12rem] lg:px-0 lg:py-[14rem] xl:py-[18rem]",W==="split"&&"p-[4rem] sm:py-[6rem] md:px-[6rem] md:py-[12rem] lg:px-[8rem] lg:py-[16rem]",!q&&W==="split"&&Be==="contain"&&"px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:px-[calc(92px-(12rem/2))] md:pr-[calc(92px-(12rem/2))] lg:pr-0",q&&W==="split"&&Be==="contain"&&"px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:px-[calc(92px-(12rem/2))] md:pl-[calc(92px-(12rem/2))] lg:pl-0"),children:[k.jsx(Er,{autoFocus:!0,dataTestId:"header-heading-editor",focusNext:H,hasSettingsPanel:!0,hiddenFormats:["bold"],initialEditor:Q,initialEditorState:V,nodes:"minimal",placeholderClassName:nt("!font-bold !leading-[1.1] !tracking-tight opacity-50",t==="center"&&"text-center",W==="regular"&&"text-3xl sm:text-4xl",(W==="wide"||W==="split")&&"text-3xl sm:text-4xl md:text-5xl",W==="full"&&"text-3xl sm:text-4xl md:text-5xl lg:text-6xl"),placeholderText:st,singleParagraph:!0,style:{color:je(a)},textClassName:nt("koenig-lexical-heading relative w-full whitespace-normal font-bold caret-current",!d&&fs(Q)?"hidden":"peer",t==="center"&&"text-center [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left",W==="regular"&&"heading-small",(W==="wide"||W==="split")&&"heading-medium",W==="full"&&"heading-large")}),k.jsx(Er,{dataTestId:"header-subheader-editor",defaultKoenigEnterBehavior:!0,hasSettingsPanel:!0,initialEditor:H,initialEditorState:j,nodes:"minimal",placeholderClassName:nt("!font-medium !leading-snug !tracking-tight opacity-60",t==="center"&&"text-center",W==="regular"&&"text-lg sm:text-xl",(W==="wide"||W==="split")&&"text-lg leading-snug sm:text-xl md:text-[2.2rem]",W==="full"&&"text-lg sm:text-xl md:text-[2.2rem] lg:text-[2.6rem] xl:max-w-[880px]"),placeholderText:It,singleParagraph:!0,style:{color:je(a)},textClassName:nt("koenig-lexical-subheading relative w-full whitespace-normal caret-current",!d&&fs(H)?"hidden":"peer",t==="center"&&"text-center [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left",W==="regular"&&"subheading-small !mt-2",(W==="wide"||W==="split")&&"subheading-medium !mt-3",W==="full"&&"subheading-large !mt-3 xl:max-w-[880px]")}),e&&k.jsx("div",{className:`text-${t} w-full ${W==="regular"?"peer-[.koenig-lexical]:mt-8":W==="wide"?"peer-[.koenig-lexical]:mt-8 md:w-2/3":W==="full"?"peer-[.koenig-lexical]:mt-8 md:w-2/3 peer-[.koenig-lexical]:md:mt-8 xl:w-1/2":"max-w-[500px] peer-[.koenig-lexical]:mt-8 peer-[.koenig-lexical]:md:mt-8"}`,children:k.jsx(Ca,{dataTestId:"header-card-button",disabled:!0,placeholder:"Add button text",size:Re(W),style:l?{backgroundColor:Mt(l),color:Mt(u)}:{backgroundColor:"#000000",color:"#ffffff"},value:n})})]})]}),!d&&k.jsx(ms,{})]}),d&&k.jsxs(Fs,{cardWidth:W,className:"mt-0",children:[k.jsx(Ea,{buttons:ot,label:"Layout",selectedName:W,onClick:N}),W==="split"&&k.jsx(fo,{dataTestId:"header-swapped",isChecked:q,label:"Flip Layout",onChange:St}),k.jsx(Ea,{buttons:ht,label:"Alignment",selectedName:t,onClick:g}),k.jsx(c0,{dataTestId:"header-background-color",eyedropper:W==="split",hasTransparentOption:!0,isExpanded:F,label:"Background",swatches:[W!=="split"&&{title:"Image",customContent:k.jsxs("button",{className:nt("group relative flex size-6 shrink-0 items-center justify-center rounded-full border border-grey-300 bg-grey-100 text-black",r&&"outline outline-2 outline-green"),"data-testid":"header-background-image-toggle",title:"Image",type:"button",onClick:()=>{x(),se(!1),pe(!1)},children:[k.jsx(C6,{className:"size-[1.4rem]"}),k.jsx(Cu,{label:"Image"})]})},{title:"Black",hex:"#000000"},{title:"Grey",hex:"#F0F0F0"},{title:"Brand color",accent:!0}].filter(Boolean),value:r&&W!=="split"?"image":a,onPickerChange:ae=>C(ae,je(ae)),onSwatchChange:ae=>{C(ae,je(ae)),se(!1)},onTogglePicker:ae=>{ae&&(W!=="split"&&_(),a&&C(a,je(a))),se(ae),ae&&pe(!ae)},children:k.jsx(iw,{alt:"Background image",borderStyle:"rounded",className:nt("min-w-[296px]",(!r||W==="split")&&"hidden"),errors:h==null?void 0:h.errors,hideLabel:W!=="split",icon:"file",imgClassName:"w-full",isDraggedOver:R==null?void 0:R.isDraggedOver,isLoading:ve,isPinturaEnabled:I,label:"Image",mimeTypes:["image/*"],openImageEditor:Z,placeholderRef:R==null?void 0:R.setRef,progress:De,setFileInputRef:U,size:"xsmall",src:o,stacked:!0,onFileChange:B,onRemoveMedia:()=>{S(),M(je(a))}})}),k.jsx(fo,{dataTestId:"header-button-toggle",isChecked:e,label:"Button",onChange:Lt}),e&&k.jsxs(k.Fragment,{children:[k.jsx(c0,{dataTestId:"header-button-color",eyedropper:W==="split",isExpanded:le,label:"Button Color",swatches:[{title:"White",hex:"#ffffff"},{title:"Black",hex:"#000000"},{title:"Brand color",accent:!0}],value:l,onPickerChange:ae=>E(ae,je(ae)),onSwatchChange:ae=>{E(ae,je(ae)),pe(!1)},onTogglePicker:ae=>{pe(ae),ae&&se(!ae)}}),k.jsx(ef,{dataTestId:"header-button-text",label:"Button text",placeholder:"Add button text",value:n,onBlur:te,onChange:m}),k.jsx(xh,{dataTestId:"header-button-url",label:"Button URL",value:i,onChange:ce})]})]})]})}gY.propTypes={alignment:P.oneOf(["left","center"]),buttonColor:P.string,buttonText:P.string,buttonTextColor:P.string,buttonEnabled:P.bool,buttonPlaceholder:P.string,backgroundImageSrc:P.string,backgroundSize:P.oneOf(["cover","contain"]),backgroundColor:P.string,textColor:P.string,showBackgroundImage:P.bool,isEditing:P.bool,isPinturaEnabled:P.bool,fileUploader:P.object,fileInputRef:P.object,handleLayout:P.func,handleAlignment:P.func,handleButtonText:P.func,handleClearBackgroundImage:P.func,handleBackgroundColor:P.func,handleShowBackgroundImage:P.func,handleHideBackgroundImage:P.func,handleButtonColor:P.func,handleTextColor:P.func,layout:P.oneOf(["regular","wide","full","split"]),openFilePicker:P.func,onFileChange:P.func,openImageEditor:P.func,imageDragHandler:P.object,headerTextEditor:P.object,headerTextEditorInitialState:P.object,subheaderTextEditor:P.object,subheaderTextEditorInitialState:P.object,isSwapped:P.bool,handleSwapLayout:P.func,handleBackgroundSize:P.func,setFileInputRef:P.func,handleButtonTextBlur:P.func};function pDe({alignment:t,backgroundColor:e,backgroundImageSrc:n,backgroundImageWidth:i,backgroundImageHeight:r,backgroundSize:o,buttonColor:s,buttonText:a,buttonTextColor:l,buttonUrl:u,buttonEnabled:f,nodeKey:d,header:h,headerTextEditor:g,headerTextEditorInitialState:m,layout:y,subheader:x,subheaderTextEditor:_,subheaderTextEditorInitialState:S,textColor:C,isSwapped:E,accentColor:N}){const[M]=Oe.useLexicalComposerContext(),{cardConfig:I}=T.useContext(ft),{fileUploader:W}=T.useContext(ft),{isEditing:B,isSelected:Z}=T.useContext(rn),[R,Q]=T.useState(!1),[V,H]=T.useState(!!n),[j,q]=T.useState(n),[Y,K]=T.useState(!1),{isEnabled:te,openEditor:oe}=lw({config:I.pinturaConfig}),ce=T.useRef(null);T.useEffect(()=>{y!=="split"&&H(!!n),y==="split"&&!n&&j&&st()},[y]),T.useEffect(()=>{let ae=$u();M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.accentColor=ae})},[M,d]);const U=ae=>{M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.alignment=ae})},F=ae=>{M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.backgroundSize=ae})},se=ae=>{ae.preventDefault(),ae.stopPropagation(),M.dispatchCommand(Lo,{cardKey:d,focusEditor:!1})},le=W.useFileUpload("image"),pe=async ae=>{M.update(()=>{const Nt=A.$getNodeByKey(d);Nt.backgroundImageSrc=""});const{imageSrc:Ze,width:Ut,height:ii}=await V6(ae,le.upload);M.update(()=>{const Nt=A.$getNodeByKey(d);Nt.backgroundImageSrc=Ze,Nt.backgroundImageWidth=Ut,Nt.backgroundImageHeight=ii}),q(Ze),K(!1)},je=async ae=>{pe(ae.target.files)},He=zs({handleDrop:pe}),ot=ae=>{M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.layout=ae})},ht=ae=>{M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.buttonText=ae.target.value})},ve=ae=>{ae.target.value||M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.buttonText=""})},De=()=>{M.update(()=>{const ae=A.$getNodeByKey(d);ae.backgroundImageSrc=""}),K(!0)},st=()=>{H(!0),j&&!Y?M.update(()=>{const ae=A.$getNodeByKey(d);ae.backgroundImageSrc=j}):Wi({fileInputRef:ce})},It=()=>{H(!1),M.update(()=>{const ae=A.$getNodeByKey(d);ae.backgroundImageSrc=""})},Mt=(ae,Ze)=>{M.update(()=>{const Ut=A.$getNodeByKey(d);Ut.backgroundColor=ae,Ut.textColor=Ze,y!=="split"&&It()})},Wt=ae=>{M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.textColor=ae})},Ue=(ae,Ze)=>{M.update(()=>{const Ut=A.$getNodeByKey(d);Ut.buttonColor=ae,Ut.buttonTextColor=Ze})},St=()=>{M.update(()=>{const ae=A.$getNodeByKey(d);ae.swapped=!E})},Lt=()=>{M.update(()=>{const ae=A.$getNodeByKey(d);ae.buttonEnabled=!f})},Be=ae=>{M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.buttonUrl=ae})},Re=ae=>{ae.target.value||M.update(()=>{const Ze=A.$getNodeByKey(d);Ze.buttonUrl="https://"})};return T.useEffect(()=>{g.setEditable(B),_.setEditable(B)},[B,g,_]),k.jsxs(k.Fragment,{children:[k.jsx(gY,{alignment:t,backgroundColor:e,backgroundImageSrc:n,backgroundSize:o,buttonColor:s,buttonEnabled:f,buttonText:a,buttonTextColor:l,buttonUrl:u,fileUploader:le,handleAlignment:U,handleBackgroundColor:Mt,handleBackgroundSize:F,handleButtonColor:Ue,handleButtonEnabled:Lt,handleButtonText:ht,handleButtonTextBlur:ve,handleButtonUrl:Be,handleButtonUrlBlur:Re,handleClearBackgroundImage:De,handleHideBackgroundImage:It,handleLayout:ot,handleShowBackgroundImage:st,handleSwapLayout:St,handleTextColor:Wt,header:h,headerTextEditor:g,headerTextEditorInitialState:m,imageDragHandler:He,isEditing:B,isPinturaEnabled:te,isSwapped:E,layout:y,openImageEditor:oe,setFileInputRef:ae=>ce.current=ae,showBackgroundImage:V,subheader:x,subheaderTextEditor:_,subheaderTextEditorInitialState:S,textColor:C,onFileChange:je}),k.jsx(xt,{"data-kg-card-toolbar":"signup",isVisible:R,children:k.jsx(Kn,{onClose:()=>Q(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"signup",isVisible:Z&&!B&&!R,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:se}),k.jsx(Bn,{hide:!I.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!I.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>Q(!0)})]})})]})}const gDe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",style:{enableBackground:"new 0 0 24 24"},xmlSpace:"preserve",...t},J.createElement("path",{d:"M12.001 16.5a.75.75 0 0 1-.75-.75V5.561l-3.22 3.22a.746.746 0 0 1-1.06-.001c-.142-.141-.22-.33-.22-.53s.078-.389.22-.53l4.499-4.5a.74.74 0 0 1 .245-.163l.025-.009a.743.743 0 0 1 .522 0l.02.007c.097.04.179.095.25.166l4.499 4.499c.142.141.22.33.22.53s-.078.389-.22.53a.749.749 0 0 1-1.06 0l-3.22-3.22v10.19a.75.75 0 0 1-.75.75z"}),J.createElement("path",{d:"M3.751 21a3.754 3.754 0 0 1-3.75-3.75v-1.5a.75.75 0 0 1 1.5 0v1.5a2.252 2.252 0 0 0 2.25 2.25h16.5a2.252 2.252 0 0 0 2.25-2.25v-1.5a.75.75 0 0 1 1.5 0v1.5a3.754 3.754 0 0 1-3.75 3.75h-16.5z"}));function mY({progress:t}){const e={width:`${t==null?void 0:t.toFixed(0)}%`};return k.jsx("div",{className:"h-full border border-transparent",children:k.jsx("div",{className:"relative flex h-[120px] items-center justify-center border border-grey/20 bg-grey-50 before:pb-[12.5%] dark:bg-grey-900",children:k.jsx("div",{className:"flex w-full items-center justify-center overflow-hidden",children:k.jsx(js,{style:e})})})})}function vY({onFileChange:t,backgroundImageSrc:e,type:n,handleClearBackgroundImage:i,fileInputRef:r,openFilePicker:o,isUploading:s,progress:a}){return s?k.jsx(mY,{progress:a}):k.jsxs(k.Fragment,{children:[k.jsx("form",{onChange:t,children:k.jsx("input",{ref:r,accept:"image/*",hidden:!0,name:"image-input",type:"file"})}),n==="image"&&k.jsx("div",{className:"w-full",children:k.jsx("div",{className:"relative",children:k.jsx("div",{className:"flex w-full items-center justify-center",children:e?k.jsx(k.Fragment,{children:k.jsxs("div",{className:"group relative mb-4 w-full rounded-md",children:[k.jsx("div",{className:"absolute inset-0 rounded-md bg-gradient-to-t from-black/0 via-black/5 to-black/30 opacity-0 transition-all group-hover:opacity-100"}),k.jsx("div",{className:"absolute right-5 top-5 flex opacity-0 transition-all group-hover:opacity-100",children:k.jsx("button",{className:"pointer-events-auto flex h-8 w-9 cursor-pointer items-center justify-center rounded-md bg-white/90 transition-all hover:bg-white",type:"button",onClick:i,children:k.jsx(Kc,{className:"size-5 fill-grey-900 stroke-[3px] transition-all ease-linear group-hover:scale-105"})})}),k.jsx("img",{alt:"backgroundHeaderImage",className:"max-h-64 w-full rounded-md object-cover","data-testid":"image-picker-background",src:e})]})}):k.jsxs("button",{className:"group flex h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-md border border-grey-100 bg-grey-50 dark:border-grey-800 dark:bg-grey-900",type:"button",onClick:o,children:[k.jsx(gDe,{className:"size-5 fill-grey-700 stroke-[3px] transition-all ease-linear group-hover:scale-105"}),k.jsx("span",{className:"px-1 text-[1.35rem] font-medium text-grey-700",children:"Click to upload background image"})]})})})})]})}mY.propTypes={progress:P.number},vY.propTypes={backgroundImageSrc:P.string,fileInputRef:P.object,handleClearBackgroundImage:P.func,isUploading:P.bool,openFilePicker:P.func,progress:P.number,onFileChange:P.func};const mDe={dark:"bg-black",light:"bg-grey-100",accent:"bg-accent",image:"bg-grey-300 dark:bg-grey-950 bg-gradient-to-t from-black/0 via-black/5 to-black/30"},ux={dark:"text-white caret-white",light:"text-black caret-black",accent:"text-white caret-white kg-header-accent",image:"text-white caret-white"};function bY({isEditing:t,size:e,subheader:n,button:i,buttonText:r,buttonUrl:o,handleColorSelector:s,handleSizeSelector:a,handleButtonText:l,handleButtonUrl:u,backgroundImageSrc:f,onFileChange:d,handleClearBackgroundImage:h,fileInputRef:g,openFilePicker:m,type:y,header:x,headerTextEditor:_,subheaderTextEditor:S,fileUploader:C,headerTextEditorInitialState:E,subheaderTextEditorInitialState:N,handleButtonToggle:M}){const I=[{label:"S",name:"small"},{label:"M",name:"medium"},{label:"L",name:"large"}],W=[{label:"Dark",name:"dark",color:"bg-black"},{label:"Light",name:"light",color:"bg-grey-50"},{label:"Accent",name:"accent",color:"bg-accent"},{label:"Background Image",name:"image",color:"bg-grey-50"}],{isLoading:B,progress:Z}=C||{},R="Enter heading text",Q="Enter subheading text",V="Add button text";return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:`flex flex-col items-center justify-center text-center font-sans transition-colors ease-in-out ${e==="small"?"min-h-[40vh] p-[14vmin]":e==="medium"?"min-h-[60vh] p-[12vmin]":"min-h-[80vh] p-[18vmin]"} ${mDe[y]} `,style:f&&y==="image"?{backgroundImage:`url(${f})`,backgroundSize:"cover",backgroundPosition:"center center",backgroundColor:"bg-grey-950"}:null,children:[(t||!!x||!fs(_))&&k.jsx(Er,{autoFocus:!0,focusNext:S,hasSettingsPanel:!0,initialEditor:_,initialEditorState:E,nodes:"minimal",placeholderClassName:nt("!text-center !font-bold !leading-[1.1] !tracking-tight opacity-50",e==="small"&&"text-3xl sm:text-4xl md:text-5xl",(e==="medium"||e==="large")&&"text-3xl sm:text-4xl md:text-5xl lg:text-6xl",ux[y]),placeholderText:R,singleParagraph:!0,textClassName:nt("koenig-lexical-heading relative w-full whitespace-normal text-center font-bold [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left",e==="small"&&"heading-medium",(e==="medium"||e==="large")&&"heading-large",ux[y])}),(t||!!n||!fs(S))&&k.jsx(Er,{hasSettingsPanel:!0,initialEditor:S,initialEditorState:N,nodes:"minimal",placeholderClassName:nt("!text-center !font-medium !leading-snug !tracking-tight opacity-50",e==="small"&&"text-lg sm:text-xl",e==="medium"&&"text-lg sm:text-xl md:text-[2.2rem]",e==="large"&&"text-lg sm:text-xl md:text-[2.2rem] lg:text-2xl",ux[y]),placeholderText:Q,singleParagraph:!0,textClassName:nt("koenig-lexical-subheading relative w-full whitespace-normal text-center [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left",e==="small"&&"subheading-small !mt-2",e==="medium"&&"subheading-medium !mt-3",e==="large"&&"subheading-large !mt-3",ux[y])}),i?k.jsx("div",{className:`${e==="small"?"mt-6":e==="medium"?"mt-8":"mt-10"}`,children:i&&y==="light"&&k.jsx(Ca,{dataTestId:"header-card-button",placeholder:V,size:e,value:r})||i&&k.jsx(Ca,{color:"white",dataTestId:"header-card-button",placeholder:V,size:e,value:r})}):void 0,!t&&k.jsx(ms,{})]}),t&&k.jsxs(Fs,{className:"mt-0",children:[k.jsx(Ea,{buttons:I,label:"Size",selectedName:e,onClick:a}),k.jsx(nw,{buttons:W,dataTestId:"header-background-color",label:"Style",selectedName:y,onClick:s}),k.jsx(vY,{backgroundImageSrc:f,fileInputRef:g,handleClearBackgroundImage:h,isUploading:B,openFilePicker:m,progress:Z,type:y,onFileChange:d}),k.jsx(fo,{dataTestId:"header-button-toggle",isChecked:i,label:"Button",onChange:M}),i?k.jsxs(k.Fragment,{children:[k.jsx(ef,{dataTestId:"header-button-text",label:"Button text",placeholder:"Add button text",value:r,onChange:l}),k.jsx(xh,{dataTestId:"header-button-url",label:"Button URL",value:o,onChange:u})]}):null]})]})}bY.propTypes={size:P.oneOf(["small","medium","large"]),type:P.oneOf(["dark","light","accent","image"]),heading:P.string,subheader:P.string,button:P.bool,buttonText:P.string,buttonUrl:P.string,backgroundImageSrc:P.string,isEditing:P.bool,isUploading:P.bool,progress:P.number,fileUploader:P.object,header:P.string,fileInputRef:P.object,handleSizeSelector:P.func,handleColorSelector:P.func,handleButtonToggle:P.func,handleButtonText:P.func,handleButtonUrl:P.func,handleClearBackgroundImage:P.func,openFilePicker:P.func,onFileChange:P.func,headerTextEditor:P.object,headerTextEditorInitialState:P.object,subheaderTextEditor:P.object,subheaderTextEditorInitialState:P.object};function vDe({nodeKey:t,backgroundImageSrc:e,button:n,subheaderTextEditorInitialState:i,buttonText:r,buttonUrl:o,type:s,headerTextEditorInitialState:a,header:l,subheader:u,headerTextEditor:f,subheaderTextEditor:d,size:h}){const[g]=Oe.useLexicalComposerContext(),{cardConfig:m}=T.useContext(ft),{fileUploader:y}=T.useContext(ft),{isEditing:x,setEditing:_,isSelected:S}=T.useContext(rn),[C,E]=T.useState(!1),N=q=>{q.preventDefault(),q.stopPropagation(),g.dispatchCommand(Lo,{cardKey:t,focusEditor:!1})},M=y.useFileUpload("image"),I=async q=>{const Y=q.target.files;g.update(()=>{const te=A.$getNodeByKey(t);te.backgroundImageSrc=""});const{imageSrc:K}=await V6(Y,M.upload);g.update(()=>{const te=A.$getNodeByKey(t);te.backgroundImageSrc=K})},W=T.useRef(null),B=()=>{W.current.click()},Z=q=>{q==="image"&&e===""&&B(),g.update(()=>{const Y=A.$getNodeByKey(t);Y.style=q})},R=q=>{g.update(()=>{const Y=A.$getNodeByKey(t);Y.size=q})},Q=q=>{q.stopPropagation(),_(!0),g.update(()=>{const Y=A.$getNodeByKey(t);Y.buttonEnabled=q.target.checked})},V=q=>{g.update(()=>{const Y=A.$getNodeByKey(t);Y.buttonText=q.target.value})},H=q=>{g.update(()=>{const Y=A.$getNodeByKey(t);Y.buttonUrl=q})},j=()=>{g.update(()=>{const q=A.$getNodeByKey(t);q.backgroundImageSrc=""})};return T.useEffect(()=>{f.setEditable(x),d.setEditable(x)},[x,f,d]),k.jsxs(k.Fragment,{children:[k.jsx(bY,{backgroundImageSrc:e,button:n,buttonText:r,buttonUrl:o,fileInputRef:W,fileUploader:M,handleButtonText:V,handleButtonToggle:Q,handleButtonUrl:H,handleClearBackgroundImage:j,handleColorSelector:Z,handleSizeSelector:R,header:l,headerTextEditor:f,headerTextEditorInitialState:a,isEditing:x,openFilePicker:B,size:h,subheader:u,subheaderTextEditor:d,subheaderTextEditorInitialState:i,type:s,onFileChange:I}),k.jsx(xt,{"data-kg-card-toolbar":"header",isVisible:C,children:k.jsx(Kn,{onClose:()=>E(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"header",isVisible:S&&!x&&!C,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:N}),k.jsx(Bn,{hide:!m.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!m.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>E(!0)})]})})]})}const OE=A.createCommand();class cx extends Gg{constructor(n={},i){super(n,i);ye(this,"__headerTextEditor");ye(this,"__subheaderTextEditor");ye(this,"__headerTextEditorInitialState");ye(this,"__subheaderTextEditorInitialState");vi(this,"__headerTextEditor",{editor:n.headerTextEditor,nodes:Qi}),vi(this,"__subheaderTextEditor",{editor:n.subheaderTextEditor,nodes:Qi}),!n.headerTextEditor&&n.header&&bi(this,"__headerTextEditor",`${n.header}`),!n.subheaderTextEditor&&n.subheader&&bi(this,"__subheaderTextEditor",`${n.subheader}`)}getIcon(){return iv}exportJSON(){const n=super.exportJSON();return this.__headerTextEditor&&this.__headerTextEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__headerTextEditor,null),r=si(i,{firstChildInnerContent:!0,allowBr:!0});n.header=r}),this.__subheaderTextEditor&&this.__subheaderTextEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__subheaderTextEditor,null),r=si(i,{firstChildInnerContent:!0,allowBr:!0});n.subheader=r}),n}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.headerTextEditor=i.__headerTextEditor,n.subheaderTextEditor=i.__subheaderTextEditor,n}getCardWidth(){const n=this.version;if(n===1)return"full";if(n===2){const i=this.layout;return i==="split"?"full":i}}decorate(){if(this.version===1)return k.jsx(An,{nodeKey:this.getKey(),width:this.getCardWidth(),children:k.jsx(vDe,{backgroundImageSrc:this.backgroundImageSrc,button:this.buttonEnabled,buttonText:this.buttonText,buttonUrl:this.buttonUrl,header:this.header,headerTextEditor:this.__headerTextEditor,headerTextEditorInitialState:this.__headerTextEditorInitialState,nodeKey:this.getKey(),size:this.size,subheader:this.subheader,subheaderTextEditor:this.__subheaderTextEditor,subheaderTextEditorInitialState:this.__subheaderTextEditorInitialState,type:this.style})});if(this.version===2)return k.jsx(An,{nodeKey:this.getKey(),width:this.getCardWidth(),children:k.jsx(pDe,{accentColor:this.accentColor,alignment:this.alignment,backgroundColor:this.backgroundColor,backgroundImageHeight:this.backgroundImageHeight,backgroundImageSrc:this.backgroundImageSrc,backgroundImageWidth:this.backgroundImageWidth,backgroundSize:this.backgroundSize,buttonColor:this.buttonColor,buttonEnabled:this.buttonEnabled,buttonText:this.buttonText,buttonTextColor:this.buttonTextColor,buttonUrl:this.buttonUrl,header:this.header,headerTextEditor:this.__headerTextEditor,headerTextEditorState:this.__headerTextEditorInitialState,isSwapped:this.swapped,layout:this.layout,nodeKey:this.getKey(),subheader:this.subheader,subheaderTextEditor:this.__subheaderTextEditor,subheaderTextEditorInitialState:this.__subheaderTextEditorInitialState,subheaderTextEditorState:this.__subheaderTextEditorInitialState,textColor:this.textColor})})}isEmpty(){const n=this.__headerTextEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1)),i=this.__subheaderTextEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1));return n&&i&&(!this.buttonEnabled||!this.buttonText&&!this.buttonUrl)&&!this.backgroundImageSrc}}ye(cx,"kgMenu",[{label:"Header1",desc:"Add a header",Icon:iv,insertCommand:OE,matches:["v1_header","v1_heading"],priority:11,insertParams:()=>({version:1}),isHidden:({config:n})=>{var i;return((i=n==null?void 0:n.deprecated)==null?void 0:i.headerV1)??!0},shortcut:"/header"},{label:"Header",desc:"Add a header",Icon:iv,insertCommand:OE,matches:["header","heading"],priority:11,insertParams:()=>({version:2}),shortcut:"/header"}]);const bDe=t=>new cx(t),kDe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24",...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21.073 5.727v11.75m-3.346-1.959 3.137 2.755L24 15.518m-10.454 2.755V5.727h-.966l-4.825 11.65H6.79L1.965 5.726H1v12.546"}));function kY({isOpen:t,onClose:e,children:n}){const i=r=>{r.stopPropagation(),r.preventDefault(),r.key==="Escape"&&e()};return t?k.jsx(Gc,{children:k.jsxs("div",{className:"fixed left-0 top-0 z-40 flex size-full items-start justify-center overflow-auto",role:"dialog","aria-modal":!0,onKeyDown:i,children:[k.jsx("div",{className:"fixed inset-0 z-40 h-[100vh] bg-black opacity-60",onClick:e}),k.jsxs("div",{className:"relative z-50 my-8 w-full max-w-[550px] rounded-lg bg-white drop-shadow-2xl dark:bg-black",children:[k.jsx("button",{"aria-label":"Close dialog",className:"absolute right-6 top-6 cursor-pointer",type:"button",autoFocus:!0,children:k.jsx(vh,{className:"size-4 stroke-2 text-grey-400",onClick:e})}),n]})]})}):null}kY.propTypes={isOpen:P.bool,onClose:P.func,children:P.node};function SE({value:t}){return k.jsx("th",{className:"p-2 font-semibold",children:t})}function yDe(t){switch(t){case"Super":return k.jsxs("span",{children:[t,k.jsx("sup",{children:"text"})]});case"Sub":return k.jsxs("span",{children:[t,k.jsx("sub",{children:"text"})]});default:return t}}function yt({value:t}){return k.jsx("td",{className:`p-2 font-normal ${t==="Bold"?"!font-bold":t==="Emphasize"?"italic":t==="Strike-through"?"line-through":t==="Link"?"cursor-pointer text-green":""}`,children:k.jsx("span",{className:` ${t==="Inline code"?"rounded-sm border border-grey-300 bg-grey-100 p-[.2rem] font-mono text-2xs dark:border-grey-900 dark:bg-grey-900":t==="Highlight"?"bg-[#ff0] dark:text-black":""}`,children:yDe(t)})})}function wDe(t){return k.jsx(kY,{...t,children:k.jsxs("div",{className:"p-8 text-left font-sans","data-testid":"markdown-help-dialog",children:[k.jsx("header",{children:k.jsx("h1",{className:"mr-6 text-2xl font-semibold leading-snug",children:"Markdown Help"})}),k.jsxs("section",{className:"text-sm leading-snug",children:[k.jsxs("table",{className:"my-5 w-full",children:[k.jsx("thead",{children:k.jsxs("tr",{children:[k.jsx(SE,{value:"Markdown"}),k.jsx(SE,{value:"Result"}),k.jsx(SE,{value:"Shortcut"})]})}),k.jsxs("tbody",{children:[k.jsxs("tr",{children:[k.jsx(yt,{value:"**text**"}),k.jsx(yt,{value:"Bold"}),k.jsx(yt,{value:"Ctrl/⌘ + B"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"*text*"}),k.jsx(yt,{value:"Emphasize"}),k.jsx(yt,{value:"Ctrl/⌘ + I"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"~~text~~"}),k.jsx(yt,{value:"Strike-through"}),k.jsx(yt,{value:"Ctrl/⌘ + Alt + U"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"^text^"}),k.jsx(yt,{value:"Super"}),k.jsx(yt,{value:""})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"~text~"}),k.jsx(yt,{value:"Sub"}),k.jsx(yt,{value:""})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"[title](http://)"}),k.jsx(yt,{value:"Link"}),k.jsx(yt,{value:"Ctrl/⌘ + K"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"`code`"}),k.jsx(yt,{value:"Inline code"}),k.jsx(yt,{value:"Ctrl/⌘ + Alt + C"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:""}),k.jsx(yt,{value:"Image"}),k.jsx(yt,{value:"Ctrl/⌘ + Shift + I"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"* item"}),k.jsx(yt,{value:"List"}),k.jsx(yt,{value:"Ctrl/⌘ + L"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"1. item"}),k.jsx(yt,{value:"Ordered List"}),k.jsx(yt,{value:"Ctrl/⌘ + Alt + L"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"> quote"}),k.jsx(yt,{value:"Blockquote"}),k.jsx(yt,{value:"Ctrl/⌘ + '"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"==Highlight=="}),k.jsx(yt,{value:"Highlight"}),k.jsx(yt,{value:""})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"# Heading"}),k.jsx(yt,{value:"H1"}),k.jsx(yt,{value:""})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"## Heading"}),k.jsx(yt,{value:"H2"}),k.jsx(yt,{value:"Ctrl/⌘ + H"})]}),k.jsxs("tr",{children:[k.jsx(yt,{value:"### Heading"}),k.jsx(yt,{value:"H3"}),k.jsx(yt,{value:"Ctrl/⌘ + H (x2)"})]})]})]}),k.jsxs("span",{className:"text-sm font-normal",children:["For further Markdown syntax reference: ",k.jsx("a",{className:"font-medium text-green",href:"https://ghost.org/help/using-the-editor/#using-markdown",rel:"noopener noreferrer",target:"_blank",children:"Markdown Documentation"})]})]})]})})}function yY(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wY={exports:{}};(function(t,e){(function(n,i){typeof yY=="function"?t.exports=i():n.pluralize=i()})(tn,function(){var n=[],i=[],r={},o={},s={};function a(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function l(y,x){return y===x?x:y===y.toLowerCase()?x.toLowerCase():y===y.toUpperCase()?x.toUpperCase():y[0]===y[0].toUpperCase()?x.charAt(0).toUpperCase()+x.substr(1).toLowerCase():x.toLowerCase()}function u(y,x){return y.replace(/\$(\d{1,2})/g,function(_,S){return x[S]||""})}function f(y,x){return y.replace(x[0],function(_,S){var C=u(x[1],arguments);return l(_===""?y[S-1]:_,C)})}function d(y,x,_){if(!y.length||r.hasOwnProperty(y))return x;for(var S=_.length;S--;){var C=_[S];if(C[0].test(x))return f(x,C)}return x}function h(y,x,_){return function(S){var C=S.toLowerCase();return x.hasOwnProperty(C)?l(S,C):y.hasOwnProperty(C)?l(S,y[C]):d(C,S,_)}}function g(y,x,_,S){return function(C){var E=C.toLowerCase();return x.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:d(E,E,_)===E}}function m(y,x,_){var S=x===1?m.singular(y):m.plural(y);return(_?x+" ":"")+S}return m.plural=h(s,o,n),m.isPlural=g(s,o,n),m.singular=h(o,s,i),m.isSingular=g(o,s,i),m.addPluralRule=function(y,x){n.push([a(y),x])},m.addSingularRule=function(y,x){i.push([a(y),x])},m.addUncountableRule=function(y){if(typeof y=="string"){r[y.toLowerCase()]=!0;return}m.addPluralRule(y,"$0"),m.addSingularRule(y,"$0")},m.addIrregularRule=function(y,x){x=x.toLowerCase(),y=y.toLowerCase(),s[y]=x,o[x]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return m.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return m.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return m.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(m.addUncountableRule),m})})(wY);var xDe=wY.exports;const _De=xo(xDe);function ODe({onChange:t,inputRef:e,progress:n,loading:i,filesNumber:r,errors:o=[]}){const s={width:`${n}%`};return k.jsxs(k.Fragment,{children:[i&&!!n&&k.jsx("div",{className:"absolute inset-0 z-10 flex min-w-full flex-col items-center justify-center overflow-hidden bg-white/70",children:k.jsxs("div",{className:"mb-4 w-full text-center",children:[k.jsxs("h3",{className:"mb-3 font-sans text-xl font-bold",children:["Uploading ",r," ",_De("image",r),"..."]}),k.jsx(js,{style:s})]})}),!!o.length&&o.map(a=>k.jsx("div",{className:"absolute inset-0 z-10 flex min-w-full flex-col items-center justify-center overflow-hidden bg-white/70",children:k.jsxs("div",{className:"mb-4 w-3/5 text-center",children:[k.jsxs("h3",{className:"mb-3 font-sans text-xl font-bold",children:[a.fileName,k.jsx("span",{className:"text-red",children:" failed to upload."})]}),k.jsx("p",{className:"font-sans text-sm font-normal",children:a.message})]})},`${a.fileName}-${a.message}`)),k.jsx("form",{onChange:t,children:k.jsx("input",{ref:e,accept:"image/*",name:"image",type:"file",hidden:!0,multiple:!0})})]})}var xY={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(tn,function(){var n=navigator.userAgent,i=navigator.platform,r=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),a=/Edge\/(\d+)/.exec(n),l=o||s||a,u=l&&(o?document.documentMode||6:+(a||s)[1]),f=!a&&/WebKit\//.test(n),d=f&&/Qt\/\d+\.\d+/.test(n),h=!a&&/Chrome\/(\d+)/.exec(n),g=h&&+h[1],m=/Opera\//.test(n),y=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),_=/PhantomJS/.test(n),S=y&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),C=/Android/.test(n),E=S||C||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),N=S||/Mac/.test(i),M=/\bCrOS\b/.test(n),I=/win/i.test(i),W=m&&n.match(/Version\/(\d*\.\d*)/);W&&(W=Number(W[1])),W&&W>=15&&(m=!1,f=!0);var B=N&&(d||m&&(W==null||W<12.11)),Z=r||l&&u>=9;function R(c){return new RegExp("(^|\\s)"+c+"(?:$|\\s)\\s*")}var Q=function(c,p){var b=c.className,v=R(p).exec(b);if(v){var w=b.slice(v.index+v[0].length);c.className=b.slice(0,v.index)+(w?v[1]+w:"")}};function V(c){for(var p=c.childNodes.length;p>0;--p)c.removeChild(c.firstChild);return c}function H(c,p){return V(c).appendChild(p)}function j(c,p,b,v){var w=document.createElement(c);if(b&&(w.className=b),v&&(w.style.cssText=v),typeof p=="string")w.appendChild(document.createTextNode(p));else if(p)for(var O=0;O<p.length;++O)w.appendChild(p[O]);return w}function q(c,p,b,v){var w=j(c,p,b,v);return w.setAttribute("role","presentation"),w}var Y;document.createRange?Y=function(c,p,b,v){var w=document.createRange();return w.setEnd(v||c,b),w.setStart(c,p),w}:Y=function(c,p,b){var v=document.body.createTextRange();try{v.moveToElementText(c.parentNode)}catch{return v}return v.collapse(!0),v.moveEnd("character",b),v.moveStart("character",p),v};function K(c,p){if(p.nodeType==3&&(p=p.parentNode),c.contains)return c.contains(p);do if(p.nodeType==11&&(p=p.host),p==c)return!0;while(p=p.parentNode)}function te(c){var p=c.ownerDocument||c,b;try{b=c.activeElement}catch{b=p.body||null}for(;b&&b.shadowRoot&&b.shadowRoot.activeElement;)b=b.shadowRoot.activeElement;return b}function oe(c,p){var b=c.className;R(p).test(b)||(c.className+=(b?" ":"")+p)}function ce(c,p){for(var b=c.split(" "),v=0;v<b.length;v++)b[v]&&!R(b[v]).test(p)&&(p+=" "+b[v]);return p}var U=function(c){c.select()};S?U=function(c){c.selectionStart=0,c.selectionEnd=c.value.length}:l&&(U=function(c){try{c.select()}catch{}});function F(c){return c.display.wrapper.ownerDocument}function se(c){return le(c.display.wrapper)}function le(c){return c.getRootNode?c.getRootNode():c.ownerDocument}function pe(c){return F(c).defaultView}function je(c){var p=Array.prototype.slice.call(arguments,1);return function(){return c.apply(null,p)}}function He(c,p,b){p||(p={});for(var v in c)c.hasOwnProperty(v)&&(b!==!1||!p.hasOwnProperty(v))&&(p[v]=c[v]);return p}function ot(c,p,b,v,w){p==null&&(p=c.search(/[^\s\u00a0]/),p==-1&&(p=c.length));for(var O=v||0,$=w||0;;){var D=c.indexOf(" ",O);if(D<0||D>=p)return $+(p-O);$+=D-O,$+=b-$%b,O=D+1}}var ht=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};ht.prototype.onTimeout=function(c){c.id=0,c.time<=+new Date?c.f():setTimeout(c.handler,c.time-+new Date)},ht.prototype.set=function(c,p){this.f=p;var b=+new Date+c;(!this.id||b<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,c),this.time=b)};function ve(c,p){for(var b=0;b<c.length;++b)if(c[b]==p)return b;return-1}var De=50,st={toString:function(){return"CodeMirror.Pass"}},It={scroll:!1},Mt={origin:"*mouse"},Wt={origin:"+move"};function Ue(c,p,b){for(var v=0,w=0;;){var O=c.indexOf(" ",v);O==-1&&(O=c.length);var $=O-v;if(O==c.length||w+$>=p)return v+Math.min($,p-w);if(w+=O-v,w+=b-w%b,v=O+1,w>=p)return v}}var St=[""];function Lt(c){for(;St.length<=c;)St.push(Be(St)+" ");return St[c]}function Be(c){return c[c.length-1]}function Re(c,p){for(var b=[],v=0;v<c.length;v++)b[v]=p(c[v],v);return b}function ae(c,p,b){for(var v=0,w=b(p);v<c.length&&b(c[v])<=w;)v++;c.splice(v,0,p)}function Ze(){}function Ut(c,p){var b;return Object.create?b=Object.create(c):(Ze.prototype=c,b=new Ze),p&&He(p,b),b}var ii=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Nt(c){return/\w/.test(c)||c>""&&(c.toUpperCase()!=c.toLowerCase()||ii.test(c))}function On(c,p){return p?p.source.indexOf("\\w")>-1&&Nt(c)?!0:p.test(c):Nt(c)}function Zo(c){for(var p in c)if(c.hasOwnProperty(p)&&c[p])return!1;return!0}var Nl=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Al(c){return c.charCodeAt(0)>=768&&Nl.test(c)}function Jh(c,p,b){for(;(b<0?p>0:p<c.length)&&Al(c.charAt(p));)p+=b;return p}function oc(c,p,b){for(var v=p>b?-1:1;;){if(p==b)return p;var w=(p+b)/2,O=v<0?Math.ceil(w):Math.floor(w);if(O==p)return c(O)?p:b;c(O)?b=O:p=O+v}}function ep(c,p,b,v){if(!c)return v(p,b,"ltr",0);for(var w=!1,O=0;O<c.length;++O){var $=c[O];($.from<b&&$.to>p||p==b&&$.to==p)&&(v(Math.max($.from,p),Math.min($.to,b),$.level==1?"rtl":"ltr",O),w=!0)}w||v(p,b,"ltr")}var ja=null;function eo(c,p,b){var v;ja=null;for(var w=0;w<c.length;++w){var O=c[w];if(O.from<p&&O.to>p)return w;O.to==p&&(O.from!=O.to&&b=="before"?v=w:ja=w),O.from==p&&(O.from!=O.to&&b!="before"?v=w:ja=w)}return v??ja}var sc=function(){var c="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",p="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function b(z){return z<=247?c.charAt(z):1424<=z&&z<=1524?"R":1536<=z&&z<=1785?p.charAt(z-1536):1774<=z&&z<=2220?"r":8192<=z&&z<=8203?"w":z==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,O=/[LRr]/,$=/[Lb1n]/,D=/[1n]/;function L(z,G,ee){this.level=z,this.from=G,this.to=ee}return function(z,G){var ee=G=="ltr"?"L":"R";if(z.length==0||G=="ltr"&&!v.test(z))return!1;for(var re=z.length,ie=[],fe=0;fe<re;++fe)ie.push(b(z.charCodeAt(fe)));for(var de=0,we=ee;de<re;++de){var Se=ie[de];Se=="m"?ie[de]=we:we=Se}for(var $e=0,Ce=ee;$e<re;++$e){var Pe=ie[$e];Pe=="1"&&Ce=="r"?ie[$e]="n":O.test(Pe)&&(Ce=Pe,Pe=="r"&&(ie[$e]="R"))}for(var et=1,Xe=ie[0];et<re-1;++et){var Ct=ie[et];Ct=="+"&&Xe=="1"&&ie[et+1]=="1"?ie[et]="1":Ct==","&&Xe==ie[et+1]&&(Xe=="1"||Xe=="n")&&(ie[et]=Xe),Xe=Ct}for(var en=0;en<re;++en){var Di=ie[en];if(Di==",")ie[en]="N";else if(Di=="%"){var Ln=void 0;for(Ln=en+1;Ln<re&&ie[Ln]=="%";++Ln);for(var wo=en&&ie[en-1]=="!"||Ln<re&&ie[Ln]=="1"?"1":"N",io=en;io<Ln;++io)ie[io]=wo;en=Ln-1}}for(var hi=0,ro=ee;hi<re;++hi){var Xi=ie[hi];ro=="L"&&Xi=="1"?ie[hi]="L":O.test(Xi)&&(ro=Xi)}for(var wi=0;wi<re;++wi)if(w.test(ie[wi])){var pi=void 0;for(pi=wi+1;pi<re&&w.test(ie[pi]);++pi);for(var Zn=(wi?ie[wi-1]:ee)=="L",oo=(pi<re?ie[pi]:ee)=="L",Op=Zn==oo?Zn?"L":"R":ee,mc=wi;mc<pi;++mc)ie[mc]=Op;wi=pi-1}for(var gr=[],Wa,Ii=0;Ii<re;)if($.test(ie[Ii])){var H8=Ii;for(++Ii;Ii<re&&$.test(ie[Ii]);++Ii);gr.push(new L(0,H8,Ii))}else{var Bl=Ii,Qf=gr.length,Uf=G=="rtl"?1:0;for(++Ii;Ii<re&&ie[Ii]!="L";++Ii);for(var Pr=Bl;Pr<Ii;)if(D.test(ie[Pr])){Bl<Pr&&(gr.splice(Qf,0,new L(1,Bl,Pr)),Qf+=Uf);var Sp=Pr;for(++Pr;Pr<Ii&&D.test(ie[Pr]);++Pr);gr.splice(Qf,0,new L(2,Sp,Pr)),Qf+=Uf,Bl=Pr}else++Pr;Bl<Ii&&gr.splice(Qf,0,new L(1,Bl,Ii))}return G=="ltr"&&(gr[0].level==1&&(Wa=z.match(/^\s+/))&&(gr[0].from=Wa[0].length,gr.unshift(new L(0,0,Wa[0].length))),Be(gr).level==1&&(Wa=z.match(/\s+$/))&&(Be(gr).to-=Wa[0].length,gr.push(new L(0,re-Wa[0].length,re)))),G=="rtl"?gr.reverse():gr}}();function qo(c,p){var b=c.order;return b==null&&(b=c.order=sc(c.text,p)),b}var tp=[],rt=function(c,p,b){if(c.addEventListener)c.addEventListener(p,b,!1);else if(c.attachEvent)c.attachEvent("on"+p,b);else{var v=c._handlers||(c._handlers={});v[p]=(v[p]||tp).concat(b)}};function ac(c,p){return c._handlers&&c._handlers[p]||tp}function Vi(c,p,b){if(c.removeEventListener)c.removeEventListener(p,b,!1);else if(c.detachEvent)c.detachEvent("on"+p,b);else{var v=c._handlers,w=v&&v[p];if(w){var O=ve(w,b);O>-1&&(v[p]=w.slice(0,O).concat(w.slice(O+1)))}}}function Un(c,p){var b=ac(c,p);if(b.length)for(var v=Array.prototype.slice.call(arguments,2),w=0;w<b.length;++w)b[w].apply(null,v)}function Sn(c,p,b){return typeof p=="string"&&(p={type:p,preventDefault:function(){this.defaultPrevented=!0}}),Un(c,b||p.type,c,p),np(p)||p.codemirrorIgnore}function v2(c){var p=c._handlers&&c._handlers.cursorActivity;if(p)for(var b=c.curOp.cursorActivityHandlers||(c.curOp.cursorActivityHandlers=[]),v=0;v<p.length;++v)ve(b,p[v])==-1&&b.push(p[v])}function bo(c,p){return ac(c,p).length>0}function Cn(c){c.prototype.on=function(p,b){rt(this,p,b)},c.prototype.off=function(p,b){Vi(this,p,b)}}function ri(c){c.preventDefault?c.preventDefault():c.returnValue=!1}function b2(c){c.stopPropagation?c.stopPropagation():c.cancelBubble=!0}function np(c){return c.defaultPrevented!=null?c.defaultPrevented:c.returnValue==!1}function Pl(c){ri(c),b2(c)}function ip(c){return c.target||c.srcElement}function S1(c){var p=c.which;return p==null&&(c.button&1?p=1:c.button&2?p=3:c.button&4&&(p=2)),N&&c.ctrlKey&&p==1&&(p=3),p}var qT=function(){if(l&&u<9)return!1;var c=j("div");return"draggable"in c||"dragDrop"in c}(),ko;function Dl(c){if(ko==null){var p=j("span","");H(c,j("span",[p,document.createTextNode("x")])),c.firstChild.offsetHeight!=0&&(ko=p.offsetWidth<=1&&p.offsetHeight>2&&!(l&&u<8))}var b=ko?j("span",""):j("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return b.setAttribute("cm-text",""),b}var rp;function k2(c){if(rp!=null)return rp;var p=H(c,document.createTextNode("AخA")),b=Y(p,0,1).getBoundingClientRect(),v=Y(p,1,2).getBoundingClientRect();return V(c),!b||b.left==b.right?!1:rp=v.right-b.right<3}var Df=`
|
||
|
||
b`.split(/\n/).length!=3?function(c){for(var p=0,b=[],v=c.length;p<=v;){var w=c.indexOf(`
|
||
`,p);w==-1&&(w=c.length);var O=c.slice(p,c.charAt(w-1)=="\r"?w-1:w),$=O.indexOf("\r");$!=-1?(b.push(O.slice(0,$)),p+=$+1):(b.push(O),p=w+1)}return b}:function(c){return c.split(/\r\n?|\n/)},y2=window.getSelection?function(c){try{return c.selectionStart!=c.selectionEnd}catch{return!1}}:function(c){var p;try{p=c.ownerDocument.selection.createRange()}catch{}return!p||p.parentElement()!=c?!1:p.compareEndPoints("StartToEnd",p)!=0},Qs=function(){var c=j("div");return"oncopy"in c?!0:(c.setAttribute("oncopy","return;"),typeof c.oncopy=="function")}(),op=null;function w2(c){if(op!=null)return op;var p=H(c,j("span","x")),b=p.getBoundingClientRect(),v=Y(p,0,1).getBoundingClientRect();return op=Math.abs(b.left-v.left)>1}var sp={},Il={};function YT(c,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),sp[c]=p}function Je(c,p){Il[c]=p}function ne(c){if(typeof c=="string"&&Il.hasOwnProperty(c))c=Il[c];else if(c&&typeof c.name=="string"&&Il.hasOwnProperty(c.name)){var p=Il[c.name];typeof p=="string"&&(p={name:p}),c=Ut(p,c),c.name=p.name}else{if(typeof c=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(c))return ne("application/xml");if(typeof c=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(c))return ne("application/json")}return typeof c=="string"?{name:c}:c||{name:"null"}}function _e(c,p){p=ne(p);var b=sp[p.name];if(!b)return _e(c,"text/plain");var v=b(c,p);if(Fe.hasOwnProperty(p.name)){var w=Fe[p.name];for(var O in w)w.hasOwnProperty(O)&&(v.hasOwnProperty(O)&&(v["_"+O]=v[O]),v[O]=w[O])}if(v.name=p.name,p.helperType&&(v.helperType=p.helperType),p.modeProps)for(var $ in p.modeProps)v[$]=p.modeProps[$];return v}var Fe={};function hn(c,p){var b=Fe.hasOwnProperty(c)?Fe[c]:Fe[c]={};He(p,b)}function Dn(c,p){if(p===!0)return p;if(c.copyState)return c.copyState(p);var b={};for(var v in p){var w=p[v];w instanceof Array&&(w=w.concat([])),b[v]=w}return b}function In(c,p){for(var b;c.innerMode&&(b=c.innerMode(p),!(!b||b.mode==c));)p=b.state,c=b.mode;return b||{mode:c,state:p}}function hr(c,p,b){return c.startState?c.startState(p,b):!0}var Zt=function(c,p,b){this.pos=this.start=0,this.string=c,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=b};Zt.prototype.eol=function(){return this.pos>=this.string.length},Zt.prototype.sol=function(){return this.pos==this.lineStart},Zt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Zt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Zt.prototype.eat=function(c){var p=this.string.charAt(this.pos),b;if(typeof c=="string"?b=p==c:b=p&&(c.test?c.test(p):c(p)),b)return++this.pos,p},Zt.prototype.eatWhile=function(c){for(var p=this.pos;this.eat(c););return this.pos>p},Zt.prototype.eatSpace=function(){for(var c=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>c},Zt.prototype.skipToEnd=function(){this.pos=this.string.length},Zt.prototype.skipTo=function(c){var p=this.string.indexOf(c,this.pos);if(p>-1)return this.pos=p,!0},Zt.prototype.backUp=function(c){this.pos-=c},Zt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ot(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ot(this.string,this.lineStart,this.tabSize):0)},Zt.prototype.indentation=function(){return ot(this.string,null,this.tabSize)-(this.lineStart?ot(this.string,this.lineStart,this.tabSize):0)},Zt.prototype.match=function(c,p,b){if(typeof c=="string"){var v=function($){return b?$.toLowerCase():$},w=this.string.substr(this.pos,c.length);if(v(w)==v(c))return p!==!1&&(this.pos+=c.length),!0}else{var O=this.string.slice(this.pos).match(c);return O&&O.index>0?null:(O&&p!==!1&&(this.pos+=O[0].length),O)}},Zt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Zt.prototype.hideFirstChars=function(c,p){this.lineStart+=c;try{return p()}finally{this.lineStart-=c}},Zt.prototype.lookAhead=function(c){var p=this.lineOracle;return p&&p.lookAhead(c)},Zt.prototype.baseToken=function(){var c=this.lineOracle;return c&&c.baseToken(this.pos)};function ze(c,p){if(p-=c.first,p<0||p>=c.size)throw new Error("There is no line "+(p+c.first)+" in the document.");for(var b=c;!b.lines;)for(var v=0;;++v){var w=b.children[v],O=w.chunkSize();if(p<O){b=w;break}p-=O}return b.lines[p]}function Us(c,p,b){var v=[],w=p.line;return c.iter(p.line,b.line+1,function(O){var $=O.text;w==b.line&&($=$.slice(0,b.ch)),w==p.line&&($=$.slice(p.ch)),v.push($),++w}),v}function di(c,p,b){var v=[];return c.iter(p,b,function(w){v.push(w.text)}),v}function Yo(c,p){var b=p-c.height;if(b)for(var v=c;v;v=v.parent)v.height+=b}function Bt(c){if(c.parent==null)return null;for(var p=c.parent,b=ve(p.lines,c),v=p.parent;v;p=v,v=v.parent)for(var w=0;v.children[w]!=p;++w)b+=v.children[w].chunkSize();return b+p.first}function If(c,p){var b=c.first;e:do{for(var v=0;v<c.children.length;++v){var w=c.children[v],O=w.height;if(p<O){c=w;continue e}p-=O,b+=w.chunkSize()}return b}while(!c.lines);for(var $=0;$<c.lines.length;++$){var D=c.lines[$],L=D.height;if(p<L)break;p-=L}return b+$}function C1(c,p){return p>=c.first&&p<c.first+c.size}function VT(c,p){return String(c.lineNumberFormatter(p+c.firstLineNumber))}function ke(c,p,b){if(b===void 0&&(b=null),!(this instanceof ke))return new ke(c,p,b);this.line=c,this.ch=p,this.sticky=b}function mt(c,p){return c.line-p.line||c.ch-p.ch}function XT(c,p){return c.sticky==p.sticky&&mt(c,p)==0}function GT(c){return ke(c.line,c.ch)}function x2(c,p){return mt(c,p)<0?p:c}function _2(c,p){return mt(c,p)<0?c:p}function OK(c,p){return Math.max(c.first,Math.min(p,c.first+c.size-1))}function vt(c,p){if(p.line<c.first)return ke(c.first,0);var b=c.first+c.size-1;return p.line>b?ke(b,ze(c,b).text.length):xBe(p,ze(c,p.line).text.length)}function xBe(c,p){var b=c.ch;return b==null||b>p?ke(c.line,p):b<0?ke(c.line,0):c}function SK(c,p){for(var b=[],v=0;v<p.length;v++)b[v]=vt(c,p[v]);return b}var O2=function(c,p){this.state=c,this.lookAhead=p},Fa=function(c,p,b,v){this.state=p,this.doc=c,this.line=b,this.maxLookAhead=v||0,this.baseTokens=null,this.baseTokenPos=1};Fa.prototype.lookAhead=function(c){var p=this.doc.getLine(this.line+c);return p!=null&&c>this.maxLookAhead&&(this.maxLookAhead=c),p},Fa.prototype.baseToken=function(c){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=c;)this.baseTokenPos+=2;var p=this.baseTokens[this.baseTokenPos+1];return{type:p&&p.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-c}},Fa.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Fa.fromSaved=function(c,p,b){return p instanceof O2?new Fa(c,Dn(c.mode,p.state),b,p.lookAhead):new Fa(c,Dn(c.mode,p),b)},Fa.prototype.save=function(c){var p=c!==!1?Dn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new O2(p,this.maxLookAhead):p};function CK(c,p,b,v){var w=[c.state.modeGen],O={};AK(c,p.text,c.doc.mode,b,function(z,G){return w.push(z,G)},O,v);for(var $=b.state,D=function(z){b.baseTokens=w;var G=c.state.overlays[z],ee=1,re=0;b.state=!0,AK(c,p.text,G.mode,b,function(ie,fe){for(var de=ee;re<ie;){var we=w[ee];we>ie&&w.splice(ee,1,ie,w[ee+1],we),ee+=2,re=Math.min(ie,we)}if(fe)if(G.opaque)w.splice(de,ee-de,ie,"overlay "+fe),ee=de+2;else for(;de<ee;de+=2){var Se=w[de+1];w[de+1]=(Se?Se+" ":"")+"overlay "+fe}},O),b.state=$,b.baseTokens=null,b.baseTokenPos=1},L=0;L<c.state.overlays.length;++L)D(L);return{styles:w,classes:O.bgClass||O.textClass?O:null}}function EK(c,p,b){if(!p.styles||p.styles[0]!=c.state.modeGen){var v=E1(c,Bt(p)),w=p.text.length>c.options.maxHighlightLength&&Dn(c.doc.mode,v.state),O=CK(c,p,v);w&&(v.state=w),p.stateAfter=v.save(!w),p.styles=O.styles,O.classes?p.styleClasses=O.classes:p.styleClasses&&(p.styleClasses=null),b===c.doc.highlightFrontier&&(c.doc.modeFrontier=Math.max(c.doc.modeFrontier,++c.doc.highlightFrontier))}return p.styles}function E1(c,p,b){var v=c.doc,w=c.display;if(!v.mode.startState)return new Fa(v,!0,p);var O=_Be(c,p,b),$=O>v.first&&ze(v,O-1).stateAfter,D=$?Fa.fromSaved(v,$,O):new Fa(v,hr(v.mode),O);return v.iter(O,p,function(L){KT(c,L.text,D);var z=D.line;L.stateAfter=z==p-1||z%5==0||z>=w.viewFrom&&z<w.viewTo?D.save():null,D.nextLine()}),b&&(v.modeFrontier=D.line),D}function KT(c,p,b,v){var w=c.doc.mode,O=new Zt(p,c.options.tabSize,b);for(O.start=O.pos=v||0,p==""&&TK(w,b.state);!O.eol();)JT(w,O,b.state),O.start=O.pos}function TK(c,p){if(c.blankLine)return c.blankLine(p);if(c.innerMode){var b=In(c,p);if(b.mode.blankLine)return b.mode.blankLine(b.state)}}function JT(c,p,b,v){for(var w=0;w<10;w++){v&&(v[0]=In(c,b).mode);var O=c.token(p,b);if(p.pos>p.start)return O}throw new Error("Mode "+c.name+" failed to advance stream.")}var $K=function(c,p,b){this.start=c.start,this.end=c.pos,this.string=c.current(),this.type=p||null,this.state=b};function MK(c,p,b,v){var w=c.doc,O=w.mode,$;p=vt(w,p);var D=ze(w,p.line),L=E1(c,p.line,b),z=new Zt(D.text,c.options.tabSize,L),G;for(v&&(G=[]);(v||z.pos<p.ch)&&!z.eol();)z.start=z.pos,$=JT(O,z,L.state),v&&G.push(new $K(z,$,Dn(w.mode,L.state)));return v?G:new $K(z,$,L.state)}function NK(c,p){if(c)for(;;){var b=c.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!b)break;c=c.slice(0,b.index)+c.slice(b.index+b[0].length);var v=b[1]?"bgClass":"textClass";p[v]==null?p[v]=b[2]:new RegExp("(?:^|\\s)"+b[2]+"(?:$|\\s)").test(p[v])||(p[v]+=" "+b[2])}return c}function AK(c,p,b,v,w,O,$){var D=b.flattenSpans;D==null&&(D=c.options.flattenSpans);var L=0,z=null,G=new Zt(p,c.options.tabSize,v),ee,re=c.options.addModeClass&&[null];for(p==""&&NK(TK(b,v.state),O);!G.eol();){if(G.pos>c.options.maxHighlightLength?(D=!1,$&&KT(c,p,v,G.pos),G.pos=p.length,ee=null):ee=NK(JT(b,G,v.state,re),O),re){var ie=re[0].name;ie&&(ee="m-"+(ee?ie+" "+ee:ie))}if(!D||z!=ee){for(;L<G.start;)L=Math.min(G.start,L+5e3),w(L,z);z=ee}G.start=G.pos}for(;L<G.pos;){var fe=Math.min(G.pos,L+5e3);w(fe,z),L=fe}}function _Be(c,p,b){for(var v,w,O=c.doc,$=b?-1:p-(c.doc.mode.innerMode?1e3:100),D=p;D>$;--D){if(D<=O.first)return O.first;var L=ze(O,D-1),z=L.stateAfter;if(z&&(!b||D+(z instanceof O2?z.lookAhead:0)<=O.modeFrontier))return D;var G=ot(L.text,null,c.options.tabSize);(w==null||v>G)&&(w=D-1,v=G)}return w}function OBe(c,p){if(c.modeFrontier=Math.min(c.modeFrontier,p),!(c.highlightFrontier<p-10)){for(var b=c.first,v=p-1;v>b;v--){var w=ze(c,v).stateAfter;if(w&&(!(w instanceof O2)||v+w.lookAhead<p)){b=v+1;break}}c.highlightFrontier=Math.min(c.highlightFrontier,b)}}var PK=!1,Ll=!1;function SBe(){PK=!0}function CBe(){Ll=!0}function S2(c,p,b){this.marker=c,this.from=p,this.to=b}function T1(c,p){if(c)for(var b=0;b<c.length;++b){var v=c[b];if(v.marker==p)return v}}function EBe(c,p){for(var b,v=0;v<c.length;++v)c[v]!=p&&(b||(b=[])).push(c[v]);return b}function TBe(c,p,b){var v=b&&window.WeakSet&&(b.markedSpans||(b.markedSpans=new WeakSet));v&&c.markedSpans&&v.has(c.markedSpans)?c.markedSpans.push(p):(c.markedSpans=c.markedSpans?c.markedSpans.concat([p]):[p],v&&v.add(c.markedSpans)),p.marker.attachLine(c)}function $Be(c,p,b){var v;if(c)for(var w=0;w<c.length;++w){var O=c[w],$=O.marker,D=O.from==null||($.inclusiveLeft?O.from<=p:O.from<p);if(D||O.from==p&&$.type=="bookmark"&&(!b||!O.marker.insertLeft)){var L=O.to==null||($.inclusiveRight?O.to>=p:O.to>p);(v||(v=[])).push(new S2($,O.from,L?null:O.to))}}return v}function MBe(c,p,b){var v;if(c)for(var w=0;w<c.length;++w){var O=c[w],$=O.marker,D=O.to==null||($.inclusiveRight?O.to>=p:O.to>p);if(D||O.from==p&&$.type=="bookmark"&&(!b||O.marker.insertLeft)){var L=O.from==null||($.inclusiveLeft?O.from<=p:O.from<p);(v||(v=[])).push(new S2($,L?null:O.from-p,O.to==null?null:O.to-p))}}return v}function e8(c,p){if(p.full)return null;var b=C1(c,p.from.line)&&ze(c,p.from.line).markedSpans,v=C1(c,p.to.line)&&ze(c,p.to.line).markedSpans;if(!b&&!v)return null;var w=p.from.ch,O=p.to.ch,$=mt(p.from,p.to)==0,D=$Be(b,w,$),L=MBe(v,O,$),z=p.text.length==1,G=Be(p.text).length+(z?w:0);if(D)for(var ee=0;ee<D.length;++ee){var re=D[ee];if(re.to==null){var ie=T1(L,re.marker);ie?z&&(re.to=ie.to==null?null:ie.to+G):re.to=w}}if(L)for(var fe=0;fe<L.length;++fe){var de=L[fe];if(de.to!=null&&(de.to+=G),de.from==null){var we=T1(D,de.marker);we||(de.from=G,z&&(D||(D=[])).push(de))}else de.from+=G,z&&(D||(D=[])).push(de)}D&&(D=DK(D)),L&&L!=D&&(L=DK(L));var Se=[D];if(!z){var $e=p.text.length-2,Ce;if($e>0&&D)for(var Pe=0;Pe<D.length;++Pe)D[Pe].to==null&&(Ce||(Ce=[])).push(new S2(D[Pe].marker,null,null));for(var et=0;et<$e;++et)Se.push(Ce);Se.push(L)}return Se}function DK(c){for(var p=0;p<c.length;++p){var b=c[p];b.from!=null&&b.from==b.to&&b.marker.clearWhenEmpty!==!1&&c.splice(p--,1)}return c.length?c:null}function NBe(c,p,b){var v=null;if(c.iter(p.line,b.line+1,function(ie){if(ie.markedSpans)for(var fe=0;fe<ie.markedSpans.length;++fe){var de=ie.markedSpans[fe].marker;de.readOnly&&(!v||ve(v,de)==-1)&&(v||(v=[])).push(de)}}),!v)return null;for(var w=[{from:p,to:b}],O=0;O<v.length;++O)for(var $=v[O],D=$.find(0),L=0;L<w.length;++L){var z=w[L];if(!(mt(z.to,D.from)<0||mt(z.from,D.to)>0)){var G=[L,1],ee=mt(z.from,D.from),re=mt(z.to,D.to);(ee<0||!$.inclusiveLeft&&!ee)&&G.push({from:z.from,to:D.from}),(re>0||!$.inclusiveRight&&!re)&&G.push({from:D.to,to:z.to}),w.splice.apply(w,G),L+=G.length-3}}return w}function IK(c){var p=c.markedSpans;if(p){for(var b=0;b<p.length;++b)p[b].marker.detachLine(c);c.markedSpans=null}}function LK(c,p){if(p){for(var b=0;b<p.length;++b)p[b].marker.attachLine(c);c.markedSpans=p}}function C2(c){return c.inclusiveLeft?-1:0}function E2(c){return c.inclusiveRight?1:0}function t8(c,p){var b=c.lines.length-p.lines.length;if(b!=0)return b;var v=c.find(),w=p.find(),O=mt(v.from,w.from)||C2(c)-C2(p);if(O)return-O;var $=mt(v.to,w.to)||E2(c)-E2(p);return $||p.id-c.id}function RK(c,p){var b=Ll&&c.markedSpans,v;if(b)for(var w=void 0,O=0;O<b.length;++O)w=b[O],w.marker.collapsed&&(p?w.from:w.to)==null&&(!v||t8(v,w.marker)<0)&&(v=w.marker);return v}function jK(c){return RK(c,!0)}function T2(c){return RK(c,!1)}function ABe(c,p){var b=Ll&&c.markedSpans,v;if(b)for(var w=0;w<b.length;++w){var O=b[w];O.marker.collapsed&&(O.from==null||O.from<p)&&(O.to==null||O.to>p)&&(!v||t8(v,O.marker)<0)&&(v=O.marker)}return v}function FK(c,p,b,v,w){var O=ze(c,p),$=Ll&&O.markedSpans;if($)for(var D=0;D<$.length;++D){var L=$[D];if(L.marker.collapsed){var z=L.marker.find(0),G=mt(z.from,b)||C2(L.marker)-C2(w),ee=mt(z.to,v)||E2(L.marker)-E2(w);if(!(G>=0&&ee<=0||G<=0&&ee>=0)&&(G<=0&&(L.marker.inclusiveRight&&w.inclusiveLeft?mt(z.to,b)>=0:mt(z.to,b)>0)||G>=0&&(L.marker.inclusiveRight&&w.inclusiveLeft?mt(z.from,v)<=0:mt(z.from,v)<0)))return!0}}}function Zs(c){for(var p;p=jK(c);)c=p.find(-1,!0).line;return c}function PBe(c){for(var p;p=T2(c);)c=p.find(1,!0).line;return c}function DBe(c){for(var p,b;p=T2(c);)c=p.find(1,!0).line,(b||(b=[])).push(c);return b}function n8(c,p){var b=ze(c,p),v=Zs(b);return b==v?p:Bt(v)}function zK(c,p){if(p>c.lastLine())return p;var b=ze(c,p),v;if(!lc(c,b))return p;for(;v=T2(b);)b=v.find(1,!0).line;return Bt(b)+1}function lc(c,p){var b=Ll&&p.markedSpans;if(b){for(var v=void 0,w=0;w<b.length;++w)if(v=b[w],!!v.marker.collapsed){if(v.from==null)return!0;if(!v.marker.widgetNode&&v.from==0&&v.marker.inclusiveLeft&&i8(c,p,v))return!0}}}function i8(c,p,b){if(b.to==null){var v=b.marker.find(1,!0);return i8(c,v.line,T1(v.line.markedSpans,b.marker))}if(b.marker.inclusiveRight&&b.to==p.text.length)return!0;for(var w=void 0,O=0;O<p.markedSpans.length;++O)if(w=p.markedSpans[O],w.marker.collapsed&&!w.marker.widgetNode&&w.from==b.to&&(w.to==null||w.to!=b.from)&&(w.marker.inclusiveLeft||b.marker.inclusiveRight)&&i8(c,p,w))return!0}function Rl(c){c=Zs(c);for(var p=0,b=c.parent,v=0;v<b.lines.length;++v){var w=b.lines[v];if(w==c)break;p+=w.height}for(var O=b.parent;O;b=O,O=b.parent)for(var $=0;$<O.children.length;++$){var D=O.children[$];if(D==b)break;p+=D.height}return p}function $2(c){if(c.height==0)return 0;for(var p=c.text.length,b,v=c;b=jK(v);){var w=b.find(0,!0);v=w.from.line,p+=w.from.ch-w.to.ch}for(v=c;b=T2(v);){var O=b.find(0,!0);p-=v.text.length-O.from.ch,v=O.to.line,p+=v.text.length-O.to.ch}return p}function r8(c){var p=c.display,b=c.doc;p.maxLine=ze(b,b.first),p.maxLineLength=$2(p.maxLine),p.maxLineChanged=!0,b.iter(function(v){var w=$2(v);w>p.maxLineLength&&(p.maxLineLength=w,p.maxLine=v)})}var ap=function(c,p,b){this.text=c,LK(this,p),this.height=b?b(this):1};ap.prototype.lineNo=function(){return Bt(this)},Cn(ap);function IBe(c,p,b,v){c.text=p,c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null),c.order!=null&&(c.order=null),IK(c),LK(c,b);var w=v?v(c):1;w!=c.height&&Yo(c,w)}function LBe(c){c.parent=null,IK(c)}var RBe={},jBe={};function BK(c,p){if(!c||/^\s*$/.test(c))return null;var b=p.addModeClass?jBe:RBe;return b[c]||(b[c]=c.replace(/\S+/g,"cm-$&"))}function WK(c,p){var b=q("span",null,null,f?"padding-right: .1px":null),v={pre:q("pre",[b],"CodeMirror-line"),content:b,col:0,pos:0,cm:c,trailingSpace:!1,splitSpaces:c.getOption("lineWrapping")};p.measure={};for(var w=0;w<=(p.rest?p.rest.length:0);w++){var O=w?p.rest[w-1]:p.line,$=void 0;v.pos=0,v.addToken=zBe,k2(c.display.measure)&&($=qo(O,c.doc.direction))&&(v.addToken=WBe(v.addToken,$)),v.map=[];var D=p!=c.display.externalMeasured&&Bt(O);HBe(O,v,EK(c,O,D)),O.styleClasses&&(O.styleClasses.bgClass&&(v.bgClass=ce(O.styleClasses.bgClass,v.bgClass||"")),O.styleClasses.textClass&&(v.textClass=ce(O.styleClasses.textClass,v.textClass||""))),v.map.length==0&&v.map.push(0,0,v.content.appendChild(Dl(c.display.measure))),w==0?(p.measure.map=v.map,p.measure.cache={}):((p.measure.maps||(p.measure.maps=[])).push(v.map),(p.measure.caches||(p.measure.caches=[])).push({}))}if(f){var L=v.content.lastChild;(/\bcm-tab\b/.test(L.className)||L.querySelector&&L.querySelector(".cm-tab"))&&(v.content.className="cm-tab-wrap-hack")}return Un(c,"renderLine",c,p.line,v.pre),v.pre.className&&(v.textClass=ce(v.pre.className,v.textClass||"")),v}function FBe(c){var p=j("span","•","cm-invalidchar");return p.title="\\u"+c.charCodeAt(0).toString(16),p.setAttribute("aria-label",p.title),p}function zBe(c,p,b,v,w,O,$){if(p){var D=c.splitSpaces?BBe(p,c.trailingSpace):p,L=c.cm.state.specialChars,z=!1,G;if(!L.test(p))c.col+=p.length,G=document.createTextNode(D),c.map.push(c.pos,c.pos+p.length,G),l&&u<9&&(z=!0),c.pos+=p.length;else{G=document.createDocumentFragment();for(var ee=0;;){L.lastIndex=ee;var re=L.exec(p),ie=re?re.index-ee:p.length-ee;if(ie){var fe=document.createTextNode(D.slice(ee,ee+ie));l&&u<9?G.appendChild(j("span",[fe])):G.appendChild(fe),c.map.push(c.pos,c.pos+ie,fe),c.col+=ie,c.pos+=ie}if(!re)break;ee+=ie+1;var de=void 0;if(re[0]==" "){var we=c.cm.options.tabSize,Se=we-c.col%we;de=G.appendChild(j("span",Lt(Se),"cm-tab")),de.setAttribute("role","presentation"),de.setAttribute("cm-text"," "),c.col+=Se}else re[0]=="\r"||re[0]==`
|
||
`?(de=G.appendChild(j("span",re[0]=="\r"?"␍":"","cm-invalidchar")),de.setAttribute("cm-text",re[0]),c.col+=1):(de=c.cm.options.specialCharPlaceholder(re[0]),de.setAttribute("cm-text",re[0]),l&&u<9?G.appendChild(j("span",[de])):G.appendChild(de),c.col+=1);c.map.push(c.pos,c.pos+1,de),c.pos++}}if(c.trailingSpace=D.charCodeAt(p.length-1)==32,b||v||w||z||O||$){var $e=b||"";v&&($e+=v),w&&($e+=w);var Ce=j("span",[G],$e,O);if($)for(var Pe in $)$.hasOwnProperty(Pe)&&Pe!="style"&&Pe!="class"&&Ce.setAttribute(Pe,$[Pe]);return c.content.appendChild(Ce)}c.content.appendChild(G)}}function BBe(c,p){if(c.length>1&&!/ /.test(c))return c;for(var b=p,v="",w=0;w<c.length;w++){var O=c.charAt(w);O==" "&&b&&(w==c.length-1||c.charCodeAt(w+1)==32)&&(O=" "),v+=O,b=O==" "}return v}function WBe(c,p){return function(b,v,w,O,$,D,L){w=w?w+" cm-force-border":"cm-force-border";for(var z=b.pos,G=z+v.length;;){for(var ee=void 0,re=0;re<p.length&&(ee=p[re],!(ee.to>z&&ee.from<=z));re++);if(ee.to>=G)return c(b,v,w,O,$,D,L);c(b,v.slice(0,ee.to-z),w,O,null,D,L),O=null,v=v.slice(ee.to-z),z=ee.to}}}function HK(c,p,b,v){var w=!v&&b.widgetNode;w&&c.map.push(c.pos,c.pos+p,w),!v&&c.cm.display.input.needsContentAttribute&&(w||(w=c.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",b.id)),w&&(c.cm.display.input.setUneditable(w),c.content.appendChild(w)),c.pos+=p,c.trailingSpace=!1}function HBe(c,p,b){var v=c.markedSpans,w=c.text,O=0;if(!v){for(var $=1;$<b.length;$+=2)p.addToken(p,w.slice(O,O=b[$]),BK(b[$+1],p.cm.options));return}for(var D=w.length,L=0,z=1,G="",ee,re,ie=0,fe,de,we,Se,$e;;){if(ie==L){fe=de=we=re="",$e=null,Se=null,ie=1/0;for(var Ce=[],Pe=void 0,et=0;et<v.length;++et){var Xe=v[et],Ct=Xe.marker;if(Ct.type=="bookmark"&&Xe.from==L&&Ct.widgetNode)Ce.push(Ct);else if(Xe.from<=L&&(Xe.to==null||Xe.to>L||Ct.collapsed&&Xe.to==L&&Xe.from==L)){if(Xe.to!=null&&Xe.to!=L&&ie>Xe.to&&(ie=Xe.to,de=""),Ct.className&&(fe+=" "+Ct.className),Ct.css&&(re=(re?re+";":"")+Ct.css),Ct.startStyle&&Xe.from==L&&(we+=" "+Ct.startStyle),Ct.endStyle&&Xe.to==ie&&(Pe||(Pe=[])).push(Ct.endStyle,Xe.to),Ct.title&&(($e||($e={})).title=Ct.title),Ct.attributes)for(var en in Ct.attributes)($e||($e={}))[en]=Ct.attributes[en];Ct.collapsed&&(!Se||t8(Se.marker,Ct)<0)&&(Se=Xe)}else Xe.from>L&&ie>Xe.from&&(ie=Xe.from)}if(Pe)for(var Di=0;Di<Pe.length;Di+=2)Pe[Di+1]==ie&&(de+=" "+Pe[Di]);if(!Se||Se.from==L)for(var Ln=0;Ln<Ce.length;++Ln)HK(p,0,Ce[Ln]);if(Se&&(Se.from||0)==L){if(HK(p,(Se.to==null?D+1:Se.to)-L,Se.marker,Se.from==null),Se.to==null)return;Se.to==L&&(Se=!1)}}if(L>=D)break;for(var wo=Math.min(D,ie);;){if(G){var io=L+G.length;if(!Se){var hi=io>wo?G.slice(0,wo-L):G;p.addToken(p,hi,ee?ee+fe:fe,we,L+hi.length==ie?de:"",re,$e)}if(io>=wo){G=G.slice(wo-L),L=wo;break}L=io,we=""}G=w.slice(O,O=b[z++]),ee=BK(b[z++],p.cm.options)}}}function QK(c,p,b){this.line=p,this.rest=DBe(p),this.size=this.rest?Bt(Be(this.rest))-b+1:1,this.node=this.text=null,this.hidden=lc(c,p)}function M2(c,p,b){for(var v=[],w,O=p;O<b;O=w){var $=new QK(c.doc,ze(c.doc,O),O);w=O+$.size,v.push($)}return v}var lp=null;function QBe(c){lp?lp.ops.push(c):c.ownsGroup=lp={ops:[c],delayedCallbacks:[]}}function UBe(c){var p=c.delayedCallbacks,b=0;do{for(;b<p.length;b++)p[b].call(null);for(var v=0;v<c.ops.length;v++){var w=c.ops[v];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(b<p.length)}function ZBe(c,p){var b=c.ownsGroup;if(b)try{UBe(b)}finally{lp=null,p(b)}}var $1=null;function Ni(c,p){var b=ac(c,p);if(b.length){var v=Array.prototype.slice.call(arguments,2),w;lp?w=lp.delayedCallbacks:$1?w=$1:(w=$1=[],setTimeout(qBe,0));for(var O=function(D){w.push(function(){return b[D].apply(null,v)})},$=0;$<b.length;++$)O($)}}function qBe(){var c=$1;$1=null;for(var p=0;p<c.length;++p)c[p]()}function UK(c,p,b,v){for(var w=0;w<p.changes.length;w++){var O=p.changes[w];O=="text"?VBe(c,p):O=="gutter"?qK(c,p,b,v):O=="class"?o8(c,p):O=="widget"&&XBe(c,p,v)}p.changes=null}function M1(c){return c.node==c.text&&(c.node=j("div",null,null,"position: relative"),c.text.parentNode&&c.text.parentNode.replaceChild(c.node,c.text),c.node.appendChild(c.text),l&&u<8&&(c.node.style.zIndex=2)),c.node}function YBe(c,p){var b=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(b&&(b+=" CodeMirror-linebackground"),p.background)b?p.background.className=b:(p.background.parentNode.removeChild(p.background),p.background=null);else if(b){var v=M1(p);p.background=v.insertBefore(j("div",null,b),v.firstChild),c.display.input.setUneditable(p.background)}}function ZK(c,p){var b=c.display.externalMeasured;return b&&b.line==p.line?(c.display.externalMeasured=null,p.measure=b.measure,b.built):WK(c,p)}function VBe(c,p){var b=p.text.className,v=ZK(c,p);p.text==p.node&&(p.node=v.pre),p.text.parentNode.replaceChild(v.pre,p.text),p.text=v.pre,v.bgClass!=p.bgClass||v.textClass!=p.textClass?(p.bgClass=v.bgClass,p.textClass=v.textClass,o8(c,p)):b&&(p.text.className=b)}function o8(c,p){YBe(c,p),p.line.wrapClass?M1(p).className=p.line.wrapClass:p.node!=p.text&&(p.node.className="");var b=p.textClass?p.textClass+" "+(p.line.textClass||""):p.line.textClass;p.text.className=b||""}function qK(c,p,b,v){if(p.gutter&&(p.node.removeChild(p.gutter),p.gutter=null),p.gutterBackground&&(p.node.removeChild(p.gutterBackground),p.gutterBackground=null),p.line.gutterClass){var w=M1(p);p.gutterBackground=j("div",null,"CodeMirror-gutter-background "+p.line.gutterClass,"left: "+(c.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px; width: "+v.gutterTotalWidth+"px"),c.display.input.setUneditable(p.gutterBackground),w.insertBefore(p.gutterBackground,p.text)}var O=p.line.gutterMarkers;if(c.options.lineNumbers||O){var $=M1(p),D=p.gutter=j("div",null,"CodeMirror-gutter-wrapper","left: "+(c.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px");if(D.setAttribute("aria-hidden","true"),c.display.input.setUneditable(D),$.insertBefore(D,p.text),p.line.gutterClass&&(D.className+=" "+p.line.gutterClass),c.options.lineNumbers&&(!O||!O["CodeMirror-linenumbers"])&&(p.lineNumber=D.appendChild(j("div",VT(c.options,b),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+v.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+c.display.lineNumInnerWidth+"px"))),O)for(var L=0;L<c.display.gutterSpecs.length;++L){var z=c.display.gutterSpecs[L].className,G=O.hasOwnProperty(z)&&O[z];G&&D.appendChild(j("div",[G],"CodeMirror-gutter-elt","left: "+v.gutterLeft[z]+"px; width: "+v.gutterWidth[z]+"px"))}}}function XBe(c,p,b){p.alignable&&(p.alignable=null);for(var v=R("CodeMirror-linewidget"),w=p.node.firstChild,O=void 0;w;w=O)O=w.nextSibling,v.test(w.className)&&p.node.removeChild(w);YK(c,p,b)}function GBe(c,p,b,v){var w=ZK(c,p);return p.text=p.node=w.pre,w.bgClass&&(p.bgClass=w.bgClass),w.textClass&&(p.textClass=w.textClass),o8(c,p),qK(c,p,b,v),YK(c,p,v),p.node}function YK(c,p,b){if(VK(c,p.line,p,b,!0),p.rest)for(var v=0;v<p.rest.length;v++)VK(c,p.rest[v],p,b,!1)}function VK(c,p,b,v,w){if(p.widgets)for(var O=M1(b),$=0,D=p.widgets;$<D.length;++$){var L=D[$],z=j("div",[L.node],"CodeMirror-linewidget"+(L.className?" "+L.className:""));L.handleMouseEvents||z.setAttribute("cm-ignore-events","true"),KBe(L,z,b,v),c.display.input.setUneditable(z),w&&L.above?O.insertBefore(z,b.gutter||b.text):O.appendChild(z),Ni(L,"redraw")}}function KBe(c,p,b,v){if(c.noHScroll){(b.alignable||(b.alignable=[])).push(p);var w=v.wrapperWidth;p.style.left=v.fixedPos+"px",c.coverGutter||(w-=v.gutterTotalWidth,p.style.paddingLeft=v.gutterTotalWidth+"px"),p.style.width=w+"px"}c.coverGutter&&(p.style.zIndex=5,p.style.position="relative",c.noHScroll||(p.style.marginLeft=-v.gutterTotalWidth+"px"))}function N1(c){if(c.height!=null)return c.height;var p=c.doc.cm;if(!p)return 0;if(!K(document.body,c.node)){var b="position: relative;";c.coverGutter&&(b+="margin-left: -"+p.display.gutters.offsetWidth+"px;"),c.noHScroll&&(b+="width: "+p.display.wrapper.clientWidth+"px;"),H(p.display.measure,j("div",[c.node],null,b))}return c.height=c.node.parentNode.offsetHeight}function jl(c,p){for(var b=ip(p);b!=c.wrapper;b=b.parentNode)if(!b||b.nodeType==1&&b.getAttribute("cm-ignore-events")=="true"||b.parentNode==c.sizer&&b!=c.mover)return!0}function N2(c){return c.lineSpace.offsetTop}function s8(c){return c.mover.offsetHeight-c.lineSpace.offsetHeight}function XK(c){if(c.cachedPaddingH)return c.cachedPaddingH;var p=H(c.measure,j("pre","x","CodeMirror-line-like")),b=window.getComputedStyle?window.getComputedStyle(p):p.currentStyle,v={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight)};return!isNaN(v.left)&&!isNaN(v.right)&&(c.cachedPaddingH=v),v}function za(c){return De-c.display.nativeBarWidth}function Lf(c){return c.display.scroller.clientWidth-za(c)-c.display.barWidth}function a8(c){return c.display.scroller.clientHeight-za(c)-c.display.barHeight}function JBe(c,p,b){var v=c.options.lineWrapping,w=v&&Lf(c);if(!p.measure.heights||v&&p.measure.width!=w){var O=p.measure.heights=[];if(v){p.measure.width=w;for(var $=p.text.firstChild.getClientRects(),D=0;D<$.length-1;D++){var L=$[D],z=$[D+1];Math.abs(L.bottom-z.bottom)>2&&O.push((L.bottom+z.top)/2-b.top)}}O.push(b.bottom-b.top)}}function GK(c,p,b){if(c.line==p)return{map:c.measure.map,cache:c.measure.cache};if(c.rest){for(var v=0;v<c.rest.length;v++)if(c.rest[v]==p)return{map:c.measure.maps[v],cache:c.measure.caches[v]};for(var w=0;w<c.rest.length;w++)if(Bt(c.rest[w])>b)return{map:c.measure.maps[w],cache:c.measure.caches[w],before:!0}}}function eWe(c,p){p=Zs(p);var b=Bt(p),v=c.display.externalMeasured=new QK(c.doc,p,b);v.lineN=b;var w=v.built=WK(c,v);return v.text=w.pre,H(c.display.lineMeasure,w.pre),v}function KK(c,p,b,v){return Ba(c,up(c,p),b,v)}function l8(c,p){if(p>=c.display.viewFrom&&p<c.display.viewTo)return c.display.view[Ff(c,p)];var b=c.display.externalMeasured;if(b&&p>=b.lineN&&p<b.lineN+b.size)return b}function up(c,p){var b=Bt(p),v=l8(c,b);v&&!v.text?v=null:v&&v.changes&&(UK(c,v,b,h8(c)),c.curOp.forceUpdate=!0),v||(v=eWe(c,p));var w=GK(v,p,b);return{line:p,view:v,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function Ba(c,p,b,v,w){p.before&&(b=-1);var O=b+(v||""),$;return p.cache.hasOwnProperty(O)?$=p.cache[O]:(p.rect||(p.rect=p.view.text.getBoundingClientRect()),p.hasHeights||(JBe(c,p.view,p.rect),p.hasHeights=!0),$=nWe(c,p,b,v),$.bogus||(p.cache[O]=$)),{left:$.left,right:$.right,top:w?$.rtop:$.top,bottom:w?$.rbottom:$.bottom}}var JK={left:0,right:0,top:0,bottom:0};function eJ(c,p,b){for(var v,w,O,$,D,L,z=0;z<c.length;z+=3)if(D=c[z],L=c[z+1],p<D?(w=0,O=1,$="left"):p<L?(w=p-D,O=w+1):(z==c.length-3||p==L&&c[z+3]>p)&&(O=L-D,w=O-1,p>=L&&($="right")),w!=null){if(v=c[z+2],D==L&&b==(v.insertLeft?"left":"right")&&($=b),b=="left"&&w==0)for(;z&&c[z-2]==c[z-3]&&c[z-1].insertLeft;)v=c[(z-=3)+2],$="left";if(b=="right"&&w==L-D)for(;z<c.length-3&&c[z+3]==c[z+4]&&!c[z+5].insertLeft;)v=c[(z+=3)+2],$="right";break}return{node:v,start:w,end:O,collapse:$,coverStart:D,coverEnd:L}}function tWe(c,p){var b=JK;if(p=="left")for(var v=0;v<c.length&&(b=c[v]).left==b.right;v++);else for(var w=c.length-1;w>=0&&(b=c[w]).left==b.right;w--);return b}function nWe(c,p,b,v){var w=eJ(p.map,b,v),O=w.node,$=w.start,D=w.end,L=w.collapse,z;if(O.nodeType==3){for(var G=0;G<4;G++){for(;$&&Al(p.line.text.charAt(w.coverStart+$));)--$;for(;w.coverStart+D<w.coverEnd&&Al(p.line.text.charAt(w.coverStart+D));)++D;if(l&&u<9&&$==0&&D==w.coverEnd-w.coverStart?z=O.parentNode.getBoundingClientRect():z=tWe(Y(O,$,D).getClientRects(),v),z.left||z.right||$==0)break;D=$,$=$-1,L="right"}l&&u<11&&(z=iWe(c.display.measure,z))}else{$>0&&(L=v="right");var ee;c.options.lineWrapping&&(ee=O.getClientRects()).length>1?z=ee[v=="right"?ee.length-1:0]:z=O.getBoundingClientRect()}if(l&&u<9&&!$&&(!z||!z.left&&!z.right)){var re=O.parentNode.getClientRects()[0];re?z={left:re.left,right:re.left+fp(c.display),top:re.top,bottom:re.bottom}:z=JK}for(var ie=z.top-p.rect.top,fe=z.bottom-p.rect.top,de=(ie+fe)/2,we=p.view.measure.heights,Se=0;Se<we.length-1&&!(de<we[Se]);Se++);var $e=Se?we[Se-1]:0,Ce=we[Se],Pe={left:(L=="right"?z.right:z.left)-p.rect.left,right:(L=="left"?z.left:z.right)-p.rect.left,top:$e,bottom:Ce};return!z.left&&!z.right&&(Pe.bogus=!0),c.options.singleCursorHeightPerLine||(Pe.rtop=ie,Pe.rbottom=fe),Pe}function iWe(c,p){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!w2(c))return p;var b=screen.logicalXDPI/screen.deviceXDPI,v=screen.logicalYDPI/screen.deviceYDPI;return{left:p.left*b,right:p.right*b,top:p.top*v,bottom:p.bottom*v}}function tJ(c){if(c.measure&&(c.measure.cache={},c.measure.heights=null,c.rest))for(var p=0;p<c.rest.length;p++)c.measure.caches[p]={}}function nJ(c){c.display.externalMeasure=null,V(c.display.lineMeasure);for(var p=0;p<c.display.view.length;p++)tJ(c.display.view[p])}function A1(c){nJ(c),c.display.cachedCharWidth=c.display.cachedTextHeight=c.display.cachedPaddingH=null,c.options.lineWrapping||(c.display.maxLineChanged=!0),c.display.lineNumChars=null}function iJ(c){return h&&C?-(c.body.getBoundingClientRect().left-parseInt(getComputedStyle(c.body).marginLeft)):c.defaultView.pageXOffset||(c.documentElement||c.body).scrollLeft}function rJ(c){return h&&C?-(c.body.getBoundingClientRect().top-parseInt(getComputedStyle(c.body).marginTop)):c.defaultView.pageYOffset||(c.documentElement||c.body).scrollTop}function u8(c){var p=Zs(c),b=p.widgets,v=0;if(b)for(var w=0;w<b.length;++w)b[w].above&&(v+=N1(b[w]));return v}function A2(c,p,b,v,w){if(!w){var O=u8(p);b.top+=O,b.bottom+=O}if(v=="line")return b;v||(v="local");var $=Rl(p);if(v=="local"?$+=N2(c.display):$-=c.display.viewOffset,v=="page"||v=="window"){var D=c.display.lineSpace.getBoundingClientRect();$+=D.top+(v=="window"?0:rJ(F(c)));var L=D.left+(v=="window"?0:iJ(F(c)));b.left+=L,b.right+=L}return b.top+=$,b.bottom+=$,b}function oJ(c,p,b){if(b=="div")return p;var v=p.left,w=p.top;if(b=="page")v-=iJ(F(c)),w-=rJ(F(c));else if(b=="local"||!b){var O=c.display.sizer.getBoundingClientRect();v+=O.left,w+=O.top}var $=c.display.lineSpace.getBoundingClientRect();return{left:v-$.left,top:w-$.top}}function P2(c,p,b,v,w){return v||(v=ze(c.doc,p.line)),A2(c,v,KK(c,v,p.ch,w),b)}function qs(c,p,b,v,w,O){v=v||ze(c.doc,p.line),w||(w=up(c,v));function $(fe,de){var we=Ba(c,w,fe,de?"right":"left",O);return de?we.left=we.right:we.right=we.left,A2(c,v,we,b)}var D=qo(v,c.doc.direction),L=p.ch,z=p.sticky;if(L>=v.text.length?(L=v.text.length,z="before"):L<=0&&(L=0,z="after"),!D)return $(z=="before"?L-1:L,z=="before");function G(fe,de,we){var Se=D[de],$e=Se.level==1;return $(we?fe-1:fe,$e!=we)}var ee=eo(D,L,z),re=ja,ie=G(L,ee,z=="before");return re!=null&&(ie.other=G(L,re,z!="before")),ie}function sJ(c,p){var b=0;p=vt(c.doc,p),c.options.lineWrapping||(b=fp(c.display)*p.ch);var v=ze(c.doc,p.line),w=Rl(v)+N2(c.display);return{left:b,right:b,top:w,bottom:w+v.height}}function c8(c,p,b,v,w){var O=ke(c,p,b);return O.xRel=w,v&&(O.outside=v),O}function f8(c,p,b){var v=c.doc;if(b+=c.display.viewOffset,b<0)return c8(v.first,0,null,-1,-1);var w=If(v,b),O=v.first+v.size-1;if(w>O)return c8(v.first+v.size-1,ze(v,O).text.length,null,1,1);p<0&&(p=0);for(var $=ze(v,w);;){var D=rWe(c,$,w,p,b),L=ABe($,D.ch+(D.xRel>0||D.outside>0?1:0));if(!L)return D;var z=L.find(1);if(z.line==w)return z;$=ze(v,w=z.line)}}function aJ(c,p,b,v){v-=u8(p);var w=p.text.length,O=oc(function($){return Ba(c,b,$-1).bottom<=v},w,0);return w=oc(function($){return Ba(c,b,$).top>v},O,w),{begin:O,end:w}}function lJ(c,p,b,v){b||(b=up(c,p));var w=A2(c,p,Ba(c,b,v),"line").top;return aJ(c,p,b,w)}function d8(c,p,b,v){return c.bottom<=b?!1:c.top>b?!0:(v?c.left:c.right)>p}function rWe(c,p,b,v,w){w-=Rl(p);var O=up(c,p),$=u8(p),D=0,L=p.text.length,z=!0,G=qo(p,c.doc.direction);if(G){var ee=(c.options.lineWrapping?sWe:oWe)(c,p,b,O,G,v,w);z=ee.level!=1,D=z?ee.from:ee.to-1,L=z?ee.to:ee.from-1}var re=null,ie=null,fe=oc(function(et){var Xe=Ba(c,O,et);return Xe.top+=$,Xe.bottom+=$,d8(Xe,v,w,!1)?(Xe.top<=w&&Xe.left<=v&&(re=et,ie=Xe),!0):!1},D,L),de,we,Se=!1;if(ie){var $e=v-ie.left<ie.right-v,Ce=$e==z;fe=re+(Ce?0:1),we=Ce?"after":"before",de=$e?ie.left:ie.right}else{!z&&(fe==L||fe==D)&&fe++,we=fe==0?"after":fe==p.text.length?"before":Ba(c,O,fe-(z?1:0)).bottom+$<=w==z?"after":"before";var Pe=qs(c,ke(b,fe,we),"line",p,O);de=Pe.left,Se=w<Pe.top?-1:w>=Pe.bottom?1:0}return fe=Jh(p.text,fe,1),c8(b,fe,we,Se,v-de)}function oWe(c,p,b,v,w,O,$){var D=oc(function(ee){var re=w[ee],ie=re.level!=1;return d8(qs(c,ke(b,ie?re.to:re.from,ie?"before":"after"),"line",p,v),O,$,!0)},0,w.length-1),L=w[D];if(D>0){var z=L.level!=1,G=qs(c,ke(b,z?L.from:L.to,z?"after":"before"),"line",p,v);d8(G,O,$,!0)&&G.top>$&&(L=w[D-1])}return L}function sWe(c,p,b,v,w,O,$){var D=aJ(c,p,v,$),L=D.begin,z=D.end;/\s/.test(p.text.charAt(z-1))&&z--;for(var G=null,ee=null,re=0;re<w.length;re++){var ie=w[re];if(!(ie.from>=z||ie.to<=L)){var fe=ie.level!=1,de=Ba(c,v,fe?Math.min(z,ie.to)-1:Math.max(L,ie.from)).right,we=de<O?O-de+1e9:de-O;(!G||ee>we)&&(G=ie,ee=we)}}return G||(G=w[w.length-1]),G.from<L&&(G={from:L,to:G.to,level:G.level}),G.to>z&&(G={from:G.from,to:z,level:G.level}),G}var Rf;function cp(c){if(c.cachedTextHeight!=null)return c.cachedTextHeight;if(Rf==null){Rf=j("pre",null,"CodeMirror-line-like");for(var p=0;p<49;++p)Rf.appendChild(document.createTextNode("x")),Rf.appendChild(j("br"));Rf.appendChild(document.createTextNode("x"))}H(c.measure,Rf);var b=Rf.offsetHeight/50;return b>3&&(c.cachedTextHeight=b),V(c.measure),b||1}function fp(c){if(c.cachedCharWidth!=null)return c.cachedCharWidth;var p=j("span","xxxxxxxxxx"),b=j("pre",[p],"CodeMirror-line-like");H(c.measure,b);var v=p.getBoundingClientRect(),w=(v.right-v.left)/10;return w>2&&(c.cachedCharWidth=w),w||10}function h8(c){for(var p=c.display,b={},v={},w=p.gutters.clientLeft,O=p.gutters.firstChild,$=0;O;O=O.nextSibling,++$){var D=c.display.gutterSpecs[$].className;b[D]=O.offsetLeft+O.clientLeft+w,v[D]=O.clientWidth}return{fixedPos:p8(p),gutterTotalWidth:p.gutters.offsetWidth,gutterLeft:b,gutterWidth:v,wrapperWidth:p.wrapper.clientWidth}}function p8(c){return c.scroller.getBoundingClientRect().left-c.sizer.getBoundingClientRect().left}function uJ(c){var p=cp(c.display),b=c.options.lineWrapping,v=b&&Math.max(5,c.display.scroller.clientWidth/fp(c.display)-3);return function(w){if(lc(c.doc,w))return 0;var O=0;if(w.widgets)for(var $=0;$<w.widgets.length;$++)w.widgets[$].height&&(O+=w.widgets[$].height);return b?O+(Math.ceil(w.text.length/v)||1)*p:O+p}}function g8(c){var p=c.doc,b=uJ(c);p.iter(function(v){var w=b(v);w!=v.height&&Yo(v,w)})}function jf(c,p,b,v){var w=c.display;if(!b&&ip(p).getAttribute("cm-not-content")=="true")return null;var O,$,D=w.lineSpace.getBoundingClientRect();try{O=p.clientX-D.left,$=p.clientY-D.top}catch{return null}var L=f8(c,O,$),z;if(v&&L.xRel>0&&(z=ze(c.doc,L.line).text).length==L.ch){var G=ot(z,z.length,c.options.tabSize)-z.length;L=ke(L.line,Math.max(0,Math.round((O-XK(c.display).left)/fp(c.display))-G))}return L}function Ff(c,p){if(p>=c.display.viewTo||(p-=c.display.viewFrom,p<0))return null;for(var b=c.display.view,v=0;v<b.length;v++)if(p-=b[v].size,p<0)return v}function to(c,p,b,v){p==null&&(p=c.doc.first),b==null&&(b=c.doc.first+c.doc.size),v||(v=0);var w=c.display;if(v&&b<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>p)&&(w.updateLineNumbers=p),c.curOp.viewChanged=!0,p>=w.viewTo)Ll&&n8(c.doc,p)<w.viewTo&&cc(c);else if(b<=w.viewFrom)Ll&&zK(c.doc,b+v)>w.viewFrom?cc(c):(w.viewFrom+=v,w.viewTo+=v);else if(p<=w.viewFrom&&b>=w.viewTo)cc(c);else if(p<=w.viewFrom){var O=D2(c,b,b+v,1);O?(w.view=w.view.slice(O.index),w.viewFrom=O.lineN,w.viewTo+=v):cc(c)}else if(b>=w.viewTo){var $=D2(c,p,p,-1);$?(w.view=w.view.slice(0,$.index),w.viewTo=$.lineN):cc(c)}else{var D=D2(c,p,p,-1),L=D2(c,b,b+v,1);D&&L?(w.view=w.view.slice(0,D.index).concat(M2(c,D.lineN,L.lineN)).concat(w.view.slice(L.index)),w.viewTo+=v):cc(c)}var z=w.externalMeasured;z&&(b<z.lineN?z.lineN+=v:p<z.lineN+z.size&&(w.externalMeasured=null))}function uc(c,p,b){c.curOp.viewChanged=!0;var v=c.display,w=c.display.externalMeasured;if(w&&p>=w.lineN&&p<w.lineN+w.size&&(v.externalMeasured=null),!(p<v.viewFrom||p>=v.viewTo)){var O=v.view[Ff(c,p)];if(O.node!=null){var $=O.changes||(O.changes=[]);ve($,b)==-1&&$.push(b)}}}function cc(c){c.display.viewFrom=c.display.viewTo=c.doc.first,c.display.view=[],c.display.viewOffset=0}function D2(c,p,b,v){var w=Ff(c,p),O,$=c.display.view;if(!Ll||b==c.doc.first+c.doc.size)return{index:w,lineN:b};for(var D=c.display.viewFrom,L=0;L<w;L++)D+=$[L].size;if(D!=p){if(v>0){if(w==$.length-1)return null;O=D+$[w].size-p,w++}else O=D-p;p+=O,b+=O}for(;n8(c.doc,b)!=b;){if(w==(v<0?0:$.length-1))return null;b+=v*$[w-(v<0?1:0)].size,w+=v}return{index:w,lineN:b}}function aWe(c,p,b){var v=c.display,w=v.view;w.length==0||p>=v.viewTo||b<=v.viewFrom?(v.view=M2(c,p,b),v.viewFrom=p):(v.viewFrom>p?v.view=M2(c,p,v.viewFrom).concat(v.view):v.viewFrom<p&&(v.view=v.view.slice(Ff(c,p))),v.viewFrom=p,v.viewTo<b?v.view=v.view.concat(M2(c,v.viewTo,b)):v.viewTo>b&&(v.view=v.view.slice(0,Ff(c,b)))),v.viewTo=b}function cJ(c){for(var p=c.display.view,b=0,v=0;v<p.length;v++){var w=p[v];!w.hidden&&(!w.node||w.changes)&&++b}return b}function P1(c){c.display.input.showSelection(c.display.input.prepareSelection())}function fJ(c,p){p===void 0&&(p=!0);var b=c.doc,v={},w=v.cursors=document.createDocumentFragment(),O=v.selection=document.createDocumentFragment(),$=c.options.$customCursor;$&&(p=!0);for(var D=0;D<b.sel.ranges.length;D++)if(!(!p&&D==b.sel.primIndex)){var L=b.sel.ranges[D];if(!(L.from().line>=c.display.viewTo||L.to().line<c.display.viewFrom)){var z=L.empty();if($){var G=$(c,L);G&&m8(c,G,w)}else(z||c.options.showCursorWhenSelecting)&&m8(c,L.head,w);z||lWe(c,L,O)}}return v}function m8(c,p,b){var v=qs(c,p,"div",null,null,!c.options.singleCursorHeightPerLine),w=b.appendChild(j("div"," ","CodeMirror-cursor"));if(w.style.left=v.left+"px",w.style.top=v.top+"px",w.style.height=Math.max(0,v.bottom-v.top)*c.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(c.getWrapperElement().className)){var O=P2(c,p,"div",null,null),$=O.right-O.left;w.style.width=($>0?$:c.defaultCharWidth())+"px"}if(v.other){var D=b.appendChild(j("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));D.style.display="",D.style.left=v.other.left+"px",D.style.top=v.other.top+"px",D.style.height=(v.other.bottom-v.other.top)*.85+"px"}}function I2(c,p){return c.top-p.top||c.left-p.left}function lWe(c,p,b){var v=c.display,w=c.doc,O=document.createDocumentFragment(),$=XK(c.display),D=$.left,L=Math.max(v.sizerWidth,Lf(c)-v.sizer.offsetLeft)-$.right,z=w.direction=="ltr";function G(Ce,Pe,et,Xe){Pe<0&&(Pe=0),Pe=Math.round(Pe),Xe=Math.round(Xe),O.appendChild(j("div",null,"CodeMirror-selected","position: absolute; left: "+Ce+`px;
|
||
top: `+Pe+"px; width: "+(et??L-Ce)+`px;
|
||
height: `+(Xe-Pe)+"px"))}function ee(Ce,Pe,et){var Xe=ze(w,Ce),Ct=Xe.text.length,en,Di;function Ln(hi,ro){return P2(c,ke(Ce,hi),"div",Xe,ro)}function wo(hi,ro,Xi){var wi=lJ(c,Xe,null,hi),pi=ro=="ltr"==(Xi=="after")?"left":"right",Zn=Xi=="after"?wi.begin:wi.end-(/\s/.test(Xe.text.charAt(wi.end-1))?2:1);return Ln(Zn,pi)[pi]}var io=qo(Xe,w.direction);return ep(io,Pe||0,et??Ct,function(hi,ro,Xi,wi){var pi=Xi=="ltr",Zn=Ln(hi,pi?"left":"right"),oo=Ln(ro-1,pi?"right":"left"),Op=Pe==null&&hi==0,mc=et==null&&ro==Ct,gr=wi==0,Wa=!io||wi==io.length-1;if(oo.top-Zn.top<=3){var Ii=(z?Op:mc)&&gr,H8=(z?mc:Op)&&Wa,Bl=Ii?D:(pi?Zn:oo).left,Qf=H8?L:(pi?oo:Zn).right;G(Bl,Zn.top,Qf-Bl,Zn.bottom)}else{var Uf,Pr,Sp,Q8;pi?(Uf=z&&Op&&gr?D:Zn.left,Pr=z?L:wo(hi,Xi,"before"),Sp=z?D:wo(ro,Xi,"after"),Q8=z&&mc&&Wa?L:oo.right):(Uf=z?wo(hi,Xi,"before"):D,Pr=!z&&Op&&gr?L:Zn.right,Sp=!z&&mc&&Wa?D:oo.left,Q8=z?wo(ro,Xi,"after"):L),G(Uf,Zn.top,Pr-Uf,Zn.bottom),Zn.bottom<oo.top&&G(D,Zn.bottom,null,oo.top),G(Sp,oo.top,Q8-Sp,oo.bottom)}(!en||I2(Zn,en)<0)&&(en=Zn),I2(oo,en)<0&&(en=oo),(!Di||I2(Zn,Di)<0)&&(Di=Zn),I2(oo,Di)<0&&(Di=oo)}),{start:en,end:Di}}var re=p.from(),ie=p.to();if(re.line==ie.line)ee(re.line,re.ch,ie.ch);else{var fe=ze(w,re.line),de=ze(w,ie.line),we=Zs(fe)==Zs(de),Se=ee(re.line,re.ch,we?fe.text.length+1:null).end,$e=ee(ie.line,we?0:null,ie.ch).start;we&&(Se.top<$e.top-2?(G(Se.right,Se.top,null,Se.bottom),G(D,$e.top,$e.left,$e.bottom)):G(Se.right,Se.top,$e.left-Se.right,Se.bottom)),Se.bottom<$e.top&&G(D,Se.bottom,null,$e.top)}b.appendChild(O)}function v8(c){if(c.state.focused){var p=c.display;clearInterval(p.blinker);var b=!0;p.cursorDiv.style.visibility="",c.options.cursorBlinkRate>0?p.blinker=setInterval(function(){c.hasFocus()||dp(c),p.cursorDiv.style.visibility=(b=!b)?"":"hidden"},c.options.cursorBlinkRate):c.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}}function dJ(c){c.hasFocus()||(c.display.input.focus(),c.state.focused||k8(c))}function b8(c){c.state.delayingBlurEvent=!0,setTimeout(function(){c.state.delayingBlurEvent&&(c.state.delayingBlurEvent=!1,c.state.focused&&dp(c))},100)}function k8(c,p){c.state.delayingBlurEvent&&!c.state.draggingText&&(c.state.delayingBlurEvent=!1),c.options.readOnly!="nocursor"&&(c.state.focused||(Un(c,"focus",c,p),c.state.focused=!0,oe(c.display.wrapper,"CodeMirror-focused"),!c.curOp&&c.display.selForContextMenu!=c.doc.sel&&(c.display.input.reset(),f&&setTimeout(function(){return c.display.input.reset(!0)},20)),c.display.input.receivedFocus()),v8(c))}function dp(c,p){c.state.delayingBlurEvent||(c.state.focused&&(Un(c,"blur",c,p),c.state.focused=!1,Q(c.display.wrapper,"CodeMirror-focused")),clearInterval(c.display.blinker),setTimeout(function(){c.state.focused||(c.display.shift=!1)},150))}function L2(c){for(var p=c.display,b=p.lineDiv.offsetTop,v=Math.max(0,p.scroller.getBoundingClientRect().top),w=p.lineDiv.getBoundingClientRect().top,O=0,$=0;$<p.view.length;$++){var D=p.view[$],L=c.options.lineWrapping,z=void 0,G=0;if(!D.hidden){if(w+=D.line.height,l&&u<8){var ee=D.node.offsetTop+D.node.offsetHeight;z=ee-b,b=ee}else{var re=D.node.getBoundingClientRect();z=re.bottom-re.top,!L&&D.text.firstChild&&(G=D.text.firstChild.getBoundingClientRect().right-re.left-1)}var ie=D.line.height-z;if((ie>.005||ie<-.005)&&(w<v&&(O-=ie),Yo(D.line,z),hJ(D.line),D.rest))for(var fe=0;fe<D.rest.length;fe++)hJ(D.rest[fe]);if(G>c.display.sizerWidth){var de=Math.ceil(G/fp(c.display));de>c.display.maxLineLength&&(c.display.maxLineLength=de,c.display.maxLine=D.line,c.display.maxLineChanged=!0)}}}Math.abs(O)>2&&(p.scroller.scrollTop+=O)}function hJ(c){if(c.widgets)for(var p=0;p<c.widgets.length;++p){var b=c.widgets[p],v=b.node.parentNode;v&&(b.height=v.offsetHeight)}}function R2(c,p,b){var v=b&&b.top!=null?Math.max(0,b.top):c.scroller.scrollTop;v=Math.floor(v-N2(c));var w=b&&b.bottom!=null?b.bottom:v+c.wrapper.clientHeight,O=If(p,v),$=If(p,w);if(b&&b.ensure){var D=b.ensure.from.line,L=b.ensure.to.line;D<O?(O=D,$=If(p,Rl(ze(p,D))+c.wrapper.clientHeight)):Math.min(L,p.lastLine())>=$&&(O=If(p,Rl(ze(p,L))-c.wrapper.clientHeight),$=L)}return{from:O,to:Math.max($,O+1)}}function uWe(c,p){if(!Sn(c,"scrollCursorIntoView")){var b=c.display,v=b.sizer.getBoundingClientRect(),w=null,O=b.wrapper.ownerDocument;if(p.top+v.top<0?w=!0:p.bottom+v.top>(O.defaultView.innerHeight||O.documentElement.clientHeight)&&(w=!1),w!=null&&!_){var $=j("div","",null,`position: absolute;
|
||
top: `+(p.top-b.viewOffset-N2(c.display))+`px;
|
||
height: `+(p.bottom-p.top+za(c)+b.barHeight)+`px;
|
||
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");c.display.lineSpace.appendChild($),$.scrollIntoView(w),c.display.lineSpace.removeChild($)}}}function cWe(c,p,b,v){v==null&&(v=0);var w;!c.options.lineWrapping&&p==b&&(b=p.sticky=="before"?ke(p.line,p.ch+1,"before"):p,p=p.ch?ke(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p);for(var O=0;O<5;O++){var $=!1,D=qs(c,p),L=!b||b==p?D:qs(c,b);w={left:Math.min(D.left,L.left),top:Math.min(D.top,L.top)-v,right:Math.max(D.left,L.left),bottom:Math.max(D.bottom,L.bottom)+v};var z=y8(c,w),G=c.doc.scrollTop,ee=c.doc.scrollLeft;if(z.scrollTop!=null&&(I1(c,z.scrollTop),Math.abs(c.doc.scrollTop-G)>1&&($=!0)),z.scrollLeft!=null&&(zf(c,z.scrollLeft),Math.abs(c.doc.scrollLeft-ee)>1&&($=!0)),!$)break}return w}function fWe(c,p){var b=y8(c,p);b.scrollTop!=null&&I1(c,b.scrollTop),b.scrollLeft!=null&&zf(c,b.scrollLeft)}function y8(c,p){var b=c.display,v=cp(c.display);p.top<0&&(p.top=0);var w=c.curOp&&c.curOp.scrollTop!=null?c.curOp.scrollTop:b.scroller.scrollTop,O=a8(c),$={};p.bottom-p.top>O&&(p.bottom=p.top+O);var D=c.doc.height+s8(b),L=p.top<v,z=p.bottom>D-v;if(p.top<w)$.scrollTop=L?0:p.top;else if(p.bottom>w+O){var G=Math.min(p.top,(z?D:p.bottom)-O);G!=w&&($.scrollTop=G)}var ee=c.options.fixedGutter?0:b.gutters.offsetWidth,re=c.curOp&&c.curOp.scrollLeft!=null?c.curOp.scrollLeft:b.scroller.scrollLeft-ee,ie=Lf(c)-b.gutters.offsetWidth,fe=p.right-p.left>ie;return fe&&(p.right=p.left+ie),p.left<10?$.scrollLeft=0:p.left<re?$.scrollLeft=Math.max(0,p.left+ee-(fe?0:10)):p.right>ie+re-3&&($.scrollLeft=p.right+(fe?0:10)-ie),$}function w8(c,p){p!=null&&(j2(c),c.curOp.scrollTop=(c.curOp.scrollTop==null?c.doc.scrollTop:c.curOp.scrollTop)+p)}function hp(c){j2(c);var p=c.getCursor();c.curOp.scrollToPos={from:p,to:p,margin:c.options.cursorScrollMargin}}function D1(c,p,b){(p!=null||b!=null)&&j2(c),p!=null&&(c.curOp.scrollLeft=p),b!=null&&(c.curOp.scrollTop=b)}function dWe(c,p){j2(c),c.curOp.scrollToPos=p}function j2(c){var p=c.curOp.scrollToPos;if(p){c.curOp.scrollToPos=null;var b=sJ(c,p.from),v=sJ(c,p.to);pJ(c,b,v,p.margin)}}function pJ(c,p,b,v){var w=y8(c,{left:Math.min(p.left,b.left),top:Math.min(p.top,b.top)-v,right:Math.max(p.right,b.right),bottom:Math.max(p.bottom,b.bottom)+v});D1(c,w.scrollLeft,w.scrollTop)}function I1(c,p){Math.abs(c.doc.scrollTop-p)<2||(r||_8(c,{top:p}),gJ(c,p,!0),r&&_8(c),j1(c,100))}function gJ(c,p,b){p=Math.max(0,Math.min(c.display.scroller.scrollHeight-c.display.scroller.clientHeight,p)),!(c.display.scroller.scrollTop==p&&!b)&&(c.doc.scrollTop=p,c.display.scrollbars.setScrollTop(p),c.display.scroller.scrollTop!=p&&(c.display.scroller.scrollTop=p))}function zf(c,p,b,v){p=Math.max(0,Math.min(p,c.display.scroller.scrollWidth-c.display.scroller.clientWidth)),!((b?p==c.doc.scrollLeft:Math.abs(c.doc.scrollLeft-p)<2)&&!v)&&(c.doc.scrollLeft=p,yJ(c),c.display.scroller.scrollLeft!=p&&(c.display.scroller.scrollLeft=p),c.display.scrollbars.setScrollLeft(p))}function L1(c){var p=c.display,b=p.gutters.offsetWidth,v=Math.round(c.doc.height+s8(c.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:c.options.fixedGutter?b:0,docHeight:v,scrollHeight:v+za(c)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:b}}var Bf=function(c,p,b){this.cm=b;var v=this.vert=j("div",[j("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=j("div",[j("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");v.tabIndex=w.tabIndex=-1,c(v),c(w),rt(v,"scroll",function(){v.clientHeight&&p(v.scrollTop,"vertical")}),rt(w,"scroll",function(){w.clientWidth&&p(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,l&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bf.prototype.update=function(c){var p=c.scrollWidth>c.clientWidth+1,b=c.scrollHeight>c.clientHeight+1,v=c.nativeBarWidth;if(b){this.vert.style.display="block",this.vert.style.bottom=p?v+"px":"0";var w=c.viewHeight-(p?v:0);this.vert.firstChild.style.height=Math.max(0,c.scrollHeight-c.clientHeight+w)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=b?v+"px":"0",this.horiz.style.left=c.barLeft+"px";var O=c.viewWidth-c.barLeft-(b?v:0);this.horiz.firstChild.style.width=Math.max(0,c.scrollWidth-c.clientWidth+O)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&c.clientHeight>0&&(v==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:b?v:0,bottom:p?v:0}},Bf.prototype.setScrollLeft=function(c){this.horiz.scrollLeft!=c&&(this.horiz.scrollLeft=c),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bf.prototype.setScrollTop=function(c){this.vert.scrollTop!=c&&(this.vert.scrollTop=c),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bf.prototype.zeroWidthHack=function(){var c=N&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=c,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new ht,this.disableVert=new ht},Bf.prototype.enableZeroWidthBar=function(c,p,b){c.style.visibility="";function v(){var w=c.getBoundingClientRect(),O=b=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);O!=c?c.style.visibility="hidden":p.set(1e3,v)}p.set(1e3,v)},Bf.prototype.clear=function(){var c=this.horiz.parentNode;c.removeChild(this.horiz),c.removeChild(this.vert)};var R1=function(){};R1.prototype.update=function(){return{bottom:0,right:0}},R1.prototype.setScrollLeft=function(){},R1.prototype.setScrollTop=function(){},R1.prototype.clear=function(){};function pp(c,p){p||(p=L1(c));var b=c.display.barWidth,v=c.display.barHeight;mJ(c,p);for(var w=0;w<4&&b!=c.display.barWidth||v!=c.display.barHeight;w++)b!=c.display.barWidth&&c.options.lineWrapping&&L2(c),mJ(c,L1(c)),b=c.display.barWidth,v=c.display.barHeight}function mJ(c,p){var b=c.display,v=b.scrollbars.update(p);b.sizer.style.paddingRight=(b.barWidth=v.right)+"px",b.sizer.style.paddingBottom=(b.barHeight=v.bottom)+"px",b.heightForcer.style.borderBottom=v.bottom+"px solid transparent",v.right&&v.bottom?(b.scrollbarFiller.style.display="block",b.scrollbarFiller.style.height=v.bottom+"px",b.scrollbarFiller.style.width=v.right+"px"):b.scrollbarFiller.style.display="",v.bottom&&c.options.coverGutterNextToScrollbar&&c.options.fixedGutter?(b.gutterFiller.style.display="block",b.gutterFiller.style.height=v.bottom+"px",b.gutterFiller.style.width=p.gutterWidth+"px"):b.gutterFiller.style.display=""}var vJ={native:Bf,null:R1};function bJ(c){c.display.scrollbars&&(c.display.scrollbars.clear(),c.display.scrollbars.addClass&&Q(c.display.wrapper,c.display.scrollbars.addClass)),c.display.scrollbars=new vJ[c.options.scrollbarStyle](function(p){c.display.wrapper.insertBefore(p,c.display.scrollbarFiller),rt(p,"mousedown",function(){c.state.focused&&setTimeout(function(){return c.display.input.focus()},0)}),p.setAttribute("cm-not-content","true")},function(p,b){b=="horizontal"?zf(c,p):I1(c,p)},c),c.display.scrollbars.addClass&&oe(c.display.wrapper,c.display.scrollbars.addClass)}var hWe=0;function Wf(c){c.curOp={cm:c,viewChanged:!1,startHeight:c.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++hWe,markArrays:null},QBe(c.curOp)}function Hf(c){var p=c.curOp;p&&ZBe(p,function(b){for(var v=0;v<b.ops.length;v++)b.ops[v].cm.curOp=null;pWe(b)})}function pWe(c){for(var p=c.ops,b=0;b<p.length;b++)gWe(p[b]);for(var v=0;v<p.length;v++)mWe(p[v]);for(var w=0;w<p.length;w++)vWe(p[w]);for(var O=0;O<p.length;O++)bWe(p[O]);for(var $=0;$<p.length;$++)kWe(p[$])}function gWe(c){var p=c.cm,b=p.display;wWe(p),c.updateMaxLine&&r8(p),c.mustUpdate=c.viewChanged||c.forceUpdate||c.scrollTop!=null||c.scrollToPos&&(c.scrollToPos.from.line<b.viewFrom||c.scrollToPos.to.line>=b.viewTo)||b.maxLineChanged&&p.options.lineWrapping,c.update=c.mustUpdate&&new F2(p,c.mustUpdate&&{top:c.scrollTop,ensure:c.scrollToPos},c.forceUpdate)}function mWe(c){c.updatedDisplay=c.mustUpdate&&x8(c.cm,c.update)}function vWe(c){var p=c.cm,b=p.display;c.updatedDisplay&&L2(p),c.barMeasure=L1(p),b.maxLineChanged&&!p.options.lineWrapping&&(c.adjustWidthTo=KK(p,b.maxLine,b.maxLine.text.length).left+3,p.display.sizerWidth=c.adjustWidthTo,c.barMeasure.scrollWidth=Math.max(b.scroller.clientWidth,b.sizer.offsetLeft+c.adjustWidthTo+za(p)+p.display.barWidth),c.maxScrollLeft=Math.max(0,b.sizer.offsetLeft+c.adjustWidthTo-Lf(p))),(c.updatedDisplay||c.selectionChanged)&&(c.preparedSelection=b.input.prepareSelection())}function bWe(c){var p=c.cm;c.adjustWidthTo!=null&&(p.display.sizer.style.minWidth=c.adjustWidthTo+"px",c.maxScrollLeft<p.doc.scrollLeft&&zf(p,Math.min(p.display.scroller.scrollLeft,c.maxScrollLeft),!0),p.display.maxLineChanged=!1);var b=c.focus&&c.focus==te(se(p));c.preparedSelection&&p.display.input.showSelection(c.preparedSelection,b),(c.updatedDisplay||c.startHeight!=p.doc.height)&&pp(p,c.barMeasure),c.updatedDisplay&&S8(p,c.barMeasure),c.selectionChanged&&v8(p),p.state.focused&&c.updateInput&&p.display.input.reset(c.typing),b&&dJ(c.cm)}function kWe(c){var p=c.cm,b=p.display,v=p.doc;if(c.updatedDisplay&&kJ(p,c.update),b.wheelStartX!=null&&(c.scrollTop!=null||c.scrollLeft!=null||c.scrollToPos)&&(b.wheelStartX=b.wheelStartY=null),c.scrollTop!=null&&gJ(p,c.scrollTop,c.forceScroll),c.scrollLeft!=null&&zf(p,c.scrollLeft,!0,!0),c.scrollToPos){var w=cWe(p,vt(v,c.scrollToPos.from),vt(v,c.scrollToPos.to),c.scrollToPos.margin);uWe(p,w)}var O=c.maybeHiddenMarkers,$=c.maybeUnhiddenMarkers;if(O)for(var D=0;D<O.length;++D)O[D].lines.length||Un(O[D],"hide");if($)for(var L=0;L<$.length;++L)$[L].lines.length&&Un($[L],"unhide");b.wrapper.offsetHeight&&(v.scrollTop=p.display.scroller.scrollTop),c.changeObjs&&Un(p,"changes",p,c.changeObjs),c.update&&c.update.finish()}function yo(c,p){if(c.curOp)return p();Wf(c);try{return p()}finally{Hf(c)}}function Ai(c,p){return function(){if(c.curOp)return p.apply(c,arguments);Wf(c);try{return p.apply(c,arguments)}finally{Hf(c)}}}function Ar(c){return function(){if(this.curOp)return c.apply(this,arguments);Wf(this);try{return c.apply(this,arguments)}finally{Hf(this)}}}function Pi(c){return function(){var p=this.cm;if(!p||p.curOp)return c.apply(this,arguments);Wf(p);try{return c.apply(this,arguments)}finally{Hf(p)}}}function j1(c,p){c.doc.highlightFrontier<c.display.viewTo&&c.state.highlight.set(p,je(yWe,c))}function yWe(c){var p=c.doc;if(!(p.highlightFrontier>=c.display.viewTo)){var b=+new Date+c.options.workTime,v=E1(c,p.highlightFrontier),w=[];p.iter(v.line,Math.min(p.first+p.size,c.display.viewTo+500),function(O){if(v.line>=c.display.viewFrom){var $=O.styles,D=O.text.length>c.options.maxHighlightLength?Dn(p.mode,v.state):null,L=CK(c,O,v,!0);D&&(v.state=D),O.styles=L.styles;var z=O.styleClasses,G=L.classes;G?O.styleClasses=G:z&&(O.styleClasses=null);for(var ee=!$||$.length!=O.styles.length||z!=G&&(!z||!G||z.bgClass!=G.bgClass||z.textClass!=G.textClass),re=0;!ee&&re<$.length;++re)ee=$[re]!=O.styles[re];ee&&w.push(v.line),O.stateAfter=v.save(),v.nextLine()}else O.text.length<=c.options.maxHighlightLength&&KT(c,O.text,v),O.stateAfter=v.line%5==0?v.save():null,v.nextLine();if(+new Date>b)return j1(c,c.options.workDelay),!0}),p.highlightFrontier=v.line,p.modeFrontier=Math.max(p.modeFrontier,v.line),w.length&&yo(c,function(){for(var O=0;O<w.length;O++)uc(c,w[O],"text")})}}var F2=function(c,p,b){var v=c.display;this.viewport=p,this.visible=R2(v,c.doc,p),this.editorIsHidden=!v.wrapper.offsetWidth,this.wrapperHeight=v.wrapper.clientHeight,this.wrapperWidth=v.wrapper.clientWidth,this.oldDisplayWidth=Lf(c),this.force=b,this.dims=h8(c),this.events=[]};F2.prototype.signal=function(c,p){bo(c,p)&&this.events.push(arguments)},F2.prototype.finish=function(){for(var c=0;c<this.events.length;c++)Un.apply(null,this.events[c])};function wWe(c){var p=c.display;!p.scrollbarsClipped&&p.scroller.offsetWidth&&(p.nativeBarWidth=p.scroller.offsetWidth-p.scroller.clientWidth,p.heightForcer.style.height=za(c)+"px",p.sizer.style.marginBottom=-p.nativeBarWidth+"px",p.sizer.style.borderRightWidth=za(c)+"px",p.scrollbarsClipped=!0)}function xWe(c){if(c.hasFocus())return null;var p=te(se(c));if(!p||!K(c.display.lineDiv,p))return null;var b={activeElt:p};if(window.getSelection){var v=pe(c).getSelection();v.anchorNode&&v.extend&&K(c.display.lineDiv,v.anchorNode)&&(b.anchorNode=v.anchorNode,b.anchorOffset=v.anchorOffset,b.focusNode=v.focusNode,b.focusOffset=v.focusOffset)}return b}function _We(c){if(!(!c||!c.activeElt||c.activeElt==te(le(c.activeElt)))&&(c.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(c.activeElt.nodeName)&&c.anchorNode&&K(document.body,c.anchorNode)&&K(document.body,c.focusNode))){var p=c.activeElt.ownerDocument,b=p.defaultView.getSelection(),v=p.createRange();v.setEnd(c.anchorNode,c.anchorOffset),v.collapse(!1),b.removeAllRanges(),b.addRange(v),b.extend(c.focusNode,c.focusOffset)}}function x8(c,p){var b=c.display,v=c.doc;if(p.editorIsHidden)return cc(c),!1;if(!p.force&&p.visible.from>=b.viewFrom&&p.visible.to<=b.viewTo&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo)&&b.renderedView==b.view&&cJ(c)==0)return!1;wJ(c)&&(cc(c),p.dims=h8(c));var w=v.first+v.size,O=Math.max(p.visible.from-c.options.viewportMargin,v.first),$=Math.min(w,p.visible.to+c.options.viewportMargin);b.viewFrom<O&&O-b.viewFrom<20&&(O=Math.max(v.first,b.viewFrom)),b.viewTo>$&&b.viewTo-$<20&&($=Math.min(w,b.viewTo)),Ll&&(O=n8(c.doc,O),$=zK(c.doc,$));var D=O!=b.viewFrom||$!=b.viewTo||b.lastWrapHeight!=p.wrapperHeight||b.lastWrapWidth!=p.wrapperWidth;aWe(c,O,$),b.viewOffset=Rl(ze(c.doc,b.viewFrom)),c.display.mover.style.top=b.viewOffset+"px";var L=cJ(c);if(!D&&L==0&&!p.force&&b.renderedView==b.view&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo))return!1;var z=xWe(c);return L>4&&(b.lineDiv.style.display="none"),OWe(c,b.updateLineNumbers,p.dims),L>4&&(b.lineDiv.style.display=""),b.renderedView=b.view,_We(z),V(b.cursorDiv),V(b.selectionDiv),b.gutters.style.height=b.sizer.style.minHeight=0,D&&(b.lastWrapHeight=p.wrapperHeight,b.lastWrapWidth=p.wrapperWidth,j1(c,400)),b.updateLineNumbers=null,!0}function kJ(c,p){for(var b=p.viewport,v=!0;;v=!1){if(!v||!c.options.lineWrapping||p.oldDisplayWidth==Lf(c)){if(b&&b.top!=null&&(b={top:Math.min(c.doc.height+s8(c.display)-a8(c),b.top)}),p.visible=R2(c.display,c.doc,b),p.visible.from>=c.display.viewFrom&&p.visible.to<=c.display.viewTo)break}else v&&(p.visible=R2(c.display,c.doc,b));if(!x8(c,p))break;L2(c);var w=L1(c);P1(c),pp(c,w),S8(c,w),p.force=!1}p.signal(c,"update",c),(c.display.viewFrom!=c.display.reportedViewFrom||c.display.viewTo!=c.display.reportedViewTo)&&(p.signal(c,"viewportChange",c,c.display.viewFrom,c.display.viewTo),c.display.reportedViewFrom=c.display.viewFrom,c.display.reportedViewTo=c.display.viewTo)}function _8(c,p){var b=new F2(c,p);if(x8(c,b)){L2(c),kJ(c,b);var v=L1(c);P1(c),pp(c,v),S8(c,v),b.finish()}}function OWe(c,p,b){var v=c.display,w=c.options.lineNumbers,O=v.lineDiv,$=O.firstChild;function D(fe){var de=fe.nextSibling;return f&&N&&c.display.currentWheelTarget==fe?fe.style.display="none":fe.parentNode.removeChild(fe),de}for(var L=v.view,z=v.viewFrom,G=0;G<L.length;G++){var ee=L[G];if(!ee.hidden)if(!ee.node||ee.node.parentNode!=O){var re=GBe(c,ee,z,b);O.insertBefore(re,$)}else{for(;$!=ee.node;)$=D($);var ie=w&&p!=null&&p<=z&&ee.lineNumber;ee.changes&&(ve(ee.changes,"gutter")>-1&&(ie=!1),UK(c,ee,z,b)),ie&&(V(ee.lineNumber),ee.lineNumber.appendChild(document.createTextNode(VT(c.options,z)))),$=ee.node.nextSibling}z+=ee.size}for(;$;)$=D($)}function O8(c){var p=c.gutters.offsetWidth;c.sizer.style.marginLeft=p+"px",Ni(c,"gutterChanged",c)}function S8(c,p){c.display.sizer.style.minHeight=p.docHeight+"px",c.display.heightForcer.style.top=p.docHeight+"px",c.display.gutters.style.height=p.docHeight+c.display.barHeight+za(c)+"px"}function yJ(c){var p=c.display,b=p.view;if(!(!p.alignWidgets&&(!p.gutters.firstChild||!c.options.fixedGutter))){for(var v=p8(p)-p.scroller.scrollLeft+c.doc.scrollLeft,w=p.gutters.offsetWidth,O=v+"px",$=0;$<b.length;$++)if(!b[$].hidden){c.options.fixedGutter&&(b[$].gutter&&(b[$].gutter.style.left=O),b[$].gutterBackground&&(b[$].gutterBackground.style.left=O));var D=b[$].alignable;if(D)for(var L=0;L<D.length;L++)D[L].style.left=O}c.options.fixedGutter&&(p.gutters.style.left=v+w+"px")}}function wJ(c){if(!c.options.lineNumbers)return!1;var p=c.doc,b=VT(c.options,p.first+p.size-1),v=c.display;if(b.length!=v.lineNumChars){var w=v.measure.appendChild(j("div",[j("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),O=w.firstChild.offsetWidth,$=w.offsetWidth-O;return v.lineGutter.style.width="",v.lineNumInnerWidth=Math.max(O,v.lineGutter.offsetWidth-$)+1,v.lineNumWidth=v.lineNumInnerWidth+$,v.lineNumChars=v.lineNumInnerWidth?b.length:-1,v.lineGutter.style.width=v.lineNumWidth+"px",O8(c.display),!0}return!1}function C8(c,p){for(var b=[],v=!1,w=0;w<c.length;w++){var O=c[w],$=null;if(typeof O!="string"&&($=O.style,O=O.className),O=="CodeMirror-linenumbers")if(p)v=!0;else continue;b.push({className:O,style:$})}return p&&!v&&b.push({className:"CodeMirror-linenumbers",style:null}),b}function xJ(c){var p=c.gutters,b=c.gutterSpecs;V(p),c.lineGutter=null;for(var v=0;v<b.length;++v){var w=b[v],O=w.className,$=w.style,D=p.appendChild(j("div",null,"CodeMirror-gutter "+O));$&&(D.style.cssText=$),O=="CodeMirror-linenumbers"&&(c.lineGutter=D,D.style.width=(c.lineNumWidth||1)+"px")}p.style.display=b.length?"":"none",O8(c)}function F1(c){xJ(c.display),to(c),yJ(c)}function SWe(c,p,b,v){var w=this;this.input=b,w.scrollbarFiller=j("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=j("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=q("div",null,"CodeMirror-code"),w.selectionDiv=j("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=j("div",null,"CodeMirror-cursors"),w.measure=j("div",null,"CodeMirror-measure"),w.lineMeasure=j("div",null,"CodeMirror-measure"),w.lineSpace=q("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var O=q("div",[w.lineSpace],"CodeMirror-lines");w.mover=j("div",[O],null,"position: relative"),w.sizer=j("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=j("div",null,null,"position: absolute; height: "+De+"px; width: 1px;"),w.gutters=j("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=j("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=j("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),h&&g===105&&(w.wrapper.style.clipPath="inset(0px)"),w.wrapper.setAttribute("translate","no"),l&&u<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!f&&!(r&&E)&&(w.scroller.draggable=!0),c&&(c.appendChild?c.appendChild(w.wrapper):c(w.wrapper)),w.viewFrom=w.viewTo=p.first,w.reportedViewFrom=w.reportedViewTo=p.first,w.view=[],w.renderedView=null,w.externalMeasured=null,w.viewOffset=0,w.lastWrapHeight=w.lastWrapWidth=0,w.updateLineNumbers=null,w.nativeBarWidth=w.barHeight=w.barWidth=0,w.scrollbarsClipped=!1,w.lineNumWidth=w.lineNumInnerWidth=w.lineNumChars=null,w.alignWidgets=!1,w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.maxLine=null,w.maxLineLength=0,w.maxLineChanged=!1,w.wheelDX=w.wheelDY=w.wheelStartX=w.wheelStartY=null,w.shift=!1,w.selForContextMenu=null,w.activeTouch=null,w.gutterSpecs=C8(v.gutters,v.lineNumbers),xJ(w),b.init(w)}var z2=0,Fl=null;l?Fl=-.53:r?Fl=15:h?Fl=-.7:y&&(Fl=-1/3);function _J(c){var p=c.wheelDeltaX,b=c.wheelDeltaY;return p==null&&c.detail&&c.axis==c.HORIZONTAL_AXIS&&(p=c.detail),b==null&&c.detail&&c.axis==c.VERTICAL_AXIS?b=c.detail:b==null&&(b=c.wheelDelta),{x:p,y:b}}function CWe(c){var p=_J(c);return p.x*=Fl,p.y*=Fl,p}function OJ(c,p){h&&g==102&&(c.display.chromeScrollHack==null?c.display.sizer.style.pointerEvents="none":clearTimeout(c.display.chromeScrollHack),c.display.chromeScrollHack=setTimeout(function(){c.display.chromeScrollHack=null,c.display.sizer.style.pointerEvents=""},100));var b=_J(p),v=b.x,w=b.y,O=Fl;p.deltaMode===0&&(v=p.deltaX,w=p.deltaY,O=1);var $=c.display,D=$.scroller,L=D.scrollWidth>D.clientWidth,z=D.scrollHeight>D.clientHeight;if(v&&L||w&&z){if(w&&N&&f){e:for(var G=p.target,ee=$.view;G!=D;G=G.parentNode)for(var re=0;re<ee.length;re++)if(ee[re].node==G){c.display.currentWheelTarget=G;break e}}if(v&&!r&&!m&&O!=null){w&&z&&I1(c,Math.max(0,D.scrollTop+w*O)),zf(c,Math.max(0,D.scrollLeft+v*O)),(!w||w&&z)&&ri(p),$.wheelStartX=null;return}if(w&&O!=null){var ie=w*O,fe=c.doc.scrollTop,de=fe+$.wrapper.clientHeight;ie<0?fe=Math.max(0,fe+ie-50):de=Math.min(c.doc.height,de+ie+50),_8(c,{top:fe,bottom:de})}z2<20&&p.deltaMode!==0&&($.wheelStartX==null?($.wheelStartX=D.scrollLeft,$.wheelStartY=D.scrollTop,$.wheelDX=v,$.wheelDY=w,setTimeout(function(){if($.wheelStartX!=null){var we=D.scrollLeft-$.wheelStartX,Se=D.scrollTop-$.wheelStartY,$e=Se&&$.wheelDY&&Se/$.wheelDY||we&&$.wheelDX&&we/$.wheelDX;$.wheelStartX=$.wheelStartY=null,$e&&(Fl=(Fl*z2+$e)/(z2+1),++z2)}},200)):($.wheelDX+=v,$.wheelDY+=w))}}var Vo=function(c,p){this.ranges=c,this.primIndex=p};Vo.prototype.primary=function(){return this.ranges[this.primIndex]},Vo.prototype.equals=function(c){if(c==this)return!0;if(c.primIndex!=this.primIndex||c.ranges.length!=this.ranges.length)return!1;for(var p=0;p<this.ranges.length;p++){var b=this.ranges[p],v=c.ranges[p];if(!XT(b.anchor,v.anchor)||!XT(b.head,v.head))return!1}return!0},Vo.prototype.deepCopy=function(){for(var c=[],p=0;p<this.ranges.length;p++)c[p]=new Ht(GT(this.ranges[p].anchor),GT(this.ranges[p].head));return new Vo(c,this.primIndex)},Vo.prototype.somethingSelected=function(){for(var c=0;c<this.ranges.length;c++)if(!this.ranges[c].empty())return!0;return!1},Vo.prototype.contains=function(c,p){p||(p=c);for(var b=0;b<this.ranges.length;b++){var v=this.ranges[b];if(mt(p,v.from())>=0&&mt(c,v.to())<=0)return b}return-1};var Ht=function(c,p){this.anchor=c,this.head=p};Ht.prototype.from=function(){return _2(this.anchor,this.head)},Ht.prototype.to=function(){return x2(this.anchor,this.head)},Ht.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ys(c,p,b){var v=c&&c.options.selectionsMayTouch,w=p[b];p.sort(function(re,ie){return mt(re.from(),ie.from())}),b=ve(p,w);for(var O=1;O<p.length;O++){var $=p[O],D=p[O-1],L=mt(D.to(),$.from());if(v&&!$.empty()?L>0:L>=0){var z=_2(D.from(),$.from()),G=x2(D.to(),$.to()),ee=D.empty()?$.from()==$.head:D.from()==D.head;O<=b&&--b,p.splice(--O,2,new Ht(ee?G:z,ee?z:G))}}return new Vo(p,b)}function fc(c,p){return new Vo([new Ht(c,p||c)],0)}function dc(c){return c.text?ke(c.from.line+c.text.length-1,Be(c.text).length+(c.text.length==1?c.from.ch:0)):c.to}function SJ(c,p){if(mt(c,p.from)<0)return c;if(mt(c,p.to)<=0)return dc(p);var b=c.line+p.text.length-(p.to.line-p.from.line)-1,v=c.ch;return c.line==p.to.line&&(v+=dc(p).ch-p.to.ch),ke(b,v)}function E8(c,p){for(var b=[],v=0;v<c.sel.ranges.length;v++){var w=c.sel.ranges[v];b.push(new Ht(SJ(w.anchor,p),SJ(w.head,p)))}return Ys(c.cm,b,c.sel.primIndex)}function CJ(c,p,b){return c.line==p.line?ke(b.line,c.ch-p.ch+b.ch):ke(b.line+(c.line-p.line),c.ch)}function EWe(c,p,b){for(var v=[],w=ke(c.first,0),O=w,$=0;$<p.length;$++){var D=p[$],L=CJ(D.from,w,O),z=CJ(dc(D),w,O);if(w=D.to,O=z,b=="around"){var G=c.sel.ranges[$],ee=mt(G.head,G.anchor)<0;v[$]=new Ht(ee?z:L,ee?L:z)}else v[$]=new Ht(L,L)}return new Vo(v,c.sel.primIndex)}function T8(c){c.doc.mode=_e(c.options,c.doc.modeOption),z1(c)}function z1(c){c.doc.iter(function(p){p.stateAfter&&(p.stateAfter=null),p.styles&&(p.styles=null)}),c.doc.modeFrontier=c.doc.highlightFrontier=c.doc.first,j1(c,100),c.state.modeGen++,c.curOp&&to(c)}function EJ(c,p){return p.from.ch==0&&p.to.ch==0&&Be(p.text)==""&&(!c.cm||c.cm.options.wholeLineUpdateBefore)}function $8(c,p,b,v){function w($e){return b?b[$e]:null}function O($e,Ce,Pe){IBe($e,Ce,Pe,v),Ni($e,"change",$e,p)}function $($e,Ce){for(var Pe=[],et=$e;et<Ce;++et)Pe.push(new ap(z[et],w(et),v));return Pe}var D=p.from,L=p.to,z=p.text,G=ze(c,D.line),ee=ze(c,L.line),re=Be(z),ie=w(z.length-1),fe=L.line-D.line;if(p.full)c.insert(0,$(0,z.length)),c.remove(z.length,c.size-z.length);else if(EJ(c,p)){var de=$(0,z.length-1);O(ee,ee.text,ie),fe&&c.remove(D.line,fe),de.length&&c.insert(D.line,de)}else if(G==ee)if(z.length==1)O(G,G.text.slice(0,D.ch)+re+G.text.slice(L.ch),ie);else{var we=$(1,z.length-1);we.push(new ap(re+G.text.slice(L.ch),ie,v)),O(G,G.text.slice(0,D.ch)+z[0],w(0)),c.insert(D.line+1,we)}else if(z.length==1)O(G,G.text.slice(0,D.ch)+z[0]+ee.text.slice(L.ch),w(0)),c.remove(D.line+1,fe);else{O(G,G.text.slice(0,D.ch)+z[0],w(0)),O(ee,re+ee.text.slice(L.ch),ie);var Se=$(1,z.length-1);fe>1&&c.remove(D.line+1,fe-1),c.insert(D.line+1,Se)}Ni(c,"change",c,p)}function hc(c,p,b){function v(w,O,$){if(w.linked)for(var D=0;D<w.linked.length;++D){var L=w.linked[D];if(L.doc!=O){var z=$&&L.sharedHist;b&&!z||(p(L.doc,z),v(L.doc,w,z))}}}v(c,null,!0)}function TJ(c,p){if(p.cm)throw new Error("This document is already in use.");c.doc=p,p.cm=c,g8(c),T8(c),$J(c),c.options.direction=p.direction,c.options.lineWrapping||r8(c),c.options.mode=p.modeOption,to(c)}function $J(c){(c.doc.direction=="rtl"?oe:Q)(c.display.lineDiv,"CodeMirror-rtl")}function TWe(c){yo(c,function(){$J(c),to(c)})}function B2(c){this.done=[],this.undone=[],this.undoDepth=c?c.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=c?c.maxGeneration:1}function M8(c,p){var b={from:GT(p.from),to:dc(p),text:Us(c,p.from,p.to)};return AJ(c,b,p.from.line,p.to.line+1),hc(c,function(v){return AJ(v,b,p.from.line,p.to.line+1)},!0),b}function MJ(c){for(;c.length;){var p=Be(c);if(p.ranges)c.pop();else break}}function $We(c,p){if(p)return MJ(c.done),Be(c.done);if(c.done.length&&!Be(c.done).ranges)return Be(c.done);if(c.done.length>1&&!c.done[c.done.length-2].ranges)return c.done.pop(),Be(c.done)}function NJ(c,p,b,v){var w=c.history;w.undone.length=0;var O=+new Date,$,D;if((w.lastOp==v||w.lastOrigin==p.origin&&p.origin&&(p.origin.charAt(0)=="+"&&w.lastModTime>O-(c.cm?c.cm.options.historyEventDelay:500)||p.origin.charAt(0)=="*"))&&($=$We(w,w.lastOp==v)))D=Be($.changes),mt(p.from,p.to)==0&&mt(p.from,D.to)==0?D.to=dc(p):$.changes.push(M8(c,p));else{var L=Be(w.done);for((!L||!L.ranges)&&W2(c.sel,w.done),$={changes:[M8(c,p)],generation:w.generation},w.done.push($);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(b),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=O,w.lastOp=w.lastSelOp=v,w.lastOrigin=w.lastSelOrigin=p.origin,D||Un(c,"historyAdded")}function MWe(c,p,b,v){var w=p.charAt(0);return w=="*"||w=="+"&&b.ranges.length==v.ranges.length&&b.somethingSelected()==v.somethingSelected()&&new Date-c.history.lastSelTime<=(c.cm?c.cm.options.historyEventDelay:500)}function NWe(c,p,b,v){var w=c.history,O=v&&v.origin;b==w.lastSelOp||O&&w.lastSelOrigin==O&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==O||MWe(c,O,Be(w.done),p))?w.done[w.done.length-1]=p:W2(p,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=O,w.lastSelOp=b,v&&v.clearRedo!==!1&&MJ(w.undone)}function W2(c,p){var b=Be(p);b&&b.ranges&&b.equals(c)||p.push(c)}function AJ(c,p,b,v){var w=p["spans_"+c.id],O=0;c.iter(Math.max(c.first,b),Math.min(c.first+c.size,v),function($){$.markedSpans&&((w||(w=p["spans_"+c.id]={}))[O]=$.markedSpans),++O})}function AWe(c){if(!c)return null;for(var p,b=0;b<c.length;++b)c[b].marker.explicitlyCleared?p||(p=c.slice(0,b)):p&&p.push(c[b]);return p?p.length?p:null:c}function PWe(c,p){var b=p["spans_"+c.id];if(!b)return null;for(var v=[],w=0;w<p.text.length;++w)v.push(AWe(b[w]));return v}function PJ(c,p){var b=PWe(c,p),v=e8(c,p);if(!b)return v;if(!v)return b;for(var w=0;w<b.length;++w){var O=b[w],$=v[w];if(O&&$)e:for(var D=0;D<$.length;++D){for(var L=$[D],z=0;z<O.length;++z)if(O[z].marker==L.marker)continue e;O.push(L)}else $&&(b[w]=$)}return b}function gp(c,p,b){for(var v=[],w=0;w<c.length;++w){var O=c[w];if(O.ranges){v.push(b?Vo.prototype.deepCopy.call(O):O);continue}var $=O.changes,D=[];v.push({changes:D});for(var L=0;L<$.length;++L){var z=$[L],G=void 0;if(D.push({from:z.from,to:z.to,text:z.text}),p)for(var ee in z)(G=ee.match(/^spans_(\d+)$/))&&ve(p,Number(G[1]))>-1&&(Be(D)[ee]=z[ee],delete z[ee])}}return v}function N8(c,p,b,v){if(v){var w=c.anchor;if(b){var O=mt(p,w)<0;O!=mt(b,w)<0?(w=p,p=b):O!=mt(p,b)<0&&(p=b)}return new Ht(w,p)}else return new Ht(b||p,p)}function H2(c,p,b,v,w){w==null&&(w=c.cm&&(c.cm.display.shift||c.extend)),pr(c,new Vo([N8(c.sel.primary(),p,b,w)],0),v)}function DJ(c,p,b){for(var v=[],w=c.cm&&(c.cm.display.shift||c.extend),O=0;O<c.sel.ranges.length;O++)v[O]=N8(c.sel.ranges[O],p[O],null,w);var $=Ys(c.cm,v,c.sel.primIndex);pr(c,$,b)}function A8(c,p,b,v){var w=c.sel.ranges.slice(0);w[p]=b,pr(c,Ys(c.cm,w,c.sel.primIndex),v)}function IJ(c,p,b,v){pr(c,fc(p,b),v)}function DWe(c,p,b){var v={ranges:p.ranges,update:function(w){this.ranges=[];for(var O=0;O<w.length;O++)this.ranges[O]=new Ht(vt(c,w[O].anchor),vt(c,w[O].head))},origin:b&&b.origin};return Un(c,"beforeSelectionChange",c,v),c.cm&&Un(c.cm,"beforeSelectionChange",c.cm,v),v.ranges!=p.ranges?Ys(c.cm,v.ranges,v.ranges.length-1):p}function LJ(c,p,b){var v=c.history.done,w=Be(v);w&&w.ranges?(v[v.length-1]=p,Q2(c,p,b)):pr(c,p,b)}function pr(c,p,b){Q2(c,p,b),NWe(c,c.sel,c.cm?c.cm.curOp.id:NaN,b)}function Q2(c,p,b){(bo(c,"beforeSelectionChange")||c.cm&&bo(c.cm,"beforeSelectionChange"))&&(p=DWe(c,p,b));var v=b&&b.bias||(mt(p.primary().head,c.sel.primary().head)<0?-1:1);RJ(c,FJ(c,p,v,!0)),!(b&&b.scroll===!1)&&c.cm&&c.cm.getOption("readOnly")!="nocursor"&&hp(c.cm)}function RJ(c,p){p.equals(c.sel)||(c.sel=p,c.cm&&(c.cm.curOp.updateInput=1,c.cm.curOp.selectionChanged=!0,v2(c.cm)),Ni(c,"cursorActivity",c))}function jJ(c){RJ(c,FJ(c,c.sel,null,!1))}function FJ(c,p,b,v){for(var w,O=0;O<p.ranges.length;O++){var $=p.ranges[O],D=p.ranges.length==c.sel.ranges.length&&c.sel.ranges[O],L=U2(c,$.anchor,D&&D.anchor,b,v),z=$.head==$.anchor?L:U2(c,$.head,D&&D.head,b,v);(w||L!=$.anchor||z!=$.head)&&(w||(w=p.ranges.slice(0,O)),w[O]=new Ht(L,z))}return w?Ys(c.cm,w,p.primIndex):p}function mp(c,p,b,v,w){var O=ze(c,p.line);if(O.markedSpans)for(var $=0;$<O.markedSpans.length;++$){var D=O.markedSpans[$],L=D.marker,z="selectLeft"in L?!L.selectLeft:L.inclusiveLeft,G="selectRight"in L?!L.selectRight:L.inclusiveRight;if((D.from==null||(z?D.from<=p.ch:D.from<p.ch))&&(D.to==null||(G?D.to>=p.ch:D.to>p.ch))){if(w&&(Un(L,"beforeCursorEnter"),L.explicitlyCleared))if(O.markedSpans){--$;continue}else break;if(!L.atomic)continue;if(b){var ee=L.find(v<0?1:-1),re=void 0;if((v<0?G:z)&&(ee=zJ(c,ee,-v,ee&&ee.line==p.line?O:null)),ee&&ee.line==p.line&&(re=mt(ee,b))&&(v<0?re<0:re>0))return mp(c,ee,p,v,w)}var ie=L.find(v<0?-1:1);return(v<0?z:G)&&(ie=zJ(c,ie,v,ie.line==p.line?O:null)),ie?mp(c,ie,p,v,w):null}}return p}function U2(c,p,b,v,w){var O=v||1,$=mp(c,p,b,O,w)||!w&&mp(c,p,b,O,!0)||mp(c,p,b,-O,w)||!w&&mp(c,p,b,-O,!0);return $||(c.cantEdit=!0,ke(c.first,0))}function zJ(c,p,b,v){return b<0&&p.ch==0?p.line>c.first?vt(c,ke(p.line-1)):null:b>0&&p.ch==(v||ze(c,p.line)).text.length?p.line<c.first+c.size-1?ke(p.line+1,0):null:new ke(p.line,p.ch+b)}function BJ(c){c.setSelection(ke(c.firstLine(),0),ke(c.lastLine()),It)}function WJ(c,p,b){var v={canceled:!1,from:p.from,to:p.to,text:p.text,origin:p.origin,cancel:function(){return v.canceled=!0}};return b&&(v.update=function(w,O,$,D){w&&(v.from=vt(c,w)),O&&(v.to=vt(c,O)),$&&(v.text=$),D!==void 0&&(v.origin=D)}),Un(c,"beforeChange",c,v),c.cm&&Un(c.cm,"beforeChange",c.cm,v),v.canceled?(c.cm&&(c.cm.curOp.updateInput=2),null):{from:v.from,to:v.to,text:v.text,origin:v.origin}}function vp(c,p,b){if(c.cm){if(!c.cm.curOp)return Ai(c.cm,vp)(c,p,b);if(c.cm.state.suppressEdits)return}if(!((bo(c,"beforeChange")||c.cm&&bo(c.cm,"beforeChange"))&&(p=WJ(c,p,!0),!p))){var v=PK&&!b&&NBe(c,p.from,p.to);if(v)for(var w=v.length-1;w>=0;--w)HJ(c,{from:v[w].from,to:v[w].to,text:w?[""]:p.text,origin:p.origin});else HJ(c,p)}}function HJ(c,p){if(!(p.text.length==1&&p.text[0]==""&&mt(p.from,p.to)==0)){var b=E8(c,p);NJ(c,p,b,c.cm?c.cm.curOp.id:NaN),B1(c,p,b,e8(c,p));var v=[];hc(c,function(w,O){!O&&ve(v,w.history)==-1&&(qJ(w.history,p),v.push(w.history)),B1(w,p,null,e8(w,p))})}}function Z2(c,p,b){var v=c.cm&&c.cm.state.suppressEdits;if(!(v&&!b)){for(var w=c.history,O,$=c.sel,D=p=="undo"?w.done:w.undone,L=p=="undo"?w.undone:w.done,z=0;z<D.length&&(O=D[z],!(b?O.ranges&&!O.equals(c.sel):!O.ranges));z++);if(z!=D.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(O=D.pop(),O.ranges){if(W2(O,L),b&&!O.equals(c.sel)){pr(c,O,{clearRedo:!1});return}$=O}else if(v){D.push(O);return}else break;var G=[];W2($,L),L.push({changes:G,generation:w.generation}),w.generation=O.generation||++w.maxGeneration;for(var ee=bo(c,"beforeChange")||c.cm&&bo(c.cm,"beforeChange"),re=function(de){var we=O.changes[de];if(we.origin=p,ee&&!WJ(c,we,!1))return D.length=0,{};G.push(M8(c,we));var Se=de?E8(c,we):Be(D);B1(c,we,Se,PJ(c,we)),!de&&c.cm&&c.cm.scrollIntoView({from:we.from,to:dc(we)});var $e=[];hc(c,function(Ce,Pe){!Pe&&ve($e,Ce.history)==-1&&(qJ(Ce.history,we),$e.push(Ce.history)),B1(Ce,we,null,PJ(Ce,we))})},ie=O.changes.length-1;ie>=0;--ie){var fe=re(ie);if(fe)return fe.v}}}}function QJ(c,p){if(p!=0&&(c.first+=p,c.sel=new Vo(Re(c.sel.ranges,function(w){return new Ht(ke(w.anchor.line+p,w.anchor.ch),ke(w.head.line+p,w.head.ch))}),c.sel.primIndex),c.cm)){to(c.cm,c.first,c.first-p,p);for(var b=c.cm.display,v=b.viewFrom;v<b.viewTo;v++)uc(c.cm,v,"gutter")}}function B1(c,p,b,v){if(c.cm&&!c.cm.curOp)return Ai(c.cm,B1)(c,p,b,v);if(p.to.line<c.first){QJ(c,p.text.length-1-(p.to.line-p.from.line));return}if(!(p.from.line>c.lastLine())){if(p.from.line<c.first){var w=p.text.length-1-(c.first-p.from.line);QJ(c,w),p={from:ke(c.first,0),to:ke(p.to.line+w,p.to.ch),text:[Be(p.text)],origin:p.origin}}var O=c.lastLine();p.to.line>O&&(p={from:p.from,to:ke(O,ze(c,O).text.length),text:[p.text[0]],origin:p.origin}),p.removed=Us(c,p.from,p.to),b||(b=E8(c,p)),c.cm?IWe(c.cm,p,v):$8(c,p,v),Q2(c,b,It),c.cantEdit&&U2(c,ke(c.firstLine(),0))&&(c.cantEdit=!1)}}function IWe(c,p,b){var v=c.doc,w=c.display,O=p.from,$=p.to,D=!1,L=O.line;c.options.lineWrapping||(L=Bt(Zs(ze(v,O.line))),v.iter(L,$.line+1,function(ie){if(ie==w.maxLine)return D=!0,!0})),v.sel.contains(p.from,p.to)>-1&&v2(c),$8(v,p,b,uJ(c)),c.options.lineWrapping||(v.iter(L,O.line+p.text.length,function(ie){var fe=$2(ie);fe>w.maxLineLength&&(w.maxLine=ie,w.maxLineLength=fe,w.maxLineChanged=!0,D=!1)}),D&&(c.curOp.updateMaxLine=!0)),OBe(v,O.line),j1(c,400);var z=p.text.length-($.line-O.line)-1;p.full?to(c):O.line==$.line&&p.text.length==1&&!EJ(c.doc,p)?uc(c,O.line,"text"):to(c,O.line,$.line+1,z);var G=bo(c,"changes"),ee=bo(c,"change");if(ee||G){var re={from:O,to:$,text:p.text,removed:p.removed,origin:p.origin};ee&&Ni(c,"change",c,re),G&&(c.curOp.changeObjs||(c.curOp.changeObjs=[])).push(re)}c.display.selForContextMenu=null}function bp(c,p,b,v,w){var O;v||(v=b),mt(v,b)<0&&(O=[v,b],b=O[0],v=O[1]),typeof p=="string"&&(p=c.splitLines(p)),vp(c,{from:b,to:v,text:p,origin:w})}function UJ(c,p,b,v){b<c.line?c.line+=v:p<c.line&&(c.line=p,c.ch=0)}function ZJ(c,p,b,v){for(var w=0;w<c.length;++w){var O=c[w],$=!0;if(O.ranges){O.copied||(O=c[w]=O.deepCopy(),O.copied=!0);for(var D=0;D<O.ranges.length;D++)UJ(O.ranges[D].anchor,p,b,v),UJ(O.ranges[D].head,p,b,v);continue}for(var L=0;L<O.changes.length;++L){var z=O.changes[L];if(b<z.from.line)z.from=ke(z.from.line+v,z.from.ch),z.to=ke(z.to.line+v,z.to.ch);else if(p<=z.to.line){$=!1;break}}$||(c.splice(0,w+1),w=0)}}function qJ(c,p){var b=p.from.line,v=p.to.line,w=p.text.length-(v-b)-1;ZJ(c.done,b,v,w),ZJ(c.undone,b,v,w)}function W1(c,p,b,v){var w=p,O=p;return typeof p=="number"?O=ze(c,OK(c,p)):w=Bt(p),w==null?null:(v(O,w)&&c.cm&&uc(c.cm,w,b),O)}function H1(c){this.lines=c,this.parent=null;for(var p=0,b=0;b<c.length;++b)c[b].parent=this,p+=c[b].height;this.height=p}H1.prototype={chunkSize:function(){return this.lines.length},removeInner:function(c,p){for(var b=c,v=c+p;b<v;++b){var w=this.lines[b];this.height-=w.height,LBe(w),Ni(w,"delete")}this.lines.splice(c,p)},collapse:function(c){c.push.apply(c,this.lines)},insertInner:function(c,p,b){this.height+=b,this.lines=this.lines.slice(0,c).concat(p).concat(this.lines.slice(c));for(var v=0;v<p.length;++v)p[v].parent=this},iterN:function(c,p,b){for(var v=c+p;c<v;++c)if(b(this.lines[c]))return!0}};function Q1(c){this.children=c;for(var p=0,b=0,v=0;v<c.length;++v){var w=c[v];p+=w.chunkSize(),b+=w.height,w.parent=this}this.size=p,this.height=b,this.parent=null}Q1.prototype={chunkSize:function(){return this.size},removeInner:function(c,p){this.size-=p;for(var b=0;b<this.children.length;++b){var v=this.children[b],w=v.chunkSize();if(c<w){var O=Math.min(p,w-c),$=v.height;if(v.removeInner(c,O),this.height-=$-v.height,w==O&&(this.children.splice(b--,1),v.parent=null),(p-=O)==0)break;c=0}else c-=w}if(this.size-p<25&&(this.children.length>1||!(this.children[0]instanceof H1))){var D=[];this.collapse(D),this.children=[new H1(D)],this.children[0].parent=this}},collapse:function(c){for(var p=0;p<this.children.length;++p)this.children[p].collapse(c)},insertInner:function(c,p,b){this.size+=p.length,this.height+=b;for(var v=0;v<this.children.length;++v){var w=this.children[v],O=w.chunkSize();if(c<=O){if(w.insertInner(c,p,b),w.lines&&w.lines.length>50){for(var $=w.lines.length%25+25,D=$;D<w.lines.length;){var L=new H1(w.lines.slice(D,D+=25));w.height-=L.height,this.children.splice(++v,0,L),L.parent=this}w.lines=w.lines.slice(0,$),this.maybeSpill()}break}c-=O}},maybeSpill:function(){if(!(this.children.length<=10)){var c=this;do{var p=c.children.splice(c.children.length-5,5),b=new Q1(p);if(c.parent){c.size-=b.size,c.height-=b.height;var w=ve(c.parent.children,c);c.parent.children.splice(w+1,0,b)}else{var v=new Q1(c.children);v.parent=c,c.children=[v,b],c=v}b.parent=c.parent}while(c.children.length>10);c.parent.maybeSpill()}},iterN:function(c,p,b){for(var v=0;v<this.children.length;++v){var w=this.children[v],O=w.chunkSize();if(c<O){var $=Math.min(p,O-c);if(w.iterN(c,$,b))return!0;if((p-=$)==0)break;c=0}else c-=O}}};var U1=function(c,p,b){if(b)for(var v in b)b.hasOwnProperty(v)&&(this[v]=b[v]);this.doc=c,this.node=p};U1.prototype.clear=function(){var c=this.doc.cm,p=this.line.widgets,b=this.line,v=Bt(b);if(!(v==null||!p)){for(var w=0;w<p.length;++w)p[w]==this&&p.splice(w--,1);p.length||(b.widgets=null);var O=N1(this);Yo(b,Math.max(0,b.height-O)),c&&(yo(c,function(){YJ(c,b,-O),uc(c,v,"widget")}),Ni(c,"lineWidgetCleared",c,this,v))}},U1.prototype.changed=function(){var c=this,p=this.height,b=this.doc.cm,v=this.line;this.height=null;var w=N1(this)-p;w&&(lc(this.doc,v)||Yo(v,v.height+w),b&&yo(b,function(){b.curOp.forceUpdate=!0,YJ(b,v,w),Ni(b,"lineWidgetChanged",b,c,Bt(v))}))},Cn(U1);function YJ(c,p,b){Rl(p)<(c.curOp&&c.curOp.scrollTop||c.doc.scrollTop)&&w8(c,b)}function LWe(c,p,b,v){var w=new U1(c,b,v),O=c.cm;return O&&w.noHScroll&&(O.display.alignWidgets=!0),W1(c,p,"widget",function($){var D=$.widgets||($.widgets=[]);if(w.insertAt==null?D.push(w):D.splice(Math.min(D.length,Math.max(0,w.insertAt)),0,w),w.line=$,O&&!lc(c,$)){var L=Rl($)<c.scrollTop;Yo($,$.height+N1(w)),L&&w8(O,w.height),O.curOp.forceUpdate=!0}return!0}),O&&Ni(O,"lineWidgetAdded",O,w,typeof p=="number"?p:Bt(p)),w}var VJ=0,pc=function(c,p){this.lines=[],this.type=p,this.doc=c,this.id=++VJ};pc.prototype.clear=function(){if(!this.explicitlyCleared){var c=this.doc.cm,p=c&&!c.curOp;if(p&&Wf(c),bo(this,"clear")){var b=this.find();b&&Ni(this,"clear",b.from,b.to)}for(var v=null,w=null,O=0;O<this.lines.length;++O){var $=this.lines[O],D=T1($.markedSpans,this);c&&!this.collapsed?uc(c,Bt($),"text"):c&&(D.to!=null&&(w=Bt($)),D.from!=null&&(v=Bt($))),$.markedSpans=EBe($.markedSpans,D),D.from==null&&this.collapsed&&!lc(this.doc,$)&&c&&Yo($,cp(c.display))}if(c&&this.collapsed&&!c.options.lineWrapping)for(var L=0;L<this.lines.length;++L){var z=Zs(this.lines[L]),G=$2(z);G>c.display.maxLineLength&&(c.display.maxLine=z,c.display.maxLineLength=G,c.display.maxLineChanged=!0)}v!=null&&c&&this.collapsed&&to(c,v,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,c&&jJ(c.doc)),c&&Ni(c,"markerCleared",c,this,v,w),p&&Hf(c),this.parent&&this.parent.clear()}},pc.prototype.find=function(c,p){c==null&&this.type=="bookmark"&&(c=1);for(var b,v,w=0;w<this.lines.length;++w){var O=this.lines[w],$=T1(O.markedSpans,this);if($.from!=null&&(b=ke(p?O:Bt(O),$.from),c==-1))return b;if($.to!=null&&(v=ke(p?O:Bt(O),$.to),c==1))return v}return b&&{from:b,to:v}},pc.prototype.changed=function(){var c=this,p=this.find(-1,!0),b=this,v=this.doc.cm;!p||!v||yo(v,function(){var w=p.line,O=Bt(p.line),$=l8(v,O);if($&&(tJ($),v.curOp.selectionChanged=v.curOp.forceUpdate=!0),v.curOp.updateMaxLine=!0,!lc(b.doc,w)&&b.height!=null){var D=b.height;b.height=null;var L=N1(b)-D;L&&Yo(w,w.height+L)}Ni(v,"markerChanged",v,c)})},pc.prototype.attachLine=function(c){if(!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(!p.maybeHiddenMarkers||ve(p.maybeHiddenMarkers,this)==-1)&&(p.maybeUnhiddenMarkers||(p.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(c)},pc.prototype.detachLine=function(c){if(this.lines.splice(ve(this.lines,c),1),!this.lines.length&&this.doc.cm){var p=this.doc.cm.curOp;(p.maybeHiddenMarkers||(p.maybeHiddenMarkers=[])).push(this)}},Cn(pc);function kp(c,p,b,v,w){if(v&&v.shared)return RWe(c,p,b,v,w);if(c.cm&&!c.cm.curOp)return Ai(c.cm,kp)(c,p,b,v,w);var O=new pc(c,w),$=mt(p,b);if(v&&He(v,O,!1),$>0||$==0&&O.clearWhenEmpty!==!1)return O;if(O.replacedWith&&(O.collapsed=!0,O.widgetNode=q("span",[O.replacedWith],"CodeMirror-widget"),v.handleMouseEvents||O.widgetNode.setAttribute("cm-ignore-events","true"),v.insertLeft&&(O.widgetNode.insertLeft=!0)),O.collapsed){if(FK(c,p.line,p,b,O)||p.line!=b.line&&FK(c,b.line,p,b,O))throw new Error("Inserting collapsed marker partially overlapping an existing one");CBe()}O.addToHistory&&NJ(c,{from:p,to:b,origin:"markText"},c.sel,NaN);var D=p.line,L=c.cm,z;if(c.iter(D,b.line+1,function(ee){L&&O.collapsed&&!L.options.lineWrapping&&Zs(ee)==L.display.maxLine&&(z=!0),O.collapsed&&D!=p.line&&Yo(ee,0),TBe(ee,new S2(O,D==p.line?p.ch:null,D==b.line?b.ch:null),c.cm&&c.cm.curOp),++D}),O.collapsed&&c.iter(p.line,b.line+1,function(ee){lc(c,ee)&&Yo(ee,0)}),O.clearOnEnter&&rt(O,"beforeCursorEnter",function(){return O.clear()}),O.readOnly&&(SBe(),(c.history.done.length||c.history.undone.length)&&c.clearHistory()),O.collapsed&&(O.id=++VJ,O.atomic=!0),L){if(z&&(L.curOp.updateMaxLine=!0),O.collapsed)to(L,p.line,b.line+1);else if(O.className||O.startStyle||O.endStyle||O.css||O.attributes||O.title)for(var G=p.line;G<=b.line;G++)uc(L,G,"text");O.atomic&&jJ(L.doc),Ni(L,"markerAdded",L,O)}return O}var Z1=function(c,p){this.markers=c,this.primary=p;for(var b=0;b<c.length;++b)c[b].parent=this};Z1.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var c=0;c<this.markers.length;++c)this.markers[c].clear();Ni(this,"clear")}},Z1.prototype.find=function(c,p){return this.primary.find(c,p)},Cn(Z1);function RWe(c,p,b,v,w){v=He(v),v.shared=!1;var O=[kp(c,p,b,v,w)],$=O[0],D=v.widgetNode;return hc(c,function(L){D&&(v.widgetNode=D.cloneNode(!0)),O.push(kp(L,vt(L,p),vt(L,b),v,w));for(var z=0;z<L.linked.length;++z)if(L.linked[z].isParent)return;$=Be(O)}),new Z1(O,$)}function XJ(c){return c.findMarks(ke(c.first,0),c.clipPos(ke(c.lastLine())),function(p){return p.parent})}function jWe(c,p){for(var b=0;b<p.length;b++){var v=p[b],w=v.find(),O=c.clipPos(w.from),$=c.clipPos(w.to);if(mt(O,$)){var D=kp(c,O,$,v.primary,v.primary.type);v.markers.push(D),D.parent=v}}}function FWe(c){for(var p=function(v){var w=c[v],O=[w.primary.doc];hc(w.primary.doc,function(L){return O.push(L)});for(var $=0;$<w.markers.length;$++){var D=w.markers[$];ve(O,D.doc)==-1&&(D.parent=null,w.markers.splice($--,1))}},b=0;b<c.length;b++)p(b)}var zWe=0,no=function(c,p,b,v,w){if(!(this instanceof no))return new no(c,p,b,v,w);b==null&&(b=0),Q1.call(this,[new H1([new ap("",null)])]),this.first=b,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=b;var O=ke(b,0);this.sel=fc(O),this.history=new B2(null),this.id=++zWe,this.modeOption=p,this.lineSep=v,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof c=="string"&&(c=this.splitLines(c)),$8(this,{from:O,to:O,text:c}),pr(this,fc(O),It)};no.prototype=Ut(Q1.prototype,{constructor:no,iter:function(c,p,b){b?this.iterN(c-this.first,p-c,b):this.iterN(this.first,this.first+this.size,c)},insert:function(c,p){for(var b=0,v=0;v<p.length;++v)b+=p[v].height;this.insertInner(c-this.first,p,b)},remove:function(c,p){this.removeInner(c-this.first,p)},getValue:function(c){var p=di(this,this.first,this.first+this.size);return c===!1?p:p.join(c||this.lineSeparator())},setValue:Pi(function(c){var p=ke(this.first,0),b=this.first+this.size-1;vp(this,{from:p,to:ke(b,ze(this,b).text.length),text:this.splitLines(c),origin:"setValue",full:!0},!0),this.cm&&D1(this.cm,0,0),pr(this,fc(p),It)}),replaceRange:function(c,p,b,v){p=vt(this,p),b=b?vt(this,b):p,bp(this,c,p,b,v)},getRange:function(c,p,b){var v=Us(this,vt(this,c),vt(this,p));return b===!1?v:b===""?v.join(""):v.join(b||this.lineSeparator())},getLine:function(c){var p=this.getLineHandle(c);return p&&p.text},getLineHandle:function(c){if(C1(this,c))return ze(this,c)},getLineNumber:function(c){return Bt(c)},getLineHandleVisualStart:function(c){return typeof c=="number"&&(c=ze(this,c)),Zs(c)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(c){return vt(this,c)},getCursor:function(c){var p=this.sel.primary(),b;return c==null||c=="head"?b=p.head:c=="anchor"?b=p.anchor:c=="end"||c=="to"||c===!1?b=p.to():b=p.from(),b},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Pi(function(c,p,b){IJ(this,vt(this,typeof c=="number"?ke(c,p||0):c),null,b)}),setSelection:Pi(function(c,p,b){IJ(this,vt(this,c),vt(this,p||c),b)}),extendSelection:Pi(function(c,p,b){H2(this,vt(this,c),p&&vt(this,p),b)}),extendSelections:Pi(function(c,p){DJ(this,SK(this,c),p)}),extendSelectionsBy:Pi(function(c,p){var b=Re(this.sel.ranges,c);DJ(this,SK(this,b),p)}),setSelections:Pi(function(c,p,b){if(c.length){for(var v=[],w=0;w<c.length;w++)v[w]=new Ht(vt(this,c[w].anchor),vt(this,c[w].head||c[w].anchor));p==null&&(p=Math.min(c.length-1,this.sel.primIndex)),pr(this,Ys(this.cm,v,p),b)}}),addSelection:Pi(function(c,p,b){var v=this.sel.ranges.slice(0);v.push(new Ht(vt(this,c),vt(this,p||c))),pr(this,Ys(this.cm,v,v.length-1),b)}),getSelection:function(c){for(var p=this.sel.ranges,b,v=0;v<p.length;v++){var w=Us(this,p[v].from(),p[v].to());b=b?b.concat(w):w}return c===!1?b:b.join(c||this.lineSeparator())},getSelections:function(c){for(var p=[],b=this.sel.ranges,v=0;v<b.length;v++){var w=Us(this,b[v].from(),b[v].to());c!==!1&&(w=w.join(c||this.lineSeparator())),p[v]=w}return p},replaceSelection:function(c,p,b){for(var v=[],w=0;w<this.sel.ranges.length;w++)v[w]=c;this.replaceSelections(v,p,b||"+input")},replaceSelections:Pi(function(c,p,b){for(var v=[],w=this.sel,O=0;O<w.ranges.length;O++){var $=w.ranges[O];v[O]={from:$.from(),to:$.to(),text:this.splitLines(c[O]),origin:b}}for(var D=p&&p!="end"&&EWe(this,v,p),L=v.length-1;L>=0;L--)vp(this,v[L]);D?LJ(this,D):this.cm&&hp(this.cm)}),undo:Pi(function(){Z2(this,"undo")}),redo:Pi(function(){Z2(this,"redo")}),undoSelection:Pi(function(){Z2(this,"undo",!0)}),redoSelection:Pi(function(){Z2(this,"redo",!0)}),setExtending:function(c){this.extend=c},getExtending:function(){return this.extend},historySize:function(){for(var c=this.history,p=0,b=0,v=0;v<c.done.length;v++)c.done[v].ranges||++p;for(var w=0;w<c.undone.length;w++)c.undone[w].ranges||++b;return{undo:p,redo:b}},clearHistory:function(){var c=this;this.history=new B2(this.history),hc(this,function(p){return p.history=c.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(c){return c&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(c){return this.history.generation==(c||this.cleanGeneration)},getHistory:function(){return{done:gp(this.history.done),undone:gp(this.history.undone)}},setHistory:function(c){var p=this.history=new B2(this.history);p.done=gp(c.done.slice(0),null,!0),p.undone=gp(c.undone.slice(0),null,!0)},setGutterMarker:Pi(function(c,p,b){return W1(this,c,"gutter",function(v){var w=v.gutterMarkers||(v.gutterMarkers={});return w[p]=b,!b&&Zo(w)&&(v.gutterMarkers=null),!0})}),clearGutter:Pi(function(c){var p=this;this.iter(function(b){b.gutterMarkers&&b.gutterMarkers[c]&&W1(p,b,"gutter",function(){return b.gutterMarkers[c]=null,Zo(b.gutterMarkers)&&(b.gutterMarkers=null),!0})})}),lineInfo:function(c){var p;if(typeof c=="number"){if(!C1(this,c)||(p=c,c=ze(this,c),!c))return null}else if(p=Bt(c),p==null)return null;return{line:p,handle:c,text:c.text,gutterMarkers:c.gutterMarkers,textClass:c.textClass,bgClass:c.bgClass,wrapClass:c.wrapClass,widgets:c.widgets}},addLineClass:Pi(function(c,p,b){return W1(this,c,p=="gutter"?"gutter":"class",function(v){var w=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass";if(!v[w])v[w]=b;else{if(R(b).test(v[w]))return!1;v[w]+=" "+b}return!0})}),removeLineClass:Pi(function(c,p,b){return W1(this,c,p=="gutter"?"gutter":"class",function(v){var w=p=="text"?"textClass":p=="background"?"bgClass":p=="gutter"?"gutterClass":"wrapClass",O=v[w];if(O)if(b==null)v[w]=null;else{var $=O.match(R(b));if(!$)return!1;var D=$.index+$[0].length;v[w]=O.slice(0,$.index)+(!$.index||D==O.length?"":" ")+O.slice(D)||null}else return!1;return!0})}),addLineWidget:Pi(function(c,p,b){return LWe(this,c,p,b)}),removeLineWidget:function(c){c.clear()},markText:function(c,p,b){return kp(this,vt(this,c),vt(this,p),b,b&&b.type||"range")},setBookmark:function(c,p){var b={replacedWith:p&&(p.nodeType==null?p.widget:p),insertLeft:p&&p.insertLeft,clearWhenEmpty:!1,shared:p&&p.shared,handleMouseEvents:p&&p.handleMouseEvents};return c=vt(this,c),kp(this,c,c,b,"bookmark")},findMarksAt:function(c){c=vt(this,c);var p=[],b=ze(this,c.line).markedSpans;if(b)for(var v=0;v<b.length;++v){var w=b[v];(w.from==null||w.from<=c.ch)&&(w.to==null||w.to>=c.ch)&&p.push(w.marker.parent||w.marker)}return p},findMarks:function(c,p,b){c=vt(this,c),p=vt(this,p);var v=[],w=c.line;return this.iter(c.line,p.line+1,function(O){var $=O.markedSpans;if($)for(var D=0;D<$.length;D++){var L=$[D];!(L.to!=null&&w==c.line&&c.ch>=L.to||L.from==null&&w!=c.line||L.from!=null&&w==p.line&&L.from>=p.ch)&&(!b||b(L.marker))&&v.push(L.marker.parent||L.marker)}++w}),v},getAllMarks:function(){var c=[];return this.iter(function(p){var b=p.markedSpans;if(b)for(var v=0;v<b.length;++v)b[v].from!=null&&c.push(b[v].marker)}),c},posFromIndex:function(c){var p,b=this.first,v=this.lineSeparator().length;return this.iter(function(w){var O=w.text.length+v;if(O>c)return p=c,!0;c-=O,++b}),vt(this,ke(b,p))},indexFromPos:function(c){c=vt(this,c);var p=c.ch;if(c.line<this.first||c.ch<0)return 0;var b=this.lineSeparator().length;return this.iter(this.first,c.line,function(v){p+=v.text.length+b}),p},copy:function(c){var p=new no(di(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return p.scrollTop=this.scrollTop,p.scrollLeft=this.scrollLeft,p.sel=this.sel,p.extend=!1,c&&(p.history.undoDepth=this.history.undoDepth,p.setHistory(this.getHistory())),p},linkedDoc:function(c){c||(c={});var p=this.first,b=this.first+this.size;c.from!=null&&c.from>p&&(p=c.from),c.to!=null&&c.to<b&&(b=c.to);var v=new no(di(this,p,b),c.mode||this.modeOption,p,this.lineSep,this.direction);return c.sharedHist&&(v.history=this.history),(this.linked||(this.linked=[])).push({doc:v,sharedHist:c.sharedHist}),v.linked=[{doc:this,isParent:!0,sharedHist:c.sharedHist}],jWe(v,XJ(this)),v},unlinkDoc:function(c){if(c instanceof En&&(c=c.doc),this.linked)for(var p=0;p<this.linked.length;++p){var b=this.linked[p];if(b.doc==c){this.linked.splice(p,1),c.unlinkDoc(this),FWe(XJ(this));break}}if(c.history==this.history){var v=[c.id];hc(c,function(w){return v.push(w.id)},!0),c.history=new B2(null),c.history.done=gp(this.history.done,v),c.history.undone=gp(this.history.undone,v)}},iterLinkedDocs:function(c){hc(this,c)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(c){return this.lineSep?c.split(this.lineSep):Df(c)},lineSeparator:function(){return this.lineSep||`
|
||
`},setDirection:Pi(function(c){c!="rtl"&&(c="ltr"),c!=this.direction&&(this.direction=c,this.iter(function(p){return p.order=null}),this.cm&&TWe(this.cm))})}),no.prototype.eachLine=no.prototype.iter;var GJ=0;function BWe(c){var p=this;if(KJ(p),!(Sn(p,c)||jl(p.display,c))){ri(c),l&&(GJ=+new Date);var b=jf(p,c,!0),v=c.dataTransfer.files;if(!(!b||p.isReadOnly()))if(v&&v.length&&window.FileReader&&window.File)for(var w=v.length,O=Array(w),$=0,D=function(){++$==w&&Ai(p,function(){b=vt(p.doc,b);var ie={from:b,to:b,text:p.doc.splitLines(O.filter(function(fe){return fe!=null}).join(p.doc.lineSeparator())),origin:"paste"};vp(p.doc,ie),LJ(p.doc,fc(vt(p.doc,b),vt(p.doc,dc(ie))))})()},L=function(ie,fe){if(p.options.allowDropFileTypes&&ve(p.options.allowDropFileTypes,ie.type)==-1){D();return}var de=new FileReader;de.onerror=function(){return D()},de.onload=function(){var we=de.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(we)){D();return}O[fe]=we,D()},de.readAsText(ie)},z=0;z<v.length;z++)L(v[z],z);else{if(p.state.draggingText&&p.doc.sel.contains(b)>-1){p.state.draggingText(c),setTimeout(function(){return p.display.input.focus()},20);return}try{var G=c.dataTransfer.getData("Text");if(G){var ee;if(p.state.draggingText&&!p.state.draggingText.copy&&(ee=p.listSelections()),Q2(p.doc,fc(b,b)),ee)for(var re=0;re<ee.length;++re)bp(p.doc,"",ee[re].anchor,ee[re].head,"drag");p.replaceSelection(G,"around","paste"),p.display.input.focus()}}catch{}}}}function WWe(c,p){if(l&&(!c.state.draggingText||+new Date-GJ<100)){Pl(p);return}if(!(Sn(c,p)||jl(c.display,p))&&(p.dataTransfer.setData("Text",c.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!y)){var b=j("img",null,null,"position: fixed; left: 0; top: 0;");b.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",m&&(b.width=b.height=1,c.display.wrapper.appendChild(b),b._top=b.offsetTop),p.dataTransfer.setDragImage(b,0,0),m&&b.parentNode.removeChild(b)}}function HWe(c,p){var b=jf(c,p);if(b){var v=document.createDocumentFragment();m8(c,b,v),c.display.dragCursor||(c.display.dragCursor=j("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),c.display.lineSpace.insertBefore(c.display.dragCursor,c.display.cursorDiv)),H(c.display.dragCursor,v)}}function KJ(c){c.display.dragCursor&&(c.display.lineSpace.removeChild(c.display.dragCursor),c.display.dragCursor=null)}function JJ(c){if(document.getElementsByClassName){for(var p=document.getElementsByClassName("CodeMirror"),b=[],v=0;v<p.length;v++){var w=p[v].CodeMirror;w&&b.push(w)}b.length&&b[0].operation(function(){for(var O=0;O<b.length;O++)c(b[O])})}}var eee=!1;function QWe(){eee||(UWe(),eee=!0)}function UWe(){var c;rt(window,"resize",function(){c==null&&(c=setTimeout(function(){c=null,JJ(ZWe)},100))}),rt(window,"blur",function(){return JJ(dp)})}function ZWe(c){var p=c.display;p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.scrollbarsClipped=!1,c.setSize()}for(var gc={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},q1=0;q1<10;q1++)gc[q1+48]=gc[q1+96]=String(q1);for(var q2=65;q2<=90;q2++)gc[q2]=String.fromCharCode(q2);for(var Y1=1;Y1<=12;Y1++)gc[Y1+111]=gc[Y1+63235]="F"+Y1;var zl={};zl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},zl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},zl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},zl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},zl.default=N?zl.macDefault:zl.pcDefault;function qWe(c){var p=c.split(/-(?!$)/);c=p[p.length-1];for(var b,v,w,O,$=0;$<p.length-1;$++){var D=p[$];if(/^(cmd|meta|m)$/i.test(D))O=!0;else if(/^a(lt)?$/i.test(D))b=!0;else if(/^(c|ctrl|control)$/i.test(D))v=!0;else if(/^s(hift)?$/i.test(D))w=!0;else throw new Error("Unrecognized modifier name: "+D)}return b&&(c="Alt-"+c),v&&(c="Ctrl-"+c),O&&(c="Cmd-"+c),w&&(c="Shift-"+c),c}function YWe(c){var p={};for(var b in c)if(c.hasOwnProperty(b)){var v=c[b];if(/^(name|fallthrough|(de|at)tach)$/.test(b))continue;if(v=="..."){delete c[b];continue}for(var w=Re(b.split(" "),qWe),O=0;O<w.length;O++){var $=void 0,D=void 0;O==w.length-1?(D=w.join(" "),$=v):(D=w.slice(0,O+1).join(" "),$="...");var L=p[D];if(!L)p[D]=$;else if(L!=$)throw new Error("Inconsistent bindings for "+D)}delete c[b]}for(var z in p)c[z]=p[z];return c}function yp(c,p,b,v){p=Y2(p);var w=p.call?p.call(c,v):p[c];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&b(w))return"handled";if(p.fallthrough){if(Object.prototype.toString.call(p.fallthrough)!="[object Array]")return yp(c,p.fallthrough,b,v);for(var O=0;O<p.fallthrough.length;O++){var $=yp(c,p.fallthrough[O],b,v);if($)return $}}}function tee(c){var p=typeof c=="string"?c:gc[c.keyCode];return p=="Ctrl"||p=="Alt"||p=="Shift"||p=="Mod"}function nee(c,p,b){var v=c;return p.altKey&&v!="Alt"&&(c="Alt-"+c),(B?p.metaKey:p.ctrlKey)&&v!="Ctrl"&&(c="Ctrl-"+c),(B?p.ctrlKey:p.metaKey)&&v!="Mod"&&(c="Cmd-"+c),!b&&p.shiftKey&&v!="Shift"&&(c="Shift-"+c),c}function iee(c,p){if(m&&c.keyCode==34&&c.char)return!1;var b=gc[c.keyCode];return b==null||c.altGraphKey?!1:(c.keyCode==3&&c.code&&(b=c.code),nee(b,c,p))}function Y2(c){return typeof c=="string"?zl[c]:c}function wp(c,p){for(var b=c.doc.sel.ranges,v=[],w=0;w<b.length;w++){for(var O=p(b[w]);v.length&&mt(O.from,Be(v).to)<=0;){var $=v.pop();if(mt($.from,O.from)<0){O.from=$.from;break}}v.push(O)}yo(c,function(){for(var D=v.length-1;D>=0;D--)bp(c.doc,"",v[D].from,v[D].to,"+delete");hp(c)})}function P8(c,p,b){var v=Jh(c.text,p+b,b);return v<0||v>c.text.length?null:v}function D8(c,p,b){var v=P8(c,p.ch,b);return v==null?null:new ke(p.line,v,b<0?"after":"before")}function I8(c,p,b,v,w){if(c){p.doc.direction=="rtl"&&(w=-w);var O=qo(b,p.doc.direction);if(O){var $=w<0?Be(O):O[0],D=w<0==($.level==1),L=D?"after":"before",z;if($.level>0||p.doc.direction=="rtl"){var G=up(p,b);z=w<0?b.text.length-1:0;var ee=Ba(p,G,z).top;z=oc(function(re){return Ba(p,G,re).top==ee},w<0==($.level==1)?$.from:$.to-1,z),L=="before"&&(z=P8(b,z,1))}else z=w<0?$.to:$.from;return new ke(v,z,L)}}return new ke(v,w<0?b.text.length:0,w<0?"before":"after")}function VWe(c,p,b,v){var w=qo(p,c.doc.direction);if(!w)return D8(p,b,v);b.ch>=p.text.length?(b.ch=p.text.length,b.sticky="before"):b.ch<=0&&(b.ch=0,b.sticky="after");var O=eo(w,b.ch,b.sticky),$=w[O];if(c.doc.direction=="ltr"&&$.level%2==0&&(v>0?$.to>b.ch:$.from<b.ch))return D8(p,b,v);var D=function(Se,$e){return P8(p,Se instanceof ke?Se.ch:Se,$e)},L,z=function(Se){return c.options.lineWrapping?(L=L||up(c,p),lJ(c,p,L,Se)):{begin:0,end:p.text.length}},G=z(b.sticky=="before"?D(b,-1):b.ch);if(c.doc.direction=="rtl"||$.level==1){var ee=$.level==1==v<0,re=D(b,ee?1:-1);if(re!=null&&(ee?re<=$.to&&re<=G.end:re>=$.from&&re>=G.begin)){var ie=ee?"before":"after";return new ke(b.line,re,ie)}}var fe=function(Se,$e,Ce){for(var Pe=function(en,Di){return Di?new ke(b.line,D(en,1),"before"):new ke(b.line,en,"after")};Se>=0&&Se<w.length;Se+=$e){var et=w[Se],Xe=$e>0==(et.level!=1),Ct=Xe?Ce.begin:D(Ce.end,-1);if(et.from<=Ct&&Ct<et.to||(Ct=Xe?et.from:D(et.to,-1),Ce.begin<=Ct&&Ct<Ce.end))return Pe(Ct,Xe)}},de=fe(O+v,v,G);if(de)return de;var we=v>0?G.end:D(G.begin,-1);return we!=null&&!(v>0&&we==p.text.length)&&(de=fe(v>0?0:w.length-1,v,z(we)),de)?de:null}var V1={selectAll:BJ,singleSelection:function(c){return c.setSelection(c.getCursor("anchor"),c.getCursor("head"),It)},killLine:function(c){return wp(c,function(p){if(p.empty()){var b=ze(c.doc,p.head.line).text.length;return p.head.ch==b&&p.head.line<c.lastLine()?{from:p.head,to:ke(p.head.line+1,0)}:{from:p.head,to:ke(p.head.line,b)}}else return{from:p.from(),to:p.to()}})},deleteLine:function(c){return wp(c,function(p){return{from:ke(p.from().line,0),to:vt(c.doc,ke(p.to().line+1,0))}})},delLineLeft:function(c){return wp(c,function(p){return{from:ke(p.from().line,0),to:p.from()}})},delWrappedLineLeft:function(c){return wp(c,function(p){var b=c.charCoords(p.head,"div").top+5,v=c.coordsChar({left:0,top:b},"div");return{from:v,to:p.from()}})},delWrappedLineRight:function(c){return wp(c,function(p){var b=c.charCoords(p.head,"div").top+5,v=c.coordsChar({left:c.display.lineDiv.offsetWidth+100,top:b},"div");return{from:p.from(),to:v}})},undo:function(c){return c.undo()},redo:function(c){return c.redo()},undoSelection:function(c){return c.undoSelection()},redoSelection:function(c){return c.redoSelection()},goDocStart:function(c){return c.extendSelection(ke(c.firstLine(),0))},goDocEnd:function(c){return c.extendSelection(ke(c.lastLine()))},goLineStart:function(c){return c.extendSelectionsBy(function(p){return ree(c,p.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(c){return c.extendSelectionsBy(function(p){return oee(c,p.head)},{origin:"+move",bias:1})},goLineEnd:function(c){return c.extendSelectionsBy(function(p){return XWe(c,p.head.line)},{origin:"+move",bias:-1})},goLineRight:function(c){return c.extendSelectionsBy(function(p){var b=c.cursorCoords(p.head,"div").top+5;return c.coordsChar({left:c.display.lineDiv.offsetWidth+100,top:b},"div")},Wt)},goLineLeft:function(c){return c.extendSelectionsBy(function(p){var b=c.cursorCoords(p.head,"div").top+5;return c.coordsChar({left:0,top:b},"div")},Wt)},goLineLeftSmart:function(c){return c.extendSelectionsBy(function(p){var b=c.cursorCoords(p.head,"div").top+5,v=c.coordsChar({left:0,top:b},"div");return v.ch<c.getLine(v.line).search(/\S/)?oee(c,p.head):v},Wt)},goLineUp:function(c){return c.moveV(-1,"line")},goLineDown:function(c){return c.moveV(1,"line")},goPageUp:function(c){return c.moveV(-1,"page")},goPageDown:function(c){return c.moveV(1,"page")},goCharLeft:function(c){return c.moveH(-1,"char")},goCharRight:function(c){return c.moveH(1,"char")},goColumnLeft:function(c){return c.moveH(-1,"column")},goColumnRight:function(c){return c.moveH(1,"column")},goWordLeft:function(c){return c.moveH(-1,"word")},goGroupRight:function(c){return c.moveH(1,"group")},goGroupLeft:function(c){return c.moveH(-1,"group")},goWordRight:function(c){return c.moveH(1,"word")},delCharBefore:function(c){return c.deleteH(-1,"codepoint")},delCharAfter:function(c){return c.deleteH(1,"char")},delWordBefore:function(c){return c.deleteH(-1,"word")},delWordAfter:function(c){return c.deleteH(1,"word")},delGroupBefore:function(c){return c.deleteH(-1,"group")},delGroupAfter:function(c){return c.deleteH(1,"group")},indentAuto:function(c){return c.indentSelection("smart")},indentMore:function(c){return c.indentSelection("add")},indentLess:function(c){return c.indentSelection("subtract")},insertTab:function(c){return c.replaceSelection(" ")},insertSoftTab:function(c){for(var p=[],b=c.listSelections(),v=c.options.tabSize,w=0;w<b.length;w++){var O=b[w].from(),$=ot(c.getLine(O.line),O.ch,v);p.push(Lt(v-$%v))}c.replaceSelections(p)},defaultTab:function(c){c.somethingSelected()?c.indentSelection("add"):c.execCommand("insertTab")},transposeChars:function(c){return yo(c,function(){for(var p=c.listSelections(),b=[],v=0;v<p.length;v++)if(p[v].empty()){var w=p[v].head,O=ze(c.doc,w.line).text;if(O){if(w.ch==O.length&&(w=new ke(w.line,w.ch-1)),w.ch>0)w=new ke(w.line,w.ch+1),c.replaceRange(O.charAt(w.ch-1)+O.charAt(w.ch-2),ke(w.line,w.ch-2),w,"+transpose");else if(w.line>c.doc.first){var $=ze(c.doc,w.line-1).text;$&&(w=new ke(w.line,1),c.replaceRange(O.charAt(0)+c.doc.lineSeparator()+$.charAt($.length-1),ke(w.line-1,$.length-1),w,"+transpose"))}}b.push(new Ht(w,w))}c.setSelections(b)})},newlineAndIndent:function(c){return yo(c,function(){for(var p=c.listSelections(),b=p.length-1;b>=0;b--)c.replaceRange(c.doc.lineSeparator(),p[b].anchor,p[b].head,"+input");p=c.listSelections();for(var v=0;v<p.length;v++)c.indentLine(p[v].from().line,null,!0);hp(c)})},openLine:function(c){return c.replaceSelection(`
|
||
`,"start")},toggleOverwrite:function(c){return c.toggleOverwrite()}};function ree(c,p){var b=ze(c.doc,p),v=Zs(b);return v!=b&&(p=Bt(v)),I8(!0,c,v,p,1)}function XWe(c,p){var b=ze(c.doc,p),v=PBe(b);return v!=b&&(p=Bt(v)),I8(!0,c,b,p,-1)}function oee(c,p){var b=ree(c,p.line),v=ze(c.doc,b.line),w=qo(v,c.doc.direction);if(!w||w[0].level==0){var O=Math.max(b.ch,v.text.search(/\S/)),$=p.line==b.line&&p.ch<=O&&p.ch;return ke(b.line,$?0:O,b.sticky)}return b}function V2(c,p,b){if(typeof p=="string"&&(p=V1[p],!p))return!1;c.display.input.ensurePolled();var v=c.display.shift,w=!1;try{c.isReadOnly()&&(c.state.suppressEdits=!0),b&&(c.display.shift=!1),w=p(c)!=st}finally{c.display.shift=v,c.state.suppressEdits=!1}return w}function GWe(c,p,b){for(var v=0;v<c.state.keyMaps.length;v++){var w=yp(p,c.state.keyMaps[v],b,c);if(w)return w}return c.options.extraKeys&&yp(p,c.options.extraKeys,b,c)||yp(p,c.options.keyMap,b,c)}var KWe=new ht;function X1(c,p,b,v){var w=c.state.keySeq;if(w){if(tee(p))return"handled";if(/\'$/.test(p)?c.state.keySeq=null:KWe.set(50,function(){c.state.keySeq==w&&(c.state.keySeq=null,c.display.input.reset())}),see(c,w+" "+p,b,v))return!0}return see(c,p,b,v)}function see(c,p,b,v){var w=GWe(c,p,v);return w=="multi"&&(c.state.keySeq=p),w=="handled"&&Ni(c,"keyHandled",c,p,b),(w=="handled"||w=="multi")&&(ri(b),v8(c)),!!w}function aee(c,p){var b=iee(p,!0);return b?p.shiftKey&&!c.state.keySeq?X1(c,"Shift-"+b,p,function(v){return V2(c,v,!0)})||X1(c,b,p,function(v){if(typeof v=="string"?/^go[A-Z]/.test(v):v.motion)return V2(c,v)}):X1(c,b,p,function(v){return V2(c,v)}):!1}function JWe(c,p,b){return X1(c,"'"+b+"'",p,function(v){return V2(c,v,!0)})}var L8=null;function lee(c){var p=this;if(!(c.target&&c.target!=p.display.input.getField())&&(p.curOp.focus=te(se(p)),!Sn(p,c))){l&&u<11&&c.keyCode==27&&(c.returnValue=!1);var b=c.keyCode;p.display.shift=b==16||c.shiftKey;var v=aee(p,c);m&&(L8=v?b:null,!v&&b==88&&!Qs&&(N?c.metaKey:c.ctrlKey)&&p.replaceSelection("",null,"cut")),r&&!N&&!v&&b==46&&c.shiftKey&&!c.ctrlKey&&document.execCommand&&document.execCommand("cut"),b==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&eHe(p)}}function eHe(c){var p=c.display.lineDiv;oe(p,"CodeMirror-crosshair");function b(v){(v.keyCode==18||!v.altKey)&&(Q(p,"CodeMirror-crosshair"),Vi(document,"keyup",b),Vi(document,"mouseover",b))}rt(document,"keyup",b),rt(document,"mouseover",b)}function uee(c){c.keyCode==16&&(this.doc.sel.shift=!1),Sn(this,c)}function cee(c){var p=this;if(!(c.target&&c.target!=p.display.input.getField())&&!(jl(p.display,c)||Sn(p,c)||c.ctrlKey&&!c.altKey||N&&c.metaKey)){var b=c.keyCode,v=c.charCode;if(m&&b==L8){L8=null,ri(c);return}if(!(m&&(!c.which||c.which<10)&&aee(p,c))){var w=String.fromCharCode(v??b);w!="\b"&&(JWe(p,c,w)||p.display.input.onKeyPress(c))}}}var tHe=400,R8=function(c,p,b){this.time=c,this.pos=p,this.button=b};R8.prototype.compare=function(c,p,b){return this.time+tHe>c&&mt(p,this.pos)==0&&b==this.button};var G1,K1;function nHe(c,p){var b=+new Date;return K1&&K1.compare(b,c,p)?(G1=K1=null,"triple"):G1&&G1.compare(b,c,p)?(K1=new R8(b,c,p),G1=null,"double"):(G1=new R8(b,c,p),K1=null,"single")}function fee(c){var p=this,b=p.display;if(!(Sn(p,c)||b.activeTouch&&b.input.supportsTouch())){if(b.input.ensurePolled(),b.shift=c.shiftKey,jl(b,c)){f||(b.scroller.draggable=!1,setTimeout(function(){return b.scroller.draggable=!0},100));return}if(!j8(p,c)){var v=jf(p,c),w=S1(c),O=v?nHe(v,w):"single";pe(p).focus(),w==1&&p.state.selectingText&&p.state.selectingText(c),!(v&&iHe(p,w,v,O,c))&&(w==1?v?oHe(p,v,O,c):ip(c)==b.scroller&&ri(c):w==2?(v&&H2(p.doc,v),setTimeout(function(){return b.input.focus()},20)):w==3&&(Z?p.display.input.onContextMenu(c):b8(p)))}}}function iHe(c,p,b,v,w){var O="Click";return v=="double"?O="Double"+O:v=="triple"&&(O="Triple"+O),O=(p==1?"Left":p==2?"Middle":"Right")+O,X1(c,nee(O,w),w,function($){if(typeof $=="string"&&($=V1[$]),!$)return!1;var D=!1;try{c.isReadOnly()&&(c.state.suppressEdits=!0),D=$(c,b)!=st}finally{c.state.suppressEdits=!1}return D})}function rHe(c,p,b){var v=c.getOption("configureMouse"),w=v?v(c,p,b):{};if(w.unit==null){var O=M?b.shiftKey&&b.metaKey:b.altKey;w.unit=O?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(w.extend==null||c.doc.extend)&&(w.extend=c.doc.extend||b.shiftKey),w.addNew==null&&(w.addNew=N?b.metaKey:b.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(N?b.altKey:b.ctrlKey)),w}function oHe(c,p,b,v){l?setTimeout(je(dJ,c),0):c.curOp.focus=te(se(c));var w=rHe(c,b,v),O=c.doc.sel,$;c.options.dragDrop&&qT&&!c.isReadOnly()&&b=="single"&&($=O.contains(p))>-1&&(mt(($=O.ranges[$]).from(),p)<0||p.xRel>0)&&(mt($.to(),p)>0||p.xRel<0)?sHe(c,v,p,w):aHe(c,v,p,w)}function sHe(c,p,b,v){var w=c.display,O=!1,$=Ai(c,function(z){f&&(w.scroller.draggable=!1),c.state.draggingText=!1,c.state.delayingBlurEvent&&(c.hasFocus()?c.state.delayingBlurEvent=!1:b8(c)),Vi(w.wrapper.ownerDocument,"mouseup",$),Vi(w.wrapper.ownerDocument,"mousemove",D),Vi(w.scroller,"dragstart",L),Vi(w.scroller,"drop",$),O||(ri(z),v.addNew||H2(c.doc,b,null,null,v.extend),f&&!y||l&&u==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),D=function(z){O=O||Math.abs(p.clientX-z.clientX)+Math.abs(p.clientY-z.clientY)>=10},L=function(){return O=!0};f&&(w.scroller.draggable=!0),c.state.draggingText=$,$.copy=!v.moveOnDrag,rt(w.wrapper.ownerDocument,"mouseup",$),rt(w.wrapper.ownerDocument,"mousemove",D),rt(w.scroller,"dragstart",L),rt(w.scroller,"drop",$),c.state.delayingBlurEvent=!0,setTimeout(function(){return w.input.focus()},20),w.scroller.dragDrop&&w.scroller.dragDrop()}function dee(c,p,b){if(b=="char")return new Ht(p,p);if(b=="word")return c.findWordAt(p);if(b=="line")return new Ht(ke(p.line,0),vt(c.doc,ke(p.line+1,0)));var v=b(c,p);return new Ht(v.from,v.to)}function aHe(c,p,b,v){l&&b8(c);var w=c.display,O=c.doc;ri(p);var $,D,L=O.sel,z=L.ranges;if(v.addNew&&!v.extend?(D=O.sel.contains(b),D>-1?$=z[D]:$=new Ht(b,b)):($=O.sel.primary(),D=O.sel.primIndex),v.unit=="rectangle")v.addNew||($=new Ht(b,b)),b=jf(c,p,!0,!0),D=-1;else{var G=dee(c,b,v.unit);v.extend?$=N8($,G.anchor,G.head,v.extend):$=G}v.addNew?D==-1?(D=z.length,pr(O,Ys(c,z.concat([$]),D),{scroll:!1,origin:"*mouse"})):z.length>1&&z[D].empty()&&v.unit=="char"&&!v.extend?(pr(O,Ys(c,z.slice(0,D).concat(z.slice(D+1)),0),{scroll:!1,origin:"*mouse"}),L=O.sel):A8(O,D,$,Mt):(D=0,pr(O,new Vo([$],0),Mt),L=O.sel);var ee=b;function re(Ce){if(mt(ee,Ce)!=0)if(ee=Ce,v.unit=="rectangle"){for(var Pe=[],et=c.options.tabSize,Xe=ot(ze(O,b.line).text,b.ch,et),Ct=ot(ze(O,Ce.line).text,Ce.ch,et),en=Math.min(Xe,Ct),Di=Math.max(Xe,Ct),Ln=Math.min(b.line,Ce.line),wo=Math.min(c.lastLine(),Math.max(b.line,Ce.line));Ln<=wo;Ln++){var io=ze(O,Ln).text,hi=Ue(io,en,et);en==Di?Pe.push(new Ht(ke(Ln,hi),ke(Ln,hi))):io.length>hi&&Pe.push(new Ht(ke(Ln,hi),ke(Ln,Ue(io,Di,et))))}Pe.length||Pe.push(new Ht(b,b)),pr(O,Ys(c,L.ranges.slice(0,D).concat(Pe),D),{origin:"*mouse",scroll:!1}),c.scrollIntoView(Ce)}else{var ro=$,Xi=dee(c,Ce,v.unit),wi=ro.anchor,pi;mt(Xi.anchor,wi)>0?(pi=Xi.head,wi=_2(ro.from(),Xi.anchor)):(pi=Xi.anchor,wi=x2(ro.to(),Xi.head));var Zn=L.ranges.slice(0);Zn[D]=lHe(c,new Ht(vt(O,wi),pi)),pr(O,Ys(c,Zn,D),Mt)}}var ie=w.wrapper.getBoundingClientRect(),fe=0;function de(Ce){var Pe=++fe,et=jf(c,Ce,!0,v.unit=="rectangle");if(et)if(mt(et,ee)!=0){c.curOp.focus=te(se(c)),re(et);var Xe=R2(w,O);(et.line>=Xe.to||et.line<Xe.from)&&setTimeout(Ai(c,function(){fe==Pe&&de(Ce)}),150)}else{var Ct=Ce.clientY<ie.top?-20:Ce.clientY>ie.bottom?20:0;Ct&&setTimeout(Ai(c,function(){fe==Pe&&(w.scroller.scrollTop+=Ct,de(Ce))}),50)}}function we(Ce){c.state.selectingText=!1,fe=1/0,Ce&&(ri(Ce),w.input.focus()),Vi(w.wrapper.ownerDocument,"mousemove",Se),Vi(w.wrapper.ownerDocument,"mouseup",$e),O.history.lastSelOrigin=null}var Se=Ai(c,function(Ce){Ce.buttons===0||!S1(Ce)?we(Ce):de(Ce)}),$e=Ai(c,we);c.state.selectingText=$e,rt(w.wrapper.ownerDocument,"mousemove",Se),rt(w.wrapper.ownerDocument,"mouseup",$e)}function lHe(c,p){var b=p.anchor,v=p.head,w=ze(c.doc,b.line);if(mt(b,v)==0&&b.sticky==v.sticky)return p;var O=qo(w);if(!O)return p;var $=eo(O,b.ch,b.sticky),D=O[$];if(D.from!=b.ch&&D.to!=b.ch)return p;var L=$+(D.from==b.ch==(D.level!=1)?0:1);if(L==0||L==O.length)return p;var z;if(v.line!=b.line)z=(v.line-b.line)*(c.doc.direction=="ltr"?1:-1)>0;else{var G=eo(O,v.ch,v.sticky),ee=G-$||(v.ch-b.ch)*(D.level==1?-1:1);G==L-1||G==L?z=ee<0:z=ee>0}var re=O[L+(z?-1:0)],ie=z==(re.level==1),fe=ie?re.from:re.to,de=ie?"after":"before";return b.ch==fe&&b.sticky==de?p:new Ht(new ke(b.line,fe,de),v)}function hee(c,p,b,v){var w,O;if(p.touches)w=p.touches[0].clientX,O=p.touches[0].clientY;else try{w=p.clientX,O=p.clientY}catch{return!1}if(w>=Math.floor(c.display.gutters.getBoundingClientRect().right))return!1;v&&ri(p);var $=c.display,D=$.lineDiv.getBoundingClientRect();if(O>D.bottom||!bo(c,b))return np(p);O-=D.top-$.viewOffset;for(var L=0;L<c.display.gutterSpecs.length;++L){var z=$.gutters.childNodes[L];if(z&&z.getBoundingClientRect().right>=w){var G=If(c.doc,O),ee=c.display.gutterSpecs[L];return Un(c,b,c,G,ee.className,p),np(p)}}}function j8(c,p){return hee(c,p,"gutterClick",!0)}function pee(c,p){jl(c.display,p)||uHe(c,p)||Sn(c,p,"contextmenu")||Z||c.display.input.onContextMenu(p)}function uHe(c,p){return bo(c,"gutterContextMenu")?hee(c,p,"gutterContextMenu",!1):!1}function gee(c){c.display.wrapper.className=c.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+c.options.theme.replace(/(^|\s)\s*/g," cm-s-"),A1(c)}var xp={toString:function(){return"CodeMirror.Init"}},mee={},X2={};function cHe(c){var p=c.optionHandlers;function b(v,w,O,$){c.defaults[v]=w,O&&(p[v]=$?function(D,L,z){z!=xp&&O(D,L,z)}:O)}c.defineOption=b,c.Init=xp,b("value","",function(v,w){return v.setValue(w)},!0),b("mode",null,function(v,w){v.doc.modeOption=w,T8(v)},!0),b("indentUnit",2,T8,!0),b("indentWithTabs",!1),b("smartIndent",!0),b("tabSize",4,function(v){z1(v),A1(v),to(v)},!0),b("lineSeparator",null,function(v,w){if(v.doc.lineSep=w,!!w){var O=[],$=v.doc.first;v.doc.iter(function(L){for(var z=0;;){var G=L.text.indexOf(w,z);if(G==-1)break;z=G+w.length,O.push(ke($,G))}$++});for(var D=O.length-1;D>=0;D--)bp(v.doc,w,O[D],ke(O[D].line,O[D].ch+w.length))}}),b("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(v,w,O){v.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),O!=xp&&v.refresh()}),b("specialCharPlaceholder",FBe,function(v){return v.refresh()},!0),b("electricChars",!0),b("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),b("spellcheck",!1,function(v,w){return v.getInputField().spellcheck=w},!0),b("autocorrect",!1,function(v,w){return v.getInputField().autocorrect=w},!0),b("autocapitalize",!1,function(v,w){return v.getInputField().autocapitalize=w},!0),b("rtlMoveVisually",!I),b("wholeLineUpdateBefore",!0),b("theme","default",function(v){gee(v),F1(v)},!0),b("keyMap","default",function(v,w,O){var $=Y2(w),D=O!=xp&&Y2(O);D&&D.detach&&D.detach(v,$),$.attach&&$.attach(v,D||null)}),b("extraKeys",null),b("configureMouse",null),b("lineWrapping",!1,dHe,!0),b("gutters",[],function(v,w){v.display.gutterSpecs=C8(w,v.options.lineNumbers),F1(v)},!0),b("fixedGutter",!0,function(v,w){v.display.gutters.style.left=w?p8(v.display)+"px":"0",v.refresh()},!0),b("coverGutterNextToScrollbar",!1,function(v){return pp(v)},!0),b("scrollbarStyle","native",function(v){bJ(v),pp(v),v.display.scrollbars.setScrollTop(v.doc.scrollTop),v.display.scrollbars.setScrollLeft(v.doc.scrollLeft)},!0),b("lineNumbers",!1,function(v,w){v.display.gutterSpecs=C8(v.options.gutters,w),F1(v)},!0),b("firstLineNumber",1,F1,!0),b("lineNumberFormatter",function(v){return v},F1,!0),b("showCursorWhenSelecting",!1,P1,!0),b("resetSelectionOnContextMenu",!0),b("lineWiseCopyCut",!0),b("pasteLinesPerSelection",!0),b("selectionsMayTouch",!1),b("readOnly",!1,function(v,w){w=="nocursor"&&(dp(v),v.display.input.blur()),v.display.input.readOnlyChanged(w)}),b("screenReaderLabel",null,function(v,w){w=w===""?null:w,v.display.input.screenReaderLabelChanged(w)}),b("disableInput",!1,function(v,w){w||v.display.input.reset()},!0),b("dragDrop",!0,fHe),b("allowDropFileTypes",null),b("cursorBlinkRate",530),b("cursorScrollMargin",0),b("cursorHeight",1,P1,!0),b("singleCursorHeightPerLine",!0,P1,!0),b("workTime",100),b("workDelay",100),b("flattenSpans",!0,z1,!0),b("addModeClass",!1,z1,!0),b("pollInterval",100),b("undoDepth",200,function(v,w){return v.doc.history.undoDepth=w}),b("historyEventDelay",1250),b("viewportMargin",10,function(v){return v.refresh()},!0),b("maxHighlightLength",1e4,z1,!0),b("moveInputWithCursor",!0,function(v,w){w||v.display.input.resetPosition()}),b("tabindex",null,function(v,w){return v.display.input.getField().tabIndex=w||""}),b("autofocus",null),b("direction","ltr",function(v,w){return v.doc.setDirection(w)},!0),b("phrases",null)}function fHe(c,p,b){var v=b&&b!=xp;if(!p!=!v){var w=c.display.dragFunctions,O=p?rt:Vi;O(c.display.scroller,"dragstart",w.start),O(c.display.scroller,"dragenter",w.enter),O(c.display.scroller,"dragover",w.over),O(c.display.scroller,"dragleave",w.leave),O(c.display.scroller,"drop",w.drop)}}function dHe(c){c.options.lineWrapping?(oe(c.display.wrapper,"CodeMirror-wrap"),c.display.sizer.style.minWidth="",c.display.sizerWidth=null):(Q(c.display.wrapper,"CodeMirror-wrap"),r8(c)),g8(c),to(c),A1(c),setTimeout(function(){return pp(c)},100)}function En(c,p){var b=this;if(!(this instanceof En))return new En(c,p);this.options=p=p?He(p):{},He(mee,p,!1);var v=p.value;typeof v=="string"?v=new no(v,p.mode,null,p.lineSeparator,p.direction):p.mode&&(v.modeOption=p.mode),this.doc=v;var w=new En.inputStyles[p.inputStyle](this),O=this.display=new SWe(c,v,w,p);O.wrapper.CodeMirror=this,gee(this),p.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bJ(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ht,keySeq:null,specialChars:null},p.autofocus&&!E&&O.input.focus(),l&&u<11&&setTimeout(function(){return b.display.input.reset(!0)},20),hHe(this),QWe(),Wf(this),this.curOp.forceUpdate=!0,TJ(this,v),p.autofocus&&!E||this.hasFocus()?setTimeout(function(){b.hasFocus()&&!b.state.focused&&k8(b)},20):dp(this);for(var $ in X2)X2.hasOwnProperty($)&&X2[$](this,p[$],xp);wJ(this),p.finishInit&&p.finishInit(this);for(var D=0;D<F8.length;++D)F8[D](this);Hf(this),f&&p.lineWrapping&&getComputedStyle(O.lineDiv).textRendering=="optimizelegibility"&&(O.lineDiv.style.textRendering="auto")}En.defaults=mee,En.optionHandlers=X2;function hHe(c){var p=c.display;rt(p.scroller,"mousedown",Ai(c,fee)),l&&u<11?rt(p.scroller,"dblclick",Ai(c,function(L){if(!Sn(c,L)){var z=jf(c,L);if(!(!z||j8(c,L)||jl(c.display,L))){ri(L);var G=c.findWordAt(z);H2(c.doc,G.anchor,G.head)}}})):rt(p.scroller,"dblclick",function(L){return Sn(c,L)||ri(L)}),rt(p.scroller,"contextmenu",function(L){return pee(c,L)}),rt(p.input.getField(),"contextmenu",function(L){p.scroller.contains(L.target)||pee(c,L)});var b,v={end:0};function w(){p.activeTouch&&(b=setTimeout(function(){return p.activeTouch=null},1e3),v=p.activeTouch,v.end=+new Date)}function O(L){if(L.touches.length!=1)return!1;var z=L.touches[0];return z.radiusX<=1&&z.radiusY<=1}function $(L,z){if(z.left==null)return!0;var G=z.left-L.left,ee=z.top-L.top;return G*G+ee*ee>20*20}rt(p.scroller,"touchstart",function(L){if(!Sn(c,L)&&!O(L)&&!j8(c,L)){p.input.ensurePolled(),clearTimeout(b);var z=+new Date;p.activeTouch={start:z,moved:!1,prev:z-v.end<=300?v:null},L.touches.length==1&&(p.activeTouch.left=L.touches[0].pageX,p.activeTouch.top=L.touches[0].pageY)}}),rt(p.scroller,"touchmove",function(){p.activeTouch&&(p.activeTouch.moved=!0)}),rt(p.scroller,"touchend",function(L){var z=p.activeTouch;if(z&&!jl(p,L)&&z.left!=null&&!z.moved&&new Date-z.start<300){var G=c.coordsChar(p.activeTouch,"page"),ee;!z.prev||$(z,z.prev)?ee=new Ht(G,G):!z.prev.prev||$(z,z.prev.prev)?ee=c.findWordAt(G):ee=new Ht(ke(G.line,0),vt(c.doc,ke(G.line+1,0))),c.setSelection(ee.anchor,ee.head),c.focus(),ri(L)}w()}),rt(p.scroller,"touchcancel",w),rt(p.scroller,"scroll",function(){p.scroller.clientHeight&&(I1(c,p.scroller.scrollTop),zf(c,p.scroller.scrollLeft,!0),Un(c,"scroll",c))}),rt(p.scroller,"mousewheel",function(L){return OJ(c,L)}),rt(p.scroller,"DOMMouseScroll",function(L){return OJ(c,L)}),rt(p.wrapper,"scroll",function(){return p.wrapper.scrollTop=p.wrapper.scrollLeft=0}),p.dragFunctions={enter:function(L){Sn(c,L)||Pl(L)},over:function(L){Sn(c,L)||(HWe(c,L),Pl(L))},start:function(L){return WWe(c,L)},drop:Ai(c,BWe),leave:function(L){Sn(c,L)||KJ(c)}};var D=p.input.getField();rt(D,"keyup",function(L){return uee.call(c,L)}),rt(D,"keydown",Ai(c,lee)),rt(D,"keypress",Ai(c,cee)),rt(D,"focus",function(L){return k8(c,L)}),rt(D,"blur",function(L){return dp(c,L)})}var F8=[];En.defineInitHook=function(c){return F8.push(c)};function J1(c,p,b,v){var w=c.doc,O;b==null&&(b="add"),b=="smart"&&(w.mode.indent?O=E1(c,p).state:b="prev");var $=c.options.tabSize,D=ze(w,p),L=ot(D.text,null,$);D.stateAfter&&(D.stateAfter=null);var z=D.text.match(/^\s*/)[0],G;if(!v&&!/\S/.test(D.text))G=0,b="not";else if(b=="smart"&&(G=w.mode.indent(O,D.text.slice(z.length),D.text),G==st||G>150)){if(!v)return;b="prev"}b=="prev"?p>w.first?G=ot(ze(w,p-1).text,null,$):G=0:b=="add"?G=L+c.options.indentUnit:b=="subtract"?G=L-c.options.indentUnit:typeof b=="number"&&(G=L+b),G=Math.max(0,G);var ee="",re=0;if(c.options.indentWithTabs)for(var ie=Math.floor(G/$);ie;--ie)re+=$,ee+=" ";if(re<G&&(ee+=Lt(G-re)),ee!=z)return bp(w,ee,ke(p,0),ke(p,z.length),"+input"),D.stateAfter=null,!0;for(var fe=0;fe<w.sel.ranges.length;fe++){var de=w.sel.ranges[fe];if(de.head.line==p&&de.head.ch<z.length){var we=ke(p,z.length);A8(w,fe,new Ht(we,we));break}}}var Vs=null;function G2(c){Vs=c}function z8(c,p,b,v,w){var O=c.doc;c.display.shift=!1,v||(v=O.sel);var $=+new Date-200,D=w=="paste"||c.state.pasteIncoming>$,L=Df(p),z=null;if(D&&v.ranges.length>1)if(Vs&&Vs.text.join(`
|
||
`)==p){if(v.ranges.length%Vs.text.length==0){z=[];for(var G=0;G<Vs.text.length;G++)z.push(O.splitLines(Vs.text[G]))}}else L.length==v.ranges.length&&c.options.pasteLinesPerSelection&&(z=Re(L,function(Se){return[Se]}));for(var ee=c.curOp.updateInput,re=v.ranges.length-1;re>=0;re--){var ie=v.ranges[re],fe=ie.from(),de=ie.to();ie.empty()&&(b&&b>0?fe=ke(fe.line,fe.ch-b):c.state.overwrite&&!D?de=ke(de.line,Math.min(ze(O,de.line).text.length,de.ch+Be(L).length)):D&&Vs&&Vs.lineWise&&Vs.text.join(`
|
||
`)==L.join(`
|
||
`)&&(fe=de=ke(fe.line,0)));var we={from:fe,to:de,text:z?z[re%z.length]:L,origin:w||(D?"paste":c.state.cutIncoming>$?"cut":"+input")};vp(c.doc,we),Ni(c,"inputRead",c,we)}p&&!D&&bee(c,p),hp(c),c.curOp.updateInput<2&&(c.curOp.updateInput=ee),c.curOp.typing=!0,c.state.pasteIncoming=c.state.cutIncoming=-1}function vee(c,p){var b=c.clipboardData&&c.clipboardData.getData("Text");if(b)return c.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&p.hasFocus()&&yo(p,function(){return z8(p,b,0,null,"paste")}),!0}function bee(c,p){if(!(!c.options.electricChars||!c.options.smartIndent))for(var b=c.doc.sel,v=b.ranges.length-1;v>=0;v--){var w=b.ranges[v];if(!(w.head.ch>100||v&&b.ranges[v-1].head.line==w.head.line)){var O=c.getModeAt(w.head),$=!1;if(O.electricChars){for(var D=0;D<O.electricChars.length;D++)if(p.indexOf(O.electricChars.charAt(D))>-1){$=J1(c,w.head.line,"smart");break}}else O.electricInput&&O.electricInput.test(ze(c.doc,w.head.line).text.slice(0,w.head.ch))&&($=J1(c,w.head.line,"smart"));$&&Ni(c,"electricInput",c,w.head.line)}}}function kee(c){for(var p=[],b=[],v=0;v<c.doc.sel.ranges.length;v++){var w=c.doc.sel.ranges[v].head.line,O={anchor:ke(w,0),head:ke(w+1,0)};b.push(O),p.push(c.getRange(O.anchor,O.head))}return{text:p,ranges:b}}function B8(c,p,b,v){c.setAttribute("autocorrect",b?"on":"off"),c.setAttribute("autocapitalize",v?"on":"off"),c.setAttribute("spellcheck",!!p)}function yee(){var c=j("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),p=j("div",[c],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return f?c.style.width="1000px":c.setAttribute("wrap","off"),S&&(c.style.border="1px solid black"),p}function pHe(c){var p=c.optionHandlers,b=c.helpers={};c.prototype={constructor:c,focus:function(){pe(this).focus(),this.display.input.focus()},setOption:function(v,w){var O=this.options,$=O[v];O[v]==w&&v!="mode"||(O[v]=w,p.hasOwnProperty(v)&&Ai(this,p[v])(this,w,$),Un(this,"optionChange",this,v))},getOption:function(v){return this.options[v]},getDoc:function(){return this.doc},addKeyMap:function(v,w){this.state.keyMaps[w?"push":"unshift"](Y2(v))},removeKeyMap:function(v){for(var w=this.state.keyMaps,O=0;O<w.length;++O)if(w[O]==v||w[O].name==v)return w.splice(O,1),!0},addOverlay:Ar(function(v,w){var O=v.token?v:c.getMode(this.options,v);if(O.startState)throw new Error("Overlays may not be stateful.");ae(this.state.overlays,{mode:O,modeSpec:v,opaque:w&&w.opaque,priority:w&&w.priority||0},function($){return $.priority}),this.state.modeGen++,to(this)}),removeOverlay:Ar(function(v){for(var w=this.state.overlays,O=0;O<w.length;++O){var $=w[O].modeSpec;if($==v||typeof v=="string"&&$.name==v){w.splice(O,1),this.state.modeGen++,to(this);return}}}),indentLine:Ar(function(v,w,O){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),C1(this.doc,v)&&J1(this,v,w,O)}),indentSelection:Ar(function(v){for(var w=this.doc.sel.ranges,O=-1,$=0;$<w.length;$++){var D=w[$];if(D.empty())D.head.line>O&&(J1(this,D.head.line,v,!0),O=D.head.line,$==this.doc.sel.primIndex&&hp(this));else{var L=D.from(),z=D.to(),G=Math.max(O,L.line);O=Math.min(this.lastLine(),z.line-(z.ch?0:1))+1;for(var ee=G;ee<O;++ee)J1(this,ee,v);var re=this.doc.sel.ranges;L.ch==0&&w.length==re.length&&re[$].from().ch>0&&A8(this.doc,$,new Ht(L,re[$].to()),It)}}}),getTokenAt:function(v,w){return MK(this,v,w)},getLineTokens:function(v,w){return MK(this,ke(v),w,!0)},getTokenTypeAt:function(v){v=vt(this.doc,v);var w=EK(this,ze(this.doc,v.line)),O=0,$=(w.length-1)/2,D=v.ch,L;if(D==0)L=w[2];else for(;;){var z=O+$>>1;if((z?w[z*2-1]:0)>=D)$=z;else if(w[z*2+1]<D)O=z+1;else{L=w[z*2+2];break}}var G=L?L.indexOf("overlay "):-1;return G<0?L:G==0?null:L.slice(0,G-1)},getModeAt:function(v){var w=this.doc.mode;return w.innerMode?c.innerMode(w,this.getTokenAt(v).state).mode:w},getHelper:function(v,w){return this.getHelpers(v,w)[0]},getHelpers:function(v,w){var O=[];if(!b.hasOwnProperty(w))return O;var $=b[w],D=this.getModeAt(v);if(typeof D[w]=="string")$[D[w]]&&O.push($[D[w]]);else if(D[w])for(var L=0;L<D[w].length;L++){var z=$[D[w][L]];z&&O.push(z)}else D.helperType&&$[D.helperType]?O.push($[D.helperType]):$[D.name]&&O.push($[D.name]);for(var G=0;G<$._global.length;G++){var ee=$._global[G];ee.pred(D,this)&&ve(O,ee.val)==-1&&O.push(ee.val)}return O},getStateAfter:function(v,w){var O=this.doc;return v=OK(O,v??O.first+O.size-1),E1(this,v+1,w).state},cursorCoords:function(v,w){var O,$=this.doc.sel.primary();return v==null?O=$.head:typeof v=="object"?O=vt(this.doc,v):O=v?$.from():$.to(),qs(this,O,w||"page")},charCoords:function(v,w){return P2(this,vt(this.doc,v),w||"page")},coordsChar:function(v,w){return v=oJ(this,v,w||"page"),f8(this,v.left,v.top)},lineAtHeight:function(v,w){return v=oJ(this,{top:v,left:0},w||"page").top,If(this.doc,v+this.display.viewOffset)},heightAtLine:function(v,w,O){var $=!1,D;if(typeof v=="number"){var L=this.doc.first+this.doc.size-1;v<this.doc.first?v=this.doc.first:v>L&&(v=L,$=!0),D=ze(this.doc,v)}else D=v;return A2(this,D,{top:0,left:0},w||"page",O||$).top+($?this.doc.height-Rl(D):0)},defaultTextHeight:function(){return cp(this.display)},defaultCharWidth:function(){return fp(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(v,w,O,$,D){var L=this.display;v=qs(this,vt(this.doc,v));var z=v.bottom,G=v.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),L.sizer.appendChild(w),$=="over")z=v.top;else if($=="above"||$=="near"){var ee=Math.max(L.wrapper.clientHeight,this.doc.height),re=Math.max(L.sizer.clientWidth,L.lineSpace.clientWidth);($=="above"||v.bottom+w.offsetHeight>ee)&&v.top>w.offsetHeight?z=v.top-w.offsetHeight:v.bottom+w.offsetHeight<=ee&&(z=v.bottom),G+w.offsetWidth>re&&(G=re-w.offsetWidth)}w.style.top=z+"px",w.style.left=w.style.right="",D=="right"?(G=L.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(D=="left"?G=0:D=="middle"&&(G=(L.sizer.clientWidth-w.offsetWidth)/2),w.style.left=G+"px"),O&&fWe(this,{left:G,top:z,right:G+w.offsetWidth,bottom:z+w.offsetHeight})},triggerOnKeyDown:Ar(lee),triggerOnKeyPress:Ar(cee),triggerOnKeyUp:uee,triggerOnMouseDown:Ar(fee),execCommand:function(v){if(V1.hasOwnProperty(v))return V1[v].call(null,this)},triggerElectric:Ar(function(v){bee(this,v)}),findPosH:function(v,w,O,$){var D=1;w<0&&(D=-1,w=-w);for(var L=vt(this.doc,v),z=0;z<w&&(L=W8(this.doc,L,D,O,$),!L.hitSide);++z);return L},moveH:Ar(function(v,w){var O=this;this.extendSelectionsBy(function($){return O.display.shift||O.doc.extend||$.empty()?W8(O.doc,$.head,v,w,O.options.rtlMoveVisually):v<0?$.from():$.to()},Wt)}),deleteH:Ar(function(v,w){var O=this.doc.sel,$=this.doc;O.somethingSelected()?$.replaceSelection("",null,"+delete"):wp(this,function(D){var L=W8($,D.head,v,w,!1);return v<0?{from:L,to:D.head}:{from:D.head,to:L}})}),findPosV:function(v,w,O,$){var D=1,L=$;w<0&&(D=-1,w=-w);for(var z=vt(this.doc,v),G=0;G<w;++G){var ee=qs(this,z,"div");if(L==null?L=ee.left:ee.left=L,z=wee(this,ee,D,O),z.hitSide)break}return z},moveV:Ar(function(v,w){var O=this,$=this.doc,D=[],L=!this.display.shift&&!$.extend&&$.sel.somethingSelected();if($.extendSelectionsBy(function(G){if(L)return v<0?G.from():G.to();var ee=qs(O,G.head,"div");G.goalColumn!=null&&(ee.left=G.goalColumn),D.push(ee.left);var re=wee(O,ee,v,w);return w=="page"&&G==$.sel.primary()&&w8(O,P2(O,re,"div").top-ee.top),re},Wt),D.length)for(var z=0;z<$.sel.ranges.length;z++)$.sel.ranges[z].goalColumn=D[z]}),findWordAt:function(v){var w=this.doc,O=ze(w,v.line).text,$=v.ch,D=v.ch;if(O){var L=this.getHelper(v,"wordChars");(v.sticky=="before"||D==O.length)&&$?--$:++D;for(var z=O.charAt($),G=On(z,L)?function(ee){return On(ee,L)}:/\s/.test(z)?function(ee){return/\s/.test(ee)}:function(ee){return!/\s/.test(ee)&&!On(ee)};$>0&&G(O.charAt($-1));)--$;for(;D<O.length&&G(O.charAt(D));)++D}return new Ht(ke(v.line,$),ke(v.line,D))},toggleOverwrite:function(v){v!=null&&v==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?oe(this.display.cursorDiv,"CodeMirror-overwrite"):Q(this.display.cursorDiv,"CodeMirror-overwrite"),Un(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==te(se(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ar(function(v,w){D1(this,v,w)}),getScrollInfo:function(){var v=this.display.scroller;return{left:v.scrollLeft,top:v.scrollTop,height:v.scrollHeight-za(this)-this.display.barHeight,width:v.scrollWidth-za(this)-this.display.barWidth,clientHeight:a8(this),clientWidth:Lf(this)}},scrollIntoView:Ar(function(v,w){v==null?(v={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof v=="number"?v={from:ke(v,0),to:null}:v.from==null&&(v={from:v,to:null}),v.to||(v.to=v.from),v.margin=w||0,v.from.line!=null?dWe(this,v):pJ(this,v.from,v.to,v.margin)}),setSize:Ar(function(v,w){var O=this,$=function(L){return typeof L=="number"||/^\d+$/.test(String(L))?L+"px":L};v!=null&&(this.display.wrapper.style.width=$(v)),w!=null&&(this.display.wrapper.style.height=$(w)),this.options.lineWrapping&&nJ(this);var D=this.display.viewFrom;this.doc.iter(D,this.display.viewTo,function(L){if(L.widgets){for(var z=0;z<L.widgets.length;z++)if(L.widgets[z].noHScroll){uc(O,D,"widget");break}}++D}),this.curOp.forceUpdate=!0,Un(this,"refresh",this)}),operation:function(v){return yo(this,v)},startOperation:function(){return Wf(this)},endOperation:function(){return Hf(this)},refresh:Ar(function(){var v=this.display.cachedTextHeight;to(this),this.curOp.forceUpdate=!0,A1(this),D1(this,this.doc.scrollLeft,this.doc.scrollTop),O8(this.display),(v==null||Math.abs(v-cp(this.display))>.5||this.options.lineWrapping)&&g8(this),Un(this,"refresh",this)}),swapDoc:Ar(function(v){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),TJ(this,v),A1(this),this.display.input.reset(),D1(this,v.scrollLeft,v.scrollTop),this.curOp.forceScroll=!0,Ni(this,"swapDoc",this,w),w}),phrase:function(v){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,v)?w[v]:v},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Cn(c),c.registerHelper=function(v,w,O){b.hasOwnProperty(v)||(b[v]=c[v]={_global:[]}),b[v][w]=O},c.registerGlobalHelper=function(v,w,O,$){c.registerHelper(v,w,$),b[v]._global.push({pred:O,val:$})}}function W8(c,p,b,v,w){var O=p,$=b,D=ze(c,p.line),L=w&&c.direction=="rtl"?-b:b;function z(){var $e=p.line+L;return $e<c.first||$e>=c.first+c.size?!1:(p=new ke($e,p.ch,p.sticky),D=ze(c,$e))}function G($e){var Ce;if(v=="codepoint"){var Pe=D.text.charCodeAt(p.ch+(b>0?0:-1));if(isNaN(Pe))Ce=null;else{var et=b>0?Pe>=55296&&Pe<56320:Pe>=56320&&Pe<57343;Ce=new ke(p.line,Math.max(0,Math.min(D.text.length,p.ch+b*(et?2:1))),-b)}}else w?Ce=VWe(c.cm,D,p,b):Ce=D8(D,p,b);if(Ce==null)if(!$e&&z())p=I8(w,c.cm,D,p.line,L);else return!1;else p=Ce;return!0}if(v=="char"||v=="codepoint")G();else if(v=="column")G(!0);else if(v=="word"||v=="group")for(var ee=null,re=v=="group",ie=c.cm&&c.cm.getHelper(p,"wordChars"),fe=!0;!(b<0&&!G(!fe));fe=!1){var de=D.text.charAt(p.ch)||`
|
||
`,we=On(de,ie)?"w":re&&de==`
|
||
`?"n":!re||/\s/.test(de)?null:"p";if(re&&!fe&&!we&&(we="s"),ee&&ee!=we){b<0&&(b=1,G(),p.sticky="after");break}if(we&&(ee=we),b>0&&!G(!fe))break}var Se=U2(c,p,O,$,!0);return XT(O,Se)&&(Se.hitSide=!0),Se}function wee(c,p,b,v){var w=c.doc,O=p.left,$;if(v=="page"){var D=Math.min(c.display.wrapper.clientHeight,pe(c).innerHeight||w(c).documentElement.clientHeight),L=Math.max(D-.5*cp(c.display),3);$=(b>0?p.bottom:p.top)+b*L}else v=="line"&&($=b>0?p.bottom+3:p.top-3);for(var z;z=f8(c,O,$),!!z.outside;){if(b<0?$<=0:$>=w.height){z.hitSide=!0;break}$+=b*5}return z}var Xt=function(c){this.cm=c,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ht,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Xt.prototype.init=function(c){var p=this,b=this,v=b.cm,w=b.div=c.lineDiv;w.contentEditable=!0,B8(w,v.options.spellcheck,v.options.autocorrect,v.options.autocapitalize);function O(D){for(var L=D.target;L;L=L.parentNode){if(L==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(L.className))break}return!1}rt(w,"paste",function(D){!O(D)||Sn(v,D)||vee(D,v)||u<=11&&setTimeout(Ai(v,function(){return p.updateFromDOM()}),20)}),rt(w,"compositionstart",function(D){p.composing={data:D.data,done:!1}}),rt(w,"compositionupdate",function(D){p.composing||(p.composing={data:D.data,done:!1})}),rt(w,"compositionend",function(D){p.composing&&(D.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),rt(w,"touchstart",function(){return b.forceCompositionEnd()}),rt(w,"input",function(){p.composing||p.readFromDOMSoon()});function $(D){if(!(!O(D)||Sn(v,D))){if(v.somethingSelected())G2({lineWise:!1,text:v.getSelections()}),D.type=="cut"&&v.replaceSelection("",null,"cut");else if(v.options.lineWiseCopyCut){var L=kee(v);G2({lineWise:!0,text:L.text}),D.type=="cut"&&v.operation(function(){v.setSelections(L.ranges,0,It),v.replaceSelection("",null,"cut")})}else return;if(D.clipboardData){D.clipboardData.clearData();var z=Vs.text.join(`
|
||
`);if(D.clipboardData.setData("Text",z),D.clipboardData.getData("Text")==z){D.preventDefault();return}}var G=yee(),ee=G.firstChild;B8(ee),v.display.lineSpace.insertBefore(G,v.display.lineSpace.firstChild),ee.value=Vs.text.join(`
|
||
`);var re=te(le(w));U(ee),setTimeout(function(){v.display.lineSpace.removeChild(G),re.focus(),re==w&&b.showPrimarySelection()},50)}}rt(w,"copy",$),rt(w,"cut",$)},Xt.prototype.screenReaderLabelChanged=function(c){c?this.div.setAttribute("aria-label",c):this.div.removeAttribute("aria-label")},Xt.prototype.prepareSelection=function(){var c=fJ(this.cm,!1);return c.focus=te(le(this.div))==this.div,c},Xt.prototype.showSelection=function(c,p){!c||!this.cm.display.view.length||((c.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(c))},Xt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xt.prototype.showPrimarySelection=function(){var c=this.getSelection(),p=this.cm,b=p.doc.sel.primary(),v=b.from(),w=b.to();if(p.display.viewTo==p.display.viewFrom||v.line>=p.display.viewTo||w.line<p.display.viewFrom){c.removeAllRanges();return}var O=K2(p,c.anchorNode,c.anchorOffset),$=K2(p,c.focusNode,c.focusOffset);if(!(O&&!O.bad&&$&&!$.bad&&mt(_2(O,$),v)==0&&mt(x2(O,$),w)==0)){var D=p.display.view,L=v.line>=p.display.viewFrom&&xee(p,v)||{node:D[0].measure.map[2],offset:0},z=w.line<p.display.viewTo&&xee(p,w);if(!z){var G=D[D.length-1].measure,ee=G.maps?G.maps[G.maps.length-1]:G.map;z={node:ee[ee.length-1],offset:ee[ee.length-2]-ee[ee.length-3]}}if(!L||!z){c.removeAllRanges();return}var re=c.rangeCount&&c.getRangeAt(0),ie;try{ie=Y(L.node,L.offset,z.offset,z.node)}catch{}ie&&(!r&&p.state.focused?(c.collapse(L.node,L.offset),ie.collapsed||(c.removeAllRanges(),c.addRange(ie))):(c.removeAllRanges(),c.addRange(ie)),re&&c.anchorNode==null?c.addRange(re):r&&this.startGracePeriod()),this.rememberSelection()}},Xt.prototype.startGracePeriod=function(){var c=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){c.gracePeriod=!1,c.selectionChanged()&&c.cm.operation(function(){return c.cm.curOp.selectionChanged=!0})},20)},Xt.prototype.showMultipleSelections=function(c){H(this.cm.display.cursorDiv,c.cursors),H(this.cm.display.selectionDiv,c.selection)},Xt.prototype.rememberSelection=function(){var c=this.getSelection();this.lastAnchorNode=c.anchorNode,this.lastAnchorOffset=c.anchorOffset,this.lastFocusNode=c.focusNode,this.lastFocusOffset=c.focusOffset},Xt.prototype.selectionInEditor=function(){var c=this.getSelection();if(!c.rangeCount)return!1;var p=c.getRangeAt(0).commonAncestorContainer;return K(this.div,p)},Xt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||te(le(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xt.prototype.blur=function(){this.div.blur()},Xt.prototype.getField=function(){return this.div},Xt.prototype.supportsTouch=function(){return!0},Xt.prototype.receivedFocus=function(){var c=this,p=this;this.selectionInEditor()?setTimeout(function(){return c.pollSelection()},20):yo(this.cm,function(){return p.cm.curOp.selectionChanged=!0});function b(){p.cm.state.focused&&(p.pollSelection(),p.polling.set(p.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},Xt.prototype.selectionChanged=function(){var c=this.getSelection();return c.anchorNode!=this.lastAnchorNode||c.anchorOffset!=this.lastAnchorOffset||c.focusNode!=this.lastFocusNode||c.focusOffset!=this.lastFocusOffset},Xt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var c=this.getSelection(),p=this.cm;if(C&&h&&this.cm.display.gutterSpecs.length&&gHe(c.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var b=K2(p,c.anchorNode,c.anchorOffset),v=K2(p,c.focusNode,c.focusOffset);b&&v&&yo(p,function(){pr(p.doc,fc(b,v),It),(b.bad||v.bad)&&(p.curOp.selectionChanged=!0)})}}},Xt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var c=this.cm,p=c.display,b=c.doc.sel.primary(),v=b.from(),w=b.to();if(v.ch==0&&v.line>c.firstLine()&&(v=ke(v.line-1,ze(c.doc,v.line-1).length)),w.ch==ze(c.doc,w.line).text.length&&w.line<c.lastLine()&&(w=ke(w.line+1,0)),v.line<p.viewFrom||w.line>p.viewTo-1)return!1;var O,$,D;v.line==p.viewFrom||(O=Ff(c,v.line))==0?($=Bt(p.view[0].line),D=p.view[0].node):($=Bt(p.view[O].line),D=p.view[O-1].node.nextSibling);var L=Ff(c,w.line),z,G;if(L==p.view.length-1?(z=p.viewTo-1,G=p.lineDiv.lastChild):(z=Bt(p.view[L+1].line)-1,G=p.view[L+1].node.previousSibling),!D)return!1;for(var ee=c.doc.splitLines(mHe(c,D,G,$,z)),re=Us(c.doc,ke($,0),ke(z,ze(c.doc,z).text.length));ee.length>1&&re.length>1;)if(Be(ee)==Be(re))ee.pop(),re.pop(),z--;else if(ee[0]==re[0])ee.shift(),re.shift(),$++;else break;for(var ie=0,fe=0,de=ee[0],we=re[0],Se=Math.min(de.length,we.length);ie<Se&&de.charCodeAt(ie)==we.charCodeAt(ie);)++ie;for(var $e=Be(ee),Ce=Be(re),Pe=Math.min($e.length-(ee.length==1?ie:0),Ce.length-(re.length==1?ie:0));fe<Pe&&$e.charCodeAt($e.length-fe-1)==Ce.charCodeAt(Ce.length-fe-1);)++fe;if(ee.length==1&&re.length==1&&$==v.line)for(;ie&&ie>v.ch&&$e.charCodeAt($e.length-fe-1)==Ce.charCodeAt(Ce.length-fe-1);)ie--,fe++;ee[ee.length-1]=$e.slice(0,$e.length-fe).replace(/^\u200b+/,""),ee[0]=ee[0].slice(ie).replace(/\u200b+$/,"");var et=ke($,ie),Xe=ke(z,re.length?Be(re).length-fe:0);if(ee.length>1||ee[0]||mt(et,Xe))return bp(c.doc,ee,et,Xe,"+input"),!0},Xt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Xt.prototype.reset=function(){this.forceCompositionEnd()},Xt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Xt.prototype.readFromDOMSoon=function(){var c=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(c.readDOMTimeout=null,c.composing)if(c.composing.done)c.composing=null;else return;c.updateFromDOM()},80))},Xt.prototype.updateFromDOM=function(){var c=this;(this.cm.isReadOnly()||!this.pollContent())&&yo(this.cm,function(){return to(c.cm)})},Xt.prototype.setUneditable=function(c){c.contentEditable="false"},Xt.prototype.onKeyPress=function(c){c.charCode==0||this.composing||(c.preventDefault(),this.cm.isReadOnly()||Ai(this.cm,z8)(this.cm,String.fromCharCode(c.charCode==null?c.keyCode:c.charCode),0))},Xt.prototype.readOnlyChanged=function(c){this.div.contentEditable=String(c!="nocursor")},Xt.prototype.onContextMenu=function(){},Xt.prototype.resetPosition=function(){},Xt.prototype.needsContentAttribute=!0;function xee(c,p){var b=l8(c,p.line);if(!b||b.hidden)return null;var v=ze(c.doc,p.line),w=GK(b,v,p.line),O=qo(v,c.doc.direction),$="left";if(O){var D=eo(O,p.ch);$=D%2?"right":"left"}var L=eJ(w.map,p.ch,$);return L.offset=L.collapse=="right"?L.end:L.start,L}function gHe(c){for(var p=c;p;p=p.parentNode)if(/CodeMirror-gutter-wrapper/.test(p.className))return!0;return!1}function _p(c,p){return p&&(c.bad=!0),c}function mHe(c,p,b,v,w){var O="",$=!1,D=c.doc.lineSeparator(),L=!1;function z(ie){return function(fe){return fe.id==ie}}function G(){$&&(O+=D,L&&(O+=D),$=L=!1)}function ee(ie){ie&&(G(),O+=ie)}function re(ie){if(ie.nodeType==1){var fe=ie.getAttribute("cm-text");if(fe){ee(fe);return}var de=ie.getAttribute("cm-marker"),we;if(de){var Se=c.findMarks(ke(v,0),ke(w+1,0),z(+de));Se.length&&(we=Se[0].find(0))&&ee(Us(c.doc,we.from,we.to).join(D));return}if(ie.getAttribute("contenteditable")=="false")return;var $e=/^(pre|div|p|li|table|br)$/i.test(ie.nodeName);if(!/^br$/i.test(ie.nodeName)&&ie.textContent.length==0)return;$e&&G();for(var Ce=0;Ce<ie.childNodes.length;Ce++)re(ie.childNodes[Ce]);/^(pre|p)$/i.test(ie.nodeName)&&(L=!0),$e&&($=!0)}else ie.nodeType==3&&ee(ie.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;re(p),p!=b;)p=p.nextSibling,L=!1;return O}function K2(c,p,b){var v;if(p==c.display.lineDiv){if(v=c.display.lineDiv.childNodes[b],!v)return _p(c.clipPos(ke(c.display.viewTo-1)),!0);p=null,b=0}else for(v=p;;v=v.parentNode){if(!v||v==c.display.lineDiv)return null;if(v.parentNode&&v.parentNode==c.display.lineDiv)break}for(var w=0;w<c.display.view.length;w++){var O=c.display.view[w];if(O.node==v)return vHe(O,p,b)}}function vHe(c,p,b){var v=c.text.firstChild,w=!1;if(!p||!K(v,p))return _p(ke(Bt(c.line),0),!0);if(p==v&&(w=!0,p=v.childNodes[b],b=0,!p)){var O=c.rest?Be(c.rest):c.line;return _p(ke(Bt(O),O.text.length),w)}var $=p.nodeType==3?p:null,D=p;for(!$&&p.childNodes.length==1&&p.firstChild.nodeType==3&&($=p.firstChild,b&&(b=$.nodeValue.length));D.parentNode!=v;)D=D.parentNode;var L=c.measure,z=L.maps;function G(we,Se,$e){for(var Ce=-1;Ce<(z?z.length:0);Ce++)for(var Pe=Ce<0?L.map:z[Ce],et=0;et<Pe.length;et+=3){var Xe=Pe[et+2];if(Xe==we||Xe==Se){var Ct=Bt(Ce<0?c.line:c.rest[Ce]),en=Pe[et]+$e;return($e<0||Xe!=we)&&(en=Pe[et+($e?1:0)]),ke(Ct,en)}}}var ee=G($,D,b);if(ee)return _p(ee,w);for(var re=D.nextSibling,ie=$?$.nodeValue.length-b:0;re;re=re.nextSibling){if(ee=G(re,re.firstChild,0),ee)return _p(ke(ee.line,ee.ch-ie),w);ie+=re.textContent.length}for(var fe=D.previousSibling,de=b;fe;fe=fe.previousSibling){if(ee=G(fe,fe.firstChild,-1),ee)return _p(ke(ee.line,ee.ch+de),w);de+=fe.textContent.length}}var oi=function(c){this.cm=c,this.prevInput="",this.pollingFast=!1,this.polling=new ht,this.hasSelection=!1,this.composing=null,this.resetting=!1};oi.prototype.init=function(c){var p=this,b=this,v=this.cm;this.createField(c);var w=this.textarea;c.wrapper.insertBefore(this.wrapper,c.wrapper.firstChild),S&&(w.style.width="0px"),rt(w,"input",function(){l&&u>=9&&p.hasSelection&&(p.hasSelection=null),b.poll()}),rt(w,"paste",function($){Sn(v,$)||vee($,v)||(v.state.pasteIncoming=+new Date,b.fastPoll())});function O($){if(!Sn(v,$)){if(v.somethingSelected())G2({lineWise:!1,text:v.getSelections()});else if(v.options.lineWiseCopyCut){var D=kee(v);G2({lineWise:!0,text:D.text}),$.type=="cut"?v.setSelections(D.ranges,null,It):(b.prevInput="",w.value=D.text.join(`
|
||
`),U(w))}else return;$.type=="cut"&&(v.state.cutIncoming=+new Date)}}rt(w,"cut",O),rt(w,"copy",O),rt(c.scroller,"paste",function($){if(!(jl(c,$)||Sn(v,$))){if(!w.dispatchEvent){v.state.pasteIncoming=+new Date,b.focus();return}var D=new Event("paste");D.clipboardData=$.clipboardData,w.dispatchEvent(D)}}),rt(c.lineSpace,"selectstart",function($){jl(c,$)||ri($)}),rt(w,"compositionstart",function(){var $=v.getCursor("from");b.composing&&b.composing.range.clear(),b.composing={start:$,range:v.markText($,v.getCursor("to"),{className:"CodeMirror-composing"})}}),rt(w,"compositionend",function(){b.composing&&(b.poll(),b.composing.range.clear(),b.composing=null)})},oi.prototype.createField=function(c){this.wrapper=yee(),this.textarea=this.wrapper.firstChild;var p=this.cm.options;B8(this.textarea,p.spellcheck,p.autocorrect,p.autocapitalize)},oi.prototype.screenReaderLabelChanged=function(c){c?this.textarea.setAttribute("aria-label",c):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var c=this.cm,p=c.display,b=c.doc,v=fJ(c);if(c.options.moveInputWithCursor){var w=qs(c,b.sel.primary().head,"div"),O=p.wrapper.getBoundingClientRect(),$=p.lineDiv.getBoundingClientRect();v.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,w.top+$.top-O.top)),v.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,w.left+$.left-O.left))}return v},oi.prototype.showSelection=function(c){var p=this.cm,b=p.display;H(b.cursorDiv,c.cursors),H(b.selectionDiv,c.selection),c.teTop!=null&&(this.wrapper.style.top=c.teTop+"px",this.wrapper.style.left=c.teLeft+"px")},oi.prototype.reset=function(c){if(!(this.contextMenuPending||this.composing&&c)){var p=this.cm;if(this.resetting=!0,p.somethingSelected()){this.prevInput="";var b=p.getSelection();this.textarea.value=b,p.state.focused&&U(this.textarea),l&&u>=9&&(this.hasSelection=b)}else c||(this.prevInput=this.textarea.value="",l&&u>=9&&(this.hasSelection=null));this.resetting=!1}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||te(le(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var c=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){c.poll(),c.cm.state.focused&&c.slowPoll()})},oi.prototype.fastPoll=function(){var c=!1,p=this;p.pollingFast=!0;function b(){var v=p.poll();!v&&!c?(c=!0,p.polling.set(60,b)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,b)},oi.prototype.poll=function(){var c=this,p=this.cm,b=this.textarea,v=this.prevInput;if(this.contextMenuPending||this.resetting||!p.state.focused||y2(b)&&!v&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var w=b.value;if(w==v&&!p.somethingSelected())return!1;if(l&&u>=9&&this.hasSelection===w||N&&/[\uf700-\uf7ff]/.test(w))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var O=w.charCodeAt(0);if(O==8203&&!v&&(v=""),O==8666)return this.reset(),this.cm.execCommand("undo")}for(var $=0,D=Math.min(v.length,w.length);$<D&&v.charCodeAt($)==w.charCodeAt($);)++$;return yo(p,function(){z8(p,w.slice($),v.length-$,null,c.composing?"*compose":null),w.length>1e3||w.indexOf(`
|
||
`)>-1?b.value=c.prevInput="":c.prevInput=w,c.composing&&(c.composing.range.clear(),c.composing.range=p.markText(c.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){l&&u>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(c){var p=this,b=p.cm,v=b.display,w=p.textarea;p.contextMenuPending&&p.contextMenuPending();var O=jf(b,c),$=v.scroller.scrollTop;if(!O||m)return;var D=b.options.resetSelectionOnContextMenu;D&&b.doc.sel.contains(O)==-1&&Ai(b,pr)(b.doc,fc(O),It);var L=w.style.cssText,z=p.wrapper.style.cssText,G=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",w.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||
top: `+(c.clientY-G.top-5)+"px; left: "+(c.clientX-G.left-5)+`px;
|
||
z-index: 1000; background: `+(l?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ee;f&&(ee=w.ownerDocument.defaultView.scrollY),v.input.focus(),f&&w.ownerDocument.defaultView.scrollTo(null,ee),v.input.reset(),b.somethingSelected()||(w.value=p.prevInput=" "),p.contextMenuPending=ie,v.selForContextMenu=b.doc.sel,clearTimeout(v.detectingSelectAll);function re(){if(w.selectionStart!=null){var de=b.somethingSelected(),we=""+(de?w.value:"");w.value="⇚",w.value=we,p.prevInput=de?"":"",w.selectionStart=1,w.selectionEnd=we.length,v.selForContextMenu=b.doc.sel}}function ie(){if(p.contextMenuPending==ie&&(p.contextMenuPending=!1,p.wrapper.style.cssText=z,w.style.cssText=L,l&&u<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=$),w.selectionStart!=null)){(!l||l&&u<9)&&re();var de=0,we=function(){v.selForContextMenu==b.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&p.prevInput==""?Ai(b,BJ)(b):de++<10?v.detectingSelectAll=setTimeout(we,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(we,200)}}if(l&&u>=9&&re(),Z){Pl(c);var fe=function(){Vi(window,"mouseup",fe),setTimeout(ie,20)};rt(window,"mouseup",fe)}else setTimeout(ie,50)},oi.prototype.readOnlyChanged=function(c){c||this.reset(),this.textarea.disabled=c=="nocursor",this.textarea.readOnly=!!c},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function bHe(c,p){if(p=p?He(p):{},p.value=c.value,!p.tabindex&&c.tabIndex&&(p.tabindex=c.tabIndex),!p.placeholder&&c.placeholder&&(p.placeholder=c.placeholder),p.autofocus==null){var b=te(le(c));p.autofocus=b==c||c.getAttribute("autofocus")!=null&&b==document.body}function v(){c.value=D.getValue()}var w;if(c.form&&(rt(c.form,"submit",v),!p.leaveSubmitMethodAlone)){var O=c.form;w=O.submit;try{var $=O.submit=function(){v(),O.submit=w,O.submit(),O.submit=$}}catch{}}p.finishInit=function(L){L.save=v,L.getTextArea=function(){return c},L.toTextArea=function(){L.toTextArea=isNaN,v(),c.parentNode.removeChild(L.getWrapperElement()),c.style.display="",c.form&&(Vi(c.form,"submit",v),!p.leaveSubmitMethodAlone&&typeof c.form.submit=="function"&&(c.form.submit=w))}},c.style.display="none";var D=En(function(L){return c.parentNode.insertBefore(L,c.nextSibling)},p);return D}function kHe(c){c.off=Vi,c.on=rt,c.wheelEventPixels=CWe,c.Doc=no,c.splitLines=Df,c.countColumn=ot,c.findColumn=Ue,c.isWordChar=Nt,c.Pass=st,c.signal=Un,c.Line=ap,c.changeEnd=dc,c.scrollbarModel=vJ,c.Pos=ke,c.cmpPos=mt,c.modes=sp,c.mimeModes=Il,c.resolveMode=ne,c.getMode=_e,c.modeExtensions=Fe,c.extendMode=hn,c.copyState=Dn,c.startState=hr,c.innerMode=In,c.commands=V1,c.keyMap=zl,c.keyName=iee,c.isModifierKey=tee,c.lookupKey=yp,c.normalizeKeyMap=YWe,c.StringStream=Zt,c.SharedTextMarker=Z1,c.TextMarker=pc,c.LineWidget=U1,c.e_preventDefault=ri,c.e_stopPropagation=b2,c.e_stop=Pl,c.addClass=oe,c.contains=K,c.rmClass=Q,c.keyNames=gc}cHe(En),pHe(En);var yHe="iter insert remove copy getEditor constructor".split(" ");for(var J2 in no.prototype)no.prototype.hasOwnProperty(J2)&&ve(yHe,J2)<0&&(En.prototype[J2]=function(c){return function(){return c.apply(this.doc,arguments)}}(no.prototype[J2]));return Cn(no),En.inputStyles={textarea:oi,contenteditable:Xt},En.defineMode=function(c){!En.defaults.mode&&c!="null"&&(En.defaults.mode=c),YT.apply(this,arguments)},En.defineMIME=Je,En.defineMode("null",function(){return{token:function(c){return c.skipToEnd()}}}),En.defineMIME("text/plain","null"),En.defineExtension=function(c,p){En.prototype[c]=p},En.defineDocExtension=function(c,p){no.prototype[c]=p},En.fromTextArea=bHe,kHe(En),En.version="5.65.20",En})})(xY);var Ws=xY.exports;(function(t,e){(function(n){n(Ws)})(function(n){var i=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,r=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,o=/[*+-]\s/;n.commands.newlineAndIndentContinueMarkdownList=function(a){if(a.getOption("disableInput"))return n.Pass;for(var l=a.listSelections(),u=[],f=0;f<l.length;f++){var d=l[f].head,h=a.getStateAfter(d.line),g=n.innerMode(a.getMode(),h);if(g.mode.name!=="markdown"&&g.mode.helperType!=="markdown"){a.execCommand("newlineAndIndent");return}else h=g.state;var m=h.list!==!1,y=h.quote!==0,x=a.getLine(d.line),_=i.exec(x),S=/^\s*$/.test(x.slice(0,d.ch));if(!l[f].empty()||!m&&!y||!_||S){a.execCommand("newlineAndIndent");return}if(r.test(x)){var C=y&&/>\s*$/.test(x),E=!/>\s*$/.test(x);(C||E)&&a.replaceRange("",{line:d.line,ch:0},{line:d.line,ch:d.ch+1}),u[f]=`
|
||
`}else{var N=_[1],M=_[5],I=!(o.test(_[2])||_[2].indexOf(">")>=0),W=I?parseInt(_[3],10)+1+_[4]:_[2].replace("x"," ");u[f]=`
|
||
`+N+W+M,I&&s(a,d)}}a.replaceSelections(u)};function s(a,l){var u=l.line,f=0,d=0,h=i.exec(a.getLine(u)),g=h[1];do{f+=1;var m=u+f,y=a.getLine(m),x=i.exec(y);if(x){var _=x[1],S=parseInt(h[3],10)+f-d,C=parseInt(x[3],10),E=C;if(g===_&&!isNaN(C))S===C&&(E=C+1),S>C&&(E=S+1),a.replaceRange(y.replace(i,_+E+x[4]+x[5]),{line:m,ch:0},{line:m,ch:y.length});else{if(g.length>_.length||g.length<_.length&&f===1)return;d+=1}}}while(x)}})})();var _Y=Ws;_Y.commands.tabAndIndentMarkdownList=function(t){var e=t.listSelections(),n=e[0].head,i=t.getStateAfter(n.line),r=i.list!==!1;if(r){t.execCommand("indentMore");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var o=Array(t.options.tabSize+1).join(" ");t.replaceSelection(o)}},_Y.commands.shiftTabAndUnindentMarkdownList=function(t){var e=t.listSelections(),n=e[0].head,i=t.getStateAfter(n.line),r=i.list!==!1;if(r){t.execCommand("indentLess");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var o=Array(t.options.tabSize+1).join(" ");t.replaceSelection(o)}},function(t,e){(function(n){n(Ws)})(function(n){n.defineOption("fullScreen",!1,function(o,s,a){a==n.Init&&(a=!1),!a!=!s&&(s?i(o):r(o))});function i(o){var s=o.getWrapperElement();o.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:s.style.width,height:s.style.height},s.style.width="",s.style.height="auto",s.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",o.refresh()}function r(o){var s=o.getWrapperElement();s.className=s.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var a=o.state.fullScreenRestore;s.style.width=a.width,s.style.height=a.height,window.scrollTo(a.scrollLeft,a.scrollTop),o.refresh()}})}();var SDe={exports:{}},CDe={exports:{}};(function(t,e){(function(n){n(Ws)})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(o,s){var a=o.indentUnit,l={},u=s.htmlMode?i:r;for(var f in u)l[f]=u[f];for(var f in s)l[f]=s[f];var d,h;function g(j,q){function Y(oe){return q.tokenize=oe,oe(j,q)}var K=j.next();if(K=="<")return j.eat("!")?j.eat("[")?j.match("CDATA[")?Y(x("atom","]]>")):null:j.match("--")?Y(x("comment","-->")):j.match("DOCTYPE",!0,!0)?(j.eatWhile(/[\w\._\-]/),Y(_(1))):null:j.eat("?")?(j.eatWhile(/[\w\._\-]/),q.tokenize=x("meta","?>"),"meta"):(d=j.eat("/")?"closeTag":"openTag",q.tokenize=m,"tag bracket");if(K=="&"){var te;return j.eat("#")?j.eat("x")?te=j.eatWhile(/[a-fA-F\d]/)&&j.eat(";"):te=j.eatWhile(/[\d]/)&&j.eat(";"):te=j.eatWhile(/[\w\.\-:]/)&&j.eat(";"),te?"atom":"error"}else return j.eatWhile(/[^&<]/),null}g.isInText=!0;function m(j,q){var Y=j.next();if(Y==">"||Y=="/"&&j.eat(">"))return q.tokenize=g,d=Y==">"?"endTag":"selfcloseTag","tag bracket";if(Y=="=")return d="equals",null;if(Y=="<"){q.tokenize=g,q.state=M,q.tagName=q.tagStart=null;var K=q.tokenize(j,q);return K?K+" tag error":"tag error"}else return/[\'\"]/.test(Y)?(q.tokenize=y(Y),q.stringStartCol=j.column(),q.tokenize(j,q)):(j.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function y(j){var q=function(Y,K){for(;!Y.eol();)if(Y.next()==j){K.tokenize=m;break}return"string"};return q.isInAttribute=!0,q}function x(j,q){return function(Y,K){for(;!Y.eol();){if(Y.match(q)){K.tokenize=g;break}Y.next()}return j}}function _(j){return function(q,Y){for(var K;(K=q.next())!=null;){if(K=="<")return Y.tokenize=_(j+1),Y.tokenize(q,Y);if(K==">")if(j==1){Y.tokenize=g;break}else return Y.tokenize=_(j-1),Y.tokenize(q,Y)}return"meta"}}function S(j){return j&&j.toLowerCase()}function C(j,q,Y){this.prev=j.context,this.tagName=q||"",this.indent=j.indented,this.startOfLine=Y,(l.doNotIndent.hasOwnProperty(q)||j.context&&j.context.noIndent)&&(this.noIndent=!0)}function E(j){j.context&&(j.context=j.context.prev)}function N(j,q){for(var Y;;){if(!j.context||(Y=j.context.tagName,!l.contextGrabbers.hasOwnProperty(S(Y))||!l.contextGrabbers[S(Y)].hasOwnProperty(S(q))))return;E(j)}}function M(j,q,Y){return j=="openTag"?(Y.tagStart=q.column(),I):j=="closeTag"?W:M}function I(j,q,Y){return j=="word"?(Y.tagName=q.current(),h="tag",R):l.allowMissingTagName&&j=="endTag"?(h="tag bracket",R(j,q,Y)):(h="error",I)}function W(j,q,Y){if(j=="word"){var K=q.current();return Y.context&&Y.context.tagName!=K&&l.implicitlyClosed.hasOwnProperty(S(Y.context.tagName))&&E(Y),Y.context&&Y.context.tagName==K||l.matchClosing===!1?(h="tag",B):(h="tag error",Z)}else return l.allowMissingTagName&&j=="endTag"?(h="tag bracket",B(j,q,Y)):(h="error",Z)}function B(j,q,Y){return j!="endTag"?(h="error",B):(E(Y),M)}function Z(j,q,Y){return h="error",B(j,q,Y)}function R(j,q,Y){if(j=="word")return h="attribute",Q;if(j=="endTag"||j=="selfcloseTag"){var K=Y.tagName,te=Y.tagStart;return Y.tagName=Y.tagStart=null,j=="selfcloseTag"||l.autoSelfClosers.hasOwnProperty(S(K))?N(Y,K):(N(Y,K),Y.context=new C(Y,K,te==Y.indented)),M}return h="error",R}function Q(j,q,Y){return j=="equals"?V:(l.allowMissing||(h="error"),R(j,q,Y))}function V(j,q,Y){return j=="string"?H:j=="word"&&l.allowUnquoted?(h="string",R):(h="error",R(j,q,Y))}function H(j,q,Y){return j=="string"?H:R(j,q,Y)}return{startState:function(j){var q={tokenize:g,state:M,indented:j||0,tagName:null,tagStart:null,context:null};return j!=null&&(q.baseIndent=j),q},token:function(j,q){if(!q.tagName&&j.sol()&&(q.indented=j.indentation()),j.eatSpace())return null;d=null;var Y=q.tokenize(j,q);return(Y||d)&&Y!="comment"&&(h=null,q.state=q.state(d||Y,j,q),h&&(Y=h=="error"?Y+" error":h)),Y},indent:function(j,q,Y){var K=j.context;if(j.tokenize.isInAttribute)return j.tagStart==j.indented?j.stringStartCol+1:j.indented+a;if(K&&K.noIndent)return n.Pass;if(j.tokenize!=m&&j.tokenize!=g)return Y?Y.match(/^(\s*)/)[0].length:0;if(j.tagName)return l.multilineTagIndentPastTag!==!1?j.tagStart+j.tagName.length+2:j.tagStart+a*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(q))return 0;var te=q&&/^<(\/)?([\w_:\.-]*)/.exec(q);if(te&&te[1])for(;K;)if(K.tagName==te[2]){K=K.prev;break}else if(l.implicitlyClosed.hasOwnProperty(S(K.tagName)))K=K.prev;else break;else if(te)for(;K;){var oe=l.contextGrabbers[S(K.tagName)];if(oe&&oe.hasOwnProperty(S(te[2])))K=K.prev;else break}for(;K&&K.prev&&!K.startOfLine;)K=K.prev;return K?K.indent+a:j.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(j){j.state==V&&(j.state=R)},xmlCurrentTag:function(j){return j.tagName?{name:j.tagName,close:j.type=="closeTag"}:null},xmlCurrentContext:function(j){for(var q=[],Y=j.context;Y;Y=Y.prev)q.push(Y.tagName);return q.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();var EDe=CDe.exports,OY={exports:{}},SY;function TDe(){return SY||(SY=1,function(t,e){(function(n){n(Ws)})(function(n){n.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var i=0;i<n.modeInfo.length;i++){var r=n.modeInfo[i];r.mimes&&(r.mime=r.mimes[0])}n.findModeByMIME=function(o){o=o.toLowerCase();for(var s=0;s<n.modeInfo.length;s++){var a=n.modeInfo[s];if(a.mime==o)return a;if(a.mimes){for(var l=0;l<a.mimes.length;l++)if(a.mimes[l]==o)return a}}if(/\+xml$/.test(o))return n.findModeByMIME("application/xml");if(/\+json$/.test(o))return n.findModeByMIME("application/json")},n.findModeByExtension=function(o){o=o.toLowerCase();for(var s=0;s<n.modeInfo.length;s++){var a=n.modeInfo[s];if(a.ext){for(var l=0;l<a.ext.length;l++)if(a.ext[l]==o)return a}}},n.findModeByFileName=function(o){for(var s=0;s<n.modeInfo.length;s++){var a=n.modeInfo[s];if(a.file&&a.file.test(o))return a}var l=o.lastIndexOf("."),u=l>-1&&o.substring(l+1,o.length);if(u)return n.findModeByExtension(u)},n.findModeByName=function(o){o=o.toLowerCase();for(var s=0;s<n.modeInfo.length;s++){var a=n.modeInfo[s];if(a.name.toLowerCase()==o)return a;if(a.alias){for(var l=0;l<a.alias.length;l++)if(a.alias[l].toLowerCase()==o)return a}}}})}()),OY.exports}(function(t,e){(function(n){n(Ws,EDe,TDe())})(function(n){n.defineMode("markdown",function(i,r){var o=n.getMode(i,"text/html"),s=o.name=="null";function a(U){if(n.findModeByName){var F=n.findModeByName(U);F&&(U=F.mime||F.mimes[0])}var se=n.getMode(i,U);return se.name=="null"?null:se}r.highlightFormatting===void 0&&(r.highlightFormatting=!1),r.maxBlockquoteDepth===void 0&&(r.maxBlockquoteDepth=0),r.taskLists===void 0&&(r.taskLists=!1),r.strikethrough===void 0&&(r.strikethrough=!1),r.emoji===void 0&&(r.emoji=!1),r.fencedCodeBlockHighlighting===void 0&&(r.fencedCodeBlockHighlighting=!0),r.fencedCodeBlockDefaultMode===void 0&&(r.fencedCodeBlockDefaultMode="text/plain"),r.xml===void 0&&(r.xml=!0),r.tokenTypeOverrides===void 0&&(r.tokenTypeOverrides={});var l={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var u in l)l.hasOwnProperty(u)&&r.tokenTypeOverrides[u]&&(l[u]=r.tokenTypeOverrides[u]);var f=/^([*\-_])(?:\s*\1){2,}\s*$/,d=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,h=/^\[(x| )\](?=\s)/i,g=r.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,m=/^ {0,3}(?:\={1,}|-{2,})\s*$/,y=/^[^#!\[\]*_\\<>` "'(~:]+/,x=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,_=/^\s*\[[^\]]+?\]:.*$/,S=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,C=" ";function E(U,F,se){return F.f=F.inline=se,se(U,F)}function N(U,F,se){return F.f=F.block=se,se(U,F)}function M(U){return!U||!/\S/.test(U.string)}function I(U){if(U.linkTitle=!1,U.linkHref=!1,U.linkText=!1,U.em=!1,U.strong=!1,U.strikethrough=!1,U.quote=0,U.indentedCode=!1,U.f==B){var F=s;if(!F){var se=n.innerMode(o,U.htmlState);F=se.mode.name=="xml"&&se.state.tagStart===null&&!se.state.context&&se.state.tokenize.isInText}F&&(U.f=V,U.block=W,U.htmlState=null)}return U.trailingSpace=0,U.trailingSpaceNewLine=!1,U.prevLine=U.thisLine,U.thisLine={stream:null},null}function W(U,F){var se=U.column()===F.indentation,le=M(F.prevLine.stream),pe=F.indentedCode,je=F.prevLine.hr,He=F.list!==!1,ot=(F.listStack[F.listStack.length-1]||0)+3;F.indentedCode=!1;var ht=F.indentation;if(F.indentationDiff===null&&(F.indentationDiff=F.indentation,He)){for(F.list=null;ht<F.listStack[F.listStack.length-1];)F.listStack.pop(),F.listStack.length?F.indentation=F.listStack[F.listStack.length-1]:F.list=!1;F.list!==!1&&(F.indentationDiff=ht-F.listStack[F.listStack.length-1])}var ve=!le&&!je&&!F.prevLine.header&&(!He||!pe)&&!F.prevLine.fencedCodeEnd,De=(F.list===!1||je||le)&&F.indentation<=ot&&U.match(f),st=null;if(F.indentationDiff>=4&&(pe||F.prevLine.fencedCodeEnd||F.prevLine.header||le))return U.skipToEnd(),F.indentedCode=!0,l.code;if(U.eatSpace())return null;if(se&&F.indentation<=ot&&(st=U.match(g))&&st[1].length<=6)return F.quote=0,F.header=st[1].length,F.thisLine.header=!0,r.highlightFormatting&&(F.formatting="header"),F.f=F.inline,R(F);if(F.indentation<=ot&&U.eat(">"))return F.quote=se?1:F.quote+1,r.highlightFormatting&&(F.formatting="quote"),U.eatSpace(),R(F);if(!De&&!F.setext&&se&&F.indentation<=ot&&(st=U.match(d))){var It=st[1]?"ol":"ul";return F.indentation=ht+U.current().length,F.list=!0,F.quote=0,F.listStack.push(F.indentation),F.em=!1,F.strong=!1,F.code=!1,F.strikethrough=!1,r.taskLists&&U.match(h,!1)&&(F.taskList=!0),F.f=F.inline,r.highlightFormatting&&(F.formatting=["list","list-"+It]),R(F)}else{if(se&&F.indentation<=ot&&(st=U.match(x,!0)))return F.quote=0,F.fencedEndRE=new RegExp(st[1]+"+ *$"),F.localMode=r.fencedCodeBlockHighlighting&&a(st[2]||r.fencedCodeBlockDefaultMode),F.localMode&&(F.localState=n.startState(F.localMode)),F.f=F.block=Z,r.highlightFormatting&&(F.formatting="code-block"),F.code=-1,R(F);if(F.setext||(!ve||!He)&&!F.quote&&F.list===!1&&!F.code&&!De&&!_.test(U.string)&&(st=U.lookAhead(1))&&(st=st.match(m)))return F.setext?(F.header=F.setext,F.setext=0,U.skipToEnd(),r.highlightFormatting&&(F.formatting="header")):(F.header=st[0].charAt(0)=="="?1:2,F.setext=F.header),F.thisLine.header=!0,F.f=F.inline,R(F);if(De)return U.skipToEnd(),F.hr=!0,F.thisLine.hr=!0,l.hr;if(U.peek()==="[")return E(U,F,K)}return E(U,F,F.inline)}function B(U,F){var se=o.token(U,F.htmlState);if(!s){var le=n.innerMode(o,F.htmlState);(le.mode.name=="xml"&&le.state.tagStart===null&&!le.state.context&&le.state.tokenize.isInText||F.md_inside&&U.current().indexOf(">")>-1)&&(F.f=V,F.block=W,F.htmlState=null)}return se}function Z(U,F){var se=F.listStack[F.listStack.length-1]||0,le=F.indentation<se,pe=se+3;if(F.fencedEndRE&&F.indentation<=pe&&(le||U.match(F.fencedEndRE))){r.highlightFormatting&&(F.formatting="code-block");var je;return le||(je=R(F)),F.localMode=F.localState=null,F.block=W,F.f=V,F.fencedEndRE=null,F.code=0,F.thisLine.fencedCodeEnd=!0,le?N(U,F,F.block):je}else return F.localMode?F.localMode.token(U,F.localState):(U.skipToEnd(),l.code)}function R(U){var F=[];if(U.formatting){F.push(l.formatting),typeof U.formatting=="string"&&(U.formatting=[U.formatting]);for(var se=0;se<U.formatting.length;se++)F.push(l.formatting+"-"+U.formatting[se]),U.formatting[se]==="header"&&F.push(l.formatting+"-"+U.formatting[se]+"-"+U.header),U.formatting[se]==="quote"&&(!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=U.quote?F.push(l.formatting+"-"+U.formatting[se]+"-"+U.quote):F.push("error"))}if(U.taskOpen)return F.push("meta"),F.length?F.join(" "):null;if(U.taskClosed)return F.push("property"),F.length?F.join(" "):null;if(U.linkHref?F.push(l.linkHref,"url"):(U.strong&&F.push(l.strong),U.em&&F.push(l.em),U.strikethrough&&F.push(l.strikethrough),U.emoji&&F.push(l.emoji),U.linkText&&F.push(l.linkText),U.code&&F.push(l.code),U.image&&F.push(l.image),U.imageAltText&&F.push(l.imageAltText,"link"),U.imageMarker&&F.push(l.imageMarker)),U.header&&F.push(l.header,l.header+"-"+U.header),U.quote&&(F.push(l.quote),!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=U.quote?F.push(l.quote+"-"+U.quote):F.push(l.quote+"-"+r.maxBlockquoteDepth)),U.list!==!1){var le=(U.listStack.length-1)%3;le?le===1?F.push(l.list2):F.push(l.list3):F.push(l.list1)}return U.trailingSpaceNewLine?F.push("trailing-space-new-line"):U.trailingSpace&&F.push("trailing-space-"+(U.trailingSpace%2?"a":"b")),F.length?F.join(" "):null}function Q(U,F){if(U.match(y,!0))return R(F)}function V(U,F){var se=F.text(U,F);if(typeof se<"u")return se;if(F.list)return F.list=null,R(F);if(F.taskList){var le=U.match(h,!0)[1]===" ";return le?F.taskOpen=!0:F.taskClosed=!0,r.highlightFormatting&&(F.formatting="task"),F.taskList=!1,R(F)}if(F.taskOpen=!1,F.taskClosed=!1,F.header&&U.match(/^#+$/,!0))return r.highlightFormatting&&(F.formatting="header"),R(F);var pe=U.next();if(F.linkTitle){F.linkTitle=!1;var je=pe;pe==="("&&(je=")"),je=(je+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var He="^\\s*(?:[^"+je+"\\\\]+|\\\\\\\\|\\\\.)"+je;if(U.match(new RegExp(He),!0))return l.linkHref}if(pe==="`"){var ot=F.formatting;r.highlightFormatting&&(F.formatting="code"),U.eatWhile("`");var ht=U.current().length;if(F.code==0&&(!F.quote||ht==1))return F.code=ht,R(F);if(ht==F.code){var ve=R(F);return F.code=0,ve}else return F.formatting=ot,R(F)}else if(F.code)return R(F);if(pe==="\\"&&(U.next(),r.highlightFormatting)){var De=R(F),st=l.formatting+"-escape";return De?De+" "+st:st}if(pe==="!"&&U.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return F.imageMarker=!0,F.image=!0,r.highlightFormatting&&(F.formatting="image"),R(F);if(pe==="["&&F.imageMarker&&U.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return F.imageMarker=!1,F.imageAltText=!0,r.highlightFormatting&&(F.formatting="image"),R(F);if(pe==="]"&&F.imageAltText){r.highlightFormatting&&(F.formatting="image");var De=R(F);return F.imageAltText=!1,F.image=!1,F.inline=F.f=j,De}if(pe==="["&&!F.image)return F.linkText&&U.match(/^.*?\]/)||(F.linkText=!0,r.highlightFormatting&&(F.formatting="link")),R(F);if(pe==="]"&&F.linkText){r.highlightFormatting&&(F.formatting="link");var De=R(F);return F.linkText=!1,F.inline=F.f=U.match(/\(.*?\)| ?\[.*?\]/,!1)?j:V,De}if(pe==="<"&&U.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=H,r.highlightFormatting&&(F.formatting="link");var De=R(F);return De?De+=" ":De="",De+l.linkInline}if(pe==="<"&&U.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){F.f=F.inline=H,r.highlightFormatting&&(F.formatting="link");var De=R(F);return De?De+=" ":De="",De+l.linkEmail}if(r.xml&&pe==="<"&&U.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var It=U.string.indexOf(">",U.pos);if(It!=-1){var Mt=U.string.substring(U.start,It);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Mt)&&(F.md_inside=!0)}return U.backUp(1),F.htmlState=n.startState(o),N(U,F,B)}if(r.xml&&pe==="<"&&U.match(/^\/\w*?>/))return F.md_inside=!1,"tag";if(pe==="*"||pe==="_"){for(var Wt=1,Ue=U.pos==1?" ":U.string.charAt(U.pos-2);Wt<3&&U.eat(pe);)Wt++;var St=U.peek()||" ",Lt=!/\s/.test(St)&&(!S.test(St)||/\s/.test(Ue)||S.test(Ue)),Be=!/\s/.test(Ue)&&(!S.test(Ue)||/\s/.test(St)||S.test(St)),Re=null,ae=null;if(Wt%2&&(!F.em&&Lt&&(pe==="*"||!Be||S.test(Ue))?Re=!0:F.em==pe&&Be&&(pe==="*"||!Lt||S.test(St))&&(Re=!1)),Wt>1&&(!F.strong&&Lt&&(pe==="*"||!Be||S.test(Ue))?ae=!0:F.strong==pe&&Be&&(pe==="*"||!Lt||S.test(St))&&(ae=!1)),ae!=null||Re!=null){r.highlightFormatting&&(F.formatting=Re==null?"strong":ae==null?"em":"strong em"),Re===!0&&(F.em=pe),ae===!0&&(F.strong=pe);var ve=R(F);return Re===!1&&(F.em=!1),ae===!1&&(F.strong=!1),ve}}else if(pe===" "&&(U.eat("*")||U.eat("_"))){if(U.peek()===" ")return R(F);U.backUp(1)}if(r.strikethrough){if(pe==="~"&&U.eatWhile(pe)){if(F.strikethrough){r.highlightFormatting&&(F.formatting="strikethrough");var ve=R(F);return F.strikethrough=!1,ve}else if(U.match(/^[^\s]/,!1))return F.strikethrough=!0,r.highlightFormatting&&(F.formatting="strikethrough"),R(F)}else if(pe===" "&&U.match("~~",!0)){if(U.peek()===" ")return R(F);U.backUp(2)}}if(r.emoji&&pe===":"&&U.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){F.emoji=!0,r.highlightFormatting&&(F.formatting="emoji");var Ze=R(F);return F.emoji=!1,Ze}return pe===" "&&(U.match(/^ +$/,!1)?F.trailingSpace++:F.trailingSpace&&(F.trailingSpaceNewLine=!0)),R(F)}function H(U,F){var se=U.next();if(se===">"){F.f=F.inline=V,r.highlightFormatting&&(F.formatting="link");var le=R(F);return le?le+=" ":le="",le+l.linkInline}return U.match(/^[^>]+/,!0),l.linkInline}function j(U,F){if(U.eatSpace())return null;var se=U.next();return se==="("||se==="["?(F.f=F.inline=Y(se==="("?")":"]"),r.highlightFormatting&&(F.formatting="link-string"),F.linkHref=!0,R(F)):"error"}var q={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Y(U){return function(F,se){var le=F.next();if(le===U){se.f=se.inline=V,r.highlightFormatting&&(se.formatting="link-string");var pe=R(se);return se.linkHref=!1,pe}return F.match(q[U]),se.linkHref=!0,R(se)}}function K(U,F){return U.match(/^([^\]\\]|\\.)*\]:/,!1)?(F.f=te,U.next(),r.highlightFormatting&&(F.formatting="link"),F.linkText=!0,R(F)):E(U,F,V)}function te(U,F){if(U.match("]:",!0)){F.f=F.inline=oe,r.highlightFormatting&&(F.formatting="link");var se=R(F);return F.linkText=!1,se}return U.match(/^([^\]\\]|\\.)+/,!0),l.linkText}function oe(U,F){return U.eatSpace()?null:(U.match(/^[^\s]+/,!0),U.peek()===void 0?F.linkTitle=!0:U.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),F.f=F.inline=V,l.linkHref+" url")}var ce={startState:function(){return{f:W,prevLine:{stream:null},thisLine:{stream:null},block:W,htmlState:null,indentation:0,inline:V,text:Q,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&n.copyState(o,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?n.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,F){if(F.formatting=!1,U!=F.thisLine.stream){if(F.header=0,F.hr=!1,U.match(/^\s*$/,!0))return I(F),null;if(F.prevLine=F.thisLine,F.thisLine={stream:U},F.taskList=!1,F.trailingSpace=0,F.trailingSpaceNewLine=!1,!F.localState&&(F.f=F.block,F.f!=B)){var se=U.match(/^\s*/,!0)[0].replace(/\t/g,C).length;if(F.indentation=se,F.indentationDiff=null,se>0)return null}}return F.f(U,F)},innerMode:function(U){return U.block==B?{state:U.htmlState,mode:o}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:ce}},indent:function(U,F,se){return U.block==B&&o.indent?o.indent(U.htmlState,F,se):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,F,se):n.Pass},blankLine:I,getType:R,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ce},"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})})();var $De=SDe.exports,MDe={exports:{}};(function(t,e){(function(n){n(Ws)})(function(n){n.overlayMode=function(i,r,o){return{startState:function(){return{base:n.startState(i),overlay:n.startState(r),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(s){return{base:n.copyState(i,s.base),overlay:n.copyState(r,s.overlay),basePos:s.basePos,baseCur:null,overlayPos:s.overlayPos,overlayCur:null}},token:function(s,a){return(s!=a.streamSeen||Math.min(a.basePos,a.overlayPos)<s.start)&&(a.streamSeen=s,a.basePos=a.overlayPos=s.start),s.start==a.basePos&&(a.baseCur=i.token(s,a.base),a.basePos=s.pos),s.start==a.overlayPos&&(s.pos=s.start,a.overlayCur=r.token(s,a.overlay),a.overlayPos=s.pos),s.pos=Math.min(a.basePos,a.overlayPos),a.overlayCur==null?a.baseCur:a.baseCur!=null&&a.overlay.combineTokens||o&&a.overlay.combineTokens==null?a.baseCur+" "+a.overlayCur:a.overlayCur},indent:i.indent&&function(s,a,l){return i.indent(s.base,a,l)},electricChars:i.electricChars,innerMode:function(s){return{state:s.base,mode:i}},blankLine:function(s){var a,l;return i.blankLine&&(a=i.blankLine(s.base)),r.blankLine&&(l=r.blankLine(s.overlay)),l==null?a:o&&a!=null?a+" "+l:l}}}})})();var NDe=MDe.exports;(function(t,e){(function(n){n(Ws)})(function(n){n.defineOption("placeholder","",function(u,f,d){var h=d&&d!=n.Init;if(f&&!h)u.on("blur",s),u.on("change",a),u.on("swapDoc",a),n.on(u.getInputField(),"compositionupdate",u.state.placeholderCompose=function(){o(u)}),a(u);else if(!f&&h){u.off("blur",s),u.off("change",a),u.off("swapDoc",a),n.off(u.getInputField(),"compositionupdate",u.state.placeholderCompose),i(u);var g=u.getWrapperElement();g.className=g.className.replace(" CodeMirror-empty","")}f&&!u.hasFocus()&&s(u)});function i(u){u.state.placeholder&&(u.state.placeholder.parentNode.removeChild(u.state.placeholder),u.state.placeholder=null)}function r(u){i(u);var f=u.state.placeholder=document.createElement("pre");f.style.cssText="height: 0; overflow: visible",f.style.direction=u.getOption("direction"),f.className="CodeMirror-placeholder CodeMirror-line-like";var d=u.getOption("placeholder");typeof d=="string"&&(d=document.createTextNode(d)),f.appendChild(d),u.display.lineSpace.insertBefore(f,u.display.lineSpace.firstChild)}function o(u){setTimeout(function(){var f=!1;if(u.lineCount()==1){var d=u.getInputField();f=d.nodeName=="TEXTAREA"?!u.getLine(0).length:!/[^\u200b]/.test(d.querySelector(".CodeMirror-line").textContent)}f?r(u):i(u)},20)}function s(u){l(u)&&r(u)}function a(u){var f=u.getWrapperElement(),d=l(u);f.className=f.className.replace(" CodeMirror-empty","")+(d?" CodeMirror-empty":""),d?r(u):i(u)}function l(u){return u.lineCount()===1&&u.getLine(0)===""}})})(),function(t,e){(function(n){n(Ws)})(function(n){n.defineOption("styleSelectedText",!1,function(h,g,m){var y=m&&m!=n.Init;g&&!y?(h.state.markedSelection=[],h.state.markedSelectionStyle=typeof g=="string"?g:"CodeMirror-selectedtext",f(h),h.on("cursorActivity",i),h.on("change",r)):!g&&y&&(h.off("cursorActivity",i),h.off("change",r),u(h),h.state.markedSelection=h.state.markedSelectionStyle=null)});function i(h){h.state.markedSelection&&h.operation(function(){d(h)})}function r(h){h.state.markedSelection&&h.state.markedSelection.length&&h.operation(function(){u(h)})}var o=8,s=n.Pos,a=n.cmpPos;function l(h,g,m,y){if(a(g,m)!=0)for(var x=h.state.markedSelection,_=h.state.markedSelectionStyle,S=g.line;;){var C=S==g.line?g:s(S,0),E=S+o,N=E>=m.line,M=N?m:s(E,0),I=h.markText(C,M,{className:_});if(y==null?x.push(I):x.splice(y++,0,I),N)break;S=E}}function u(h){for(var g=h.state.markedSelection,m=0;m<g.length;++m)g[m].clear();g.length=0}function f(h){u(h);for(var g=h.listSelections(),m=0;m<g.length;m++)l(h,g[m].from(),g[m].to())}function d(h){if(!h.somethingSelected())return u(h);if(h.listSelections().length>1)return f(h);var g=h.getCursor("start"),m=h.getCursor("end"),y=h.state.markedSelection;if(!y.length)return l(h,g,m);var x=y[0].find(),_=y[y.length-1].find();if(!x||!_||m.line-g.line<=o||a(g,_.to)>=0||a(m,x.from)<=0)return f(h);for(;a(g,x.from)>0;)y.shift().clear(),x=y[0].find();for(a(g,x.from)<0&&(x.to.line-g.line<o?(y.shift().clear(),l(h,g,x.to,0)):l(h,g,x.from,0));a(m,_.to)<0;)y.pop().clear(),_=y[y.length-1].find();a(m,_.to)>0&&(m.line-_.from.line<o?(y.pop().clear(),l(h,_.from,m)):l(h,_.to,m))}})}(),function(t,e){(function(n){n(Ws,$De,NDe)})(function(n){var i=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;n.defineMode("gfm",function(r,o){var s=0;function a(d){return d.code=!1,null}var l={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(d){return{code:d.code,codeBlock:d.codeBlock,ateSpace:d.ateSpace}},token:function(d,h){if(h.combineTokens=null,h.codeBlock)return d.match(/^```+/)?(h.codeBlock=!1,null):(d.skipToEnd(),null);if(d.sol()&&(h.code=!1),d.sol()&&d.match(/^```+/))return d.skipToEnd(),h.codeBlock=!0,null;if(d.peek()==="`"){d.next();var g=d.pos;d.eatWhile("`");var m=1+d.pos-g;return h.code?m===s&&(h.code=!1):(s=m,h.code=!0),null}else if(h.code)return d.next(),null;if(d.eatSpace())return h.ateSpace=!0,null;if((d.sol()||h.ateSpace)&&(h.ateSpace=!1,o.gitHubSpice!==!1)){if(d.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return h.combineTokens=!0,"link";if(d.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return h.combineTokens=!0,"link"}return d.match(i)&&d.string.slice(d.start-2,d.start)!="]("&&(d.start==0||/\W/.test(d.string.charAt(d.start-1)))?(h.combineTokens=!0,"link"):(d.next(),null)},blankLine:a},u={taskLists:!0,strikethrough:!0,emoji:!0};for(var f in o)u[f]=o[f];return u.name="markdown",n.overlayMode(n.getMode(r,u),l)},"markdown"),n.defineMIME("text/x-gfm","gfm")})}();var CY={exports:{}};(function(t){var e;(function(){e=function(n,i,r,o){o=o||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=o.flags||{},this.memoized={},this.loaded=!1;var s=this,a,l,u,f,d;n&&(s.dictionary=n,i&&r?y():typeof window<"u"&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(o.dictionaryPath?a=o.dictionaryPath:a="typo/dictionaries",i||h(chrome.extension.getURL(a+"/"+n+"/"+n+".aff"),g),r||h(chrome.extension.getURL(a+"/"+n+"/"+n+".dic"),m)):(o.dictionaryPath?a=o.dictionaryPath:typeof __dirname<"u"?a=__dirname+"/dictionaries":a="./dictionaries",i||h(a+"/"+n+"/"+n+".aff",g),r||h(a+"/"+n+"/"+n+".dic",m)));function h(x,_){var S=s._readFile(x,null,o.asyncLoad);o.asyncLoad?S.then(function(C){_(C)}):_(S)}function g(x){i=x,r&&y()}function m(x){r=x,i&&y()}function y(){for(s.rules=s._parseAFF(i),s.compoundRuleCodes={},l=0,f=s.compoundRules.length;l<f;l++){var x=s.compoundRules[l];for(u=0,d=x.length;u<d;u++)s.compoundRuleCodes[x[u]]=[]}"ONLYINCOMPOUND"in s.flags&&(s.compoundRuleCodes[s.flags.ONLYINCOMPOUND]=[]),s.dictionaryTable=s._parseDIC(r);for(l in s.compoundRuleCodes)s.compoundRuleCodes[l].length===0&&delete s.compoundRuleCodes[l];for(l=0,f=s.compoundRules.length;l<f;l++){var _=s.compoundRules[l],S="";for(u=0,d=_.length;u<d;u++){var C=_[u];C in s.compoundRuleCodes?S+="("+s.compoundRuleCodes[C].join("|")+")":S+=C}s.compoundRules[l]=new RegExp(S,"i")}s.loaded=!0,o.asyncLoad&&o.loadedCallback&&o.loadedCallback(s)}return this},e.prototype={load:function(n){for(var i in n)n.hasOwnProperty(i)&&(this[i]=n[i]);return this},_readFile:function(n,i,r){if(i=i||"utf8",typeof XMLHttpRequest<"u"){var o,s=new XMLHttpRequest;return s.open("GET",n,r),r&&(o=new Promise(function(l,u){s.onload=function(){s.status===200?l(s.responseText):u(s.statusText)},s.onerror=function(){u(s.statusText)}})),s.overrideMimeType&&s.overrideMimeType("text/plain; charset="+i),s.send(null),r?o:s.responseText}else if(typeof yY<"u"){var a=ig;try{if(a.existsSync(n))return a.readFileSync(n,i);console.log("Path "+n+" does not exist.")}catch(l){return console.log(l),""}}},_parseAFF:function(n){var i={},r,o,s,a,l,u,f,d,h=n.split(/\r?\n/);for(l=0,f=h.length;l<f;l++)if(r=this._removeAffixComments(h[l]),r=r.trim(),!!r){var g=r.split(/\s+/),m=g[0];if(m=="PFX"||m=="SFX"){var y=g[1],x=g[2];s=parseInt(g[3],10);var _=[];for(u=l+1,d=l+1+s;u<d;u++){o=h[u],a=o.split(/\s+/);var S=a[2],C=a[3].split("/"),E=C[0];E==="0"&&(E="");var N=this.parseRuleCodes(C[1]),M=a[4],I={};I.add=E,N.length>0&&(I.continuationClasses=N),M!=="."&&(m==="SFX"?I.match=new RegExp(M+"$"):I.match=new RegExp("^"+M)),S!="0"&&(m==="SFX"?I.remove=new RegExp(S+"$"):I.remove=S),_.push(I)}i[y]={type:m,combineable:x=="Y",entries:_},l+=s}else if(m==="COMPOUNDRULE"){for(s=parseInt(g[1],10),u=l+1,d=l+1+s;u<d;u++)r=h[u],a=r.split(/\s+/),this.compoundRules.push(a[1]);l+=s}else m==="REP"?(a=r.split(/\s+/),a.length===3&&this.replacementTable.push([a[1],a[2]])):this.flags[m]=g[1]}return i},_removeAffixComments:function(n){return n.match(/^\s*#/,"")?"":n},_parseDIC:function(n){n=this._removeDicComments(n);var i=n.split(/\r?\n/),r={};function o(R,Q){r.hasOwnProperty(R)||(r[R]=null),Q.length>0&&(r[R]===null&&(r[R]=[]),r[R].push(Q))}for(var s=1,a=i.length;s<a;s++){var l=i[s];if(l){var u=l.split("/",2),f=u[0];if(u.length>1){var d=this.parseRuleCodes(u[1]);(!("NEEDAFFIX"in this.flags)||d.indexOf(this.flags.NEEDAFFIX)==-1)&&o(f,d);for(var h=0,g=d.length;h<g;h++){var m=d[h],y=this.rules[m];if(y)for(var x=this._applyRule(f,y),_=0,S=x.length;_<S;_++){var C=x[_];if(o(C,[]),y.combineable)for(var E=h+1;E<g;E++){var N=d[E],M=this.rules[N];if(M&&M.combineable&&y.type!=M.type)for(var I=this._applyRule(C,M),W=0,B=I.length;W<B;W++){var Z=I[W];o(Z,[])}}}m in this.compoundRuleCodes&&this.compoundRuleCodes[m].push(f)}}else o(f.trim(),[])}}return r},_removeDicComments:function(n){return n=n.replace(/^\t.*$/mg,""),n},parseRuleCodes:function(n){if(n)if("FLAG"in this.flags)if(this.flags.FLAG==="long"){for(var i=[],r=0,o=n.length;r<o;r+=2)i.push(n.substr(r,2));return i}else return this.flags.FLAG==="num"?n.split(","):this.flags.FLAG==="UTF-8"?Array.from(n):n.split("");else return n.split("");else return[]},_applyRule:function(n,i){for(var r=i.entries,o=[],s=0,a=r.length;s<a;s++){var l=r[s];if(!l.match||n.match(l.match)){var u=n;if(l.remove&&(u=u.replace(l.remove,"")),i.type==="SFX"?u=u+l.add:u=l.add+u,o.push(u),"continuationClasses"in l)for(var f=0,d=l.continuationClasses.length;f<d;f++){var h=this.rules[l.continuationClasses[f]];h&&(o=o.concat(this._applyRule(u,h)))}}}return o},check:function(n){if(!this.loaded)throw"Dictionary not loaded.";var i=n.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(i))return!0;if(i.toUpperCase()===i){var r=i[0]+i.substring(1).toLowerCase();if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r)||this.checkExact(i.toLowerCase()))return!0}var o=i[0].toLowerCase()+i.substring(1);if(o!==i){if(this.hasFlag(o,"KEEPCASE"))return!1;if(this.checkExact(o))return!0}return!1},checkExact:function(n){if(!this.loaded)throw"Dictionary not loaded.";var i=this.dictionaryTable[n],r,o;if(typeof i>"u"){if("COMPOUNDMIN"in this.flags&&n.length>=this.flags.COMPOUNDMIN){for(r=0,o=this.compoundRules.length;r<o;r++)if(n.match(this.compoundRules[r]))return!0}}else{if(i===null)return!0;if(typeof i=="object"){for(r=0,o=i.length;r<o;r++)if(!this.hasFlag(n,"ONLYINCOMPOUND",i[r]))return!0}}return!1},hasFlag:function(n,i,r){if(!this.loaded)throw"Dictionary not loaded.";return!!(i in this.flags&&(typeof r>"u"&&(r=Array.prototype.concat.apply([],this.dictionaryTable[n])),r&&r.indexOf(this.flags[i])!==-1))},alphabet:"",suggest:function(n,i){if(!this.loaded)throw"Dictionary not loaded.";if(i=i||5,this.memoized.hasOwnProperty(n)){var r=this.memoized[n].limit;if(i<=r||this.memoized[n].suggestions.length<r)return this.memoized[n].suggestions.slice(0,i)}if(this.check(n))return[];for(var o=0,s=this.replacementTable.length;o<s;o++){var a=this.replacementTable[o];if(n.indexOf(a[0])!==-1){var l=n.replace(a[0],a[1]);if(this.check(l))return[l]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags.TRY),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags.WORDCHARS);var u=this.alphabet.split("");u.sort();for(var f={},o=0;o<u.length;o++)f[u[o]]=!0;this.alphabet="";for(var o in f)this.alphabet+=o}var d=this;function h(m,y){var x={},_,S,C,E,N=d.alphabet.length;if(typeof m=="string"){var M=m;m={},m[M]=!0}for(var M in m)for(_=0,C=M.length+1;_<C;_++){var I=[M.substring(0,_),M.substring(_)];if(I[1]&&(E=I[0]+I[1].substring(1),(!y||d.check(E))&&(E in x?x[E]+=1:x[E]=1)),I[1].length>1&&I[1][1]!==I[1][0]&&(E=I[0]+I[1][1]+I[1][0]+I[1].substring(2),(!y||d.check(E))&&(E in x?x[E]+=1:x[E]=1)),I[1]){var W=I[1].substring(0,1).toUpperCase()===I[1].substring(0,1)?"uppercase":"lowercase";for(S=0;S<N;S++){var B=d.alphabet[S];W==="uppercase"&&(B=B.toUpperCase()),B!=I[1].substring(0,1)&&(E=I[0]+B+I[1].substring(1),(!y||d.check(E))&&(E in x?x[E]+=1:x[E]=1))}}if(I[1])for(S=0;S<N;S++){var W=I[0].substring(-1).toUpperCase()===I[0].substring(-1)&&I[1].substring(0,1).toUpperCase()===I[1].substring(0,1)?"uppercase":"lowercase",B=d.alphabet[S];W==="uppercase"&&(B=B.toUpperCase()),E=I[0]+B+I[1],(!y||d.check(E))&&(E in x?x[E]+=1:x[E]=1)}}return x}function g(m){var y=h(m),x=h(y,!0),_=x;for(var S in y)d.check(S)&&(S in _?_[S]+=y[S]:_[S]=y[S]);var C,E=[];for(C in _)_.hasOwnProperty(C)&&E.push([C,_[C]]);function N(B,Z){var R=B[1],Q=Z[1];return R<Q?-1:R>Q?1:Z[0].localeCompare(B[0])}E.sort(N).reverse();var M=[],I="lowercase";m.toUpperCase()===m?I="uppercase":m.substr(0,1).toUpperCase()+m.substr(1).toLowerCase()===m&&(I="capitalized");var W=i;for(C=0;C<Math.min(W,E.length);C++)I==="uppercase"?E[C][0]=E[C][0].toUpperCase():I==="capitalized"&&(E[C][0]=E[C][0].substr(0,1).toUpperCase()+E[C][0].substr(1)),!d.hasFlag(E[C][0],"NOSUGGEST")&&M.indexOf(E[C][0])==-1?M.push(E[C][0]):W++;return M}return this.memoized[n]={suggestions:g(n),limit:i},this.memoized[n].suggestions}}})(),t.exports=e})(CY);var ADe=CY.exports,EY=ADe;function wn(t){if(t=t||{},typeof t.codeMirrorInstance!="function"||typeof t.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),t.codeMirrorInstance.defineMode("spell-checker",function(e){if(!wn.aff_loading){wn.aff_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),n.onload=function(){n.readyState===4&&n.status===200&&(wn.aff_data=n.responseText,wn.num_loaded++,wn.num_loaded==2&&(wn.typo=new EY("en_US",wn.aff_data,wn.dic_data,{platform:"any"})))},n.send(null)}if(!wn.dic_loading){wn.dic_loading=!0;var i=new XMLHttpRequest;i.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),i.onload=function(){i.readyState===4&&i.status===200&&(wn.dic_data=i.responseText,wn.num_loaded++,wn.num_loaded==2&&(wn.typo=new EY("en_US",wn.aff_data,wn.dic_data,{platform:"any"})))},i.send(null)}var r='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',o={token:function(a){var l=a.peek(),u="";if(r.includes(l))return a.next(),null;for(;(l=a.peek())!=null&&!r.includes(l);)u+=l,a.next();return wn.typo&&!wn.typo.check(u)?"spell-error":null}},s=t.codeMirrorInstance.getMode(e,e.backdrop||"text/plain");return t.codeMirrorInstance.overlayMode(s,o,!0)})}wn.num_loaded=0,wn.aff_loading=!1,wn.dic_loading=!1,wn.aff_data="",wn.dic_data="",wn.typo;var PDe=wn,TY=Ws,DDe=PDe,CE=navigator.userAgent,$Y=navigator.platform,IDe=/Edge\/(\d+)/.exec(CE),LDe=!IDe&&/AppleWebKit/.test(CE)&&/Mobile\/\w+/.test(CE),EE=LDe||/Mac/.test($Y),RDe=/win/i.test($Y),fx={toggleBold:dx,toggleItalic:hx,drawLink:Ox,toggleHeadingSmaller:U0,toggleHeadingBigger:vx,drawImage:Sx,toggleBlockquote:mx,toggleOrderedList:xx,toggleUnorderedList:wx,toggleCodeBlock:gx,togglePreview:Mx,toggleStrikethrough:px,toggleHeading1:bx,toggleHeading2:kx,toggleHeading3:yx,cleanBlock:_x,drawTable:Cx,drawHorizontalRule:Ex,undo:Tx,redo:$x,toggleSideBySide:zh,toggleFullScreen:gf},jDe={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},FDe=function(t){for(var e in fx)if(fx[e]===t)return e;return null},zDe=function(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t};function MY(t){return EE?t=t.replace("Ctrl","Cmd"):t=t.replace("Cmd","Ctrl"),t}function BDe(t,e,n){t=t||{};var i=document.createElement("a");return e=e??!0,t.title&&e&&(i.title=HDe(t.title,t.action,n),EE&&!t.useCtrlOnMac&&(i.title=i.title.replace("Ctrl","⌘")),EE&&(i.title=i.title.replace("Alt","⌥"))),i.tabIndex=-1,i.className=t.className,i}function WDe(){var t=document.createElement("i");return t.className="separator",t.innerHTML="|",t}function HDe(t,e,n){var i,r=t;return e&&(i=FDe(e),n[i]&&(r+=" ("+MY(n[i])+")")),r}function Wu(t,e){e=e||t.getCursor("start");var n=t.getTokenAt(e);if(!n.type)return{};for(var i=n.type.split(" "),r={},o,s,a=0;a<i.length;a++)o=i[a],o==="strong"?r.bold=!0:o==="variable-2"?(s=t.getLine(e.line),/^\s*\d+\.\s/.test(s)?r["ordered-list"]=!0:r["unordered-list"]=!0):o==="atom"?r.quote=!0:o==="em"?r.italic=!0:o==="quote"?r.quote=!0:o==="strikethrough"?r.strikethrough=!0:o==="comment"?r.code=!0:o==="link"?r.link=!0:o==="tag"?r.image=!0:o.match(/^header(\-[1-6])?$/)&&(r[o.replace("header","heading")]=!0);return r}var NY="";function gf(t){var e=t.codemirror;e.setOption("fullScreen",!e.getOption("fullScreen")),e.getOption("fullScreen")?(NY=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=NY;var n=e.getWrapperElement();/fullscreen/.test(n.previousSibling.className)?n.previousSibling.className=n.previousSibling.className.replace(/\s*fullscreen\b/,""):n.previousSibling.className+=" fullscreen";var i=t.toolbarElements.fullscreen;/active/.test(i.className)?i.className=i.className.replace(/\s*active\s*/g,""):i.className+=" active";var r=e.getWrapperElement().nextSibling;/editor-preview-active-side/.test(r.className)&&zh(t)}function dx(t){$E(t,"bold",t.options.blockStyles.bold)}function hx(t){$E(t,"italic",t.options.blockStyles.italic)}function px(t){$E(t,"strikethrough","~~")}function gx(t){var e=t.options.blockStyles.code;function n(H){if(typeof H!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text). Got: "+typeof H+": "+H;return H.styles&&H.styles[2]&&H.styles[2].indexOf("formatting-code-block")!==-1}function i(H){return H.state.base.base||H.state.base}function r(H,j,q,Y,K){q=q||H.getLineHandle(j),Y=Y||H.getTokenAt({line:j,ch:1}),K=K||!!q.text&&H.getTokenAt({line:j,ch:q.text.length-1});var te=Y.type?Y.type.split(" "):[];return K&&i(K).indentedCode?"indented":te.indexOf("comment")===-1?!1:i(Y).fencedChars||i(K).fencedChars||n(q)?"fenced":"single"}function o(H,j,q,Y){var K=j.line+1,te=q.line+1,oe=j.line!==q.line,ce=Y+`
|
||
`,U=`
|
||
`+Y;oe&&te++,oe&&q.ch===0&&(U=Y+`
|
||
`,te--),Bh(H,!1,[ce,U]),H.setSelection({line:K,ch:0},{line:te,ch:0})}var s=t.codemirror,a=s.getCursor("start"),l=s.getCursor("end"),u=s.getTokenAt({line:a.line,ch:a.ch||1}),f=s.getLineHandle(a.line),d=r(s,a.line,f,u),h,g,m;if(d==="single"){var y=f.text.slice(0,a.ch).replace("`",""),x=f.text.slice(a.ch).replace("`","");s.replaceRange(y+x,{line:a.line,ch:0},{line:a.line,ch:99999999999999}),a.ch--,a!==l&&l.ch--,s.setSelection(a,l),s.focus()}else if(d==="fenced")if(a.line!==l.line||a.ch!==l.ch){for(h=a.line;h>=0&&(f=s.getLineHandle(h),!n(f));h--);var _=s.getTokenAt({line:h,ch:1}),S=i(_).fencedChars,C,E,N,M;n(s.getLineHandle(a.line))?(C="",E=a.line):n(s.getLineHandle(a.line-1))?(C="",E=a.line-1):(C=S+`
|
||
`,E=a.line),n(s.getLineHandle(l.line))?(N="",M=l.line,l.ch===0&&(M+=1)):l.ch!==0&&n(s.getLineHandle(l.line+1))?(N="",M=l.line+1):(N=S+`
|
||
`,M=l.line+1),l.ch===0&&(M-=1),s.operation(function(){s.replaceRange(N,{line:M,ch:0},{line:M+(N?0:1),ch:0}),s.replaceRange(C,{line:E,ch:0},{line:E+(C?0:1),ch:0})}),s.setSelection({line:E+(C?1:0),ch:0},{line:M+(C?1:-1),ch:0}),s.focus()}else{var I=a.line;if(n(s.getLineHandle(a.line))&&(r(s,a.line+1)==="fenced"?(h=a.line,I=a.line+1):(g=a.line,I=a.line-1)),h===void 0)for(h=I;h>=0&&(f=s.getLineHandle(h),!n(f));h--);if(g===void 0)for(m=s.lineCount(),g=I;g<m&&(f=s.getLineHandle(g),!n(f));g++);s.operation(function(){s.replaceRange("",{line:h,ch:0},{line:h+1,ch:0}),s.replaceRange("",{line:g-1,ch:0},{line:g,ch:0})}),s.focus()}else if(d==="indented"){if(a.line!==l.line||a.ch!==l.ch)h=a.line,g=l.line,l.ch===0&&g--;else{for(h=a.line;h>=0;h--)if(f=s.getLineHandle(h),!f.text.match(/^\s*$/)&&r(s,h,f)!=="indented"){h+=1;break}for(m=s.lineCount(),g=a.line;g<m;g++)if(f=s.getLineHandle(g),!f.text.match(/^\s*$/)&&r(s,g,f)!=="indented"){g-=1;break}}var W=s.getLineHandle(g+1),B=W&&s.getTokenAt({line:g+1,ch:W.text.length-1}),Z=B&&i(B).indentedCode;Z&&s.replaceRange(`
|
||
`,{line:g+1,ch:0});for(var R=h;R<=g;R++)s.indentLine(R,"subtract");s.focus()}else{var Q=a.line===l.line&&a.ch===l.ch&&a.ch===0,V=a.line!==l.line;Q||V?o(s,a,l,e):Bh(s,!1,["`","`"])}}function mx(t){var e=t.codemirror;TE(e,"quote")}function U0(t){var e=t.codemirror;Z0(e,"smaller")}function vx(t){var e=t.codemirror;Z0(e,"bigger")}function bx(t){var e=t.codemirror;Z0(e,void 0,1)}function kx(t){var e=t.codemirror;Z0(e,void 0,2)}function yx(t){var e=t.codemirror;Z0(e,void 0,3)}function wx(t){var e=t.codemirror;TE(e,"unordered-list")}function xx(t){var e=t.codemirror;TE(e,"ordered-list")}function _x(t){var e=t.codemirror;QDe(e)}function Ox(t){var e=t.codemirror,n=Wu(e),i=t.options,r="http://";if(i.promptURLs&&(r=prompt(i.promptTexts.link),!r))return!1;Bh(e,n.link,i.insertTexts.link,r)}function Sx(t){var e=t.codemirror,n=Wu(e),i=t.options,r="http://";if(i.promptURLs&&(r=prompt(i.promptTexts.image),!r))return!1;Bh(e,n.image,i.insertTexts.image,r)}function Cx(t){var e=t.codemirror,n=Wu(e),i=t.options;Bh(e,n.table,i.insertTexts.table)}function Ex(t){var e=t.codemirror,n=Wu(e),i=t.options;Bh(e,n.image,i.insertTexts.horizontalRule)}function Tx(t){var e=t.codemirror;e.undo(),e.focus()}function $x(t){var e=t.codemirror;e.redo(),e.focus()}function zh(t){var e=t.codemirror,n=e.getWrapperElement(),i=n.nextSibling,r=t.toolbarElements["side-by-side"],o=!1;/editor-preview-active-side/.test(i.className)?(i.className=i.className.replace(/\s*editor-preview-active-side\s*/g,""),r.className=r.className.replace(/\s*active\s*/g,""),n.className=n.className.replace(/\s*CodeMirror-sided\s*/g," ")):(setTimeout(function(){e.getOption("fullScreen")||gf(t),i.className+=" editor-preview-active-side"},1),r.className+=" active",n.className+=" CodeMirror-sided",o=!0);var s=n.lastChild;if(/editor-preview-active/.test(s.className)){s.className=s.className.replace(/\s*editor-preview-active\s*/g,"");var a=t.toolbarElements.preview,l=n.previousSibling;a.className=a.className.replace(/\s*active\s*/g,""),l.className=l.className.replace(/\s*disabled-for-preview*/g,"")}var u=function(){i.innerHTML=t.options.previewRender(t.value(),i)};e.sideBySideRenderingFunction||(e.sideBySideRenderingFunction=u),o?(i.innerHTML=t.options.previewRender(t.value(),i),e.on("update",e.sideBySideRenderingFunction)):e.off("update",e.sideBySideRenderingFunction),e.refresh()}function Mx(t){var e=t.codemirror,n=e.getWrapperElement(),i=n.previousSibling,r=t.options.toolbar?t.toolbarElements.preview:!1,o=n.lastChild;(!o||!/editor-preview/.test(o.className))&&(o=document.createElement("div"),o.className="editor-preview",n.appendChild(o)),/editor-preview-active/.test(o.className)?(o.className=o.className.replace(/\s*editor-preview-active\s*/g,""),r&&(r.className=r.className.replace(/\s*active\s*/g,""),i.className=i.className.replace(/\s*disabled-for-preview*/g,""))):(setTimeout(function(){o.className+=" editor-preview-active"},1),r&&(r.className+=" active",i.className+=" disabled-for-preview")),o.innerHTML=t.options.previewRender(t.value(),o);var s=e.getWrapperElement().nextSibling;/editor-preview-active-side/.test(s.className)&&zh(t)}function Bh(t,e,n,i){if(!/editor-preview-active/.test(t.getWrapperElement().lastChild.className)){var r,o=n[0],s=n[1],a=t.getCursor("start"),l=t.getCursor("end");i&&(s=s.replace("#url#",i)),e?(r=t.getLine(a.line),o=r.slice(0,a.ch),s=r.slice(a.ch),t.replaceRange(o+s,{line:a.line,ch:0})):(r=t.getSelection(),t.replaceSelection(o+r+s),a.ch+=o.length,a!==l&&(l.ch+=o.length)),t.setSelection(a,l),t.focus()}}function Z0(t,e,n){if(!/editor-preview-active/.test(t.getWrapperElement().lastChild.className)){for(var i=t.getCursor("start"),r=t.getCursor("end"),o=i.line;o<=r.line;o++)(function(s){var a=t.getLine(s),l=a.search(/[^#]/);e!==void 0?l<=0?e=="bigger"?a="###### "+a:a="# "+a:l==6&&e=="smaller"?a=a.substr(7):l==1&&e=="bigger"?a=a.substr(2):e=="bigger"?a=a.substr(1):a="#"+a:n==1?l<=0?a="# "+a:l==n?a=a.substr(l+1):a="# "+a.substr(l+1):n==2?l<=0?a="## "+a:l==n?a=a.substr(l+1):a="## "+a.substr(l+1):l<=0?a="### "+a:l==n?a=a.substr(l+1):a="### "+a.substr(l+1),t.replaceRange(a,{line:s,ch:0},{line:s,ch:99999999999999})})(o);t.focus()}}function TE(t,e){if(!/editor-preview-active/.test(t.getWrapperElement().lastChild.className)){for(var n=Wu(t),i=t.getCursor("start"),r=t.getCursor("end"),o={quote:/^(\s*)\>\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},s={quote:"> ","unordered-list":"* ","ordered-list":"1. "},a=i.line;a<=r.line;a++)(function(l){var u=t.getLine(l);n[e]?u=u.replace(o[e],"$1"):u=s[e]+u,t.replaceRange(u,{line:l,ch:0},{line:l,ch:99999999999999})})(a);t.focus()}}function $E(t,e,n,i){if(!/editor-preview-active/.test(t.codemirror.getWrapperElement().lastChild.className)){i=typeof i>"u"?n:i;var r=t.codemirror,o=Wu(r),s,a=n,l=i,u=r.getCursor("start"),f=r.getCursor("end");o[e]?(s=r.getLine(u.line),a=s.slice(0,u.ch),l=s.slice(u.ch),e=="bold"?(a=a.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):e=="italic"?(a=a.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):e=="strikethrough"&&(a=a.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),r.replaceRange(a+l,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),e=="bold"||e=="strikethrough"?(u.ch-=2,u!==f&&(f.ch-=2)):e=="italic"&&(u.ch-=1,u!==f&&(f.ch-=1))):(s=r.getSelection(),e=="bold"?(s=s.split("**").join(""),s=s.split("__").join("")):e=="italic"?(s=s.split("*").join(""),s=s.split("_").join("")):e=="strikethrough"&&(s=s.split("~~").join("")),r.replaceSelection(a+s+l),u.ch+=n.length,f.ch=u.ch+s.length),r.setSelection(u,f),r.focus()}}function QDe(t){if(!/editor-preview-active/.test(t.getWrapperElement().lastChild.className))for(var e=t.getCursor("start"),n=t.getCursor("end"),i,r=e.line;r<=n.line;r++)i=t.getLine(r),i=i.replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/,""),t.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})}function AY(t,e){for(var n in e)e.hasOwnProperty(n)&&(e[n]instanceof Array?t[n]=e[n].concat(t[n]instanceof Array?t[n]:[]):e[n]!==null&&typeof e[n]=="object"&&e[n].constructor===Object?t[n]=AY(t[n]||{},e[n]):t[n]=e[n]);return t}function Nx(t){for(var e=1;e<arguments.length;e++)t=AY(t,arguments[e]);return t}function PY(t){var e=/[a-zA-Z0-9_\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=t.match(e),i=0;if(n===null)return i;for(var r=0;r<n.length;r++)n[r].charCodeAt(0)>=19968?i+=n[r].length:i+=1;return i}var q0={bold:{name:"bold",action:dx,className:"fa fa-bold",title:"Bold",default:!0},italic:{name:"italic",action:hx,className:"fa fa-italic",title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:px,className:"fa fa-strikethrough",title:"Strikethrough"},heading:{name:"heading",action:U0,className:"fa fa-header",title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:U0,className:"fa fa-header fa-header-x fa-header-smaller",title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:vx,className:"fa fa-header fa-header-x fa-header-bigger",title:"Bigger Heading"},"heading-1":{name:"heading-1",action:bx,className:"fa fa-header fa-header-x fa-header-1",title:"Big Heading"},"heading-2":{name:"heading-2",action:kx,className:"fa fa-header fa-header-x fa-header-2",title:"Medium Heading"},"heading-3":{name:"heading-3",action:yx,className:"fa fa-header fa-header-x fa-header-3",title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:gx,className:"fa fa-code",title:"Code"},quote:{name:"quote",action:mx,className:"fa fa-quote-left",title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:wx,className:"fa fa-list-ul",title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:xx,className:"fa fa-list-ol",title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:_x,className:"fa fa-eraser fa-clean-block",title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:Ox,className:"fa fa-link",title:"Create Link",default:!0},image:{name:"image",action:Sx,className:"fa fa-picture-o",title:"Insert Image",default:!0},table:{name:"table",action:Cx,className:"fa fa-table",title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:Ex,className:"fa fa-minus",title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:Mx,className:"fa fa-eye no-disable",title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:zh,className:"fa fa-columns no-disable no-mobile",title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:gf,className:"fa fa-arrows-alt no-disable no-mobile",title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:Tx,className:"fa fa-undo no-disable",title:"Undo"},redo:{name:"redo",action:$x,className:"fa fa-repeat no-disable",title:"Redo"}},UDe={link:["[","](#url#)"],image:[""],table:["",`
|
||
|
||
| Column 1 | Column 2 | Column 3 |
|
||
| -------- | -------- | -------- |
|
||
| Text | Text | Text |
|
||
|
||
`],horizontalRule:["",`
|
||
|
||
-----
|
||
|
||
`]},ZDe={link:"URL for the link:",image:"URL of the image:"},qDe={bold:"**",code:"```",italic:"*"};function Ke(t){t=t||{},t.parent=this;var e=!0;if(t.autoDownloadFontAwesome===!1&&(e=!1),t.autoDownloadFontAwesome!==!0)for(var n=document.styleSheets,i=0;i<n.length;i++)n[i].href&&n[i].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(e=!1);if(e){var r=document.createElement("link");r.rel="stylesheet",r.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(r)}if(t.element)this.element=t.element;else if(t.element===null){console.log("SimpleMDE: Error. No element was found.");return}if(t.toolbar===void 0){t.toolbar=[];for(var o in q0)q0.hasOwnProperty(o)&&(o.indexOf("separator-")!=-1&&t.toolbar.push("|"),(q0[o].default===!0||t.showIcons&&t.showIcons.constructor===Array&&t.showIcons.indexOf(o)!=-1)&&t.toolbar.push(o))}t.hasOwnProperty("status")||(t.status=["autosave","lines","words","cursor"]),t.previewRender||(t.previewRender=function(s){return this.parent.markdown(s)}),t.parsingConfig=Nx({highlightFormatting:!0},t.parsingConfig||{}),t.insertTexts=Nx({},UDe,t.insertTexts||{}),t.promptTexts=ZDe,t.blockStyles=Nx({},qDe,t.blockStyles||{}),t.shortcuts=Nx({},jDe,t.shortcuts||{}),t.autosave!=null&&t.autosave.unique_id!=null&&t.autosave.unique_id!=""&&(t.autosave.uniqueId=t.autosave.unique_id),this.options=t,this.render(),t.initialValue&&(!this.options.autosave||this.options.autosave.foundSavedValue!==!0)&&this.value(t.initialValue)}Ke.prototype.markdown=function(t){},Ke.prototype.render=function(t){if(t||(t=this.element||document.getElementsByTagName("textarea")[0]),!(this._rendered&&this._rendered===t)){this.element=t;var e=this.options,n=this,i={};for(var r in e.shortcuts)e.shortcuts[r]!==null&&fx[r]!==null&&function(u){i[MY(e.shortcuts[u])]=function(){fx[u](n)}}(r);i.Enter="newlineAndIndentContinueMarkdownList",i.Tab="tabAndIndentMarkdownList",i["Shift-Tab"]="shiftTabAndUnindentMarkdownList",i.Esc=function(u){u.getOption("fullScreen")&&gf(n)},RDe&&(i.Home="goLineLeftSmart",i.End="goLineRight"),document.addEventListener("keydown",function(u){u=u||window.event,u.keyCode==27&&n.codemirror.getOption("fullScreen")&&gf(n)},!1);var o,s;if(e.spellChecker!==!1?(o="spell-checker",s=e.parsingConfig,s.name="gfm",s.gitHubSpice=!1,DDe({codeMirrorInstance:TY})):(o=e.parsingConfig,o.name="gfm",o.gitHubSpice=!1),this.codemirror=TY.fromTextArea(t,{mode:o,backdrop:s,theme:"paper",tabSize:e.tabSize!=null?e.tabSize:2,indentUnit:e.tabSize!=null?e.tabSize:2,indentWithTabs:e.indentWithTabs!==!1,lineNumbers:!1,autofocus:e.autofocus===!0,extraKeys:i,lineWrapping:e.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:e.placeholder||t.getAttribute("placeholder")||"",styleSelectedText:e.styleSelectedText!=null?e.styleSelectedText:!0}),e.forceSync===!0){var a=this.codemirror;a.on("change",function(){a.save()})}this.gui={},e.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),e.status!==!1&&(this.gui.statusbar=this.createStatusbar()),e.autosave!=null&&e.autosave.enabled===!0&&this.autosave(),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element;var l=this.codemirror;setTimeout((function(){l.refresh()}).bind(l),0)}};function DY(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}Ke.prototype.autosave=function(){if(DY()){var t=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("SimpleMDE: You must set a uniqueId to use the autosave feature");return}t.element.form!=null&&t.element.form!=null&&t.element.form.addEventListener("submit",function(){localStorage.removeItem("smde_"+t.options.autosave.uniqueId)}),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0),localStorage.setItem("smde_"+this.options.autosave.uniqueId,t.value());var e=document.getElementById("autosaved");if(e!=null&&e!=null&&e!=""){var n=new Date,i=n.getHours(),r=n.getMinutes(),o="am",s=i;s>=12&&(s=i-12,o="pm"),s==0&&(s=12),r=r<10?"0"+r:r,e.innerHTML="Autosaved: "+s+":"+r+" "+o}this.autosaveTimeoutId=setTimeout(function(){t.autosave()},this.options.autosave.delay||1e4)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},Ke.prototype.clearAutosavedValue=function(){if(DY()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("SimpleMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},Ke.prototype.createSideBySide=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.nextSibling;(!n||!/editor-preview-side/.test(n.className))&&(n=document.createElement("div"),n.className="editor-preview-side",e.parentNode.insertBefore(n,e.nextSibling));var i=!1,r=!1;return t.on("scroll",function(o){if(i){i=!1;return}r=!0;var s=o.getScrollInfo().height-o.getScrollInfo().clientHeight,a=parseFloat(o.getScrollInfo().top)/s,l=(n.scrollHeight-n.clientHeight)*a;n.scrollTop=l}),n.onscroll=function(){if(r){r=!1;return}i=!0;var o=n.scrollHeight-n.clientHeight,s=parseFloat(n.scrollTop)/o,a=(t.getScrollInfo().height-t.getScrollInfo().clientHeight)*s;t.scrollTo(0,a)},n},Ke.prototype.createToolbar=function(t){if(t=t||this.options.toolbar,!(!t||t.length===0)){var e;for(e=0;e<t.length;e++)q0[t[e]]!=null&&(t[e]=q0[t[e]]);var n=document.createElement("div");n.className="editor-toolbar";var i=this,r={};for(i.toolbar=t,e=0;e<t.length;e++)if(!(t[e].name=="guide"&&i.options.toolbarGuideIcon===!1)&&!(i.options.hideIcons&&i.options.hideIcons.indexOf(t[e].name)!=-1)&&!((t[e].name=="fullscreen"||t[e].name=="side-by-side")&&zDe())){if(t[e]==="|"){for(var o=!1,s=e+1;s<t.length;s++)t[s]!=="|"&&(!i.options.hideIcons||i.options.hideIcons.indexOf(t[s].name)==-1)&&(o=!0);if(!o)continue}(function(u){var f;u==="|"?f=WDe():f=BDe(u,i.options.toolbarTips,i.options.shortcuts),u.action&&(typeof u.action=="function"?f.onclick=function(d){d.preventDefault(),u.action(i)}:typeof u.action=="string"&&(f.href=u.action,f.target="_blank")),r[u.name||u]=f,n.appendChild(f)})(t[e])}i.toolbarElements=r;var a=this.codemirror;a.on("cursorActivity",function(){var u=Wu(a);for(var f in r)(function(d){var h=r[d];u[d]?h.className+=" active":d!="fullscreen"&&d!="side-by-side"&&d!="spellcheck"&&d!="hemmingway"&&(h.className=h.className.replace(/\s*active\s*/g,""))})(f)});var l=a.getWrapperElement();return l.parentNode.append(n),n}},Ke.prototype.createStatusbar=function(t){t=t||this.options.status;var e=this.options,n=this.codemirror;if(!(!t||t.length===0)){var i=[],r,o,s;for(r=0;r<t.length;r++)if(o=void 0,s=void 0,typeof t[r]=="object")i.push({className:t[r].className,defaultValue:t[r].defaultValue,onUpdate:t[r].onUpdate});else{var a=t[r];a==="words"?(s=function(h){h.innerHTML=PY(n.getValue())},o=function(h){h.innerHTML=PY(n.getValue())}):a==="lines"?(s=function(h){h.innerHTML=n.lineCount()},o=function(h){h.innerHTML=n.lineCount()}):a==="cursor"?(s=function(h){h.innerHTML="0:0"},o=function(h){var g=n.getCursor();h.innerHTML=g.line+":"+g.ch}):a==="autosave"&&(s=function(h){e.autosave!=null&&e.autosave.enabled===!0&&h.setAttribute("id","autosaved")}),i.push({className:a,defaultValue:s,onUpdate:o})}var l=document.createElement("div");for(l.className="editor-statusbar",r=0;r<i.length;r++){var u=i[r],f=document.createElement("span");f.className=u.className,typeof u.defaultValue=="function"&&u.defaultValue(f),typeof u.onUpdate=="function"&&this.codemirror.on("update",function(h,g){return function(){g.onUpdate(h)}}(f,u)),l.appendChild(f)}var d=this.codemirror.getWrapperElement();return d.parentNode.insertBefore(l,d.nextSibling),l}},Ke.prototype.value=function(t){return t===void 0?this.codemirror.getValue():(this.codemirror.getDoc().setValue(t),this)},Ke.toggleBold=dx,Ke.toggleItalic=hx,Ke.toggleStrikethrough=px,Ke.toggleBlockquote=mx,Ke.toggleHeadingSmaller=U0,Ke.toggleHeadingBigger=vx,Ke.toggleHeading1=bx,Ke.toggleHeading2=kx,Ke.toggleHeading3=yx,Ke.toggleCodeBlock=gx,Ke.toggleUnorderedList=wx,Ke.toggleOrderedList=xx,Ke.cleanBlock=_x,Ke.drawLink=Ox,Ke.drawImage=Sx,Ke.drawTable=Cx,Ke.drawHorizontalRule=Ex,Ke.undo=Tx,Ke.redo=$x,Ke.togglePreview=Mx,Ke.toggleSideBySide=zh,Ke.toggleFullScreen=gf,Ke.prototype.toggleBold=function(){dx(this)},Ke.prototype.toggleItalic=function(){hx(this)},Ke.prototype.toggleStrikethrough=function(){px(this)},Ke.prototype.toggleBlockquote=function(){mx(this)},Ke.prototype.toggleHeadingSmaller=function(){U0(this)},Ke.prototype.toggleHeadingBigger=function(){vx(this)},Ke.prototype.toggleHeading1=function(){bx(this)},Ke.prototype.toggleHeading2=function(){kx(this)},Ke.prototype.toggleHeading3=function(){yx(this)},Ke.prototype.toggleCodeBlock=function(){gx(this)},Ke.prototype.toggleUnorderedList=function(){wx(this)},Ke.prototype.toggleOrderedList=function(){xx(this)},Ke.prototype.cleanBlock=function(){_x(this)},Ke.prototype.drawLink=function(){Ox(this)},Ke.prototype.drawImage=function(){Sx(this)},Ke.prototype.drawTable=function(){Cx(this)},Ke.prototype.drawHorizontalRule=function(){Ex(this)},Ke.prototype.undo=function(){Tx(this)},Ke.prototype.redo=function(){$x(this)},Ke.prototype.togglePreview=function(){Mx(this)},Ke.prototype.toggleSideBySide=function(){zh(this)},Ke.prototype.toggleFullScreen=function(){gf(this)},Ke.prototype.isPreviewActive=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.lastChild;return/editor-preview-active/.test(n.className)},Ke.prototype.isSideBySideActive=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.nextSibling;return/editor-preview-active-side/.test(n.className)},Ke.prototype.isFullscreenActive=function(){var t=this.codemirror;return t.getOption("fullScreen")},Ke.prototype.getState=function(){var t=this.codemirror;return Wu(t)},Ke.prototype.toTextArea=function(){var t=this.codemirror,e=t.getWrapperElement();e.parentNode&&(this.gui.toolbar&&e.parentNode.removeChild(this.gui.toolbar),this.gui.statusbar&&e.parentNode.removeChild(this.gui.statusbar),this.gui.sideBySide&&e.parentNode.removeChild(this.gui.sideBySide)),t.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())};var YDe=Ke;const VDe=xo(YDe),Ax=navigator.userAgent.indexOf("Mac")!==-1?"Cmd":"Ctrl";function XDe(t,e){const n=T.useRef(null),{progress:i,upload:r,errors:o,isLoading:s,filesNumber:a}=e("image"),l=async h=>{const g=h.target.files,m=await r(g);d(m)};function u(){n.current.click()}function f({src:h,alt:g,caption:m}){let y={alt:g,url:h,credit:`<small>${m}</small>`};d([y])}function d(h=[]){const g=t.current.codemirror;let y=h.map(x=>{if(typeof x=="string"){let _=x.split("/").pop(),S=_;return _.lastIndexOf(".")>0&&(S=_.slice(0,_.lastIndexOf("."))),``}else{let _=``;return x.credit&&(_+=`
|
||
${x.credit}`),_}}).join(`
|
||
|
||
`);t.current.codemirror.focus(),g.replaceSelection(y,"end")}return{openImageUploadDialog:u,uploadImages:l,insertUnsplashImage:f,imageInputRef:n,progress:i,errors:o,isLoading:s,filesNumber:a}}function GDe({markdown:t,updateMarkdown:e,imageUploader:n,unsplashConf:i,autofocus:r=!0,placeholder:o=""}){const s=T.useRef(null),a=T.useRef(null),[l,u]=T.useState(!1),[f,d]=T.useState(!1),{openImageUploadDialog:h,uploadImages:g,insertUnsplashImage:m,imageInputRef:y,progress:x,errors:_,isLoading:S,filesNumber:C}=XDe(a,n),E={openImageDialog:`${Ax}-Alt-I`,toggleSpellcheck:`${Ax}-Alt-S`,openUnsplashDialog:`${Ax}-Alt-O`};T.useLayoutEffect(()=>{a.current=new VDe({element:s.current,autofocus:r,indentWithTabs:!1,placeholder:o,tabSize:4,shortcuts:{toggleFullScreen:null,togglePreview:null,toggleSideBySide:null,drawImage:null,toggleStrikethrough:`${Ax}-Alt-U`},hideIcons:Z(),status:[],toolbar:["bold","italic","heading","|","quote","unordered-list","ordered-list","|","link",{name:"image",action:h,className:"fa fa-picture-o",title:`Upload Image(s) (${E.openImageDialog})`},{name:"unsplash",action:R,className:"fa fa-camera",title:`Add Image from Unsplash (${E.openUnsplashDialog})`},"|",{name:"spellcheck",action:M,className:"fa fa-check",title:`Spellcheck (${E.toggleSpellcheck})`},{name:"guide",action:W,className:"fa fa-question-circle",title:"Markdown Guide"}]});const H=a.current;return H.value(t??""),H.codemirror.on("change",(q,Y)=>{Y.origin!=="setValue"&&e(a.current.value())}),H.codemirror.setOption("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\xa0]/g),r&&H.codemirror.execCommand("goDocEnd"),H.codemirror.on("mousedown",(q,Y)=>{Y.stopPropagation()}),N(),a.current.codemirror.setOption("mode","gfm"),()=>{a.current.toTextArea()}},[]);function N(){const H=a.current.codemirror,j=H.getOption("extraKeys");j[E.toggleSpellcheck]=M,j[E.openImageDialog]=h,i&&(j[E.openUnsplashDialog]=R),H.setOption("extraKeys",j)}function M(){let H=a.current.codemirror;H.getOption("mode")==="spell-checker"?H.setOption("mode","gfm"):H.setOption("mode","spell-checker"),I(),H.focus()}function I(){let H=a.current.toolbarElements.spellcheck;H&&(a.current.codemirror.getOption("mode")==="spell-checker"?H.classList.add("active"):H.classList.remove("active"))}function W(){u(!0)}function B(){u(!1),a.current.codemirror.focus()}function Z(){let H=[];return i||H.push("unsplash"),H}function R(){d(!0)}function Q(){a.current.codemirror.focus(),d(!1)}function V(H){m(H),d(!1)}return k.jsxs("div",{className:"not-kg-prose",children:[k.jsx("textarea",{ref:s}),k.jsx(wDe,{isOpen:l,onClose:B}),k.jsx(ODe,{errors:_,filesNumber:C,inputRef:y,loading:S,progress:x,onChange:g}),f&&k.jsx(AH,{unsplashConf:i,onClose:Q,onImageInsert:V})]})}function IY({markdown:t="",updateMarkdown:e,isEditing:n,imageUploader:i,unsplashConf:r}){return k.jsx(k.Fragment,{children:n?k.jsx("div",{className:"markdown-editor",children:k.jsx(GDe,{imageUploader:i,markdown:t,unsplashConf:r,updateMarkdown:e})}):k.jsx(LY,{markdown:t})})}function LY({markdown:t}){const e=YW.render(t),n=Gy(e,{replaceJS:!0});return k.jsxs("div",{className:"relative",children:[k.jsx("div",{dangerouslySetInnerHTML:{__html:n},className:"whitespace-normal"}),k.jsx("div",{className:"absolute inset-0 z-50 mt-0"})]})}IY.propTypes={markdown:P.string,updateMarkdown:P.func,isEditing:P.bool,imageUploader:P.func,unsplashConf:P.object},LY.propTypes={markdown:P.string};function KDe({nodeKey:t,markdown:e}){const[n]=Oe.useLexicalComposerContext(),i=T.useContext(rn),{fileUploader:r,cardConfig:o}=T.useContext(ft),[s,a]=T.useState(!1),l=f=>{n.update(()=>{const d=A.$getNodeByKey(t);d.markdown=f})},u=f=>{f.preventDefault(),f.stopPropagation(),n.dispatchCommand(Lo,{cardKey:t,focusEditor:!1})};return k.jsxs(k.Fragment,{children:[k.jsx(IY,{imageUploader:r.useFileUpload,isEditing:i.isEditing,markdown:e,nodeKey:t,unsplashConf:o.unsplash,updateMarkdown:l}),k.jsx(xt,{"data-kg-card-toolbar":"markdown",isVisible:s,children:k.jsx(Kn,{onClose:()=>a(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"markdown",isVisible:e&&i.isSelected&&!i.isEditing&&!s,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:u}),k.jsx(Bn,{hide:!o.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!o.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>a(!0)})]})})]})}const RY=A.createCommand();class Px extends jg{getIcon(){return d_}decorate(){return k.jsx(An,{IndicatorIcon:kDe,nodeKey:this.getKey(),wrapperStyle:"wide",children:k.jsx(KDe,{markdown:this.__markdown,nodeKey:this.getKey()})})}}ye(Px,"kgMenu",{label:"Markdown",desc:"Insert a Markdown editor card",Icon:d_,insertCommand:RY,matches:["markdown","md"],priority:19,shortcut:"/md"});function JDe(t){return new Px(t)}function eIe(){return k.jsxs("div",{className:"flex h-3 items-center whitespace-pre text-center font-sans text-2xs font-semibold uppercase text-grey-500 before:mr-2 before:flex-1 before:border-t before:border-grey-300 before:content-[''] after:ml-2 after:flex-1 after:border-t after:border-grey-300 dark:text-grey-800",children:["Free public preview",k.jsx("span",{className:"mx-2 text-green",children:"↑"}),"/",k.jsx("span",{className:"mx-2 text-green",children:"↓"}),"Only visible to members"]})}const jY=A.createCommand();class ME extends Kg{getIcon(){return p_}decorate(){return k.jsx(An,{className:"inline-block",nodeKey:this.getKey(),children:k.jsx(eIe,{})})}}ye(ME,"kgMenu",{label:"Public preview",desc:"Attract signups with a public intro",Icon:p_,insertCommand:jY,matches:["public preview","preview","public intro","members only","paywall"],priority:6,shortcut:"/paywall"});function FY(){return new ME}function tIe({imgSrc:t,imgUploader:e={},imgDragHandler:n={},onImgChange:i,imgMimeTypes:r,onRemoveImage:o,isPinturaEnabled:s,openImageEditor:a,isEditing:l}){var g;const u=T.useRef(null),f=m=>{m.stopPropagation(),o()},d=n.isDraggedOver||!t,h={width:`${(g=e.progress)==null?void 0:g.toFixed(0)}%`};return k.jsx("div",{className:"not-kg-prose group/image relative mb-4 w-full rounded-md",children:d?k.jsxs(k.Fragment,{children:[k.jsx(Mu,{desc:l?"Click to select a product image":"",errors:e.errors,filePicker:()=>Wi({fileInputRef:u}),icon:"product",isDraggedOver:n.isDraggedOver,placeholderRef:n.setRef,size:"small"}),k.jsx("form",{onChange:i,children:k.jsx("input",{ref:u,accept:r.join(","),hidden:!0,name:"image-input",type:"file"})})]}):k.jsxs(k.Fragment,{children:[k.jsx("img",{alt:"Product thumbnail",className:"mx-auto max-h-[100%] rounded-md object-cover","data-testid":"product-card-image",src:t}),l&&k.jsx(k.Fragment,{children:k.jsx("div",{className:"absolute inset-0 rounded-md bg-gradient-to-t from-black/0 via-black/5 to-black/30 opacity-0 transition-all group-hover/image:opacity-100"})}),l&&k.jsx(k.Fragment,{children:k.jsx("div",{className:"absolute right-5 top-5 flex opacity-0 transition-all group-hover/image:opacity-100",children:k.jsx(pl,{dataTestId:"replace-product-image",Icon:Kc,label:"Delete",onClick:f})})}),l&&s&&k.jsx(k.Fragment,{children:k.jsx("div",{className:"absolute right-16 top-5 flex opacity-0 transition-all group-hover/image:opacity-100",children:k.jsx(pl,{dataTestId:"replace-product-image",Icon:zy,label:"Edit",onClick:()=>a({image:t,handleSave:m=>{i({target:{files:[m]}})}})})})}),e.isLoading&&k.jsx("div",{className:"absolute inset-0 flex min-w-full items-center justify-center overflow-hidden bg-white/50",children:k.jsx(js,{bgStyle:"transparent",style:h})})]})})}const nIe=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("path",{className:"a",d:"M12.729,1.2l3.346,6.629,6.44.638a.805.805,0,0,1,.5,1.374l-5.3,5.253,1.965,7.138a.813.813,0,0,1-1.151.935L12,19.934,5.48,23.163a.813.813,0,0,1-1.151-.935L6.294,15.09.99,9.837a.805.805,0,0,1,.5-1.374l6.44-.638L11.271,1.2A.819.819,0,0,1,12.729,1.2Z"}));function iIe({rating:t,onRatingChange:e}){const[n,i]=T.useState(-1),r=()=>{i(-1)},o=s=>{const a={active:t>=s+1?"fill-grey-900 dark:fill-white":"fill-grey-200 dark:fill-grey-900",hovered:n>=s?"opacity-70":""};return Object.values(a).join(" ")};return k.jsx("div",{className:"not-kg-prose ml-auto flex transition-all duration-75","data-testid":"product-stars",onMouseLeave:r,children:[...Array(5).keys()].map((s,a)=>k.jsx("button",{className:`flex h-7 w-5 cursor-pointer items-center justify-center ${o(a)}`,type:"button",onClick:()=>e(a+1),onMouseOver:()=>i(a),children:k.jsx(nIe,{className:"w-4"})},s))})}function zY({isEditing:t,imgSrc:e,isButtonEnabled:n,buttonText:i,buttonUrl:r,rating:o,isRatingEnabled:s,onButtonToggle:a,onButtonTextChange:l,onButtonUrlChange:u,onRatingToggle:f,imgDragHandler:d,onImgChange:h,imgMimeTypes:g,imgUploader:m,isPinturaEnabled:y,openImageEditor:x,onRemoveImage:_,titleEditor:S,titleEditorInitialState:C,descriptionEditor:E,descriptionEditorInitialState:N,onRatingChange:M}){const I=!!r&&!!i&&n,W=n&&t;return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"mx-auto my-4 flex w-full max-w-[550px] flex-col rounded-md border border-grey/40 p-5 font-sans dark:border-grey/20",children:[k.jsx(tIe,{imgDragHandler:d,imgMimeTypes:g,imgSrc:e,imgUploader:m,isEditing:t,isPinturaEnabled:y,openImageEditor:x,onImgChange:h,onRemoveImage:_}),k.jsxs("div",{className:"!m-0 flex items-start justify-between",children:[(t||!fs(S))&&k.jsx("div",{className:"mr-2 flex-1",children:k.jsx(Er,{autoFocus:!0,focusNext:E,hasSettingsPanel:!0,initialEditor:S,initialEditorState:C,nodes:"minimal",placeholderClassName:"whitespace-normal !font-sans !text-2xl !leading-[1.1] !font-bold !tracking-tight text-black dark:text-grey-50 opacity-40",placeholderText:"Product title",singleParagraph:!0,textClassName:"koenig-lexical-heading heading-xsmall whitespace-normal"})}),s&&k.jsx(iIe,{rating:o,onRatingChange:M})]}),(t||!fs(E))&&k.jsx("div",{className:"!mt-2",children:k.jsx(Er,{hasSettingsPanel:!0,initialEditor:E,initialEditorState:N,placeholderClassName:"!text-[1.6rem] !font-sans !font-normal !tracking-tight !leading-snug text-grey-700 opacity-50",placeholderText:"Description",textClassName:"koenig-lexical-subheading subheading-xsmall whitespace-normal text-grey-700"})}),(W||I)&&k.jsx("div",{className:`not-kg-prose mt-6 w-full ${t||r?"opacity-100":"opacity-50"} `,children:k.jsx(Ca,{dataTestId:"product-button",href:r,value:i,width:"full"})})]}),t&&k.jsxs(Fs,{children:[k.jsx(fo,{dataTestId:"product-rating-toggle",isChecked:s,label:"Rating",onChange:f}),k.jsx(fo,{dataTestId:"product-button-toggle",isChecked:n,label:"Button",onChange:a}),n&&k.jsxs(k.Fragment,{children:[k.jsx(ef,{dataTestId:"product-button-text-input",label:"Button text",placeholder:"Add button text",value:i,onChange:l}),k.jsx(xh,{dataTestId:"product-button-url-input",label:"Button URL",value:r,onChange:u})]})]}),!t&&k.jsx(ms,{})]})}zY.propTypes={isEditing:P.bool,imgSrc:P.string,isButtonEnabled:P.bool,buttonText:P.string,buttonUrl:P.string,isRatingEnabled:P.bool,rating:P.number,onButtonToggle:P.func,onButtonTextChange:P.func,onButtonUrlChange:P.func,onRatingToggle:P.func,onImgChange:P.func,onRemoveImage:P.func,imgDragHandler:P.object,imgUploader:P.object,imgMimeTypes:P.array,isPinturaEnabled:P.bool,openImageEditor:P.func,title:P.string,description:P.string,titleEditor:P.object,titleEditorInitialState:P.object,descriptionEditor:P.object,descriptionEditorInitialState:P.object,onRatingChange:P.func};function rIe({nodeKey:t,buttonText:e,buttonUrl:n,imgHeight:i,imgSrc:r,imgWidth:o,isButtonEnabled:s,isRatingEnabled:a,starRating:l,title:u,titleEditor:f,titleEditorInitialState:d,descriptionEditor:h,descriptionEditorInitialState:g,description:m}){var se;const[y]=Oe.useLexicalComposerContext(),{isEditing:x,isSelected:_,setEditing:S}=T.useContext(rn),{fileUploader:C,cardConfig:E}=T.useContext(ft),N=((se=C.fileTypes.image)==null?void 0:se.mimeTypes)||["image/*"],{isEnabled:M,openEditor:I}=lw({config:E.pinturaConfig}),W=zs({handleDrop:Y,disabled:!x}),B=C.useFileUpload("image"),[Z,R]=T.useState(""),[Q,V]=T.useState(!1);T.useEffect(()=>{f.setEditable(x),h.setEditable(x)},[x,f,h]);const H=async le=>{var ve;const pe=URL.createObjectURL(le[0]);R(pe);const{width:je,height:He}=await sf(pe),ot=await B.upload(le),ht=(ve=ot==null?void 0:ot[0])==null?void 0:ve.url;ht&&y.update(()=>{const De=A.$getNodeByKey(t);De.productImageSrc=ht,De.productImageHeight=He,De.productImageWidth=je}),R(""),URL.revokeObjectURL(pe)},j=async le=>{le.target.files[0]&&await H(le.target.files)},q=()=>{y.update(()=>{const le=A.$getNodeByKey(t);le.productImageSrc=""})};async function Y(le){await H(le)}const K=le=>{y.update(()=>{const pe=A.$getNodeByKey(t);pe.productButtonEnabled=le.target.checked})},te=le=>{y.update(()=>{const pe=A.$getNodeByKey(t);pe.productButton=le.target.value})},oe=le=>{y.update(()=>{const pe=A.$getNodeByKey(t);pe.productUrl=le})},ce=le=>{y.update(()=>{const pe=A.$getNodeByKey(t);pe.productRatingEnabled=le.target.checked})},U=le=>{y.update(()=>{const pe=A.$getNodeByKey(t);pe.productStarRating=le})},F=le=>{le.preventDefault(),le.stopPropagation(),S(!0)};return k.jsxs(k.Fragment,{children:[k.jsx(zY,{buttonText:e,buttonUrl:n,description:m,descriptionEditor:h,descriptionEditorInitialState:g,imgDragHandler:W,imgHeight:i,imgMimeTypes:N,imgSrc:Z||r,imgUploader:B,imgWidth:o,isButtonEnabled:s,isEditing:x,isPinturaEnabled:M,isRatingEnabled:a,openImageEditor:I,rating:l,title:u,titleEditor:f,titleEditorInitialState:d,onButtonTextChange:te,onButtonToggle:K,onButtonUrlChange:oe,onImgChange:j,onRatingChange:U,onRatingToggle:ce,onRemoveImage:q}),k.jsx(xt,{"data-kg-card-toolbar":"product",isVisible:Q,children:k.jsx(Kn,{onClose:()=>V(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"product",isVisible:_&&!x&&!Q,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-product-card",icon:"edit",isActive:!1,label:"Edit",onClick:F}),k.jsx(Bn,{hide:!E.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!E.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>V(!0)})]})})]})}const BY=A.createCommand();class Dx extends Jg{constructor(n={},i){super(n,i);ye(this,"__productTitleEditor");ye(this,"__productTitleEditorInitialState");ye(this,"__productDescriptionEditor");ye(this,"__productDescriptionEditorInitialState");vi(this,"__productTitleEditor",{editor:n.productTitleEditor,nodes:Qi}),vi(this,"__productDescriptionEditor",{editor:n.productDescriptionEditor,nodes:rc}),!n.productTitleEditor&&n.productTitle&&bi(this,"__productTitleEditor",`${n.productTitle}`),n.productDescriptionEditor||bi(this,"__productDescriptionEditor",n.productDescription)}getIcon(){return g_}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.productTitleEditor=i.__productTitleEditor,n.productTitleEditorInitialState=i.__productTitleEditorInitialState,n.productDescriptionEditor=i.__productDescriptionEditor,n.productDescriptionEditorInitialState=i.__productDescriptionEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__productTitleEditor&&this.__productTitleEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__productTitleEditor,null),r=si(i,{firstChildInnerContent:!0,allowBr:!0});n.productTitle=r}),this.__productDescriptionEditor&&this.__productDescriptionEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__productDescriptionEditor,null),r=si(i,{allowBr:!0});n.productDescription=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),children:k.jsx(rIe,{buttonText:this.productButton,buttonUrl:this.productUrl,description:this.productDescription,descriptionEditor:this.__productDescriptionEditor,descriptionEditorInitialState:this.__productDescriptionEditorInitialState,imgHeight:this.productImageHeight,imgSrc:this.productImageSrc,imgWidth:this.productImageWidth,isButtonEnabled:this.productButtonEnabled,isRatingEnabled:this.productRatingEnabled,nodeKey:this.getKey(),starRating:this.productStarRating,title:this.productTitle,titleEditor:this.__productTitleEditor,titleEditorInitialState:this.__productTitleEditorInitialState})})}isEmpty(){const n=fs(this.__productTitleEditor),i=fs(this.__productDescriptionEditor),r=this.productButtonEnabled&&this.productUrl&&this.productButton;return n&&i&&!r&&!this.productImageSrc&&!this.productRatingEnabled}}ye(Dx,"kgMenu",[{label:"Product",desc:"Add a product recommendation",Icon:g_,insertCommand:BY,matches:["product"],priority:16,shortcut:"/product"}]);const oIe=t=>new Dx(t),WY=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2},J.createElement("path",{d:"M11 13c-2.824 0-5.329.638-6.975 1.193A2.99 2.99 0 0 0 2 17.032V21h10","data-cap":"butt"}),J.createElement("path",{d:"M11 13h0c-2.761 0-5-3.239-5-6V6a5 5 0 0 1 5-5h0a5 5 0 0 1 5 5v1c0 2.761-2.239 6-5 6zm8 3v6m-3-3h6"})));function sIe({dataTestId:t,placeholder:e,value:n,buttonSize:i,buttonText:r,buttonStyle:o,onChange:s,onFocus:a,onBlur:l,disabled:u}){const f=d=>{s&&s(d)};return k.jsxs("div",{className:nt("relative flex rounded-md border border-grey-500/30 bg-white",i==="large"?"p-[3px]":"p-[2px]"),children:[k.jsx("input",{className:nt("relative w-full bg-white px-4 py-2 font-sans font-normal text-grey-900 focus-visible:outline-none",i==="small"&&"h-10 text-md leading-[4rem]",i==="medium"&&"h-11 text-[1.6rem] leading-[4.4rem]",i==="large"&&"h-12 text-lg leading-[4.8rem]"),defaultValue:n,placeholder:e,tabIndex:u?"-1":"",readOnly:!0,onBlur:l,onChange:f,onFocus:a}),k.jsx(Ca,{dataTestId:t,disabled:u,placeholder:"",size:i,style:o,value:r})]})}function HY({alignment:t,buttonText:e,showBackgroundImage:n,backgroundImageSrc:i,backgroundSize:r,backgroundColor:o,buttonColor:s,buttonTextColor:a,textColor:l,isEditing:u,fileUploader:f,handleAlignment:d,handleButtonText:h,handleShowBackgroundImage:g,handleHideBackgroundImage:m,handleClearBackgroundImage:y,handleBackgroundColor:x,handleButtonColor:_,handleLayout:S,handleTextColor:C,isPinturaEnabled:E,labels:N,layout:M,availableLabels:I,handleLabels:W,onFileChange:B,openImageEditor:Z,imageDragHandler:R,headerTextEditor:Q,headerTextEditorInitialState:V,renderLabels:H,subheaderTextEditor:j,subheaderTextEditorInitialState:q,disclaimerTextEditor:Y,disclaimerTextEditorInitialState:K,isSwapped:te,handleSwapLayout:oe,handleBackgroundSize:ce,handleButtonTextBlur:U,setFileInputRef:F}){const[se,le]=T.useState(!1),[pe,je]=T.useState(!1),He=ae=>ae==="transparent"?"":yE(Ue(ae)).hex(),ot=({r:ae,g:Ze,b:Ut,a:ii})=>{const Nt=ii/255;return B0({r:ae*Nt+255*(1-Nt),g:Ze*Nt+255*(1-Nt),b:Ut*Nt+255*(1-Nt)}).hex()};T.useEffect(()=>{i&&M!=="split"&&new pY().getColorAsync(i,{defaultColor:[255,255,255,255]}).then(ae=>{const Ze=ot({r:ae.value[0],g:ae.value[1],b:ae.value[2],a:ae.value[3]});C(He(Ze))})},[i,M==="split"]),T.useEffect(()=>{o&&M==="split"&&x(o,He(o))},[M==="split"]);const ht=[{label:"Regular",name:"regular",Icon:Tp,dataTestId:"signup-layout-regular"},{label:"Wide",name:"wide",Icon:$p,dataTestId:"signup-layout-wide"},{label:"Full",name:"full",Icon:Ep,dataTestId:"signup-layout-full"},{label:"Split",name:"split",Icon:oY,dataTestId:"signup-layout-split"}],ve=[{label:"Left",name:"left",Icon:R0,dataTestId:"signup-alignment-left"},{label:"Center",name:"center",Icon:L0,dataTestId:"signup-alignment-center"}],{isLoading:De,progress:st}=f||{},It=M==="split"?"Heading":"Enter heading text",Mt=M==="split"?"Subheading text":"Enter subheading text",Wt=M==="split"?"Disclaimer text":"Enter disclaimer text",Ue=ae=>ae==="accent"?$u().trim():ae.trim(),St=()=>i&&M!=="split"&&l?{backgroundImage:`url(${i})`,backgroundSize:"cover",backgroundPosition:"center center",backgroundColor:"white",color:Ue(l)}:o&&l?{backgroundColor:Ue(o),color:Ue(l)}:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ctitle%3ERectangle%3C/title%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath fill='%23F2F6F8' d='M0 0h24v24H0z'/%3E%3Cpath fill='%23E5ECF0' d='M0 0h12v12H0zM12 12h12v12H12z'/%3E%3C/g%3E%3C/svg%3E")`,backgroundColor:"transparent",color:Ue(l)},Lt=ae=>{ae.stopPropagation(),r==="cover"?(ce("contain"),ui("Signup Card Toggle Size",{size:"contain"})):(ce("cover"),ui("Signup Card Toggle Size",{size:"cover"}))},Be=()=>{ui("Signup Card Toggle Swapped",{swapped:!te}),oe()},Re=r==="contain"&&i?"contain":"cover";return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"flex w-full font-sans text-black transition-colors ease-in-out","data-testid":"signup-card-container",style:St(),children:[k.jsxs("div",{className:nt("flex w-full flex-col transition-colors ease-in-out sm:flex-row",M==="split"&&te&&"flex-col-reverse sm:flex-row-reverse",(M==="full"||M==="split"&&Re==="contain")&&"mx-auto w-[calc(740px+4rem)] xs:w-[calc(740px+8rem)] md:w-[calc(740px+12rem)] lg:w-[calc(740px+22rem)] xl:w-[calc(740px+40rem)]",i&&M==="split"&&Re==="contain"&&"items-center"),"data-testid":"signup-card-content",children:[M==="split"&&k.jsx(tw,{additionalActions:k.jsx(k.Fragment,{children:k.jsx(pl,{dataTestId:"media-upload-size",Icon:r==="cover"?sY:rY,label:r==="cover"?"Contain":"Cover",onClick:Lt})}),alt:"Background image",backgroundSize:r,borderStyle:"squared",className:nt("sm:w-1/2",Re==="contain"&&"sm:my-10 md:my-14",!te&&Re==="contain"&&"mt-10 px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:pl-[calc(92px-(12rem/2))] sm:pr-0 md:pl-[calc(92px-(12rem/2))] lg:pl-0",te&&Re==="contain"&&"mb-10 px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:pl-0 sm:pr-[calc(92px-(12rem/2))] md:pr-[calc(92px-(12rem/2))] lg:pr-0"),desc:"Click to select an image",dragHandler:R,errors:f==null?void 0:f.errors,icon:"image",imgClassName:`${Re==="cover"&&"aspect-[3/2]"}`,isEditing:u,isLoading:De,isPinturaEnabled:E,mimeTypes:["image/*"],openImageEditor:Z,progress:st,size:"large",src:i,onFileChange:B,onRemoveMedia:y}),k.jsxs("div",{className:nt("mx-auto flex w-full flex-1 flex-col justify-center",t==="center"&&"items-center",M==="regular"&&"p-[4rem] sm:py-[6rem] md:px-[6rem] md:py-[8rem] lg:px-[8rem]",M==="wide"&&"max-w-[740px] p-[4rem] sm:py-[6rem] md:px-[8rem] md:py-[10rem] lg:px-0",M==="full"&&"px-[calc(32px-(4rem/2))] py-[4rem] xs:px-[calc(92px-(8rem/2))] sm:py-[6rem] md:px-[calc(92px-(12rem/2))] md:py-[12rem] lg:px-0 lg:py-[14rem] xl:py-[18rem]",M==="split"&&"p-[4rem] sm:py-[6rem] md:px-[6rem] md:py-[12rem] lg:px-[8rem] lg:py-[16rem] xl:py-[18rem]",!te&&M==="split"&&Re==="contain"&&"px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:px-[calc(92px-(12rem/2))] md:pr-[calc(92px-(12rem/2))] lg:pr-0",te&&M==="split"&&Re==="contain"&&"px-[calc(32px-(4rem/2))] xs:px-[calc(92px-(8rem/2))] sm:px-[calc(92px-(12rem/2))] md:pl-[calc(92px-(12rem/2))] lg:pl-0"),children:[k.jsx(Er,{autoFocus:!0,dataTestId:"signup-header-editor",focusNext:j,hasSettingsPanel:!0,hiddenFormats:["bold"],initialEditor:Q,initialEditorState:V,nodes:"minimal",placeholderClassName:nt("!font-bold !leading-[1.1] !tracking-tight opacity-50",t==="center"&&"text-center",M==="regular"&&"text-3xl sm:text-4xl",(M==="wide"||M==="split")&&"text-3xl sm:text-4xl md:text-5xl",M==="full"&&"text-3xl sm:text-4xl md:text-5xl lg:text-6xl"),placeholderText:It,singleParagraph:!0,style:{color:He(o)},textClassName:nt("koenig-lexical-heading relative w-full whitespace-normal font-bold caret-current",!u&&fs(Q)?"hidden":"peer",t==="center"&&"text-center [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left",M==="regular"&&"heading-small",(M==="wide"||M==="split")&&"heading-medium",M==="full"&&"heading-large")}),k.jsx(Er,{dataTestId:"signup-subheader-editor",focusNext:Y,hasSettingsPanel:!0,initialEditor:j,initialEditorState:q,nodes:"minimal",placeholderClassName:nt("!font-medium !leading-snug !tracking-tight opacity-60",t==="center"&&"text-center",M==="regular"&&"text-lg sm:text-xl",(M==="wide"||M==="split")&&"text-lg sm:text-xl md:text-[2.2rem]",M==="full"&&"text-lg sm:text-xl md:text-[2.2rem] lg:text-2xl xl:max-w-[880px]"),placeholderText:Mt,singleParagraph:!0,style:{color:He(o)},textClassName:nt("koenig-lexical-subheading relative w-full whitespace-normal caret-current",!u&&fs(j)?"hidden":"peer",t==="center"&&"text-center [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left",M==="regular"&&"subheading-small !mt-2",(M==="wide"||M==="split")&&"subheading-medium !mt-3",M==="full"&&"subheading-large !mt-3 xl:max-w-[880px]")}),k.jsx("div",{className:`w-full ${M==="regular"?"peer-[.koenig-lexical]:mt-10":M==="wide"?"peer-[.koenig-lexical]:mt-12 md:w-2/3":M==="full"?"peer-[.koenig-lexical]:mt-12 md:w-2/3 peer-[.koenig-lexical]:md:mt-16 xl:w-1/2":"max-w-[500px] peer-[.koenig-lexical]:mt-10 peer-[.koenig-lexical]:md:mt-16"}`,children:k.jsx(sIe,{buttonSize:`${M==="regular"?"medium":"large"}`,buttonStyle:s?{backgroundColor:Ue(s),color:Ue(a)}:{backgroundColor:"#000000",color:"#ffffff"},buttonText:e,dataTestId:"signup-card-button",disabled:!0,placeholder:"Your email"})}),k.jsx(Er,{dataTestId:"signup-disclaimer-editor",defaultKoenigEnterBehaviour:!0,hasSettingsPanel:!0,initialEditor:Y,initialEditorState:K,nodes:"minimal",placeholderClassName:"opacity-60 !leading-snug !font-normal !text-[1.6rem] !tracking-tight",placeholderText:Wt,singleParagraph:!0,style:{color:He(o)},textClassName:nt("koenig-lexical-subheading subheading-xsmall relative !mt-4 w-full whitespace-normal caret-current",!u&&fs(Y)&&"hidden",t==="center"&&"text-center [&:has(.placeholder)]:w-fit [&:has(.placeholder)]:text-left")})]})]}),!u&&k.jsx(ms,{})]}),u&&k.jsx("div",{className:"!mt-0 flex items-center justify-center bg-grey-100 p-2 font-sans text-sm font-normal leading-none text-grey-600 dark:bg-grey-950 dark:text-grey-800",children:"Only visible to logged out visitors, this card is not shown in emails or to existing members."}),u&&k.jsxs(Fs,{cardWidth:M,className:"mt-0",children:[k.jsx(Ea,{buttons:ht,label:"Layout",selectedName:M,onClick:S}),M==="split"&&k.jsx(fo,{dataTestId:"signup-swapped",isChecked:te,label:"Flip Layout",onChange:Be}),k.jsx(Ea,{buttons:ve,label:"Alignment",selectedName:t,onClick:d}),k.jsx(c0,{dataTestId:"signup-background-color",eyedropper:M==="split",hasTransparentOption:!0,isExpanded:se,label:"Background",swatches:[M!=="split"&&{title:"Image",customContent:k.jsxs("button",{className:nt("group relative flex size-6 shrink-0 items-center justify-center rounded-full border border-grey-300 bg-grey-100 text-black",n&&"outline outline-2 outline-green"),"data-testid":"signup-background-image-toggle",title:"Image",type:"button",onClick:()=>{g(),le(!1),je(!1)},children:[k.jsx(C6,{className:"size-[1.4rem]"}),k.jsx(Cu,{label:"Image"})]})},{title:"Grey",hex:"#F0F0F0"},{title:"Black",hex:"#000000"},{title:"Brand color",accent:!0}].filter(Boolean),value:n&&M!=="split"?"image":o,onPickerChange:ae=>x(ae,He(ae)),onSwatchChange:ae=>{x(ae,He(ae)),le(!1)},onTogglePicker:ae=>{ae&&(M!=="split"&&m(),o&&x(o,He(o))),le(ae),ae&&je(!ae)},children:k.jsx(iw,{alt:"Background image",borderStyle:"rounded",className:nt("min-w-[296px]",(!n||M==="split")&&"hidden"),errors:f==null?void 0:f.errors,hideLabel:M!=="split",icon:"file",imgClassName:"w-full",isDraggedOver:R==null?void 0:R.isDraggedOver,isLoading:De,isPinturaEnabled:E,label:"Image",mimeTypes:["image/*"],openImageEditor:Z,placeholderRef:R==null?void 0:R.setRef,progress:st,setFileInputRef:F,size:"xsmall",src:i,stacked:!0,onFileChange:B,onRemoveMedia:()=>{y(),C(He(o))}})}),k.jsx(c0,{dataTestId:"signup-button-color",eyedropper:M==="split",isExpanded:pe,label:"Button color",swatches:[{title:"White",hex:"#ffffff"},{title:"Black",hex:"#000000"},{title:"Brand color",accent:!0}],value:s,onPickerChange:ae=>_(ae,He(ae)),onSwatchChange:ae=>{_(ae,He(ae)),je(!1)},onTogglePicker:ae=>{je(ae),ae&&le(!ae)}}),k.jsx(ef,{dataTestId:"signup-button-text",label:"Button text",placeholder:"Add button text",value:e,onBlur:U,onChange:h}),H&&k.jsx(xEe,{availableItems:I,dataTestId:"labels-dropdown",description:"Added to members created using this form",items:N,label:"Labels",placeholder:"Type to search",onChange:W})]})]})}HY.propTypes={alignment:P.oneOf(["left","center"]),buttonColor:P.string,buttonText:P.string,buttonTextColor:P.string,buttonPlaceholder:P.string,backgroundImageSrc:P.string,backgroundSize:P.oneOf(["cover","contain"]),backgroundColor:P.string,textColor:P.string,showBackgroundImage:P.bool,isEditing:P.bool,isPinturaEnabled:P.bool,fileUploader:P.object,fileInputRef:P.object,handleLayout:P.func,handleAlignment:P.func,handleButtonText:P.func,handleClearBackgroundImage:P.func,handleBackgroundColor:P.func,handleShowBackgroundImage:P.func,handleHideBackgroundImage:P.func,handleButtonColor:P.func,handleLabels:P.func,handleTextColor:P.func,labels:P.arrayOf(P.string),layout:P.oneOf(["regular","wide","full","split"]),availableLabels:P.arrayOf(P.string),openFilePicker:P.func,onFileChange:P.func,openImageEditor:P.func,imageDragHandler:P.object,headerTextEditor:P.object,headerTextEditorInitialState:P.object,renderLabels:P.bool,subheaderTextEditor:P.object,subheaderTextEditorInitialState:P.object,disclaimerTextEditor:P.object,disclaimerTextEditorInitialState:P.object,isSwapped:P.bool,handleSwapLayout:P.func,handleBackgroundSize:P.func,setFileInputRef:P.func,handleButtonTextBlur:P.func};function aIe({alignment:t,backgroundColor:e,backgroundImageSrc:n,backgroundSize:i,buttonColor:r,buttonText:o,buttonTextColor:s,nodeKey:a,disclaimer:l,disclaimerTextEditor:u,disclaimerTextEditorInitialState:f,header:d,headerTextEditor:h,headerTextEditorInitialState:g,labels:m,layout:y,subheader:x,subheaderTextEditor:_,subheaderTextEditorInitialState:S,textColor:C,isSwapped:E}){const[N]=Oe.useLexicalComposerContext(),{cardConfig:M}=T.useContext(ft),{fileUploader:I}=T.useContext(ft),{isEditing:W,isSelected:B}=T.useContext(rn),[Z,R]=T.useState(!1),[Q,V]=T.useState([]),[H,j]=T.useState(!!n),[q,Y]=T.useState(n),[K,te]=T.useState(!1),{isEnabled:oe,openEditor:ce}=lw({config:M.pinturaConfig}),U=T.useRef(null);T.useEffect(()=>{M.renderLabels&&M.fetchLabels&&M.fetchLabels().then(Re=>{V(Re)})},[M]),T.useEffect(()=>{y!=="split"&&j(!!n),y==="split"&&!n&&q&&It()},[y]);const F=Re=>{N.update(()=>{const ae=A.$getNodeByKey(a);ae.alignment=Re})},se=Re=>{N.update(()=>{const ae=A.$getNodeByKey(a);ae.backgroundSize=Re})},le=Re=>{Re.preventDefault(),Re.stopPropagation(),N.dispatchCommand(Lo,{cardKey:a,focusEditor:!1})},pe=I.useFileUpload("image"),je=async Re=>{N.update(()=>{const Ze=A.$getNodeByKey(a);Ze.backgroundImageSrc=""});const{imageSrc:ae}=await V6(Re,pe.upload);N.update(()=>{const Ze=A.$getNodeByKey(a);Ze.backgroundImageSrc=ae}),Y(ae),te(!1)},He=async Re=>{je(Re.target.files)},ot=zs({handleDrop:je}),ht=Re=>{N.update(()=>{const ae=A.$getNodeByKey(a);ae.layout=Re})},ve=Re=>{N.update(()=>{const ae=A.$getNodeByKey(a);ae.buttonText=Re.target.value})},De=Re=>{Re.target.value||N.update(()=>{const ae=A.$getNodeByKey(a);ae.buttonText="Subscribe"})},st=()=>{N.update(()=>{const Re=A.$getNodeByKey(a);Re.backgroundImageSrc=""}),te(!0)},It=()=>{j(!0),q&&!K?N.update(()=>{const Re=A.$getNodeByKey(a);Re.backgroundImageSrc=q}):Wi({fileInputRef:U})},Mt=()=>{j(!1),N.update(()=>{const Re=A.$getNodeByKey(a);Re.backgroundImageSrc=""})},Wt=(Re,ae)=>{N.update(()=>{const Ze=A.$getNodeByKey(a);Ze.backgroundColor=Re,Ze.textColor=ae,y!=="split"&&Mt()})},Ue=Re=>{N.update(()=>{const ae=A.$getNodeByKey(a);ae.textColor=Re})},St=(Re,ae)=>{N.update(()=>{const Ze=A.$getNodeByKey(a);Ze.buttonColor=Re,Ze.buttonTextColor=ae})},Lt=Re=>{N.update(()=>{A.$getNodeByKey(a).setLabels(Re)})},Be=()=>{N.update(()=>{const Re=A.$getNodeByKey(a);Re.swapped=!E})};return T.useEffect(()=>{h.setEditable(W),_.setEditable(W),u.setEditable(W)},[W,h,_,u]),k.jsxs(k.Fragment,{children:[k.jsx(HY,{alignment:t,availableLabels:Q,backgroundColor:e,backgroundImageSrc:n,backgroundSize:i,buttonColor:r,buttonText:o,buttonTextColor:s,disclaimer:l,disclaimerTextEditor:u,disclaimerTextEditorInitialState:f,fileUploader:pe,handleAlignment:F,handleBackgroundColor:Wt,handleBackgroundSize:se,handleButtonColor:St,handleButtonText:ve,handleButtonTextBlur:De,handleClearBackgroundImage:st,handleHideBackgroundImage:Mt,handleLabels:Lt,handleLayout:ht,handleShowBackgroundImage:It,handleSwapLayout:Be,handleTextColor:Ue,header:d,headerTextEditor:h,headerTextEditorInitialState:g,imageDragHandler:ot,isEditing:W,isPinturaEnabled:oe,isSwapped:E,labels:m,layout:y,openImageEditor:ce,renderLabels:M.renderLabels,setFileInputRef:Re=>U.current=Re,showBackgroundImage:H,subheader:x,subheaderTextEditor:_,subheaderTextEditorInitialState:S,textColor:C,onFileChange:He}),k.jsx(xt,{"data-kg-card-toolbar":"signup",isVisible:Z,children:k.jsx(Kn,{onClose:()=>R(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"signup",isVisible:B&&!W&&!Z,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:le}),k.jsx(Bn,{hide:!M.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!M.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>R(!0)})]})})]})}const{INSERT_SIGNUP_COMMAND:QY}=A.createCommand();class Ix extends rm{constructor(n={},i){super(n,i);ye(this,"__disclaimerTextEditor");ye(this,"__disclaimerTextEditorInitialState");ye(this,"__headerTextEditor");ye(this,"__headerTextEditorInitialState");ye(this,"__subheaderTextEditor");ye(this,"__subheaderTextEditorInitialState");vi(this,"__headerTextEditor",{editor:n.headerTextEditor,nodes:Qi}),vi(this,"__subheaderTextEditor",{editor:n.subheaderTextEditor,nodes:Qi}),vi(this,"__disclaimerTextEditor",{editor:n.disclaimerTextEditor,nodes:Qi}),!n.headerTextEditor&&n.header&&bi(this,"__headerTextEditor",`${n.header}`),!n.subheaderTextEditor&&n.subheader&&bi(this,"__subheaderTextEditor",`${n.subheader}`),!n.disclaimerTextEditor&&n.disclaimer&&bi(this,"__disclaimerTextEditor",`${n.disclaimer}`)}getIcon(){return WY}exportJSON(){const n=super.exportJSON();return this.__disclaimerTextEditor&&this.__disclaimerTextEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__disclaimerTextEditor,null),r=si(i,{firstChildInnerContent:!0,allowBr:!0});n.disclaimer=r}),this.__headerTextEditor&&this.__headerTextEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__headerTextEditor,null),r=si(i,{firstChildInnerContent:!0,allowBr:!0});n.header=r}),this.__subheaderTextEditor&&this.__subheaderTextEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__subheaderTextEditor,null),r=si(i,{firstChildInnerContent:!0,allowBr:!0});n.subheader=r}),n}createDOM(){return document.createElement("div")}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.disclaimerTextEditor=i.__disclaimerTextEditor,n.headerTextEditor=i.__headerTextEditor,n.subheaderTextEditor=i.__subheaderTextEditor,n}getCardWidth(){const n=this.layout;return n==="split"?"full":n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),width:this.getCardWidth(),children:k.jsx(aIe,{alignment:this.alignment,backgroundColor:this.backgroundColor,backgroundImageSrc:this.backgroundImageSrc,backgroundSize:this.backgroundSize,buttonColor:this.buttonColor,buttonText:this.buttonText,buttonTextColor:this.buttonTextColor,disclaimer:this.disclaimer,disclaimerTextEditor:this.__disclaimerTextEditor,disclaimerTextEditorInitialState:this.__disclaimerTextEditorInitialState,header:this.header,headerTextEditor:this.__headerTextEditor,headerTextEditorInitialState:this.__headerTextEditorInitialState,isSwapped:this.swapped,labels:this.labels,layout:this.layout,nodeKey:this.getKey(),subheader:this.subheader,subheaderTextEditor:this.__subheaderTextEditor,subheaderTextEditorInitialState:this.__subheaderTextEditorInitialState,textColor:this.textColor})})}isEmpty(){const n=this.__headerTextEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1)),i=this.__subheaderTextEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1)),r=this.__disclaimerTextEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1));return!this.__backgroundColor&&!this.__backgroundImageSrc&&!this.__buttonColor&&!this.__buttonText&&r&&n&&!this.__labels.length&&i}}ye(Ix,"kgMenu",{label:"Signup",desc:"Convert visitors into members",Icon:WY,insertCommand:QY,matches:["signup","subscribe"],priority:10,isHidden:({config:n})=>!(n==null?void 0:n.membersEnabled),insertParams:({config:n})=>({header:n!=null&&n.siteTitle?`Sign up for ${n.siteTitle}`:"",subheader:(n==null?void 0:n.siteDescription)||"",disclaimer:"No spam. Unsubscribe anytime."}),shortcut:"/signup"});const lIe=t=>new Ix(t),uIe=t=>J.createElement("svg",{id:"Regular",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},J.createElement("defs",null,J.createElement("style",null,".cls-1{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;fill-rule:evenodd;}")),J.createElement("path",{className:"cls-1",d:"M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311"}));function UY({contentEditor:t,contentEditorInitialState:e,contentPlaceholder:n="Collapsible content",headingEditor:i,headingEditorInitialState:r,headingPlaceholder:o="Toggle header",isEditing:s=!1}){return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"rounded-md border border-grey/40 px-6 py-4 dark:border-grey/30",children:[k.jsxs("div",{className:"flex cursor-text items-start justify-between",children:[k.jsx("div",{className:"mr-2 w-full",children:k.jsx(Er,{autoFocus:!0,focusNext:t,initialEditor:i,initialEditorState:r,nodes:"minimal",placeholderClassName:"!font-sans !text-2xl !leading-[1.1] !font-bold !tracking-tight text-black dark:text-grey-50 opacity-40",placeholderText:o,singleParagraph:!0,textClassName:"koenig-lexical-heading heading-xsmall whitespace-normal text-black dark:text-grey-50 opacity-100"})}),k.jsx("div",{className:"z-20 !mt-[-1px] ml-auto flex size-8 shrink-0 items-center justify-center",children:k.jsx(uIe,{className:"size-4 stroke-2 text-grey-400 dark:text-grey/30"})})]}),k.jsx("div",{className:"!mt-2 w-full",children:k.jsx(Er,{initialEditor:t,initialEditorState:e,placeholderClassName:"font-serif text-xl font-normal !leading-[1.6em] text-grey-900 dark:text-grey-100 opacity-40",placeholderText:n,textClassName:"whitespace-normal font-serif text-xl font-normal text-grey-900 dark:text-grey-100 opacity-100"})})]}),!s&&k.jsx(ms,{})]})}UY.propTypes={contentEditor:P.object,contentPlaceholder:P.string,headingEditor:P.object,headingPlaceholder:P.string,isEditing:P.bool,contentEditorInitialState:P.object,headingEditorInitialState:P.object};function cIe({nodeKey:t,headingEditor:e,headingEditorInitialState:n,contentEditor:i,contentEditorInitialState:r}){const[o]=Oe.useLexicalComposerContext(),s=T.useContext(rn),{cardConfig:a}=T.useContext(ft),{isEditing:l,isSelected:u}=s,[f,d]=T.useState(!1),h=g=>{g.preventDefault(),g.stopPropagation(),o.dispatchCommand(Lo,{cardKey:t,focusEditor:!1})};return T.useEffect(()=>{e.setEditable(l),i.setEditable(l)},[l,e,i]),k.jsxs(k.Fragment,{children:[k.jsx(UY,{contentEditor:i,contentEditorInitialState:r,contentPlaceholder:"Collapsible content",headingEditor:e,headingEditorInitialState:n,headingPlaceholder:"Toggle header",isEditing:l}),k.jsx(xt,{"data-kg-card-toolbar":"toggle",isVisible:f,children:k.jsx(Kn,{onClose:()=>d(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"toggle",isVisible:u&&!l&&!f,children:k.jsxs(Jn,{children:[k.jsx(at,{icon:"edit",isActive:!1,label:"Edit",onClick:h}),k.jsx(Bn,{hide:!a.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!a.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>d(!0)})]})})]})}const ZY=A.createCommand();class Lx extends qg{constructor(n={},i){super(n,i);ye(this,"__headingEditor");ye(this,"__headingEditorInitialState");ye(this,"__contentEditor");ye(this,"__contentEditorInitialState");vi(this,"__headingEditor",{editor:n.headingEditor,nodes:Qi}),vi(this,"__contentEditor",{editor:n.contentEditor,nodes:rc}),!n.headingEditor&&n.heading&&bi(this,"__headingEditor",`${n.heading}`),!n.contentEditor&&n.content&&bi(this,"__contentEditor",n.content)}getIcon(){return m_}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.headingEditor=i.__headingEditor,n.headingEditorInitialState=i.__headingEditorInitialState,n.contentEditor=i.__contentEditor,n.contentEditorInitialState=i.__contentEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__headingEditor&&this.__headingEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__headingEditor,null),r=si(i,{firstChildInnerContent:!0,allowBr:!0});n.heading=r}),this.__contentEditor&&this.__contentEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__contentEditor,null),r=si(i,{allowBr:!0});n.content=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),children:k.jsx(cIe,{contentEditor:this.__contentEditor,contentEditorInitialState:this.__contentEditorInitialState,headingEditor:this.__headingEditor,headingEditorInitialState:this.__headingEditorInitialState,nodeKey:this.getKey()})})}isEmpty(){const n=this.__headingEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1)),i=this.__contentEditor.getEditorState().read(cs.$canShowPlaceholderCurry(!1));return n&&i}}ye(Lx,"kgMenu",[{label:"Toggle",desc:"Add collapsible content",Icon:m_,insertCommand:ZY,matches:["toggle","collapse"],priority:12,shortcut:"/toggle"}]);const fIe=t=>new Lx(t),NE=t=>J.createElement("svg",{viewBox:"5 0.5 144 144",xmlns:"http://www.w3.org/2000/svg",...t},J.createElement("title",null,"transistor"),J.createElement("g",{fill:"currentColor"},J.createElement("path",{d:"M77 120.3c-2.6 0-4.8-2.1-4.8-4.8V29.4c0-2.6 2.1-4.8 4.8-4.8s4.8 2.1 4.8 4.8v86.2c0 2.6-2.2 4.7-4.8 4.7z"}),J.createElement("path",{d:"M57 77.3H34c-2.6 0-4.8-2.1-4.8-4.8 0-2.6 2.1-4.8 4.8-4.8h23c2.6 0 4.8 2.1 4.8 4.8 0 2.6-2.1 4.8-4.8 4.8z"}),J.createElement("path",{d:"M120.1 77.3h-23c-2.6 0-4.8-2.1-4.8-4.8 0-2.6 2.1-4.8 4.8-4.8h23c2.6 0 4.8 2.1 4.8 4.8 0 2.6-2.2 4.8-4.8 4.8z"}),J.createElement("path",{d:"M77 144.5c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72zM77 10c-34.4 0-62.4 28-62.4 62.4 0 34.4 28 62.4 62.4 62.4 34.4 0 62.4-28 62.4-62.4C139.4 38 111.4 10 77 10z"})));function qY({accentColor:t="",backgroundColor:e=""}){return k.jsx("div",{className:"w-full rounded-lg border border-grey-300 bg-grey-100 dark:border-grey-900 dark:bg-grey-950",children:k.jsx(YY,{accentColor:t,backgroundColor:e})})}function YY({accentColor:t,backgroundColor:e}){const n={backgroundColor:e||"#FFFFFF",borderColor:t||"#000000"},i={color:t||"#000000"};return k.jsx("div",{className:"flex min-h-[180px] items-center justify-center rounded-lg p-8 transition-colors","data-testid":"transistor-placeholder",style:n,children:k.jsxs("div",{className:"text-center",children:[k.jsx("div",{className:"mb-3 flex justify-center",children:k.jsx(NE,{className:"size-12",style:i})}),k.jsx("div",{className:"mb-2 text-lg font-semibold",style:{color:t||"#000000"},children:"Transistor Private Podcast"}),k.jsx("div",{className:"text-sm text-grey-700 dark:text-grey-400",children:"Your private RSS feeds"})]})})}qY.propTypes={accentColor:P.string,backgroundColor:P.string},YY.propTypes={accentColor:P.string,backgroundColor:P.string};const dIe=({nodeKey:t,accentColor:e,backgroundColor:n})=>{const[i]=Oe.useLexicalComposerContext(),{isEditing:r,isSelected:o,setEditing:s}=T.useContext(rn),{cardConfig:a,darkMode:l}=T.useContext(ft),[u,f]=T.useState(!1),{visibilityOptions:d,toggleVisibility:h}=D6(i,t,a),g=T.useMemo(()=>d.map(_=>({..._,toggles:_.toggles.filter(S=>S.key!=="nonMembers")})),[d]),m=[{id:"visibility",label:"Visibility"}],y=_=>{_.preventDefault(),_.stopPropagation(),s(!0)},x=k.jsx(P6,{toggleVisibility:h,visibilityOptions:g});return k.jsxs(k.Fragment,{children:[k.jsx(qY,{accentColor:e,backgroundColor:n}),k.jsx(xt,{"data-kg-card-toolbar":"transistor",isVisible:u,children:k.jsx(Kn,{onClose:()=>f(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"transistor",isVisible:o&&!r&&!u,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-transistor-card",icon:"edit",isActive:!1,label:"Edit",onClick:y}),k.jsx(Bn,{hide:!a.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!a.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>f(!0)})]})}),r&&k.jsx(Fs,{darkMode:l,defaultTab:"visibility",tabs:m,onMouseDown:_=>{_.preventDefault(),_.stopPropagation()},children:{visibility:x}})]})},VY=A.createCommand();class Rx extends om{constructor(e={},n){super(e,n)}getIcon(){return NE}decorate(){return k.jsx(An,{nodeKey:this.getKey(),wrapperStyle:"regular",children:k.jsx(dIe,{accentColor:this.accentColor,backgroundColor:this.backgroundColor,nodeKey:this.getKey()})})}}ye(Rx,"kgMenu",[{label:"Transistor",desc:"Embed a Transistor podcast player",Icon:NE,insertCommand:VY,matches:["transistor","podcast"],priority:8,shortcut:"/transistor",isHidden:({config:e})=>{var n;return((n=e==null?void 0:e.feature)==null?void 0:n.transistor)!==!0}}]);function hIe(t){return new Rx(t)}function pIe(t){return new Promise((e,n)=>{const i=t.type;let r,o,s;const a=document.createElement("video");a.muted=!0,a.playsInline=!0,a.onerror=n,a.onloadedmetadata=function(){r=a.duration,o=a.videoWidth,s=a.videoHeight},a.oncanplay=function(){a.currentTime=.5,a.oncanplay=null},a.onseeked=function(){const l=document.createElement("canvas");l.width=o,l.height=s;const u=l.getContext("2d");u.drawImage(a,0,0,o,s),window.URL.revokeObjectURL(a.src),u.canvas.toBlob(f=>{e({duration:r,width:o,height:s,mimeType:i,thumbnailBlob:f})},"image/jpeg",.75)},a.src=URL.createObjectURL(t),a.load()})}function XY({thumbnail:t,customThumbnail:e,onCustomThumbnailChange:n,videoUploader:i={},customThumbnailUploader:r={},onRemoveCustomThumbnail:o,totalDuration:s,cardWidth:a,isLoopChecked:l,onLoopChange:u,onCardWidthChange:f,isEditing:d,thumbnailMimeTypes:h,thumbnailDragHandler:g={}}){var x;const m={width:`${(x=i.progress)==null?void 0:x.toFixed(0)}%`},y=[{label:"Regular",name:"regular",Icon:Tp},{label:"Wide",name:"wide",Icon:$p},{label:"Full",name:"full",Icon:Ep}];return k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"not-kg-prose relative","data-testid":"video-card-populated",children:[k.jsxs("div",{children:[k.jsx("img",{alt:"Video thumbnail",className:"mx-auto",src:t}),e&&k.jsx("img",{alt:"Video custom thumbnail",className:"absolute inset-0 size-full bg-white object-cover",src:e})]}),k.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-t from-black/0 via-black/5 to-black/30",children:i.isLoading||k.jsx("button",{className:"flex size-20 items-center justify-center rounded-full bg-black/50",type:"button",children:k.jsx(Mq,{className:"h-auto w-5 fill-white"})})}),k.jsx("div",{className:`absolute bottom-0 flex h-20 w-full justify-end bg-gradient-to-b from-black/0 to-black/50 ${a==="full"?"px-7 py-4":"px-4"}`,children:k.jsx(hE,{duration:s,theme:"light"})}),k.jsx(ms,{})]}),i.isLoading&&k.jsx("div",{className:"absolute inset-0 flex min-w-full items-center justify-center overflow-hidden bg-white/50","data-testid":"video-progress",children:k.jsx(js,{bgStyle:"transparent",style:m})}),!!t&&!i.isLoading&&d&&k.jsxs(Fs,{children:[k.jsx(Ea,{buttons:y,label:"Video width",selectedName:a,onClick:f}),k.jsx(fo,{dataTestId:"loop-video",description:"Autoplay your video on a loop without sound.",isChecked:l,label:"Loop",onChange:u}),k.jsx(iw,{alt:"Custom thumbnail",borderStyle:"rounded",dataTestId:"custom-thumbnail-replace",errors:r.errors,icon:"file",isDraggedOver:g.isDraggedOver,isLoading:r.isLoading,label:"Custom thumbnail",mimeTypes:h,placeholderRef:g.setRef,progress:r.progress,size:"xsmall",src:e,onFileChange:n,onRemoveMedia:o})]})]})}function GY({onFileChange:t,fileInputRef:e,errors:n,videoMimeTypes:i=[],videoDragHandler:r={}}){return k.jsxs(k.Fragment,{children:[k.jsx(Mu,{desc:"Click to select a video",errors:n,filePicker:()=>Wi({fileInputRef:e}),icon:"video",isDraggedOver:r.isDraggedOver,placeholderRef:r.setRef}),k.jsx("form",{onChange:t,children:k.jsx("input",{ref:e,accept:i.join(","),hidden:!0,name:"image-input",type:"file"})})]})}const KY=({fileInputRef:t,onVideoFileChange:e,videoDragHandler:n,videoUploader:i={},videoUploadErrors:r,videoMimeTypes:o,...s})=>s.customThumbnail||s.thumbnail||i.isLoading?k.jsx(XY,{...s,videoUploader:i}):k.jsx(GY,{errors:r,fileInputRef:t,videoDragHandler:n,videoMimeTypes:o,onFileChange:e});function JY({captionEditor:t,captionEditorInitialState:e,isSelected:n,isEditing:i,...r}){return k.jsxs("figure",{className:"not-kg-prose",children:[k.jsx(KY,{...r,isEditing:i}),k.jsx(dh,{captionEditor:t,captionEditorInitialState:e,captionPlaceholder:"Type caption for video (optional)",dataTestId:"video-card-caption",isSelected:n})]})}JY.propTypes={captionEditor:P.object,captionEditorInitialState:P.object,isSelected:P.bool,isEditing:P.bool},XY.propTypes={thumbnail:P.string,customThumbnail:P.string,onCustomThumbnailChange:P.func,videoUploader:P.object,customThumbnailUploader:P.object,onRemoveCustomThumbnail:P.func,totalDuration:P.string,cardWidth:P.string,isLoopChecked:P.bool,onLoopChange:P.func,onCardWidthChange:P.func,isEditing:P.bool,thumbnailMimeTypes:P.array,thumbnailDragHandler:P.object},GY.propTypes={onFileChange:P.func,fileInputRef:P.object,errors:P.array,videoMimeTypes:P.array,videoDragHandler:P.object},KY.propTypes={fileInputRef:P.object,onVideoFileChange:P.func,videoDragHandler:P.object,videoUploader:P.object,videoUploadErrors:P.array,videoMimeTypes:P.array,customThumbnail:P.string,thumbnail:P.string};function gIe({nodeKey:t,thumbnail:e,customThumbnail:n,captionEditor:i,captionEditorInitialState:r,totalDuration:o,cardWidth:s,triggerFileDialog:a,isLoopChecked:l,initialFile:u}){var U;const[f]=Oe.useLexicalComposerContext(),{fileUploader:d,cardConfig:h}=T.useContext(ft),g=T.useContext(rn),m=T.useRef(),[y,x]=T.useState(""),_=d.useFileUpload("video"),S=d.useFileUpload("mediaThumbnail"),C=d.useFileUpload("image"),E=zs({handleDrop:j}),N=zs({handleDrop:q}),[M,I]=T.useState([]),[W,B]=T.useState(!1),Z=((U=d.fileTypes.video)==null?void 0:U.mimeTypes)||["video/*"];T.useEffect(()=>{(async se=>{se&&!_.isLoading&&await R([se])})(u)},[]);const R=async F=>{var Mt,Wt;const se=F[0];if(!se)return;let le,pe,je,He,ot;try{({thumbnailBlob:le,duration:pe,width:je,height:He,mimeType:ot}=await pIe(se))}catch{I([{name:se.name,message:`The file type you uploaded is not supported. Please use .${Z.join(", .").toUpperCase()}`}])}x(URL.createObjectURL(le));const ht=await _.upload([se]),ve=(Mt=ht==null?void 0:ht[0])==null?void 0:Mt.url;if(!ve){x("");return}ve&&f.update(()=>{const Ue=A.$getNodeByKey(t);Ue.src=ve,Ue.duration=pe,Ue.fileName=se.name,Ue.width=je,Ue.height=He,Ue.mimeType=ot,Ue.customThumbnailSrc||(Ue.thumbnailWidth=je,Ue.thumbnailHeight=He)});const De=new File([le],`${se.name}.jpg`,{type:"image/jpeg"}),st=await S.upload([De],{formData:{url:ve}}),It=(Wt=st==null?void 0:st[0])==null?void 0:Wt.url;It&&f.update(()=>{const Ue=A.$getNodeByKey(t);Ue.thumbnailSrc=It}),x("")},Q=async F=>{F.target.files[0]&&await R(F.target.files)},V=async F=>{var He;const se=await C.upload(F),le=(He=se==null?void 0:se[0])==null?void 0:He.url,{width:pe,height:je}=await sf(le);le&&f.update(()=>{const ot=A.$getNodeByKey(t);ot.customThumbnailSrc=le,ot.thumbnailWidth=pe,ot.thumbnailHeight=je})},H=async F=>{await V(F.target.files)};async function j(F){await R(F)}async function q(F){await V(F)}const Y=()=>{f.update(()=>{const F=A.$getNodeByKey(t);F.customThumbnailSrc="",F.thumbnailHeight=F.height,F.thumbnailWidth=F.width})},K=F=>{f.update(()=>{const se=A.$getNodeByKey(t);se.loop=F.target.checked})},te=F=>{f.update(()=>{const se=A.$getNodeByKey(t);se.cardWidth=F,g.setCardWidth(F)})},oe=F=>{F.preventDefault(),F.stopPropagation(),g.setEditing(!0)};T.useEffect(()=>{if(!a)return;const F=setTimeout(()=>{Wi({fileInputRef:m}),f.update(()=>{const se=A.$getNodeByKey(t);se.triggerFileDialog=!1})});return()=>{clearTimeout(F)}});const ce=n||e;return k.jsxs(k.Fragment,{children:[k.jsx(JY,{captionEditor:i,captionEditorInitialState:r,cardWidth:s,customThumbnail:n,customThumbnailUploader:C,fileInputRef:m,isEditing:g.isEditing,isLoopChecked:l,isSelected:g.isSelected,thumbnail:y||e,thumbnailDragHandler:N,thumbnailMimeTypes:d.fileTypes.image.mimeTypes,totalDuration:o,videoDragHandler:E,videoMimeTypes:Z,videoUploader:_,videoUploadErrors:[...S.errors,...M,..._.errors],onCardWidthChange:te,onCustomThumbnailChange:H,onLoopChange:K,onRemoveCustomThumbnail:Y,onVideoFileChange:Q}),k.jsx(xt,{"data-kg-card-toolbar":"video",isVisible:W,children:k.jsx(Kn,{onClose:()=>B(!1)})}),k.jsx(xt,{"data-kg-card-toolbar":"video",isVisible:ce&&g.isSelected&&!g.isEditing&&!W,children:k.jsxs(Jn,{children:[k.jsx(at,{dataTestId:"edit-video-card",icon:"edit",isActive:!1,label:"Edit",onClick:oe}),k.jsx(Bn,{hide:!h.createSnippet}),k.jsx(at,{dataTestId:"create-snippet",hide:!h.createSnippet,icon:"snippet",isActive:!1,label:"Save as snippet",onClick:()=>B(!0)})]})})]})}const AE=A.createCommand();class Y0 extends Fg{constructor(n={},i){super(n,i);ye(this,"__triggerFileDialog",!1);ye(this,"__initialFile",null);ye(this,"__captionEditor");ye(this,"__captionEditorInitialState");const{triggerFileDialog:r,initialFile:o}=n;this.__triggerFileDialog=!n.src&&r,this.__initialFile=o||null,vi(this,"__captionEditor",{editor:n.captionEditor,nodes:Qi}),!n.captionEditor&&n.caption&&bi(this,"__captionEditor",`${n.caption}`)}getIcon(){return v_}set triggerFileDialog(n){const i=this.getWritable();i.__triggerFileDialog=n}getDataset(){const n=super.getDataset(),i=this.getLatest();return n.captionEditor=i.__captionEditor,n.captionEditorInitialState=i.__captionEditorInitialState,n}exportJSON(){const n=super.exportJSON();return this.__captionEditor&&this.__captionEditor.getEditorState().read(()=>{const i=Mn.$generateHtmlFromNodes(this.__captionEditor,null),r=si(i);n.caption=r}),n}decorate(){return k.jsx(An,{nodeKey:this.getKey(),width:this.cardWidth,children:k.jsx(gIe,{captionEditor:this.__captionEditor,captionEditorInitialState:this.__captionEditorInitialState,cardWidth:this.cardWidth,customThumbnail:this.customThumbnailSrc,initialFile:this.__initialFile,isLoopChecked:this.loop,nodeKey:this.getKey(),thumbnail:this.thumbnailSrc,totalDuration:this.formattedDuration,triggerFileDialog:this.__triggerFileDialog})})}}ye(Y0,"kgMenu",[{label:"Video",desc:"Upload and play a video file",Icon:v_,insertCommand:AE,insertParams:{triggerFileDialog:!0},matches:["video"],priority:13,shortcut:"/video"}]),ye(Y0,"uploadType","video");const mIe=t=>new Y0(t),eV=[Ns,Kb,Kt.HeadingNode,ru,Jb,Kt.QuoteNode,jc,dS,ei.ListNode,ei.ListItemNode,vS,ki.LinkNode,By,Nh,Au,Px,I0,Y0,ox,f0,W0,nx,rx,Lx,cx,Uy,ME,Dx,ax,sx,Zy,cw,Ix,Rx,ts,aa,ou,Fc];var tV={},Aa={};const Ui=()=>new Map,PE=t=>{const e=Ui();return t.forEach((n,i)=>{e.set(i,n)}),e},Kr=(t,e,n)=>{let i=t.get(e);return i===void 0&&t.set(e,i=n()),i},vIe=(t,e)=>{const n=[];for(const[i,r]of t)n.push(e(r,i));return n},bIe=(t,e)=>{for(const[n,i]of t)if(e(i,n))return!0;return!1},Hu=()=>new Set,DE=t=>t[t.length-1],kIe=(t,e)=>{for(let n=0;n<e.length;n++)t.push(e[n])},bl=Array.from,yIe=(t,e)=>{for(let n=0;n<t.length;n++)if(e(t[n],n,t))return!0;return!1},wIe=(t,e)=>{const n=new Array(t);for(let i=0;i<t;i++)n[i]=e(i,n);return n},IE=Array.isArray;class jx{constructor(){this._observers=Ui()}on(e,n){return Kr(this._observers,e,Hu).add(n),n}once(e,n){const i=(...r)=>{this.off(e,i),n(...r)};this.on(e,i)}off(e,n){const i=this._observers.get(e);i!==void 0&&(i.delete(n),i.size===0&&this._observers.delete(e))}emit(e,n){return bl((this._observers.get(e)||Ui()).values()).forEach(i=>i(...n))}destroy(){this._observers=Ui()}}class xIe{constructor(){this._observers=Ui()}on(e,n){Kr(this._observers,e,Hu).add(n)}once(e,n){const i=(...r)=>{this.off(e,i),n(...r)};this.on(e,i)}off(e,n){const i=this._observers.get(e);i!==void 0&&(i.delete(n),i.size===0&&this._observers.delete(e))}emit(e,n){return bl((this._observers.get(e)||Ui()).values()).forEach(i=>i(...n))}destroy(){this._observers=Ui()}}class _Ie extends jx{constructor(e,n){super(),this.doc=e,this.awareness=n}}const kl=Math.floor,Fx=Math.abs,LE=(t,e)=>t<e?t:e,mf=(t,e)=>t>e?t:e,OIe=Math.pow,nV=t=>t!==0?t<0:1/t<0,iV=1,rV=2,RE=4,jE=8,V0=32,yl=64,Qo=128,zx=31,FE=63,vf=127,SIe=2147483647,oV=Number.MAX_SAFE_INTEGER,CIe=Number.isInteger||(t=>typeof t=="number"&&isFinite(t)&&kl(t)===t),EIe=String.fromCharCode,TIe=t=>t.toLowerCase(),$Ie=/^\s*/g,MIe=t=>t.replace($Ie,""),NIe=/([A-Z])/g,sV=(t,e)=>MIe(t.replace(NIe,n=>`${e}${TIe(n)}`)),AIe=t=>{const e=unescape(encodeURIComponent(t)),n=e.length,i=new Uint8Array(n);for(let r=0;r<n;r++)i[r]=e.codePointAt(r);return i},X0=typeof TextEncoder<"u"?new TextEncoder:null,PIe=X0?t=>X0.encode(t):AIe;let G0=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});G0&&G0.decode(new Uint8Array).length===1&&(G0=null);const DIe=(t,e)=>wIe(e,()=>t).join("");class K0{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const Zi=()=>new K0,zE=t=>{let e=t.cpos;for(let n=0;n<t.bufs.length;n++)e+=t.bufs[n].length;return e},xn=t=>{const e=new Uint8Array(zE(t));let n=0;for(let i=0;i<t.bufs.length;i++){const r=t.bufs[i];e.set(r,n),n+=r.length}return e.set(new Uint8Array(t.cbuf.buffer,0,t.cpos),n),e},IIe=(t,e)=>{const n=t.cbuf.length;n-t.cpos<e&&(t.bufs.push(new Uint8Array(t.cbuf.buffer,0,t.cpos)),t.cbuf=new Uint8Array(mf(n,e)*2),t.cpos=0)},qi=(t,e)=>{const n=t.cbuf.length;t.cpos===n&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(n*2),t.cpos=0),t.cbuf[t.cpos++]=e},J0=qi,We=(t,e)=>{for(;e>vf;)qi(t,Qo|vf&e),e=kl(e/128);qi(t,vf&e)},Bx=(t,e)=>{const n=nV(e);for(n&&(e=-e),qi(t,(e>FE?Qo:0)|(n?yl:0)|FE&e),e=kl(e/64);e>0;)qi(t,(e>vf?Qo:0)|vf&e),e=kl(e/128)},BE=new Uint8Array(3e4),LIe=BE.length/3,RIe=(t,e)=>{if(e.length<LIe){const n=X0.encodeInto(e,BE).written||0;We(t,n);for(let i=0;i<n;i++)qi(t,BE[i])}else ci(t,PIe(e))},jIe=(t,e)=>{const n=unescape(encodeURIComponent(e)),i=n.length;We(t,i);for(let r=0;r<i;r++)qi(t,n.codePointAt(r))},Qu=X0&&X0.encodeInto?RIe:jIe,FIe=(t,e)=>e1(t,xn(e)),e1=(t,e)=>{const n=t.cbuf.length,i=t.cpos,r=LE(n-i,e.length),o=e.length-r;t.cbuf.set(e.subarray(0,r),i),t.cpos+=r,o>0&&(t.bufs.push(t.cbuf),t.cbuf=new Uint8Array(mf(n*2,o)),t.cbuf.set(e.subarray(r)),t.cpos=o)},ci=(t,e)=>{We(t,e.byteLength),e1(t,e)},WE=(t,e)=>{IIe(t,e);const n=new DataView(t.cbuf.buffer,t.cpos,e);return t.cpos+=e,n},zIe=(t,e)=>WE(t,4).setFloat32(0,e,!1),BIe=(t,e)=>WE(t,8).setFloat64(0,e,!1),WIe=(t,e)=>WE(t,8).setBigInt64(0,e,!1),aV=new DataView(new ArrayBuffer(4)),HIe=t=>(aV.setFloat32(0,t),aV.getFloat32(0)===t),t1=(t,e)=>{switch(typeof e){case"string":qi(t,119),Qu(t,e);break;case"number":CIe(e)&&Fx(e)<=SIe?(qi(t,125),Bx(t,e)):HIe(e)?(qi(t,124),zIe(t,e)):(qi(t,123),BIe(t,e));break;case"bigint":qi(t,122),WIe(t,e);break;case"object":if(e===null)qi(t,126);else if(IE(e)){qi(t,117),We(t,e.length);for(let n=0;n<e.length;n++)t1(t,e[n])}else if(e instanceof Uint8Array)qi(t,116),ci(t,e);else{qi(t,118);const n=Object.keys(e);We(t,n.length);for(let i=0;i<n.length;i++){const r=n[i];Qu(t,r),t1(t,e[r])}}break;case"boolean":qi(t,e?120:121);break;default:qi(t,127)}};class lV extends K0{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&We(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}}const uV=t=>{t.count>0&&(Bx(t.encoder,t.count===1?t.s:-t.s),t.count>1&&We(t.encoder,t.count-2))};class Wx{constructor(){this.encoder=new K0,this.s=0,this.count=0}write(e){this.s===e?this.count++:(uV(this),this.count=1,this.s=e)}toUint8Array(){return uV(this),xn(this.encoder)}}const cV=t=>{if(t.count>0){const e=t.diff*2+(t.count===1?0:1);Bx(t.encoder,e),t.count>1&&We(t.encoder,t.count-2)}};class HE{constructor(){this.encoder=new K0,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(cV(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return cV(this),xn(this.encoder)}}class QIe{constructor(){this.sarr=[],this.s="",this.lensE=new Wx}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(e.length)}toUint8Array(){const e=new K0;return this.sarr.push(this.s),this.s="",Qu(e,this.sarr.join("")),e1(e,this.lensE.toUint8Array()),xn(e)}}const Uu=t=>new Error(t),Pa=()=>{throw Uu("Method unimplemented")},go=()=>{throw Uu("Unexpected case")},fV=Uu("Unexpected end of array"),dV=Uu("Integer out of Range");class Hx{constructor(e){this.arr=e,this.pos=0}}const Yi=t=>new Hx(t),hV=t=>t.pos!==t.arr.length,UIe=(t,e)=>{const n=new Uint8Array(t.arr.buffer,t.pos+t.arr.byteOffset,e);return t.pos+=e,n},Tr=t=>UIe(t,gt(t)),Wh=t=>t.arr[t.pos++],gt=t=>{let e=0,n=1;const i=t.arr.length;for(;t.pos<i;){const r=t.arr[t.pos++];if(e=e+(r&vf)*n,n*=128,r<Qo)return e;if(e>oV)throw dV}throw fV},Qx=t=>{let e=t.arr[t.pos++],n=e&FE,i=64;const r=(e&yl)>0?-1:1;if(!(e&Qo))return r*n;const o=t.arr.length;for(;t.pos<o;){if(e=t.arr[t.pos++],n=n+(e&vf)*i,i*=128,e<Qo)return r*n;if(n>oV)throw dV}throw fV},wl=G0?t=>G0.decode(Tr(t)):t=>{let e=gt(t);if(e===0)return"";{let n=String.fromCodePoint(Wh(t));if(--e<100)for(;e--;)n+=String.fromCodePoint(Wh(t));else for(;e>0;){const i=e<1e4?e:1e4,r=t.arr.subarray(t.pos,t.pos+i);t.pos+=i,n+=String.fromCodePoint.apply(null,r),e-=i}return decodeURIComponent(escape(n))}},QE=(t,e)=>{const n=new DataView(t.arr.buffer,t.arr.byteOffset+t.pos,e);return t.pos+=e,n},ZIe=[t=>{},t=>null,Qx,t=>QE(t,4).getFloat32(0,!1),t=>QE(t,8).getFloat64(0,!1),t=>QE(t,8).getBigInt64(0,!1),t=>!1,t=>!0,wl,t=>{const e=gt(t),n={};for(let i=0;i<e;i++){const r=wl(t);n[r]=n1(t)}return n},t=>{const e=gt(t),n=[];for(let i=0;i<e;i++)n.push(n1(t));return n},Tr],n1=t=>ZIe[127-Wh(t)](t);class pV extends Hx{constructor(e,n){super(e),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),hV(this)?this.count=gt(this)+1:this.count=-1),this.count--,this.s}}class Ux extends Hx{constructor(e){super(e),this.s=0,this.count=0}read(){if(this.count===0){this.s=Qx(this);const e=nV(this.s);this.count=1,e&&(this.s=-this.s,this.count=gt(this)+2)}return this.count--,this.s}}class UE extends Hx{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const e=Qx(this),n=e&1;this.diff=kl(e/2),this.count=1,n&&(this.count=gt(this)+2)}return this.s+=this.diff,this.count--,this.s}}class qIe{constructor(e){this.decoder=new Ux(e),this.str=wl(this.decoder),this.spos=0}read(){const e=this.spos+this.decoder.read(),n=this.str.slice(this.spos,e);return this.spos=e,n}}class ZE{constructor(e,n){this.clock=e,this.len=n}}class Hh{constructor(){this.clients=new Map}}const bf=(t,e,n)=>e.clients.forEach((i,r)=>{const o=t.doc.store.clients.get(r);if(o!=null){const s=o[o.length-1],a=s.id.clock+s.length;for(let l=0,u=i[l];l<i.length&&u.clock<a;u=i[++l])XV(t,o,u.clock,u.len,n)}}),YIe=(t,e)=>{let n=0,i=t.length-1;for(;n<=i;){const r=kl((n+i)/2),o=t[r],s=o.clock;if(s<=e){if(e<s+o.len)return r;n=r+1}else i=r-1}return null},kf=(t,e)=>{const n=t.clients.get(e.client);return n!==void 0&&YIe(n,e.clock)!==null},qE=t=>{t.clients.forEach(e=>{e.sort((r,o)=>r.clock-o.clock);let n,i;for(n=1,i=1;n<e.length;n++){const r=e[i-1],o=e[n];r.clock+r.len>=o.clock?r.len=mf(r.len,o.clock+o.len-r.clock):(i<n&&(e[i]=o),i++)}e.length=i})},yf=t=>{const e=new Hh;for(let n=0;n<t.length;n++)t[n].clients.forEach((i,r)=>{if(!e.clients.has(r)){const o=i.slice();for(let s=n+1;s<t.length;s++)kIe(o,t[s].clients.get(r)||[]);e.clients.set(r,o)}});return qE(e),e},i1=(t,e,n,i)=>{Kr(t.clients,e,()=>[]).push(new ZE(n,i))},Zx=()=>new Hh,YE=t=>{const e=Zx();return t.clients.forEach((n,i)=>{const r=[];for(let o=0;o<n.length;o++){const s=n[o];if(s.deleted){const a=s.id.clock;let l=s.length;if(o+1<n.length)for(let u=n[o+1];o+1<n.length&&u.deleted;u=n[++o+1])l+=u.length;r.push(new ZE(a,l))}}r.length>0&&e.clients.set(i,r)}),e},Da=(t,e)=>{We(t.restEncoder,e.clients.size),bl(e.clients.entries()).sort((n,i)=>i[0]-n[0]).forEach(([n,i])=>{t.resetDsCurVal(),We(t.restEncoder,n);const r=i.length;We(t.restEncoder,r);for(let o=0;o<r;o++){const s=i[o];t.writeDsClock(s.clock),t.writeDsLen(s.len)}})},xl=t=>{const e=new Hh,n=gt(t.restDecoder);for(let i=0;i<n;i++){t.resetDsCurVal();const r=gt(t.restDecoder),o=gt(t.restDecoder);if(o>0){const s=Kr(e.clients,r,()=>[]);for(let a=0;a<o;a++)s.push(new ZE(t.readDsClock(),t.readDsLen()))}}return e},gV=(t,e,n)=>{const i=new Hh,r=gt(t.restDecoder);for(let o=0;o<r;o++){t.resetDsCurVal();const s=gt(t.restDecoder),a=gt(t.restDecoder),l=n.clients.get(s)||[],u=Qn(n,s);for(let f=0;f<a;f++){const d=t.readDsClock(),h=d+t.readDsLen();if(d<u){u<h&&i1(i,s,u,h-u);let g=bs(l,d),m=l[g];for(!m.deleted&&m.id.clock<d&&(l.splice(g+1,0,a2(e,m,d-m.id.clock)),g++);g<l.length&&(m=l[g++],m.id.clock<h);)m.deleted||(h<m.id.clock+m.length&&l.splice(g,0,a2(e,m,h-m.id.clock)),m.delete(e))}else i1(i,s,d,h-d)}}if(i.clients.size>0){const o=new Hs;return We(o.restEncoder,0),Da(o,i),o.toUint8Array()}return null},mV=(t,e)=>{if(t.clients.size!==e.clients.size)return!1;for(const[n,i]of t.clients.entries()){const r=e.clients.get(n);if(r===void 0||i.length!==r.length)return!1;for(let o=0;o<i.length;o++){const s=i[o],a=r[o];if(s.clock!==a.clock||s.len!==a.len)return!1}}return!0},VIe=crypto.getRandomValues.bind(crypto),vV=()=>VIe(new Uint32Array(1))[0],XIe="10000000-1000-4000-8000"+-1e11,GIe=()=>XIe.replace(/[018]/g,t=>(t^vV()&15>>t/4).toString(16)),Zu=Date.now,bV=t=>new Promise(t);Promise.all.bind(Promise);const kV=vV;class _l extends jx{constructor({guid:e=GIe(),collectionid:n=null,gc:i=!0,gcFilter:r=()=>!0,meta:o=null,autoLoad:s=!1,shouldLoad:a=!0}={}){super(),this.gc=i,this.gcFilter=r,this.clientID=kV(),this.guid=e,this.collectionid=n,this.share=new Map,this.store=new YV,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=a,this.autoLoad=s,this.meta=o,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=bV(u=>{this.on("load",()=>{this.isLoaded=!0,u(this)})});const l=()=>bV(u=>{const f=d=>{(d===void 0||d===!0)&&(this.off("sync",f),u())};this.on("sync",f)});this.on("sync",u=>{u===!1&&this.isSynced&&(this.whenSynced=l()),this.isSynced=u===void 0||u===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=l()}load(){const e=this._item;e!==null&&!this.shouldLoad&&Jt(e.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(bl(this.subdocs).map(e=>e.guid))}transact(e,n=null){return Jt(this,e,n)}get(e,n=Mi){const i=Kr(this.share,e,()=>{const o=new n;return o._integrate(this,null),o}),r=i.constructor;if(n!==Mi&&r!==n)if(r===Mi){const o=new n;o._map=i._map,i._map.forEach(s=>{for(;s!==null;s=s.left)s.parent=o}),o._start=i._start;for(let s=o._start;s!==null;s=s.right)s.parent=o;return o._length=i._length,this.share.set(e,o),o._integrate(this,null),o}else throw new Error(`Type with the name ${e} has already been defined with a different constructor`);return i}getArray(e=""){return this.get(e,Cl)}getText(e=""){return this.get(e,Of)}getMap(e=""){return this.get(e,Ku)}getXmlElement(e=""){return this.get(e,tc)}getXmlFragment(e=""){return this.get(e,ec)}toJSON(){const e={};return this.share.forEach((n,i)=>{e[i]=n.toJSON()}),e}destroy(){this.isDestroyed=!0,bl(this.subdocs).forEach(n=>n.destroy());const e=this._item;if(e!==null){this._item=null;const n=e.content;n.doc=new _l({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=e,Jt(e.parent.doc,i=>{const r=n.doc;e.deleted||i.subdocsAdded.add(r),i.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}const yV=t=>t===void 0?null:t;class KIe{constructor(){this.map=new Map}setItem(e,n){this.map.set(e,n)}getItem(e){return this.map.get(e)}}let wV=new KIe,VE=!0;try{typeof localStorage<"u"&&localStorage&&(wV=localStorage,VE=!1)}catch{}const xV=wV,JIe=t=>VE||addEventListener("storage",t),eLe=t=>VE||removeEventListener("storage",t),tLe=Object.assign,_V=Object.keys,nLe=(t,e)=>{for(const n in t)e(t[n],n)},iLe=(t,e)=>{const n=[];for(const i in t)n.push(e(t[i],i));return n},OV=t=>_V(t).length,SV=t=>_V(t).length,rLe=t=>{for(const e in t)return!1;return!0},oLe=(t,e)=>{for(const n in t)if(!e(t[n],n))return!1;return!0},CV=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),sLe=(t,e)=>t===e||SV(t)===SV(e)&&oLe(t,(n,i)=>(n!==void 0||CV(e,i))&&e[i]===n),aLe=Object.freeze,EV=t=>{for(const e in t){const n=t[e];(typeof n=="object"||typeof n=="function")&&EV(t[e])}return aLe(t)},TV=Symbol("Equality"),XE=(t,e,n=0)=>{try{for(;n<t.length;n++)t[n](...e)}finally{n<t.length&&XE(t,e,n+1)}},$V=t=>t,r1=(t,e)=>{if(t===e)return!0;if(t==null||e==null||t.constructor!==e.constructor)return!1;if(t[TV]!=null)return t[TV](e);switch(t.constructor){case ArrayBuffer:t=new Uint8Array(t),e=new Uint8Array(e);case Uint8Array:{if(t.byteLength!==e.byteLength)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;break}case Set:{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;break}case Map:{if(t.size!==e.size)return!1;for(const n of t.keys())if(!e.has(n)||!r1(t.get(n),e.get(n)))return!1;break}case Object:if(OV(t)!==OV(e))return!1;for(const n in t)if(!CV(t,n)||!r1(t[n],e[n]))return!1;break;case Array:if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!r1(t[n],e[n]))return!1;break;default:return!1}return!0},lLe=(t,e)=>e.includes(t),qu=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",MV=typeof window<"u"&&typeof document<"u"&&!qu;let Ia;const uLe=()=>{if(Ia===void 0)if(qu){Ia=Ui();const t=process.argv;let e=null;for(let n=0;n<t.length;n++){const i=t[n];i[0]==="-"?(e!==null&&Ia.set(e,""),e=i):e!==null&&(Ia.set(e,i),e=null)}e!==null&&Ia.set(e,"")}else typeof location=="object"?(Ia=Ui(),(location.search||"?").slice(1).split("&").forEach(t=>{if(t.length!==0){const[e,n]=t.split("=");Ia.set(`--${sV(e,"-")}`,n),Ia.set(`-${sV(e,"-")}`,n)}})):Ia=Ui();return Ia},GE=t=>uLe().has(t),qx=t=>yV(qu?process.env[t.toUpperCase().replaceAll("-","_")]:xV.getItem(t)),NV=t=>GE("--"+t)||qx(t)!==null;NV("production");const cLe=qu&&lLe(process.env.FORCE_COLOR,["true","1","2"])||!GE("--no-colors")&&!NV("no-color")&&(!qu||process.stdout.isTTY)&&(!qu||GE("--color")||qx("COLORTERM")!==null||(qx("TERM")||"").includes("color")),AV=t=>new Uint8Array(t),fLe=(t,e,n)=>new Uint8Array(t,e,n),dLe=t=>new Uint8Array(t),hLe=t=>{let e="";for(let n=0;n<t.byteLength;n++)e+=EIe(t[n]);return btoa(e)},pLe=t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString("base64"),gLe=t=>{const e=atob(t),n=AV(e.length);for(let i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},mLe=t=>{const e=Buffer.from(t,"base64");return fLe(e.buffer,e.byteOffset,e.byteLength)},vLe=MV?hLe:pLe,bLe=MV?gLe:mLe,kLe=t=>{const e=AV(t.byteLength);return e.set(t),e};class o1{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return gt(this.restDecoder)}readDsLen(){return gt(this.restDecoder)}}class vs extends o1{readLeftID(){return wt(gt(this.restDecoder),gt(this.restDecoder))}readRightID(){return wt(gt(this.restDecoder),gt(this.restDecoder))}readClient(){return gt(this.restDecoder)}readInfo(){return Wh(this.restDecoder)}readString(){return wl(this.restDecoder)}readParentInfo(){return gt(this.restDecoder)===1}readTypeRef(){return gt(this.restDecoder)}readLen(){return gt(this.restDecoder)}readAny(){return n1(this.restDecoder)}readBuf(){return kLe(Tr(this.restDecoder))}readJSON(){return JSON.parse(wl(this.restDecoder))}readKey(){return wl(this.restDecoder)}}class PV{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=gt(this.restDecoder),this.dsCurrVal}readDsLen(){const e=gt(this.restDecoder)+1;return this.dsCurrVal+=e,e}}class Uo extends PV{constructor(e){super(e),this.keys=[],gt(e),this.keyClockDecoder=new UE(Tr(e)),this.clientDecoder=new Ux(Tr(e)),this.leftClockDecoder=new UE(Tr(e)),this.rightClockDecoder=new UE(Tr(e)),this.infoDecoder=new pV(Tr(e),Wh),this.stringDecoder=new qIe(Tr(e)),this.parentInfoDecoder=new pV(Tr(e),Wh),this.typeRefDecoder=new Ux(Tr(e)),this.lenDecoder=new Ux(Tr(e))}readLeftID(){return new wf(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new wf(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return n1(this.restDecoder)}readBuf(){return Tr(this.restDecoder)}readJSON(){return n1(this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{const n=this.stringDecoder.read();return this.keys.push(n),n}}}class Qh{constructor(){this.restEncoder=Zi()}toUint8Array(){return xn(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){We(this.restEncoder,e)}writeDsLen(e){We(this.restEncoder,e)}}class Yu extends Qh{writeLeftID(e){We(this.restEncoder,e.client),We(this.restEncoder,e.clock)}writeRightID(e){We(this.restEncoder,e.client),We(this.restEncoder,e.clock)}writeClient(e){We(this.restEncoder,e)}writeInfo(e){J0(this.restEncoder,e)}writeString(e){Qu(this.restEncoder,e)}writeParentInfo(e){We(this.restEncoder,e?1:0)}writeTypeRef(e){We(this.restEncoder,e)}writeLen(e){We(this.restEncoder,e)}writeAny(e){t1(this.restEncoder,e)}writeBuf(e){ci(this.restEncoder,e)}writeJSON(e){Qu(this.restEncoder,JSON.stringify(e))}writeKey(e){Qu(this.restEncoder,e)}}class Yx{constructor(){this.restEncoder=Zi(),this.dsCurrVal=0}toUint8Array(){return xn(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){const n=e-this.dsCurrVal;this.dsCurrVal=e,We(this.restEncoder,n)}writeDsLen(e){e===0&&go(),We(this.restEncoder,e-1),this.dsCurrVal+=e}}class Hs extends Yx{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new HE,this.clientEncoder=new Wx,this.leftClockEncoder=new HE,this.rightClockEncoder=new HE,this.infoEncoder=new lV(J0),this.stringEncoder=new QIe,this.parentInfoEncoder=new lV(J0),this.typeRefEncoder=new Wx,this.lenEncoder=new Wx}toUint8Array(){const e=Zi();return We(e,0),ci(e,this.keyClockEncoder.toUint8Array()),ci(e,this.clientEncoder.toUint8Array()),ci(e,this.leftClockEncoder.toUint8Array()),ci(e,this.rightClockEncoder.toUint8Array()),ci(e,xn(this.infoEncoder)),ci(e,this.stringEncoder.toUint8Array()),ci(e,xn(this.parentInfoEncoder)),ci(e,this.typeRefEncoder.toUint8Array()),ci(e,this.lenEncoder.toUint8Array()),e1(e,xn(this.restEncoder)),xn(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(e?1:0)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){t1(this.restEncoder,e)}writeBuf(e){ci(this.restEncoder,e)}writeJSON(e){t1(this.restEncoder,e)}writeKey(e){const n=this.keyMap.get(e);n===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(n)}}const yLe=(t,e,n,i)=>{i=mf(i,e[0].id.clock);const r=bs(e,i);We(t.restEncoder,e.length-r),t.writeClient(n),We(t.restEncoder,i);const o=e[r];o.write(t,i-o.id.clock);for(let s=r+1;s<e.length;s++)e[s].write(t,0)},KE=(t,e,n)=>{const i=new Map;n.forEach((r,o)=>{Qn(e,o)>r&&i.set(o,r)}),a1(e).forEach((r,o)=>{n.has(o)||i.set(o,0)}),We(t.restEncoder,i.size),bl(i.entries()).sort((r,o)=>o[0]-r[0]).forEach(([r,o])=>{yLe(t,e.clients.get(r),r,o)})},wLe=(t,e)=>{const n=Ui(),i=gt(t.restDecoder);for(let r=0;r<i;r++){const o=gt(t.restDecoder),s=new Array(o),a=t.readClient();let l=gt(t.restDecoder);n.set(a,{i:0,refs:s});for(let u=0;u<o;u++){const f=t.readInfo();switch(zx&f){case 0:{const d=t.readLen();s[u]=new mo(wt(a,l),d),l+=d;break}case 10:{const d=gt(t.restDecoder);s[u]=new Jr(wt(a,l),d),l+=d;break}default:{const d=(f&(yl|Qo))===0,h=new Gt(wt(a,l),null,(f&Qo)===Qo?t.readLeftID():null,null,(f&yl)===yl?t.readRightID():null,d?t.readParentInfo()?e.get(t.readString()):t.readLeftID():null,d&&(f&V0)===V0?t.readString():null,YX(t,f));s[u]=h,l+=h.length}}}}return n},xLe=(t,e,n)=>{const i=[];let r=bl(n.keys()).sort((g,m)=>g-m);if(r.length===0)return null;const o=()=>{if(r.length===0)return null;let g=n.get(r[r.length-1]);for(;g.refs.length===g.i;)if(r.pop(),r.length>0)g=n.get(r[r.length-1]);else return null;return g};let s=o();if(s===null)return null;const a=new YV,l=new Map,u=(g,m)=>{const y=l.get(g);(y==null||y>m)&&l.set(g,m)};let f=s.refs[s.i++];const d=new Map,h=()=>{for(const g of i){const m=g.id.client,y=n.get(m);y?(y.i--,a.clients.set(m,y.refs.slice(y.i)),n.delete(m),y.i=0,y.refs=[]):a.clients.set(m,[g]),r=r.filter(x=>x!==m)}i.length=0};for(;;){if(f.constructor!==Jr){const m=Kr(d,f.id.client,()=>Qn(e,f.id.client))-f.id.clock;if(m<0)i.push(f),u(f.id.client,f.id.clock-1),h();else{const y=f.getMissing(t,e);if(y!==null){i.push(f);const x=n.get(y)||{refs:[],i:0};if(x.refs.length===x.i)u(y,Qn(e,y)),h();else{f=x.refs[x.i++];continue}}else(m===0||m<f.length)&&(f.integrate(t,m),d.set(f.id.client,f.id.clock+f.length))}}if(i.length>0)f=i.pop();else if(s!==null&&s.i<s.refs.length)f=s.refs[s.i++];else{if(s=o(),s===null)break;f=s.refs[s.i++]}}if(a.clients.size>0){const g=new Hs;return KE(g,a,new Map),We(g.restEncoder,0),{missing:l,update:g.toUint8Array()}}return null},_Le=(t,e)=>KE(t,e.doc.store,e.beforeState),JE=(t,e,n,i=new Uo(t))=>Jt(e,r=>{r.local=!1;let o=!1;const s=r.doc,a=s.store,l=wLe(i,s),u=xLe(r,a,l),f=a.pendingStructs;if(f){for(const[h,g]of f.missing)if(g<Qn(a,h)){o=!0;break}if(u){for(const[h,g]of u.missing){const m=f.missing.get(h);(m==null||m>g)&&f.missing.set(h,g)}f.update=l1([f.update,u.update])}}else a.pendingStructs=u;const d=gV(i,r,a);if(a.pendingDs){const h=new Uo(Yi(a.pendingDs));gt(h.restDecoder);const g=gV(h,r,a);d&&g?a.pendingDs=l1([d,g]):a.pendingDs=d||g}else a.pendingDs=d;if(o){const h=a.pendingStructs.update;a.pendingStructs=null,Vx(r.doc,h)}},n,!1),OLe=(t,e,n)=>JE(t,e,n,new vs(t)),Vx=(t,e,n,i=Uo)=>{const r=Yi(e);JE(r,t,n,new i(r))},DV=(t,e,n)=>Vx(t,e,n,vs),SLe=(t,e,n=new Map)=>{KE(t,e.store,n),Da(t,YE(e.store))},IV=(t,e=new Uint8Array([0]),n=new Hs)=>{const i=eT(e);SLe(n,t,i);const r=[n.toUint8Array()];if(t.store.pendingDs&&r.push(t.store.pendingDs),t.store.pendingStructs&&r.push(fT(t.store.pendingStructs.update,e)),r.length>1){if(n.constructor===Yu)return hX(r.map((o,s)=>s===0?o:bX(o)));if(n.constructor===Hs)return l1(r)}return r[0]},LV=(t,e)=>IV(t,e,new Yu),RV=t=>{const e=new Map,n=gt(t.restDecoder);for(let i=0;i<n;i++){const r=gt(t.restDecoder),o=gt(t.restDecoder);e.set(r,o)}return e},eT=t=>RV(new o1(Yi(t))),tT=(t,e)=>(We(t.restEncoder,e.size),bl(e.entries()).sort((n,i)=>i[0]-n[0]).forEach(([n,i])=>{We(t.restEncoder,n),We(t.restEncoder,i)}),t),CLe=(t,e)=>tT(t,a1(e.store)),ELe=(t,e=new Yx)=>(t instanceof Map?tT(e,t):CLe(e,t),e.toUint8Array()),jV=t=>ELe(t,new Qh);class TLe{constructor(){this.l=[]}}const FV=()=>new TLe,zV=(t,e)=>t.l.push(e),BV=(t,e)=>{const n=t.l,i=n.length;t.l=n.filter(r=>e!==r),i===t.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},WV=(t,e,n)=>XE(t.l,[e,n]);class wf{constructor(e,n){this.client=e,this.clock=n}}const xf=(t,e)=>t===e||t!==null&&e!==null&&t.client===e.client&&t.clock===e.clock,wt=(t,e)=>new wf(t,e),HV=(t,e)=>{We(t,e.client),We(t,e.clock)},QV=t=>wt(gt(t),gt(t)),nT=t=>{for(const[e,n]of t.doc.share.entries())if(n===t)return e;throw go()},s1=(t,e)=>{for(;e!==null;){if(e.parent===t)return!0;e=e.parent._item}return!1},$Le=t=>{const e=[];let n=t._start;for(;n;)e.push(n),n=n.right;console.log("Children: ",e),console.log("Children content: ",e.filter(i=>!i.deleted).map(i=>i.content))};class MLe{constructor(e,n=e.getMap("users")){const i=new Map;this.yusers=n,this.doc=e,this.clients=new Map,this.dss=i;const r=(o,s)=>{const a=o.get("ds"),l=o.get("ids"),u=f=>this.clients.set(f,s);a.observe(f=>{f.changes.added.forEach(d=>{d.content.getContent().forEach(h=>{h instanceof Uint8Array&&this.dss.set(s,yf([this.dss.get(s)||Zx(),xl(new o1(Yi(h)))]))})})}),this.dss.set(s,yf(a.map(f=>xl(new o1(Yi(f)))))),l.observe(f=>f.changes.added.forEach(d=>d.content.getContent().forEach(u))),l.forEach(u)};n.observe(o=>{o.keysChanged.forEach(s=>r(n.get(s),s))}),n.forEach(r)}setUserMapping(e,n,i,{filter:r=()=>!0}={}){const o=this.yusers;let s=o.get(i);s||(s=new Ku,s.set("ids",new Cl),s.set("ds",new Cl),o.set(i,s)),s.get("ids").push([n]),o.observe(a=>{setTimeout(()=>{const l=o.get(i);if(l!==s){s=l,this.clients.forEach((d,h)=>{i===d&&s.get("ids").push([h])});const u=new Qh,f=this.dss.get(i);f&&(Da(u,f),s.get("ds").push([u.toUint8Array()]))}},0)}),e.on("afterTransaction",a=>{setTimeout(()=>{const l=s.get("ds"),u=a.deleteSet;if(a.local&&u.clients.size>0&&r(a,u)){const f=new Qh;Da(f,u),l.push([f.toUint8Array()])}})})}getUserByClientId(e){return this.clients.get(e)||null}getUserByDeletedId(e){for(const[n,i]of this.dss.entries())if(kf(i,e))return n;return null}}class Xx{constructor(e,n,i,r=0){this.type=e,this.tname=n,this.item=i,this.assoc=r}}const NLe=t=>{const e={};return t.type&&(e.type=t.type),t.tname&&(e.tname=t.tname),t.item&&(e.item=t.item),t.assoc!=null&&(e.assoc=t.assoc),e},ALe=t=>new Xx(t.type==null?null:wt(t.type.client,t.type.clock),t.tname??null,t.item==null?null:wt(t.item.client,t.item.clock),t.assoc==null?0:t.assoc);class UV{constructor(e,n,i=0){this.type=e,this.index=n,this.assoc=i}}const PLe=(t,e,n=0)=>new UV(t,e,n),Gx=(t,e,n)=>{let i=null,r=null;return t._item===null?r=nT(t):i=wt(t._item.id.client,t._item.id.clock),new Xx(i,r,e,n)},DLe=(t,e,n=0)=>{let i=t._start;if(n<0){if(e===0)return Gx(t,null,n);e--}for(;i!==null;){if(!i.deleted&&i.countable){if(i.length>e)return Gx(t,wt(i.id.client,i.id.clock+e),n);e-=i.length}if(i.right===null&&n<0)return Gx(t,i.lastId,n);i=i.right}return Gx(t,null,n)},ILe=(t,e)=>{const{type:n,tname:i,item:r,assoc:o}=e;if(r!==null)We(t,0),HV(t,r);else if(i!==null)J0(t,1),Qu(t,i);else if(n!==null)J0(t,2),HV(t,n);else throw go();return Bx(t,o),t},LLe=t=>{const e=Zi();return ILe(e,t),xn(e)},RLe=t=>{let e=null,n=null,i=null;switch(gt(t)){case 0:i=QV(t);break;case 1:n=wl(t);break;case 2:e=QV(t)}const r=hV(t)?Qx(t):0;return new Xx(e,n,i,r)},jLe=t=>RLe(Yi(t)),FLe=(t,e)=>{const n=_f(t,e),i=e.clock-n.id.clock;return{item:n,diff:i}},zLe=(t,e,n=!0)=>{const i=e.store,r=t.item,o=t.type,s=t.tname,a=t.assoc;let l=null,u=0;if(r!==null){if(Qn(i,r.client)<=r.clock)return null;const f=n?yT(i,r):FLe(i,r),d=f.item;if(!(d instanceof Gt))return null;if(l=d.parent,l._item===null||!l._item.deleted){u=d.deleted||!d.countable?0:f.diff+(a>=0?0:1);let h=d.left;for(;h!==null;)!h.deleted&&h.countable&&(u+=h.length),h=h.left}}else{if(s!==null)l=e.get(s);else if(o!==null){if(Qn(i,o.client)<=o.clock)return null;const{item:f}=n?yT(i,o):{item:_f(i,o)};if(f instanceof Gt&&f.content instanceof ys)l=f.content.type;else return null}else throw go();a>=0?u=l._length:u=0}return PLe(l,u,t.assoc)},BLe=(t,e)=>t===e||t!==null&&e!==null&&t.tname===e.tname&&xf(t.item,e.item)&&xf(t.type,e.type)&&t.assoc===e.assoc;class iT{constructor(e,n){this.ds=e,this.sv=n}}const WLe=(t,e)=>{const n=t.ds.clients,i=e.ds.clients,r=t.sv,o=e.sv;if(r.size!==o.size||n.size!==i.size)return!1;for(const[s,a]of r.entries())if(o.get(s)!==a)return!1;for(const[s,a]of n.entries()){const l=i.get(s)||[];if(a.length!==l.length)return!1;for(let u=0;u<a.length;u++){const f=a[u],d=l[u];if(f.clock!==d.clock||f.len!==d.len)return!1}}return!0},ZV=(t,e=new Yx)=>(Da(e,t.ds),tT(e,t.sv),e.toUint8Array()),HLe=t=>ZV(t,new Qh),qV=(t,e=new PV(Yi(t)))=>new iT(xl(e),RV(e)),QLe=t=>qV(t,new o1(Yi(t))),rT=(t,e)=>new iT(t,e),ULe=rT(Zx(),new Map),ZLe=t=>rT(YE(t.store),a1(t.store)),Vu=(t,e)=>e===void 0?!t.deleted:e.sv.has(t.id.client)&&(e.sv.get(t.id.client)||0)>t.id.clock&&!kf(e.ds,t.id),oT=(t,e)=>{const n=Kr(t.meta,oT,Hu),i=t.doc.store;n.has(e)||(e.sv.forEach((r,o)=>{r<Qn(i,o)&&$r(t,wt(o,r))}),bf(t,e.ds,r=>{}),n.add(e))},qLe=(t,e,n=new _l)=>{if(t.gc)throw new Error("Garbage-collection must be disabled in `originDoc`!");const{sv:i,ds:r}=e,o=new Hs;return t.transact(s=>{let a=0;i.forEach(l=>{l>0&&a++}),We(o.restEncoder,a);for(const[l,u]of i){if(u===0)continue;u<Qn(t.store,l)&&$r(s,wt(l,u));const f=t.store.clients.get(l)||[],d=bs(f,u-1);We(o.restEncoder,d+1),o.writeClient(l),We(o.restEncoder,0);for(let h=0;h<=d;h++)f[h].write(o,0)}Da(o,r)}),Vx(n,o.toUint8Array(),"snapshot"),n},YLe=(t,e,n=Uo)=>{const i=new n(Yi(e)),r=new Xu(i,!1);for(let s=r.curr;s!==null;s=r.next())if((t.sv.get(s.id.client)||0)<s.id.clock+s.length)return!1;const o=yf([t.ds,xl(i)]);return mV(t.ds,o)},VLe=(t,e)=>YLe(t,e,vs);class YV{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const a1=t=>{const e=new Map;return t.clients.forEach((n,i)=>{const r=n[n.length-1];e.set(i,r.id.clock+r.length)}),e},Qn=(t,e)=>{const n=t.clients.get(e);if(n===void 0)return 0;const i=n[n.length-1];return i.id.clock+i.length},VV=(t,e)=>{let n=t.clients.get(e.id.client);if(n===void 0)n=[],t.clients.set(e.id.client,n);else{const i=n[n.length-1];if(i.id.clock+i.length!==e.id.clock)throw go()}n.push(e)},bs=(t,e)=>{let n=0,i=t.length-1,r=t[i],o=r.id.clock;if(o===e)return i;let s=kl(e/(o+r.length-1)*i);for(;n<=i;){if(r=t[s],o=r.id.clock,o<=e){if(e<o+r.length)return s;n=s+1}else i=s-1;s=kl((n+i)/2)}throw go()},_f=(t,e)=>{const n=t.clients.get(e.client);return n[bs(n,e.clock)]},sT=(t,e,n)=>{const i=bs(e,n),r=e[i];return r.id.clock<n&&r instanceof Gt?(e.splice(i+1,0,a2(t,r,n-r.id.clock)),i+1):i},$r=(t,e)=>{const n=t.doc.store.clients.get(e.client);return n[sT(t,n,e.clock)]},aT=(t,e,n)=>{const i=e.clients.get(n.client),r=bs(i,n.clock),o=i[r];return n.clock!==o.id.clock+o.length-1&&o.constructor!==mo&&i.splice(r+1,0,a2(t,o,n.clock-o.id.clock+1)),o},XLe=(t,e,n)=>{const i=t.clients.get(e.id.client);i[bs(i,e.id.clock)]=n},XV=(t,e,n,i,r)=>{if(i===0)return;const o=n+i;let s=sT(t,e,n),a;do a=e[s++],o<a.id.clock+a.length&&sT(t,e,o),r(a);while(s<e.length&&e[s].id.clock<o)};class GLe{constructor(e,n){this.left=e,this.right=n}}const Ol=(t,e)=>new GLe(t,e);typeof DOMParser<"u"&&new DOMParser;const KLe=t=>vIe(t,(e,n)=>`${n}:${e};`).join(""),Sl=Symbol,GV=Sl(),KV=Sl(),JLe=Sl(),eRe=Sl(),tRe=Sl(),JV=Sl(),nRe=Sl(),lT=Sl(),iRe=Sl(),rRe=t=>{var r;t.length===1&&((r=t[0])==null?void 0:r.constructor)===Function&&(t=t[0]());const e=[],n=[];let i=0;for(;i<t.length;i++){const o=t[i];if(o===void 0)break;if(o.constructor===String||o.constructor===Number)e.push(o);else if(o.constructor===Object)break}for(i>0&&n.push(e.join(""));i<t.length;i++){const o=t[i];o instanceof Symbol||n.push(o)}return n},oRe={[GV]:Ol("font-weight","bold"),[KV]:Ol("font-weight","normal"),[JLe]:Ol("color","blue"),[tRe]:Ol("color","green"),[eRe]:Ol("color","grey"),[JV]:Ol("color","red"),[nRe]:Ol("color","purple"),[lT]:Ol("color","orange"),[iRe]:Ol("color","black")},eX=cLe?t=>{var s;t.length===1&&((s=t[0])==null?void 0:s.constructor)===Function&&(t=t[0]());const e=[],n=[],i=Ui();let r=[],o=0;for(;o<t.length;o++){const a=t[o],l=oRe[a];if(l!==void 0)i.set(l.left,l.right);else{if(a===void 0)break;if(a.constructor===String||a.constructor===Number){const u=KLe(i);o>0||u.length>0?(e.push("%c"+a),n.push(u)):e.push(a)}else break}}for(o>0&&(r=n,r.unshift(e.join("")));o<t.length;o++){const a=t[o];a instanceof Symbol||r.push(a)}return r}:rRe,uT=(...t)=>{console.log(...eX(t)),nX.forEach(e=>e.print(t))},tX=(...t)=>{console.warn(...eX(t)),t.unshift(lT),nX.forEach(e=>e.print(t))},nX=Hu();class iX{constructor(e,n,i){this.doc=e,this.deleteSet=new Hh,this.beforeState=a1(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=n,this.meta=new Map,this.local=i,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}const rX=(t,e)=>e.deleteSet.clients.size===0&&!bIe(e.afterState,(n,i)=>e.beforeState.get(i)!==n)?!1:(qE(e.deleteSet),_Le(t,e),Da(t,e.deleteSet),!0),oX=(t,e,n)=>{const i=e._item;(i===null||i.id.clock<(t.beforeState.get(i.id.client)||0)&&!i.deleted)&&Kr(t.changed,e,Hu).add(n)},Kx=(t,e)=>{let n=t[e],i=t[e-1],r=e;for(;r>0;n=i,i=t[--r-1]){if(i.deleted===n.deleted&&i.constructor===n.constructor&&i.mergeWith(n)){n instanceof Gt&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,i);continue}break}const o=e-r;return o&&t.splice(e+1-o,o),o},sX=(t,e,n)=>{for(const[i,r]of t.clients.entries()){const o=e.clients.get(i);for(let s=r.length-1;s>=0;s--){const a=r[s],l=a.clock+a.len;for(let u=bs(o,a.clock),f=o[u];u<o.length&&f.id.clock<l;f=o[++u]){const d=o[u];if(a.clock+a.len<=d.id.clock)break;d instanceof Gt&&d.deleted&&!d.keep&&n(d)&&d.gc(e,!1)}}}},aX=(t,e)=>{t.clients.forEach((n,i)=>{const r=e.clients.get(i);for(let o=n.length-1;o>=0;o--){const s=n[o],a=LE(r.length-1,1+bs(r,s.clock+s.len-1));for(let l=a,u=r[l];l>0&&u.id.clock>=s.clock;u=r[l])l-=1+Kx(r,l)}})},sRe=(t,e,n)=>{sX(t,e,n),aX(t,e)},lX=(t,e)=>{if(e<t.length){const n=t[e],i=n.doc,r=i.store,o=n.deleteSet,s=n._mergeStructs;try{qE(o),n.afterState=a1(n.doc.store),i.emit("beforeObserverCalls",[n,i]);const a=[];n.changed.forEach((l,u)=>a.push(()=>{(u._item===null||!u._item.deleted)&&u._callObserver(n,l)})),a.push(()=>{n.changedParentTypes.forEach((l,u)=>{u._dEH.l.length>0&&(u._item===null||!u._item.deleted)&&(l=l.filter(f=>f.target._item===null||!f.target._item.deleted),l.forEach(f=>{f.currentTarget=u,f._path=null}),l.sort((f,d)=>f.path.length-d.path.length),a.push(()=>{WV(u._dEH,l,n)}))}),a.push(()=>i.emit("afterTransaction",[n,i])),a.push(()=>{n._needFormattingCleanup&&ARe(n)})}),XE(a,[])}finally{i.gc&&sX(o,r,i.gcFilter),aX(o,r),n.afterState.forEach((f,d)=>{const h=n.beforeState.get(d)||0;if(h!==f){const g=r.clients.get(d),m=mf(bs(g,h),1);for(let y=g.length-1;y>=m;)y-=1+Kx(g,y)}});for(let f=s.length-1;f>=0;f--){const{client:d,clock:h}=s[f].id,g=r.clients.get(d),m=bs(g,h);m+1<g.length&&Kx(g,m+1)>1||m>0&&Kx(g,m)}if(!n.local&&n.afterState.get(i.clientID)!==n.beforeState.get(i.clientID)&&(uT(lT,GV,"[yjs] ",KV,JV,"Changed the client-id because another client seems to be using it."),i.clientID=kV()),i.emit("afterTransactionCleanup",[n,i]),i._observers.has("update")){const f=new Yu;rX(f,n)&&i.emit("update",[f.toUint8Array(),n.origin,i,n])}if(i._observers.has("updateV2")){const f=new Hs;rX(f,n)&&i.emit("updateV2",[f.toUint8Array(),n.origin,i,n])}const{subdocsAdded:a,subdocsLoaded:l,subdocsRemoved:u}=n;(a.size>0||u.size>0||l.size>0)&&(a.forEach(f=>{f.clientID=i.clientID,f.collectionid==null&&(f.collectionid=i.collectionid),i.subdocs.add(f)}),u.forEach(f=>i.subdocs.delete(f)),i.emit("subdocs",[{loaded:l,added:a,removed:u},i,n]),u.forEach(f=>f.destroy())),t.length<=e+1?(i._transactionCleanups=[],i.emit("afterAllTransactions",[i,t])):lX(t,e+1)}}},Jt=(t,e,n=null,i=!0)=>{const r=t._transactionCleanups;let o=!1,s=null;t._transaction===null&&(o=!0,t._transaction=new iX(t,n,i),r.push(t._transaction),r.length===1&&t.emit("beforeAllTransactions",[t]),t.emit("beforeTransaction",[t._transaction,t]));try{s=e(t._transaction)}finally{if(o){const a=t._transaction===r[0];t._transaction=null,a&&lX(r,0)}}return s};class aRe{constructor(e,n){this.insertions=n,this.deletions=e,this.meta=new Map}}const uX=(t,e,n)=>{bf(t,n.deletions,i=>{i instanceof Gt&&e.scope.some(r=>r===t.doc||s1(r,i))&&wT(i,!1)})},cX=(t,e,n)=>{let i=null;const r=t.doc,o=t.scope;Jt(r,a=>{for(;e.length>0&&t.currStackItem===null;){const l=r.store,u=e.pop(),f=new Set,d=[];let h=!1;bf(a,u.insertions,g=>{if(g instanceof Gt){if(g.redone!==null){let{item:m,diff:y}=yT(l,g.id);y>0&&(m=$r(a,wt(m.id.client,m.id.clock+y))),g=m}!g.deleted&&o.some(m=>m===a.doc||s1(m,g))&&d.push(g)}}),bf(a,u.deletions,g=>{g instanceof Gt&&o.some(m=>m===a.doc||s1(m,g))&&!kf(u.insertions,g.id)&&f.add(g)}),f.forEach(g=>{h=qX(a,g,f,u.insertions,t.ignoreRemoteMapChanges,t)!==null||h});for(let g=d.length-1;g>=0;g--){const m=d[g];t.deleteFilter(m)&&(m.delete(a),h=!0)}t.currStackItem=h?u:null}a.changed.forEach((l,u)=>{l.has(null)&&u._searchMarker&&(u._searchMarker.length=0)}),i=a},t);const s=t.currStackItem;if(s!=null){const a=i.changedParentTypes;t.emit("stack-item-popped",[{stackItem:s,type:n,changedParentTypes:a,origin:t},t]),t.currStackItem=null}return s};class lRe extends jx{constructor(e,{captureTimeout:n=500,captureTransaction:i=l=>!0,deleteFilter:r=()=>!0,trackedOrigins:o=new Set([null]),ignoreRemoteMapChanges:s=!1,doc:a=IE(e)?e[0].doc:e instanceof _l?e:e.doc}={}){super(),this.scope=[],this.doc=a,this.addToScope(e),this.deleteFilter=r,o.add(this),this.trackedOrigins=o,this.captureTransaction=i,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=s,this.captureTimeout=n,this.afterTransactionHandler=l=>{if(!this.captureTransaction(l)||!this.scope.some(x=>l.changedParentTypes.has(x)||x===this.doc)||!this.trackedOrigins.has(l.origin)&&(!l.origin||!this.trackedOrigins.has(l.origin.constructor)))return;const u=this.undoing,f=this.redoing,d=u?this.redoStack:this.undoStack;u?this.stopCapturing():f||this.clear(!1,!0);const h=new Hh;l.afterState.forEach((x,_)=>{const S=l.beforeState.get(_)||0,C=x-S;C>0&&i1(h,_,S,C)});const g=Zu();let m=!1;if(this.lastChange>0&&g-this.lastChange<this.captureTimeout&&d.length>0&&!u&&!f){const x=d[d.length-1];x.deletions=yf([x.deletions,l.deleteSet]),x.insertions=yf([x.insertions,h])}else d.push(new aRe(l.deleteSet,h)),m=!0;!u&&!f&&(this.lastChange=g),bf(l,l.deleteSet,x=>{x instanceof Gt&&this.scope.some(_=>_===l.doc||s1(_,x))&&wT(x,!0)});const y=[{stackItem:d[d.length-1],origin:l.origin,type:u?"redo":"undo",changedParentTypes:l.changedParentTypes},this];m?this.emit("stack-item-added",y):this.emit("stack-item-updated",y)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(e){const n=new Set(this.scope);e=IE(e)?e:[e],e.forEach(i=>{n.has(i)||(n.add(i),(i instanceof Mi?i.doc!==this.doc:i!==this.doc)&&tX("[yjs#509] Not same Y.Doc"),this.scope.push(i))})}addTrackedOrigin(e){this.trackedOrigins.add(e)}removeTrackedOrigin(e){this.trackedOrigins.delete(e)}clear(e=!0,n=!0){(e&&this.canUndo()||n&&this.canRedo())&&this.doc.transact(i=>{e&&(this.undoStack.forEach(r=>uX(i,this,r)),this.undoStack=[]),n&&(this.redoStack.forEach(r=>uX(i,this,r)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:e,redoStackCleared:n}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let e;try{e=cX(this,this.undoStack,"undo")}finally{this.undoing=!1}return e}redo(){this.redoing=!0;let e;try{e=cX(this,this.redoStack,"redo")}finally{this.redoing=!1}return e}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}function*uRe(t){const e=gt(t.restDecoder);for(let n=0;n<e;n++){const i=gt(t.restDecoder),r=t.readClient();let o=gt(t.restDecoder);for(let s=0;s<i;s++){const a=t.readInfo();if(a===10){const l=gt(t.restDecoder);yield new Jr(wt(r,o),l),o+=l}else if(zx&a){const l=(a&(yl|Qo))===0,u=new Gt(wt(r,o),null,(a&Qo)===Qo?t.readLeftID():null,null,(a&yl)===yl?t.readRightID():null,l?t.readParentInfo()?t.readString():t.readLeftID():null,l&&(a&V0)===V0?t.readString():null,YX(t,a));yield u,o+=u.length}else{const l=t.readLen();yield new mo(wt(r,o),l),o+=l}}}}class Xu{constructor(e,n){this.gen=uRe(e),this.curr=null,this.done=!1,this.filterSkips=n,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===Jr);return this.curr}}const cRe=t=>fX(t,vs),fX=(t,e=Uo)=>{const n=[],i=new e(Yi(t)),r=new Xu(i,!1);for(let s=r.curr;s!==null;s=r.next())n.push(s);uT("Structs: ",n);const o=xl(i);uT("DeleteSet: ",o)},fRe=t=>dX(t,vs),dX=(t,e=Uo)=>{const n=[],i=new e(Yi(t)),r=new Xu(i,!1);for(let o=r.curr;o!==null;o=r.next())n.push(o);return{structs:n,ds:xl(i)}};class cT{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}}const hX=t=>l1(t,vs,Yu),pX=(t,e=Yx,n=Uo)=>{const i=new e,r=new Xu(new n(Yi(t)),!1);let o=r.curr;if(o!==null){let s=0,a=o.id.client,l=o.id.clock!==0,u=l?0:o.id.clock+o.length;for(;o!==null;o=r.next())a!==o.id.client&&(u!==0&&(s++,We(i.restEncoder,a),We(i.restEncoder,u)),a=o.id.client,u=0,l=o.id.clock!==0),o.constructor===Jr&&(l=!0),l||(u=o.id.clock+o.length);u!==0&&(s++,We(i.restEncoder,a),We(i.restEncoder,u));const f=Zi();return We(f,s),FIe(f,i.restEncoder),i.restEncoder=f,i.toUint8Array()}else return We(i.restEncoder,0),i.toUint8Array()},dRe=t=>pX(t,Qh,vs),gX=(t,e=Uo)=>{const n=new Map,i=new Map,r=new Xu(new e(Yi(t)),!1);let o=r.curr;if(o!==null){let s=o.id.client,a=o.id.clock;for(n.set(s,a);o!==null;o=r.next())s!==o.id.client&&(i.set(s,a),n.set(o.id.client,o.id.clock),s=o.id.client),a=o.id.clock+o.length;i.set(s,a)}return{from:n,to:i}},hRe=t=>gX(t,vs),pRe=(t,e)=>{if(t.constructor===mo){const{client:n,clock:i}=t.id;return new mo(wt(n,i+e),t.length-e)}else if(t.constructor===Jr){const{client:n,clock:i}=t.id;return new Jr(wt(n,i+e),t.length-e)}else{const n=t,{client:i,clock:r}=n.id;return new Gt(wt(i,r+e),null,wt(i,r+e-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(e))}},l1=(t,e=Uo,n=Hs)=>{if(t.length===1)return t[0];const i=t.map(f=>new e(Yi(f)));let r=i.map(f=>new Xu(f,!0)),o=null;const s=new n,a=new cT(s);for(;r=r.filter(h=>h.curr!==null),r.sort((h,g)=>{if(h.curr.id.client===g.curr.id.client){const m=h.curr.id.clock-g.curr.id.clock;return m===0?h.curr.constructor===g.curr.constructor?0:h.curr.constructor===Jr?1:-1:m}else return g.curr.id.client-h.curr.id.client}),r.length!==0;){const f=r[0],d=f.curr.id.client;if(o!==null){let h=f.curr,g=!1;for(;h!==null&&h.id.clock+h.length<=o.struct.id.clock+o.struct.length&&h.id.client>=o.struct.id.client;)h=f.next(),g=!0;if(h===null||h.id.client!==d||g&&h.id.clock>o.struct.id.clock+o.struct.length)continue;if(d!==o.struct.id.client)Gu(a,o.struct,o.offset),o={struct:h,offset:0},f.next();else if(o.struct.id.clock+o.struct.length<h.id.clock)if(o.struct.constructor===Jr)o.struct.length=h.id.clock+h.length-o.struct.id.clock;else{Gu(a,o.struct,o.offset);const m=h.id.clock-o.struct.id.clock-o.struct.length;o={struct:new Jr(wt(d,o.struct.id.clock+o.struct.length),m),offset:0}}else{const m=o.struct.id.clock+o.struct.length-h.id.clock;m>0&&(o.struct.constructor===Jr?o.struct.length-=m:h=pRe(h,m)),o.struct.mergeWith(h)||(Gu(a,o.struct,o.offset),o={struct:h,offset:0},f.next())}}else o={struct:f.curr,offset:0},f.next();for(let h=f.curr;h!==null&&h.id.client===d&&h.id.clock===o.struct.id.clock+o.struct.length&&h.constructor!==Jr;h=f.next())Gu(a,o.struct,o.offset),o={struct:h,offset:0}}o!==null&&(Gu(a,o.struct,o.offset),o=null),dT(a);const l=i.map(f=>xl(f)),u=yf(l);return Da(s,u),s.toUint8Array()},fT=(t,e,n=Uo,i=Hs)=>{const r=eT(e),o=new i,s=new cT(o),a=new n(Yi(t)),l=new Xu(a,!1);for(;l.curr;){const f=l.curr,d=f.id.client,h=r.get(d)||0;if(l.curr.constructor===Jr){l.next();continue}if(f.id.clock+f.length>h)for(Gu(s,f,mf(h-f.id.clock,0)),l.next();l.curr&&l.curr.id.client===d;)Gu(s,l.curr,0),l.next();else for(;l.curr&&l.curr.id.client===d&&l.curr.id.clock+l.curr.length<=h;)l.next()}dT(s);const u=xl(a);return Da(o,u),o.toUint8Array()},gRe=(t,e)=>fT(t,e,vs,Yu),mX=t=>{t.written>0&&(t.clientStructs.push({written:t.written,restEncoder:xn(t.encoder.restEncoder)}),t.encoder.restEncoder=Zi(),t.written=0)},Gu=(t,e,n)=>{t.written>0&&t.currClient!==e.id.client&&mX(t),t.written===0&&(t.currClient=e.id.client,t.encoder.writeClient(e.id.client),We(t.encoder.restEncoder,e.id.clock+n)),e.write(t.encoder,n),t.written++},dT=t=>{mX(t);const e=t.encoder.restEncoder;We(e,t.clientStructs.length);for(let n=0;n<t.clientStructs.length;n++){const i=t.clientStructs[n];We(e,i.written),e1(e,i.restEncoder)}},Jx=(t,e,n,i)=>{const r=new n(Yi(t)),o=new Xu(r,!1),s=new i,a=new cT(s);for(let u=o.curr;u!==null;u=o.next())Gu(a,e(u),0);dT(a);const l=xl(r);return Da(s,l),s.toUint8Array()},vX=({formatting:t=!0,subdocs:e=!0,yxml:n=!0}={})=>{let i=0;const r=Ui(),o=Ui(),s=Ui(),a=Ui();return a.set(null,null),l=>{switch(l.constructor){case mo:case Jr:return l;case Gt:{const u=l,f=u.content;switch(f.constructor){case Cf:break;case ys:{if(n){const d=f.type;d instanceof tc&&(d.nodeName=Kr(o,d.nodeName,()=>"node-"+i)),d instanceof Zh&&(d.hookName=Kr(o,d.hookName,()=>"hook-"+i))}break}case Tl:{const d=f;d.arr=d.arr.map(()=>i);break}case Sf:{const d=f;d.content=new Uint8Array([i]);break}case Ef:{const d=f;e&&(d.opts={},d.doc.guid=i+"");break}case El:{const d=f;d.embed={};break}case fi:{const d=f;t&&(d.key=Kr(s,d.key,()=>i+""),d.value=Kr(a,d.value,()=>({i})));break}case qh:{const d=f;d.arr=d.arr.map(()=>i);break}case ks:{const d=f;d.str=DIe(i%10+"",d.str.length);break}default:go()}return u.parentSub&&(u.parentSub=Kr(r,u.parentSub,()=>i+"")),i++,l}default:go()}}},mRe=(t,e)=>Jx(t,vX(e),vs,Yu),vRe=(t,e)=>Jx(t,vX(e),Uo,Hs),bRe=t=>Jx(t,$V,vs,Hs),bX=t=>Jx(t,$V,Uo,Yu),kX="You must not compute changes after the event-handler fired.";class u1{constructor(e,n){this.target=e,this.currentTarget=e,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=kRe(this.currentTarget,this.target))}deletes(e){return kf(this.transaction.deleteSet,e.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw Uu(kX);const e=new Map,n=this.target;this.transaction.changed.get(n).forEach(r=>{if(r!==null){const o=n._map.get(r);let s,a;if(this.adds(o)){let l=o.left;for(;l!==null&&this.adds(l);)l=l.left;if(this.deletes(o))if(l!==null&&this.deletes(l))s="delete",a=DE(l.content.getContent());else return;else l!==null&&this.deletes(l)?(s="update",a=DE(l.content.getContent())):(s="add",a=void 0)}else if(this.deletes(o))s="delete",a=DE(o.content.getContent());else return;e.set(r,{action:s,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(e===null){if(this.transaction.doc._transactionCleanups.length===0)throw Uu(kX);const n=this.target,i=Hu(),r=Hu(),o=[];if(e={added:i,deleted:r,delta:o,keys:this.keys},this.transaction.changed.get(n).has(null)){let a=null;const l=()=>{a&&o.push(a)};for(let u=n._start;u!==null;u=u.right)u.deleted?this.deletes(u)&&!this.adds(u)&&((a===null||a.delete===void 0)&&(l(),a={delete:0}),a.delete+=u.length,r.add(u)):this.adds(u)?((a===null||a.insert===void 0)&&(l(),a={insert:[]}),a.insert=a.insert.concat(u.content.getContent()),i.add(u)):((a===null||a.retain===void 0)&&(l(),a={retain:0}),a.retain+=u.length);a!==null&&a.retain===void 0&&l()}this._changes=e}return e}}const kRe=(t,e)=>{const n=[];for(;e._item!==null&&e!==t;){if(e._item.parentSub!==null)n.unshift(e._item.parentSub);else{let i=0,r=e._item.parent._start;for(;r!==e._item&&r!==null;)!r.deleted&&r.countable&&(i+=r.length),r=r.right;n.unshift(i)}e=e._item.parent}return n},yX=t=>({[Symbol.iterator](){return this},next:t}),yRe=(t,e)=>yX(()=>{let n;do n=t.next();while(!n.done&&!e(n.value));return n}),hT=(t,e)=>yX(()=>{const{done:n,value:i}=t.next();return{done:n,value:n?void 0:e(i)}}),fr=()=>{tX("Invalid access: Add Yjs type to a document before reading data.")},wX=80;let pT=0;class wRe{constructor(e,n){e.marker=!0,this.p=e,this.index=n,this.timestamp=pT++}}const xRe=t=>{t.timestamp=pT++},xX=(t,e,n)=>{t.p.marker=!1,t.p=e,e.marker=!0,t.index=n,t.timestamp=pT++},_Re=(t,e,n)=>{if(t.length>=wX){const i=t.reduce((r,o)=>r.timestamp<o.timestamp?r:o);return xX(i,e,n),i}else{const i=new wRe(e,n);return t.push(i),i}},e2=(t,e)=>{if(t._start===null||e===0||t._searchMarker===null)return null;const n=t._searchMarker.length===0?null:t._searchMarker.reduce((o,s)=>Fx(e-o.index)<Fx(e-s.index)?o:s);let i=t._start,r=0;for(n!==null&&(i=n.p,r=n.index,xRe(n));i.right!==null&&r<e;){if(!i.deleted&&i.countable){if(e<r+i.length)break;r+=i.length}i=i.right}for(;i.left!==null&&r>e;)i=i.left,!i.deleted&&i.countable&&(r-=i.length);for(;i.left!==null&&i.left.id.client===i.id.client&&i.left.id.clock+i.left.length===i.id.clock;)i=i.left,!i.deleted&&i.countable&&(r-=i.length);return n!==null&&Fx(n.index-r)<i.parent.length/wX?(xX(n,i,r),n):_Re(t._searchMarker,i,r)},c1=(t,e,n)=>{for(let i=t.length-1;i>=0;i--){const r=t[i];if(n>0){let o=r.p;for(o.marker=!1;o&&(o.deleted||!o.countable);)o=o.left,o&&!o.deleted&&o.countable&&(r.index-=o.length);if(o===null||o.marker===!0){t.splice(i,1);continue}r.p=o,o.marker=!0}(e<r.index||n>0&&e===r.index)&&(r.index=mf(e,r.index+n))}},ORe=t=>{t.doc??fr();let e=t._start;const n=[];for(;e;)n.push(e),e=e.right;return n},t2=(t,e,n)=>{const i=t,r=e.changedParentTypes;for(;Kr(r,t,()=>[]).push(n),t._item!==null;)t=t._item.parent;WV(i._eH,n,e)};class Mi{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=FV(),this._dEH=FV(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,n){this.doc=e,this._item=n}_copy(){throw Pa()}clone(){throw Pa()}_write(e){}get _first(){let e=this._start;for(;e!==null&&e.deleted;)e=e.right;return e}_callObserver(e,n){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){zV(this._eH,e)}observeDeep(e){zV(this._dEH,e)}unobserve(e){BV(this._eH,e)}unobserveDeep(e){BV(this._dEH,e)}toJSON(){}}const _X=(t,e,n)=>{t.doc??fr(),e<0&&(e=t._length+e),n<0&&(n=t._length+n);let i=n-e;const r=[];let o=t._start;for(;o!==null&&i>0;){if(o.countable&&!o.deleted){const s=o.content.getContent();if(s.length<=e)e-=s.length;else{for(let a=e;a<s.length&&i>0;a++)r.push(s[a]),i--;e=0}}o=o.right}return r},OX=t=>{t.doc??fr();const e=[];let n=t._start;for(;n!==null;){if(n.countable&&!n.deleted){const i=n.content.getContent();for(let r=0;r<i.length;r++)e.push(i[r])}n=n.right}return e},SRe=(t,e)=>{const n=[];let i=t._start;for(;i!==null;){if(i.countable&&Vu(i,e)){const r=i.content.getContent();for(let o=0;o<r.length;o++)n.push(r[o])}i=i.right}return n},f1=(t,e)=>{let n=0,i=t._start;for(t.doc??fr();i!==null;){if(i.countable&&!i.deleted){const r=i.content.getContent();for(let o=0;o<r.length;o++)e(r[o],n++,t)}i=i.right}},SX=(t,e)=>{const n=[];return f1(t,(i,r)=>{n.push(e(i,r,t))}),n},CRe=t=>{let e=t._start,n=null,i=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;e!==null&&e.deleted;)e=e.right;if(e===null)return{done:!0,value:void 0};n=e.content.getContent(),i=0,e=e.right}const r=n[i++];return n.length<=i&&(n=null),{done:!1,value:r}}}},CX=(t,e)=>{t.doc??fr();const n=e2(t,e);let i=t._start;for(n!==null&&(i=n.p,e-=n.index);i!==null;i=i.right)if(!i.deleted&&i.countable){if(e<i.length)return i.content.getContent()[e];e-=i.length}},n2=(t,e,n,i)=>{let r=n;const o=t.doc,s=o.clientID,a=o.store,l=n===null?e._start:n.right;let u=[];const f=()=>{u.length>0&&(r=new Gt(wt(s,Qn(a,s)),r,r&&r.lastId,l,l&&l.id,e,null,new Tl(u)),r.integrate(t,0),u=[])};i.forEach(d=>{if(d===null)u.push(d);else switch(d.constructor){case Number:case Object:case Boolean:case Array:case String:u.push(d);break;default:switch(f(),d.constructor){case Uint8Array:case ArrayBuffer:r=new Gt(wt(s,Qn(a,s)),r,r&&r.lastId,l,l&&l.id,e,null,new Sf(new Uint8Array(d))),r.integrate(t,0);break;case _l:r=new Gt(wt(s,Qn(a,s)),r,r&&r.lastId,l,l&&l.id,e,null,new Ef(d)),r.integrate(t,0);break;default:if(d instanceof Mi)r=new Gt(wt(s,Qn(a,s)),r,r&&r.lastId,l,l&&l.id,e,null,new ys(d)),r.integrate(t,0);else throw new Error("Unexpected content type in insert operation")}}}),f()},EX=()=>Uu("Length exceeded!"),TX=(t,e,n,i)=>{if(n>e._length)throw EX();if(n===0)return e._searchMarker&&c1(e._searchMarker,n,i.length),n2(t,e,null,i);const r=n,o=e2(e,n);let s=e._start;for(o!==null&&(s=o.p,n-=o.index,n===0&&(s=s.prev,n+=s&&s.countable&&!s.deleted?s.length:0));s!==null;s=s.right)if(!s.deleted&&s.countable){if(n<=s.length){n<s.length&&$r(t,wt(s.id.client,s.id.clock+n));break}n-=s.length}return e._searchMarker&&c1(e._searchMarker,r,i.length),n2(t,e,s,i)},ERe=(t,e,n)=>{let r=(e._searchMarker||[]).reduce((o,s)=>s.index>o.index?s:o,{index:0,p:e._start}).p;if(r)for(;r.right;)r=r.right;return n2(t,e,r,n)},$X=(t,e,n,i)=>{if(i===0)return;const r=n,o=i,s=e2(e,n);let a=e._start;for(s!==null&&(a=s.p,n-=s.index);a!==null&&n>0;a=a.right)!a.deleted&&a.countable&&(n<a.length&&$r(t,wt(a.id.client,a.id.clock+n)),n-=a.length);for(;i>0&&a!==null;)a.deleted||(i<a.length&&$r(t,wt(a.id.client,a.id.clock+i)),a.delete(t),i-=a.length),a=a.right;if(i>0)throw EX();e._searchMarker&&c1(e._searchMarker,r,-o+i)},i2=(t,e,n)=>{const i=e._map.get(n);i!==void 0&&i.delete(t)},gT=(t,e,n,i)=>{const r=e._map.get(n)||null,o=t.doc,s=o.clientID;let a;if(i==null)a=new Tl([i]);else switch(i.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:a=new Tl([i]);break;case Uint8Array:a=new Sf(i);break;case _l:a=new Ef(i);break;default:if(i instanceof Mi)a=new ys(i);else throw new Error("Unexpected content type")}new Gt(wt(s,Qn(o.store,s)),r,r&&r.lastId,null,null,e,n,a).integrate(t,0)},mT=(t,e)=>{t.doc??fr();const n=t._map.get(e);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},MX=t=>{const e={};return t.doc??fr(),t._map.forEach((n,i)=>{n.deleted||(e[i]=n.content.getContent()[n.length-1])}),e},NX=(t,e)=>{t.doc??fr();const n=t._map.get(e);return n!==void 0&&!n.deleted},TRe=(t,e,n)=>{let i=t._map.get(e)||null;for(;i!==null&&(!n.sv.has(i.id.client)||i.id.clock>=(n.sv.get(i.id.client)||0));)i=i.left;return i!==null&&Vu(i,n)?i.content.getContent()[i.length-1]:void 0},AX=(t,e)=>{const n={};return t._map.forEach((i,r)=>{let o=i;for(;o!==null&&(!e.sv.has(o.id.client)||o.id.clock>=(e.sv.get(o.id.client)||0));)o=o.left;o!==null&&Vu(o,e)&&(n[r]=o.content.getContent()[o.length-1])}),n},r2=t=>(t.doc??fr(),yRe(t._map.entries(),e=>!e[1].deleted));class PX extends u1{}class Cl extends Mi{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const n=new Cl;return n.push(e),n}_integrate(e,n){super._integrate(e,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Cl}clone(){const e=new Cl;return e.insert(0,this.toArray().map(n=>n instanceof Mi?n.clone():n)),e}get length(){return this.doc??fr(),this._length}_callObserver(e,n){super._callObserver(e,n),t2(this,e,new PX(this,e))}insert(e,n){this.doc!==null?Jt(this.doc,i=>{TX(i,this,e,n)}):this._prelimContent.splice(e,0,...n)}push(e){this.doc!==null?Jt(this.doc,n=>{ERe(n,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,n=1){this.doc!==null?Jt(this.doc,i=>{$X(i,this,e,n)}):this._prelimContent.splice(e,n)}get(e){return CX(this,e)}toArray(){return OX(this)}slice(e=0,n=this.length){return _X(this,e,n)}toJSON(){return this.map(e=>e instanceof Mi?e.toJSON():e)}map(e){return SX(this,e)}forEach(e){f1(this,e)}[Symbol.iterator](){return CRe(this)}_write(e){e.writeTypeRef(VRe)}}const $Re=t=>new Cl;class DX extends u1{constructor(e,n,i){super(e,n),this.keysChanged=i}}class Ku extends Mi{constructor(e){super(),this._prelimContent=null,e===void 0?this._prelimContent=new Map:this._prelimContent=new Map(e)}_integrate(e,n){super._integrate(e,n),this._prelimContent.forEach((i,r)=>{this.set(r,i)}),this._prelimContent=null}_copy(){return new Ku}clone(){const e=new Ku;return this.forEach((n,i)=>{e.set(i,n instanceof Mi?n.clone():n)}),e}_callObserver(e,n){t2(this,e,new DX(this,e,n))}toJSON(){this.doc??fr();const e={};return this._map.forEach((n,i)=>{if(!n.deleted){const r=n.content.getContent()[n.length-1];e[i]=r instanceof Mi?r.toJSON():r}}),e}get size(){return[...r2(this)].length}keys(){return hT(r2(this),e=>e[0])}values(){return hT(r2(this),e=>e[1].content.getContent()[e[1].length-1])}entries(){return hT(r2(this),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this.doc??fr(),this._map.forEach((n,i)=>{n.deleted||e(n.content.getContent()[n.length-1],i,this)})}[Symbol.iterator](){return this.entries()}delete(e){this.doc!==null?Jt(this.doc,n=>{i2(n,this,e)}):this._prelimContent.delete(e)}set(e,n){return this.doc!==null?Jt(this.doc,i=>{gT(i,this,e,n)}):this._prelimContent.set(e,n),n}get(e){return mT(this,e)}has(e){return NX(this,e)}clear(){this.doc!==null?Jt(this.doc,e=>{this.forEach(function(n,i,r){i2(e,r,i)})}):this._prelimContent.clear()}_write(e){e.writeTypeRef(XRe)}}const MRe=t=>new Ku,Ju=(t,e)=>t===e||typeof t=="object"&&typeof e=="object"&&t&&e&&sLe(t,e);class vT{constructor(e,n,i,r){this.left=e,this.right=n,this.index=i,this.currentAttributes=r}forward(){switch(this.right===null&&go(),this.right.content.constructor){case fi:this.right.deleted||Uh(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const IX=(t,e,n)=>{for(;e.right!==null&&n>0;){switch(e.right.content.constructor){case fi:e.right.deleted||Uh(e.currentAttributes,e.right.content);break;default:e.right.deleted||(n<e.right.length&&$r(t,wt(e.right.id.client,e.right.id.clock+n)),e.index+=e.right.length,n-=e.right.length);break}e.left=e.right,e.right=e.right.right}return e},o2=(t,e,n,i)=>{const r=new Map,o=i?e2(e,n):null;if(o){const s=new vT(o.p.left,o.p,o.index,r);return IX(t,s,n-o.index)}else{const s=new vT(null,e._start,0,r);return IX(t,s,n)}},LX=(t,e,n,i)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===fi&&Ju(i.get(n.right.content.key),n.right.content.value));)n.right.deleted||i.delete(n.right.content.key),n.forward();const r=t.doc,o=r.clientID;i.forEach((s,a)=>{const l=n.left,u=n.right,f=new Gt(wt(o,Qn(r.store,o)),l,l&&l.lastId,u,u&&u.id,e,null,new fi(a,s));f.integrate(t,0),n.right=f,n.forward()})},Uh=(t,e)=>{const{key:n,value:i}=e;i===null?t.delete(n):t.set(n,i)},RX=(t,e)=>{for(;t.right!==null;){if(!(t.right.deleted||t.right.content.constructor===fi&&Ju(e[t.right.content.key]??null,t.right.content.value)))break;t.forward()}},jX=(t,e,n,i)=>{const r=t.doc,o=r.clientID,s=new Map;for(const a in i){const l=i[a],u=n.currentAttributes.get(a)??null;if(!Ju(u,l)){s.set(a,u);const{left:f,right:d}=n;n.right=new Gt(wt(o,Qn(r.store,o)),f,f&&f.lastId,d,d&&d.id,e,null,new fi(a,l)),n.right.integrate(t,0),n.forward()}}return s},bT=(t,e,n,i,r)=>{n.currentAttributes.forEach((h,g)=>{r[g]===void 0&&(r[g]=null)});const o=t.doc,s=o.clientID;RX(n,r);const a=jX(t,e,n,r),l=i.constructor===String?new ks(i):i instanceof Mi?new ys(i):new El(i);let{left:u,right:f,index:d}=n;e._searchMarker&&c1(e._searchMarker,n.index,l.getLength()),f=new Gt(wt(s,Qn(o.store,s)),u,u&&u.lastId,f,f&&f.id,e,null,l),f.integrate(t,0),n.right=f,n.index=d,n.forward(),LX(t,e,n,a)},FX=(t,e,n,i,r)=>{const o=t.doc,s=o.clientID;RX(n,r);const a=jX(t,e,n,r);e:for(;n.right!==null&&(i>0||a.size>0&&(n.right.deleted||n.right.content.constructor===fi));){if(!n.right.deleted)switch(n.right.content.constructor){case fi:{const{key:l,value:u}=n.right.content,f=r[l];if(f!==void 0){if(Ju(f,u))a.delete(l);else{if(i===0)break e;a.set(l,u)}n.right.delete(t)}else n.currentAttributes.set(l,u);break}default:i<n.right.length&&$r(t,wt(n.right.id.client,n.right.id.clock+i)),i-=n.right.length;break}n.forward()}if(i>0){let l="";for(;i>0;i--)l+=`
|
||
`;n.right=new Gt(wt(s,Qn(o.store,s)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,e,null,new ks(l)),n.right.integrate(t,0),n.forward()}LX(t,e,n,a)},zX=(t,e,n,i,r)=>{let o=e;const s=Ui();for(;o&&(!o.countable||o.deleted);){if(!o.deleted&&o.content.constructor===fi){const u=o.content;s.set(u.key,u)}o=o.right}let a=0,l=!1;for(;e!==o;){if(n===e&&(l=!0),!e.deleted){const u=e.content;switch(u.constructor){case fi:{const{key:f,value:d}=u,h=i.get(f)??null;(s.get(f)!==u||h===d)&&(e.delete(t),a++,!l&&(r.get(f)??null)===d&&h!==d&&(h===null?r.delete(f):r.set(f,h))),!l&&!e.deleted&&Uh(r,u);break}}}e=e.right}return a},NRe=(t,e)=>{for(;e&&e.right&&(e.right.deleted||!e.right.countable);)e=e.right;const n=new Set;for(;e&&(e.deleted||!e.countable);){if(!e.deleted&&e.content.constructor===fi){const i=e.content.key;n.has(i)?e.delete(t):n.add(i)}e=e.left}},BX=t=>{let e=0;return Jt(t.doc,n=>{let i=t._start,r=t._start,o=Ui();const s=PE(o);for(;r;){if(r.deleted===!1)switch(r.content.constructor){case fi:Uh(s,r.content);break;default:e+=zX(n,i,r,o,s),o=PE(s),i=r;break}r=r.right}}),e},ARe=t=>{const e=new Set,n=t.doc;for(const[i,r]of t.afterState.entries()){const o=t.beforeState.get(i)||0;r!==o&&XV(t,n.store.clients.get(i),o,r,s=>{!s.deleted&&s.content.constructor===fi&&s.constructor!==mo&&e.add(s.parent)})}Jt(n,i=>{bf(t,t.deleteSet,r=>{if(r instanceof mo||!r.parent._hasFormatting||e.has(r.parent))return;const o=r.parent;r.content.constructor===fi?e.add(o):NRe(i,r)});for(const r of e)BX(r)})},WX=(t,e,n)=>{const i=n,r=PE(e.currentAttributes),o=e.right;for(;n>0&&e.right!==null;){if(e.right.deleted===!1)switch(e.right.content.constructor){case ys:case El:case ks:n<e.right.length&&$r(t,wt(e.right.id.client,e.right.id.clock+n)),n-=e.right.length,e.right.delete(t);break}e.forward()}o&&zX(t,o,e.right,r,e.currentAttributes);const s=(e.left||e.right).parent;return s._searchMarker&&c1(s._searchMarker,e.index,-i+n),e};class HX extends u1{constructor(e,n,i){super(e,n),this.childListChanged=!1,this.keysChanged=new Set,i.forEach(r=>{r===null?this.childListChanged=!0:this.keysChanged.add(r)})}get changes(){if(this._changes===null){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(this._delta===null){const e=this.target.doc,n=[];Jt(e,i=>{const r=new Map,o=new Map;let s=this.target._start,a=null;const l={};let u="",f=0,d=0;const h=()=>{if(a!==null){let g=null;switch(a){case"delete":d>0&&(g={delete:d}),d=0;break;case"insert":(typeof u=="object"||u.length>0)&&(g={insert:u},r.size>0&&(g.attributes={},r.forEach((m,y)=>{m!==null&&(g.attributes[y]=m)}))),u="";break;case"retain":f>0&&(g={retain:f},rLe(l)||(g.attributes=tLe({},l))),f=0;break}g&&n.push(g),a=null}};for(;s!==null;){switch(s.content.constructor){case ys:case El:this.adds(s)?this.deletes(s)||(h(),a="insert",u=s.content.getContent()[0],h()):this.deletes(s)?(a!=="delete"&&(h(),a="delete"),d+=1):s.deleted||(a!=="retain"&&(h(),a="retain"),f+=1);break;case ks:this.adds(s)?this.deletes(s)||(a!=="insert"&&(h(),a="insert"),u+=s.content.str):this.deletes(s)?(a!=="delete"&&(h(),a="delete"),d+=s.length):s.deleted||(a!=="retain"&&(h(),a="retain"),f+=s.length);break;case fi:{const{key:g,value:m}=s.content;if(this.adds(s)){if(!this.deletes(s)){const y=r.get(g)??null;Ju(y,m)?m!==null&&s.delete(i):(a==="retain"&&h(),Ju(m,o.get(g)??null)?delete l[g]:l[g]=m)}}else if(this.deletes(s)){o.set(g,m);const y=r.get(g)??null;Ju(y,m)||(a==="retain"&&h(),l[g]=y)}else if(!s.deleted){o.set(g,m);const y=l[g];y!==void 0&&(Ju(y,m)?y!==null&&s.delete(i):(a==="retain"&&h(),m===null?delete l[g]:l[g]=m))}s.deleted||(a==="insert"&&h(),Uh(r,s.content));break}}s=s.right}for(h();n.length>0;){const g=n[n.length-1];if(g.retain!==void 0&&g.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class Of extends Mi{constructor(e){super(),this._pending=e!==void 0?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??fr(),this._length}_integrate(e,n){super._integrate(e,n);try{this._pending.forEach(i=>i())}catch(i){console.error(i)}this._pending=null}_copy(){return new Of}clone(){const e=new Of;return e.applyDelta(this.toDelta()),e}_callObserver(e,n){super._callObserver(e,n);const i=new HX(this,e,n);t2(this,e,i),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){this.doc??fr();let e="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===ks&&(e+=n.content.str),n=n.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:n=!0}={}){this.doc!==null?Jt(this.doc,i=>{const r=new vT(null,this._start,0,new Map);for(let o=0;o<e.length;o++){const s=e[o];if(s.insert!==void 0){const a=!n&&typeof s.insert=="string"&&o===e.length-1&&r.right===null&&s.insert.slice(-1)===`
|
||
`?s.insert.slice(0,-1):s.insert;(typeof a!="string"||a.length>0)&&bT(i,this,r,a,s.attributes||{})}else s.retain!==void 0?FX(i,this,r,s.retain,s.attributes||{}):s.delete!==void 0&&WX(i,r,s.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,n,i){this.doc??fr();const r=[],o=new Map,s=this.doc;let a="",l=this._start;function u(){if(a.length>0){const d={};let h=!1;o.forEach((m,y)=>{h=!0,d[y]=m});const g={insert:a};h&&(g.attributes=d),r.push(g),a=""}}const f=()=>{for(;l!==null;){if(Vu(l,e)||n!==void 0&&Vu(l,n))switch(l.content.constructor){case ks:{const d=o.get("ychange");e!==void 0&&!Vu(l,e)?(d===void 0||d.user!==l.id.client||d.type!=="removed")&&(u(),o.set("ychange",i?i("removed",l.id):{type:"removed"})):n!==void 0&&!Vu(l,n)?(d===void 0||d.user!==l.id.client||d.type!=="added")&&(u(),o.set("ychange",i?i("added",l.id):{type:"added"})):d!==void 0&&(u(),o.delete("ychange")),a+=l.content.str;break}case ys:case El:{u();const d={insert:l.content.getContent()[0]};if(o.size>0){const h={};d.attributes=h,o.forEach((g,m)=>{h[m]=g})}r.push(d);break}case fi:Vu(l,e)&&(u(),Uh(o,l.content));break}l=l.right}u()};return e||n?Jt(s,d=>{e&&oT(d,e),n&&oT(d,n),f()},"cleanup"):f(),r}insert(e,n,i){if(n.length<=0)return;const r=this.doc;r!==null?Jt(r,o=>{const s=o2(o,this,e,!i);i||(i={},s.currentAttributes.forEach((a,l)=>{i[l]=a})),bT(o,this,s,n,i)}):this._pending.push(()=>this.insert(e,n,i))}insertEmbed(e,n,i){const r=this.doc;r!==null?Jt(r,o=>{const s=o2(o,this,e,!i);bT(o,this,s,n,i||{})}):this._pending.push(()=>this.insertEmbed(e,n,i||{}))}delete(e,n){if(n===0)return;const i=this.doc;i!==null?Jt(i,r=>{WX(r,o2(r,this,e,!0),n)}):this._pending.push(()=>this.delete(e,n))}format(e,n,i){if(n===0)return;const r=this.doc;r!==null?Jt(r,o=>{const s=o2(o,this,e,!1);s.right!==null&&FX(o,this,s,n,i)}):this._pending.push(()=>this.format(e,n,i))}removeAttribute(e){this.doc!==null?Jt(this.doc,n=>{i2(n,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,n){this.doc!==null?Jt(this.doc,i=>{gT(i,this,e,n)}):this._pending.push(()=>this.setAttribute(e,n))}getAttribute(e){return mT(this,e)}getAttributes(){return MX(this)}_write(e){e.writeTypeRef(GRe)}}const PRe=t=>new Of;class kT{constructor(e,n=()=>!0){this._filter=n,this._root=e,this._currentNode=e._start,this._firstCall=!0,e.doc??fr()}[Symbol.iterator](){return this}next(){let e=this._currentNode,n=e&&e.content&&e.content.type;if(e!==null&&(!this._firstCall||e.deleted||!this._filter(n)))do if(n=e.content.type,!e.deleted&&(n.constructor===tc||n.constructor===ec)&&n._start!==null)e=n._start;else for(;e!==null;){const i=e.next;if(i!==null){e=i;break}else e.parent===this._root?e=null:e=e.parent._item}while(e!==null&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,e===null?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class ec extends Mi{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,n){super._integrate(e,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new ec}clone(){const e=new ec;return e.insert(0,this.toArray().map(n=>n instanceof Mi?n.clone():n)),e}get length(){return this.doc??fr(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(e){return new kT(this,e)}querySelector(e){e=e.toUpperCase();const i=new kT(this,r=>r.nodeName&&r.nodeName.toUpperCase()===e).next();return i.done?null:i.value}querySelectorAll(e){return e=e.toUpperCase(),bl(new kT(this,n=>n.nodeName&&n.nodeName.toUpperCase()===e))}_callObserver(e,n){t2(this,e,new QX(this,n,e))}toString(){return SX(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,n={},i){const r=e.createDocumentFragment();return i!==void 0&&i._createAssociation(r,this),f1(this,o=>{r.insertBefore(o.toDOM(e,n,i),null)}),r}insert(e,n){this.doc!==null?Jt(this.doc,i=>{TX(i,this,e,n)}):this._prelimContent.splice(e,0,...n)}insertAfter(e,n){if(this.doc!==null)Jt(this.doc,i=>{const r=e&&e instanceof Mi?e._item:e;n2(i,this,r,n)});else{const i=this._prelimContent,r=e===null?0:i.findIndex(o=>o===e)+1;if(r===0&&e!==null)throw Uu("Reference item not found");i.splice(r,0,...n)}}delete(e,n=1){this.doc!==null?Jt(this.doc,i=>{$X(i,this,e,n)}):this._prelimContent.splice(e,n)}toArray(){return OX(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return CX(this,e)}slice(e=0,n=this.length){return _X(this,e,n)}forEach(e){f1(this,e)}_write(e){e.writeTypeRef(JRe)}}const DRe=t=>new ec;class tc extends ec{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,n){super._integrate(e,n),this._prelimAttrs.forEach((i,r)=>{this.setAttribute(r,i)}),this._prelimAttrs=null}_copy(){return new tc(this.nodeName)}clone(){const e=new tc(this.nodeName),n=this.getAttributes();return nLe(n,(i,r)=>{e.setAttribute(r,i)}),e.insert(0,this.toArray().map(i=>i instanceof Mi?i.clone():i)),e}toString(){const e=this.getAttributes(),n=[],i=[];for(const a in e)i.push(a);i.sort();const r=i.length;for(let a=0;a<r;a++){const l=i[a];n.push(l+'="'+e[l]+'"')}const o=this.nodeName.toLocaleLowerCase(),s=n.length>0?" "+n.join(" "):"";return`<${o}${s}>${super.toString()}</${o}>`}removeAttribute(e){this.doc!==null?Jt(this.doc,n=>{i2(n,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,n){this.doc!==null?Jt(this.doc,i=>{gT(i,this,e,n)}):this._prelimAttrs.set(e,n)}getAttribute(e){return mT(this,e)}hasAttribute(e){return NX(this,e)}getAttributes(e){return e?AX(this,e):MX(this)}toDOM(e=document,n={},i){const r=e.createElement(this.nodeName),o=this.getAttributes();for(const s in o){const a=o[s];typeof a=="string"&&r.setAttribute(s,a)}return f1(this,s=>{r.appendChild(s.toDOM(e,n,i))}),i!==void 0&&i._createAssociation(r,this),r}_write(e){e.writeTypeRef(KRe),e.writeKey(this.nodeName)}}const IRe=t=>new tc(t.readKey());class QX extends u1{constructor(e,n,i){super(e,i),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(r=>{r===null?this.childListChanged=!0:this.attributesChanged.add(r)})}}class Zh extends Ku{constructor(e){super(),this.hookName=e}_copy(){return new Zh(this.hookName)}clone(){const e=new Zh(this.hookName);return this.forEach((n,i)=>{e.set(i,n)}),e}toDOM(e=document,n={},i){const r=n[this.hookName];let o;return r!==void 0?o=r.createDom(this):o=document.createElement(this.hookName),o.setAttribute("data-yjs-hook",this.hookName),i!==void 0&&i._createAssociation(o,this),o}_write(e){e.writeTypeRef(eje),e.writeKey(this.hookName)}}const LRe=t=>new Zh(t.readKey());class d1 extends Of{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new d1}clone(){const e=new d1;return e.applyDelta(this.toDelta()),e}toDOM(e=document,n,i){const r=e.createTextNode(this.toString());return i!==void 0&&i._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{const n=[];for(const r in e.attributes){const o=[];for(const s in e.attributes[r])o.push({key:s,value:e.attributes[r][s]});o.sort((s,a)=>s.key<a.key?-1:1),n.push({nodeName:r,attrs:o})}n.sort((r,o)=>r.nodeName<o.nodeName?-1:1);let i="";for(let r=0;r<n.length;r++){const o=n[r];i+=`<${o.nodeName}`;for(let s=0;s<o.attrs.length;s++){const a=o.attrs[s];i+=` ${a.key}="${a.value}"`}i+=">"}i+=e.insert;for(let r=n.length-1;r>=0;r--)i+=`</${n[r].nodeName}>`;return i}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(tje)}}const RRe=t=>new d1;class s2{constructor(e,n){this.id=e,this.length=n}get deleted(){throw Pa()}mergeWith(e){return!1}write(e,n,i){throw Pa()}integrate(e,n){throw Pa()}}const jRe=0;class mo extends s2{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor!==e.constructor?!1:(this.length+=e.length,!0)}integrate(e,n){n>0&&(this.id.clock+=n,this.length-=n),VV(e.doc.store,this)}write(e,n){e.writeInfo(jRe),e.writeLen(this.length-n)}getMissing(e,n){return null}}class Sf{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Sf(this.content)}splice(e){throw Pa()}mergeWith(e){return!1}integrate(e,n){}delete(e){}gc(e){}write(e,n){e.writeBuf(this.content)}getRef(){return 3}}const FRe=t=>new Sf(t.readBuf());class Cf{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new Cf(this.len)}splice(e){const n=new Cf(this.len-e);return this.len=e,n}mergeWith(e){return this.len+=e.len,!0}integrate(e,n){i1(e.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(e){}gc(e){}write(e,n){e.writeLen(this.len-n)}getRef(){return 1}}const zRe=t=>new Cf(t.readLen()),UX=(t,e)=>new _l({guid:t,...e,shouldLoad:e.shouldLoad||e.autoLoad||!1});class Ef{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const n={};this.opts=n,e.gc||(n.gc=!1),e.autoLoad&&(n.autoLoad=!0),e.meta!==null&&(n.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new Ef(UX(this.doc.guid,this.opts))}splice(e){throw Pa()}mergeWith(e){return!1}integrate(e,n){this.doc._item=n,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,n){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}const BRe=t=>new Ef(UX(t.readString(),t.readAny()));class El{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new El(this.embed)}splice(e){throw Pa()}mergeWith(e){return!1}integrate(e,n){}delete(e){}gc(e){}write(e,n){e.writeJSON(this.embed)}getRef(){return 5}}const WRe=t=>new El(t.readJSON());class fi{constructor(e,n){this.key=e,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new fi(this.key,this.value)}splice(e){throw Pa()}mergeWith(e){return!1}integrate(e,n){const i=n.parent;i._searchMarker=null,i._hasFormatting=!0}delete(e){}gc(e){}write(e,n){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}const HRe=t=>new fi(t.readKey(),t.readJSON());class qh{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new qh(this.arr)}splice(e){const n=new qh(this.arr.slice(e));return this.arr=this.arr.slice(0,e),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,n){}delete(e){}gc(e){}write(e,n){const i=this.arr.length;e.writeLen(i-n);for(let r=n;r<i;r++){const o=this.arr[r];e.writeString(o===void 0?"undefined":JSON.stringify(o))}}getRef(){return 2}}const QRe=t=>{const e=t.readLen(),n=[];for(let i=0;i<e;i++){const r=t.readString();r==="undefined"?n.push(void 0):n.push(JSON.parse(r))}return new qh(n)},URe=qx("node_env")==="development";class Tl{constructor(e){this.arr=e,URe&&EV(e)}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new Tl(this.arr)}splice(e){const n=new Tl(this.arr.slice(e));return this.arr=this.arr.slice(0,e),n}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,n){}delete(e){}gc(e){}write(e,n){const i=this.arr.length;e.writeLen(i-n);for(let r=n;r<i;r++){const o=this.arr[r];e.writeAny(o)}}getRef(){return 8}}const ZRe=t=>{const e=t.readLen(),n=[];for(let i=0;i<e;i++)n.push(t.readAny());return new Tl(n)};class ks{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new ks(this.str)}splice(e){const n=new ks(this.str.slice(e));this.str=this.str.slice(0,e);const i=this.str.charCodeAt(e-1);return i>=55296&&i<=56319&&(this.str=this.str.slice(0,e-1)+"<22>",n.str="<22>"+n.str.slice(1)),n}mergeWith(e){return this.str+=e.str,!0}integrate(e,n){}delete(e){}gc(e){}write(e,n){e.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const qRe=t=>new ks(t.readString()),YRe=[$Re,MRe,PRe,IRe,DRe,LRe,RRe],VRe=0,XRe=1,GRe=2,KRe=3,JRe=4,eje=5,tje=6;class ys{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new ys(this.type._copy())}splice(e){throw Pa()}mergeWith(e){return!1}integrate(e,n){this.type._integrate(e.doc,n)}delete(e){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(e.beforeState.get(n.id.client)||0)&&e._mergeStructs.push(n):n.delete(e),n=n.right;this.type._map.forEach(i=>{i.deleted?i.id.clock<(e.beforeState.get(i.id.client)||0)&&e._mergeStructs.push(i):i.delete(e)}),e.changed.delete(this.type)}gc(e){let n=this.type._start;for(;n!==null;)n.gc(e,!0),n=n.right;this.type._start=null,this.type._map.forEach(i=>{for(;i!==null;)i.gc(e,!0),i=i.left}),this.type._map=new Map}write(e,n){this.type._write(e)}getRef(){return 7}}const nje=t=>new ys(YRe[t.readTypeRef()](t)),yT=(t,e)=>{let n=e,i=0,r;do i>0&&(n=wt(n.client,n.clock+i)),r=_f(t,n),i=n.clock-r.id.clock,n=r.redone;while(n!==null&&r instanceof Gt);return{item:r,diff:i}},wT=(t,e)=>{for(;t!==null&&t.keep!==e;)t.keep=e,t=t.parent._item},a2=(t,e,n)=>{const{client:i,clock:r}=e.id,o=new Gt(wt(i,r+n),e,wt(i,r+n-1),e.right,e.rightOrigin,e.parent,e.parentSub,e.content.splice(n));return e.deleted&&o.markDeleted(),e.keep&&(o.keep=!0),e.redone!==null&&(o.redone=wt(e.redone.client,e.redone.clock+n)),e.right=o,o.right!==null&&(o.right.left=o),t._mergeStructs.push(o),o.parentSub!==null&&o.right===null&&o.parent._map.set(o.parentSub,o),e.length=n,o},ZX=(t,e)=>yIe(t,n=>kf(n.deletions,e)),qX=(t,e,n,i,r,o)=>{const s=t.doc,a=s.store,l=s.clientID,u=e.redone;if(u!==null)return $r(t,u);let f=e.parent._item,d=null,h;if(f!==null&&f.deleted===!0){if(f.redone===null&&(!n.has(f)||qX(t,f,n,i,r,o)===null))return null;for(;f.redone!==null;)f=$r(t,f.redone)}const g=f===null?e.parent:f.content.type;if(e.parentSub===null){for(d=e.left,h=e;d!==null;){let _=d;for(;_!==null&&_.parent._item!==f;)_=_.redone===null?null:$r(t,_.redone);if(_!==null&&_.parent._item===f){d=_;break}d=d.left}for(;h!==null;){let _=h;for(;_!==null&&_.parent._item!==f;)_=_.redone===null?null:$r(t,_.redone);if(_!==null&&_.parent._item===f){h=_;break}h=h.right}}else if(h=null,e.right&&!r){for(d=e;d!==null&&d.right!==null&&(d.right.redone||kf(i,d.right.id)||ZX(o.undoStack,d.right.id)||ZX(o.redoStack,d.right.id));)for(d=d.right;d.redone;)d=$r(t,d.redone);if(d&&d.right!==null)return null}else d=g._map.get(e.parentSub)||null;const m=Qn(a,l),y=wt(l,m),x=new Gt(y,d,d&&d.lastId,h,h&&h.id,g,e.parentSub,e.content.copy());return e.redone=y,wT(x,!0),x.integrate(t,0),x};class Gt extends s2{constructor(e,n,i,r,o,s,a,l){super(e,l.getLength()),this.origin=i,this.left=n,this.right=r,this.rightOrigin=o,this.parent=s,this.parentSub=a,this.redone=null,this.content=l,this.info=this.content.isCountable()?rV:0}set marker(e){(this.info&jE)>0!==e&&(this.info^=jE)}get marker(){return(this.info&jE)>0}get keep(){return(this.info&iV)>0}set keep(e){this.keep!==e&&(this.info^=iV)}get countable(){return(this.info&rV)>0}get deleted(){return(this.info&RE)>0}set deleted(e){this.deleted!==e&&(this.info^=RE)}markDeleted(){this.info|=RE}getMissing(e,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Qn(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Qn(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===wf&&this.id.client!==this.parent.client&&this.parent.clock>=Qn(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=aT(e,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=$r(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===mo||this.right&&this.right.constructor===mo)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===Gt?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===Gt&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===wf){const i=_f(n,this.parent);i.constructor===mo?this.parent=null:this.parent=i.content.type}return null}integrate(e,n){if(n>0&&(this.id.clock+=n,this.left=aT(e,e.doc.store,wt(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(n),this.length-=n),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let i=this.left,r;if(i!==null)r=i.right;else if(this.parentSub!==null)for(r=this.parent._map.get(this.parentSub)||null;r!==null&&r.left!==null;)r=r.left;else r=this.parent._start;const o=new Set,s=new Set;for(;r!==null&&r!==this.right;){if(s.add(r),o.add(r),xf(this.origin,r.origin)){if(r.id.client<this.id.client)i=r,o.clear();else if(xf(this.rightOrigin,r.rightOrigin))break}else if(r.origin!==null&&s.has(_f(e.doc.store,r.origin)))o.has(_f(e.doc.store,r.origin))||(i=r,o.clear());else break;r=r.right}this.left=i}if(this.left!==null){const i=this.left.right;this.right=i,this.left.right=this}else{let i;if(this.parentSub!==null)for(i=this.parent._map.get(this.parentSub)||null;i!==null&&i.left!==null;)i=i.left;else i=this.parent._start,this.parent._start=this;this.right=i}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(e)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),VV(e.doc.store,this),this.content.integrate(e,this),oX(e,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(e)}else new mo(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;e!==null&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;e!==null&&e.deleted;)e=e.left;return e}get lastId(){return this.length===1?this.id:wt(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&xf(e.origin,this.lastId)&&this.right===e&&xf(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&this.redone===null&&e.redone===null&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){const n=this.parent._searchMarker;return n&&n.forEach(i=>{i.p===e&&(i.p=this,!this.deleted&&this.countable&&(i.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,this.right!==null&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),i1(e.deleteSet,this.id.client,this.id.clock,this.length),oX(e,n,this.parentSub),this.content.delete(e)}}gc(e,n){if(!this.deleted)throw go();this.content.gc(e),n?XLe(e,this,new mo(this.id,this.length)):this.content=new Cf(this.length)}write(e,n){const i=n>0?wt(this.id.client,this.id.clock+n-1):this.origin,r=this.rightOrigin,o=this.parentSub,s=this.content.getRef()&zx|(i===null?0:Qo)|(r===null?0:yl)|(o===null?0:V0);if(e.writeInfo(s),i!==null&&e.writeLeftID(i),r!==null&&e.writeRightID(r),i===null&&r===null){const a=this.parent;if(a._item!==void 0){const l=a._item;if(l===null){const u=nT(a);e.writeParentInfo(!0),e.writeString(u)}else e.writeParentInfo(!1),e.writeLeftID(l.id)}else a.constructor===String?(e.writeParentInfo(!0),e.writeString(a)):a.constructor===wf?(e.writeParentInfo(!1),e.writeLeftID(a)):go();o!==null&&e.writeString(o)}this.content.write(e,n)}}const YX=(t,e)=>ije[e&zx](t),ije=[()=>{go()},zRe,QRe,FRe,qRe,WRe,HRe,nje,ZRe,BRe,()=>{go()}],rje=10;class Jr extends s2{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor!==e.constructor?!1:(this.length+=e.length,!0)}integrate(e,n){go()}write(e,n){e.writeInfo(rje),We(e.restEncoder,this.length-n)}getMissing(e,n){return null}}const VX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},XX="__ $YJS$ __";VX[XX]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),VX[XX]=!0;const GX=tv(Object.freeze(Object.defineProperty({__proto__:null,AbsolutePosition:UV,AbstractConnector:_Ie,AbstractStruct:s2,AbstractType:Mi,Array:Cl,ContentAny:Tl,ContentBinary:Sf,ContentDeleted:Cf,ContentDoc:Ef,ContentEmbed:El,ContentFormat:fi,ContentJSON:qh,ContentString:ks,ContentType:ys,Doc:_l,GC:mo,ID:wf,Item:Gt,Map:Ku,PermanentUserData:MLe,RelativePosition:Xx,Skip:Jr,Snapshot:iT,Text:Of,Transaction:iX,UndoManager:lRe,UpdateDecoderV1:vs,UpdateDecoderV2:Uo,UpdateEncoderV1:Yu,UpdateEncoderV2:Hs,XmlElement:tc,XmlFragment:ec,XmlHook:Zh,XmlText:d1,YArrayEvent:PX,YEvent:u1,YMapEvent:DX,YTextEvent:HX,YXmlEvent:QX,applyUpdate:DV,applyUpdateV2:Vx,cleanupYTextFormatting:BX,compareIDs:xf,compareRelativePositions:BLe,convertUpdateFormatV1ToV2:bRe,convertUpdateFormatV2ToV1:bX,createAbsolutePositionFromRelativePosition:zLe,createDeleteSet:Zx,createDeleteSetFromStructStore:YE,createDocFromSnapshot:qLe,createID:wt,createRelativePositionFromJSON:ALe,createRelativePositionFromTypeIndex:DLe,createSnapshot:rT,decodeRelativePosition:jLe,decodeSnapshot:QLe,decodeSnapshotV2:qV,decodeStateVector:eT,decodeUpdate:fRe,decodeUpdateV2:dX,diffUpdate:gRe,diffUpdateV2:fT,emptySnapshot:ULe,encodeRelativePosition:LLe,encodeSnapshot:HLe,encodeSnapshotV2:ZV,encodeStateAsUpdate:LV,encodeStateAsUpdateV2:IV,encodeStateVector:jV,encodeStateVectorFromUpdate:dRe,encodeStateVectorFromUpdateV2:pX,equalDeleteSets:mV,equalSnapshots:WLe,findIndexSS:bs,findRootTypeKey:nT,getItem:_f,getItemCleanEnd:aT,getItemCleanStart:$r,getState:Qn,getTypeChildren:ORe,isDeleted:kf,isParentOf:s1,iterateDeletedStructs:bf,logType:$Le,logUpdate:cRe,logUpdateV2:fX,mergeDeleteSets:yf,mergeUpdates:hX,mergeUpdatesV2:l1,obfuscateUpdate:mRe,obfuscateUpdateV2:vRe,parseUpdateMeta:hRe,parseUpdateMetaV2:gX,readUpdate:OLe,readUpdateV2:JE,relativePositionToJSON:NLe,snapshot:ZLe,snapshotContainsUpdate:VLe,transact:Jt,tryGc:sRe,typeListToArraySnapshot:SRe,typeMapGetAllSnapshot:AX,typeMapGetSnapshot:TRe},Symbol.toStringTag,{value:"Module"})));var l2={},Tf=A;function KX(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let JX=class{constructor(e,n,i=1){this._offsetMap=e,this._firstNode=n,this._blockOffsetSize=i}createSelectionFromOffsets(e,n,i){var r=this._firstNode;if(r===null)return null;var o=h1(r,e,this._blockOffsetSize);let s=h1(r,n,this._blockOffsetSize);if(i!==void 0&&(e=eG(e,o,i,this,this._blockOffsetSize),o=h1(r,e,this._blockOffsetSize),n=eG(n,s,i,this,this._blockOffsetSize),s=h1(r,n,this._blockOffsetSize)),o===null||s===null)return null;i=o.key,r=s.key;let a=Tf.$getNodeByKey(i),l=Tf.$getNodeByKey(r);if(a===null||l===null)return null;let u=0,f=0,d="element",h="element";return o.type==="text"?(u=e-o.start,d="text",o=a.getNextSibling(),e!==n&&u===a.getTextContentSize()&&Tf.$isTextNode(o)&&(u=0,i=o.__key)):o.type==="inline"&&(i=a.getParentOrThrow().getKey(),u=n>o.start?o.end:o.start),s.type==="text"?(f=n-s.start,h="text"):s.type==="inline"&&(r=l.getParentOrThrow().getKey(),f=n>s.start?s.end:s.start),e=Tf.$createRangeSelection(),e===null?null:(e.anchor.set(i,u,d),e.focus.set(r,f,h),e)}getOffsetsFromSelection(e){var n=e.anchor,i=e.focus,r=this._offsetMap;let o=n.offset;var s=i.offset;let a=e=-1;if(n.type==="text")n=r.get(n.key),n!==void 0&&(e=n.start+o);else if(n=n.getNode().getDescendantByIndex(o),n!==null){let l=r.get(n.getKey());l!==void 0&&(e=n.getIndexWithinParent()!==o?l.end:l.start)}return i.type==="text"?(s=r.get(i.key),s!==void 0&&(a=s.start+i.offset)):(i=i.getNode().getDescendantByIndex(s),i!==null&&(r=r.get(i.getKey()),r!==void 0&&(a=i.getIndexWithinParent()!==s?r.end:r.start))),[e,a]}};function eG(t,e,n,i,r){let o=n._offsetMap;i=i._offsetMap;let s=new Set,a=t;for(;e!==null;){var l=e.key,u=o.get(l),f=e.end-e.start;if(s.add(l),u===void 0?a+=f:(l=u.end-u.start,l!==f&&(a+=f-l)),f=e.prev,f!==null)e=f;else{for(e=e.parent;e!==null;)u=e.prev,u!==null&&(f=u.key,l=o.get(f),u=u.end-u.start,s.add(f),l===void 0?a+=u:(f=l.end-l.start,f!==u&&(a+=u-f))),e=e.parent;break}}if(n=n._firstNode,n!==null){for(e=h1(n,t,r),t=!1;e!==null;){if(!s.has(e.key)){t=!0;break}e=e.parent}if(!t)for(;e!==null;)t=e.key,s.has(t)||(r=i.get(t),t=e.end-e.start,r===void 0?a-=t:(r=r.end-r.start,t!==r&&(a+=r-t))),e=e.prev}return a}function h1(t,e,n){for(;t!==null;){if(e<t.end+(t.type!=="element"||n===0?1:0)){let i=t.child;if(i!==null){t=i;continue}return t}if(t=t.next,t===null)break}return null}function tG(t,e,n,i,r,o){let s=null,a=null,l=e.length;for(let x=0;x<l;x++){{var u=t,f=e[x],d=n,h=i,g=r,m=o,y=h.get(f);y===void 0&&KX(3);let _=u.offset;if(Tf.$isElementNode(y)){let S=xT(y,h);h=(y=S.length===0)?null:tG(u,S,null,h,g,m),(!u.prevIsBlock||y)&&(u.prevIsBlock=!0,u.offset+=m),d={child:h,end:_,key:f,next:null,parent:d,prev:null,start:_,type:"element"},h!==null&&(h.parent=d),d.end=u.offset,g.set(f,d),f=d}else u.prevIsBlock=!1,m=Tf.$isTextNode(y),u={child:null,end:u.offset+=m?y.__text.length:1,key:f,next:null,parent:d,prev:null,start:_,type:m?"text":"inline"},g.set(f,u),f=u}a===null?s=f:(f.prev=a,a.next=f),a=f}return s}function xT(t,e){let n=[];for(t=t.__first;t!==null;){let i=e===null?Tf.$getNodeByKey(t):e.get(t);i!=null||KX(101),n.push(t),t=i.__next}return n}l2.$createOffsetView=function(t,e=1,n){n=(n||t._pendingEditorState||t._editorState)._nodeMap;let i=n.get("root");return t=new Map,n=tG({offset:0,prevIsBlock:!1},xT(i,n),null,n,t,e),new JX(t,n,e)},l2.OffsetView=JX,l2.createChildrenArray=xT;var oje=l2,lt=A,_n=GX,nG=Oi,iG=oje;function dr(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class p1{constructor(e,n){this._key="",this._map=e,this._parent=n,this._type="linebreak"}getNode(){let e=lt.$getNodeByKey(this._key);return lt.$isLineBreakNode(e)?e:null}getKey(){return this._key}getSharedType(){return this._map}getType(){return this._type}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}destroy(e){e.collabNodeMap.delete(this._key)}}function rG(t,e){return e=new p1(t,e),t._collabNode=e}class vo{constructor(e,n,i,r){this._key="",this._map=e,this._parent=i,this._text=n,this._type=r,this._normalized=!1}getPrevNode(e){return e===null?null:(e=e.get(this._key),lt.$isTextNode(e)?e:null)}getNode(){let e=lt.$getNodeByKey(this._key);return lt.$isTextNode(e)?e:null}getSharedType(){return this._map}getType(){return this._type}getKey(){return this._key}getSize(){return this._text.length+(this._normalized?0:1)}getOffset(){return this._parent.getChildOffset(this)}spliceText(e,n,i){let r=this._parent._xmlText;e=this.getOffset()+1+e,n!==0&&r.delete(e,n),i!==""&&r.insert(e,i)}syncPropertiesAndTextFromLexical(e,n,i){var r=this.getPrevNode(i);if(i=n.__text,ST(e,this._map,r,n),r!==null&&(e=r.__text,e!==i)){r=n.__key,n=e;var o=lt.$getSelection();e=i.length,lt.$isRangeSelection(o)&&o.isCollapsed()&&(o=o.anchor,o.key===r&&(e=o.offset)),r=n.length;let s=i.length,a=o=0;for(;o<r&&o<s&&n[o]===i[o]&&o<e;)o++;for(;a+o<r&&a+o<s&&n[r-a-1]===i[s-a-1];)a++;for(;a+o<r&&a+o<s&&n[o]===i[o];)o++;n=o,e=i.slice(o,s-a),r=r-o-a,this.spliceText(n,r,e),this._text=i}}syncPropertiesAndTextFromYjs(e,n){let i=this.getNode();i===null&&dr(84),OT(e,this._map,i,n),e=this._text,i.__text!==e&&(i.getWritable().__text=e)}destroy(e){e.collabNodeMap.delete(this._key)}}function oG(t,e,n,i){return e=new vo(t,e,n,i),t._collabNode=e}let sje=new Set(["__key","__parent","__next","__prev"]),aje=new Set(["__first","__last","__size"]),lje=new Set(["__cachedText"]),uje=new Set(["__text"]);function sG(t,e,n){if(sje.has(t))return!0;if(lt.$isTextNode(e)){if(uje.has(t))return!0}else if(lt.$isElementNode(e)&&(aje.has(t)||lt.$isRootNode(e)&&lje.has(t)))return!0;return e=n.excludedProperties.get(e.constructor),e!=null&&e.has(t)}function g1(t){return t=lt.$getNodeByKey(t),t===null&&dr(85),t}function aG(t,e,n){let i=e.__type;if(lt.$isElementNode(e)){var r=new _n.XmlText;r=ET(r,n,i),r.syncPropertiesFromLexical(t,e,null),r.syncChildrenFromLexical(t,e,null,null,null)}else lt.$isTextNode(e)?(r=new _n.Map,r=oG(r,e.__text,n,i),r.syncPropertiesAndTextFromLexical(t,e,null)):lt.$isLineBreakNode(e)?(t=new _n.Map,t.set("__type","linebreak"),r=rG(t,n)):lt.$isDecoratorNode(e)?(r=new _n.XmlElement,r=cG(r,n,i),r.syncPropertiesFromLexical(t,e,null)):dr(86);return r._key=e.__key,r}function _T(t,e,n){let i=e._collabNode;if(i===void 0){var r=t.editor._nodes;let o=e instanceof _n.Map?e.get("__type"):e.getAttribute("__type");if(o==null&&dr(87),r.get(o)===void 0&&dr(88,o),r=e.parent,t=n===void 0&&r!==null?_T(t,r):n||null,t instanceof m1||dr(89),e instanceof _n.XmlText)return ET(e,t,o);if(e instanceof _n.Map)return o==="linebreak"?rG(e,t):oG(e,"",t,o);if(e instanceof _n.XmlElement)return cG(e,t,o)}return i}function OT(t,e,n,i){i=i===null?e instanceof _n.Map?Array.from(e.keys()):Object.keys(e.getAttributes()):Array.from(i);let r;for(let s=0;s<i.length;s++){let a=i[s];if(sG(a,n,t))continue;var o=n[a];let l=e instanceof _n.Map?e.get(a):e.getAttribute(a);if(o!==l){if(l instanceof _n.Doc){let u=t.docMap;o instanceof _n.Doc&&u.delete(o.guid),o=lt.createEditor();let f=l.guid;o._key=f,u.set(f,l),l=o}r===void 0&&(r=n.getWritable()),r[a]=l}}}function ST(t,e,n,i){var r=i.__type,o=t.nodeProperties;let s=o.get(r);for(s===void 0&&(s=Object.keys(i).filter(l=>!sG(l,i,t)),o.set(r,s)),r=t.editor.constructor,o=0;o<s.length;o++){let l=s[o];var a=n===null?void 0:n[l];let u=i[l];if(a!==u){if(u instanceof r){let f=t.docMap,d;a instanceof r&&(a=a._key,d=f.get(a),f.delete(a)),a=d||new _n.Doc;let h=a.guid;u._key=h,f.set(h,a),u=a,t.editor.update(()=>{i.markDirty()})}e instanceof _n.Map?e.set(l,u):e.setAttribute(l,u)}}}function u2(t,e,n){let i=0,r=0,o=t._children,s=o.length;for(;r<s;r++){t=o[r];let a=i,l=t.getSize();if(i+=l,(n?i>=e:i>e)&&t instanceof vo)return n=e-a-1,0>n&&(n=0),{length:i-e,node:t,nodeIndex:r,offset:n};if(i>e)return{length:0,node:t,nodeIndex:r,offset:a};if(r===s-1)return{length:0,node:null,nodeIndex:r+1,offset:a+1}}return{length:0,node:null,nodeIndex:0,offset:0}}function lG(t){let e=t.anchor;t=t.focus;let n=!1;try{let i=e.getNode(),r=t.getNode();(!i.isAttached()||!r.isAttached()||lt.$isTextNode(i)&&e.offset>i.getTextContentSize()||lt.$isTextNode(r)&&t.offset>r.getTextContentSize())&&(n=!0)}catch{n=!0}return n}function cje(t,e){t.doc.transact(e,t)}function CT(t,e){let n=[];for(t=t.__first;t!==null;){let i=e===null?lt.$getNodeByKey(t):e.get(t);i!=null||dr(101),n.push(t),t=i.__next}return n}function uG(t){var e=t.getParent();if(e!==null){let r=t.getWritable();e=e.getWritable();var n=t.getPreviousSibling();if(t=t.getNextSibling(),n===null)if(t!==null){var i=t.getWritable();e.__first=t.__key,i.__prev=null}else e.__first=null;else{if(i=n.getWritable(),t!==null){let o=t.getWritable();o.__prev=i.__key,i.__next=o.__key}else i.__next=null;r.__prev=null}t===null?n!==null?(t=n.getWritable(),e.__last=n.__key,t.__next=null):e.__last=null:(t=t.getWritable(),n!==null?(n=n.getWritable(),n.__next=t.__key,t.__prev=n.__key):t.__prev=null,r.__next=null),e.__size--,r.__parent=null}}class nc{constructor(e,n,i){this._key="",this._xmlElem=e,this._parent=n,this._type=i}getPrevNode(e){return e===null?null:(e=e.get(this._key),lt.$isDecoratorNode(e)?e:null)}getNode(){let e=lt.$getNodeByKey(this._key);return lt.$isDecoratorNode(e)?e:null}getSharedType(){return this._xmlElem}getType(){return this._type}getKey(){return this._key}getSize(){return 1}getOffset(){return this._parent.getChildOffset(this)}syncPropertiesFromLexical(e,n,i){i=this.getPrevNode(i),ST(e,this._xmlElem,i,n)}syncPropertiesFromYjs(e,n){let i=this.getNode();i===null&&dr(83),OT(e,this._xmlElem,i,n)}destroy(e){e.collabNodeMap.delete(this._key)}}function cG(t,e,n){return e=new nc(t,e,n),t._collabNode=e}let m1=class Zf{constructor(e,n,i){this._key="",this._children=[],this._xmlText=e,this._type=i,this._parent=n}getPrevNode(e){return e===null?null:(e=e.get(this._key),lt.$isElementNode(e)?e:null)}getNode(){let e=lt.$getNodeByKey(this._key);return lt.$isElementNode(e)?e:null}getSharedType(){return this._xmlText}getType(){return this._type}getKey(){return this._key}isEmpty(){return this._children.length===0}getSize(){return 1}getOffset(){let e=this._parent;return e===null&&dr(90),e.getChildOffset(this)}syncPropertiesFromYjs(e,n){let i=this.getNode();i===null&&dr(91),OT(e,this._xmlText,i,n)}applyChildrenYjsDelta(e,n){let i=this._children,r=0;for(let d=0;d<n.length;d++){var o=n[d],s=o.insert,a=o.delete;if(o.retain!=null)r+=o.retain;else if(typeof a=="number")for(s=a;0<s;){let{node:h,nodeIndex:g,offset:m,length:y}=u2(this,r,!1);if(h instanceof Zf||h instanceof p1||h instanceof nc)i.splice(g,1),--s;else if(h instanceof vo){o=Math.min(s,y),a=g!==0?i[g-1]:null;var l=h.getSize();if(m===0&&o===1&&0<g&&a instanceof vo&&y===l&&Array.from(h._map.keys()).length===0)a._text+=h._text,i.splice(g,1);else if(m===0&&o===l)i.splice(g,1);else{a=h,l=h._text;var u=m,f=o;l=l.slice(0,u)+""+l.slice(u+f),a._text=l}s-=o}else break}else if(s!=null)if(typeof s=="string"){let{node:h,offset:g}=u2(this,r,!0);h instanceof vo?(o=h,a=h._text,l=g,u=s,a=a.slice(0,l)+u+a.slice(l+0),o._text=a):this._xmlText.delete(g,s.length),r+=s.length}else o=s,{nodeIndex:s}=u2(this,r,!1),o=_T(e,o,this),i.splice(s,0,o),r+=1;else throw Error("Unexpected delta format")}}syncChildrenFromYjs(e){var n=this.getNode();n===null&&dr(92);var i=n.__key;let r=CT(n,null),o=r.length;var s=this._children;let a=s.length,l=e.collabNodeMap,u=new Set,f,d=0;var h=null;a!==o&&n.getWritable();for(let C=0;C<a;C++){var g=r[d],m=s[C],y=m.getNode(),x=m._key;if(y!==null&&g===x)h=lt.$isTextNode(y),u.add(g),h&&(m._key=g,m instanceof Zf?(h=m._xmlText,m.syncPropertiesFromYjs(e,null),m.applyChildrenYjsDelta(e,h.toDelta()),m.syncChildrenFromYjs(e)):m instanceof vo?m.syncPropertiesAndTextFromYjs(e,null):m instanceof nc?m.syncPropertiesFromYjs(e,null):m instanceof p1||dr(93)),h=y,d++;else{if(f===void 0)for(f=new Set,x=0;x<a;x++){var _=s[x]._key;_!==""&&f.add(_)}if(y!==null&&g!==void 0&&!f.has(g)){m=g1(g),uG(m),C--,d++;continue}y=n.getWritable(),g=e,x=m,_=i;var S=x.getType();let E=g.editor._nodes.get(S);E===void 0&&dr(88,S),S=new E.klass,S.__parent=_,x._key=S.__key,x instanceof Zf?(_=x._xmlText,x.syncPropertiesFromYjs(g,null),x.applyChildrenYjsDelta(g,_.toDelta()),x.syncChildrenFromYjs(g)):x instanceof vo?x.syncPropertiesAndTextFromYjs(g,null):x instanceof nc&&x.syncPropertiesFromYjs(g,null),g.collabNodeMap.set(S.__key,x),g=S,x=g.__key,l.set(x,m),h===null?(h=y.getFirstChild(),y.__first=x,h!==null&&(h=h.getWritable(),h.__prev=x,g.__next=h.__key)):(m=h.getWritable(),_=h.getNextSibling(),m.__next=x,g.__prev=h.__key,_!==null&&(h=_.getWritable(),h.__prev=x,g.__next=h.__key)),C===a-1&&(y.__last=x),y.__size++,h=g}}for(n=0;n<o;n++)s=r[n],u.has(s)||(i=g1(s),s=e.collabNodeMap.get(s),s!==void 0&&s.destroy(e),uG(i))}syncPropertiesFromLexical(e,n,i){ST(e,this._xmlText,this.getPrevNode(i),n)}_syncChildFromLexical(e,n,i,r,o,s){n=this._children[n],i=g1(i),n instanceof Zf&<.$isElementNode(i)?(n.syncPropertiesFromLexical(e,i,r),n.syncChildrenFromLexical(e,i,r,o,s)):n instanceof vo&<.$isTextNode(i)?n.syncPropertiesAndTextFromLexical(e,i,r):n instanceof nc&<.$isDecoratorNode(i)&&n.syncPropertiesFromLexical(e,i,r)}syncChildrenFromLexical(e,n,i,r,o){var s=this.getPrevNode(i);let a=s===null?[]:CT(s,i);s=CT(n,null);let l=a.length-1,u=s.length-1,f=e.collabNodeMap,d,h,g=0;for(n=0;g<=l&&n<=u;){var m=a[g];let x=s[n];if(m===x)this._syncChildFromLexical(e,n,x,i,r,o),g++,n++;else{d===void 0&&(d=new Set(a)),h===void 0&&(h=new Set(s));var y=h.has(m);m=d.has(x),y?(y=g1(x),y=aG(e,y,this),f.set(x,y),m?(this.splice(e,n,1,y),g++):this.splice(e,n,0,y),n++):(this.splice(e,n,1),g++)}}if(i=g>l,r=n>u,i&&!r)for(;n<=u;++n)i=s[n],r=g1(i),r=aG(e,r,this),this.append(r),f.set(i,r);else if(r&&!i)for(s=this._children.length-1;s>=n;s--)this.splice(e,s,1)}append(e){let n=this._xmlText;var i=this._children;if(i=i[i.length-1],i=i!==void 0?i.getOffset()+i.getSize():0,e instanceof Zf)n.insertEmbed(i,e._xmlText);else if(e instanceof vo){let r=e._map;r.parent===null&&n.insertEmbed(i,r),n.insert(i+1,e._text)}else e instanceof p1?n.insertEmbed(i,e._map):e instanceof nc&&n.insertEmbed(i,e._xmlElem);this._children.push(e)}splice(e,n,i,r){let o=this._children;var s=o[n];if(s===void 0)r===void 0&&dr(94),this.append(r);else{var a=s.getOffset();a===-1&&dr(95);var l=this._xmlText;if(i!==0&&l.delete(a,s.getSize()),r instanceof Zf?l.insertEmbed(a,r._xmlText):r instanceof vo?(s=r._map,s.parent===null&&l.insertEmbed(a,s),l.insert(a+1,r._text)):r instanceof p1?l.insertEmbed(a,r._map):r instanceof nc&&l.insertEmbed(a,r._xmlElem),i!==0)for(a=o.slice(n,n+i),l=0;l<a.length;l++)a[l].destroy(e);r!==void 0?o.splice(n,i,r):o.splice(n,i)}}getChildOffset(e){let n=0,i=this._children;for(let r=0;r<i.length;r++){let o=i[r];if(o===e)return n;n+=o.getSize()}return-1}destroy(e){let n=e.collabNodeMap,i=this._children;for(let r=0;r<i.length;r++)i[r].destroy(e);n.delete(this._key)}};function ET(t,e,n){return e=new m1(t,e,n),t._collabNode=e}function fG(t,e){var n=e.collabNodeMap.get(t.key);if(n===void 0)return null;e=t.offset;let i=n.getSharedType();if(n instanceof vo){if(i=n._parent._xmlText,t=n.getOffset(),t===-1)return null;e=t+1+e}else if(n instanceof m1&&t.type==="element"){var r=t.getNode();if(!lt.$isElementNode(r))throw Error("Element point must be an element node");for(n=t=0,r=r.getFirstChild();r!==null&&n++<e;)lt.$isTextNode(r)?t+=r.getTextContentSize()+1:t++,r=r.getNextSibling();e=t}return _n.createRelativePositionFromTypeIndex(i,e)}function dG(t,e){if(t==null){if(e!=null)return!0}else if(e==null||!_n.compareRelativePositions(t,e))return!0;return!1}function hG(t,e){if(t=t.cursorsContainer,t!==null){e=e.selections;let n=e.length;for(let i=0;i<n;i++)t.removeChild(e[i])}}function pG(t,e){var n=e.awareness.getLocalState();if(n!==null&&(e=n.anchorPos,n=n.focusPos,e!==null&&n!==null&&(e=_n.createAbsolutePositionFromRelativePosition(e,t.doc),t=_n.createAbsolutePositionFromRelativePosition(n,t.doc),e!==null&&t!==null))){let[i,r]=c2(e.type,e.index),[o,s]=c2(t.type,t.index);if(i!==null&&o!==null){e=i.getKey(),n=o.getKey();let a=lt.$getSelection();lt.$isRangeSelection(a)&&(t=a.focus,gG(a.anchor,e,r),gG(t,n,s))}}}function gG(t,e,n){if(t.key!==e||t.offset!==n){let i=lt.$getNodeByKey(e);if(i!==null&&!lt.$isElementNode(i)&&!lt.$isTextNode(i)){let r=i.getParentOrThrow();e=r.getKey(),n=i.getIndexWithinParent(),i=r}t.set(e,n,lt.$isElementNode(i)?"element":"text")}}function c2(t,e){if(t=t._collabNode,t===void 0)return[null,0];if(t instanceof m1){let{node:n,offset:i}=u2(t,e,!0);return n===null?[t,0]:[n,i]}return[null,0]}function mG(t,e){var n=Array.from(e.awareness.getStates()),i=t.clientID;e=t.cursors;var r=t.editor._editorState._nodeMap;let o=new Set;for(var s=0;s<n.length;s++){let[C,E]=n[s];if(C!==i){o.add(C);let{anchorPos:N,focusPos:M,name:I,color:W,focusing:B}=E;var a=null,l=e.get(C);if(l===void 0&&(l={color:W,name:I,selection:null},e.set(C,l)),N!==null&&M!==null&&B){var u=_n.createAbsolutePositionFromRelativePosition(N,t.doc),f=_n.createAbsolutePositionFromRelativePosition(M,t.doc);if(u!==null&&f!==null){let[Z,R]=c2(u.type,u.index),[Q,V]=c2(f.type,f.index);if(Z!==null&&Q!==null){u=Z.getKey();var d=Q.getKey();if(a=l.selection,a===null){a=l,f=R;var h=V,g=a.color,m=document.createElement("span");m.style.cssText=`position:absolute;top:0;bottom:0;right:-1px;width:1px;background-color:${g};z-index:10;`;var y=document.createElement("span");y.textContent=a.name,y.style.cssText=`position:absolute;left:-2px;top:-16px;background-color:${g};color:#fff;line-height:12px;font-size:12px;padding:2px;font-family:Arial;font-weight:bold;white-space:nowrap;`,m.appendChild(y),a={anchor:{key:u,offset:f},caret:m,color:g,focus:{key:d,offset:h},name:y,selections:[]}}else f=a.anchor,h=a.focus,f.key=u,f.offset=R,h.key=d,h.offset=V}}}e:if(u=t,f=l,m=a,g=r,h=u.editor,a=h.getRootElement(),l=u.cursorsContainer,l!==null&&a!==null&&(a=l.offsetParent,a!==null))if(a=a.getBoundingClientRect(),d=f.selection,m===null)d!==null&&(f.selection=null,hG(u,d));else{f.selection=m,f=m.caret,d=m.color,u=m.selections,y=m.anchor,m=m.focus;var x=y.key,_=m.key,S=g.get(x);if(g=g.get(_),S!=null&&g!=null){if(S===g&<.$isLineBreakNode(S))g=[h.getElementByKey(x).getBoundingClientRect()];else{if(g=nG.createDOMRange(h,S,y.offset,g,m.offset),g===null)break e;g=nG.createRectsFromDOMRange(h,g)}for(m=u.length,h=g.length,y=0;y<h;y++)S=g[y],x=u[y],x===void 0&&(x=document.createElement("span"),u[y]=x,_=document.createElement("span"),x.appendChild(_),l.appendChild(x)),S=`position:absolute;top:${S.top-a.top}px;left:${S.left-a.left}px;height:${S.height}px;width:${S.width}px;pointer-events:none;z-index:5;`,x.style.cssText=S,x.firstChild.style.cssText=`${S}left:0;top:0;background-color:${d};opacity:0.3;`,y===h-1&&f.parentNode!==x&&x.appendChild(f);for(a=m-1;a>=h;a--)l.removeChild(u[a]),u.pop()}}}}for(n=Array.from(e.keys()),i=0;i<n.length;i++)r=n[i],o.has(r)||(s=e.get(r),s!==void 0&&(s=s.selection,s!==null&&hG(t,s),e.delete(r)))}function vG(t,e,n,i){e=e.awareness;var r=e.getLocalState();if(r!==null){var{anchorPos:o,focusPos:s,name:a,color:l,focusing:u,awarenessData:f}=r,d=r=null;(i!==null&&(o===null||i.is(n))||n!==null)&&(lt.$isRangeSelection(i)&&(r=fG(i.anchor,t),d=fG(i.focus,t)),(dG(o,r)||dG(s,d))&&e.setLocalState({anchorPos:r,awarenessData:f,color:l,focusPos:d,focusing:u,name:a}))}}let fje=lt.createCommand("CONNECTED_COMMAND"),dje=lt.createCommand("TOGGLE_CONNECT_COMMAND");Aa.CONNECTED_COMMAND=fje,Aa.TOGGLE_CONNECT_COMMAND=dje,Aa.createBinding=function(t,e,n,i,r,o){return i!=null||dr(81),e=i.get("root",_n.XmlText),e=ET(e,null,"root"),e._key="root",{clientID:i.clientID,collabNodeMap:new Map,cursors:new Map,cursorsContainer:null,doc:i,docMap:r,editor:t,excludedProperties:o||new Map,id:n,nodeProperties:new Map,root:e}},Aa.createUndoManager=function(t,e){return new _n.UndoManager(e,{trackedOrigins:new Set([t,null])})},Aa.initLocalState=function(t,e,n,i,r){t.awareness.setLocalState({anchorPos:null,awarenessData:r,color:n,focusPos:null,focusing:i,name:e})},Aa.setLocalStateFocus=function(t,e,n,i,r){({awareness:t}=t);let o=t.getLocalState();o===null&&(o={anchorPos:null,awarenessData:r,color:n,focusPos:null,focusing:i,name:e}),o.focusing=i,t.setLocalState(o)},Aa.syncCursorPositions=mG,Aa.syncLexicalUpdateToYjs=function(t,e,n,i,r,o,s,a){cje(t,()=>{i.read(()=>{if(a.has("collaboration")||a.has("historic")){if(0<s.size){var l=Array.from(s),u=t.collabNodeMap,f=[];for(let m=0;m<l.length;m++){var d=l[m],h=lt.$getNodeByKey(d),g=u.get(d);if(g instanceof vo)if(lt.$isTextNode(h))f.push([g,h.__text]);else{if(h=g.getOffset(),h===-1)continue;let y=g._parent;g._normalized=!0,y._xmlText.delete(h,1),u.delete(d),d=y._children,g=d.indexOf(g),d.splice(g,1)}}for(l=0;l<f.length;l++){let[m,y]=f[l];m instanceof vo&&typeof y=="string"&&(m._text=y)}}}else r.has("root")&&(f=n._nodeMap,l=lt.$getRoot(),u=t.root,u.syncPropertiesFromLexical(t,l,f),u.syncChildrenFromLexical(t,l,f,r,o)),f=lt.$getSelection(),vG(t,e,n._selection,f)})})},Aa.syncYjsChangesToLexical=function(t,e,n,i){let r=t.editor,o=r._editorState;n.forEach(s=>s.delta),r.update(()=>{for(var s=r._pendingEditorState,a=0;a<n.length;a++){var l=t,u=n[a],{target:f}=u;if(f=_T(l,f),f instanceof m1&&u instanceof _n.YTextEvent){let{keysChanged:d,childListChanged:h,delta:g}=u;0<d.size&&f.syncPropertiesFromYjs(l,d),h&&(f.applyChildrenYjsDelta(l,g),f.syncChildrenFromYjs(l))}else f instanceof vo&&u instanceof _n.YMapEvent?({keysChanged:u}=u,0<u.size&&f.syncPropertiesAndTextFromYjs(l,u)):f instanceof nc&&u instanceof _n.YXmlEvent?({attributesChanged:u}=u,0<u.size&&f.syncPropertiesFromYjs(l,u)):dr(82)}if(a=lt.$getSelection(),lt.$isRangeSelection(a))if(lG(a)){if(l=o._selection,lt.$isRangeSelection(l)){f=iG.$createOffsetView(r,0,o),s=iG.$createOffsetView(r,0,s);let[d,h]=f.getOffsetsFromSelection(l);s=0<=d&&0<=h?s.createSelectionFromOffsets(d,h,f):null,s!==null?lt.$setSelection(s):(pG(t,e),lG(a)&&(s=lt.$getRoot(),s.getChildrenSize()===0&&s.append(lt.$createParagraphNode()),lt.$getRoot().selectEnd()))}vG(t,e,l,lt.$getSelection())}else pG(t,e)},{onUpdate:()=>{mG(t,e)},skipTransforms:!0,tag:i?"historic":"collaboration"})};var hje=Aa,pje=tx,gje=Oe,Mr=T,bG=ut,La=hje,Nr=A,mje=Xs,vje=GX;function bje(t,e,n,i,r,o,s,a,l,u,f){let d=Mr.useRef(!1),[h,g]=Mr.useState(i.get(e)),m=Mr.useMemo(()=>La.createBinding(t,n,e,h,i,u),[t,n,e,i,h,u]),y=Mr.useCallback(()=>{n.connect()},[n]),x=Mr.useCallback(()=>{try{n.disconnect()}catch{}},[n]);Mr.useEffect(()=>{let{root:S}=m,{awareness:C}=n,E=({status:Z})=>{t.dispatchCommand(La.CONNECTED_COMMAND,Z==="connected")},N=Z=>{s&&Z&&S.isEmpty()&&S._xmlText._length===0&&d.current===!1&&wje(t,l),d.current=!1},M=()=>{La.syncCursorPositions(m,n)},I=(Z,R)=>{R=R.origin,R!==m&&La.syncYjsChangesToLexical(m,n,Z,R instanceof vje.UndoManager)};La.initLocalState(n,r,o,document.activeElement===t.getRootElement(),f||{});let W=Z=>{xje(t,m),g(Z),i.set(e,Z),d.current=!0};n.on("reload",W),n.on("status",E),n.on("sync",N),C.on("update",M),S.getSharedType().observeDeep(I);let B=t.registerUpdateListener(({prevEditorState:Z,editorState:R,dirtyLeaves:Q,dirtyElements:V,normalizedNodes:H,tags:j})=>{j.has("skip-collab")===!1&&La.syncLexicalUpdateToYjs(m,n,Z,R,V,Q,H,j)});return y(),()=>{d.current===!1&&x(),n.off("sync",N),n.off("status",E),n.off("reload",W),C.off("update",M),S.getSharedType().unobserveDeep(I),i.delete(e),B()}},[m,o,y,x,i,t,e,l,r,n,s,f]);let _=Mr.useMemo(()=>mje.createPortal(Mr.createElement("div",{ref:S=>{m.cursorsContainer=S}}),a&&a.current||document.body),[m,a]);return Mr.useEffect(()=>t.registerCommand(La.TOGGLE_CONNECT_COMMAND,S=>(y!==void 0&&x!==void 0&&(S?(console.log("Collaboration connected!"),y()):(console.log("Collaboration disconnected!"),x())),!0),Nr.COMMAND_PRIORITY_EDITOR),[y,x,t]),[_,m]}function kje(t,e,n,i,r){Mr.useEffect(()=>bG.mergeRegister(t.registerCommand(Nr.FOCUS_COMMAND,()=>(La.setLocalStateFocus(e,n,i,!0,r||{}),!1),Nr.COMMAND_PRIORITY_EDITOR),t.registerCommand(Nr.BLUR_COMMAND,()=>(La.setLocalStateFocus(e,n,i,!1,r||{}),!1),Nr.COMMAND_PRIORITY_EDITOR)),[i,t,n,e,r])}function yje(t,e){let n=Mr.useMemo(()=>La.createUndoManager(e,e.root.getSharedType()),[e]);Mr.useEffect(()=>bG.mergeRegister(t.registerCommand(Nr.UNDO_COMMAND,()=>(n.undo(),!0),Nr.COMMAND_PRIORITY_EDITOR),t.registerCommand(Nr.REDO_COMMAND,()=>(n.redo(),!0),Nr.COMMAND_PRIORITY_EDITOR)));let i=Mr.useCallback(()=>{n.clear()},[n]);return Mr.useEffect(()=>{let r=()=>{t.dispatchCommand(Nr.CAN_UNDO_COMMAND,0<n.undoStack.length),t.dispatchCommand(Nr.CAN_REDO_COMMAND,0<n.redoStack.length)};return n.on("stack-item-added",r),n.on("stack-item-popped",r),n.on("stack-cleared",r),()=>{n.off("stack-item-added",r),n.off("stack-item-popped",r),n.off("stack-cleared",r)}},[t,n]),i}function wje(t,e){t.update(()=>{var n=Nr.$getRoot();if(n.isEmpty())if(e)switch(typeof e){case"string":var i=t.parseEditorState(e);t.setEditorState(i,{tag:"history-merge"});break;case"object":t.setEditorState(e,{tag:"history-merge"});break;case"function":t.update(()=>{Nr.$getRoot().isEmpty()&&e(t)},{tag:"history-merge"})}else i=Nr.$createParagraphNode(),n.append(i),{activeElement:n}=document,(Nr.$getSelection()!==null||n!==null&&n===t.getRootElement())&&i.select()},{tag:"history-merge"})}function xje(t,e){if(t.update(()=>{let i=Nr.$getRoot();i.clear(),i.select()},{tag:"skip-collab"}),e.cursors!=null&&(t=e.cursors,t!=null&&(e=e.cursorsContainer,e!=null))){t=Array.from(t.values());for(let i=0;i<t.length;i++){var n=t[i].selection;if(n&&n.selections!=null){n=n.selections;for(let r=0;r<n.length;r++)e.removeChild(n[i])}}}}tV.CollaborationPlugin=function({id:t,providerFactory:e,shouldBootstrap:n,username:i,cursorColor:r,cursorsContainerRef:o,initialEditorState:s,excludedProperties:a,awarenessData:l}){let u=pje.useCollaborationContext(i,r),{yjsDocMap:f,name:d,color:h}=u,[g]=gje.useLexicalComposerContext();Mr.useEffect(()=>(u.isCollabActive=!0,()=>{g._parentEditor==null&&(u.isCollabActive=!1)}),[u,g]),i=Mr.useMemo(()=>e(t,f),[t,e,f]);let[m,y]=bje(g,t,i,f,d,h,n,o,s,a,l);return u.clientID=y.clientID,yje(g,y),kje(g,i,d,h,l),m};var kG=tV,yG={},wG=Oe,v1=A,f2=T;let xG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var _je=xG?f2.useLayoutEffect:f2.useEffect;let d2={tag:"history-merge"};function Oje(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=v1.$getRoot();if(n.isEmpty()){let i=v1.$createParagraphNode();n.append(i),n=xG?document.activeElement:null,(v1.$getSelection()!==null||n!==null&&n===t.getRootElement())&&i.select()}},d2);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,d2);break;case"object":t.setEditorState(e,d2);break;case"function":t.update(()=>{v1.$getRoot().isEmpty()&&e(t)},d2)}}}yG.LexicalComposer=function({initialConfig:t,children:e}){let n=f2.useMemo(()=>{const{theme:i,namespace:r,editor__DEPRECATED:o,nodes:s,onError:a,editorState:l,html:u}=t,f=wG.createLexicalComposerContext(null,i);let d=o||null;if(d===null){const h=v1.createEditor({editable:t.editable,html:u,namespace:r,nodes:s,onError:g=>a(g,h),theme:i});Oje(h,l),d=h}return[d,f]},[]);return _je(()=>{let i=t.editable,[r]=n;r.setEditable(i!==void 0?i:!0)},[]),f2.createElement(wG.LexicalComposerContext.Provider,{value:n},e)};var Sje=yG;const _G=new Map;class Cje{constructor(e){this.room=e,this.onmessage=null,this._onChange=n=>n.key===e&&this.onmessage!==null&&this.onmessage({data:bLe(n.newValue||"")}),JIe(this._onChange)}postMessage(e){xV.setItem(this.room,vLe(dLe(e)))}close(){eLe(this._onChange)}}const Eje=typeof BroadcastChannel>"u"?Cje:BroadcastChannel,TT=t=>Kr(_G,t,()=>{const e=Hu(),n=new Eje(t);return n.onmessage=i=>e.forEach(r=>r(i.data,"broadcastchannel")),{bc:n,subs:e}}),Tje=(t,e)=>(TT(t).subs.add(e),e),$je=(t,e)=>{const n=TT(t),i=n.subs.delete(e);return i&&n.subs.size===0&&(n.bc.close(),_G.delete(t)),i},Yh=(t,e,n=null)=>{const i=TT(t);i.bc.postMessage(e),i.subs.forEach(r=>r(e,n))},OG=0,$T=1,SG=2,MT=(t,e)=>{We(t,OG);const n=jV(e);ci(t,n)},CG=(t,e,n)=>{We(t,$T),ci(t,LV(e,n))},Mje=(t,e,n)=>CG(e,n,Tr(t)),EG=(t,e,n)=>{try{DV(e,Tr(t),n)}catch(i){console.error("Caught error while handling a Yjs update",i)}},Nje=(t,e)=>{We(t,SG),ci(t,e)},Aje=EG,Pje=(t,e,n,i)=>{const r=gt(t);switch(r){case OG:Mje(t,e,n);break;case $T:EG(t,n,i);break;case SG:Aje(t,n,i);break;default:throw new Error("Unknown message type")}return r},Dje=0,Ije=(t,e,n)=>{switch(gt(t)){case Dje:n(e,wl(t))}},NT=3e4;class Lje extends xIe{constructor(e){super(),this.doc=e,this.clientID=e.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const n=Zu();this.getLocalState()!==null&&NT/2<=n-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const i=[];this.meta.forEach((r,o)=>{o!==this.clientID&&NT<=n-r.lastUpdated&&this.states.has(o)&&i.push(o)}),i.length>0&&AT(this,i,"timeout")},kl(NT/10)),e.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){const n=this.clientID,i=this.meta.get(n),r=i===void 0?0:i.clock+1,o=this.states.get(n);e===null?this.states.delete(n):this.states.set(n,e),this.meta.set(n,{clock:r,lastUpdated:Zu()});const s=[],a=[],l=[],u=[];e===null?u.push(n):o==null?e!=null&&s.push(n):(a.push(n),r1(o,e)||l.push(n)),(s.length>0||l.length>0||u.length>0)&&this.emit("change",[{added:s,updated:l,removed:u},"local"]),this.emit("update",[{added:s,updated:a,removed:u},"local"])}setLocalStateField(e,n){const i=this.getLocalState();i!==null&&this.setLocalState({...i,[e]:n})}getStates(){return this.states}}const AT=(t,e,n)=>{const i=[];for(let r=0;r<e.length;r++){const o=e[r];if(t.states.has(o)){if(t.states.delete(o),o===t.clientID){const s=t.meta.get(o);t.meta.set(o,{clock:s.clock+1,lastUpdated:Zu()})}i.push(o)}}i.length>0&&(t.emit("change",[{added:[],updated:[],removed:i},n]),t.emit("update",[{added:[],updated:[],removed:i},n]))},b1=(t,e,n=t.states)=>{const i=e.length,r=Zi();We(r,i);for(let o=0;o<i;o++){const s=e[o],a=n.get(s)||null,l=t.meta.get(s).clock;We(r,s),We(r,l),Qu(r,JSON.stringify(a))}return xn(r)},Rje=(t,e,n)=>{const i=Yi(e),r=Zu(),o=[],s=[],a=[],l=[],u=gt(i);for(let f=0;f<u;f++){const d=gt(i);let h=gt(i);const g=JSON.parse(wl(i)),m=t.meta.get(d),y=t.states.get(d),x=m===void 0?0:m.clock;(x<h||x===h&&g===null&&t.states.has(d))&&(g===null?d===t.clientID&&t.getLocalState()!=null?h++:t.states.delete(d):t.states.set(d,g),t.meta.set(d,{clock:h,lastUpdated:r}),m===void 0&&g!==null?o.push(d):m!==void 0&&g===null?l.push(d):g!==null&&(r1(g,y)||a.push(d),s.push(d)))}(o.length>0||a.length>0||l.length>0)&&t.emit("change",[{added:o,updated:a,removed:l},n]),(o.length>0||s.length>0||l.length>0)&&t.emit("update",[{added:o,updated:s,removed:l},n])},jje=t=>iLe(t,(e,n)=>`${encodeURIComponent(n)}=${encodeURIComponent(e)}`).join("&"),$f=0,TG=3,Vh=1,Fje=2,k1=[];k1[$f]=(t,e,n,i,r)=>{We(t,$f);const o=Pje(e,t,n.doc,n);i&&o===$T&&!n.synced&&(n.synced=!0)},k1[TG]=(t,e,n,i,r)=>{We(t,Vh),ci(t,b1(n.awareness,Array.from(n.awareness.getStates().keys())))},k1[Vh]=(t,e,n,i,r)=>{Rje(n.awareness,Tr(e),n)},k1[Fje]=(t,e,n,i,r)=>{Ije(e,n.doc,(o,s)=>zje(n,s))};const $G=3e4,zje=(t,e)=>console.warn(`Permission denied to access ${t.url}.
|
||
${e}`),MG=(t,e,n)=>{const i=Yi(e),r=Zi(),o=gt(i),s=t.messageHandlers[o];return s?s(r,i,t,n,o):console.error("Unable to compute message"),r},PT=(t,e,n)=>{e===t.ws&&(t.emit("connection-close",[n,t]),t.ws=null,e.close(),t.wsconnecting=!1,t.wsconnected?(t.wsconnected=!1,t.synced=!1,AT(t.awareness,Array.from(t.awareness.getStates().keys()).filter(i=>i!==t.doc.clientID),t),t.emit("status",[{status:"disconnected"}])):t.wsUnsuccessfulReconnects++,setTimeout(NG,LE(OIe(2,t.wsUnsuccessfulReconnects)*100,t.maxBackoffTime),t))},NG=t=>{if(t.shouldConnect&&t.ws===null){const e=new t._WS(t.url,t.protocols);e.binaryType="arraybuffer",t.ws=e,t.wsconnecting=!0,t.wsconnected=!1,t.synced=!1,e.onmessage=n=>{t.wsLastMessageReceived=Zu();const i=MG(t,new Uint8Array(n.data),!0);zE(i)>1&&e.send(xn(i))},e.onerror=n=>{t.emit("connection-error",[n,t])},e.onclose=n=>{PT(t,e,n)},e.onopen=()=>{t.wsLastMessageReceived=Zu(),t.wsconnecting=!1,t.wsconnected=!0,t.wsUnsuccessfulReconnects=0,t.emit("status",[{status:"connected"}]);const n=Zi();if(We(n,$f),MT(n,t.doc),e.send(xn(n)),t.awareness.getLocalState()!==null){const i=Zi();We(i,Vh),ci(i,b1(t.awareness,[t.doc.clientID])),e.send(xn(i))}},t.emit("status",[{status:"connecting"}])}},DT=(t,e)=>{const n=t.ws;t.wsconnected&&n&&n.readyState===n.OPEN&&n.send(e),t.bcconnected&&Yh(t.bcChannel,e,t)};class Bje extends jx{constructor(e,n,i,{connect:r=!0,awareness:o=new Lje(i),params:s={},protocols:a=[],WebSocketPolyfill:l=WebSocket,resyncInterval:u=-1,maxBackoffTime:f=2500,disableBc:d=!1}={}){for(super();e[e.length-1]==="/";)e=e.slice(0,e.length-1);this.serverUrl=e,this.bcChannel=e+"/"+n,this.maxBackoffTime=f,this.params=s,this.protocols=a,this.roomname=n,this.doc=i,this._WS=l,this.awareness=o,this.wsconnected=!1,this.wsconnecting=!1,this.bcconnected=!1,this.disableBc=d,this.wsUnsuccessfulReconnects=0,this.messageHandlers=k1.slice(),this._synced=!1,this.ws=null,this.wsLastMessageReceived=0,this.shouldConnect=r,this._resyncInterval=0,u>0&&(this._resyncInterval=setInterval(()=>{if(this.ws&&this.ws.readyState===WebSocket.OPEN){const h=Zi();We(h,$f),MT(h,i),this.ws.send(xn(h))}},u)),this._bcSubscriber=(h,g)=>{if(g!==this){const m=MG(this,new Uint8Array(h),!1);zE(m)>1&&Yh(this.bcChannel,xn(m),this)}},this._updateHandler=(h,g)=>{if(g!==this){const m=Zi();We(m,$f),Nje(m,h),DT(this,xn(m))}},this.doc.on("update",this._updateHandler),this._awarenessUpdateHandler=({added:h,updated:g,removed:m},y)=>{const x=h.concat(g).concat(m),_=Zi();We(_,Vh),ci(_,b1(o,x)),DT(this,xn(_))},this._exitHandler=()=>{AT(this.awareness,[i.clientID],"app closed")},qu&&typeof process<"u"&&process.on("exit",this._exitHandler),o.on("update",this._awarenessUpdateHandler),this._checkInterval=setInterval(()=>{this.wsconnected&&$G<Zu()-this.wsLastMessageReceived&&PT(this,this.ws,null)},$G/10),r&&this.connect()}get url(){const e=jje(this.params);return this.serverUrl+"/"+this.roomname+(e.length===0?"":"?"+e)}get synced(){return this._synced}set synced(e){this._synced!==e&&(this._synced=e,this.emit("synced",[e]),this.emit("sync",[e]))}destroy(){this._resyncInterval!==0&&clearInterval(this._resyncInterval),clearInterval(this._checkInterval),this.disconnect(),qu&&typeof process<"u"&&process.off("exit",this._exitHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.doc.off("update",this._updateHandler),super.destroy()}connectBc(){if(this.disableBc)return;this.bcconnected||(Tje(this.bcChannel,this._bcSubscriber),this.bcconnected=!0);const e=Zi();We(e,$f),MT(e,this.doc),Yh(this.bcChannel,xn(e),this);const n=Zi();We(n,$f),CG(n,this.doc),Yh(this.bcChannel,xn(n),this);const i=Zi();We(i,TG),Yh(this.bcChannel,xn(i),this);const r=Zi();We(r,Vh),ci(r,b1(this.awareness,[this.doc.clientID])),Yh(this.bcChannel,xn(r),this)}disconnectBc(){const e=Zi();We(e,Vh),ci(e,b1(this.awareness,[this.doc.clientID],new Map)),DT(this,xn(e)),this.bcconnected&&($je(this.bcChannel,this._bcSubscriber),this.bcconnected=!1)}disconnect(){this.shouldConnect=!1,this.disconnectBc(),this.ws!==null&&PT(this,this.ws,null)}connect(){this.shouldConnect=!0,!this.wsconnected&&this.ws===null&&(NG(this),this.connectBc())}}function Wje(t){console.error(t)}const Hje={namespace:"KoenigEditor",theme:zq,html:oD.html},Qje=({initialEditorState:t,nodes:e=[...eV],onError:n=Wje,fileUploader:i={},cardConfig:r={},darkMode:o=!1,enableMultiplayer:s=!1,isTKEnabled:a,multiplayerEndpoint:l,multiplayerDebug:u=!0,multiplayerDocId:f,multiplayerUsername:d,children:h})=>{const g=T.useMemo(()=>{var S,C;let _=t;return _&&(typeof _=="string"&&(_=JSON.parse(_)),((C=(S=_.root)==null?void 0:S.children)==null?void 0:C.length)===0&&_.root.children.push({children:[],direction:null,format:"",indent:0,type:"paragraph",version:1}),_=JSON.stringify(_)),Object.assign({},Hje,{nodes:e,editorState:s?null:_,onError:n})},[s,t,e,n]),m=T.useRef(null),y=T.useRef(null);i.useFileUpload||(i.useFileUpload=function(){console.error("<KoenigComposer> requires a `fileUploader` prop object to be passed containing a `useFileUpload` custom hook")});const x=T.useCallback((_,S)=>{let C=S.get(_);C===void 0?(C=new _l,S.set(_,C)):C.load();const E=new Bje(l,f+"/"+_,C,{connect:!1});return u&&E.on("status",N=>{console.log(N.status,`id: ${f}/${_}`)}),E},[l,f,u]);return k.jsx(Sje.LexicalComposer,{initialConfig:g,children:k.jsx(ft.Provider,{value:{fileUploader:i,editorContainerRef:m,cardConfig:r,darkMode:o,enableMultiplayer:s,isTKEnabled:a,multiplayerEndpoint:l,multiplayerDocId:f,multiplayerUsername:d,createWebsocketProvider:x,onWordCountChangeRef:y},children:k.jsx(Tke,{children:k.jsxs(dAe,{children:[s?k.jsx(kG.CollaborationPlugin,{id:"main",initialEditorState:t,providerFactory:x,shouldBootstrap:!0,username:d}):null,h]})})})})};function Uje({atLinkNode:t,isSearching:e,listOptions:n,query:i,onSelect:r}){const[o]=Oe.useLexicalComposerContext();T.useEffect(()=>{i||ui("Link dropdown: Opened",{context:"at-link"})},[]);const s=T.useMemo(()=>yh(o.getRootElement()),[o]),a=T.useRef(null),l="at-link-results",u=T.useCallback(()=>{o.update(()=>{const h=a.current;if(!h||!A.$getSelection())return;const y=o.getElementByKey(t.getKey()).getBoundingClientRect(),x=o.getRootElement();if(!y||!x||!h)return;const _=x.getBoundingClientRect(),S=y.bottom+10,C=_.left,E=_.right;h.style.top=`${S}px`,h.style.left=`${C}px`,h.style.width=`${E-C}px`;const N=window.innerHeight/100*30+54,M=h.getBoundingClientRect();s.scrollTop+M.top+N>s.scrollHeight&&(h.style.top=`${y.top-M.height-10}px`)})},[o,t,s]);T.useEffect(()=>{u()},[u]),T.useEffect(()=>{window.addEventListener("resize",u),s&&s.addEventListener("scroll",u);const h=a.current,g=new MutationObserver(u);return g.observe(h,{childList:!0,subtree:!0}),()=>{window.removeEventListener("resize",u),s&&s.removeEventListener("scroll",u),h&&g.disconnect()}},[o,s,u]);const f=(h,g,m,y)=>k.jsx(a6,{dataTestId:l,highlightString:i,item:h,scrollIntoView:y,selected:g,onClick:r,onMouseOver:m},h.value),d=(h,{showSpinner:g}={})=>k.jsx(s6,{dataTestId:l,group:h,showSpinner:g});return k.jsx("div",{ref:a,className:"not-kg-prose fixed z-[10000]","data-testid":"at-link-results",children:k.jsx("div",{className:"relative m-0 flex w-full flex-col rounded-lg bg-white p-1 px-2 font-sans text-sm font-medium shadow-md dark:bg-grey-950",children:k.jsx("ul",{className:"max-h-[30vh] w-full overflow-y-auto bg-white py-1 dark:bg-grey-950",children:k.jsx(o6,{getGroup:d,getItem:f,groups:n,isLoading:e,onSelect:r})})})})}function ic(t,{focus:e=!1}={}){if(!Ga(t)){console.warn("$removeAtLink called on a non-at-link node",t);return}const n=t.getChildAtIndex(1),i=A.$createTextNode("@"+n.getTextContent());i.setFormat(t.getLinkFormat()),t.replace(i),e&&i.selectEnd()}function Zje(){return[{label:"No results found"}]}const qje=({searchLinks:t,siteUrl:e})=>{const[n]=Oe.useLexicalComposerContext(),[i,r]=T.useState(null),[o,s]=T.useState(""),a=T.useMemo(()=>({noResultOptions:Zje}),[]),{isSearching:l,listOptions:u}=l6(o,t,a);T.useEffect(()=>{const d=n.getRootElement(),h=m=>{if(!m.isComposing&&m.inputType==="insertText"&&m.data==="@"){let y=!1;n.getEditorState().read(()=>{const x=A.$getSelection();if(!A.$isRangeSelection(x)||!x.isCollapsed())return;const _=x.anchor;if(_.type!=="text")return;const S=_.getNode();if(!S.isSimpleText())return;let C=_.offset,E=S.getTextContent().slice(0,C),N=S.getTextContent().slice(C);const M=S.getPreviousSibling(),I=S.getNextSibling();C===0&&A.$isTextNode(M)&&(E=M.getTextContent()),C===S.getTextContent().length&&A.$isTextNode(I)&&(N=I.getTextContent());const W=/(^|\s)@$/,B=/^($|\s|\.)/;W.test(E)&&B.test(N)&&(y=!0)}),y&&n.update(()=>{const x=A.$getSelection(),_=x.anchor.getNode().getFormat();x.deleteCharacter(!0);const S=pS();S.setLinkFormat(_);const C=gS();S.append(C);const E=sm("");S.append(E),x.insertNodes([S]),S.select(1,1);const N=S.getChildAtIndex(1),M=A.$getSelection();A.$isRangeSelection(M)&&(M.anchor.set(N.getKey(),0,"element"),M.focus.set(N.getKey(),0,"element"))})}},g=m=>{m.inputType==="insertText"&&m.data==="@"&&n.update(()=>{const y=A.$getSelection();A.$isRangeSelection(y)&&y.isCollapsed()&&!y.anchor.getNode().getPreviousSibling()&&h(m)})};return d.addEventListener("input",h),d.addEventListener("beforeinput",g),()=>{d.removeEventListener("input",h),d.removeEventListener("beforeinput",g)}},[n]),T.useEffect(()=>n.registerUpdateListener(()=>{n.isComposing()||n.update(()=>{var g;const d=A.$nodesOfType(aa),h=A.$getSelection();if(!A.$isRangeSelection(h)){d.forEach(ic),r(null),s("");return}if(h.isCollapsed()){const m=h.anchor.getNode();let y;if(Ga(m)&&(y=m),Ga(m.getParent())&&(y=m.getParent()),d.forEach(x=>{x!==y&&ic(x)}),y){r(y);const x=y.getChildAtIndex(1),_=(g=x==null?void 0:x.getTextContent)==null?void 0:g.call(x);if(s(_),zd(h.focus.getNode())&&window.getSelection().anchorOffset===0){y.select(1,1);const S=A.$getSelection();A.$isRangeSelection(S)&&(S.anchor.set(x.getKey(),0,"element"),S.focus.set(x.getKey(),0,"element"))}_===""&&zd(h.anchor.getNode())&&ic(y,{focus:!0})}else r(null),s("");return}})}),[n]),T.useEffect(()=>{function d(){const h=A.$getSelection();return!!(A.$isRangeSelection(h)&&Ka(h.anchor.getNode()))}return ut.mergeRegister(n.registerCommand(A.KEY_ESCAPE_COMMAND,()=>{const h=A.$getSelection();if(A.$isRangeSelection(h)){const g=h.anchor.getNode();if(Ga(g))return ic(g,{focus:!0}),!0;if(Ka(g)||zd(g)&&Ga(g.getParent()))return ic(g.getParent(),{focus:!0}),!0}return!1},A.COMMAND_PRIORITY_HIGH),n.registerCommand(A.DELETE_CHARACTER_COMMAND,h=>{const g=A.$getSelection();if(A.$isRangeSelection(g)){const m=g.anchor.getNode();if(Ka(m)||zd(m)&&Ga(m.getParent())){const y=g.anchor.offset;if(h&&y===0)return ic(m.getParent(),{focus:!0}),!0;if(!h&&y===m.getTextContentSize())return ic(m.getParent(),{focus:!0}),!0}}return!1},A.COMMAND_PRIORITY_HIGH),n.registerCommand(A.FORMAT_TEXT_COMMAND,d,A.COMMAND_PRIORITY_HIGH),n.registerCommand(A.FORMAT_ELEMENT_COMMAND,d,A.COMMAND_PRIORITY_HIGH),n.registerCommand(A.PASTE_COMMAND,h=>{const g=A.$getSelection();if(!g||document.activeElement!==n.getRootElement())return!1;const m=g.anchor.getNode();if(A.$isRangeSelection(g)&&(Ga(m)||Ka(m))){h.preventDefault();const y=Ka(m)?m:m.getChildAtIndex(1),x=h.clipboardData.getData("text/plain");return x&&(y.setTextContent(y.getTextContent()+x),y.selectEnd()),!0}return!1},A.COMMAND_PRIORITY_HIGH))}),T.useEffect(()=>n.registerNodeTransform(aa,d=>{if(!zd(d.getFirstChild())){const y=gS();ut.$insertFirst(d,y)}if(!Ka(d.getChildAtIndex(1))){const y=sm("");d.append(y)}d.getChildren().forEach((y,x)=>{var _;if(x>0&&!Ka(y)){const S=(_=y.getTextContent)==null?void 0:_.call(y);if(!S)y.remove();else{const C=sm(S);y.replace(C)}}});const h=d.getChildAtIndex(1),g=h.getTextContent();let m=g;d.getChildren().forEach((y,x)=>{x>1&&(m+=y.getTextContent(),y.remove())}),m!==g&&h.setTextContent(m)}),[n]);const f=T.useCallback(d=>{n.update(()=>{if(!(d!=null&&d.value)){ic(i,{focus:!0});return}const g=i.getParent().getChildren();let m=g.length!==1||!Ga(g[0]);if(m){const y=ki.$createLinkNode(d.value),x=A.$createTextNode(d.label);y.append(x),y.setFormat(i.getLinkFormat()),i.replace(y),y.selectEnd(),s(""),r(null)}else{const y=c6({url:d.value,title:d.label});i.replace(y),y.selectEnd()}if(d.type==="internal"||d.type==="default")ui("Link dropdown: Internal link chosen",{context:"at-link",fromLatest:d.type==="default",isBookmark:!m});else{let y=u6(d.value,e)?"internal":"external";ui("Link dropdown: URL entered",{context:"at-link",target:y,isBookmark:!m})}})},[n,i,e]);return i?k.jsx(Gc,{"data-testid":"at-link-popup",children:k.jsx(Uje,{atLinkNode:i,isSearching:l,listOptions:u,query:o,onSelect:f})}):null},Yje=()=>{const{cardConfig:t}=T.useContext(ft),[e]=Oe.useLexicalComposerContext();return!(typeof(t==null?void 0:t.searchLinks)=="function")||!e.hasNodes([aa,ou])?null:k.jsx(qje,{searchLinks:t.searchLinks,siteUrl:t.siteUrl})},AG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([rx])){console.error("CallToActionPlugin: CallToActionNode not registered");return}return ut.mergeRegister(t.registerCommand(Hq,async e=>{const n=MPe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},Vje=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>t.registerUpdateListener(()=>{t.update(()=>{if(t.isComposing())return;const e=A.$getSelection();if(!A.$isRangeSelection(e)||!e.type==="text"||!e.isCollapsed())return;const n=/---?./,i=Ru(e),r=i.getTextContent();if(!i||!A.$isTextNode(i)||!(r!=null&&r.match)||!r.match(n))return;const s=window.getSelection().anchorNode,a=t.getRootElement();if((s==null?void 0:s.nodeType)!==Node.TEXT_NODE||!a.contains(s))return;const l=/---([^-])/,u=/[^-]--(\s)/,f=r.match(l);if(f){const h=f==null?void 0:f.index,g=r.slice(0,h)+"—"+r.slice(h+3);i.setTextContent(g),e.anchor.offset=h+2,e.focus.offset=h+2;return}const d=r.match(u);if(d){const h=d==null?void 0:d.index,g=r.slice(0,h+1)+"–"+r.slice(h+3);i.setTextContent(g),e.anchor.offset=h+3,e.focus.offset=h+3;return}},{tag:"history-merge"})}),[t]),null},IT=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(tZ,()=>{const e=A.$getSelection();if(!A.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const i=U5(),r=e.focus.getNode();A.$isParagraphNode(r)&&r.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(i)}return!0},A.COMMAND_PRIORITY_EDITOR)},[t]),T.useEffect(()=>t.registerUpdateListener(()=>{t.update(()=>{if(t.isComposing())return;const e=A.$getSelection();if(!A.$isRangeSelection(e)||!e.type==="text"||!e.isCollapsed())return;const n=/^(---|\*\*\*|___)\s?$/,i=Ru(e).getTopLevelElement();if(!i||!A.$isParagraphNode(i)||!i.getTextContent().match(n))return;const o=window.getSelection().anchorNode,s=t.getRootElement();if((o==null?void 0:o.nodeType)!==Node.TEXT_NODE||!s.contains(o))return;const a=U5(),l=i.getTopLevelElement();l.getNextSibling()?l.replace(a):(l.insertBefore(a),l.replace(A.$createParagraphNode())),a.selectNext()})}),[t]),null},Xje=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([f0])){console.error("HtmlPlugin: HtmlNode not registered");return}return ut.mergeRegister(t.registerCommand(HW,async e=>{const n=CEe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},PG=()=>{const[t]=Oe.useLexicalComposerContext(),{fileUploader:e}=T.useContext(ft),n=e.useFileUpload("image"),i=T.useCallback(async(r,o)=>{if((r==null?void 0:r.length)>0)return await v0(r,o,t,n.upload)},[n.upload,t]);return T.useEffect(()=>{if(!t.hasNodes([Au])){console.error("ImagePlugin: ImageNode not registered");return}return ut.mergeRegister(t.registerCommand(K6,async r=>{const o=Sh(r);return t.dispatchCommand(kn,{cardNode:o}),!0},A.COMMAND_PRIORITY_LOW),t.registerCommand(aw,async r=>r.type==="image"?(t.dispatchCommand(K6,{initialFile:r.file}),!0):!1,A.COMMAND_PRIORITY_HIGH))},[t,e,i]),null},DG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Px])){console.error("MarkdownPlugin: MarkdownNode not registered");return}return ut.mergeRegister(t.registerCommand(RY,async e=>{const n=JDe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_HIGH))},[t]),null},IG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([I0])){console.error("AudioPlugin: AudioNode not registered");return}return ut.mergeRegister(t.registerCommand(gE,async e=>{const n=oPe(e);return t.dispatchCommand(kn,{cardNode:n}),!0},A.COMMAND_PRIORITY_LOW),t.registerCommand(aw,async e=>e.type==="audio"?(t.dispatchCommand(gE,{initialFile:e.file}),!0):!1,A.COMMAND_PRIORITY_HIGH))},[t]),null},Gje=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Uy])){console.error("BookmarkPlugin: BookmarkNode not registered");return}return ut.mergeRegister(t.registerCommand(VB,async e=>{const n=A.$getSelection();if(!A.$isRangeSelection(n))return!1;if(n.focus.getNode()!==null){const r=c6(e);t.dispatchCommand(kn,{cardNode:r})}return!0},A.COMMAND_PRIORITY_HIGH))},[t]),null},Kje=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([nx])){console.error("ButtonPlugin: ButtonNode not registered");return}return ut.mergeRegister(t.registerCommand(jq,async e=>{const n=aPe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},LG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([ox])){console.error("CalloutPlugin: CalloutNode not registered");return}return ut.mergeRegister(t.registerCommand(Zq,async e=>{const n=LPe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))}),null},Jje=t=>J.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"-0.75 -0.75 24 24",height:24,width:24,...t},J.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M8.4375 8.4375a2.8125 2.8125 0 1 1 3.75 2.6521875 1.40625 1.40625 0 0 0 -0.9375 1.3265625v0.943125",strokeWidth:1.5}),J.createElement("path",{stroke:"currentColor",d:"M11.25 16.875a0.3515625 0.3515625 0 0 1 0 -0.703125",strokeWidth:1.5}),J.createElement("path",{stroke:"currentColor",d:"M11.25 16.875a0.3515625 0.3515625 0 0 0 0 -0.703125",strokeWidth:1.5}),J.createElement("path",{stroke:"currentColor",strokeMiterlimit:10,d:"M11.25 21.796875c5.8246875000000005 0 10.546875 -4.7221874999999995 10.546875 -10.546875S17.0746875 0.703125 11.25 0.703125 0.703125 5.4253124999999995 0.703125 11.25 5.4253124999999995 21.796875 11.25 21.796875Z",strokeWidth:1.5})),eFe=({label:t,children:e,...n})=>{let i="";return t==="Primary"?i="https://ghost.org/help/cards/":t==="Snippets"&&(i="https://ghost.org/help/snippets/"),k.jsxs("li",{className:"flex shrink-0 flex-col justify-center border-t border-grey-200 text-[1.1rem] font-semibold tracking-wide text-grey-600 first-of-type:border-t-0 dark:border-grey-900 dark:text-grey-600",role:"separator",...n,children:[k.jsxs("span",{className:"flex items-center justify-between px-4 pb-2 pt-3 uppercase","data-card-menu-section":"label",style:{minWidth:"calc(100% - 3.2rem)"},children:[t,i&&k.jsx("a",{href:i,rel:"noreferrer",target:"_blank",children:k.jsx(Jje,{className:"-m-1 size-6 cursor-pointer p-1 transition-all hover:text-green-600"})})]}),k.jsx("ul",{className:"md:grid md:gap-y-[.2rem] md:px-2",role:"menu",children:e})]})},tFe=({label:t,shortcut:e,desc:n,isSelected:i,scrollToItem:r,onClick:o,Icon:s,...a})=>{const l=T.useRef(null);T.useEffect(()=>{r&&l.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[r]);const u=f=>{f.preventDefault()};return k.jsx("li",{className:"mb-0",role:"presentation",children:k.jsxs("button",{ref:l,className:`group flex w-full cursor-pointer flex-row items-center gap-3 border border-transparent px-2 py-[.6rem] text-left text-grey-800 hover:bg-grey-100 dark:hover:bg-grey-900 md:rounded-md ${i?"bg-grey-100 dark:bg-grey-900":""}`,"data-kg-card-menu-item":t,"data-kg-cardmenu-selected":i,role:"menuitem",type:"button",onClick:o,onMouseDown:u,...a,children:[k.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center rounded-md bg-white text-grey-900 dark:bg-transparent dark:text-grey-500",children:k.jsx(s,{className:"size-[1.8rem]"})}),k.jsxs("div",{className:"flex w-full justify-between",children:[k.jsx("div",{className:"m-0 truncate text-[1.35rem] font-medium leading-snug tracking-[.02rem] text-grey-900 dark:text-grey-200",children:t}),k.jsx("div",{className:"invisible m-0 truncate text-[1.35rem] font-medium leading-snug tracking-[.02rem] text-grey-500 group-hover:visible dark:text-grey-200",children:e})]})]})})},nFe=({label:t,isSelected:e,scrollToItem:n,Icon:i,onRemove:r,closeMenu:o,...s})=>{const a=T.useRef(null);T.useEffect(()=>{n&&a.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[n]);const l=f=>{f.stopPropagation(),r(),o()},u=f=>{f.stopPropagation(),f.preventDefault()};return k.jsx("li",{className:"mb-0 md:col-span-2",role:"presentation",children:k.jsxs("div",{ref:a,className:`kg-cardmenu-card-hover group flex w-full cursor-pointer flex-row items-center rounded-md border border-transparent px-2 py-1 text-grey-800 hover:bg-grey-100 dark:hover:bg-grey-900 ${e?"bg-grey-100 dark:bg-grey-900":""}`,"data-kg-cardmenu-selected":e,role:"menuitem",onMouseDown:u,...s,children:[k.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center rounded-md bg-white text-grey-900 dark:bg-transparent dark:text-grey-500",children:k.jsx(i,{className:"size-[1.8rem] stroke-2"})}),k.jsx("div",{className:"m-0 ml-4 truncate text-[1.35rem] font-medium leading-snug tracking-[.02rem] text-grey-900 dark:text-grey-200",children:t}),!!r&&k.jsx("button",{className:"ml-auto cursor-pointer rounded-md p-[4px] hover:bg-grey-200 group-hover:block dark:hover:bg-grey-950",title:"Remove snippet",type:"button",onClick:l,children:k.jsx(Kc,{className:"size-[1.8rem] stroke-red stroke-[1.5] text-red"})})]})})},RG=({menu:t=new Map,insert:e=()=>{},selectedItemIndex:n,scrollToSelectedItem:i,closeMenu:r})=>{const o=[];let s=0;for(const[a,l]of t){const u=[];l.forEach(f=>{const d=s===n,h=g=>{g.preventDefault(),g.stopPropagation(),e==null||e(f.insertCommand,{insertParams:f.insertParams,queryParams:f.queryParams});const m=f.type==="snippet"?"Snippet":f.label;ui("Card Added",{card:m})};!f.type||f.type==="card"?u.push(k.jsx(tFe,{"data-kg-cardmenu-idx":s,desc:f.desc,Icon:f.Icon,isSelected:d,label:f.label,scrollToItem:d&&i,shortcut:f.shortcut,onClick:h},s)):f.type==="snippet"&&u.push(k.jsx(nFe,{closeMenu:r,"data-kg-cardmenu-idx":s,Icon:f.Icon,isSelected:d,label:f.label,scrollToItem:d&&i,onClick:h,onRemove:f.onRemove},s)),s=s+1}),o.push(k.jsx(eFe,{label:a,children:u},a))}return k.jsx("ul",{className:"not-kg-prose z-[9999999] m-0 mb-3 max-h-[420px] w-[312px] scroll-p-2 flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 font-sans text-sm shadow-md after:block after:pb-1 dark:bg-grey-950 md:w-[348px]",role:"menu",children:o})};function iFe({onClick:t}){return k.jsx("div",{className:"absolute left-[-32px] top-[-2px] xs:left-[-66px]","data-kg-plus-button":!0,children:k.jsx("button",{"aria-label":"Add a card",className:"group relative flex size-7 cursor-pointer items-center justify-center rounded-full border border-grey transition-all ease-linear hover:border-grey-800 dark:border-grey-800 dark:hover:border-grey-400 md:size-9",type:"button",onClick:t,children:k.jsx(rv,{className:"size-4 stroke-grey-800 stroke-2 dark:stroke-grey-300"})})})}function rFe({children:t}){return k.jsx("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const jG=A.createCommand("INSERT_SNIPPET_COMMAND"),oFe=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>ut.mergeRegister(t.registerCommand(jG,async e=>(t.update(()=>{const n=JSON.parse(e.value),i=Ac.$generateNodesFromSerializedNodes(n.nodes),r=i.length===1&&i[0],o=!!i.length&&i[i.length-1];if(r&&Pc(r))return t.dispatchCommand(kn,{cardNode:r}),!0;const s=A.$getSelection();if(Ac.$insertGeneratedNodes(t,i,s),o&&Pc(o)&&!o.getNextSibling())try{const a=A.$createParagraphNode();o.getTopLevelElementOrThrow().insertAfter(a)}catch(a){console.log(a)}}),!0),A.COMMAND_PRIORITY_LOW)),[t]),null};function FG(t,{query:e,config:n}={}){var s;let i=new Map;e=e==null?void 0:e.toLowerCase();let r=-1;function o(a){var f,d,h,g,m,y;if(a.isHidden&&((f=a.isHidden)!=null&&f.call(a,{config:n}))||a.postType&&((d=n==null?void 0:n.post)!=null&&d.displayName)&&a.postType!==((h=n==null?void 0:n.post)==null?void 0:h.displayName))return;const l=typeof(a==null?void 0:a.matches)=="function"?(g=a==null?void 0:a.matches)==null?void 0:g.call(a,e,a.label):(y=(m=a==null?void 0:a.matches)==null?void 0:m.find)==null?void 0:y.call(m,x=>x.startsWith(e));if(e&&!l)return;typeof a.insertParams=="function"&&(a.insertParams=a.insertParams({config:n}));const u=a.section||"Primary";i.has(u)?i.get(u).push(a):i.set(u,[a]),r=r+1}for(const[a,l]of t)Array.isArray(l.kgMenu)?l.kgMenu.forEach(u=>o({nodeType:a,...u})):o({nodeType:a,...l.kgMenu});return(s=n==null?void 0:n.snippets)==null||s.forEach(a=>{const l=sFe(a,n);o(l)}),i=new Map([...i.entries()].map(([a,l])=>[a,l.sort((u,f)=>u.priority===f.priority?0:u.priority===void 0?1:f.priority===void 0?-1:u.priority-f.priority)])),i=new Map([...i.entries()].sort((a,l)=>a[0]==="Primary"?-1:1)),{menu:i,maxItemIndex:r}}function sFe(t,e){const n=t.name.toLowerCase();return{type:"snippet",label:t.name,Icon:r9,section:"Snippets",matches:r=>n.indexOf(r)>-1||"snippets".indexOf(r)>-1,insertCommand:jG,insertParams:t,...e.deleteSnippet&&{onRemove:()=>e.deleteSnippet(t)}}}function aFe(t){var R;const[e,n]=T.useState(!1),[i,r]=T.useState(!1),[o,s]=T.useState(0),[a,l]=T.useState(null),[u,f]=T.useState({}),d=T.useRef(null),{cardConfig:h}=T.useContext(ft);function g(Q){const V=Q.getBoundingClientRect(),H=Q.parentNode.getBoundingClientRect();return V.top-H.top}function m(Q){const V=new Range;return V.setStart(Q,0),V.setEnd(Q,0),V}const y=T.useCallback(()=>{a&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(a))},[a]),x=T.useCallback(Q=>{const V=m(Q);l(V),n(!0)},[n,l]),_=T.useCallback(()=>{n(!1),r(!1),l(null)},[n,r,l]),S=T.useCallback(Q=>{Q==null||Q.preventDefault(),t.update(()=>{A.$setSelection(null)},{discrete:!0}),y(),r(!0)},[t,y,r]),C=T.useCallback(({resetCursor:Q=!1}={})=>{Q&&y(),r(!1)},[y,r]),E=T.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const Q=A.$getSelection();if(!A.$isRangeSelection(Q)||!Q.type==="text"||!Q.isCollapsed()){_();return}const V=Ru(Q);if(!A.$isParagraphNode(V)||V.getTextContent()!==""){_();return}const j=window.getSelection().anchorNode,q=t.getRootElement();if((j==null?void 0:j.tagName)!=="P"||!q.contains(j)){_();return}s(g(j)),x(j)})},[t,x,_]),N=T.useCallback((Q,{insertParams:V={}}={})=>{const H={...V};t.dispatchCommand(Q,H),C()},[t,C]);T.useEffect(()=>t.registerUpdateListener(()=>{E()},[t,E]));const M=T.useCallback(()=>{var Q;if(e){const V=window.getSelection();if(i&&((Q=d.current)!=null&&Q.contains(V.anchorNode)))return;t.getRootElement().contains(V.anchorNode)||_()}},[t,e,i,_]);T.useEffect(()=>(document.addEventListener("selectionchange",M),()=>{document.removeEventListener("selectionchange",M)}),[M]);const I=T.useCallback(Q=>{if(i)return;const V=t.getRootElement();let{pageX:H,pageY:j}=Q,q=V.getBoundingClientRect();H<q.left&&(H=H+40);const Y=document.elementFromPoint(H,j);V.contains(Y)&&!Y.closest("[data-kg-card]")&&((Y==null?void 0:Y.tagName)==="P"&&Y.textContent===""?(s(g(Y)),x(Y)):E())},[t,i,s,x,E]);T.useEffect(()=>(window.addEventListener("mousemove",I),()=>{window.removeEventListener("mousemove",I)}),[I]);const W=T.useCallback(Q=>{var V;if(i&&!((V=d.current)!=null&&V.contains(Q.target)))return C()},[i,C]);T.useEffect(()=>(window.addEventListener("mousedown",W),()=>{window.removeEventListener("mousedown",W)}),[W]);const B=T.useCallback(Q=>{if(i){if(Q.key==="Escape"){C({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(Q.key)&&C()}},[i,C]);T.useEffect(()=>(window.addEventListener("keydown",B),()=>{window.removeEventListener("keydown",B)})),T.useEffect(()=>{const Q=W6(t);f(FG(Q,{config:h}))},[h,t,f]);const Z={top:`${o}px`};return((R=u.menu)==null?void 0:R.size)===0?null:e?k.jsxs("div",{ref:d,className:"absolute z-50",style:Z,"data-kg-plus-container":!0,children:[e&&k.jsx(iFe,{onClick:S}),i&&k.jsx(rFe,{children:k.jsx(RG,{closeMenu:C,insert:N,menu:u.menu})})]}):null}function zG(){const[t]=Oe.useLexicalComposerContext();return aFe(t)}function lFe({children:t}){return k.jsx("div",{"data-kg-slash-menu":!0,children:t})}function uFe(t){var W;const[e,n]=T.useState(!1),[i,r]=T.useState({}),[o,s]=T.useState(""),[a,l]=T.useState([]),[u,f]=T.useState({}),[d,h]=T.useState(0),[g,m]=T.useState(!1),y=T.useRef(null),x=T.useRef(null),{cardConfig:_}=T.useContext(ft);function S(B){const Z=B.getBoundingClientRect(),R=B.parentNode.getBoundingClientRect(),Q=x.current.getBoundingClientRect(),V=Z.bottom-R.top+Q.height>window.innerHeight,H=Z.top-Q.height<0;if(V&&!H){const j=R.height-B.offsetTop;r({top:null,left:0,bottom:j})}else{const j=B.offsetTop+Z.height;r({top:j,left:0,bottom:null})}}function C(){const B=window.getSelection();let Z;return B.anchorNode.nodeType===Node.TEXT_NODE?Z=B.anchorNode.parentNode.closest("p"):Z=B.anchorNode,Z}function E(){y.current&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(y.current))}const N=T.useCallback(()=>{n(!0)},[n]),M=T.useCallback(({resetCursor:B=!1}={})=>{B&&E(),n(!1),s(""),a.length>0&&l([]),m(!1),y.current=null},[n,a]),I=T.useCallback((B,{insertParams:Z={},queryParams:R={}}={})=>{const Q={...Z};for(let V=0;V<R.length;V++)if(a[V]){const H=R[V],j=a[V];Q[H]=j}t.update(()=>{const H=A.$getSelection().focus.getNode().getTopLevelElement(),j=A.$createParagraphNode();H.insertAfter(j),H.remove(),j.select(),t.dispatchCommand(B,Q)}),M()},[t,a,M]);return T.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{var Y,K;if(t.isComposing())return;const B=A.$getSelection();if(!A.$isRangeSelection(B)||!B.type==="text"||!B.isCollapsed()){const oe=window.getSelection().anchorNode;if((K=(Y=oe==null?void 0:oe.parentNode)==null?void 0:Y.dataset)==null?void 0:K.cardMenuSection)return;M();return}const Z=Ru(B).getTopLevelElement();if(!Z||!A.$isParagraphNode(Z)||!Z.getTextContent().startsWith("/")){M();return}const R=window.getSelection(),Q=R.anchorNode,V=t.getRootElement();if((Q==null?void 0:Q.nodeType)!==Node.TEXT_NODE||!V.contains(Q)){M();return}y.current=R.getRangeAt(0);const H=Z.getTextContent().slice(1),[j,...q]=H.split(" ");s(j),l(q)})}),[t,e,M,s,l]),T.useEffect(()=>{if(e)return;const B=Z=>{const{key:R,isComposing:Q,ctrlKey:V,metaKey:H}=Z;R!=="/"||Q||V||H||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const q=A.$getSelection(),Y=Ru(q).getTopLevelElement();if(!Y||!A.$isParagraphNode(Y))return;const K=Y.getTextContentSize(),te=q.isCollapsed()&&Y.getTextContent()==="",oe=!q.isCollapsed()&&(q.anchor.offset===0&&q.focus.offset===K||q.anchor.offset===K&&q.focus.offset===0);(te||oe)&&N()})};return window.addEventListener("keypress",B),()=>{window.removeEventListener("keypress",B)}},[t,e,N]),T.useEffect(()=>{if(!e)return;const B=Z=>{if(Z.key==="Escape"){M({resetCursor:!0});return}};return window.addEventListener("keydown",B),()=>{window.removeEventListener("keydown",B)}},[e,M]),T.useEffect(()=>{if(!e)return;const B=Z=>{var R;(R=x.current)!=null&&R.contains(Z.target)||M()};return window.addEventListener("mousedown",B),()=>{window.removeEventListener("mousedown",B)}},[e,M]),T.useEffect(()=>{if(!e)return;const B=Q=>(h(d===0?u.maxItemIndex:d-1),m(!0),Q.preventDefault(),!0),Z=Q=>(d===u.maxItemIndex?h(0):h(d+1),m(!0),Q.preventDefault(),!0),R=Q=>{var V;return(V=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${d}"]`))==null||V.click(),Q.preventDefault(),!0};return ut.mergeRegister(t.registerCommand(A.KEY_ARROW_DOWN_COMMAND,Z,A.COMMAND_PRIORITY_HIGH),t.registerCommand(A.KEY_ARROW_UP_COMMAND,B,A.COMMAND_PRIORITY_HIGH),t.registerCommand(A.KEY_ARROW_RIGHT_COMMAND,Z,A.COMMAND_PRIORITY_HIGH),t.registerCommand(A.KEY_ARROW_LEFT_COMMAND,B,A.COMMAND_PRIORITY_HIGH),t.registerCommand(A.KEY_ENTER_COMMAND,R,A.COMMAND_PRIORITY_HIGH))},[t,e,u,d]),T.useEffect(()=>{const B=W6(t);f(FG(B,{query:o,config:_})),h(0)},[t,o,I,f,h,_]),T.useEffect(()=>{if(!e)return;const B=new ResizeObserver(()=>{S(C())});return B.observe(window.document.body),()=>{B.disconnect()}},[e]),T.useLayoutEffect(()=>{e&&(!x||!x.current||S(C()))},[e]),((W=u.menu)==null?void 0:W.size)===0?null:e?k.jsx("div",{ref:x,className:"absolute -left-2 z-50 mt-2",style:i,"data-kg-slash-container":!0,children:k.jsx(lFe,{children:k.jsx(RG,{closeMenu:M,insert:I,menu:u.menu,scrollToSelectedItem:g,selectedItemIndex:d})})}):null}function BG(){const[t]=Oe.useLexicalComposerContext();return uFe(t)}const WG=()=>k.jsxs(k.Fragment,{children:[k.jsx(zG,{}),k.jsx(BG,{})]}),cFe=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([sx])){console.error("EmailPlugin: EmailCtaNode not registered");return}return ut.mergeRegister(t.registerCommand(Xq,async e=>{const n=jPe();return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},fFe=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([ax])){console.error("EmailPlugin: EmailNode not registered");return}return ut.mergeRegister(t.registerCommand(Kq,async e=>{const n=zPe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},dFe=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Zy])){console.error("EmbedPlugin: EmbedNode not registered");return}return ut.mergeRegister(t.registerCommand(Eu,async e=>{const n=KB(e);return t.dispatchCommand(kn,{cardNode:n}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},HG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([W0])){console.error("FilePlugin: FileNode not registered");return}return ut.mergeRegister(t.registerCommand(iY,async e=>{const n=UPe(e);return t.dispatchCommand(kn,{cardNode:n}),!0},A.COMMAND_PRIORITY_LOW))}),null},QG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([cw])){console.error("GalleryPlugin: GalleryNode not registered");return}return ut.mergeRegister(t.registerCommand(xH,async e=>{const n=OH(e);return t.dispatchCommand(kn,{cardNode:n}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},UG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([cx])){console.error("HeaderPlugin: HeaderNode not registered");return}return ut.mergeRegister(t.registerCommand(OE,async e=>{const n=bDe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))}),null};var ZG={},$l=ei,hFe=Oe,qG=T,pFe=ut,y1=A;function gFe(t){qG.useEffect(()=>pFe.mergeRegister(t.registerCommand($l.INSERT_ORDERED_LIST_COMMAND,()=>($l.insertList(t,"number"),!0),y1.COMMAND_PRIORITY_LOW),t.registerCommand($l.INSERT_UNORDERED_LIST_COMMAND,()=>($l.insertList(t,"bullet"),!0),y1.COMMAND_PRIORITY_LOW),t.registerCommand($l.REMOVE_LIST_COMMAND,()=>($l.removeList(t),!0),y1.COMMAND_PRIORITY_LOW),t.registerCommand(y1.INSERT_PARAGRAPH_COMMAND,()=>!!$l.$handleListInsertParagraph(),y1.COMMAND_PRIORITY_LOW)),[t])}ZG.ListPlugin=function(){let[t]=hFe.useLexicalComposerContext();return qG.useEffect(()=>{if(!t.hasNodes([$l.ListNode,$l.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),gFe(t),null};var LT=ZG;const mFe=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([])){console.error("PaywallPlugin: PaywallNode not registered");return}return t.registerCommand(jY,()=>{const e=A.$getSelection();if(!A.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const i=FY(),r=e.focus.getNode();A.$isParagraphNode(r)&&r.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(i)}return!0},A.COMMAND_PRIORITY_EDITOR)},[t]),T.useEffect(()=>t.registerUpdateListener(()=>{t.update(()=>{if(t.isComposing())return;const e=A.$getSelection();if(!A.$isRangeSelection(e)||!e.type==="text"||!e.isCollapsed())return;const n=/^(===)\s?$/,i=Ru(e).getTopLevelElement();if(!i||!A.$isParagraphNode(i)||!i.getTextContent().match(n))return;const o=window.getSelection().anchorNode,s=t.getRootElement();if((o==null?void 0:o.nodeType)!==Node.TEXT_NODE||!s.contains(o))return;const a=FY(),l=i.getTopLevelElement();l.getNextSibling()?l.replace(a):(l.insertBefore(a),l.replace(A.$createParagraphNode())),a.selectNext()})}),[t]),null},vFe=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Dx])){console.error("ProductPlugin: ProductNode not registered");return}return ut.mergeRegister(t.registerCommand(BY,async e=>{const n=oIe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},YG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Ix])){console.error("SignupPlugin: SignupNode not registered");return}return ut.mergeRegister(t.registerCommand(QY,async e=>{const n=lIe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},VG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Lx])){console.error("TogglePlugin: ToggleNode not registered");return}return ut.mergeRegister(t.registerCommand(ZY,async e=>{const n=fIe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},XG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Rx]))throw new Error("TransistorPlugin: TransistorNode not registered");return ut.mergeRegister(t.registerCommand(VY,async e=>{const n=hIe(e);return t.dispatchCommand(kn,{cardNode:n,openInEditMode:!0}),!0},A.COMMAND_PRIORITY_LOW))},[t]),null},GG=()=>{const[t]=Oe.useLexicalComposerContext();return T.useEffect(()=>{if(!t.hasNodes([Y0])){console.error("VideoPlugin: VideoNode not registered");return}return ut.mergeRegister(t.registerCommand(AE,async e=>{const n=mIe(e);return t.dispatchCommand(kn,{cardNode:n}),!0},A.COMMAND_PRIORITY_LOW),t.registerCommand(aw,async e=>e.type==="video"?(t.dispatchCommand(AE,{initialFile:e.file}),!0):!1,A.COMMAND_PRIORITY_HIGH))},[t]),null},KG=()=>k.jsxs(k.Fragment,{children:[k.jsx(LT.ListPlugin,{})," ",k.jsx(WG,{}),k.jsx(oFe,{}),k.jsx(C9e,{})," ",k.jsx($y,{}),k.jsx(Yje,{}),k.jsx(IG,{}),k.jsx(PG,{}),k.jsx(QG,{}),k.jsx(GG,{}),k.jsx(DG,{}),k.jsx(Vje,{}),k.jsx(IT,{}),k.jsx(LG,{}),k.jsx(Xje,{}),k.jsx(HG,{}),k.jsx(Kje,{}),k.jsx(VG,{}),k.jsx(UG,{}),k.jsx(Gje,{}),k.jsx(mFe,{}),k.jsx(vFe,{}),k.jsx(cFe,{}),k.jsx(fFe,{}),k.jsx(dFe,{}),k.jsx(YG,{}),k.jsx(XG,{}),k.jsx(AG,{})]}),bFe=({onChange:t,children:e,...n})=>k.jsx(VAe,{children:k.jsx(GAe,{onChange:t,children:k.jsxs(D0,{...n,children:[k.jsx(KG,{}),e]})})}),kFe=({children:t,...e})=>k.jsxs(D0,{isSnippetsEnabled:!1,markdownTransformers:iq,...e,children:[k.jsx(LT.ListPlugin,{}),k.jsx(j0,{}),k.jsx(IT,{}),t]});var yFe=typeof global=="object"&&global&&global.Object===Object&&global,JG=yFe,wFe=typeof self=="object"&&self&&self.Object===Object&&self,xFe=JG||wFe||Function("return this")(),Ml=xFe,_Fe=Ml.Symbol,Ra=_Fe,eK=Object.prototype,OFe=eK.hasOwnProperty,SFe=eK.toString,w1=Ra?Ra.toStringTag:void 0;function CFe(t){var e=OFe.call(t,w1),n=t[w1];try{t[w1]=void 0;var i=!0}catch{}var r=SFe.call(t);return i&&(e?t[w1]=n:delete t[w1]),r}var EFe=Object.prototype,TFe=EFe.toString;function $Fe(t){return TFe.call(t)}var MFe="[object Null]",NFe="[object Undefined]",tK=Ra?Ra.toStringTag:void 0;function h2(t){return t==null?t===void 0?NFe:MFe:tK&&tK in Object(t)?CFe(t):$Fe(t)}function nK(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var AFe="[object AsyncFunction]",PFe="[object Function]",DFe="[object GeneratorFunction]",IFe="[object Proxy]";function iK(t){if(!nK(t))return!1;var e=h2(t);return e==PFe||e==DFe||e==AFe||e==IFe}var LFe=9007199254740991;function RFe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=LFe}function jFe(t){return t!=null&&RFe(t.length)&&!iK(t)}function RT(t){return t!=null&&typeof t=="object"}function FFe(t,e){for(var n=-1,i=t==null?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function zFe(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}var BFe="[object Arguments]";function rK(t){return RT(t)&&h2(t)==BFe}var oK=Object.prototype,WFe=oK.hasOwnProperty,HFe=oK.propertyIsEnumerable;rK(function(){return arguments}());var sK=typeof Ee=="object"&&Ee&&!Ee.nodeType&&Ee,aK=sK&&typeof module=="object"&&module&&!module.nodeType&&module,QFe=aK&&aK.exports===sK,lK=QFe?Ml.Buffer:void 0;lK&&lK.isBuffer;var uK=typeof Ee=="object"&&Ee&&!Ee.nodeType&&Ee,x1=uK&&typeof module=="object"&&module&&!module.nodeType&&module,UFe=x1&&x1.exports===uK,jT=UFe&&JG.process,ZFe=function(){try{var t=x1&&x1.require&&x1.require("util").types;return t||jT&&jT.binding&&jT.binding("util")}catch{}}(),cK=ZFe;cK&&cK.isTypedArray;function qFe(){this.__data__=[],this.size=0}function YFe(t,e){return t===e||t!==t&&e!==e}function p2(t,e){for(var n=t.length;n--;)if(YFe(t[n][0],e))return n;return-1}var VFe=Array.prototype,XFe=VFe.splice;function GFe(t){var e=this.__data__,n=p2(e,t);if(n<0)return!1;var i=e.length-1;return n==i?e.pop():XFe.call(e,n,1),--this.size,!0}function KFe(t){var e=this.__data__,n=p2(e,t);return n<0?void 0:e[n][1]}function JFe(t){return p2(this.__data__,t)>-1}function eze(t,e){var n=this.__data__,i=p2(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function Xh(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Xh.prototype.clear=qFe,Xh.prototype.delete=GFe,Xh.prototype.get=KFe,Xh.prototype.has=JFe,Xh.prototype.set=eze;var tze=Ml["__core-js_shared__"],FT=tze,fK=function(){var t=/[^.]+$/.exec(FT&&FT.keys&&FT.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function nze(t){return!!fK&&fK in t}var ize=Function.prototype,rze=ize.toString;function Mf(t){if(t!=null){try{return rze.call(t)}catch{}try{return t+""}catch{}}return""}var oze=/[\\^$.*+?()[\]{}|]/g,sze=/^\[object .+?Constructor\]$/,aze=Function.prototype,lze=Object.prototype,uze=aze.toString,cze=lze.hasOwnProperty,fze=RegExp("^"+uze.call(cze).replace(oze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dze(t){if(!nK(t)||nze(t))return!1;var e=iK(t)?fze:sze;return e.test(Mf(t))}function hze(t,e){return t==null?void 0:t[e]}function Nf(t,e){var n=hze(t,e);return dze(n)?n:void 0}var pze=Nf(Ml,"Map"),g2=pze,gze=Nf(Object,"create"),_1=gze;function mze(){this.__data__=_1?_1(null):{},this.size=0}function vze(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var bze="__lodash_hash_undefined__",kze=Object.prototype,yze=kze.hasOwnProperty;function wze(t){var e=this.__data__;if(_1){var n=e[t];return n===bze?void 0:n}return yze.call(e,t)?e[t]:void 0}var xze=Object.prototype,_ze=xze.hasOwnProperty;function Oze(t){var e=this.__data__;return _1?e[t]!==void 0:_ze.call(e,t)}var Sze="__lodash_hash_undefined__";function Cze(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=_1&&e===void 0?Sze:e,this}function Af(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Af.prototype.clear=mze,Af.prototype.delete=vze,Af.prototype.get=wze,Af.prototype.has=Oze,Af.prototype.set=Cze;function Eze(){this.size=0,this.__data__={hash:new Af,map:new(g2||Xh),string:new Af}}function Tze(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function m2(t,e){var n=t.__data__;return Tze(e)?n[typeof e=="string"?"string":"hash"]:n.map}function $ze(t){var e=m2(this,t).delete(t);return this.size-=e?1:0,e}function Mze(t){return m2(this,t).get(t)}function Nze(t){return m2(this,t).has(t)}function Aze(t,e){var n=m2(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}function Pf(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Pf.prototype.clear=Eze,Pf.prototype.delete=$ze,Pf.prototype.get=Mze,Pf.prototype.has=Nze,Pf.prototype.set=Aze,Ml.Uint8Array;var dK=Ra?Ra.prototype:void 0;dK&&dK.valueOf;function Pze(t,e){for(var n=-1,i=t==null?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}var Dze=Nf(Ml,"DataView"),zT=Dze,Ize=Nf(Ml,"Promise"),BT=Ize,Lze=Nf(Ml,"Set"),WT=Lze,Rze=Nf(Ml,"WeakMap"),HT=Rze,hK="[object Map]",jze="[object Object]",pK="[object Promise]",gK="[object Set]",mK="[object WeakMap]",vK="[object DataView]",Fze=Mf(zT),zze=Mf(g2),Bze=Mf(BT),Wze=Mf(WT),Hze=Mf(HT),Gh=h2;(zT&&Gh(new zT(new ArrayBuffer(1)))!=vK||g2&&Gh(new g2)!=hK||BT&&Gh(BT.resolve())!=pK||WT&&Gh(new WT)!=gK||HT&&Gh(new HT)!=mK)&&(Gh=function(t){var e=h2(t),n=e==jze?t.constructor:void 0,i=n?Mf(n):"";if(i)switch(i){case Fze:return vK;case zze:return hK;case Bze:return pK;case Wze:return gK;case Hze:return mK}return e});var Qze="Expected a function";function QT(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Qze);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(QT.Cache||Pf),n}QT.Cache=Pf;var Uze=500;function Zze(t){var e=QT(t,function(i){return n.size===Uze&&n.clear(),i}),n=e.cache;return e}var qze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yze=/\\(\\)?/g;Zze(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(qze,function(n,i,r,o){e.push(r?o.replace(Yze,"$1"):i||n)}),e});var bK=Ra?Ra.prototype:void 0;bK&&bK.toString;function kK(t){return t}function Vze(t){return function(e){return e==null?void 0:e[t]}}function Xze(t){if(!t)return 0;Object.prototype.hasOwnProperty.call(t,"string")&&(t=t.string),t=t.replace(/<("[^"]*"|'[^']*'|[^'">])+\/?>/g," ");const e=/[a-zA-ZÀ-ÿ0-9_\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=/([\u0600-\u06ff]+|[\u0591-\u05F4]+)/g,i=t.match(e)||t.match(n);let r=0;if(i===null)return r;for(var o=0;o<i.length;o+=1)i[o].charCodeAt(0)>=19968?r+=i[o].length:r+=1;return r}Ra&&Ra.isConcatSpreadable;function Gze(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var yK=Math.max;function Kze(t,e,n){return e=yK(e===void 0?t.length-1:e,0),function(){for(var i=arguments,r=-1,o=yK(i.length-e,0),s=Array(o);++r<o;)s[r]=i[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=i[r];return a[e]=n(s),Gze(t,this,a)}}function Jze(t){return function(){return t}}var eBe=function(){try{var t=Nf(Object,"defineProperty");return t({},"",{}),t}catch{}}(),wK=eBe,tBe=wK?function(t,e){return wK(t,"toString",{configurable:!0,enumerable:!1,value:Jze(e),writable:!0})}:kK,nBe=tBe,iBe=800,rBe=16,oBe=Date.now;function sBe(t){var e=0,n=0;return function(){var i=oBe(),r=rBe-(i-n);if(n=i,r>0){if(++e>=iBe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var aBe=sBe(nBe),lBe=aBe;function uBe(t,e){return lBe(Kze(t,e,kK),t+"")}function cBe(t){return RT(t)&&jFe(t)}var fBe=Math.max;function dBe(t){if(!(t&&t.length))return[];var e=0;return t=Pze(t,function(n){if(cBe(n))return e=fBe(n.length,e),!0}),zFe(e,function(n){return FFe(t,Vze(n))})}uBe(dBe);const hBe={countWords:Xze},{countWords:pBe}=hBe,xK=({onChange:t,language:e="en"}={})=>{const[n]=Oe.useLexicalComposerContext(),{onWordCountChangeRef:i}=T.useContext(ft);T.useLayoutEffect(()=>{if(!t)return;n._parentEditor||(i.current=t);let r=0;const o=()=>{let l=0,u=n;for(;u._parentEditor;)u=u._parentEditor;u.getEditorState().read(()=>{const f=A.$getRoot();let d="";const h=f.getChildren(),g=h.length;for(let m=0;m<g;m++){const y=h[m];d+=y.getTextContent(),A.$isElementNode(y)&&m!==g-1&&!y.isInline()&&(d+=`
|
||
|
||
`)}l=pBe(d)}),l!==r&&(r=l,t(l)),l===0&&r===0&&t(0)};o();const s=oq(o,200),a=ut.mergeRegister(n.registerUpdateListener(({dirtyElements:l,dirtyLeaves:u,prevEditorState:f,tags:d})=>{l.size===0&&u.size===0||d.has("history-merge")||f.isEmpty()||s()}));return()=>{s.cancel(),a(),n._parentEditor||(i.current=null)}},[n,t,i])};var _K={},gBe=tx,UT=Oe,Kh=T;function mBe(t){let e=new URLSearchParams;e.append("code",t);for(let n=1;n<arguments.length;n++)e.append("v",arguments[n]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}_K.LexicalNestedComposer=function({initialEditor:t,children:e,initialNodes:n,initialTheme:i,skipCollabChecks:r}){let o=Kh.useRef(!1),s=Kh.useContext(UT.LexicalComposerContext);s==null&&mBe(9);let[a,{getTheme:l}]=s,u=Kh.useMemo(()=>{var g=i||l()||void 0;const m=UT.createLexicalComposerContext(s,g);if(g!==void 0&&(t._config.theme=g),t._parentEditor=a,n)for(var y of n){var x=g=null;typeof y!="function"&&(x=y,y=x.replace,g=x.with,x=x.withKlass||null);const _=t._nodes.get(y.getType());t._nodes.set(y.getType(),{exportDOM:_?_.exportDOM:void 0,klass:y,replace:g,replaceWithKlass:x,transforms:new Set})}else{y=t._nodes=new Map(a._nodes);for(const[_,S]of y)t._nodes.set(_,{exportDOM:S.exportDOM,klass:S.klass,replace:S.replace,replaceWithKlass:S.replaceWithKlass,transforms:new Set})}return t._config.namespace=a._config.namespace,t._editable=a._editable,[t,m]},[]),{isCollabActive:f,yjsDocMap:d}=gBe.useCollaborationContext(),h=r||o.current||d.has(t.getKey());return Kh.useEffect(()=>{h&&(o.current=!0)},[h]),Kh.useEffect(()=>a.registerEditableListener(g=>{t.setEditable(g)}),[t,a]),Kh.createElement(UT.LexicalComposerContext.Provider,{value:u},!f||h?e:null)};var vBe=_K;const ZT=({initialEditor:t,initialEditorState:e,initialNodes:n,initialTheme:i,skipCollabChecks:r,children:o}={})=>{const{isCollabActive:s}=tx.useCollaborationContext(),{createWebsocketProvider:a,onWordCountChangeRef:l}=T.useContext(ft);return k.jsxs(vBe.LexicalNestedComposer,{initialEditor:t,initialNodes:n,initialTheme:i,skipCollabChecks:r,children:[s?k.jsx(kG.CollaborationPlugin,{id:t.getKey(),initialEditorState:e,providerFactory:a,shouldBootstrap:!0}):null,l!=null&&l.current?k.jsx(xK,{onChange:l.current}):null,o]})},bBe=({html:t="",setHtml:e})=>{const[n]=Oe.useLexicalComposerContext(),i=T.useRef(!0);T.useLayoutEffect(()=>{i.current&&(i.current=!1,t&&n.update(()=>{const s=new DOMParser().parseFromString(t,"text/html"),l=Mn.$generateNodesFromDOM(n,s).filter(u=>u.getTextContent().trim());A.$getRoot().select(),A.$getRoot().clear(),A.$insertNodes(l)}))},[]);const r=T.useCallback(()=>{n.update(()=>{const o=Mn.$generateHtmlFromNodes(n,null);new DOMParser().parseFromString(o,"text/html").documentElement.textContent?e==null||e(o):e("")})},[n,e]);return k.jsx(vq.OnChangePlugin,{onChange:r})},O1=({paragraphs:t,allowBr:e})=>{const[n]=Oe.useLexicalComposerContext();return T.useEffect(()=>ut.mergeRegister(n.registerNodeTransform(A.RootNode,i=>{if(!n._updating)return;const r=A.$getSelection();if(!A.$isRangeSelection(r)||!r.isCollapsed())return;const o=i.getChildren();if(!(o.length<=t&&o.every(A.$isParagraphNode))){let a=o.filter(l=>!A.$isDecoratorNode(l));a=a.slice(0,t),a=a.map(l=>{if(ei.$isListNode(l)){const u=l.getChildren()[0];return A.$createParagraphNode().append(...u.getChildren())}else return A.$isParagraphNode(l)?l:A.$createParagraphNode().append(...l.getChildren())}),o.forEach(l=>l.remove()),a.forEach(l=>i.append(l)),i.selectEnd()}}),n.registerCommand(A.PASTE_COMMAND,i=>{var a,l;const r=(a=i==null?void 0:i.clipboardData)==null?void 0:a.getData(L6),o=(l=i==null?void 0:i.clipboardData)==null?void 0:l.getData(R6),s=r==null?void 0:r.match(/^(https?:\/\/[^\s]+)$/);if(s)return i.preventDefault(),n.dispatchCommand(F6,{linkMatch:s}),!0;if(r&&!o)return n.dispatchCommand(I6,{text:r,allowBr:e}),!0},A.COMMAND_PRIORITY_LOW)),[e,n,t]),null};function kBe({onChange:t}){const{tkCount:e}=aq();T.useEffect(()=>{t&&t(e)},[t,e])}const rc=[ei.ListNode,ei.ListItemNode,ki.LinkNode,ts],yBe=[Ns,Kb,Kt.HeadingNode,ru,Jb,Kt.QuoteNode,ei.ListNode,ei.ListItemNode,ki.LinkNode,Nh],wBe="1.7.10";Ee.$isAtStartOfDocument=h6,Ee.$isAtTopOfNode=g6,Ee.$selectDecoratorNode=or,Ee.AllDefaultPlugins=KG,Ee.AudioPlugin=IG,Ee.BASIC_NODES=rc,Ee.BASIC_TRANSFORMERS=nq,Ee.CODE_BLOCK_TRANSFORMER=JZ,Ee.CallToActionPlugin=AG,Ee.CalloutPlugin=LG,Ee.CardMenuPlugin=WG,Ee.DEFAULT_NODES=eV,Ee.DEFAULT_TRANSFORMERS=tq,Ee.DesignSandbox=Zee,Ee.DragDropPastePlugin=lH,Ee.DragDropReorderPlugin=YU,Ee.ELEMENT_TRANSFORMERS=eq,Ee.EMAIL_NODES=yBe,Ee.EMAIL_TRANSFORMERS=iq,Ee.EmojiPickerPlugin=$y,Ee.ExternalControlPlugin=fq,Ee.FilePlugin=HG,Ee.FloatingToolbarPlugin=JU,Ee.GalleryPlugin=QG,Ee.HR_TRANSFORMER=oE,Ee.HeaderPlugin=UG,Ee.HorizontalRulePlugin=IT,Ee.HtmlOutputPlugin=bBe,Ee.ImagePlugin=PG,Ee.KoenigBehaviourPlugin=sH,Ee.KoenigCardWrapper=An,Ee.KoenigComposableEditor=D0,Ee.KoenigComposer=Qje,Ee.KoenigEditor=bFe,Ee.KoenigEmailEditor=kFe,Ee.KoenigNestedComposer=ZT,Ee.ListPlugin=LT.ListPlugin,Ee.MINIMAL_NODES=Qi,Ee.MINIMAL_TRANSFORMERS=sE,Ee.MarkdownPlugin=DG,Ee.MarkdownShortcutPlugin=rq,Ee.PlusCardMenuPlugin=zG,Ee.ReplacementStringsPlugin=j0,Ee.RestrictContentPlugin=O1,Ee.SignupPlugin=YG,Ee.SlashCardMenuPlugin=BG,Ee.TKCountPlugin=kBe,Ee.TogglePlugin=VG,Ee.TransistorPlugin=XG,Ee.VideoPlugin=GG,Ee.WordCountPlugin=xK,Ee.getTopLevelNativeElement=p6,Ee.version=wBe,Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"})});
|
||
//# sourceMappingURL=koenig-lexical.umd.js.map
|