@myissue/vue-website-page-builder 3.2.85 → 3.2.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -16
- package/dist/vue-website-page-builder.css +1 -1
- package/dist/vue-website-page-builder.js +9217 -9022
- package/dist/vue-website-page-builder.umd.cjs +38 -38
- package/package.json +2 -2
- package/src/Components/Homepage/Footer.vue +9 -7
- package/src/Components/Homepage/Navbar.vue +6 -4
- package/src/Components/Layouts/FullWidthElement.vue +6 -6
- package/src/Components/Modals/BuilderComponents.vue +12 -6
- package/src/Components/Modals/DynamicModalBuilder.vue +39 -47
- package/src/Components/Modals/MediaLibraryModal.vue +2 -2
- package/src/Components/Modals/ModalBuilder.vue +23 -19
- package/src/Components/PageBuilder/DefaultComponents/DefaultBuilderComponents.vue +29 -17
- package/src/Components/PageBuilder/DefaultComponents/DefaultMediaLibraryComponent.vue +2 -2
- package/src/Components/PageBuilder/EditorMenu/Editables/BackgroundColorEditor.vue +22 -20
- package/src/Components/PageBuilder/EditorMenu/Editables/BorderRadius.vue +17 -17
- package/src/Components/PageBuilder/EditorMenu/Editables/Borders.vue +28 -26
- package/src/Components/PageBuilder/EditorMenu/Editables/ClassEditor.vue +13 -11
- package/src/Components/PageBuilder/EditorMenu/Editables/ComponentTopMenu.vue +5 -5
- package/src/Components/PageBuilder/EditorMenu/Editables/DeleteElement.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/EditGetElement.vue +22 -19
- package/src/Components/PageBuilder/EditorMenu/Editables/ElementEditor.vue +11 -11
- package/src/Components/PageBuilder/EditorMenu/Editables/ImageEditor.vue +4 -4
- package/src/Components/PageBuilder/EditorMenu/Editables/LinkEditor.vue +74 -66
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageBackgroundOpacity.vue +26 -21
- package/src/Components/PageBuilder/EditorMenu/Editables/ManageOpacity.vue +26 -21
- package/src/Components/PageBuilder/EditorMenu/Editables/Margin.vue +101 -0
- package/src/Components/PageBuilder/EditorMenu/Editables/OpacityEditor.vue +2 -3
- package/src/Components/PageBuilder/EditorMenu/Editables/{PaddingPlusMargin.vue → Padding.vue} +8 -41
- package/src/Components/PageBuilder/EditorMenu/Editables/TextColorEditor.vue +22 -20
- package/src/Components/PageBuilder/EditorMenu/Editables/Typography.vue +63 -58
- package/src/Components/PageBuilder/EditorMenu/EditorAccordion.vue +7 -4
- package/src/Components/PageBuilder/EditorMenu/RightSidebarEditor.vue +24 -19
- package/src/Components/PageBuilder/Settings/AdvancedPageBuilderSettings.vue +132 -98
- package/src/Components/PageBuilder/Settings/PageBuilderSettings.vue +216 -146
- package/src/Components/PageBuilder/ToolbarOption/ToolbarOption.vue +14 -14
- package/src/Components/TipTap/TipTap.vue +4 -4
- package/src/Components/TipTap/TipTapInput.vue +39 -33
- package/src/DemoComponents/DemoBuilderComponents.vue +1 -1
- package/src/DemoComponents/DemoUnsplash.vue +79 -56
- package/src/DemoComponents/HomeSection.vue +20 -16
- package/src/PageBuilder/PageBuilder.vue +62 -57
- package/src/PageBuilder/Preview.vue +4 -20
- package/src/composables/PageBuilderClass.ts +66 -120
- package/src/css/app.css +161 -448
- package/src/css/dev-global.css +137 -0
- package/src/main.ts +1 -0
- package/src/tailwind-safelist.html +1 -1
- package/src/utils/builder/tailwaind-colors.ts +488 -488
- package/src/utils/builder/tailwind-border-radius.ts +40 -40
- package/src/utils/builder/tailwind-border-style-width-color.ts +231 -231
- package/src/utils/builder/tailwind-font-sizes.ts +56 -57
- package/src/utils/builder/tailwind-font-styles.ts +44 -11
- package/src/utils/builder/tailwind-opacities.ts +30 -30
- package/src/utils/builder/tailwind-padding-margin.ts +136 -136
- package/dist/components.json +0 -36
- package/src/Components/Loaders/FullScreenSpinner.vue +0 -9
- package/src/Components/Loaders/SmallUniversalSpinner.vue +0 -26
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(G,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(G=typeof globalThis<"u"?globalThis:G||self,s(G.VueWebsitePageBuilder={},G.Vue))})(this,function(G,s){"use strict";var ZE=Object.defineProperty;var Dm=G=>{throw TypeError(G)};var $E=(G,s,Pe)=>s in G?ZE(G,s,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):G[s]=Pe;var ae=(G,s,Pe)=>$E(G,typeof s!="symbol"?s+"":s,Pe),Im=(G,s,Pe)=>s.has(G)||Dm("Cannot "+Pe);var vn=(G,s,Pe)=>(Im(G,s,"read from private field"),Pe?Pe.call(G):s.get(G)),bo=(G,s,Pe)=>s.has(G)?Dm("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(G):s.set(G,Pe);var Z=(G,s,Pe)=>(Im(G,s,"access private method"),Pe);var K,me,Lm,Rm,ta,ra,oa,zm,_m,na,Fm,jm,Dl,Hm;function Pe(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const _l=Pe(s),xn={backgroundColorVariables:["none","bg-white","bg-black","bg-slate-50","bg-slate-100","bg-slate-200","bg-slate-300","bg-slate-400","bg-slate-500","bg-slate-600","bg-slate-700","bg-slate-800","bg-slate-900","bg-gray-50","bg-gray-100","bg-gray-200","bg-gray-300","bg-gray-400","bg-gray-500","bg-gray-600","bg-gray-700","bg-gray-800","bg-gray-900","bg-zinc-50","bg-zinc-100","bg-zinc-200","bg-zinc-300","bg-zinc-400","bg-zinc-500","bg-zinc-600","bg-zinc-700","bg-zinc-800","bg-zinc-900","bg-neutral-50","bg-neutral-100","bg-neutral-200","bg-neutral-300","bg-neutral-400","bg-neutral-500","bg-neutral-600","bg-neutral-700","bg-neutral-800","bg-neutral-900","bg-stone-50","bg-stone-100","bg-stone-200","bg-stone-300","bg-stone-400","bg-stone-500","bg-stone-600","bg-stone-700","bg-stone-800","bg-stone-900","bg-red-50","bg-red-100","bg-red-200","bg-red-300","bg-red-400","bg-red-500","bg-red-600","bg-red-700","bg-red-800","bg-red-900","bg-orange-50","bg-orange-100","bg-orange-200","bg-orange-300","bg-orange-400","bg-orange-500","bg-orange-600","bg-orange-700","bg-orange-800","bg-orange-900","bg-amber-50","bg-amber-100","bg-amber-200","bg-amber-300","bg-amber-400","bg-amber-500","bg-amber-600","bg-amber-700","bg-amber-800","bg-amber-900","bg-yellow-50","bg-yellow-100","bg-yellow-200","bg-yellow-300","bg-yellow-400","bg-yellow-500","bg-yellow-600","bg-yellow-700","bg-yellow-800","bg-yellow-900","bg-lime-50","bg-lime-100","bg-lime-200","bg-lime-300","bg-lime-400","bg-lime-500","bg-lime-600","bg-lime-700","bg-lime-800","bg-lime-900","bg-green-50","bg-green-100","bg-green-200","bg-green-300","bg-green-400","bg-green-500","bg-green-600","bg-green-700","bg-green-800","bg-green-900","bg-emerald-50","bg-emerald-100","bg-emerald-200","bg-emerald-300","bg-emerald-400","bg-emerald-500","bg-emerald-600","bg-emerald-700","bg-emerald-800","bg-emerald-900","bg-teal-50","bg-teal-100","bg-teal-200","bg-teal-300","bg-teal-400","bg-teal-500","bg-teal-600","bg-teal-700","bg-teal-800","bg-teal-900","bg-cyan-50","bg-cyan-100","bg-cyan-200","bg-cyan-300","bg-cyan-400","bg-cyan-500","bg-cyan-600","bg-cyan-700","bg-cyan-800","bg-cyan-900","bg-sky-50","bg-sky-100","bg-sky-200","bg-sky-300","bg-sky-400","bg-sky-500","bg-sky-600","bg-sky-700","bg-sky-800","bg-sky-900","bg-blue-50","bg-blue-100","bg-blue-200","bg-blue-300","bg-blue-400","bg-blue-500","bg-blue-600","bg-blue-700","bg-blue-800","bg-blue-900","bg-indigo-50","bg-indigo-100","bg-indigo-200","bg-indigo-300","bg-indigo-400","bg-indigo-500","bg-indigo-600","bg-indigo-700","bg-indigo-800","bg-indigo-900","bg-violet-50","bg-violet-100","bg-violet-200","bg-violet-300","bg-violet-400","bg-violet-500","bg-violet-600","bg-violet-700","bg-violet-800","bg-violet-900","bg-purple-50","bg-purple-100","bg-purple-200","bg-purple-300","bg-purple-400","bg-purple-500","bg-purple-600","bg-purple-700","bg-purple-800","bg-purple-900","bg-fuchsia-50","bg-fuchsia-100","bg-fuchsia-200","bg-fuchsia-300","bg-fuchsia-400","bg-fuchsia-500","bg-fuchsia-600","bg-fuchsia-700","bg-fuchsia-800","bg-fuchsia-900","bg-pink-50","bg-pink-100","bg-pink-200","bg-pink-300","bg-pink-400","bg-pink-500","bg-pink-600","bg-pink-700","bg-pink-800","bg-pink-900","bg-rose-50","bg-rose-100","bg-rose-200","bg-rose-300","bg-rose-400","bg-rose-500","bg-rose-600","bg-rose-700","bg-rose-800","bg-rose-900"],textColorVariables:["none","text-white","text-black","text-slate-50","text-slate-100","text-slate-200","text-slate-300","text-slate-400","text-slate-500","text-slate-600","text-slate-700","text-slate-800","text-slate-900","text-gray-50","text-gray-100","text-gray-200","text-gray-300","text-gray-400","text-gray-500","text-gray-600","text-gray-700","text-gray-800","text-gray-900","text-zinc-50","text-zinc-100","text-zinc-200","text-zinc-300","text-zinc-400","text-zinc-500","text-zinc-600","text-zinc-700","text-zinc-800","text-zinc-900","text-neutral-50","text-neutral-100","text-neutral-200","text-neutral-300","text-neutral-400","text-neutral-500","text-neutral-600","text-neutral-700","text-neutral-800","text-neutral-900","text-stone-50","text-stone-100","text-stone-200","text-stone-300","text-stone-400","text-stone-500","text-stone-600","text-stone-700","text-stone-800","text-stone-900","text-red-50","text-red-100","text-red-200","text-red-300","text-red-400","text-red-500","text-red-600","text-red-700","text-red-800","text-red-900","text-orange-50","text-orange-100","text-orange-200","text-orange-300","text-orange-400","text-orange-500","text-orange-600","text-orange-700","text-orange-800","text-orange-900","text-amber-50","text-amber-100","text-amber-200","text-amber-300","text-amber-400","text-amber-500","text-amber-600","text-amber-700","text-amber-800","text-amber-900","text-yellow-50","text-yellow-100","text-yellow-200","text-yellow-300","text-yellow-400","text-yellow-500","text-yellow-600","text-yellow-700","text-yellow-800","text-yellow-900","text-lime-50","text-lime-100","text-lime-200","text-lime-300","text-lime-400","text-lime-500","text-lime-600","text-lime-700","text-lime-800","text-lime-900","text-green-50","text-green-100","text-green-200","text-green-300","text-green-400","text-green-500","text-green-600","text-green-700","text-green-800","text-green-900","text-emerald-50","text-emerald-100","text-emerald-200","text-emerald-300","text-emerald-400","text-emerald-500","text-emerald-600","text-emerald-700","text-emerald-800","text-emerald-900","text-teal-50","text-teal-100","text-teal-200","text-teal-300","text-teal-400","text-teal-500","text-teal-600","text-teal-700","text-teal-800","text-teal-900","text-cyan-50","text-cyan-100","text-cyan-200","text-cyan-300","text-cyan-400","text-cyan-500","text-cyan-600","text-cyan-700","text-cyan-800","text-cyan-900","text-sky-50","text-sky-100","text-sky-200","text-sky-300","text-sky-400","text-sky-500","text-sky-600","text-sky-700","text-sky-800","text-sky-900","text-blue-50","text-blue-100","text-blue-200","text-blue-300","text-blue-400","text-blue-500","text-blue-600","text-blue-700","text-blue-800","text-blue-900","text-indigo-50","text-indigo-100","text-indigo-200","text-indigo-300","text-indigo-400","text-indigo-500","text-indigo-600","text-indigo-700","text-indigo-800","text-indigo-900","text-violet-50","text-violet-100","text-violet-200","text-violet-300","text-violet-400","text-violet-500","text-violet-600","text-violet-700","text-violet-800","text-violet-900","text-purple-50","text-purple-100","text-purple-200","text-purple-300","text-purple-400","text-purple-500","text-purple-600","text-purple-700","text-purple-800","text-purple-900","text-fuchsia-50","text-fuchsia-100","text-fuchsia-200","text-fuchsia-300","text-fuchsia-400","text-fuchsia-500","text-fuchsia-600","text-fuchsia-700","text-fuchsia-800","text-fuchsia-900","text-pink-50","text-pink-100","text-pink-200","text-pink-300","text-pink-400","text-pink-500","text-pink-600","text-pink-700","text-pink-800","text-pink-900","text-rose-50","text-rose-100","text-rose-200","text-rose-300","text-rose-400","text-rose-500","text-rose-600","text-rose-700","text-rose-800","text-rose-900"]},kn={opacities:["none","opacity-0","opacity-5","opacity-10","opacity-20","opacity-25","opacity-30","opacity-40","opacity-50","opacity-60","opacity-70","opacity-75","opacity-80","opacity-90","opacity-95","opacity-100"],backgroundOpacities:["none","bg-opacity-0","bg-opacity-5","bg-opacity-10","bg-opacity-20","bg-opacity-25","bg-opacity-30","bg-opacity-40","bg-opacity-50","bg-opacity-60","bg-opacity-70","bg-opacity-75","bg-opacity-80","bg-opacity-90","bg-opacity-95","bg-opacity-100"]},En={fontBase:["base:none","text-xs","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],fontDesktop:["lg:none","lg:text-xs","lg:text-sm","lg:text-base","lg:text-lg","lg:text-xl","lg:text-2xl","lg:text-3xl","lg:text-4xl","lg:text-5xl","lg:text-6xl","lg:text-7xl","lg:text-8xl","lg:text-9xl"],fontTablet:["md:none","md:text-xs","md:text-sm","md:text-base","md:text-lg","md:text-xl","md:text-2xl","md:text-3xl","md:text-4xl","md:text-5xl","md:text-6xl","md:text-7xl","md:text-8xl","md:text-9xl"],fontMobile:["sm:none","sm:text-xs","sm:text-sm","sm:text-base","sm:text-lg","sm:text-xl","sm:text-2xl","sm:text-3xl","sm:text-4xl","sm:text-5xl","sm:text-6xl","sm:text-7xl","sm:text-8xl","sm:text-9xl"]},ga={fontWeight:["none","font-thin","font-extralight","font-light","font-normal","font-medium","font-medium","font-bold","font-extrabold","font-black"],fontFamily:["none","font-sans","font-serif","font-mono"],fontStyle:["none","italic","non-italic"]},_t={verticalPadding:["none","py-0","py-0.5","py-1","py-1.5","py-2","py-2.5","py-3","py-3.5","py-4","py-5","py-6","py-7","py-8","py-9","py-10","py-11","py-12","py-14","py-16","py-20","py-24","py-28","py-32","py-36","py-40","py-44","py-48","py-52","py-56","py-60","py-64","py-72","py-80","py-96"],horizontalPadding:["none","px-0","px-0.5","px-1","px-1.5","px-2","px-2.5","px-3","px-3.5","px-4","px-5","px-6","px-7","px-8","px-9","px-10","px-11","px-12","px-14","px-16","px-20","px-24","px-28","px-32","px-36","px-40","px-44","px-48","px-52","px-56","px-60","px-64","px-72","px-80","px-96"],verticalMargin:["none","my-0","my-0.5","my-1","my-1.5","my-2","my-2.5","my-3","my-3.5","my-4","my-5","my-6","my-7","my-8","my-9","my-10","my-11","my-12","my-14","my-16","my-20","my-24","my-28","my-32","my-36","my-40","my-44","my-48","my-52","my-56","my-60","my-64","my-72","my-80","my-96"],horizontalMargin:["none","mx-0","mx-0.5","mx-1","mx-1.5","mx-2","mx-2.5","mx-3","mx-3.5","mx-4","mx-5","mx-6","mx-7","mx-8","mx-9","mx-10","mx-11","mx-12","mx-14","mx-16","mx-20","mx-24","mx-28","mx-32","mx-36","mx-40","mx-44","mx-48","mx-52","mx-56","mx-60","mx-64","mx-72","mx-80","mx-96"]},pt={roundedGlobal:["none","rounded-sm","rounded","rounded-md","rounded-lg","rounded-xl","rounded-2xl","rounded-3xl","rounded-full"],roundedTopLeft:["none","rounded-tl-sm","rounded-tl","rounded-tl-md","rounded-tl-lg","rounded-tl-xl","rounded-tl-2xl","rounded-tl-3xl","rounded-tl-full"],roundedTopRight:["none","rounded-tr-sm","rounded-tr","rounded-tr-md","rounded-tr-lg","rounded-tr-xl","rounded-tr-2xl","rounded-tr-3xl","rounded-tr-full"],roundedBottomLeft:["none","rounded-bl-sm","rounded-bl","rounded-bl-md","rounded-bl-lg","rounded-bl-xl","rounded-bl-2xl","rounded-bl-3xl","rounded-bl-full"],roundedBottomRight:["none","rounded-br-sm","rounded-br","rounded-br-md","rounded-br-lg","rounded-br-xl","rounded-br-2xl","rounded-br-3xl","rounded-br-full"]},Ar={borderStyle:["none","border-solid","border-dashed","border-dotted","border-double","border-hidden"],borderWidth:["none","border","border-2","border-4","border-8"],borderColor:["none","border-white","border-black","border-slate-50","border-slate-100","border-slate-200","border-slate-300","border-slate-400","border-slate-500","border-slate-600","border-slate-700","border-slate-800","border-slate-900","border-gray-50","border-gray-100","border-gray-200","border-gray-300","border-gray-400","border-gray-500","border-gray-600","border-gray-700","border-gray-800","border-gray-900","border-zinc-50","border-zinc-100","border-zinc-200","border-zinc-300","border-zinc-400","border-zinc-500","border-zinc-600","border-zinc-700","border-zinc-800","border-zinc-900","border-neutral-50","border-neutral-100","border-neutral-200","border-neutral-300","border-neutral-400","border-neutral-500","border-neutral-600","border-neutral-700","border-neutral-800","border-neutral-900","border-stone-50","border-stone-100","border-stone-200","border-stone-300","border-stone-400","border-stone-500","border-stone-600","border-stone-700","border-stone-800","border-stone-900","border-red-50","border-red-100","border-red-200","border-red-300","border-red-400","border-red-500","border-red-600","border-red-700","border-red-800","border-red-900","border-orange-50","border-orange-100","border-orange-200","border-orange-300","border-orange-400","border-orange-500","border-orange-600","border-orange-700","border-orange-800","border-orange-900","border-amber-50","border-amber-100","border-amber-200","border-amber-300","border-amber-400","border-amber-500","border-amber-600","border-amber-700","border-amber-800","border-amber-900","border-yellow-50","border-yellow-100","border-yellow-200","border-yellow-300","border-yellow-400","border-yellow-500","border-yellow-600","border-yellow-700","border-yellow-800","border-yellow-900","border-lime-50","border-lime-100","border-lime-200","border-lime-300","border-lime-400","border-lime-500","border-lime-600","border-lime-700","border-lime-800","border-lime-900","border-green-50","border-green-100","border-green-200","border-green-300","border-green-400","border-green-500","border-green-600","border-green-700","border-green-800","border-green-900","border-emerald-50","border-emerald-100","border-emerald-200","border-emerald-300","border-emerald-400","border-emerald-500","border-emerald-600","border-emerald-700","border-emerald-800","border-emerald-900","border-teal-50","border-teal-100","border-teal-200","border-teal-300","border-teal-400","border-teal-500","border-teal-600","border-teal-700","border-teal-800","border-teal-900","border-cyan-50","border-cyan-100","border-cyan-200","border-cyan-300","border-cyan-400","border-cyan-500","border-cyan-600","border-cyan-700","border-cyan-800","border-cyan-900","border-sky-50","border-sky-100","border-sky-200","border-sky-300","border-sky-400","border-sky-500","border-sky-600","border-sky-700","border-sky-800","border-sky-900","border-blue-50","border-blue-100","border-blue-200","border-blue-300","border-blue-400","border-blue-500","border-blue-600","border-blue-700","border-blue-800","border-blue-900","border-indigo-50","border-indigo-100","border-indigo-200","border-indigo-300","border-indigo-400","border-indigo-500","border-indigo-600","border-indigo-700","border-indigo-800","border-indigo-900","border-violet-50","border-violet-100","border-violet-200","border-violet-300","border-violet-400","border-violet-500","border-violet-600","border-violet-700","border-violet-800","border-violet-900","border-purple-50","border-purple-100","border-purple-200","border-purple-300","border-purple-400","border-purple-500","border-purple-600","border-purple-700","border-purple-800","border-purple-900","border-fuchsia-50","border-fuchsia-100","border-fuchsia-200","border-fuchsia-300","border-fuchsia-400","border-fuchsia-500","border-fuchsia-600","border-fuchsia-700","border-fuchsia-800","border-fuchsia-900","border-pink-50","border-pink-100","border-pink-200","border-pink-300","border-pink-400","border-pink-500","border-pink-600","border-pink-700","border-pink-800","border-pink-900","border-rose-50","border-rose-100","border-rose-200","border-rose-300","border-rose-400","border-rose-500","border-rose-600","border-rose-700","border-rose-800","border-rose-900"]};let Sn;const qm=new Uint8Array(16);function Um(){if(!Sn&&(Sn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sn(qm)}const ke=[];for(let r=0;r<256;++r)ke.push((r+256).toString(16).slice(1));function Km(r,e=0){return ke[r[e+0]]+ke[r[e+1]]+ke[r[e+2]]+ke[r[e+3]]+"-"+ke[r[e+4]]+ke[r[e+5]]+"-"+ke[r[e+6]]+ke[r[e+7]]+"-"+ke[r[e+8]]+ke[r[e+9]]+"-"+ke[r[e+10]]+ke[r[e+11]]+ke[r[e+12]]+ke[r[e+13]]+ke[r[e+14]]+ke[r[e+15]]}const Fl={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ba(r,e,t){if(Fl.randomUUID&&!r)return Fl.randomUUID();r=r||{};const o=r.random||(r.rng||Um)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Km(o)}const wa=function(e=200){return new Promise(t=>{setTimeout(t,e)})};class de{constructor(e){bo(this,K);ae(this,"nextTick");ae(this,"containsPagebuilder");ae(this,"pageBuilderStateStore");ae(this,"getTextAreaVueModel");ae(this,"getLocalStorageItemName");ae(this,"getCurrentImage");ae(this,"getHyberlinkEnable");ae(this,"getComponents");ae(this,"getComponent");ae(this,"getElement");ae(this,"getNextSibling");ae(this,"getParentElement");ae(this,"getRestoredElement");ae(this,"getComponentArrayAddMethod");ae(this,"NoneListernesTags");ae(this,"delay");ae(this,"observer");ae(this,"hasStartedEditing",!1);bo(this,ta,async(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;this.pageBuilderStateStore.setMenuRight(!0);const n=o.querySelector("[selected]");n&&n.removeAttribute("selected"),t.removeAttribute("hovered"),t.setAttribute("selected",""),this.pageBuilderStateStore.setElement(t)});bo(this,ra,(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;const n=o.querySelector("[hovered]");n&&n.removeAttribute("hovered"),t.hasAttribute("selected")||t.setAttribute("hovered","")});bo(this,oa,e=>{e.preventDefault(),e.stopPropagation();const t=document.querySelector("#pagebuilder");if(!t)return;const o=t.querySelector("[hovered]");o&&o.removeAttribute("hovered")});ae(this,"addListenersToEditableElements",async()=>{const e=new WeakSet,t=document.querySelector("#pagebuilder");t&&(await s.nextTick(),await new Promise(o=>requestAnimationFrame(o)),t.querySelectorAll("section *").forEach(o=>{if(this.isEditableElement(o)&&e&&!e.has(o)){e.add(o);const n=o;n.addEventListener("click",i=>vn(this,ta).call(this,i,n)),n.addEventListener("mouseover",i=>vn(this,ra).call(this,i,n)),n.addEventListener("mouseleave",i=>vn(this,oa).call(this,i))}}))});ae(this,"handleAutoSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;if(e&&e.userSettings&&typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave!==!1){if(this.pageBuilderStateStore.getIsSaving)return;try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying auto save.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}}if(e&&!e.userSettings)try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying saving.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}});ae(this,"handleManualSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;e&&e.userSettings&&(typeof e.userSettings.autoSave=="boolean"&&!e.userSettings.autoSave||typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave)&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1)),e&&!e.userSettings&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1))});ae(this,"ensureTextAreaHasContent",()=>{if(!this.getElement.value||typeof this.getElement.value.innerHTML!="string")return;const e=this.getElement.value,t=e.tagName;["DIV"].includes(t)&&e.tagName.toLowerCase()!=="img"&&e.textContent&&Number(e.textContent.length)===0?(e.classList.add("h-6"),e.classList.add("bg-red-50")):(e.classList.remove("h-6"),e.classList.remove("bg-red-50"))});ae(this,"handleTextInput",async e=>{var t;typeof((t=this.getElement.value)==null?void 0:t.innerHTML)=="string"&&(typeof this.getElement.value.innerHTML=="string"&&(await this.nextTick,this.getElement.value.textContent=e,this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML),this.getElement.value.innerHTML=e),this.ensureTextAreaHasContent())});bo(this,na,async()=>{const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=[];e.querySelectorAll("section[data-componentid]").forEach(n=>{o.push({html_code:n.outerHTML,id:n.getAttribute("data-componentid"),title:n.getAttribute("data-component-title")||"Untitled Component"})}),this.getLocalStorageItemName.value&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify({pageBuilderContentSavedAt:new Date().toISOString(),components:o})),await new Promise(n=>n())});this.nextTick=s.nextTick(),this.hasStartedEditing=!1,this.containsPagebuilder=document.querySelector("#contains-pagebuilder"),this.pageBuilderStateStore=e,this.getTextAreaVueModel=s.computed(()=>this.pageBuilderStateStore.getTextAreaVueModel),this.getLocalStorageItemName=s.computed(()=>this.pageBuilderStateStore.getLocalStorageItemName),this.getCurrentImage=s.computed(()=>this.pageBuilderStateStore.getCurrentImage),this.getHyberlinkEnable=s.computed(()=>this.pageBuilderStateStore.getHyberlinkEnable),this.getComponents=s.computed(()=>this.pageBuilderStateStore.getComponents),this.getComponent=s.computed(()=>this.pageBuilderStateStore.getComponent),this.getElement=s.computed(()=>this.pageBuilderStateStore.getElement),this.getNextSibling=s.computed(()=>this.pageBuilderStateStore.getNextSibling),this.getParentElement=s.computed(()=>this.pageBuilderStateStore.getParentElement),this.getRestoredElement=s.computed(()=>this.pageBuilderStateStore.getRestoredElement),this.getComponentArrayAddMethod=s.computed(()=>this.pageBuilderStateStore.getComponentArrayAddMethod),this.NoneListernesTags=["P","H1","H2","H3","H4","H5","H6","IFRAME","UL","OL","LI","EM","STRONG","B","A","SPAN","BLOCKQUOTE","BR"],this.delay=wa}async clearHtmlSelection(){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await Z(this,K,zm).call(this)}applyPageBuilderConfig(e){this.pageBuilderStateStore.applyPageBuilderConfig(e)}isEditableElement(e){return e?!this.NoneListernesTags.includes(e.tagName):!1}cloneCompObjForDOMInsertion(e){const t={...e};if(this.containsPagebuilder&&(this.getComponentArrayAddMethod.value==="unshift"||this.getComponentArrayAddMethod.value==="push")&&(this.getComponentArrayAddMethod.value==="unshift"&&this.containsPagebuilder.scrollTo({top:0,behavior:"smooth"}),this.getComponentArrayAddMethod.value==="push")){const l=this.containsPagebuilder.scrollHeight;this.containsPagebuilder.scrollTo({top:l,behavior:"smooth"})}const n=new DOMParser().parseFromString(t.html_code||"","text/html");n.querySelectorAll("*").forEach(l=>{Z(this,K,Lm).call(this,l)});const a=n.querySelector("section");return a&&(a.dataset.componentid=ba(),t.title&&(a.setAttribute("title",t.title),a.setAttribute("data-component-title",t.title)),t.id=a.dataset.componentid,t.html_code=a.outerHTML),t}handleAddClasses(e){var t,o;if(typeof e=="string"&&e!==""&&!e.includes(" ")&&!((t=this.getElement.value)!=null&&t.classList.contains(e))){const n=e.trim();(o=this.getElement.value)==null||o.classList.add(n),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.setClass(e)}}handleRemoveClasses(e){var t,o;(t=this.getElement.value)!=null&&t.classList.contains(e)&&((o=this.getElement.value)==null||o.classList.remove(e),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.removeClass(e))}handleDeleteElement(){var t,o;const e=this.getElement.value;if(e){if(!(e!=null&&e.parentNode)){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null);return}((t=e.parentElement)==null?void 0:t.tagName)!=="SECTION"&&(this.pageBuilderStateStore.setParentElement(e.parentNode),this.pageBuilderStateStore.setRestoredElement(e.outerHTML),this.pageBuilderStateStore.setNextSibling(e.nextSibling)),((o=e.parentElement)==null?void 0:o.tagName)==="SECTION"&&this.deleteSelectedComponent(),e.remove(),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null)}}async handleRestoreElement(){if(this.getRestoredElement.value&&this.getParentElement.value){const e=document.createElement("div");e.innerHTML=this.getRestoredElement.value,e.firstChild&&this.getParentElement.value&&this.getParentElement.value.insertBefore(e.firstChild,this.getNextSibling.value)}this.pageBuilderStateStore.setParentElement(null),this.pageBuilderStateStore.setRestoredElement(null),this.pageBuilderStateStore.setNextSibling(null),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await this.addListenersToEditableElements()}handleFontWeight(e){Z(this,K,me).call(this,e,ga.fontWeight,"setFontWeight")}handleFontFamily(e){Z(this,K,me).call(this,e,ga.fontFamily,"setFontFamily")}handleFontStyle(e){Z(this,K,me).call(this,e,ga.fontStyle,"setFontStyle")}handleVerticalPadding(e){Z(this,K,me).call(this,e,_t.verticalPadding,"setFontVerticalPadding")}handleHorizontalPadding(e){Z(this,K,me).call(this,e,_t.horizontalPadding,"setFontHorizontalPadding")}handleVerticalMargin(e){Z(this,K,me).call(this,e,_t.verticalMargin,"setFontVerticalMargin")}handleHorizontalMargin(e){Z(this,K,me).call(this,e,_t.horizontalMargin,"setFontHorizontalMargin")}handleBorderStyle(e){Z(this,K,me).call(this,e,Ar.borderStyle,"setBorderStyle")}handleBorderWidth(e){Z(this,K,me).call(this,e,Ar.borderWidth,"setBorderWidth")}handleBorderColor(e){Z(this,K,me).call(this,e,Ar.borderColor,"setBorderColor")}handleBackgroundColor(e){Z(this,K,me).call(this,e,xn.backgroundColorVariables,"setBackgroundColor")}handleTextColor(e){Z(this,K,me).call(this,e,xn.textColorVariables,"setTextColor")}handleBorderRadiusGlobal(e){Z(this,K,me).call(this,e,pt.roundedGlobal,"setBorderRadiusGlobal")}handleBorderRadiusTopLeft(e){Z(this,K,me).call(this,e,pt.roundedTopLeft,"setBorderRadiusTopLeft")}handleBorderRadiusTopRight(e){Z(this,K,me).call(this,e,pt.roundedTopRight,"setBorderRadiusTopRight")}handleBorderRadiusBottomleft(e){Z(this,K,me).call(this,e,pt.roundedBottomLeft,"setBorderRadiusBottomleft")}handleBorderRadiusBottomRight(e){Z(this,K,me).call(this,e,pt.roundedBottomRight,"setBorderRadiusBottomRight")}handleFontSize(e){if(!e||!this.getElement.value)return;let t=En.fontBase.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});t===void 0&&(t="base:none");let o=En.fontDesktop.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});o===void 0&&(o="lg:none");let n=En.fontTablet.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});n===void 0&&(n="md:none");let i=En.fontMobile.find(u=>{var p;return(p=this.getElement.value)==null?void 0:p.classList.contains(u)});i===void 0&&(i="sm:none"),this.pageBuilderStateStore.setFontBase(t),this.pageBuilderStateStore.setFontDesktop(o),this.pageBuilderStateStore.setFontTablet(n),this.pageBuilderStateStore.setFontMobile(i);const a=s.computed(()=>this.pageBuilderStateStore.getFontBase),l=s.computed(()=>this.pageBuilderStateStore.getFontDesktop),c=s.computed(()=>this.pageBuilderStateStore.getFontTablet),d=s.computed(()=>this.pageBuilderStateStore.getFontMobile);e!==void 0&&this.getElement.value&&(!e.includes("sm:")&&!e.includes("md:")&&!e.includes("lg:")&&(a.value&&this.getElement.value.classList.remove(a.value),e.includes("base:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontBase(e)),e.includes("lg:")&&(l.value&&this.getElement.value.classList.remove(l.value),e.includes("lg:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontDesktop(e)),e.includes("md:")&&(c.value&&this.getElement.value.classList.remove(c.value),e.includes("md:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontTablet(e)),e.includes("sm:")&&(d.value&&this.getElement.value.classList.remove(d.value),e.includes("sm:none")||this.getElement.value.classList.add(e),this.pageBuilderStateStore.setFontMobile(e)),this.pageBuilderStateStore.setElement(this.getElement.value))}handleBackgroundOpacity(e){Z(this,K,me).call(this,e,kn.backgroundOpacities,"setBackgroundOpacity")}handleOpacity(e){Z(this,K,me).call(this,e,kn.opacities,"setOpacity")}deleteAllComponents(){this.pageBuilderStateStore.setComponents([])}deleteSelectedComponent(){if(!this.getComponents.value||!this.getComponent.value)return;const e=this.getComponents.value.findIndex(t=>{var o;return t.id===((o=this.getComponent.value)==null?void 0:o.id)});e!==-1&&(this.getComponents.value.splice(e,1),this.pageBuilderStateStore.setComponents(this.getComponents.value),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null))}reorderComponent(e){if(!this.getComponents.value||!this.getComponent.value||this.getComponents.value.length<=1)return;const t=this.getComponent.value,o=this.getComponents.value.findIndex(i=>i.id===t.id);if(o===-1)return;const n=o+e;n<0||n>=this.getComponents.value.length||(this.getComponents.value.splice(o,1),this.getComponents.value.splice(n,0,t))}ElOrFirstChildIsIframe(){var e,t,o;return((e=this.getElement.value)==null?void 0:e.tagName)==="IFRAME"||((o=(t=this.getElement.value)==null?void 0:t.firstElementChild)==null?void 0:o.tagName)==="IFRAME"}isSelectedElementValidText(){var o,n,i,a;let e=!1;const t=(o=this.getElement.value)==null?void 0:o.children;if(!(((n=this.getElement.value)==null?void 0:n.tagName)==="IMG"||((a=(i=this.getElement.value)==null?void 0:i.firstElementChild)==null?void 0:a.tagName)==="IFRAME")&&t)return Array.from(t).forEach(l=>{(l==null?void 0:l.tagName)==="IMG"||(l==null?void 0:l.tagName)==="DIV"?e=!1:e=!0}),e}previewCurrentDesign(){this.pageBuilderStateStore.setElement(null);const e=document.querySelector("#pagebuilder");if(!e)return;const t=s.ref([]);e.querySelectorAll("section:not(section section)").forEach(n=>{const i=n.querySelector("[hovered]");i&&i.removeAttribute("hovered");const a=n.querySelector("[selected]");a&&a.removeAttribute("selected"),t.value.push(n.outerHTML)});const o=JSON.stringify(t.value);this.pageBuilderStateStore.setCurrentLayoutPreview(o),t.value=[]}sanitizeForLocalStorage(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}updateLocalStorageItemName(){var n,i,a;const e=this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType,t=(n=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:n.resourceData,o=(a=(i=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:i.updateOrCreate)==null?void 0:a.formName;if(e==="create"){if(o&&o.length>0){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-create-resource-${this.sanitizeForLocalStorage(o)}`);return}this.pageBuilderStateStore.setLocalStorageItemName("page-builder-create-resource");return}if(e==="update"){if(typeof o=="string"&&o.length>0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}if(!o||typeof o=="string"&&o.length===0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}}}async saveComponentsLocalStorage(){await this.nextTick,await vn(this,na).call(this)}async removeItemComponentsLocalStorage(){await this.nextTick,this.getLocalStorageItemName.value&&localStorage.removeItem(this.getLocalStorageItemName.value)}deleteOldPageBuilderLocalStorage(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){let e=0;const t=[],o=new Date(Date.now()-14*24*60*60*1e3);for(let n=0;n<localStorage.length;n++){const i=localStorage.key(n);if(i&&i.startsWith("page-builder-update-resource-"))try{const a=localStorage.getItem(i);if(!a)continue;const c=JSON.parse(a).pageBuilderContentSavedAt;c&&new Date(c)<o&&(e++,t.push({Number:e,Key:i,SavedAt:c}),localStorage.removeItem(i))}catch{}}t.length>0&&(console.info(`Deleted ${t.length} localStorage item(s) older than ${o} days:`),console.table(t))}}async hasLocalDraftForUpdate(){if(this.hasStartedEditing)return!1;if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{await this.delay(500);const o=JSON.parse(t),n=this.getComponents.value;return JSON.stringify(o.components)!==JSON.stringify(n)}catch{return!1}}}return!1}startEditing(){this.hasStartedEditing=!0}async resumeEditingForUpdate(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{const o=JSON.parse(t);o&&Array.isArray(o.components)&&(this.pageBuilderStateStore.setComponents(o.components),localStorage.removeItem(e),await s.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave())}catch(o){console.error("Failed to parse local draft:",o)}}}}getStorageItemNameForResource(){return this.getLocalStorageItemName.value}loadStoredComponentsFromStorage(){if(!this.getLocalStorageItemName.value)return!1;if(this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.getItem(this.getLocalStorageItemName.value)){const e=localStorage.getItem(this.getLocalStorageItemName.value);if(e)return e}return!1}async updateBasePrimaryImage(){this.getElement.value&&this.getCurrentImage.value&&this.getCurrentImage.value.src&&(await this.nextTick,this.pageBuilderStateStore.setBasePrimaryImage(`${this.getCurrentImage.value.src}`),await this.handleAutoSave())}setBasePrimaryImageFromCurrent(){if(!this.getElement.value)return;const e=document.createElement("div");e.innerHTML=this.getElement.value.outerHTML;const t=e.getElementsByTagName("img"),o=e.getElementsByTagName("div");if(t.length===1&&o.length===0){this.pageBuilderStateStore.setBasePrimaryImage(t[0].src);return}this.pageBuilderStateStore.setBasePrimaryImage(null)}handleHyperlink(e,t,o){var a;if(this.pageBuilderStateStore.setHyperlinkAbility(!0),!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;this.getElement.value.closest("a")!==null&&this.pageBuilderStateStore.setHyperlinkAbility(!1);const i=(a=this.getElement.value)==null?void 0:a.tagName.toUpperCase();if(i!=="P"&&i!=="H1"&&i!=="H2"&&i!=="H3"&&i!=="H4"&&i!=="H5"&&i!=="H6"&&this.pageBuilderStateStore.setHyperlinkAbility(!1),e===void 0){Z(this,K,jm).call(this);return}Z(this,K,Fm).call(this,e,t||null,o||!1)}async addComponent(e){try{const t=this.cloneCompObjForDOMInsertion({html_code:e.html_code,id:e.id,title:e.title});this.pageBuilderStateStore.setPushComponents({component:t,componentArrayAddMethod:this.getComponentArrayAddMethod.value||"push"}),await s.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave()}catch(t){console.error("Error adding component:",t)}}setComponentsFromData(e){const t=e.trim();t.startsWith("[")||t.startsWith("{")?Z(this,K,Dl).call(this,t):t.startsWith("<")?Z(this,K,Hm).call(this,t):Z(this,K,Dl).call(this,t)}mountComponentsToDOM(e,t){if(this.pageBuilderStateStore.setComponents([]),!this.pageBuilderStateStore.getConfigPageBuilder)return;t&&e!==void 0&&this.setComponentsFromData(e);const o=this.loadStoredComponentsFromStorage();this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="create"&&o&&this.setComponentsFromData(o),this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"&&e&&this.setComponentsFromData(e)}async toggleTipTapModal(e){this.pageBuilderStateStore.setShowModalTipTap(e),e||await this.handleAutoSave()}async initializeElementStyles(){await new Promise(e=>requestAnimationFrame(e)),this.handleHyperlink(void 0,null,!1),this.handleOpacity(void 0),this.handleBackgroundOpacity(void 0),this.setBasePrimaryImageFromCurrent(),this.handleBorderStyle(void 0),this.handleBorderWidth(void 0),this.handleBorderColor(void 0),this.handleBorderRadiusGlobal(void 0),this.handleBorderRadiusTopLeft(void 0),this.handleBorderRadiusTopRight(void 0),this.handleBorderRadiusBottomleft(void 0),this.handleBorderRadiusBottomRight(void 0),this.handleFontSize(void 0),this.handleFontWeight(void 0),this.handleFontFamily(void 0),this.handleFontStyle(void 0),this.handleVerticalPadding(void 0),this.handleHorizontalPadding(void 0),this.handleVerticalMargin(void 0),this.handleHorizontalMargin(void 0),this.handleBackgroundColor(void 0),this.handleTextColor(void 0),await Z(this,K,_m).call(this)}}K=new WeakSet,me=function(e,t,o){const n=this.getElement.value;if(!n)return;const i=t.find(l=>n.classList.contains(l));let a=i||"none";return e===void 0?(typeof o=="string"&&o.length>2&&this.pageBuilderStateStore[o](a),i):(typeof e=="string"&&e!=="none"?(a&&n.classList.contains(a)&&n.classList.remove(a),n.classList.add(e),a=e):typeof e=="string"&&e==="none"&&a&&(n.classList.remove(a),a=e),typeof o=="string"&&o.length>2&&(this.pageBuilderStateStore[o](a),this.pageBuilderStateStore.setElement(n)),i)},Lm=function(e){Z(this,K,Rm).call(this,e),e.tagName==="IMG"&&e.classList.add("smooth-transition"),e.tagName==="DIV"&&e.classList.length},Rm=function(e){var t;if(e&&this.NoneListernesTags.includes(e.tagName)&&(e.previousElementSibling&&e.previousElementSibling.tagName==="IMG"||e.nextElementSibling&&e.nextElementSibling.tagName==="IMG")){const o=document.createElement("div");(t=e.parentNode)==null||t.insertBefore(o,e),o.appendChild(e)}},ta=new WeakMap,ra=new WeakMap,oa=new WeakMap,zm=async function(){await new Promise(n=>requestAnimationFrame(n));const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=e.querySelector("[selected]");o&&o.removeAttribute("selected")},_m=async function(){var t;await new Promise(o=>requestAnimationFrame(o));const e=Array.from(((t=this.getElement.value)==null?void 0:t.classList)||[]);this.pageBuilderStateStore.setCurrentClasses(e)},na=new WeakMap,Fm=function(e,t,o){if(!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;const n=this.getElement.value.closest("a"),i=this.getElement.value.querySelector("a");this.pageBuilderStateStore.setHyperlinkError(null);const a=/^https?:\/\//,l=s.ref(!0);if(e===!0&&t!==null&&(l.value=a.test(t)),l.value===!1){this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError("URL is not valid");return}if(e===!0&&typeof t=="string"){if(i!==null&&t.length!==0){i.href=t,o===!0&&(i.target="_blank"),o===!1&&i.removeAttribute("target"),i.textContent=this.getElement.value.textContent,this.pageBuilderStateStore.setHyperlinkMessage("Succesfully updated element hyperlink"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}if(i===null&&t.length!==0&&n===null){const c=document.createElement("a");c.href=t,o===!0&&(c.target="_blank"),c.textContent=this.getElement.value.textContent,this.getElement.value.textContent="",this.getElement.value.appendChild(c),this.pageBuilderStateStore.setHyperlinkMessage("Successfully added hyperlink to element"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}}if(e===!1&&t==="removeHyperlink"){const c=this.getElement.value.textContent||"",d=document.createTextNode(c);this.getElement.value.textContent="",this.getElement.value.appendChild(d),this.pageBuilderStateStore.setHyberlinkEnable(!1),this.pageBuilderStateStore.setElementContainsHyperlink(!1)}},jm=function(){if(!this.getElement.value)return;const e=this.getElement.value.querySelector("a");if(e!==null){this.pageBuilderStateStore.setHyberlinkEnable(!0),this.pageBuilderStateStore.setElementContainsHyperlink(!0),this.pageBuilderStateStore.setHyperlinkInput(e.href),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError(null),e.target==="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!0),e.target!=="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!1);return}this.pageBuilderStateStore.setElementContainsHyperlink(!1),this.pageBuilderStateStore.setHyperlinkInput(""),this.pageBuilderStateStore.setHyperlinkError(null),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyberlinkEnable(!1)},Dl=function(e){try{const t=JSON.parse(e);let o=[],n;Array.isArray(t)?o=t:t&&Array.isArray(t.components)&&(o=t.components,n=t.pageBuilderContentSavedAt);let i=[];o.length>0&&(i=o.map(l=>{const u=new DOMParser().parseFromString(l.html_code,"text/html").querySelector("section");if(u){if(u.hasAttribute("data-componentid"))l.id=u.getAttribute("data-componentid");else{const m=ba();u.setAttribute("data-componentid",m),l.id=m}const p=l.title||"Untitled Component";u.setAttribute("data-component-title",p),l.title=p,l.html_code=u.outerHTML}return l})),this.pageBuilderStateStore.setComponents(i);const a={pageBuilderContentSavedAt:t.pageBuilderContentSavedAt||new Date().toISOString(),components:i};this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify(a))}catch(t){console.error("Error parsing JSON components:",t),this.pageBuilderStateStore.setComponents([])}},Hm=function(e){try{const n=new DOMParser().parseFromString(e,"text/html").querySelectorAll("section"),i=[];n.forEach(a=>{const l=a;l.hasAttribute("data-componentid")||l.setAttribute("data-componentid",ba());const c=l.getAttribute("data-componentid"),d=l.getAttribute("title")||l.getAttribute("data-component-title")||"Untitled Component";l.setAttribute("data-component-title",d),i.push({html_code:l.outerHTML,id:c,title:d})}),this.pageBuilderStateStore.setComponents(i)}catch(t){console.error("Error parsing HTML components:",t),this.pageBuilderStateStore.setComponents([])}};const Jm={class:"font-sans"},Gm={key:0,class:"fixed inset-0 z-40 flex items-center justify-center mx-4",role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},Ym={class:"h-16 flex items-center justify-between border-b border-gray-200 bg-white mb-2"},Xm={as:"h3",class:"myQuaternaryHeader my-0 py-0"},Dr=s.defineComponent({__name:"ModalBuilder",props:{title:{type:String,required:!0},showModalBuilder:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},minHeight:{type:String},maxHeight:{type:String}},emits:["closeMainModalBuilder"],setup(r,{emit:e}){const t=r,o=e,n=()=>{o("closeMainModalBuilder")},i=s.computed(()=>({sm:"lg:max-w-sm",md:"lg:max-w-md",lg:"lg:max-w-lg",xl:"lg:max-w-xl","2xl":"lg:max-w-2xl","3xl":"lg:max-w-3xl","4xl":"lg:max-w-4xl","5xl":"lg:max-w-5xl","6xl":"lg:max-w-6xl","7xl":"lg:max-w-7xl",full:"lg:max-w-full",screen:"lg:w-screen sm:max-w-none"})[t.maxWidth]);return(a,l)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[s.createElementVNode("div",Jm,[r.showModalBuilder?(s.openBlock(),s.createElementBlock("div",Gm,[s.createElementVNode("div",{class:"fixed inset-0 bg-black/50 transition-opacity",onClick:n}),s.createElementVNode("div",{class:s.normalizeClass(["relative inline-block bg-white rounded-xl text-left overflow-hidden shadow-xl transform transition-all max-w-[96vh] max-h-[98vh] overflow-y-auto w-full px-4",[i.value?i.value:"",r.minHeight?r.minHeight:"",r.maxHeight?r.maxHeight:""]])},[s.createElementVNode("div",Ym,[s.createElementVNode("h3",Xm,s.toDisplayString(r.title),1),s.createElementVNode("div",{class:"h-10 w-10 flex-end cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white hover:fill-white focus-visible:ring-0",onClick:n},l[0]||(l[0]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)]))]),s.renderSlot(a.$slots,"default")],2)])):s.createCommentVNode("",!0)])]))}});function Cn(r,e,t){return Array.isArray(r)?(r.length=Math.max(r.length,e),r.splice(e,1,t),t):(r[e]=t,t)}function ya(r,e){if(Array.isArray(r)){r.splice(e,1);return}delete r[e]}function Qm(){return jl().__VUE_DEVTOOLS_GLOBAL_HOOK__}function jl(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Zm=typeof Proxy=="function",$m="devtools-plugin:setup",eh="plugin:settings:set";let Ir,va;function th(){var r;return Ir!==void 0||(typeof window<"u"&&window.performance?(Ir=!0,va=window.performance):typeof globalThis<"u"&&(!((r=globalThis.perf_hooks)===null||r===void 0)&&r.performance)?(Ir=!0,va=globalThis.perf_hooks.performance):Ir=!1),Ir}function rh(){return th()?va.now():Date.now()}class oh{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const o={};if(e.settings)for(const a in e.settings){const l=e.settings[a];o[a]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},o);try{const a=localStorage.getItem(n),l=JSON.parse(a);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(a){try{localStorage.setItem(n,JSON.stringify(a))}catch{}i=a},now(){return rh()}},t&&t.on(eh,(a,l)=>{a===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(a,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(a,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Hl(r,e){const t=r,o=jl(),n=Qm(),i=Zm&&t.enableEarlyProxy;if(n&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))n.emit($m,r,e);else{const a=i?new oh(t,n):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:a}),a&&e(a.proxiedTarget)}}/*!
|
|
1
|
+
(function(Y,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(Y=typeof globalThis<"u"?globalThis:Y||self,a(Y.VueWebsitePageBuilder={},Y.Vue))})(this,function(Y,a){"use strict";var lC=Object.defineProperty;var Ib=Y=>{throw TypeError(Y)};var pC=(Y,a,Pe)=>a in Y?lC(Y,a,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Y[a]=Pe;var pe=(Y,a,Pe)=>pC(Y,typeof a!="symbol"?a+"":a,Pe),Lb=(Y,a,Pe)=>a.has(Y)||Ib("Cannot "+Pe);var kn=(Y,a,Pe)=>(Lb(Y,a,"read from private field"),Pe?Pe.call(Y):a.get(Y)),go=(Y,a,Pe)=>a.has(Y)?Ib("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(Y):a.set(Y,Pe);var J=(Y,a,Pe)=>(Lb(Y,a,"access private method"),Pe);var j,se,Rb,zb,ra,oa,na,_b,Fb,ia,jb,Hb,Dl,Il,Wb;function Pe(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const Fl=Pe(a),yo={fontBase:["none","pbx-text-xs","pbx-text-sm","pbx-text-base","pbx-text-lg","pbx-text-xl","pbx-text-2xl","pbx-text-3xl","pbx-text-4xl","pbx-text-5xl","pbx-text-6xl","pbx-text-7xl","pbx-text-8xl","pbx-text-9xl"],fontDesktop:["none","lg:pbx-text-xs","lg:pbx-text-sm","lg:pbx-text-base","lg:pbx-text-lg","lg:pbx-text-xl","lg:pbx-text-2xl","lg:pbx-text-3xl","lg:pbx-text-4xl","lg:pbx-text-5xl","lg:pbx-text-6xl","lg:pbx-text-7xl","lg:pbx-text-8xl","lg:pbx-text-9xl"],fontTablet:["none","md:pbx-text-xs","md:pbx-text-sm","md:pbx-text-base","md:pbx-text-lg","md:pbx-text-xl","md:pbx-text-2xl","md:pbx-text-3xl","md:pbx-text-4xl","md:pbx-text-5xl","md:pbx-text-6xl","md:pbx-text-7xl","md:pbx-text-8xl","md:pbx-text-9xl"],fontMobile:["none","sm:pbx-text-xs","sm:pbx-text-sm","sm:pbx-text-base","sm:pbx-text-lg","sm:pbx-text-xl","sm:pbx-text-2xl","sm:pbx-text-3xl","sm:pbx-text-4xl","sm:pbx-text-5xl","sm:pbx-text-6xl","sm:pbx-text-7xl","sm:pbx-text-8xl","sm:pbx-text-9xl"]},En={backgroundColorVariables:["none","pbx-bg-white","pbx-bg-black","pbx-bg-slate-50","pbx-bg-slate-100","pbx-bg-slate-200","pbx-bg-slate-300","pbx-bg-slate-400","pbx-bg-slate-500","pbx-bg-slate-600","pbx-bg-slate-700","pbx-bg-slate-800","pbx-bg-slate-900","pbx-bg-gray-50","pbx-bg-gray-100","pbx-bg-gray-200","pbx-bg-gray-300","pbx-bg-gray-400","pbx-bg-gray-500","pbx-bg-gray-600","pbx-bg-gray-700","pbx-bg-gray-800","pbx-bg-gray-900","pbx-bg-zinc-50","pbx-bg-zinc-100","pbx-bg-zinc-200","pbx-bg-zinc-300","pbx-bg-zinc-400","pbx-bg-zinc-500","pbx-bg-zinc-600","pbx-bg-zinc-700","pbx-bg-zinc-800","pbx-bg-zinc-900","pbx-bg-neutral-50","pbx-bg-neutral-100","pbx-bg-neutral-200","pbx-bg-neutral-300","pbx-bg-neutral-400","pbx-bg-neutral-500","pbx-bg-neutral-600","pbx-bg-neutral-700","pbx-bg-neutral-800","pbx-bg-neutral-900","pbx-bg-stone-50","pbx-bg-stone-100","pbx-bg-stone-200","pbx-bg-stone-300","pbx-bg-stone-400","pbx-bg-stone-500","pbx-bg-stone-600","pbx-bg-stone-700","pbx-bg-stone-800","pbx-bg-stone-900","pbx-bg-red-50","pbx-bg-red-100","pbx-bg-red-200","pbx-bg-red-300","pbx-bg-red-400","pbx-bg-red-500","pbx-bg-red-600","pbx-bg-red-700","pbx-bg-red-800","pbx-bg-red-900","pbx-bg-orange-50","pbx-bg-orange-100","pbx-bg-orange-200","pbx-bg-orange-300","pbx-bg-orange-400","pbx-bg-orange-500","pbx-bg-orange-600","pbx-bg-orange-700","pbx-bg-orange-800","pbx-bg-orange-900","pbx-bg-amber-50","pbx-bg-amber-100","pbx-bg-amber-200","pbx-bg-amber-300","pbx-bg-amber-400","pbx-bg-amber-500","pbx-bg-amber-600","pbx-bg-amber-700","pbx-bg-amber-800","pbx-bg-amber-900","pbx-bg-yellow-50","pbx-bg-yellow-100","pbx-bg-yellow-200","pbx-bg-yellow-300","pbx-bg-yellow-400","pbx-bg-yellow-500","pbx-bg-yellow-600","pbx-bg-yellow-700","pbx-bg-yellow-800","pbx-bg-yellow-900","pbx-bg-lime-50","pbx-bg-lime-100","pbx-bg-lime-200","pbx-bg-lime-300","pbx-bg-lime-400","pbx-bg-lime-500","pbx-bg-lime-600","pbx-bg-lime-700","pbx-bg-lime-800","pbx-bg-lime-900","pbx-bg-green-50","pbx-bg-green-100","pbx-bg-green-200","pbx-bg-green-300","pbx-bg-green-400","pbx-bg-green-500","pbx-bg-green-600","pbx-bg-green-700","pbx-bg-green-800","pbx-bg-green-900","pbx-bg-emerald-50","pbx-bg-emerald-100","pbx-bg-emerald-200","pbx-bg-emerald-300","pbx-bg-emerald-400","pbx-bg-emerald-500","pbx-bg-emerald-600","pbx-bg-emerald-700","pbx-bg-emerald-800","pbx-bg-emerald-900","pbx-bg-teal-50","pbx-bg-teal-100","pbx-bg-teal-200","pbx-bg-teal-300","pbx-bg-teal-400","pbx-bg-teal-500","pbx-bg-teal-600","pbx-bg-teal-700","pbx-bg-teal-800","pbx-bg-teal-900","pbx-bg-cyan-50","pbx-bg-cyan-100","pbx-bg-cyan-200","pbx-bg-cyan-300","pbx-bg-cyan-400","pbx-bg-cyan-500","pbx-bg-cyan-600","pbx-bg-cyan-700","pbx-bg-cyan-800","pbx-bg-cyan-900","pbx-bg-sky-50","pbx-bg-sky-100","pbx-bg-sky-200","pbx-bg-sky-300","pbx-bg-sky-400","pbx-bg-sky-500","pbx-bg-sky-600","pbx-bg-sky-700","pbx-bg-sky-800","pbx-bg-sky-900","pbx-bg-blue-50","pbx-bg-blue-100","pbx-bg-blue-200","pbx-bg-blue-300","pbx-bg-blue-400","pbx-bg-blue-500","pbx-bg-blue-600","pbx-bg-blue-700","pbx-bg-blue-800","pbx-bg-blue-900","pbx-bg-indigo-50","pbx-bg-indigo-100","pbx-bg-indigo-200","pbx-bg-indigo-300","pbx-bg-indigo-400","pbx-bg-indigo-500","pbx-bg-indigo-600","pbx-bg-indigo-700","pbx-bg-indigo-800","pbx-bg-indigo-900","pbx-bg-violet-50","pbx-bg-violet-100","pbx-bg-violet-200","pbx-bg-violet-300","pbx-bg-violet-400","pbx-bg-violet-500","pbx-bg-violet-600","pbx-bg-violet-700","pbx-bg-violet-800","pbx-bg-violet-900","pbx-bg-purple-50","pbx-bg-purple-100","pbx-bg-purple-200","pbx-bg-purple-300","pbx-bg-purple-400","pbx-bg-purple-500","pbx-bg-purple-600","pbx-bg-purple-700","pbx-bg-purple-800","pbx-bg-purple-900","pbx-bg-fuchsia-50","pbx-bg-fuchsia-100","pbx-bg-fuchsia-200","pbx-bg-fuchsia-300","pbx-bg-fuchsia-400","pbx-bg-fuchsia-500","pbx-bg-fuchsia-600","pbx-bg-fuchsia-700","pbx-bg-fuchsia-800","pbx-bg-fuchsia-900","pbx-bg-pink-50","pbx-bg-pink-100","pbx-bg-pink-200","pbx-bg-pink-300","pbx-bg-pink-400","pbx-bg-pink-500","pbx-bg-pink-600","pbx-bg-pink-700","pbx-bg-pink-800","pbx-bg-pink-900","pbx-bg-rose-50","pbx-bg-rose-100","pbx-bg-rose-200","pbx-bg-rose-300","pbx-bg-rose-400","pbx-bg-rose-500","pbx-bg-rose-600","pbx-bg-rose-700","pbx-bg-rose-800","pbx-bg-rose-900"],textColorVariables:["none","pbx-text-white","pbx-text-black","pbx-text-slate-50","pbx-text-slate-100","pbx-text-slate-200","pbx-text-slate-300","pbx-text-slate-400","pbx-text-slate-500","pbx-text-slate-600","pbx-text-slate-700","pbx-text-slate-800","pbx-text-slate-900","pbx-text-gray-50","pbx-text-gray-100","pbx-text-gray-200","pbx-text-gray-300","pbx-text-gray-400","pbx-text-gray-500","pbx-text-gray-600","pbx-text-gray-700","pbx-text-gray-800","pbx-text-gray-900","pbx-text-zinc-50","pbx-text-zinc-100","pbx-text-zinc-200","pbx-text-zinc-300","pbx-text-zinc-400","pbx-text-zinc-500","pbx-text-zinc-600","pbx-text-zinc-700","pbx-text-zinc-800","pbx-text-zinc-900","pbx-text-neutral-50","pbx-text-neutral-100","pbx-text-neutral-200","pbx-text-neutral-300","pbx-text-neutral-400","pbx-text-neutral-500","pbx-text-neutral-600","pbx-text-neutral-700","pbx-text-neutral-800","pbx-text-neutral-900","pbx-text-stone-50","pbx-text-stone-100","pbx-text-stone-200","pbx-text-stone-300","pbx-text-stone-400","pbx-text-stone-500","pbx-text-stone-600","pbx-text-stone-700","pbx-text-stone-800","pbx-text-stone-900","pbx-text-red-50","pbx-text-red-100","pbx-text-red-200","pbx-text-red-300","pbx-text-red-400","pbx-text-red-500","pbx-text-red-600","pbx-text-red-700","pbx-text-red-800","pbx-text-red-900","pbx-text-orange-50","pbx-text-orange-100","pbx-text-orange-200","pbx-text-orange-300","pbx-text-orange-400","pbx-text-orange-500","pbx-text-orange-600","pbx-text-orange-700","pbx-text-orange-800","pbx-text-orange-900","pbx-text-amber-50","pbx-text-amber-100","pbx-text-amber-200","pbx-text-amber-300","pbx-text-amber-400","pbx-text-amber-500","pbx-text-amber-600","pbx-text-amber-700","pbx-text-amber-800","pbx-text-amber-900","pbx-text-yellow-50","pbx-text-yellow-100","pbx-text-yellow-200","pbx-text-yellow-300","pbx-text-yellow-400","pbx-text-yellow-500","pbx-text-yellow-600","pbx-text-yellow-700","pbx-text-yellow-800","pbx-text-yellow-900","pbx-text-lime-50","pbx-text-lime-100","pbx-text-lime-200","pbx-text-lime-300","pbx-text-lime-400","pbx-text-lime-500","pbx-text-lime-600","pbx-text-lime-700","pbx-text-lime-800","pbx-text-lime-900","pbx-text-green-50","pbx-text-green-100","pbx-text-green-200","pbx-text-green-300","pbx-text-green-400","pbx-text-green-500","pbx-text-green-600","pbx-text-green-700","pbx-text-green-800","pbx-text-green-900","pbx-text-emerald-50","pbx-text-emerald-100","pbx-text-emerald-200","pbx-text-emerald-300","pbx-text-emerald-400","pbx-text-emerald-500","pbx-text-emerald-600","pbx-text-emerald-700","pbx-text-emerald-800","pbx-text-emerald-900","pbx-text-teal-50","pbx-text-teal-100","pbx-text-teal-200","pbx-text-teal-300","pbx-text-teal-400","pbx-text-teal-500","pbx-text-teal-600","pbx-text-teal-700","pbx-text-teal-800","pbx-text-teal-900","pbx-text-cyan-50","pbx-text-cyan-100","pbx-text-cyan-200","pbx-text-cyan-300","pbx-text-cyan-400","pbx-text-cyan-500","pbx-text-cyan-600","pbx-text-cyan-700","pbx-text-cyan-800","pbx-text-cyan-900","pbx-text-sky-50","pbx-text-sky-100","pbx-text-sky-200","pbx-text-sky-300","pbx-text-sky-400","pbx-text-sky-500","pbx-text-sky-600","pbx-text-sky-700","pbx-text-sky-800","pbx-text-sky-900","pbx-text-blue-50","pbx-text-blue-100","pbx-text-blue-200","pbx-text-blue-300","pbx-text-blue-400","pbx-text-blue-500","pbx-text-blue-600","pbx-text-blue-700","pbx-text-blue-800","pbx-text-blue-900","pbx-text-indigo-50","pbx-text-indigo-100","pbx-text-indigo-200","pbx-text-indigo-300","pbx-text-indigo-400","pbx-text-indigo-500","pbx-text-indigo-600","pbx-text-indigo-700","pbx-text-indigo-800","pbx-text-indigo-900","pbx-text-violet-50","pbx-text-violet-100","pbx-text-violet-200","pbx-text-violet-300","pbx-text-violet-400","pbx-text-violet-500","pbx-text-violet-600","pbx-text-violet-700","pbx-text-violet-800","pbx-text-violet-900","pbx-text-purple-50","pbx-text-purple-100","pbx-text-purple-200","pbx-text-purple-300","pbx-text-purple-400","pbx-text-purple-500","pbx-text-purple-600","pbx-text-purple-700","pbx-text-purple-800","pbx-text-purple-900","pbx-text-fuchsia-50","pbx-text-fuchsia-100","pbx-text-fuchsia-200","pbx-text-fuchsia-300","pbx-text-fuchsia-400","pbx-text-fuchsia-500","pbx-text-fuchsia-600","pbx-text-fuchsia-700","pbx-text-fuchsia-800","pbx-text-fuchsia-900","pbx-text-pink-50","pbx-text-pink-100","pbx-text-pink-200","pbx-text-pink-300","pbx-text-pink-400","pbx-text-pink-500","pbx-text-pink-600","pbx-text-pink-700","pbx-text-pink-800","pbx-text-pink-900","pbx-text-rose-50","pbx-text-rose-100","pbx-text-rose-200","pbx-text-rose-300","pbx-text-rose-400","pbx-text-rose-500","pbx-text-rose-600","pbx-text-rose-700","pbx-text-rose-800","pbx-text-rose-900"]},Sn={opacities:["none","pbx-opacity-0","pbx-opacity-5","pbx-opacity-10","pbx-opacity-20","pbx-opacity-25","pbx-opacity-30","pbx-opacity-40","pbx-opacity-50","pbx-opacity-60","pbx-opacity-70","pbx-opacity-75","pbx-opacity-80","pbx-opacity-90","pbx-opacity-95","pbx-opacity-100"],backgroundOpacities:["none","pbx-bg-opacity-0","pbx-bg-opacity-5","pbx-bg-opacity-10","pbx-bg-opacity-20","pbx-bg-opacity-25","pbx-bg-opacity-30","pbx-bg-opacity-40","pbx-bg-opacity-50","pbx-bg-opacity-60","pbx-bg-opacity-70","pbx-bg-opacity-75","pbx-bg-opacity-80","pbx-bg-opacity-90","pbx-bg-opacity-95","pbx-bg-opacity-100"]},Dr={fontWeight:["none","pbx-font-thin","pbx-font-extralight","pbx-font-light","pbx-font-normal","pbx-font-medium","pbx-font-medium","pbx-font-bold","pbx-font-extrabold","pbx-font-black"],fontFamily:["none","pbx-font-sans","pbx-font-serif","pbx-font-mono","pbx-font-arial","pbx-font-helvetica","pbx-font-georgia","pbx-font-times","pbx-font-times-new-roman","pbx-font-courier","pbx-font-courier-new","pbx-font-verdana","pbx-font-tahoma","pbx-font-trebuchet","pbx-font-garamond","pbx-font-palantino","pbx-font-bookman","pbx-font-comic-sans","pbx-font-impact","pbx-font-lucida","pbx-font-lucida-console","pbx-font-lucida-sans","pbx-font-candara","pbx-font-optima","pbx-font-avenir","pbx-font-futura","pbx-font-calibri","pbx-font-cambria","pbx-font-didot","pbx-font-franklin-gothic","pbx-font-rockwell","pbx-font-baskerville"],fontStyle:["none","pbx-italic","pbx-non-italic"]},_t={verticalPadding:["none","pbx-py-0","pbx-py-0.5","pbx-py-1","pbx-py-1.5","pbx-py-2","pbx-py-2.5","pbx-py-3","pbx-py-3.5","pbx-py-4","pbx-py-5","pbx-py-6","pbx-py-7","pbx-py-8","pbx-py-9","pbx-py-10","pbx-py-11","pbx-py-12","pbx-py-14","pbx-py-16","pbx-py-20","pbx-py-24","pbx-py-28","pbx-py-32","pbx-py-36","pbx-py-40","pbx-py-44","pbx-py-48","pbx-py-52","pbx-py-56","pbx-py-60","pbx-py-64","pbx-py-72","pbx-py-80","pbx-py-96"],horizontalPadding:["none","pbx-px-0","pbx-px-0.5","pbx-px-1","pbx-px-1.5","pbx-px-2","pbx-px-2.5","pbx-px-3","pbx-px-3.5","pbx-px-4","pbx-px-5","pbx-px-6","pbx-px-7","pbx-px-8","pbx-px-9","pbx-px-10","pbx-px-11","pbx-px-12","pbx-px-14","pbx-px-16","pbx-px-20","pbx-px-24","pbx-px-28","pbx-px-32","pbx-px-36","pbx-px-40","pbx-px-44","pbx-px-48","pbx-px-52","pbx-px-56","pbx-px-60","pbx-px-64","pbx-px-72","pbx-px-80","pbx-px-96"],verticalMargin:["none","pbx-my-0","pbx-my-0.5","pbx-my-1","pbx-my-1.5","pbx-my-2","pbx-my-2.5","pbx-my-3","pbx-my-3.5","pbx-my-4","pbx-my-5","pbx-my-6","pbx-my-7","pbx-my-8","pbx-my-9","pbx-my-10","pbx-my-11","pbx-my-12","pbx-my-14","pbx-my-16","pbx-my-20","pbx-my-24","pbx-my-28","pbx-my-32","pbx-my-36","pbx-my-40","pbx-my-44","pbx-my-48","pbx-my-52","pbx-my-56","pbx-my-60","pbx-my-64","pbx-my-72","pbx-my-80","pbx-my-96"],horizontalMargin:["none","pbx-mx-0","pbx-mx-0.5","pbx-mx-1","pbx-mx-1.5","pbx-mx-2","pbx-mx-2.5","pbx-mx-3","pbx-mx-3.5","pbx-mx-4","pbx-mx-5","pbx-mx-6","pbx-mx-7","pbx-mx-8","pbx-mx-9","pbx-mx-10","pbx-mx-11","pbx-mx-12","pbx-mx-14","pbx-mx-16","pbx-mx-20","pbx-mx-24","pbx-mx-28","pbx-mx-32","pbx-mx-36","pbx-mx-40","pbx-mx-44","pbx-mx-48","pbx-mx-52","pbx-mx-56","pbx-mx-60","pbx-mx-64","pbx-mx-72","pbx-mx-80","pbx-mx-96"]},ut={roundedGlobal:["none","pbx-rounded-sm","pbx-rounded","pbx-rounded-md","pbx-rounded-lg","pbx-rounded-xl","pbx-rounded-2xl","pbx-rounded-3xl","pbx-rounded-full"],roundedTopLeft:["none","pbx-rounded-tl-sm","pbx-rounded-tl","pbx-rounded-tl-md","pbx-rounded-tl-lg","pbx-rounded-tl-xl","pbx-rounded-tl-2xl","pbx-rounded-tl-3xl","pbx-rounded-tl-full"],roundedTopRight:["none","pbx-rounded-tr-sm","pbx-rounded-tr","pbx-rounded-tr-md","pbx-rounded-tr-lg","pbx-rounded-tr-xl","pbx-rounded-tr-2xl","pbx-rounded-tr-3xl","pbx-rounded-tr-full"],roundedBottomLeft:["none","pbx-rounded-bl-sm","pbx-rounded-bl","pbx-rounded-bl-md","pbx-rounded-bl-lg","pbx-rounded-bl-xl","pbx-rounded-bl-2xl","pbx-rounded-bl-3xl","pbx-rounded-bl-full"],roundedBottomRight:["none","pbx-rounded-br-sm","pbx-rounded-br","pbx-rounded-br-md","pbx-rounded-br-lg","pbx-rounded-br-xl","pbx-rounded-br-2xl","pbx-rounded-br-3xl","pbx-rounded-br-full"]},Ir={borderStyle:["none","pbx-border-solid","pbx-border-dashed","pbx-border-dotted","pbx-border-double","pbx-border-hidden"],borderWidth:["none","pbx-border","pbx-border-2","pbx-border-4","pbx-border-8"],borderColor:["none","pbx-border-white","pbx-border-black","pbx-border-slate-50","pbx-border-slate-100","pbx-border-slate-200","pbx-border-slate-300","pbx-border-slate-400","pbx-border-slate-500","pbx-border-slate-600","pbx-border-slate-700","pbx-border-slate-800","pbx-border-slate-900","pbx-border-gray-50","pbx-border-gray-100","pbx-border-gray-200","pbx-border-gray-300","pbx-border-gray-400","pbx-border-gray-500","pbx-border-gray-600","pbx-border-gray-700","pbx-border-gray-800","pbx-border-gray-900","pbx-border-zinc-50","pbx-border-zinc-100","pbx-border-zinc-200","pbx-border-zinc-300","pbx-border-zinc-400","pbx-border-zinc-500","pbx-border-zinc-600","pbx-border-zinc-700","pbx-border-zinc-800","pbx-border-zinc-900","pbx-border-neutral-50","pbx-border-neutral-100","pbx-border-neutral-200","pbx-border-neutral-300","pbx-border-neutral-400","pbx-border-neutral-500","pbx-border-neutral-600","pbx-border-neutral-700","pbx-border-neutral-800","pbx-border-neutral-900","pbx-border-stone-50","pbx-border-stone-100","pbx-border-stone-200","pbx-border-stone-300","pbx-border-stone-400","pbx-border-stone-500","pbx-border-stone-600","pbx-border-stone-700","pbx-border-stone-800","pbx-border-stone-900","pbx-border-red-50","pbx-border-red-100","pbx-border-red-200","pbx-border-red-300","pbx-border-red-400","pbx-border-red-500","pbx-border-red-600","pbx-border-red-700","pbx-border-red-800","pbx-border-red-900","pbx-border-orange-50","pbx-border-orange-100","pbx-border-orange-200","pbx-border-orange-300","pbx-border-orange-400","pbx-border-orange-500","pbx-border-orange-600","pbx-border-orange-700","pbx-border-orange-800","pbx-border-orange-900","pbx-border-amber-50","pbx-border-amber-100","pbx-border-amber-200","pbx-border-amber-300","pbx-border-amber-400","pbx-border-amber-500","pbx-border-amber-600","pbx-border-amber-700","pbx-border-amber-800","pbx-border-amber-900","pbx-border-yellow-50","pbx-border-yellow-100","pbx-border-yellow-200","pbx-border-yellow-300","pbx-border-yellow-400","pbx-border-yellow-500","pbx-border-yellow-600","pbx-border-yellow-700","pbx-border-yellow-800","pbx-border-yellow-900","pbx-border-lime-50","pbx-border-lime-100","pbx-border-lime-200","pbx-border-lime-300","pbx-border-lime-400","pbx-border-lime-500","pbx-border-lime-600","pbx-border-lime-700","pbx-border-lime-800","pbx-border-lime-900","pbx-border-green-50","pbx-border-green-100","pbx-border-green-200","pbx-border-green-300","pbx-border-green-400","pbx-border-green-500","pbx-border-green-600","pbx-border-green-700","pbx-border-green-800","pbx-border-green-900","pbx-border-emerald-50","pbx-border-emerald-100","pbx-border-emerald-200","pbx-border-emerald-300","pbx-border-emerald-400","pbx-border-emerald-500","pbx-border-emerald-600","pbx-border-emerald-700","pbx-border-emerald-800","pbx-border-emerald-900","pbx-border-teal-50","pbx-border-teal-100","pbx-border-teal-200","pbx-border-teal-300","pbx-border-teal-400","pbx-border-teal-500","pbx-border-teal-600","pbx-border-teal-700","pbx-border-teal-800","pbx-border-teal-900","pbx-border-cyan-50","pbx-border-cyan-100","pbx-border-cyan-200","pbx-border-cyan-300","pbx-border-cyan-400","pbx-border-cyan-500","pbx-border-cyan-600","pbx-border-cyan-700","pbx-border-cyan-800","pbx-border-cyan-900","pbx-border-sky-50","pbx-border-sky-100","pbx-border-sky-200","pbx-border-sky-300","pbx-border-sky-400","pbx-border-sky-500","pbx-border-sky-600","pbx-border-sky-700","pbx-border-sky-800","pbx-border-sky-900","pbx-border-blue-50","pbx-border-blue-100","pbx-border-blue-200","pbx-border-blue-300","pbx-border-blue-400","pbx-border-blue-500","pbx-border-blue-600","pbx-border-blue-700","pbx-border-blue-800","pbx-border-blue-900","pbx-border-indigo-50","pbx-border-indigo-100","pbx-border-indigo-200","pbx-border-indigo-300","pbx-border-indigo-400","pbx-border-indigo-500","pbx-border-indigo-600","pbx-border-indigo-700","pbx-border-indigo-800","pbx-border-indigo-900","pbx-border-violet-50","pbx-border-violet-100","pbx-border-violet-200","pbx-border-violet-300","pbx-border-violet-400","pbx-border-violet-500","pbx-border-violet-600","pbx-border-violet-700","pbx-border-violet-800","pbx-border-violet-900","pbx-border-purple-50","pbx-border-purple-100","pbx-border-purple-200","pbx-border-purple-300","pbx-border-purple-400","pbx-border-purple-500","pbx-border-purple-600","pbx-border-purple-700","pbx-border-purple-800","pbx-border-purple-900","pbx-border-fuchsia-50","pbx-border-fuchsia-100","pbx-border-fuchsia-200","pbx-border-fuchsia-300","pbx-border-fuchsia-400","pbx-border-fuchsia-500","pbx-border-fuchsia-600","pbx-border-fuchsia-700","pbx-border-fuchsia-800","pbx-border-fuchsia-900","pbx-border-pink-50","pbx-border-pink-100","pbx-border-pink-200","pbx-border-pink-300","pbx-border-pink-400","pbx-border-pink-500","pbx-border-pink-600","pbx-border-pink-700","pbx-border-pink-800","pbx-border-pink-900","pbx-border-rose-50","pbx-border-rose-100","pbx-border-rose-200","pbx-border-rose-300","pbx-border-rose-400","pbx-border-rose-500","pbx-border-rose-600","pbx-border-rose-700","pbx-border-rose-800","pbx-border-rose-900"]};let Cn;const qb=new Uint8Array(16);function Kb(){if(!Cn&&(Cn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Cn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Cn(qb)}const ke=[];for(let r=0;r<256;++r)ke.push((r+256).toString(16).slice(1));function Gb(r,e=0){return ke[r[e+0]]+ke[r[e+1]]+ke[r[e+2]]+ke[r[e+3]]+"-"+ke[r[e+4]]+ke[r[e+5]]+"-"+ke[r[e+6]]+ke[r[e+7]]+"-"+ke[r[e+8]]+ke[r[e+9]]+"-"+ke[r[e+10]]+ke[r[e+11]]+ke[r[e+12]]+ke[r[e+13]]+ke[r[e+14]]+ke[r[e+15]]}const jl={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function xa(r,e,t){if(jl.randomUUID&&!r)return jl.randomUUID();r=r||{};const o=r.random||(r.rng||Kb)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Gb(o)}const ga=function(e=200){return new Promise(t=>{setTimeout(t,e)})};class le{constructor(e){go(this,j);pe(this,"nextTick");pe(this,"containsPagebuilder");pe(this,"pageBuilderStateStore");pe(this,"getTextAreaVueModel");pe(this,"getLocalStorageItemName");pe(this,"getCurrentImage");pe(this,"getHyberlinkEnable");pe(this,"getComponents");pe(this,"getComponent");pe(this,"getElement");pe(this,"getNextSibling");pe(this,"getParentElement");pe(this,"getRestoredElement");pe(this,"getComponentArrayAddMethod");pe(this,"NoneListernesTags");pe(this,"delay");pe(this,"hasStartedEditing",!1);go(this,ra,async(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;this.pageBuilderStateStore.setMenuRight(!0);const n=o.querySelector("[selected]");n&&n.removeAttribute("selected"),t.removeAttribute("hovered"),t.setAttribute("selected",""),this.pageBuilderStateStore.setElement(t)});go(this,oa,(e,t)=>{e.preventDefault(),e.stopPropagation();const o=document.querySelector("#pagebuilder");if(!o)return;const n=o.querySelector("[hovered]");n&&n.removeAttribute("hovered"),t.hasAttribute("selected")||t.setAttribute("hovered","")});go(this,na,e=>{e.preventDefault(),e.stopPropagation();const t=document.querySelector("#pagebuilder");if(!t)return;const o=t.querySelector("[hovered]");o&&o.removeAttribute("hovered")});pe(this,"addListenersToEditableElements",async()=>{const e=new WeakSet,t=document.querySelector("#pagebuilder");t&&(await a.nextTick(),await new Promise(o=>requestAnimationFrame(o)),t.querySelectorAll("section *").forEach(o=>{if(this.isEditableElement(o)&&e&&!e.has(o)){e.add(o);const n=o;n.addEventListener("click",i=>kn(this,ra).call(this,i,n)),n.addEventListener("mouseover",i=>kn(this,oa).call(this,i,n)),n.addEventListener("mouseleave",i=>kn(this,na).call(this,i))}}))});pe(this,"handleAutoSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;if(e&&e.userSettings&&typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave!==!1){if(this.pageBuilderStateStore.getIsSaving)return;try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying auto save.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}}if(e&&!e.userSettings)try{this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300)}catch(t){console.error("Error trying saving.",t)}finally{this.pageBuilderStateStore.setIsSaving(!1)}});pe(this,"handleManualSave",async()=>{this.startEditing();const e=this.pageBuilderStateStore.getConfigPageBuilder;e&&e.userSettings&&(typeof e.userSettings.autoSave=="boolean"&&!e.userSettings.autoSave||typeof e.userSettings.autoSave=="boolean"&&e.userSettings.autoSave)&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1)),e&&!e.userSettings&&(this.pageBuilderStateStore.setIsSaving(!0),await this.saveComponentsLocalStorage(),await this.delay(300),this.pageBuilderStateStore.setIsSaving(!1))});pe(this,"ensureTextAreaHasContent",()=>{if(!this.getElement.value||typeof this.getElement.value.innerHTML!="string")return;const e=this.getElement.value,t=e.tagName;["DIV"].includes(t)&&e.tagName.toLowerCase()!=="img"&&e.textContent&&Number(e.textContent.length)===0?(e.classList.add("h-6"),e.classList.add("bg-red-50")):(e.classList.remove("h-6"),e.classList.remove("bg-red-50"))});pe(this,"handleTextInput",async e=>{var t;typeof((t=this.getElement.value)==null?void 0:t.innerHTML)=="string"&&(typeof this.getElement.value.innerHTML=="string"&&(await this.nextTick,this.getElement.value.textContent=e,this.pageBuilderStateStore.setTextAreaVueModel(this.getElement.value.innerHTML),this.getElement.value.innerHTML=e),this.ensureTextAreaHasContent())});go(this,ia,async()=>{const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=[];e.querySelectorAll("section[data-componentid]").forEach(n=>{o.push({html_code:n.outerHTML,id:n.getAttribute("data-componentid"),title:n.getAttribute("data-component-title")||"Untitled Component"})}),this.getLocalStorageItemName.value&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify({pageBuilderContentSavedAt:new Date().toISOString(),components:o})),await new Promise(n=>n())});this.nextTick=a.nextTick(),this.hasStartedEditing=!1,this.containsPagebuilder=document.querySelector("#contains-pagebuilder"),this.pageBuilderStateStore=e,this.getTextAreaVueModel=a.computed(()=>this.pageBuilderStateStore.getTextAreaVueModel),this.getLocalStorageItemName=a.computed(()=>this.pageBuilderStateStore.getLocalStorageItemName),this.getCurrentImage=a.computed(()=>this.pageBuilderStateStore.getCurrentImage),this.getHyberlinkEnable=a.computed(()=>this.pageBuilderStateStore.getHyberlinkEnable),this.getComponents=a.computed(()=>this.pageBuilderStateStore.getComponents),this.getComponent=a.computed(()=>this.pageBuilderStateStore.getComponent),this.getElement=a.computed(()=>this.pageBuilderStateStore.getElement),this.getNextSibling=a.computed(()=>this.pageBuilderStateStore.getNextSibling),this.getParentElement=a.computed(()=>this.pageBuilderStateStore.getParentElement),this.getRestoredElement=a.computed(()=>this.pageBuilderStateStore.getRestoredElement),this.getComponentArrayAddMethod=a.computed(()=>this.pageBuilderStateStore.getComponentArrayAddMethod),this.NoneListernesTags=["P","H1","H2","H3","H4","H5","H6","IFRAME","UL","OL","LI","EM","STRONG","B","A","SPAN","BLOCKQUOTE","BR"],this.delay=ga}async clearHtmlSelection(){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await J(this,j,_b).call(this)}applyPageBuilderConfig(e){this.pageBuilderStateStore.applyPageBuilderConfig(e)}isEditableElement(e){return e?!this.NoneListernesTags.includes(e.tagName):!1}cloneCompObjForDOMInsertion(e){const t={...e};if(this.containsPagebuilder&&(this.getComponentArrayAddMethod.value==="unshift"||this.getComponentArrayAddMethod.value==="push")&&(this.getComponentArrayAddMethod.value==="unshift"&&this.containsPagebuilder.scrollTo({top:0,behavior:"smooth"}),this.getComponentArrayAddMethod.value==="push")){const l=this.containsPagebuilder.scrollHeight;this.containsPagebuilder.scrollTo({top:l,behavior:"smooth"})}const n=new DOMParser().parseFromString(t.html_code||"","text/html");n.querySelectorAll("*").forEach(l=>{J(this,j,Rb).call(this,l)});const s=n.querySelector("section");return s&&(s.querySelectorAll("[class]").forEach(l=>{l.setAttribute("class",J(this,j,Dl).call(this,l.getAttribute("class")||"","pbx-"))}),s.dataset.componentid=xa(),t.title&&(s.setAttribute("title",t.title),s.setAttribute("data-component-title",t.title)),t.id=s.dataset.componentid,t.html_code=s.outerHTML),t}handleAddClasses(e){var t,o;if(typeof e=="string"&&e!==""&&!e.includes(" ")&&!((t=this.getElement.value)!=null&&t.classList.contains(e))){const n=e.trim();(o=this.getElement.value)==null||o.classList.add(n),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.setClass(e)}}handleRemoveClasses(e){var t,o;(t=this.getElement.value)!=null&&t.classList.contains(e)&&((o=this.getElement.value)==null||o.classList.remove(e),this.pageBuilderStateStore.setElement(this.getElement.value),this.pageBuilderStateStore.removeClass(e))}handleDeleteElement(){var t,o;const e=this.getElement.value;if(e){if(!(e!=null&&e.parentNode)){this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null);return}((t=e.parentElement)==null?void 0:t.tagName)!=="SECTION"&&(this.pageBuilderStateStore.setParentElement(e.parentNode),this.pageBuilderStateStore.setRestoredElement(e.outerHTML),this.pageBuilderStateStore.setNextSibling(e.nextSibling)),((o=e.parentElement)==null?void 0:o.tagName)==="SECTION"&&this.deleteSelectedComponent(),e.remove(),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null)}}async handleRestoreElement(){if(this.getRestoredElement.value&&this.getParentElement.value){const e=document.createElement("div");e.innerHTML=this.getRestoredElement.value,e.firstChild&&this.getParentElement.value&&this.getParentElement.value.insertBefore(e.firstChild,this.getNextSibling.value)}this.pageBuilderStateStore.setParentElement(null),this.pageBuilderStateStore.setRestoredElement(null),this.pageBuilderStateStore.setNextSibling(null),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null),await this.addListenersToEditableElements()}handleFontWeight(e){J(this,j,se).call(this,e,Dr.fontWeight,"setFontWeight")}handleFontFamily(e){J(this,j,se).call(this,e,Dr.fontFamily,"setFontFamily")}handleFontStyle(e){J(this,j,se).call(this,e,Dr.fontStyle,"setFontStyle")}handleVerticalPadding(e){J(this,j,se).call(this,e,_t.verticalPadding,"setFontVerticalPadding")}handleHorizontalPadding(e){J(this,j,se).call(this,e,_t.horizontalPadding,"setFontHorizontalPadding")}handleVerticalMargin(e){J(this,j,se).call(this,e,_t.verticalMargin,"setFontVerticalMargin")}handleHorizontalMargin(e){J(this,j,se).call(this,e,_t.horizontalMargin,"setFontHorizontalMargin")}handleBorderStyle(e){J(this,j,se).call(this,e,Ir.borderStyle,"setBorderStyle")}handleBorderWidth(e){J(this,j,se).call(this,e,Ir.borderWidth,"setBorderWidth")}handleBorderColor(e){J(this,j,se).call(this,e,Ir.borderColor,"setBorderColor")}handleBackgroundColor(e){J(this,j,se).call(this,e,En.backgroundColorVariables,"setBackgroundColor")}handleTextColor(e){J(this,j,se).call(this,e,En.textColorVariables,"setTextColor")}handleBorderRadiusGlobal(e){J(this,j,se).call(this,e,ut.roundedGlobal,"setBorderRadiusGlobal")}handleBorderRadiusTopLeft(e){J(this,j,se).call(this,e,ut.roundedTopLeft,"setBorderRadiusTopLeft")}handleBorderRadiusTopRight(e){J(this,j,se).call(this,e,ut.roundedTopRight,"setBorderRadiusTopRight")}handleBorderRadiusBottomleft(e){J(this,j,se).call(this,e,ut.roundedBottomLeft,"setBorderRadiusBottomleft")}handleBorderRadiusBottomRight(e){J(this,j,se).call(this,e,ut.roundedBottomRight,"setBorderRadiusBottomRight")}handleFontSizeBase(e){J(this,j,se).call(this,e,yo.fontBase,"setFontBase")}handleFontSizeDesktop(e){J(this,j,se).call(this,e,yo.fontDesktop,"setFontDesktop")}handleFontSizeTablet(e){J(this,j,se).call(this,e,yo.fontTablet,"setFontTablet")}handleFontSizeMobile(e){J(this,j,se).call(this,e,yo.fontMobile,"setFontMobile")}handleBackgroundOpacity(e){J(this,j,se).call(this,e,Sn.backgroundOpacities,"setBackgroundOpacity")}handleOpacity(e){J(this,j,se).call(this,e,Sn.opacities,"setOpacity")}deleteAllComponents(){this.pageBuilderStateStore.setComponents([])}deleteSelectedComponent(){if(!this.getComponents.value||!this.getComponent.value)return;const e=this.getComponents.value.findIndex(t=>{var o;return t.id===((o=this.getComponent.value)==null?void 0:o.id)});e!==-1&&(this.getComponents.value.splice(e,1),this.pageBuilderStateStore.setComponents(this.getComponents.value),this.pageBuilderStateStore.setComponent(null),this.pageBuilderStateStore.setElement(null))}reorderComponent(e){if(!this.getComponents.value||!this.getComponent.value||this.getComponents.value.length<=1)return;const t=this.getComponent.value,o=this.getComponents.value.findIndex(i=>i.id===t.id);if(o===-1)return;const n=o+e;n<0||n>=this.getComponents.value.length||(this.getComponents.value.splice(o,1),this.getComponents.value.splice(n,0,t))}ElOrFirstChildIsIframe(){var e,t,o;return((e=this.getElement.value)==null?void 0:e.tagName)==="IFRAME"||((o=(t=this.getElement.value)==null?void 0:t.firstElementChild)==null?void 0:o.tagName)==="IFRAME"}isSelectedElementValidText(){var o,n,i,s;let e=!1;const t=(o=this.getElement.value)==null?void 0:o.children;if(!(((n=this.getElement.value)==null?void 0:n.tagName)==="IMG"||((s=(i=this.getElement.value)==null?void 0:i.firstElementChild)==null?void 0:s.tagName)==="IFRAME")&&t)return Array.from(t).forEach(l=>{(l==null?void 0:l.tagName)==="IMG"||(l==null?void 0:l.tagName)==="DIV"?e=!1:e=!0}),e}previewCurrentDesign(){this.pageBuilderStateStore.setElement(null);const e=document.querySelector("#pagebuilder");if(!e)return;const t=a.ref([]);e.querySelectorAll("section:not(section section)").forEach(n=>{const i=n.querySelector("[hovered]");i&&i.removeAttribute("hovered");const s=n.querySelector("[selected]");s&&s.removeAttribute("selected"),t.value.push(n.outerHTML)});const o=JSON.stringify(t.value);this.pageBuilderStateStore.setCurrentLayoutPreview(o),t.value=[]}sanitizeForLocalStorage(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}updateLocalStorageItemName(){var n,i,s;const e=this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType,t=(n=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:n.resourceData,o=(s=(i=this.pageBuilderStateStore.getConfigPageBuilder)==null?void 0:i.updateOrCreate)==null?void 0:s.formName;if(e==="create"){if(o&&o.length>0){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-create-resource-${this.sanitizeForLocalStorage(o)}`);return}this.pageBuilderStateStore.setLocalStorageItemName("page-builder-create-resource");return}if(e==="update"){if(typeof o=="string"&&o.length>0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(o)}-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}if(!o||typeof o=="string"&&o.length===0){if(t&&t!=null&&!t.title&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName("page-builder-update-resource");return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(!t.id||typeof t.id=="string")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}`);return}if(t&&t!=null&&!t.title&&typeof t.title!="string"&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(String(t.id))}`);return}if(t&&t!=null&&t.title&&typeof t.title=="string"&&t.title.length>0&&(t.id||typeof t.id=="number")){this.pageBuilderStateStore.setLocalStorageItemName(`page-builder-update-resource-${this.sanitizeForLocalStorage(t.title)}-${this.sanitizeForLocalStorage(String(t.id))}`);return}}}}async saveComponentsLocalStorage(){await this.nextTick,await kn(this,ia).call(this)}async removeItemComponentsLocalStorage(){await this.nextTick,this.getLocalStorageItemName.value&&localStorage.removeItem(this.getLocalStorageItemName.value)}deleteOldPageBuilderLocalStorage(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){let e=0;const t=[],o=new Date(Date.now()-14*24*60*60*1e3);for(let n=0;n<localStorage.length;n++){const i=localStorage.key(n);if(i&&i.startsWith("page-builder-update-resource-"))try{const s=localStorage.getItem(i);if(!s)continue;const p=JSON.parse(s).pageBuilderContentSavedAt;p&&new Date(p)<o&&(e++,t.push({Number:e,Key:i,SavedAt:p}),localStorage.removeItem(i))}catch{}}t.length>0&&(console.info(`Deleted ${t.length} localStorage item(s) older than ${o} days:`),console.table(t))}}async hasLocalDraftForUpdate(){if(this.hasStartedEditing)return!1;if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{await this.delay(500);const o=JSON.parse(t),n=this.getComponents.value;return JSON.stringify(o.components)!==JSON.stringify(n)}catch{return!1}}}return!1}startEditing(){this.hasStartedEditing=!0}async resumeEditingForUpdate(){if(this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"){const e=this.getLocalStorageItemName.value;if(typeof e=="string"){const t=localStorage.getItem(e);if(t)try{const o=JSON.parse(t);o&&Array.isArray(o.components)&&(this.pageBuilderStateStore.setComponents(o.components),localStorage.removeItem(e),await a.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave())}catch(o){console.error("Failed to parse local draft:",o)}}}}getStorageItemNameForResource(){return this.getLocalStorageItemName.value}loadStoredComponentsFromStorage(){if(!this.getLocalStorageItemName.value)return!1;if(this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.getItem(this.getLocalStorageItemName.value)){const e=localStorage.getItem(this.getLocalStorageItemName.value);if(e)return e}return!1}async updateBasePrimaryImage(){this.getElement.value&&this.getCurrentImage.value&&this.getCurrentImage.value.src&&(await this.nextTick,this.pageBuilderStateStore.setBasePrimaryImage(`${this.getCurrentImage.value.src}`),await this.handleAutoSave())}setBasePrimaryImageFromCurrent(){if(!this.getElement.value)return;const e=document.createElement("div");e.innerHTML=this.getElement.value.outerHTML;const t=e.getElementsByTagName("img"),o=e.getElementsByTagName("div");if(t.length===1&&o.length===0){this.pageBuilderStateStore.setBasePrimaryImage(t[0].src);return}this.pageBuilderStateStore.setBasePrimaryImage(null)}handleHyperlink(e,t,o){var s;if(this.pageBuilderStateStore.setHyperlinkAbility(!0),!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;this.getElement.value.closest("a")!==null&&this.pageBuilderStateStore.setHyperlinkAbility(!1);const i=(s=this.getElement.value)==null?void 0:s.tagName.toUpperCase();if(i!=="P"&&i!=="H1"&&i!=="H2"&&i!=="H3"&&i!=="H4"&&i!=="H5"&&i!=="H6"&&this.pageBuilderStateStore.setHyperlinkAbility(!1),e===void 0){J(this,j,Hb).call(this);return}J(this,j,jb).call(this,e,t||null,o||!1)}async addComponent(e){try{const t=this.cloneCompObjForDOMInsertion({html_code:e.html_code,id:e.id,title:e.title});this.pageBuilderStateStore.setPushComponents({component:t,componentArrayAddMethod:this.getComponentArrayAddMethod.value||"push"}),await a.nextTick(),await this.addListenersToEditableElements(),await this.handleAutoSave()}catch(t){console.error("Error adding component:",t)}}setComponentsFromData(e){const t=e.trim();t.startsWith("[")||t.startsWith("{")?J(this,j,Il).call(this,t):t.startsWith("<")?J(this,j,Wb).call(this,t):J(this,j,Il).call(this,t)}mountComponentsToDOM(e,t){if(this.pageBuilderStateStore.setComponents([]),!this.pageBuilderStateStore.getConfigPageBuilder)return;t&&e!==void 0&&this.setComponentsFromData(e);const o=this.loadStoredComponentsFromStorage();this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="create"&&o&&this.setComponentsFromData(o),this.pageBuilderStateStore.getConfigPageBuilder&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate&&typeof this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType=="string"&&this.pageBuilderStateStore.getConfigPageBuilder.updateOrCreate.formType==="update"&&e&&this.setComponentsFromData(e)}async toggleTipTapModal(e){this.pageBuilderStateStore.setShowModalTipTap(e),e||await this.handleAutoSave()}async initializeElementStyles(){await new Promise(e=>requestAnimationFrame(e)),this.handleHyperlink(void 0,null,!1),this.handleOpacity(void 0),this.handleBackgroundOpacity(void 0),this.setBasePrimaryImageFromCurrent(),this.handleBorderStyle(void 0),this.handleBorderWidth(void 0),this.handleBorderColor(void 0),this.handleBorderRadiusGlobal(void 0),this.handleBorderRadiusTopLeft(void 0),this.handleBorderRadiusTopRight(void 0),this.handleBorderRadiusBottomleft(void 0),this.handleBorderRadiusBottomRight(void 0),this.handleFontSizeBase(void 0),this.handleFontSizeDesktop(void 0),this.handleFontSizeTablet(void 0),this.handleFontSizeMobile(void 0),this.handleFontWeight(void 0),this.handleFontFamily(void 0),this.handleFontStyle(void 0),this.handleVerticalPadding(void 0),this.handleHorizontalPadding(void 0),this.handleVerticalMargin(void 0),this.handleHorizontalMargin(void 0),this.handleBackgroundColor(void 0),this.handleTextColor(void 0),await J(this,j,Fb).call(this)}}j=new WeakSet,se=function(e,t,o){const n=this.getElement.value;if(!n)return;const i=t.find(l=>n.classList.contains(l));let s=i||"none";return e===void 0?(typeof o=="string"&&o.length>2&&this.pageBuilderStateStore[o](s),i):(typeof e=="string"&&e!=="none"?(s&&n.classList.contains(s)&&n.classList.remove(s),n.classList.add(e),s=e):typeof e=="string"&&e==="none"&&s&&(n.classList.remove(s),s=e),typeof o=="string"&&o.length>2&&(this.pageBuilderStateStore[o](s),this.pageBuilderStateStore.setElement(n)),i)},Rb=function(e){J(this,j,zb).call(this,e),e.tagName==="IMG"&&e.classList.add("smooth-transition"),e.tagName==="DIV"&&e.classList.length},zb=function(e){var t;if(e&&this.NoneListernesTags.includes(e.tagName)&&(e.previousElementSibling&&e.previousElementSibling.tagName==="IMG"||e.nextElementSibling&&e.nextElementSibling.tagName==="IMG")){const o=document.createElement("div");(t=e.parentNode)==null||t.insertBefore(o,e),o.appendChild(e)}},ra=new WeakMap,oa=new WeakMap,na=new WeakMap,_b=async function(){await new Promise(n=>requestAnimationFrame(n));const e=document.querySelector("#pagebuilder");if(!e)return;const t=e.querySelector("[hovered]");t&&t.removeAttribute("hovered");const o=e.querySelector("[selected]");o&&o.removeAttribute("selected")},Fb=async function(){var t;await new Promise(o=>requestAnimationFrame(o));const e=Array.from(((t=this.getElement.value)==null?void 0:t.classList)||[]);this.pageBuilderStateStore.setCurrentClasses(e)},ia=new WeakMap,jb=function(e,t,o){if(!this.getElement.value||!(this.getElement.value instanceof HTMLElement)||typeof this.getElement.value.closest!="function")return;const n=this.getElement.value.closest("a"),i=this.getElement.value.querySelector("a");this.pageBuilderStateStore.setHyperlinkError(null);const s=/^https?:\/\//,l=a.ref(!0);if(e===!0&&t!==null&&(l.value=s.test(t)),l.value===!1){this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError("URL is not valid");return}if(e===!0&&typeof t=="string"){if(i!==null&&t.length!==0){i.href=t,o===!0&&(i.target="_blank"),o===!1&&i.removeAttribute("target"),i.textContent=this.getElement.value.textContent,this.pageBuilderStateStore.setHyperlinkMessage("Succesfully updated element hyperlink"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}if(i===null&&t.length!==0&&n===null){const p=document.createElement("a");p.href=t,o===!0&&(p.target="_blank"),p.textContent=this.getElement.value.textContent,this.getElement.value.textContent="",this.getElement.value.appendChild(p),this.pageBuilderStateStore.setHyperlinkMessage("Successfully added hyperlink to element"),this.pageBuilderStateStore.setElementContainsHyperlink(!0);return}}if(e===!1&&t==="removeHyperlink"){const p=this.getElement.value.textContent||"",c=document.createTextNode(p);this.getElement.value.textContent="",this.getElement.value.appendChild(c),this.pageBuilderStateStore.setHyberlinkEnable(!1),this.pageBuilderStateStore.setElementContainsHyperlink(!1)}},Hb=function(){if(!this.getElement.value)return;const e=this.getElement.value.querySelector("a");if(e!==null){this.pageBuilderStateStore.setHyberlinkEnable(!0),this.pageBuilderStateStore.setElementContainsHyperlink(!0),this.pageBuilderStateStore.setHyperlinkInput(e.href),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyperlinkError(null),e.target==="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!0),e.target!=="_blank"&&this.pageBuilderStateStore.setOpenHyperlinkInNewTab(!1);return}this.pageBuilderStateStore.setElementContainsHyperlink(!1),this.pageBuilderStateStore.setHyperlinkInput(""),this.pageBuilderStateStore.setHyperlinkError(null),this.pageBuilderStateStore.setHyperlinkMessage(null),this.pageBuilderStateStore.setHyberlinkEnable(!1)},Dl=function(e,t="pbx-"){return e.split(/\s+/).map(o=>{if(!o||o.startsWith(t))return o;const n=o.split(":"),i=n.pop();return i.startsWith(t)?o:[...n,t+i].join(":")}).join(" ")},Il=function(e){try{const t=JSON.parse(e);let o=[];Array.isArray(t)?o=t:t&&Array.isArray(t.components)&&(o=t.components);let n=[];o.length>0&&(n=o.map(s=>{const c=new DOMParser().parseFromString(s.html_code,"text/html").querySelector("section");if(c){if(c.querySelectorAll("[class]").forEach(u=>{u.setAttribute("class",J(this,j,Dl).call(this,u.getAttribute("class")||"","pbx-"))}),c.hasAttribute("data-componentid"))s.id=c.getAttribute("data-componentid");else{const u=xa();c.setAttribute("data-componentid",u),s.id=u}const d=s.title||"Untitled Component";c.setAttribute("data-component-title",d),s.title=d,s.html_code=c.outerHTML}return s})),this.pageBuilderStateStore.setComponents(n);const i={pageBuilderContentSavedAt:t.pageBuilderContentSavedAt||new Date().toISOString(),components:n};this.getLocalStorageItemName.value&&typeof this.getLocalStorageItemName.value=="string"&&localStorage.setItem(this.getLocalStorageItemName.value,JSON.stringify(i))}catch(t){console.error("Error parsing JSON components:",t),this.pageBuilderStateStore.setComponents([])}},Wb=function(e){try{const n=new DOMParser().parseFromString(e,"text/html").querySelectorAll("section"),i=[];n.forEach(s=>{const l=s;l.hasAttribute("data-componentid")||l.setAttribute("data-componentid",xa());const p=l.getAttribute("data-componentid"),c=l.getAttribute("title")||l.getAttribute("data-component-title")||"Untitled Component";l.setAttribute("data-component-title",c),i.push({html_code:l.outerHTML,id:p,title:c})}),this.pageBuilderStateStore.setComponents(i)}catch(t){console.error("Error parsing HTML components:",t),this.pageBuilderStateStore.setComponents([])}};const Jb={class:"pbx-font-sans"},Yb={key:0,class:"pbx-fixed pbx-inset-0 pbx-z-40 pbx-flex pbx-items-center pbx-justify-center pbx-mx-4",role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title"},Xb={class:"pbx-h-16 pbx-flex pbx-items-center pbx-justify-between pbx-border-b pbx-border-gray-200 pbx-bg-white pbx-mb-2"},Qb={as:"h3",class:"pbx-myQuaternaryHeader pbx-my-0 pbx-py-0"},Lr=a.defineComponent({__name:"ModalBuilder",props:{title:{type:String,required:!0},showModalBuilder:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},minHeight:{type:String},maxHeight:{type:String}},emits:["closeMainModalBuilder"],setup(r,{emit:e}){const t=r,o=e,n=()=>{o("closeMainModalBuilder")},i=a.computed(()=>({sm:"lg:pbx-max-w-sm",md:"lg:pbx-max-w-md",lg:"lg:pbx-max-w-lg",xl:"lg:pbx-max-w-xl","2xl":"lg:pbx-max-w-2xl","3xl":"lg:pbx-max-w-3xl","4xl":"lg:pbx-max-w-4xl","5xl":"lg:pbx-max-w-5xl","6xl":"lg:pbx-max-w-6xl","7xl":"lg:pbx-max-w-7xl",full:"lg:pbx-max-w-full",screen:"lg:w-screen sm:pbx-max-w-none"})[t.maxWidth]);return(s,l)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[a.createElementVNode("div",Jb,[r.showModalBuilder?(a.openBlock(),a.createElementBlock("div",Yb,[a.createElementVNode("div",{class:"pbx-fixed pbx-inset-0 pbx-bg-black/50 pbx-transition-opacity",onClick:n}),a.createElementVNode("div",{class:a.normalizeClass(["pbx-relative pbx-inline-block pbx-bg-white pbx-rounded-xl pbx-text-left pbx-overflow-hidden pbx-shadow-xl pbx-transform pbx-transition-all pbx-max-w-[96vh] pbx-max-h-[98vh] pbx-overflow-y-auto pbx-w-full pbx-px-4",[i.value?i.value:"",r.minHeight?r.minHeight:"",r.maxHeight?r.maxHeight:""]])},[a.createElementVNode("div",Xb,[a.createElementVNode("h3",Qb,a.toDisplayString(r.title),1),a.createElementVNode("div",{class:"pbx-h-10 pbx-w-10 pbx-flex-end pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white hover:pbx-fill-white focus-visible:pbx-ring-0",onClick:n},l[0]||(l[0]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)]))]),a.renderSlot(s.$slots,"default")],2)])):a.createCommentVNode("",!0)])]))}}),Zb={class:"pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},$b={id:"page-builder-editor"},em=["innerHTML"],Hl={__name:"Preview",setup(r){const e=a.ref(""),t=localStorage.getItem("preview");if(t)try{const o=JSON.parse(t);e.value=Array.isArray(o)?o.join(""):""}catch(o){console.error("Error parsing preview data:",o),e.value=""}else e.value="";return(o,n)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",Zb,[a.createElementVNode("div",$b,[a.createElementVNode("div",{class:"",innerHTML:e.value},null,8,em)])])]))}},tm={class:"pbx-font-sans pbx-w-full pbx-relative pbx-inline-block pbx-align-bottom pbx-text-left pbx-overflow-hidden pbx-transform pbx-transition-all sm:pbx-align-middle"},rm=["innerHTML"],om={key:0,class:"pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center pbx-border-t pbx-border-gray-200 pbx-mt-4"},nm={key:1},im={key:0},am=["disabled"],sm={key:1},lm={key:2},pm={key:0},cm={key:0},dm=["disabled"],um={key:1},bm={key:1},mm={key:0},fm=["disabled"],hm={key:1},xm={key:2},gm={key:0},ym=["disabled"],wm={key:1},vm={key:3},km={key:0},Em=["disabled"],Sm={key:1},Cm={key:1,class:"pbx-flex pbx-items-center pbx-my-2 pbx-py-4 pbx-px-2 pbx-justify-end"},Rr={__name:"DynamicModalBuilder",props:{showDynamicModalBuilder:{type:Boolean,default:!1,required:!0},simpleModal:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},isLoading:{type:Boolean,default:!1,required:!1},disabledWhichButton:{type:String,default:"",required:!1},maxWidth:{type:String,required:!1,default:"2xl"},gridColumnAmount:{type:Number,required:!0},type:{type:String,required:!0},title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String}},emits:["firstModalButtonFunctionDynamicModalBuilder","secondModalButtonFunctionDynamicModalBuilder","thirdModalButtonFunctionDynamicModalBuilder"],setup(r,{emit:e}){const t=e,o=function(){t("firstModalButtonFunctionDynamicModalBuilder")},n=function(){t("secondModalButtonFunctionDynamicModalBuilder")},i=function(){t("thirdModalButtonFunctionDynamicModalBuilder")};return(s,l)=>(a.openBlock(),a.createBlock(Lr,{title:r.title,showModalBuilder:r.showDynamicModalBuilder,onCloseMainModalBuilder:o,maxWidth:r.maxWidth},{default:a.withCtx(()=>[a.renderSlot(s.$slots,"content"),a.createElementVNode("div",tm,[a.createElementVNode("div",{class:a.normalizeClass({"pbx-pr-4 pbx-pb-4":r.simpleModal!==!0})},[r.simpleModal!==!0?(a.openBlock(),a.createElementBlock("div",{key:0,innerHTML:r.description,class:"pbx-myPrimaryParagraph pbx-mb-6"},null,8,rm)):a.createCommentVNode("",!0),a.renderSlot(s.$slots,"header"),a.renderSlot(s.$slots,"default")],2)]),r.simpleModal!==!0&&!r.isLoading?(a.openBlock(),a.createElementBlock("div",om,[a.renderSlot(s.$slots,"footer"),a.createElementVNode("div",{class:a.normalizeClass([{"sm:pbx-grid-cols-1":r.gridColumnAmount===1,"sm:pbx-grid-cols-2":r.gridColumnAmount===2,"sm:pbx-grid-cols-3":r.gridColumnAmount===3},"sm:pbx-items-end sm:pbx-justify-end pbx-flex sm:pbx-flex-row pbx-flex-col pbx-myPrimaryGap sm:pbx-w-5/6 pbx-w-full"])},[r.firstButtonText?(a.openBlock(),a.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"pbx-mySecondaryButton",type:"button",onClick:o},a.toDisplayString(r.firstButtonText),513)):a.createCommentVNode("",!0),r.secondButtonText?(a.openBlock(),a.createElementBlock("div",nm,[r.disabled&&r.disabledWhichButton==="secondButtonBuilder"?(a.openBlock(),a.createElementBlock("div",im,[a.createElementVNode("button",{class:a.normalizeClass(["pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-yellow-300 hover:pbx-bg-yellow-400 pbx-text-myPrimaryDarkGrayColor hover:pbx-text-myPrimaryDarkGrayColor focus:pbx-ring-yellow-400 pbx-w-full",{"pbx-opacity-25 pbx-cursor-default":r.disabled}]),disabled:r.disabled,type:"button",onClick:n},[a.createElementVNode("div",null,[a.createVNode(a.Transition,{name:"bounce"},{default:a.withCtx(()=>l[0]||(l[0]=[a.createElementVNode("div",{role:"status",class:"pbx-flex pbx-items-center"},[a.createElementVNode("svg",{"aria-hidden":"true",class:"pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[0]})]),l[1]||(l[1]=a.createElementVNode("div",null,"Loading..",-1))],10,am)])):a.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="secondButtonBuilder"?(a.openBlock(),a.createElementBlock("div",sm,[a.createElementVNode("button",{class:"pbx-myPrimaryButton pbx-bg-yellow-300 hover:pbx-bg-yellow-400 pbx-text-myPrimaryDarkGrayColor hover:pbx-text-myPrimaryDarkGrayColor focus:pbx-ring-yellow-400 pbx-w-full",type:"button",onClick:n},a.toDisplayString(r.secondButtonText),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),r.thirdButtonText?(a.openBlock(),a.createElementBlock("div",lm,[r.type==="default"?(a.openBlock(),a.createElementBlock("div",pm,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",cm,[a.createElementVNode("button",{class:a.normalizeClass(["pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full",{"pbx-opacity-25 pbx-cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[a.createElementVNode("div",null,[a.createVNode(a.Transition,{name:"bounce"},{default:a.withCtx(()=>l[2]||(l[2]=[a.createElementVNode("div",{role:"status",class:"pbx-flex pbx-items-center"},[a.createElementVNode("svg",{"aria-hidden":"true",class:"pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[2]})]),l[3]||(l[3]=a.createElementVNode("div",null,"Loading..",-1))],10,dm)])):a.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",um,[a.createElementVNode("button",{class:"pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full",type:"button",onClick:i},a.toDisplayString(r.thirdButtonText),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),r.type==="success"?(a.openBlock(),a.createElementBlock("div",bm,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",mm,[a.createElementVNode("button",{class:a.normalizeClass(["pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full",{"pbx-opacity-25 pbx-cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[a.createElementVNode("div",null,[a.createVNode(a.Transition,{name:"bounce"},{default:a.withCtx(()=>l[4]||(l[4]=[a.createElementVNode("div",{role:"status",class:"pbx-flex pbx-items-center"},[a.createElementVNode("svg",{"aria-hidden":"true",class:"pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[4]})]),l[5]||(l[5]=a.createElementVNode("div",null,"Loading..",-1))],10,fm)])):a.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",hm,[a.createElementVNode("button",{class:"pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full",type:"button",onClick:i},a.toDisplayString(r.thirdButtonText),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),r.type==="warning"?(a.openBlock(),a.createElementBlock("div",xm,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",gm,[a.createElementVNode("button",{class:a.normalizeClass(["pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryLinkColor focus-visible:pbx-ring-myPrimaryLinkColor focus:pbx-ring-myPrimaryLinkColor hover:pbx-bg-myPrimaryLinkColor pbx-w-full",{"pbx-opacity-25 pbx-cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[a.createElementVNode("div",null,[a.createVNode(a.Transition,{name:"bounce"},{default:a.withCtx(()=>l[6]||(l[6]=[a.createElementVNode("div",{role:"status",class:"pbx-flex pbx-items-center"},[a.createElementVNode("svg",{"aria-hidden":"true",class:"pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[6]})]),l[7]||(l[7]=a.createElementVNode("div",null,"Loading..",-1))],10,ym)])):a.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",wm,[a.createElementVNode("button",{class:"pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryErrorColor hover:pbx-bg-red-600 pbx-text-white focus:pbx-ring-myPrimaryErrorColor pbx-w-full",type:"button",onClick:i},a.toDisplayString(r.thirdButtonText),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),r.type==="danger"||r.type==="delete"?(a.openBlock(),a.createElementBlock("div",vm,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",km,[a.createElementVNode("button",{class:a.normalizeClass(["pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryErrorColor hover:pbx-bg-red-600 pbx-text-white focus:pbx-ring-myPrimaryErrorColor pbx-w-full",{"pbx-opacity-25 pbx-cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[a.createElementVNode("div",null,[a.createVNode(a.Transition,{name:"bounce"},{default:a.withCtx(()=>l[8]||(l[8]=[a.createElementVNode("div",{role:"status",class:"pbx-flex pbx-items-center"},[a.createElementVNode("svg",{"aria-hidden":"true",class:"pbx-w-4 pbx-h-4 pbx-animate-spin pbx-text-white-600 pbx-fill-gray-800 pbx-flex pbx-items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[a.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[8]})]),l[9]||(l[9]=a.createElementVNode("div",null,"Loading..",-1))],10,Em)])):a.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(a.openBlock(),a.createElementBlock("div",Sm,[a.createElementVNode("button",{class:"pbx-flex pbx-items-center pbx-gap-2 pbx-myPrimaryButton pbx-bg-myPrimaryErrorColor hover:pbx-bg-red-600 pbx-text-white focus:pbx-ring-myPrimaryErrorColor pbx-w-full",type:"button",onClick:i},a.toDisplayString(r.thirdButtonText),1)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)],2)])):a.createCommentVNode("",!0),r.isLoading?(a.openBlock(),a.createElementBlock("div",Cm,l[10]||(l[10]=[a.createElementVNode("div",{class:"pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]"},[a.createElementVNode("span",{class:"!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]"},"Loading...")],-1)]))):a.createCommentVNode("",!0)]),_:3},8,["title","showModalBuilder","maxWidth"]))}};function Nn(r,e,t){return Array.isArray(r)?(r.length=Math.max(r.length,e),r.splice(e,1,t),t):(r[e]=t,t)}function ya(r,e){if(Array.isArray(r)){r.splice(e,1);return}delete r[e]}function Nm(){return Wl().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wl(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Bm=typeof Proxy=="function",Mm="devtools-plugin:setup",Tm="plugin:settings:set";let zr,wa;function Om(){var r;return zr!==void 0||(typeof window<"u"&&window.performance?(zr=!0,wa=window.performance):typeof globalThis<"u"&&(!((r=globalThis.perf_hooks)===null||r===void 0)&&r.performance)?(zr=!0,wa=globalThis.perf_hooks.performance):zr=!1),zr}function Vm(){return Om()?wa.now():Date.now()}class Pm{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const o={};if(e.settings)for(const s in e.settings){const l=e.settings[s];o[s]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},o);try{const s=localStorage.getItem(n),l=JSON.parse(s);Object.assign(i,l)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(n,JSON.stringify(s))}catch{}i=s},now(){return Vm()}},t&&t.on(Tm,(s,l)=>{s===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(s,l)=>this.target?this.target.on[l]:(...p)=>{this.onQueue.push({method:l,args:p})}}),this.proxiedTarget=new Proxy({},{get:(s,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...p)=>(this.targetQueue.push({method:l,args:p,resolve:()=>{}}),this.fallbacks[l](...p)):(...p)=>new Promise(c=>{this.targetQueue.push({method:l,args:p,resolve:c})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Ul(r,e){const t=r,o=Wl(),n=Nm(),i=Bm&&t.enableEarlyProxy;if(n&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))n.emit(Mm,r,e);else{const s=i?new Pm(t,n):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:s}),s&&e(s.proxiedTarget)}}/*!
|
|
2
2
|
* pinia v2.3.1
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/let wo;const
|
|
6
|
-
${
|
|
7
|
-
Only state can be modified.`);
|
|
5
|
+
*/let wo;const vo=r=>wo=r,ql=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function cr(r){return r&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&typeof r.toJSON!="function"}var bt;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(bt||(bt={}));const Ft=typeof window<"u",Kl=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Am(r,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(r.type)?new Blob(["\uFEFF",r],{type:r.type}):r}function va(r,e,t){const o=new XMLHttpRequest;o.open("GET",r),o.responseType="blob",o.onload=function(){Yl(o.response,e,t)},o.onerror=function(){console.error("could not download file")},o.send()}function Gl(r){const e=new XMLHttpRequest;e.open("HEAD",r,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Bn(r){try{r.dispatchEvent(new MouseEvent("click"))}catch{const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),r.dispatchEvent(t)}}const Mn=typeof navigator=="object"?navigator:{userAgent:""},Jl=/Macintosh/.test(Mn.userAgent)&&/AppleWebKit/.test(Mn.userAgent)&&!/Safari/.test(Mn.userAgent),Yl=Ft?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Jl?Dm:"msSaveOrOpenBlob"in Mn?Im:Lm:()=>{};function Dm(r,e="download",t){const o=document.createElement("a");o.download=e,o.rel="noopener",typeof r=="string"?(o.href=r,o.origin!==location.origin?Gl(o.href)?va(r,e,t):(o.target="_blank",Bn(o)):Bn(o)):(o.href=URL.createObjectURL(r),setTimeout(function(){URL.revokeObjectURL(o.href)},4e4),setTimeout(function(){Bn(o)},0))}function Im(r,e="download",t){if(typeof r=="string")if(Gl(r))va(r,e,t);else{const o=document.createElement("a");o.href=r,o.target="_blank",setTimeout(function(){Bn(o)})}else navigator.msSaveOrOpenBlob(Am(r,t),e)}function Lm(r,e,t,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof r=="string")return va(r,e,t);const n=r.type==="application/octet-stream",i=/constructor/i.test(String(Kl.HTMLElement))||"safari"in Kl,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i||Jl)&&typeof FileReader<"u"){const l=new FileReader;l.onloadend=function(){let p=l.result;if(typeof p!="string")throw o=null,new Error("Wrong reader.result type");p=s?p:p.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=p:location.assign(p),o=null},l.readAsDataURL(r)}else{const l=URL.createObjectURL(r);o?o.location.assign(l):location.href=l,o=null,setTimeout(function(){URL.revokeObjectURL(l)},4e4)}}function he(r,e){const t="🍍 "+r;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(t,e):e==="error"?console.error(t):e==="warn"?console.warn(t):console.log(t)}function ka(r){return"_a"in r&&"install"in r}function Xl(){if(!("clipboard"in navigator))return he("Your browser doesn't support the Clipboard API","error"),!0}function Ql(r){return r instanceof Error&&r.message.toLowerCase().includes("document is not focused")?(he('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Rm(r){if(!Xl())try{await navigator.clipboard.writeText(JSON.stringify(r.state.value)),he("Global state copied to clipboard.")}catch(e){if(Ql(e))return;he("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function zm(r){if(!Xl())try{Zl(r,JSON.parse(await navigator.clipboard.readText())),he("Global state pasted from clipboard.")}catch(e){if(Ql(e))return;he("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function _m(r){try{Yl(new Blob([JSON.stringify(r.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){he("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let St;function Fm(){St||(St=document.createElement("input"),St.type="file",St.accept=".json");function r(){return new Promise((e,t)=>{St.onchange=async()=>{const o=St.files;if(!o)return e(null);const n=o.item(0);return e(n?{text:await n.text(),file:n}:null)},St.oncancel=()=>e(null),St.onerror=t,St.click()})}return r}async function jm(r){try{const t=await Fm()();if(!t)return;const{text:o,file:n}=t;Zl(r,JSON.parse(o)),he(`Global state imported from "${n.name}".`)}catch(e){he("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function Zl(r,e){for(const t in e){const o=r.state.value[t];o?Object.assign(o,e[t]):r.state.value[t]=e[t]}}function at(r){return{_custom:{display:r}}}const $l="🍍 Pinia (root)",Tn="_root";function Hm(r){return ka(r)?{id:Tn,label:$l}:{id:r.$id,label:r.$id}}function Wm(r){if(ka(r)){const t=Array.from(r._s.keys()),o=r._s;return{state:t.map(i=>({editable:!0,key:i,value:r.state.value[i]})),getters:t.filter(i=>o.get(i)._getters).map(i=>{const s=o.get(i);return{editable:!1,key:i,value:s._getters.reduce((l,p)=>(l[p]=s[p],l),{})}})}}const e={state:Object.keys(r.$state).map(t=>({editable:!0,key:t,value:r.$state[t]}))};return r._getters&&r._getters.length&&(e.getters=r._getters.map(t=>({editable:!1,key:t,value:r[t]}))),r._customProperties.size&&(e.customProperties=Array.from(r._customProperties).map(t=>({editable:!0,key:t,value:r[t]}))),e}function Um(r){return r?Array.isArray(r)?r.reduce((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:at(r.type),key:at(r.key),oldValue:r.oldValue,newValue:r.newValue}:{}}function qm(r){switch(r){case bt.direct:return"mutation";case bt.patchFunction:return"$patch";case bt.patchObject:return"$patch";default:return"unknown"}}let _r=!0;const On=[],dr="pinia:mutations",Me="pinia",{assign:Km}=Object,Vn=r=>"🍍 "+r;function Gm(r,e){Ul({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:On,app:r},t=>{typeof t.now!="function"&&he("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),t.addTimelineLayer({id:dr,label:"Pinia 🍍",color:15064968}),t.addInspector({id:Me,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Rm(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await zm(e),t.sendInspectorTree(Me),t.sendInspectorState(Me)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{_m(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await jm(e),t.sendInspectorTree(Me),t.sendInspectorState(Me)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:o=>{const n=e._s.get(o);n?typeof n.$reset!="function"?he(`Cannot reset "${o}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),he(`Store "${o}" reset.`)):he(`Cannot reset "${o}" store because it wasn't found.`,"warn")}}]}),t.on.inspectComponent((o,n)=>{const i=o.componentInstance&&o.componentInstance.proxy;if(i&&i._pStores){const s=o.componentInstance.proxy._pStores;Object.values(s).forEach(l=>{o.instanceData.state.push({type:Vn(l.$id),key:"state",editable:!0,value:l._isOptionsAPI?{_custom:{value:a.toRaw(l.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>l.$reset()}]}}:Object.keys(l.$state).reduce((p,c)=>(p[c]=l.$state[c],p),{})}),l._getters&&l._getters.length&&o.instanceData.state.push({type:Vn(l.$id),key:"getters",editable:!1,value:l._getters.reduce((p,c)=>{try{p[c]=l[c]}catch(d){p[c]=d}return p},{})})})}}),t.on.getInspectorTree(o=>{if(o.app===r&&o.inspectorId===Me){let n=[e];n=n.concat(Array.from(e._s.values())),o.rootNodes=(o.filter?n.filter(i=>"$id"in i?i.$id.toLowerCase().includes(o.filter.toLowerCase()):$l.toLowerCase().includes(o.filter.toLowerCase())):n).map(Hm)}}),globalThis.$pinia=e,t.on.getInspectorState(o=>{if(o.app===r&&o.inspectorId===Me){const n=o.nodeId===Tn?e:e._s.get(o.nodeId);if(!n)return;n&&(o.nodeId!==Tn&&(globalThis.$store=a.toRaw(n)),o.state=Wm(n))}}),t.on.editInspectorState((o,n)=>{if(o.app===r&&o.inspectorId===Me){const i=o.nodeId===Tn?e:e._s.get(o.nodeId);if(!i)return he(`store "${o.nodeId}" not found`,"error");const{path:s}=o;ka(i)?s.unshift("state"):(s.length!==1||!i._customProperties.has(s[0])||s[0]in i.$state)&&s.unshift("$state"),_r=!1,o.set(i,s,o.state.value),_r=!0}}),t.on.editComponentState(o=>{if(o.type.startsWith("🍍")){const n=o.type.replace(/^🍍\s*/,""),i=e._s.get(n);if(!i)return he(`store "${n}" not found`,"error");const{path:s}=o;if(s[0]!=="state")return he(`Invalid path for store "${n}":
|
|
6
|
+
${s}
|
|
7
|
+
Only state can be modified.`);s[0]="$state",_r=!1,o.set(i,s,o.state.value),_r=!0}})})}function Jm(r,e){On.includes(Vn(e.$id))||On.push(Vn(e.$id)),Ul({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:On,app:r,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},t=>{const o=typeof t.now=="function"?t.now.bind(t):Date.now;e.$onAction(({after:s,onError:l,name:p,args:c})=>{const d=ep++;t.addTimelineEvent({layerId:dr,event:{time:o(),title:"🛫 "+p,subtitle:"start",data:{store:at(e.$id),action:at(p),args:c},groupId:d}}),s(u=>{jt=void 0,t.addTimelineEvent({layerId:dr,event:{time:o(),title:"🛬 "+p,subtitle:"end",data:{store:at(e.$id),action:at(p),args:c,result:u},groupId:d}})}),l(u=>{jt=void 0,t.addTimelineEvent({layerId:dr,event:{time:o(),logType:"error",title:"💥 "+p,subtitle:"end",data:{store:at(e.$id),action:at(p),args:c,error:u},groupId:d}})})},!0),e._customProperties.forEach(s=>{a.watch(()=>a.unref(e[s]),(l,p)=>{t.notifyComponentUpdate(),t.sendInspectorState(Me),_r&&t.addTimelineEvent({layerId:dr,event:{time:o(),title:"Change",subtitle:s,data:{newValue:l,oldValue:p},groupId:jt}})},{deep:!0})}),e.$subscribe(({events:s,type:l},p)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(Me),!_r)return;const c={time:o(),title:qm(l),data:Km({store:at(e.$id)},Um(s)),groupId:jt};l===bt.patchFunction?c.subtitle="⤵️":l===bt.patchObject?c.subtitle="🧩":s&&!Array.isArray(s)&&(c.subtitle=s.type),s&&(c.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:s}}),t.addTimelineEvent({layerId:dr,event:c})},{detached:!0,flush:"sync"});const n=e._hotUpdate;e._hotUpdate=a.markRaw(s=>{n(s),t.addTimelineEvent({layerId:dr,event:{time:o(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:at(e.$id),info:at("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(Me),t.sendInspectorState(Me)});const{$dispose:i}=e;e.$dispose=()=>{i(),t.notifyComponentUpdate(),t.sendInspectorTree(Me),t.sendInspectorState(Me),t.getSettings().logStoreChanges&&he(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(Me),t.sendInspectorState(Me),t.getSettings().logStoreChanges&&he(`"${e.$id}" store installed 🆕`)})}let ep=0,jt;function tp(r,e,t){const o=e.reduce((n,i)=>(n[i]=a.toRaw(r)[i],n),{});for(const n in o)r[n]=function(){const i=ep,s=t?new Proxy(r,{get(...p){return jt=i,Reflect.get(...p)},set(...p){return jt=i,Reflect.set(...p)}}):r;jt=i;const l=o[n].apply(s,arguments);return jt=void 0,l}}function Ym({app:r,store:e,options:t}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!t.state,!e._p._testing){tp(e,Object.keys(t.actions),e._isOptionsAPI);const o=e._hotUpdate;a.toRaw(e)._hotUpdate=function(n){o.apply(this,arguments),tp(e,Object.keys(n._hmrPayload.actions),!!e._isOptionsAPI)}}Jm(r,e)}}function rp(){const r=a.effectScope(!0),e=r.run(()=>a.ref({}));let t=[],o=[];const n=a.markRaw({install(i){vo(n),n._a=i,i.provide(ql,n),i.config.globalProperties.$pinia=n,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft&&Gm(i,n),o.forEach(s=>t.push(s)),o=[]},use(i){return this._a?t.push(i):o.push(i),this},_p:t,_a:null,_e:r,_s:new Map,state:e});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft&&typeof Proxy<"u"&&n.use(Ym),n}function op(r,e){for(const t in e){const o=e[t];if(!(t in r))continue;const n=r[t];cr(n)&&cr(o)&&!a.isRef(o)&&!a.isReactive(o)?r[t]=op(n,o):r[t]=o}return r}const np=()=>{};function ip(r,e,t,o=np){r.push(e);const n=()=>{const i=r.indexOf(e);i>-1&&(r.splice(i,1),o())};return!t&&a.getCurrentScope()&&a.onScopeDispose(n),n}function Fr(r,...e){r.slice().forEach(t=>{t(...e)})}const Xm=r=>r(),ap=Symbol(),Ea=Symbol();function Sa(r,e){r instanceof Map&&e instanceof Map?e.forEach((t,o)=>r.set(o,t)):r instanceof Set&&e instanceof Set&&e.forEach(r.add,r);for(const t in e){if(!e.hasOwnProperty(t))continue;const o=e[t],n=r[t];cr(n)&&cr(o)&&r.hasOwnProperty(t)&&!a.isRef(o)&&!a.isReactive(o)?r[t]=Sa(n,o):r[t]=o}return r}const Qm=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Zm(r){return!cr(r)||!r.hasOwnProperty(Qm)}const{assign:Je}=Object;function sp(r){return!!(a.isRef(r)&&r.effect)}function lp(r,e,t,o){const{state:n,actions:i,getters:s}=e,l=t.state.value[r];let p;function c(){!l&&(process.env.NODE_ENV==="production"||!o)&&(t.state.value[r]=n?n():{});const d=process.env.NODE_ENV!=="production"&&o?a.toRefs(a.ref(n?n():{}).value):a.toRefs(t.state.value[r]);return Je(d,i,Object.keys(s||{}).reduce((u,b)=>(process.env.NODE_ENV!=="production"&&b in d&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${b}" in store "${r}".`),u[b]=a.markRaw(a.computed(()=>{vo(t);const m=t._s.get(r);return s[b].call(m,m)})),u),{}))}return p=Ca(r,c,e,t,o,!0),p}function Ca(r,e,t={},o,n,i){let s;const l=Je({actions:{}},t);if(process.env.NODE_ENV!=="production"&&!o._e.active)throw new Error("Pinia destroyed");const p={deep:!0};process.env.NODE_ENV!=="production"&&(p.onTrigger=B=>{c?m=B:c==!1&&!C._hotUpdating&&(Array.isArray(m)?m.push(B):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let c,d,u=[],b=[],m;const f=o.state.value[r];!i&&!f&&(process.env.NODE_ENV==="production"||!n)&&(o.state.value[r]={});const h=a.ref({});let x;function y(B){let E;c=d=!1,process.env.NODE_ENV!=="production"&&(m=[]),typeof B=="function"?(B(o.state.value[r]),E={type:bt.patchFunction,storeId:r,events:m}):(Sa(o.state.value[r],B),E={type:bt.patchObject,payload:B,storeId:r,events:m});const P=x=Symbol();a.nextTick().then(()=>{x===P&&(c=!0)}),d=!0,Fr(u,E,o.state.value[r])}const w=i?function(){const{state:E}=t,P=E?E():{};this.$patch(_=>{Je(_,P)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${r}" is built using the setup syntax and does not implement $reset().`)}:np;function v(){s.stop(),u=[],b=[],o._s.delete(r)}const g=(B,E="")=>{if(ap in B)return B[Ea]=E,B;const P=function(){vo(o);const _=Array.from(arguments),ee=[],re=[];function G(ne){ee.push(ne)}function z(ne){re.push(ne)}Fr(b,{args:_,name:P[Ea],store:C,after:G,onError:z});let Q;try{Q=B.apply(this&&this.$id===r?this:C,_)}catch(ne){throw Fr(re,ne),ne}return Q instanceof Promise?Q.then(ne=>(Fr(ee,ne),ne)).catch(ne=>(Fr(re,ne),Promise.reject(ne))):(Fr(ee,Q),Q)};return P[ap]=!0,P[Ea]=E,P},S=a.markRaw({actions:{},getters:{},state:[],hotState:h}),k={_p:o,$id:r,$onAction:ip.bind(null,b),$patch:y,$reset:w,$subscribe(B,E={}){const P=ip(u,B,E.detached,()=>_()),_=s.run(()=>a.watch(()=>o.state.value[r],ee=>{(E.flush==="sync"?d:c)&&B({storeId:r,type:bt.direct,events:m},ee)},Je({},p,E)));return P},$dispose:v},C=a.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft?Je({_hmrPayload:S,_customProperties:a.markRaw(new Set)},k):k);o._s.set(r,C);const D=(o._a&&o._a.runWithContext||Xm)(()=>o._e.run(()=>(s=a.effectScope()).run(()=>e({action:g}))));for(const B in D){const E=D[B];if(a.isRef(E)&&!sp(E)||a.isReactive(E))process.env.NODE_ENV!=="production"&&n?Nn(h.value,B,a.toRef(D,B)):i||(f&&Zm(E)&&(a.isRef(E)?E.value=f[B]:Sa(E,f[B])),o.state.value[r][B]=E),process.env.NODE_ENV!=="production"&&S.state.push(B);else if(typeof E=="function"){const P=process.env.NODE_ENV!=="production"&&n?E:g(E,B);D[B]=P,process.env.NODE_ENV!=="production"&&(S.actions[B]=E),l.actions[B]=E}else process.env.NODE_ENV!=="production"&&sp(E)&&(S.getters[B]=i?t.getters[B]:E,Ft&&(D._getters||(D._getters=a.markRaw([]))).push(B))}if(Je(C,D),Je(a.toRaw(C),D),Object.defineProperty(C,"$state",{get:()=>process.env.NODE_ENV!=="production"&&n?h.value:o.state.value[r],set:B=>{if(process.env.NODE_ENV!=="production"&&n)throw new Error("cannot set hotState");y(E=>{Je(E,B)})}}),process.env.NODE_ENV!=="production"&&(C._hotUpdate=a.markRaw(B=>{C._hotUpdating=!0,B._hmrPayload.state.forEach(E=>{if(E in C.$state){const P=B.$state[E],_=C.$state[E];typeof P=="object"&&cr(P)&&cr(_)?op(P,_):B.$state[E]=_}Nn(C,E,a.toRef(B.$state,E))}),Object.keys(C.$state).forEach(E=>{E in B.$state||ya(C,E)}),c=!1,d=!1,o.state.value[r]=a.toRef(B._hmrPayload,"hotState"),d=!0,a.nextTick().then(()=>{c=!0});for(const E in B._hmrPayload.actions){const P=B[E];Nn(C,E,g(P,E))}for(const E in B._hmrPayload.getters){const P=B._hmrPayload.getters[E],_=i?a.computed(()=>(vo(o),P.call(C,C))):P;Nn(C,E,_)}Object.keys(C._hmrPayload.getters).forEach(E=>{E in B._hmrPayload.getters||ya(C,E)}),Object.keys(C._hmrPayload.actions).forEach(E=>{E in B._hmrPayload.actions||ya(C,E)}),C._hmrPayload=B._hmrPayload,C._getters=B._getters,C._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft){const B={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(E=>{Object.defineProperty(C,E,Je({value:C[E]},B))})}return o._p.forEach(B=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&Ft){const E=s.run(()=>B({store:C,app:o._a,pinia:o,options:l}));Object.keys(E||{}).forEach(P=>C._customProperties.add(P)),Je(C,E)}else Je(C,s.run(()=>B({store:C,app:o._a,pinia:o,options:l})))}),process.env.NODE_ENV!=="production"&&C.$state&&typeof C.$state=="object"&&typeof C.$state.constructor=="function"&&!C.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
|
|
8
8
|
state: () => new MyClass()
|
|
9
|
-
Found in store "${C.$id}".`),f&&i&&t.hydrate&&t.hydrate(C.$state,f),
|
|
9
|
+
Found in store "${C.$id}".`),f&&i&&t.hydrate&&t.hydrate(C.$state,f),c=!0,d=!0,C}/*! #__NO_SIDE_EFFECTS__ */function $m(r,e,t){let o,n;const i=typeof e=="function";o=r,n=i?t:e;function s(l,p){const c=a.hasInjectionContext();if(l=(process.env.NODE_ENV==="test"&&wo&&wo._testing?null:l)||(c?a.inject(ql,null):null),l&&vo(l),process.env.NODE_ENV!=="production"&&!wo)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
10
10
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
11
|
-
This will fail in production.`);l=wo,l._s.has(o)||(i?Ca(o,e,n,l):ac(o,n,l),process.env.NODE_ENV!=="production"&&(a._pinia=l));const u=l._s.get(o);if(process.env.NODE_ENV!=="production"&&c){const p="__hot:"+o,m=i?Ca(p,e,n,l,!0):ac(p,Ge({},n),l,!0);c._hotUpdate(m),delete l.state.value[p],l._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ft){const p=s.getCurrentInstance();if(p&&p.proxy&&!c){const m=p.proxy,h="_pStores"in m?m._pStores:m._pStores={};h[o]=u}}return u}return a.$id=o,a}const sc=Sh("pageBuilderState",{state:()=>({componentArrayAddMethod:null,localStorageItemName:null,showModalTipTap:!1,menuRight:!0,borderStyle:null,borderWidth:null,borderColor:null,borderRadiusGlobal:null,borderRadiusTopLeft:null,borderRadiusTopRight:null,borderRadiusBottomleft:null,borderRadiusBottomRight:null,elementContainsHyperlink:null,hyperlinkAbility:null,hyperlinkInput:null,hyperlinkMessage:null,hyperlinkError:null,hyberlinkEnable:!1,openHyperlinkinkInNewTab:null,opacity:null,backgroundOpacity:null,textAreaVueModel:null,nextSibling:null,parentElement:null,restoredElement:null,currentClasses:[],fontVerticalPadding:null,fontHorizontalPadding:null,fontVerticalMargin:null,fontHorizontalMargin:null,fontStyle:null,fontFamily:null,fontWeight:null,fontBase:null,fontDesktop:null,fontTablet:null,fontMobile:null,backgroundColor:null,textColor:null,element:null,component:null,components:[],basePrimaryImage:null,configPageBuilder:null,currentImage:{src:""},currentPreviewImage:null,isSaving:!1}),getters:{getComponentArrayAddMethod(r){return r.componentArrayAddMethod},getLocalStorageItemName(r){return r.localStorageItemName},getShowModalTipTap(r){return r.showModalTipTap},getMenuRight(r){return r.menuRight},getBorderStyle(r){return r.borderStyle},getBorderWidth(r){return r.borderWidth},getBorderColor(r){return r.borderColor},getBorderRadiusGlobal(r){return r.borderRadiusGlobal},getBorderRadiusTopLeft(r){return r.borderRadiusTopLeft},getBorderRadiusTopRight(r){return r.borderRadiusTopRight},getBorderRadiusBottomleft(r){return r.borderRadiusBottomleft},getBorderRadiusBottomRight(r){return r.borderRadiusBottomRight},getElementContainsHyperlink(r){return r.elementContainsHyperlink},getHyperlinkAbility(r){return r.hyperlinkAbility},getHyperlinkInput(r){return r.hyperlinkInput},getHyperlinkMessage(r){return r.hyperlinkMessage},getHyperlinkError(r){return r.hyperlinkError},getHyberlinkEnable(r){return r.hyberlinkEnable},getOpenHyperlinkInNewTab(r){return r.openHyperlinkinkInNewTab},getOpacity(r){return r.opacity},getBackgroundOpacity(r){return r.backgroundOpacity},getTextAreaVueModel(r){return r.textAreaVueModel},getNextSibling(r){return r.nextSibling},getParentElement(r){return r.parentElement},getRestoredElement(r){return r.restoredElement},getCurrentClasses(r){return r.currentClasses},getFontStyle(r){return r.fontStyle},getFontVerticalPadding(r){return r.fontVerticalPadding},getFontHorizontalPadding(r){return r.fontHorizontalPadding},getFontVerticalMargin(r){return r.fontVerticalMargin},getFontHorizontalMargin(r){return r.fontHorizontalMargin},getFontFamily(r){return r.fontFamily},getFontWeight(r){return r.fontWeight},getFontBase(r){return r.fontBase},getFontDesktop(r){return r.fontDesktop},getFontTablet(r){return r.fontTablet},getFontMobile(r){return r.fontMobile},getBackgroundColor(r){return r.backgroundColor},getTextColor(r){return r.textColor},getElement(r){return r.element},getComponent(r){return r.component},getComponents(r){return r.components},getBasePrimaryImage(r){return r.basePrimaryImage},getConfigPageBuilder(r){return r.configPageBuilder},getCurrentImage(r){return r.currentImage},getCurrentPreviewImage(r){return r.currentPreviewImage},getIsSaving:r=>r.isSaving},actions:{setComponentArrayAddMethod(r){this.componentArrayAddMethod=r},setLocalStorageItemName(r){this.localStorageItemName=r},setShowModalTipTap(r){this.showModalTipTap=r},setMenuRight(r){this.menuRight=r},setBorderStyle(r){this.borderStyle=r},setBorderWidth(r){this.borderWidth=r},setBorderColor(r){this.borderColor=r},setBorderRadiusGlobal(r){this.borderRadiusGlobal=r},setBorderRadiusTopLeft(r){this.borderRadiusTopLeft=r},setBorderRadiusTopRight(r){this.borderRadiusTopRight=r},setBorderRadiusBottomleft(r){this.borderRadiusBottomleft=r},setBorderRadiusBottomRight(r){this.borderRadiusBottomRight=r},setElementContainsHyperlink(r){this.elementContainsHyperlink=r},setHyperlinkAbility(r){this.hyperlinkAbility=r},setHyperlinkInput(r){this.hyperlinkInput=r},setHyperlinkMessage(r){this.hyperlinkMessage=r},setHyperlinkError(r){this.hyperlinkError=r},setHyberlinkEnable(r){this.hyberlinkEnable=r},setOpenHyperlinkInNewTab(r){this.openHyperlinkinkInNewTab=r},setOpacity(r){this.opacity=r},setBackgroundOpacity(r){this.backgroundOpacity=r},setTextAreaVueModel(r){this.textAreaVueModel=r},setNextSibling(r){this.nextSibling=r},setParentElement(r){this.parentElement=r},setRestoredElement(r){this.restoredElement=r},setClass(r){this.currentClasses=[...this.currentClasses,r]},removeClass(r){this.currentClasses=this.currentClasses.filter(e=>e!==r)},setCurrentClasses(r){this.currentClasses=Array.from(r)},setFontVerticalPadding(r){this.fontVerticalPadding=r},setFontHorizontalPadding(r){this.fontHorizontalPadding=r},setFontVerticalMargin(r){this.fontVerticalMargin=r},setFontHorizontalMargin(r){this.fontHorizontalMargin=r},setFontStyle(r){this.fontStyle=r},setFontFamily(r){this.fontFamily=r},setFontWeight(r){this.fontWeight=r},setFontBase(r){this.fontBase=r},setFontDesktop(r){this.fontDesktop=r},setFontTablet(r){this.fontTablet=r},setFontMobile(r){this.fontMobile=r},setBackgroundColor(r){this.backgroundColor=r},setTextColor(r){this.textColor=r},setElement(r){this.element=null,s.nextTick(()=>{this.element=r})},setComponent(r){if(!r){this.element=null,this.component=null;return}this.component=null,s.nextTick(()=>{this.component=r})},setComponents(r){this.components=[],s.nextTick(()=>{this.components=r||[]})},setPushComponents(r){const e=r.componentArrayAddMethod??"push";e==="push"?this.components.push(r.component):e==="unshift"&&this.components.unshift(r.component)},setBasePrimaryImage(r){this.element&&(this.element.src=r??void 0),this.basePrimaryImage=r},setCurrentLayoutPreview(r){localStorage.setItem("preview",r)},applyPageBuilderConfig(r){this.configPageBuilder=r},setCurrentImage(r){this.currentImage=r},setCurrentPreviewImage(r){this.currentPreviewImage=r},setIsSaving(r){this.isSaving=r}}}),Na=ec(),se=sc(Na),Ch={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},Nh={id:"page-builder-editor"},Bh=["innerHTML"],lc={__name:"Preview",emits:["firstPageBuilderPreviewModalButton"],setup(r,{emit:e}){const t=se;s.computed(()=>t.getConfigPageBuilder);const o=s.ref(""),n=localStorage.getItem("preview");if(n)try{const i=JSON.parse(n);o.value=Array.isArray(i)?i.join(""):""}catch(i){console.error("Error parsing preview data:",i),o.value=""}else o.value="";return(i,a)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",Ch,[s.createElementVNode("div",Nh,[s.createElementVNode("div",{class:"",innerHTML:o.value},null,8,Bh)])])]))}},Mh={class:"font-sans w-full relative inline-block align-bottom text-left overflow-hidden transform transition-all sm:align-middle"},Th=["innerHTML"],Oh={key:0,class:"py-4 flex sm:justify-end justify-center border-t border-gray-200 mt-4"},Vh={key:1},Ph={key:0},Ah=["disabled"],Dh={key:1},Ih={key:2},Lh={key:0},Rh={key:0},zh=["disabled"],_h={key:1},Fh={key:1},jh={key:0},Hh=["disabled"],Wh={key:1},qh={key:2},Uh={key:0},Kh=["disabled"],Jh={key:1},Gh={key:3},Yh={key:0},Xh=["disabled"],Qh={key:1},Zh={key:1,class:"flex items-center my-2 py-4 px-2 justify-end"},zr={__name:"DynamicModalBuilder",props:{showDynamicModalBuilder:{type:Boolean,default:!1,required:!0},simpleModal:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},isLoading:{type:Boolean,default:!1,required:!1},disabledWhichButton:{type:String,default:"",required:!1},maxWidth:{type:String,required:!1,default:"2xl"},gridColumnAmount:{type:Number,required:!0},type:{type:String,required:!0},title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String}},emits:["firstModalButtonFunctionDynamicModalBuilder","secondModalButtonFunctionDynamicModalBuilder","thirdModalButtonFunctionDynamicModalBuilder"],setup(r,{emit:e}){const t=e,o=function(){t("firstModalButtonFunctionDynamicModalBuilder")},n=function(){t("secondModalButtonFunctionDynamicModalBuilder")},i=function(){t("thirdModalButtonFunctionDynamicModalBuilder")};return(a,l)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,showModalBuilder:r.showDynamicModalBuilder,onCloseMainModalBuilder:o,maxWidth:r.maxWidth},{default:s.withCtx(()=>[s.renderSlot(a.$slots,"content"),s.createElementVNode("div",Mh,[s.createElementVNode("div",{class:s.normalizeClass({"pr-4 pb-4":r.simpleModal!==!0})},[r.simpleModal!==!0?(s.openBlock(),s.createElementBlock("div",{key:0,innerHTML:r.description,class:"myPrimaryParagraph mb-6"},null,8,Th)):s.createCommentVNode("",!0),s.renderSlot(a.$slots,"header"),s.renderSlot(a.$slots,"default")],2)]),r.simpleModal!==!0&&!r.isLoading?(s.openBlock(),s.createElementBlock("div",Oh,[s.renderSlot(a.$slots,"footer"),s.createElementVNode("div",{class:s.normalizeClass([{"sm:grid-cols-1":r.gridColumnAmount===1,"sm:grid-cols-2":r.gridColumnAmount===2,"sm:grid-cols-3":r.gridColumnAmount===3},"sm:items-end sm:justify-end flex sm:flex-row flex-col myPrimaryGap sm:w-5/6 w-full"])},[r.firstButtonText?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"mySecondaryButton",type:"button",onClick:o},s.toDisplayString(r.firstButtonText),513)):s.createCommentVNode("",!0),r.secondButtonText?(s.openBlock(),s.createElementBlock("div",Vh,[r.disabled&&r.disabledWhichButton==="secondButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Ph,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button",onClick:n},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[0]||(l[0]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[0]})]),l[1]||(l[1]=s.createElementVNode("div",null,"Loading..",-1))],10,Ah)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="secondButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Dh,[s.createElementVNode("button",{class:"myPrimaryButton bg-yellow-300 hover:bg-yellow-400 text-myPrimaryDarkGrayColor hover:text-myPrimaryDarkGrayColor focus:ring-yellow-400 w-full",type:"button",onClick:n},s.toDisplayString(r.secondButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.thirdButtonText?(s.openBlock(),s.createElementBlock("div",Ih,[r.type==="default"?(s.openBlock(),s.createElementBlock("div",Lh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Rh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[2]||(l[2]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[2]})]),l[3]||(l[3]=s.createElementVNode("div",null,"Loading..",-1))],10,zh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",_h,[s.createElementVNode("button",{class:"myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="success"?(s.openBlock(),s.createElementBlock("div",Fh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",jh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[4]||(l[4]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[4]})]),l[5]||(l[5]=s.createElementVNode("div",null,"Loading..",-1))],10,Hh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Wh,[s.createElementVNode("button",{class:"myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="warning"?(s.openBlock(),s.createElementBlock("div",qh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Uh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryLinkColor focus-visible:ring-myPrimaryLinkColor focus:ring-myPrimaryLinkColor hover:bg-myPrimaryLinkColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[6]||(l[6]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[6]})]),l[7]||(l[7]=s.createElementVNode("div",null,"Loading..",-1))],10,Kh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Jh,[s.createElementVNode("button",{class:"flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),r.type==="danger"||r.type==="delete"?(s.openBlock(),s.createElementBlock("div",Gh,[r.disabled&&r.disabledWhichButton==="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Yh,[s.createElementVNode("button",{class:s.normalizeClass(["flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",{"opacity-25 cursor-default":r.disabled}]),disabled:r.disabled,type:"button"},[s.createElementVNode("div",null,[s.createVNode(s.Transition,{name:"bounce"},{default:s.withCtx(()=>l[8]||(l[8]=[s.createElementVNode("div",{role:"status",class:"flex items-center"},[s.createElementVNode("svg",{"aria-hidden":"true",class:"w-4 h-4 animate-spin text-white-600 fill-gray-800 flex items-center","stroke-width":"1.5",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.createElementVNode("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),s.createElementVNode("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})])],-1)])),_:1,__:[8]})]),l[9]||(l[9]=s.createElementVNode("div",null,"Loading..",-1))],10,Xh)])):s.createCommentVNode("",!0),!r.disabled||r.disabledWhichButton!=="thirdButtonBuilder"?(s.openBlock(),s.createElementBlock("div",Qh,[s.createElementVNode("button",{class:"flex items-center gap-2 myPrimaryButton bg-myPrimaryErrorColor hover:bg-red-600 text-white focus:ring-myPrimaryErrorColor w-full",type:"button",onClick:i},s.toDisplayString(r.thirdButtonText),1)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],2)])):s.createCommentVNode("",!0),r.isLoading?(s.openBlock(),s.createElementBlock("div",Zh,l[10]||(l[10]=[s.createElementVNode("div",{class:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"},[s.createElementVNode("span",{class:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading...")],-1)]))):s.createCommentVNode("",!0)]),_:3},8,["title","showModalBuilder","maxWidth"]))}},$h={class:"flex flex-col items-center justify-center myPrimaryGap"},ef={class:"flex gap-2 items-center justify-center"},tf={__name:"ComponentTopMenu",setup(r){const e=se,t=s.ref(!1),o=s.ref(""),n=s.ref(1),i=s.ref(""),a=s.ref(""),l=s.ref(""),c=s.ref(null),d=s.ref(null),u=s.ref(null),p=s.ref(null),m=s.ref(null),h=new de(e),f=function(g){t.value=!0,o.value="delete",n.value=2,i.value="Remove Component?",a.value="Are you sure you want to remove this Component?",l.value="Close",c.value=null,d.value="Delete",u.value=function(){t.value=!1},m.value=function(){h.deleteSelectedComponent(),t.value=!1}};return(g,b)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(zr,{showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:c.value,thirdButtonText:d.value,onFirstModalButtonFunctionDynamicModalBuilder:u.value,onSecondModalButtonFunctionDynamicModalBuilder:p.value,onThirdModalButtonFunctionDynamicModalBuilder:m.value},{default:s.withCtx(()=>b[3]||(b[3]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",$h,[s.createElementVNode("div",ef,[s.createElementVNode("div",{onClick:b[0]||(b[0]=y=>f()),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryErrorColor hover:text-white text-myPrimaryErrorColor"},b[4]||(b[4]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," delete_forever ",-1)]))]),s.createElementVNode("button",{type:"button",onClick:b[1]||(b[1]=y=>s.unref(h).reorderComponent(-1)),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},b[5]||(b[5]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," move_up ",-1)])),s.createElementVNode("button",{type:"button",onClick:b[2]||(b[2]=y=>s.unref(h).reorderComponent(1)),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},b[6]||(b[6]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," move_down ",-1)]))])],64))}};function Ee(r){this.content=r}Ee.prototype={constructor:Ee,find:function(r){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===r)return e;return-1},get:function(r){var e=this.find(r);return e==-1?void 0:this.content[e+1]},update:function(r,e,t){var o=t&&t!=r?this.remove(t):this,n=o.find(r),i=o.content.slice();return n==-1?i.push(t||r,e):(i[n+1]=e,t&&(i[n]=t)),new Ee(i)},remove:function(r){var e=this.find(r);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Ee(t)},addToStart:function(r,e){return new Ee([r,e].concat(this.remove(r).content))},addToEnd:function(r,e){var t=this.remove(r).content.slice();return t.push(r,e),new Ee(t)},addBefore:function(r,e,t){var o=this.remove(e),n=o.content.slice(),i=o.find(r);return n.splice(i==-1?n.length:i,0,e,t),new Ee(n)},forEach:function(r){for(var e=0;e<this.content.length;e+=2)r(this.content[e],this.content[e+1])},prepend:function(r){return r=Ee.from(r),r.size?new Ee(r.content.concat(this.subtract(r).content)):this},append:function(r){return r=Ee.from(r),r.size?new Ee(this.subtract(r).content.concat(r.content)):this},subtract:function(r){var e=this;r=Ee.from(r);for(var t=0;t<r.content.length;t+=2)e=e.remove(r.content[t]);return e},toObject:function(){var r={};return this.forEach(function(e,t){r[e]=t}),r},get size(){return this.content.length>>1}},Ee.from=function(r){if(r instanceof Ee)return r;var e=[];if(r)for(var t in r)e.push(t,r[t]);return new Ee(e)};function cc(r,e,t){for(let o=0;;o++){if(o==r.childCount||o==e.childCount)return r.childCount==e.childCount?null:t;let n=r.child(o),i=e.child(o);if(n==i){t+=n.nodeSize;continue}if(!n.sameMarkup(i))return t;if(n.isText&&n.text!=i.text){for(let a=0;n.text[a]==i.text[a];a++)t++;return t}if(n.content.size||i.content.size){let a=cc(n.content,i.content,t+1);if(a!=null)return a}t+=n.nodeSize}}function dc(r,e,t,o){for(let n=r.childCount,i=e.childCount;;){if(n==0||i==0)return n==i?null:{a:t,b:o};let a=r.child(--n),l=e.child(--i),c=a.nodeSize;if(a==l){t-=c,o-=c;continue}if(!a.sameMarkup(l))return{a:t,b:o};if(a.isText&&a.text!=l.text){let d=0,u=Math.min(a.text.length,l.text.length);for(;d<u&&a.text[a.text.length-d-1]==l.text[l.text.length-d-1];)d++,t--,o--;return{a:t,b:o}}if(a.content.size||l.content.size){let d=dc(a.content,l.content,t-1,o-1);if(d)return d}t-=c,o-=c}}class M{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,t,o,n=0,i){for(let a=0,l=0;l<t;a++){let c=this.content[a],d=l+c.nodeSize;if(d>e&&o(c,n+l,i||null,a)!==!1&&c.content.size){let u=l+1;c.nodesBetween(Math.max(0,e-u),Math.min(c.content.size,t-u),o,n+u)}l=d}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,o,n){let i="",a=!0;return this.nodesBetween(e,t,(l,c)=>{let d=l.isText?l.text.slice(Math.max(e,c)-c,t-c):l.isLeaf?n?typeof n=="function"?n(l):n:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&d||l.isTextblock)&&o&&(a?a=!1:i+=o),i+=d},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,o=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(o)&&(n[n.length-1]=t.withText(t.text+o.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new M(n,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let o=[],n=0;if(t>e)for(let i=0,a=0;a<t;i++){let l=this.content[i],c=a+l.nodeSize;c>e&&((a<e||c>t)&&(l.isText?l=l.cut(Math.max(0,e-a),Math.min(l.text.length,t-a)):l=l.cut(Math.max(0,e-a-1),Math.min(l.content.size,t-a-1))),o.push(l),n+=l.nodeSize),a=c}return new M(o,n)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let o=this.content[e];if(o==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-o.nodeSize;return n[e]=t,new M(n,i)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,o=0;t<this.content.length;t++){let n=this.content[t];e(n,o,t),o+=n.nodeSize}}findDiffStart(e,t=0){return cc(this,e,t)}findDiffEnd(e,t=this.size,o=e.size){return dc(this,e,t,o)}findIndex(e,t=-1){if(e==0)return Vn(0,e);if(e==this.size)return Vn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let i=this.child(o),a=n+i.nodeSize;if(a>=e)return a==e||t>0?Vn(o+1,a):Vn(o,n);n=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new M(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,o=0;for(let n=0;n<e.length;n++){let i=e[n];o+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new M(t||e,o)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const Ba={index:0,offset:0};function Vn(r,e){return Ba.index=r,Ba.offset=e,Ba}function Pn(r,e){if(r===e)return!0;if(!(r&&typeof r=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(r);if(Array.isArray(e)!=t)return!1;if(t){if(r.length!=e.length)return!1;for(let o=0;o<r.length;o++)if(!Pn(r[o],e[o]))return!1}else{for(let o in r)if(!(o in e)||!Pn(r[o],e[o]))return!1;for(let o in e)if(!(o in r))return!1}return!0}let te=class Il{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,o=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),o=!0),t&&t.push(i)}}return t||(t=e.slice()),o||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Pn(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[t.type];if(!o)throw new RangeError(`There is no mark type ${t.type} in this schema`);let n=o.create(t.attrs);return o.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(t[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Il.none;if(e instanceof Il)return[e];let t=e.slice();return t.sort((o,n)=>o.type.rank-n.type.rank),t}};te.none=[];class An extends Error{}class A{constructor(e,t,o){this.content=e,this.openStart=t,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let o=pc(this.content,e+this.openStart,t);return o&&new A(o,this.openStart,this.openEnd)}removeBetween(e,t){return new A(uc(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return A.empty;let o=t.openStart||0,n=t.openEnd||0;if(typeof o!="number"||typeof n!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new A(M.fromJSON(e,t.content),o,n)}static maxOpen(e,t=!0){let o=0,n=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)n++;return new A(e,o,n)}}A.empty=new A(M.empty,0,0);function uc(r,e,t){let{index:o,offset:n}=r.findIndex(e),i=r.maybeChild(o),{index:a,offset:l}=r.findIndex(t);if(n==e||i.isText){if(l!=t&&!r.child(a).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(t))}if(o!=a)throw new RangeError("Removing non-flat range");return r.replaceChild(o,i.copy(uc(i.content,e-n-1,t-n-1)))}function pc(r,e,t,o){let{index:n,offset:i}=r.findIndex(e),a=r.maybeChild(n);if(i==e||a.isText)return r.cut(0,e).append(t).append(r.cut(e));let l=pc(a.content,e-i-1,t);return l&&r.replaceChild(n,a.copy(l))}function rf(r,e,t){if(t.openStart>r.depth)throw new An("Inserted content deeper than insertion position");if(r.depth-t.openStart!=e.depth-t.openEnd)throw new An("Inconsistent open depths");return mc(r,e,t,0)}function mc(r,e,t,o){let n=r.index(o),i=r.node(o);if(n==e.index(o)&&o<r.depth-t.openStart){let a=mc(r,e,t,o+1);return i.copy(i.content.replaceChild(n,a))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&r.depth==o&&e.depth==o){let a=r.parent,l=a.content;return pr(a,l.cut(0,r.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:a,end:l}=of(t,r);return pr(i,fc(r,a,l,e,o))}else return pr(i,Dn(r,e,o))}function hc(r,e){if(!e.type.compatibleContent(r.type))throw new An("Cannot join "+e.type.name+" onto "+r.type.name)}function Ma(r,e,t){let o=r.node(t);return hc(o,e.node(t)),o}function ur(r,e){let t=e.length-1;t>=0&&r.isText&&r.sameMarkup(e[t])?e[t]=r.withText(e[t].text+r.text):e.push(r)}function vo(r,e,t,o){let n=(e||r).node(t),i=0,a=e?e.index(t):n.childCount;r&&(i=r.index(t),r.depth>t?i++:r.textOffset&&(ur(r.nodeAfter,o),i++));for(let l=i;l<a;l++)ur(n.child(l),o);e&&e.depth==t&&e.textOffset&&ur(e.nodeBefore,o)}function pr(r,e){return r.type.checkContent(e),r.copy(e)}function fc(r,e,t,o,n){let i=r.depth>n&&Ma(r,e,n+1),a=o.depth>n&&Ma(t,o,n+1),l=[];return vo(null,r,n,l),i&&a&&e.index(n)==t.index(n)?(hc(i,a),ur(pr(i,fc(r,e,t,o,n+1)),l)):(i&&ur(pr(i,Dn(r,e,n+1)),l),vo(e,t,n,l),a&&ur(pr(a,Dn(t,o,n+1)),l)),vo(o,null,n,l),new M(l)}function Dn(r,e,t){let o=[];if(vo(null,r,t,o),r.depth>t){let n=Ma(r,e,t+1);ur(pr(n,Dn(r,e,t+1)),o)}return vo(e,null,t,o),new M(o)}function of(r,e){let t=e.depth-r.openStart,n=e.node(t).copy(r.content);for(let i=t-1;i>=0;i--)n=e.node(i).copy(M.from(n));return{start:n.resolveNoCache(r.openStart+t),end:n.resolveNoCache(n.content.size-r.openEnd-t)}}class xo{constructor(e,t,o){this.pos=e,this.path=t,this.parentOffset=o,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],n=e.child(t);return o?e.child(t).cut(o):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let o=this.path[t*3],n=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)n+=o.child(i).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return te.none;if(this.textOffset)return e.child(t).marks;let o=e.maybeChild(t-1),n=e.maybeChild(t);if(!o){let l=o;o=n,n=l}let i=o.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!n||!i[a].isInSet(n.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let o=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!n||!o[i].isInSet(n.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!t||t(this.node(o))))return new In(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let o=[],n=0,i=t;for(let a=e;;){let{index:l,offset:c}=a.content.findIndex(i),d=i-c;if(o.push(a,l,n+c),!d||(a=a.child(l),a.isText))break;i=d-1,n+=c+1}return new xo(t,o,i)}static resolveCached(e,t){let o=gc.get(e);if(o)for(let i=0;i<o.elts.length;i++){let a=o.elts[i];if(a.pos==t)return a}else gc.set(e,o=new nf);let n=o.elts[o.i]=xo.resolve(e,t);return o.i=(o.i+1)%af,n}}class nf{constructor(){this.elts=[],this.i=0}}const af=12,gc=new WeakMap;class In{constructor(e,t,o){this.$from=e,this.$to=t,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const sf=Object.create(null);let Ht=class Ll{constructor(e,t,o,n=te.none){this.type=e,this.attrs=t,this.marks=n,this.content=o||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,o,n=0){this.content.nodesBetween(e,t,o,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,o,n){return this.content.textBetween(e,t,o,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,o){return this.type==e&&Pn(this.attrs,t||e.defaultAttrs||sf)&&te.sameSet(this.marks,o||te.none)}copy(e=null){return e==this.content?this:new Ll(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ll(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,o=!1){if(e==t)return A.empty;let n=this.resolve(e),i=this.resolve(t),a=o?0:n.sharedDepth(t),l=n.start(a),d=n.node(a).content.cut(n.pos-l,i.pos-l);return new A(d,n.depth-a,i.depth-a)}replace(e,t,o){return rf(this.resolve(e),this.resolve(t),o)}nodeAt(e){for(let t=this;;){let{index:o,offset:n}=t.content.findIndex(e);if(t=t.maybeChild(o),!t)return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(t),index:t,offset:o};let n=this.content.child(t-1);return{node:n,index:t-1,offset:o-n.nodeSize}}resolve(e){return xo.resolveCached(this,e)}resolveNoCache(e){return xo.resolve(this,e)}rangeHasMark(e,t,o){let n=!1;return t>e&&this.nodesBetween(e,t,i=>(o.isInSet(i.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),bc(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,o=M.empty,n=0,i=o.childCount){let a=this.contentMatchAt(e).matchFragment(o,n,i),l=a&&a.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let c=n;c<i;c++)if(!this.type.allowsMarks(o.child(c).marks))return!1;return!0}canReplaceWith(e,t,o,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(o),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=te.none;for(let t=0;t<this.marks.length;t++){let o=this.marks[t];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!te.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let o;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,o)}let n=M.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,o);return i.type.checkAttrs(i.attrs),i}};Ht.prototype.text=void 0;class Ln extends Ht{constructor(e,t,o,n){if(super(e,t,null,n),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):bc(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ln(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ln(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function bc(r,e){for(let t=r.length-1;t>=0;t--)e=r[t].type.name+"("+e+")";return e}class mr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let o=new lf(e,t);if(o.next==null)return mr.empty;let n=wc(o);o.next&&o.err("Unexpected trailing text");let i=ff(hf(n));return gf(i,o),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,o=e.childCount){let n=this;for(let i=t;n&&i<o;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let o=0;o<e.next.length;o++)if(this.next[t].type==e.next[o].type)return!0;return!1}fillBefore(e,t=!1,o=0){let n=[this];function i(a,l){let c=a.matchFragment(e,o);if(c&&(!t||c.validEnd))return M.from(l.map(d=>d.createAndFill()));for(let d=0;d<a.next.length;d++){let{type:u,next:p}=a.next[d];if(!(u.isText||u.hasRequiredAttrs())&&n.indexOf(p)==-1){n.push(p);let m=i(p,l.concat(u));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let n=o.shift(),i=n.match;if(i.matchType(e)){let a=[];for(let l=n;l.type;l=l.via)a.push(l.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!n.type||c.validEnd)&&(o.push({match:l.contentMatch,type:l,via:n}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(o){e.push(o);for(let n=0;n<o.next.length;n++)e.indexOf(o.next[n].next)==-1&&t(o.next[n].next)}return t(this),e.map((o,n)=>{let i=n+(o.validEnd?"*":" ")+" ";for(let a=0;a<o.next.length;a++)i+=(a?", ":"")+o.next[a].type.name+"->"+e.indexOf(o.next[a].next);return i}).join(`
|
|
12
|
-
`)}}mr.empty=new mr(!0);class lf{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function wc(r){let e=[];do e.push(cf(r));while(r.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function cf(r){let e=[];do e.push(df(r));while(r.next&&r.next!=")"&&r.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function df(r){let e=mf(r);for(;;)if(r.eat("+"))e={type:"plus",expr:e};else if(r.eat("*"))e={type:"star",expr:e};else if(r.eat("?"))e={type:"opt",expr:e};else if(r.eat("{"))e=uf(r,e);else break;return e}function yc(r){/\D/.test(r.next)&&r.err("Expected number, got '"+r.next+"'");let e=Number(r.next);return r.pos++,e}function uf(r,e){let t=yc(r),o=t;return r.eat(",")&&(r.next!="}"?o=yc(r):o=-1),r.eat("}")||r.err("Unclosed braced range"),{type:"range",min:t,max:o,expr:e}}function pf(r,e){let t=r.nodeTypes,o=t[e];if(o)return[o];let n=[];for(let i in t){let a=t[i];a.isInGroup(e)&&n.push(a)}return n.length==0&&r.err("No node type or group '"+e+"' found"),n}function mf(r){if(r.eat("(")){let e=wc(r);return r.eat(")")||r.err("Missing closing paren"),e}else if(/\W/.test(r.next))r.err("Unexpected token '"+r.next+"'");else{let e=pf(r,r.next).map(t=>(r.inline==null?r.inline=t.isInline:r.inline!=t.isInline&&r.err("Mixing inline and block content"),{type:"name",value:t}));return r.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function hf(r){let e=[[]];return n(i(r,0),t()),e;function t(){return e.push([])-1}function o(a,l,c){let d={term:c,to:l};return e[a].push(d),d}function n(a,l){a.forEach(c=>c.to=l)}function i(a,l){if(a.type=="choice")return a.exprs.reduce((c,d)=>c.concat(i(d,l)),[]);if(a.type=="seq")for(let c=0;;c++){let d=i(a.exprs[c],l);if(c==a.exprs.length-1)return d;n(d,l=t())}else if(a.type=="star"){let c=t();return o(l,c),n(i(a.expr,c),c),[o(c)]}else if(a.type=="plus"){let c=t();return n(i(a.expr,l),c),n(i(a.expr,c),c),[o(c)]}else{if(a.type=="opt")return[o(l)].concat(i(a.expr,l));if(a.type=="range"){let c=l;for(let d=0;d<a.min;d++){let u=t();n(i(a.expr,c),u),c=u}if(a.max==-1)n(i(a.expr,c),c);else for(let d=a.min;d<a.max;d++){let u=t();o(c,u),n(i(a.expr,c),u),c=u}return[o(c)]}else{if(a.type=="name")return[o(l,void 0,a.value)];throw new Error("Unknown expr type")}}}}function vc(r,e){return e-r}function xc(r,e){let t=[];return o(e),t.sort(vc);function o(n){let i=r[n];if(i.length==1&&!i[0].term)return o(i[0].to);t.push(n);for(let a=0;a<i.length;a++){let{term:l,to:c}=i[a];!l&&t.indexOf(c)==-1&&o(c)}}}function ff(r){let e=Object.create(null);return t(xc(r,0));function t(o){let n=[];o.forEach(a=>{r[a].forEach(({term:l,to:c})=>{if(!l)return;let d;for(let u=0;u<n.length;u++)n[u][0]==l&&(d=n[u][1]);xc(r,c).forEach(u=>{d||n.push([l,d=[]]),d.indexOf(u)==-1&&d.push(u)})})});let i=e[o.join(",")]=new mr(o.indexOf(r.length-1)>-1);for(let a=0;a<n.length;a++){let l=n[a][1].sort(vc);i.next.push({type:n[a][0],next:e[l.join(",")]||t(l)})}return i}}function gf(r,e){for(let t=0,o=[r];t<o.length;t++){let n=o[t],i=!n.validEnd,a=[];for(let l=0;l<n.next.length;l++){let{type:c,next:d}=n.next[l];a.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),o.indexOf(d)==-1&&o.push(d)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function kc(r){let e=Object.create(null);for(let t in r){let o=r[t];if(!o.hasDefault)return null;e[t]=o.default}return e}function Ec(r,e){let t=Object.create(null);for(let o in r){let n=e&&e[o];if(n===void 0){let i=r[o];if(i.hasDefault)n=i.default;else throw new RangeError("No value supplied for attribute "+o)}t[o]=n}return t}function Sc(r,e,t,o){for(let n in e)if(!(n in r))throw new RangeError(`Unsupported attribute ${n} for ${t} of type ${n}`);for(let n in r){let i=r[n];i.validate&&i.validate(e[n])}}function Cc(r,e){let t=Object.create(null);if(e)for(let o in e)t[o]=new wf(r,o,e[o]);return t}let Nc=class Wm{constructor(e,t,o){this.name=e,this.schema=t,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Cc(e,o.attrs),this.defaultAttrs=kc(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==mr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Ec(this.attrs,e)}create(e=null,t,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ht(this,this.computeAttrs(e),M.from(t),te.setFrom(o))}createChecked(e=null,t,o){return t=M.from(t),this.checkContent(t),new Ht(this,this.computeAttrs(e),t,te.setFrom(o))}createAndFill(e=null,t,o){if(e=this.computeAttrs(e),t=M.from(t),t.size){let a=this.contentMatch.fillBefore(t);if(!a)return null;t=a.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(M.empty,!0);return i?new Ht(this,e,t.append(i),te.setFrom(o)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Sc(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?t&&t.push(e[o]):t||(t=e.slice(0,o));return t?t.length?t:te.none:e}static compile(e,t){let o=Object.create(null);e.forEach((i,a)=>o[i]=new Wm(i,t,a));let n=t.spec.topNode||"doc";if(!o[n])throw new RangeError("Schema is missing its top node type ('"+n+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function bf(r,e,t){let o=t.split("|");return n=>{let i=n===null?"null":typeof n;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${r}, got ${i}`)}}class wf{constructor(e,t,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?bf(e,t,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class Rn{constructor(e,t,o,n){this.name=e,this.rank=t,this.schema=o,this.spec=n,this.attrs=Cc(e,n.attrs),this.excluded=null;let i=kc(this.attrs);this.instance=i?new te(this,i):null}create(e=null){return!e&&this.instance?this.instance:new te(this,Ec(this.attrs,e))}static compile(e,t){let o=Object.create(null),n=0;return e.forEach((i,a)=>o[i]=new Rn(i,n++,t,a)),o}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Sc(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Bc{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=Ee.from(e.nodes),t.marks=Ee.from(e.marks||{}),this.nodes=Nc.compile(this.spec.nodes,this),this.marks=Rn.compile(this.spec.marks,this);let o=Object.create(null);for(let n in this.nodes){if(n in this.marks)throw new RangeError(n+" can not be both a node and a mark");let i=this.nodes[n],a=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=o[a]||(o[a]=mr.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?Mc(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let n in this.marks){let i=this.marks[n],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:Mc(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,o,n){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Nc){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,o,n)}text(e,t){let o=this.nodes.text;return new Ln(o,o.defaultAttrs,e,te.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Ht.fromJSON(this,e)}markFromJSON(e){return te.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Mc(r,e){let t=[];for(let o=0;o<e.length;o++){let n=e[o],i=r.marks[n],a=i;if(i)t.push(i);else for(let l in r.marks){let c=r.marks[l];(n=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(n)>-1)&&t.push(a=c)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return t}function yf(r){return r.tag!=null}function vf(r){return r.style!=null}let ko=class Rl{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let o=this.matchedStyles=[];t.forEach(n=>{if(yf(n))this.tags.push(n);else if(vf(n)){let i=/[^=]*/.exec(n.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(n)}}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let i=e.nodes[n.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let o=new Pc(this,t,!1);return o.addAll(e,te.none,t.from,t.to),o.finish()}parseSlice(e,t={}){let o=new Pc(this,t,!0);return o.addAll(e,te.none,t.from,t.to),A.maxOpen(o.finish())}matchTag(e,t,o){for(let n=o?this.tags.indexOf(o)+1:0;n<this.tags.length;n++){let i=this.tags[n];if(Ef(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let a=i.getAttrs(e);if(a===!1)continue;i.attrs=a||void 0}return i}}}matchStyle(e,t,o,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let a=this.styles[i],l=a.style;if(!(l.indexOf(e)!=0||a.context&&!o.matchesContext(a.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(a.getAttrs){let c=a.getAttrs(t);if(c===!1)continue;a.attrs=c||void 0}return a}}}static schemaRules(e){let t=[];function o(n){let i=n.priority==null?50:n.priority,a=0;for(;a<t.length;a++){let l=t[a];if((l.priority==null?50:l.priority)<i)break}t.splice(a,0,n)}for(let n in e.marks){let i=e.marks[n].spec.parseDOM;i&&i.forEach(a=>{o(a=Ac(a)),a.mark||a.ignore||a.clearMark||(a.mark=n)})}for(let n in e.nodes){let i=e.nodes[n].spec.parseDOM;i&&i.forEach(a=>{o(a=Ac(a)),a.node||a.ignore||a.mark||(a.node=n)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Rl(e,Rl.schemaRules(e)))}};const Tc={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},xf={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Oc={ol:!0,ul:!0},Eo=1,Ta=2,So=4;function Vc(r,e,t){return e!=null?(e?Eo:0)|(e==="full"?Ta:0):r&&r.whitespace=="pre"?Eo|Ta:t&~So}class zn{constructor(e,t,o,n,i,a){this.type=e,this.attrs=t,this.marks=o,this.solid=n,this.options=a,this.content=[],this.activeMarks=te.none,this.match=i||(a&So?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(M.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let o=this.type.contentMatch,n;return(n=o.findWrapping(e.type))?(this.match=o,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Eo)){let o=this.content[this.content.length-1],n;if(o&&o.isText&&(n=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-n[0].length))}}let t=M.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(M.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Tc.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Pc{constructor(e,t,o){this.parser=e,this.options=t,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,a=Vc(null,t.preserveWhitespace,0)|(o?So:0);n?i=new zn(n.type,n.attrs,te.none,!0,t.topMatch||n.type.contentMatch,a):o?i=new zn(null,null,te.none,!0,null,a):i=new zn(e.schema.topNodeType,null,te.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let o=e.nodeValue,n=this.top,i=n.options&Ta?"full":this.localPreserveWS||(n.options&Eo)>0;if(i==="full"||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)i!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
|
|
13
|
-
`);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let
|
|
14
|
-
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let o=e.style;if(o&&o.length)for(let n=0;n<this.parser.matchedStyles.length;n++){let i=this.parser.matchedStyles[n],a=o.getPropertyValue(i);if(a)for(let l=void 0;;){let c=this.parser.matchStyle(i,a,this,l);if(!c)break;if(c.ignore)return null;if(c.clearMark?t=t.filter(d=>!c.clearMark(d)):t=t.concat(this.parser.schema.marks[c.mark].create(c.attrs)),c.consuming===!1)l=c;else break}}return t}addElementByRule(e,t,o,n){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),o,e.nodeName=="BR")||this.leafFallback(e,o);else{let c=this.enter(a,t.attrs||null,o,t.preserveWhitespace);c&&(i=!0,o=c)}else{let c=this.parser.schema.marks[t.mark];o=o.concat(c.create(t.attrs))}let l=this.top;if(a&&a.isLeaf)this.findInside(e);else if(n)this.addElement(e,o,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c,o,!1));else{let c=e;typeof t.contentElement=="string"?c=e.querySelector(t.contentElement):typeof t.contentElement=="function"?c=t.contentElement(e):t.contentElement&&(c=t.contentElement),this.findAround(e,c,!0),this.addAll(c,o),this.findAround(e,c,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,o,n){let i=o||0;for(let a=o?e.childNodes[o]:e.firstChild,l=n==null?null:e.childNodes[n];a!=l;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,o){let n,i;for(let a=this.open,l=0;a>=0;a--){let c=this.nodes[a],d=c.findWrapping(e);if(d&&(!n||n.length>d.length+l)&&(n=d,i=c,!d.length))break;if(c.solid){if(o)break;l+=2}}if(!n)return null;this.sync(i);for(let a=0;a<n.length;a++)t=this.enterInner(n[a],null,t,!1);return t}insertNode(e,t,o){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let n=this.findPlace(e,t,o);if(n){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let a=te.none;for(let l of n.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):Dc(l.type,e.type))&&(a=l.addToSet(a));return i.content.push(e.mark(a)),!0}return!1}enter(e,t,o,n){let i=this.findPlace(e.create(t),o,!1);return i&&(i=this.enterInner(e,t,o,!0,n)),i}enterInner(e,t,o,n=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let l=Vc(e,i,a.options);a.options&So&&a.content.length==0&&(l|=So);let c=te.none;return o=o.filter(d=>(a.type?a.type.allowsMarkType(d.type):Dc(d.type,e))?(c=d.addToSet(c),!1):!0),this.nodes.push(new zn(e,t,c,n,null,l)),this.open++,o}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Eo)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let o=this.nodes[t].content;for(let n=o.length-1;n>=0;n--)e+=o[n].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==t&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,o){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(o?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),o=this.options.context,n=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(n?0:1),a=(l,c)=>{for(;l>=0;l--){let d=t[l];if(d==""){if(l==t.length-1||l==0)continue;for(;c>=i;c--)if(a(l-1,c))return!0;return!1}else{let u=c>0||c==0&&n?this.nodes[c].type:o&&c>=i?o.node(c-i).type:null;if(!u||u.name!=d&&!u.isInGroup(d))return!1;c--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let t in this.parser.schema.nodes){let o=this.parser.schema.nodes[t];if(o.isTextblock&&o.defaultAttrs)return o}}}function kf(r){for(let e=r.firstChild,t=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&Oc.hasOwnProperty(o)&&t?(t.appendChild(e),e=t):o=="li"?t=e:o&&(t=null)}}function Ef(r,e){return(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,e)}function Ac(r){let e={};for(let t in r)e[t]=r[t];return e}function Dc(r,e){let t=e.schema.nodes;for(let o in t){let n=t[o];if(!n.allowsMarkType(r))continue;let i=[],a=l=>{i.push(l);for(let c=0;c<l.edgeCount;c++){let{type:d,next:u}=l.edge(c);if(d==e||i.indexOf(u)<0&&a(u))return!0}};if(a(n.contentMatch))return!0}}class hr{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},o){o||(o=Oa(t).createDocumentFragment());let n=o,i=[];return e.forEach(a=>{if(i.length||a.marks.length){let l=0,c=0;for(;l<i.length&&c<a.marks.length;){let d=a.marks[c];if(!this.marks[d.type.name]){c++;continue}if(!d.eq(i[l][0])||d.type.spec.spanning===!1)break;l++,c++}for(;l<i.length;)n=i.pop()[1];for(;c<a.marks.length;){let d=a.marks[c++],u=this.serializeMark(d,a.isInline,t);u&&(i.push([d,n]),n.appendChild(u.dom),n=u.contentDOM||u.dom)}}n.appendChild(this.serializeNodeInner(a,t))}),o}serializeNodeInner(e,t){let{dom:o,contentDOM:n}=_n(Oa(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return o}serializeNode(e,t={}){let o=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,t,o={}){let n=this.marks[e.type.name];return n&&_n(Oa(o),n(e,t),null,e.attrs)}static renderSpec(e,t,o=null,n){return _n(e,t,o,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new hr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Ic(e.nodes);return t.text||(t.text=o=>o.text),t}static marksFromSchema(e){return Ic(e.marks)}}function Ic(r){let e={};for(let t in r){let o=r[t].spec.toDOM;o&&(e[t]=o)}return e}function Oa(r){return r.document||window.document}const Lc=new WeakMap;function Sf(r){let e=Lc.get(r);return e===void 0&&Lc.set(r,e=Cf(r)),e}function Cf(r){let e=null;function t(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let n=0;n<o.length;n++)t(o[n]);else for(let n in o)t(o[n])}return t(r),e}function _n(r,e,t,o){if(typeof e=="string")return{dom:r.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let n=e[0],i;if(typeof n!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=Sf(o))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a=n.indexOf(" ");a>0&&(t=n.slice(0,a),n=n.slice(a+1));let l,c=t?r.createElementNS(t,n):r.createElement(n),d=e[1],u=1;if(d&&typeof d=="object"&&d.nodeType==null&&!Array.isArray(d)){u=2;for(let p in d)if(d[p]!=null){let m=p.indexOf(" ");m>0?c.setAttributeNS(p.slice(0,m),p.slice(m+1),d[p]):c.setAttribute(p,d[p])}}for(let p=u;p<e.length;p++){let m=e[p];if(m===0){if(p<e.length-1||p>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:c,contentDOM:c}}else{let{dom:h,contentDOM:f}=_n(r,m,t,o);if(c.appendChild(h),f){if(l)throw new RangeError("Multiple content holes");l=f}}}return{dom:c,contentDOM:l}}const Rc=65535,zc=Math.pow(2,16);function Nf(r,e){return r+e*zc}function _c(r){return r&Rc}function Bf(r){return(r-(r&Rc))/zc}const Fc=1,jc=2,Fn=4,Hc=8;class Va{constructor(e,t,o){this.pos=e,this.delInfo=t,this.recover=o}get deleted(){return(this.delInfo&Hc)>0}get deletedBefore(){return(this.delInfo&(Fc|Fn))>0}get deletedAfter(){return(this.delInfo&(jc|Fn))>0}get deletedAcross(){return(this.delInfo&Fn)>0}}class We{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&We.empty)return We.empty}recover(e){let t=0,o=_c(e);if(!this.inverted)for(let n=0;n<o;n++)t+=this.ranges[n*3+2]-this.ranges[n*3+1];return this.ranges[o*3]+t+Bf(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,o){let n=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?n:0);if(c>e)break;let d=this.ranges[l+i],u=this.ranges[l+a],p=c+d;if(e<=p){let m=d?e==c?-1:e==p?1:t:t,h=c+n+(m<0?0:u);if(o)return h;let f=e==(t<0?c:p)?null:Nf(l/3,e-c),g=e==c?jc:e==p?Fc:Fn;return(t<0?e!=c:e!=p)&&(g|=Hc),new Va(h,g,f)}n+=u-d}return o?e+n:new Va(e+n,0,null)}touches(e,t){let o=0,n=_c(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?o:0);if(c>e)break;let d=this.ranges[l+i],u=c+d;if(e<=u&&l==n*3)return!0;o+=this.ranges[l+a]-d}return!1}forEach(e){let t=this.inverted?2:1,o=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let a=this.ranges[n],l=a-(this.inverted?i:0),c=a+(this.inverted?0:i),d=this.ranges[n+t],u=this.ranges[n+o];e(l,l+d,c,c+u),i+=u-d}}invert(){return new We(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?We.empty:new We(e<0?[0,-e,0]:[0,0,e])}}We.empty=new We([]);class Co{constructor(e,t,o=0,n=e?e.length:0){this.mirror=t,this.from=o,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new Co(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,o=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],n!=null&&n<t?o+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,o=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),n!=null&&n>t?o-n-1:void 0)}}invert(){let e=new Co;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,o){let n=0;for(let i=this.from;i<this.to;i++){let a=this._maps[i],l=a.mapResult(e,t);if(l.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this._maps[c].recover(l.recover);continue}}n|=l.delInfo,e=l.pos}return o?e:new Va(e,n,null)}}const Pa=Object.create(null);class Te{getMap(){return We.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Pa[t.stepType];if(!o)throw new RangeError(`No step type ${t.stepType} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in Pa)throw new RangeError("Duplicate use of step JSON ID "+e);return Pa[e]=t,t.prototype.jsonID=e,t}}class pe{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new pe(e,null)}static fail(e){return new pe(null,e)}static fromReplace(e,t,o,n){try{return pe.ok(e.replace(t,o,n))}catch(i){if(i instanceof An)return pe.fail(i.message);throw i}}}function Aa(r,e,t){let o=[];for(let n=0;n<r.childCount;n++){let i=r.child(n);i.content.size&&(i=i.copy(Aa(i.content,e,i))),i.isInline&&(i=e(i,t,n)),o.push(i)}return M.fromArray(o)}class Wt extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=e.resolve(this.from),n=o.node(o.sharedDepth(this.to)),i=new A(Aa(t.content,(a,l)=>!a.isAtom||!l.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),n),t.openStart,t.openEnd);return pe.fromReplace(e,this.from,this.to,i)}invert(){return new ht(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new Wt(t.pos,o.pos,this.mark)}merge(e){return e instanceof Wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Wt(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("addMark",Wt);class ht extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=new A(Aa(t.content,n=>n.mark(this.mark.removeFromSet(n.marks)),e),t.openStart,t.openEnd);return pe.fromReplace(e,this.from,this.to,o)}invert(){return new Wt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new ht(t.pos,o.pos,this.mark)}merge(e){return e instanceof ht&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ht(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ht(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("removeMark",ht);class qt extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return pe.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return pe.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let o=this.mark.addToSet(t.marks);if(o.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(o))return new qt(this.pos,t.marks[n]);return new qt(this.pos,this.mark)}}return new fr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new qt(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new qt(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("addNodeMark",qt);class fr extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return pe.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return pe.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new qt(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new fr(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new fr(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("removeNodeMark",fr);class be extends Te{constructor(e,t,o,n=!1){super(),this.from=e,this.to=t,this.slice=o,this.structure=n}apply(e){return this.structure&&Da(e,this.from,this.to)?pe.fail("Structure replace would overwrite content"):pe.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new We([this.from,this.to-this.from,this.slice.size])}invert(e){return new be(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deletedAcross&&o.deletedAcross?null:new be(t.pos,Math.max(t.pos,o.pos),this.slice,this.structure)}merge(e){if(!(e instanceof be)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?A.empty:new A(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new be(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?A.empty:new A(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new be(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new be(t.from,t.to,A.fromJSON(e,t.slice),!!t.structure)}}Te.jsonID("replace",be);class we extends Te{constructor(e,t,o,n,i,a,l=!1){super(),this.from=e,this.to=t,this.gapFrom=o,this.gapTo=n,this.slice=i,this.insert=a,this.structure=l}apply(e){if(this.structure&&(Da(e,this.from,this.gapFrom)||Da(e,this.gapTo,this.to)))return pe.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return pe.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,t.content);return o?pe.fromReplace(e,this.from,this.to,o):pe.fail("Content does not fit in gap")}getMap(){return new We([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new we(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return t.deletedAcross&&o.deletedAcross||n<t.pos||i>o.pos?null:new we(t.pos,o.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new we(t.from,t.to,t.gapFrom,t.gapTo,A.fromJSON(e,t.slice),t.insert,!!t.structure)}}Te.jsonID("replaceAround",we);function Da(r,e,t){let o=r.resolve(e),n=t-e,i=o.depth;for(;n>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,n--;if(n>0){let a=o.node(i).maybeChild(o.indexAfter(i));for(;n>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,n--}}return!1}function Mf(r,e,t,o){let n=[],i=[],a,l;r.doc.nodesBetween(e,t,(c,d,u)=>{if(!c.isInline)return;let p=c.marks;if(!o.isInSet(p)&&u.type.allowsMarkType(o.type)){let m=Math.max(d,e),h=Math.min(d+c.nodeSize,t),f=o.addToSet(p);for(let g=0;g<p.length;g++)p[g].isInSet(f)||(a&&a.to==m&&a.mark.eq(p[g])?a.to=h:n.push(a=new ht(m,h,p[g])));l&&l.to==m?l.to=h:i.push(l=new Wt(m,h,o))}}),n.forEach(c=>r.step(c)),i.forEach(c=>r.step(c))}function Tf(r,e,t,o){let n=[],i=0;r.doc.nodesBetween(e,t,(a,l)=>{if(!a.isInline)return;i++;let c=null;if(o instanceof Rn){let d=a.marks,u;for(;u=o.isInSet(d);)(c||(c=[])).push(u),d=u.removeFromSet(d)}else o?o.isInSet(a.marks)&&(c=[o]):c=a.marks;if(c&&c.length){let d=Math.min(l+a.nodeSize,t);for(let u=0;u<c.length;u++){let p=c[u],m;for(let h=0;h<n.length;h++){let f=n[h];f.step==i-1&&p.eq(n[h].style)&&(m=f)}m?(m.to=d,m.step=i):n.push({style:p,from:Math.max(l,e),to:d,step:i})}}}),n.forEach(a=>r.step(new ht(a.from,a.to,a.style)))}function Ia(r,e,t,o=t.contentMatch,n=!0){let i=r.doc.nodeAt(e),a=[],l=e+1;for(let c=0;c<i.childCount;c++){let d=i.child(c),u=l+d.nodeSize,p=o.matchType(d.type);if(!p)a.push(new be(l,u,A.empty));else{o=p;for(let m=0;m<d.marks.length;m++)t.allowsMarkType(d.marks[m].type)||r.step(new ht(l,u,d.marks[m]));if(n&&d.isText&&t.whitespace!="pre"){let m,h=/\r?\n|\r/g,f;for(;m=h.exec(d.text);)f||(f=new A(M.from(t.schema.text(" ",t.allowedMarks(d.marks))),0,0)),a.push(new be(l+m.index,l+m.index+m[0].length,f))}}l=u}if(!o.validEnd){let c=o.fillBefore(M.empty,!0);r.replace(l,l,new A(c,0,0))}for(let c=a.length-1;c>=0;c--)r.step(a[c])}function Of(r,e,t){return(e==0||r.canReplace(e,r.childCount))&&(t==r.childCount||r.canReplace(0,t))}function _r(r){let t=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let o=r.depth;;--o){let n=r.$from.node(o),i=r.$from.index(o),a=r.$to.indexAfter(o);if(o<r.depth&&n.canReplace(i,a,t))return o;if(o==0||n.type.spec.isolating||!Of(n,i,a))break}return null}function Vf(r,e,t){let{$from:o,$to:n,depth:i}=e,a=o.before(i+1),l=n.after(i+1),c=a,d=l,u=M.empty,p=0;for(let f=i,g=!1;f>t;f--)g||o.index(f)>0?(g=!0,u=M.from(o.node(f).copy(u)),p++):c--;let m=M.empty,h=0;for(let f=i,g=!1;f>t;f--)g||n.after(f+1)<n.end(f)?(g=!0,m=M.from(n.node(f).copy(m)),h++):d++;r.step(new we(c,d,a,l,new A(u.append(m),p,h),u.size-p,!0))}function La(r,e,t=null,o=r){let n=Pf(r,e),i=n&&Af(o,e);return i?n.map(Wc).concat({type:e,attrs:t}).concat(i.map(Wc)):null}function Wc(r){return{type:r,attrs:null}}function Pf(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.contentMatchAt(o).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return t.canReplaceWith(o,n,a)?i:null}function Af(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.child(o),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let c=(a.length?a[a.length-1]:e).contentMatch;for(let d=o;c&&d<n;d++)c=c.matchType(t.child(d).type);return!c||!c.validEnd?null:a}function Df(r,e,t){let o=M.empty;for(let a=t.length-1;a>=0;a--){if(o.size){let l=t[a].type.contentMatch.matchFragment(o);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=M.from(t[a].type.create(t[a].attrs,o))}let n=e.start,i=e.end;r.step(new we(n,i,n,i,new A(o,0,0),t.length,!0))}function If(r,e,t,o,n){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=r.steps.length;r.doc.nodesBetween(e,t,(a,l)=>{let c=typeof n=="function"?n(a):n;if(a.isTextblock&&!a.hasMarkup(o,c)&&Lf(r.doc,r.mapping.slice(i).map(l),o)){let d=null;if(o.schema.linebreakReplacement){let h=o.whitespace=="pre",f=!!o.contentMatch.matchType(o.schema.linebreakReplacement);h&&!f?d=!1:!h&&f&&(d=!0)}d===!1&&Uc(r,a,l,i),Ia(r,r.mapping.slice(i).map(l,1),o,void 0,d===null);let u=r.mapping.slice(i),p=u.map(l,1),m=u.map(l+a.nodeSize,1);return r.step(new we(p,m,p+1,m-1,new A(M.from(o.create(c,null,a.marks)),0,0),1,!0)),d===!0&&qc(r,a,l,i),!1}})}function qc(r,e,t,o){e.forEach((n,i)=>{if(n.isText){let a,l=/\r?\n|\r/g;for(;a=l.exec(n.text);){let c=r.mapping.slice(o).map(t+1+i+a.index);r.replaceWith(c,c+1,e.type.schema.linebreakReplacement.create())}}})}function Uc(r,e,t,o){e.forEach((n,i)=>{if(n.type==n.type.schema.linebreakReplacement){let a=r.mapping.slice(o).map(t+1+i);r.replaceWith(a,a+1,e.type.schema.text(`
|
|
15
|
-
`))}})}function Lf(r,e,t){let o=r.resolve(e),n=o.index();return o.parent.canReplaceWith(n,n+1,t)}function Rf(r,e,t,o,n){let i=r.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let a=t.create(o,null,n||i.marks);if(i.isLeaf)return r.replaceWith(e,e+i.nodeSize,a);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);r.step(new we(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new A(M.from(a),0,0),1,!0))}function Ct(r,e,t=1,o){let n=r.resolve(e),i=n.depth-t,a=o&&o[o.length-1]||n.parent;if(i<0||n.parent.type.spec.isolating||!n.parent.canReplace(n.index(),n.parent.childCount)||!a.type.validContent(n.parent.content.cutByIndex(n.index(),n.parent.childCount)))return!1;for(let d=n.depth-1,u=t-2;d>i;d--,u--){let p=n.node(d),m=n.index(d);if(p.type.spec.isolating)return!1;let h=p.content.cutByIndex(m,p.childCount),f=o&&o[u+1];f&&(h=h.replaceChild(0,f.type.create(f.attrs)));let g=o&&o[u]||p;if(!p.canReplace(m+1,p.childCount)||!g.type.validContent(h))return!1}let l=n.indexAfter(i),c=o&&o[0];return n.node(i).canReplaceWith(l,l,c?c.type:n.node(i+1).type)}function zf(r,e,t=1,o){let n=r.doc.resolve(e),i=M.empty,a=M.empty;for(let l=n.depth,c=n.depth-t,d=t-1;l>c;l--,d--){i=M.from(n.node(l).copy(i));let u=o&&o[d];a=M.from(u?u.type.create(u.attrs,a):n.node(l).copy(a))}r.step(new be(e,e,new A(i.append(a),t,t),!0))}function Ut(r,e){let t=r.resolve(e),o=t.index();return Kc(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(o,o+1)}function _f(r,e){e.content.size||r.type.compatibleContent(e.type);let t=r.contentMatchAt(r.childCount),{linebreakReplacement:o}=r.type.schema;for(let n=0;n<e.childCount;n++){let i=e.child(n),a=i.type==o?r.type.schema.nodes.text:i.type;if(t=t.matchType(a),!t||!r.type.allowsMarks(i.marks))return!1}return t.validEnd}function Kc(r,e){return!!(r&&e&&!r.isLeaf&&_f(r,e))}function jn(r,e,t=-1){let o=r.resolve(e);for(let n=o.depth;;n--){let i,a,l=o.index(n);if(n==o.depth?(i=o.nodeBefore,a=o.nodeAfter):t>0?(i=o.node(n+1),l++,a=o.node(n).maybeChild(l)):(i=o.node(n).maybeChild(l-1),a=o.node(n+1)),i&&!i.isTextblock&&Kc(i,a)&&o.node(n).canReplace(l,l+1))return e;if(n==0)break;e=t<0?o.before(n):o.after(n)}}function Ff(r,e,t){let o=null,{linebreakReplacement:n}=r.doc.type.schema,i=r.doc.resolve(e-t),a=i.node().type;if(n&&a.inlineContent){let u=a.whitespace=="pre",p=!!a.contentMatch.matchType(n);u&&!p?o=!1:!u&&p&&(o=!0)}let l=r.steps.length;if(o===!1){let u=r.doc.resolve(e+t);Uc(r,u.node(),u.before(),l)}a.inlineContent&&Ia(r,e+t-1,a,i.node().contentMatchAt(i.index()),o==null);let c=r.mapping.slice(l),d=c.map(e-t);if(r.step(new be(d,c.map(e+t,-1),A.empty,!0)),o===!0){let u=r.doc.resolve(d);qc(r,u.node(),u.before(),r.steps.length)}return r}function jf(r,e,t){let o=r.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),t))return e;if(o.parentOffset==0)for(let n=o.depth-1;n>=0;n--){let i=o.index(n);if(o.node(n).canReplaceWith(i,i,t))return o.before(n+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let n=o.depth-1;n>=0;n--){let i=o.indexAfter(n);if(o.node(n).canReplaceWith(i,i,t))return o.after(n+1);if(i<o.node(n).childCount)return null}return null}function Jc(r,e,t){let o=r.resolve(e);if(!t.content.size)return e;let n=t.content;for(let i=0;i<t.openStart;i++)n=n.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let a=o.depth;a>=0;a--){let l=a==o.depth?0:o.pos<=(o.start(a+1)+o.end(a+1))/2?-1:1,c=o.index(a)+(l>0?1:0),d=o.node(a),u=!1;if(i==1)u=d.canReplace(c,c,n);else{let p=d.contentMatchAt(c).findWrapping(n.firstChild.type);u=p&&d.canReplaceWith(c,c,p[0])}if(u)return l==0?o.pos:l<0?o.before(a+1):o.after(a+1)}return null}function Hn(r,e,t=e,o=A.empty){if(e==t&&!o.size)return null;let n=r.resolve(e),i=r.resolve(t);return Gc(n,i,o)?new be(e,t,o):new Hf(n,i,o).fit()}function Gc(r,e,t){return!t.openStart&&!t.openEnd&&r.start()==e.start()&&r.parent.canReplace(r.index(),e.index(),t.content)}class Hf{constructor(e,t,o){this.$from=e,this.$to=t,this.unplaced=o,this.frontier=[],this.placed=M.empty;for(let n=0;n<=e.depth;n++){let i=e.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(n))})}for(let n=e.depth;n>0;n--)this.placed=M.from(e.node(n).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,o=this.$from,n=this.close(e<0?this.$to:o.doc.resolve(e));if(!n)return null;let i=this.placed,a=o.depth,l=n.depth;for(;a&&l&&i.childCount==1;)i=i.firstChild.content,a--,l--;let c=new A(i,a,l);return e>-1?new we(o.pos,e,this.$to.pos,this.$to.end(),c,t):c.size||o.pos!=this.$to.pos?new be(o.pos,n.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,o=0,n=this.unplaced.openEnd;o<e;o++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=o){e=o;break}t=i.content}for(let t=1;t<=2;t++)for(let o=t==1?e:this.unplaced.openStart;o>=0;o--){let n,i=null;o?(i=Ra(this.unplaced.content,o-1).firstChild,n=i.content):n=this.unplaced.content;let a=n.firstChild;for(let l=this.depth;l>=0;l--){let{type:c,match:d}=this.frontier[l],u,p=null;if(t==1&&(a?d.matchType(a.type)||(p=d.fillBefore(M.from(a),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:l,parent:i,inject:p};if(t==2&&a&&(u=d.findWrapping(a.type)))return{sliceDepth:o,frontierDepth:l,parent:i,wrap:u};if(i&&d.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);return!n.childCount||n.firstChild.isLeaf?!1:(this.unplaced=new A(e,t+1,Math.max(o,n.size+t>=e.size-o?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);if(n.childCount<=1&&t>0){let i=e.size-t<=t+n.size;this.unplaced=new A(No(e,t-1,1),t-1,i?t-1:o)}else this.unplaced=new A(No(e,t,1),t,o)}placeNodes({sliceDepth:e,frontierDepth:t,parent:o,inject:n,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let a=this.unplaced,l=o?o.content:a.content,c=a.openStart-e,d=0,u=[],{match:p,type:m}=this.frontier[t];if(n){for(let g=0;g<n.childCount;g++)u.push(n.child(g));p=p.matchFragment(n)}let h=l.size+e-(a.content.size-a.openEnd);for(;d<l.childCount;){let g=l.child(d),b=p.matchType(g.type);if(!b)break;d++,(d>1||c==0||g.content.size)&&(p=b,u.push(Yc(g.mark(m.allowedMarks(g.marks)),d==1?c:0,d==l.childCount?h:-1)))}let f=d==l.childCount;f||(h=-1),this.placed=Bo(this.placed,t,M.from(u)),this.frontier[t].match=p,f&&h<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,b=l;g<h;g++){let y=b.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),b=y.content}this.unplaced=f?e==0?A.empty:new A(No(a.content,e-1,1),e-1,h<0?a.openEnd:e-1):new A(No(a.content,e,d),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!za(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:o}=this.$to,n=this.$to.after(o);for(;o>1&&n==this.$to.end(--o);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:o,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=za(e,t,n,o,i);if(a){for(let l=t-1;l>=0;l--){let{match:c,type:d}=this.frontier[l],u=za(e,l,d,c,!0);if(!u||u.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Bo(this.placed,t.depth,t.fit)),e=t.move;for(let o=t.depth+1;o<=e.depth;o++){let n=e.node(o),i=n.type.contentMatch.fillBefore(n.content,!0,e.index(o));this.openFrontierNode(n.type,n.attrs,i)}return e}openFrontierNode(e,t=null,o){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=Bo(this.placed,this.depth,M.from(e.create(t,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(M.empty,!0);t.childCount&&(this.placed=Bo(this.placed,this.frontier.length,t))}}function No(r,e,t){return e==0?r.cutByIndex(t,r.childCount):r.replaceChild(0,r.firstChild.copy(No(r.firstChild.content,e-1,t)))}function Bo(r,e,t){return e==0?r.append(t):r.replaceChild(r.childCount-1,r.lastChild.copy(Bo(r.lastChild.content,e-1,t)))}function Ra(r,e){for(let t=0;t<e;t++)r=r.firstChild.content;return r}function Yc(r,e,t){if(e<=0)return r;let o=r.content;return e>1&&(o=o.replaceChild(0,Yc(o.firstChild,e-1,o.childCount==1?t-1:0))),e>0&&(o=r.type.contentMatch.fillBefore(o).append(o),t<=0&&(o=o.append(r.type.contentMatch.matchFragment(o).fillBefore(M.empty,!0)))),r.copy(o)}function za(r,e,t,o,n){let i=r.node(e),a=n?r.indexAfter(e):r.index(e);if(a==i.childCount&&!t.compatibleContent(i.type))return null;let l=o.fillBefore(i.content,!0,a);return l&&!Wf(t,i.content,a)?l:null}function Wf(r,e,t){for(let o=t;o<e.childCount;o++)if(!r.allowsMarks(e.child(o).marks))return!0;return!1}function qf(r){return r.spec.defining||r.spec.definingForContent}function Uf(r,e,t,o){if(!o.size)return r.deleteRange(e,t);let n=r.doc.resolve(e),i=r.doc.resolve(t);if(Gc(n,i,o))return r.step(new be(e,t,o));let a=Qc(n,r.doc.resolve(t));a[a.length-1]==0&&a.pop();let l=-(n.depth+1);a.unshift(l);for(let m=n.depth,h=n.pos-1;m>0;m--,h--){let f=n.node(m).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;a.indexOf(m)>-1?l=m:n.before(m)==h&&a.splice(1,0,-m)}let c=a.indexOf(l),d=[],u=o.openStart;for(let m=o.content,h=0;;h++){let f=m.firstChild;if(d.push(f),h==o.openStart)break;m=f.content}for(let m=u-1;m>=0;m--){let h=d[m],f=qf(h.type);if(f&&!h.sameMarkup(n.node(Math.abs(l)-1)))u=m;else if(f||!h.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let h=(m+u+1)%(o.openStart+1),f=d[h];if(f)for(let g=0;g<a.length;g++){let b=a[(g+c)%a.length],y=!0;b<0&&(y=!1,b=-b);let k=n.node(b-1),v=n.index(b-1);if(k.canReplaceWith(v,v,f.type,f.marks))return r.replace(n.before(b),y?i.after(b):t,new A(Xc(o.content,0,o.openStart,h),h,o.openEnd))}}let p=r.steps.length;for(let m=a.length-1;m>=0&&(r.replace(e,t,o),!(r.steps.length>p));m--){let h=a[m];h<0||(e=n.before(h),t=i.after(h))}}function Xc(r,e,t,o,n){if(e<t){let i=r.firstChild;r=r.replaceChild(0,i.copy(Xc(i.content,e+1,t,o,i)))}if(e>o){let i=n.contentMatchAt(0),a=i.fillBefore(r).append(r);r=a.append(i.matchFragment(a).fillBefore(M.empty,!0))}return r}function Kf(r,e,t,o){if(!o.isInline&&e==t&&r.doc.resolve(e).parent.content.size){let n=jf(r.doc,e,o.type);n!=null&&(e=t=n)}r.replaceRange(e,t,new A(M.from(o),0,0))}function Jf(r,e,t){let o=r.doc.resolve(e),n=r.doc.resolve(t),i=Qc(o,n);for(let a=0;a<i.length;a++){let l=i[a],c=a==i.length-1;if(c&&l==0||o.node(l).type.contentMatch.validEnd)return r.delete(o.start(l),n.end(l));if(l>0&&(c||o.node(l-1).canReplace(o.index(l-1),n.indexAfter(l-1))))return r.delete(o.before(l),n.after(l))}for(let a=1;a<=o.depth&&a<=n.depth;a++)if(e-o.start(a)==o.depth-a&&t>o.end(a)&&n.end(a)-t!=n.depth-a&&o.start(a-1)==n.start(a-1)&&o.node(a-1).canReplace(o.index(a-1),n.index(a-1)))return r.delete(o.before(a),t);r.delete(e,t)}function Qc(r,e){let t=[],o=Math.min(r.depth,e.depth);for(let n=o;n>=0;n--){let i=r.start(n);if(i<r.pos-(r.depth-n)||e.end(n)>e.pos+(e.depth-n)||r.node(n).type.spec.isolating||e.node(n).type.spec.isolating)break;(i==e.start(n)||n==r.depth&&n==e.depth&&r.parent.inlineContent&&e.parent.inlineContent&&n&&e.start(n-1)==i-1)&&t.push(n)}return t}class Fr extends Te{constructor(e,t,o){super(),this.pos=e,this.attr=t,this.value=o}apply(e){let t=e.nodeAt(this.pos);if(!t)return pe.fail("No node at attribute step's position");let o=Object.create(null);for(let i in t.attrs)o[i]=t.attrs[i];o[this.attr]=this.value;let n=t.type.create(o,null,t.marks);return pe.fromReplace(e,this.pos,this.pos+1,new A(M.from(n),0,t.isLeaf?0:1))}getMap(){return We.empty}invert(e){return new Fr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Fr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Fr(t.pos,t.attr,t.value)}}Te.jsonID("attr",Fr);class Mo extends Te{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let o=e.type.create(t,e.content,e.marks);return pe.ok(o)}getMap(){return We.empty}invert(e){return new Mo(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Mo(t.attr,t.value)}}Te.jsonID("docAttr",Mo);let jr=class extends Error{};jr=function r(e){let t=Error.call(this,e);return t.__proto__=r.prototype,t},jr.prototype=Object.create(Error.prototype),jr.prototype.constructor=jr,jr.prototype.name="TransformError";class Zc{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Co}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new jr(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,o=A.empty){let n=Hn(this.doc,e,t,o);return n&&this.step(n),this}replaceWith(e,t,o){return this.replace(e,t,new A(M.from(o),0,0))}delete(e,t){return this.replace(e,t,A.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,o){return Uf(this,e,t,o),this}replaceRangeWith(e,t,o){return Kf(this,e,t,o),this}deleteRange(e,t){return Jf(this,e,t),this}lift(e,t){return Vf(this,e,t),this}join(e,t=1){return Ff(this,e,t),this}wrap(e,t){return Df(this,e,t),this}setBlockType(e,t=e,o,n=null){return If(this,e,t,o,n),this}setNodeMarkup(e,t,o=null,n){return Rf(this,e,t,o,n),this}setNodeAttribute(e,t,o){return this.step(new Fr(e,t,o)),this}setDocAttribute(e,t){return this.step(new Mo(e,t)),this}addNodeMark(e,t){return this.step(new qt(e,t)),this}removeNodeMark(e,t){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(t instanceof te)t.isInSet(o.marks)&&this.step(new fr(e,t));else{let n=o.marks,i,a=[];for(;i=t.isInSet(n);)a.push(new fr(e,i)),n=i.removeFromSet(n);for(let l=a.length-1;l>=0;l--)this.step(a[l])}return this}split(e,t=1,o){return zf(this,e,t,o),this}addMark(e,t,o){return Mf(this,e,t,o),this}removeMark(e,t,o){return Tf(this,e,t,o),this}clearIncompatible(e,t,o){return Ia(this,e,t,o),this}}const _a=Object.create(null);class W{constructor(e,t,o){this.$anchor=e,this.$head=t,this.ranges=o||[new Gf(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=A.empty){let o=t.content.lastChild,n=null;for(let l=0;l<t.openEnd;l++)n=o,o=o.lastChild;let i=e.steps.length,a=this.ranges;for(let l=0;l<a.length;l++){let{$from:c,$to:d}=a[l],u=e.mapping.slice(i);e.replaceRange(u.map(c.pos),u.map(d.pos),l?A.empty:t),l==0&&td(e,i,(o?o.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,t){let o=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:a,$to:l}=n[i],c=e.mapping.slice(o),d=c.map(a.pos),u=c.map(l.pos);i?e.deleteRange(d,u):(e.replaceRangeWith(d,u,t),td(e,o,t.isInline?-1:1))}}static findFrom(e,t,o=!1){let n=e.parent.inlineContent?new j(e):Hr(e.node(0),e.parent,e.pos,e.index(),t,o);if(n)return n;for(let i=e.depth-1;i>=0;i--){let a=t<0?Hr(e.node(0),e.node(i),e.before(i+1),e.index(i),t,o):Hr(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,o);if(a)return a}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new qe(e.node(0))}static atStart(e){return Hr(e,e,0,0,1)||new qe(e)}static atEnd(e){return Hr(e,e,e.content.size,e.childCount,-1)||new qe(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=_a[t.type];if(!o)throw new RangeError(`No selection type ${t.type} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in _a)throw new RangeError("Duplicate use of selection JSON ID "+e);return _a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return j.between(this.$anchor,this.$head).getBookmark()}}W.prototype.visible=!0;class Gf{constructor(e,t){this.$from=e,this.$to=t}}let $c=!1;function ed(r){!$c&&!r.parent.inlineContent&&($c=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+r.parent.type.name+")"))}class j extends W{constructor(e,t=e){ed(e),ed(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let o=e.resolve(t.map(this.head));if(!o.parent.inlineContent)return W.near(o);let n=e.resolve(t.map(this.anchor));return new j(n.parent.inlineContent?n:o,o)}replace(e,t=A.empty){if(super.replace(e,t),t==A.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof j&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Wn(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new j(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,o=t){let n=e.resolve(t);return new this(n,o==t?n:e.resolve(o))}static between(e,t,o){let n=e.pos-t.pos;if((!o||n)&&(o=n>=0?1:-1),!t.parent.inlineContent){let i=W.findFrom(t,o,!0)||W.findFrom(t,-o,!0);if(i)t=i.$head;else return W.near(t,o)}return e.parent.inlineContent||(n==0?e=t:(e=(W.findFrom(e,-o,!0)||W.findFrom(e,o,!0)).$anchor,e.pos<t.pos!=n<0&&(e=t))),new j(e,t)}}W.jsonID("text",j);class Wn{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Wn(e.map(this.anchor),e.map(this.head))}resolve(e){return j.between(e.resolve(this.anchor),e.resolve(this.head))}}class R extends W{constructor(e){let t=e.nodeAfter,o=e.node(0).resolve(e.pos+t.nodeSize);super(e,o),this.node=t}map(e,t){let{deleted:o,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return o?W.near(i):new R(i)}content(){return new A(M.from(this.node),0,0)}eq(e){return e instanceof R&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Fa(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new R(e.resolve(t.anchor))}static create(e,t){return new R(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}R.prototype.visible=!1,W.jsonID("node",R);class Fa{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:o}=e.mapResult(this.anchor);return t?new Wn(o,o):new Fa(o)}resolve(e){let t=e.resolve(this.anchor),o=t.nodeAfter;return o&&R.isSelectable(o)?new R(t):W.near(t)}}class qe extends W{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=A.empty){if(t==A.empty){e.delete(0,e.doc.content.size);let o=W.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new qe(e)}map(e){return new qe(e)}eq(e){return e instanceof qe}getBookmark(){return Yf}}W.jsonID("all",qe);const Yf={map(){return this},resolve(r){return new qe(r)}};function Hr(r,e,t,o,n,i=!1){if(e.inlineContent)return j.create(r,t);for(let a=o-(n>0?0:1);n>0?a<e.childCount:a>=0;a+=n){let l=e.child(a);if(l.isAtom){if(!i&&R.isSelectable(l))return R.create(r,t-(n<0?l.nodeSize:0))}else{let c=Hr(r,l,t+n,n<0?l.childCount:0,n,i);if(c)return c}t+=l.nodeSize*n}return null}function td(r,e,t){let o=r.steps.length-1;if(o<e)return;let n=r.steps[o];if(!(n instanceof be||n instanceof we))return;let i=r.mapping.maps[o],a;i.forEach((l,c,d,u)=>{a==null&&(a=u)}),r.setSelection(W.near(r.doc.resolve(a),t))}const rd=1,qn=2,od=4;class Xf extends Zc{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|rd)&~qn,this.storedMarks=null,this}get selectionSet(){return(this.updated&rd)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=qn,this}ensureMarks(e){return te.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&qn)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~qn,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let o=this.selection;return t&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||te.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,o){let n=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(o==null&&(o=t),o=o??t,!e)return this.deleteRange(t,o);let i=this.storedMarks;if(!i){let a=this.doc.resolve(t);i=o==t?a.marks():a.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(t,o,n.text(e,i)),this.selection.empty||this.setSelection(W.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=od,this}get scrolledIntoView(){return(this.updated&od)>0}}function nd(r,e){return!e||!r?r:r.bind(e)}class To{constructor(e,t,o){this.name=e,this.init=nd(t.init,o),this.apply=nd(t.apply,o)}}const Qf=[new To("doc",{init(r){return r.doc||r.schema.topNodeType.createAndFill()},apply(r){return r.doc}}),new To("selection",{init(r,e){return r.selection||W.atStart(e.doc)},apply(r){return r.selection}}),new To("storedMarks",{init(r){return r.storedMarks||null},apply(r,e,t,o){return o.selection.$cursor?r.storedMarks:null}}),new To("scrollToSelection",{init(){return 0},apply(r,e){return r.scrolledIntoView?e+1:e}})];class ja{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Qf.slice(),t&&t.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new To(o.key,o.spec.state,o))})}}class Wr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=t){let n=this.config.plugins[o];if(n.spec.filterTransaction&&!n.spec.filterTransaction.call(n,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],o=this.applyInner(e),n=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let l=this.config.plugins[a];if(l.spec.appendTransaction){let c=n?n[a].n:0,d=n?n[a].state:this,u=c<t.length&&l.spec.appendTransaction.call(l,c?t.slice(c):t,d,o);if(u&&o.filterTransaction(u,a)){if(u.setMeta("appendedTransaction",e),!n){n=[];for(let p=0;p<this.config.plugins.length;p++)n.push(p<a?{state:o,n:t.length}:{state:this,n:0})}t.push(u),o=o.applyInner(u),i=!0}n&&(n[a]={state:o,n:t.length})}}if(!i)return{state:o,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Wr(this.config),o=this.config.fields;for(let n=0;n<o.length;n++){let i=o[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Xf(this)}static create(e){let t=new ja(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Wr(t);for(let n=0;n<t.fields.length;n++)o[t.fields[n].name]=t.fields[n].init(e,o);return o}reconfigure(e){let t=new ja(this.schema,e.plugins),o=t.fields,n=new Wr(t);for(let i=0;i<o.length;i++){let a=o[i].name;n[a]=this.hasOwnProperty(a)?this[a]:o[i].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[o],i=n.spec.state;i&&i.toJSON&&(t[o]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,o){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let n=new ja(e.schema,e.plugins),i=new Wr(n);return n.fields.forEach(a=>{if(a.name=="doc")i.doc=Ht.fromJSON(e.schema,t.doc);else if(a.name=="selection")i.selection=W.fromJSON(i.doc,t.selection);else if(a.name=="storedMarks")t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let l in o){let c=o[l],d=c.spec.state;if(c.key==a.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[a.name]=d.fromJSON.call(c,e,t[l],i);return}}i[a.name]=a.init(e,i)}}),i}}function id(r,e,t){for(let o in r){let n=r[o];n instanceof Function?n=n.bind(e):o=="handleDOMEvents"&&(n=id(n,e,{})),t[o]=n}return t}class he{constructor(e){this.spec=e,this.props={},e.props&&id(e.props,this,this.props),this.key=e.key?e.key.key:ad("plugin")}getState(e){return e[this.key]}}const Ha=Object.create(null);function ad(r){return r in Ha?r+"$"+ ++Ha[r]:(Ha[r]=0,r+"$")}class Ae{constructor(e="key"){this.key=ad(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Se=function(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e},qr=function(r){let e=r.assignedSlot||r.parentNode;return e&&e.nodeType==11?e.host:e};let Wa=null;const Nt=function(r,e,t){let o=Wa||(Wa=document.createRange());return o.setEnd(r,t??r.nodeValue.length),o.setStart(r,e||0),o},Zf=function(){Wa=null},gr=function(r,e,t,o){return t&&(sd(r,e,t,o,-1)||sd(r,e,t,o,1))},$f=/^(img|br|input|textarea|hr)$/i;function sd(r,e,t,o,n){for(var i;;){if(r==t&&e==o)return!0;if(e==(n<0?0:Ye(r))){let a=r.parentNode;if(!a||a.nodeType!=1||Oo(r)||$f.test(r.nodeName)||r.contentEditable=="false")return!1;e=Se(r)+(n<0?0:1),r=a}else if(r.nodeType==1){let a=r.childNodes[e+(n<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((i=a.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=n;else return!1;else r=a,e=n<0?Ye(r):0}else return!1}}function Ye(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function eg(r,e){for(;;){if(r.nodeType==3&&e)return r;if(r.nodeType==1&&e>0){if(r.contentEditable=="false")return null;r=r.childNodes[e-1],e=Ye(r)}else if(r.parentNode&&!Oo(r))e=Se(r),r=r.parentNode;else return null}}function tg(r,e){for(;;){if(r.nodeType==3&&e<r.nodeValue.length)return r;if(r.nodeType==1&&e<r.childNodes.length){if(r.contentEditable=="false")return null;r=r.childNodes[e],e=0}else if(r.parentNode&&!Oo(r))e=Se(r)+1,r=r.parentNode;else return null}}function rg(r,e,t){for(let o=e==0,n=e==Ye(r);o||n;){if(r==t)return!0;let i=Se(r);if(r=r.parentNode,!r)return!1;o=o&&i==0,n=n&&i==Ye(r)}}function Oo(r){let e;for(let t=r;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==r||e.contentDOM==r)}const Un=function(r){return r.focusNode&&gr(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)};function br(r,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=r,t.key=t.code=e,t}function og(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ng(r,e,t){if(r.caretPositionFromPoint)try{let o=r.caretPositionFromPoint(e,t);if(o)return{node:o.offsetNode,offset:Math.min(Ye(o.offsetNode),o.offset)}}catch{}if(r.caretRangeFromPoint){let o=r.caretRangeFromPoint(e,t);if(o)return{node:o.startContainer,offset:Math.min(Ye(o.startContainer),o.startOffset)}}}const ft=typeof navigator<"u"?navigator:null,ld=typeof document<"u"?document:null,Kt=ft&&ft.userAgent||"",qa=/Edge\/(\d+)/.exec(Kt),cd=/MSIE \d/.exec(Kt),Ua=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),_e=!!(cd||Ua||qa),Jt=cd?document.documentMode:Ua?+Ua[1]:qa?+qa[1]:0,st=!_e&&/gecko\/(\d+)/i.test(Kt);st&&+(/Firefox\/(\d+)/.exec(Kt)||[0,0])[1];const Ka=!_e&&/Chrome\/(\d+)/.exec(Kt),Oe=!!Ka,dd=Ka?+Ka[1]:0,De=!_e&&!!ft&&/Apple Computer/.test(ft.vendor),Ur=De&&(/Mobile\/\w+/.test(Kt)||!!ft&&ft.maxTouchPoints>2),Xe=Ur||(ft?/Mac/.test(ft.platform):!1),ig=ft?/Win/.test(ft.platform):!1,Bt=/Android \d/.test(Kt),Vo=!!ld&&"webkitFontSmoothing"in ld.documentElement.style,ag=Vo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function sg(r){let e=r.defaultView&&r.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.documentElement.clientWidth,top:0,bottom:r.documentElement.clientHeight}}function Mt(r,e){return typeof r=="number"?r:r[e]}function lg(r){let e=r.getBoundingClientRect(),t=e.width/r.offsetWidth||1,o=e.height/r.offsetHeight||1;return{left:e.left,right:e.left+r.clientWidth*t,top:e.top,bottom:e.top+r.clientHeight*o}}function ud(r,e,t){let o=r.someProp("scrollThreshold")||0,n=r.someProp("scrollMargin")||5,i=r.dom.ownerDocument;for(let a=t||r.dom;a;){if(a.nodeType!=1){a=qr(a);continue}let l=a,c=l==i.body,d=c?sg(i):lg(l),u=0,p=0;if(e.top<d.top+Mt(o,"top")?p=-(d.top-e.top+Mt(n,"top")):e.bottom>d.bottom-Mt(o,"bottom")&&(p=e.bottom-e.top>d.bottom-d.top?e.top+Mt(n,"top")-d.top:e.bottom-d.bottom+Mt(n,"bottom")),e.left<d.left+Mt(o,"left")?u=-(d.left-e.left+Mt(n,"left")):e.right>d.right-Mt(o,"right")&&(u=e.right-d.right+Mt(n,"right")),u||p)if(c)i.defaultView.scrollBy(u,p);else{let h=l.scrollLeft,f=l.scrollTop;p&&(l.scrollTop+=p),u&&(l.scrollLeft+=u);let g=l.scrollLeft-h,b=l.scrollTop-f;e={left:e.left-g,top:e.top-b,right:e.right-g,bottom:e.bottom-b}}let m=c?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(m))break;a=m=="absolute"?a.offsetParent:qr(a)}}function cg(r){let e=r.dom.getBoundingClientRect(),t=Math.max(0,e.top),o,n;for(let i=(e.left+e.right)/2,a=t+1;a<Math.min(innerHeight,e.bottom);a+=5){let l=r.root.elementFromPoint(i,a);if(!l||l==r.dom||!r.dom.contains(l))continue;let c=l.getBoundingClientRect();if(c.top>=t-20){o=l,n=c.top;break}}return{refDOM:o,refTop:n,stack:pd(r.dom)}}function pd(r){let e=[],t=r.ownerDocument;for(let o=r;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),r!=t);o=qr(o));return e}function dg({refDOM:r,refTop:e,stack:t}){let o=r?r.getBoundingClientRect().top:0;md(t,o==0?0:o-e)}function md(r,e){for(let t=0;t<r.length;t++){let{dom:o,top:n,left:i}=r[t];o.scrollTop!=n+e&&(o.scrollTop=n+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let Kr=null;function ug(r){if(r.setActive)return r.setActive();if(Kr)return r.focus(Kr);let e=pd(r);r.focus(Kr==null?{get preventScroll(){return Kr={preventScroll:!0},!0}}:void 0),Kr||(Kr=!1,md(e,0))}function hd(r,e){let t,o=2e8,n,i=0,a=e.top,l=e.top,c,d;for(let u=r.firstChild,p=0;u;u=u.nextSibling,p++){let m;if(u.nodeType==1)m=u.getClientRects();else if(u.nodeType==3)m=Nt(u).getClientRects();else continue;for(let h=0;h<m.length;h++){let f=m[h];if(f.top<=a&&f.bottom>=l){a=Math.max(f.bottom,a),l=Math.min(f.top,l);let g=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(g<o){t=u,o=g,n=g&&t.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,u.nodeType==1&&g&&(i=p+(e.left>=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!c&&f.left<=e.left&&f.right>=e.left&&(c=u,d={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!t&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(i=p+1)}}return!t&&c&&(t=c,n=d,o=0),t&&t.nodeType==3?pg(t,n):!t||o&&t.nodeType==1?{node:r,offset:i}:hd(t,n)}function pg(r,e){let t=r.nodeValue.length,o=document.createRange();for(let n=0;n<t;n++){o.setEnd(r,n+1),o.setStart(r,n);let i=Gt(o,1);if(i.top!=i.bottom&&Ja(e,i))return{node:r,offset:n+(e.left>=(i.left+i.right)/2?1:0)}}return{node:r,offset:0}}function Ja(r,e){return r.left>=e.left-1&&r.left<=e.right+1&&r.top>=e.top-1&&r.top<=e.bottom+1}function mg(r,e){let t=r.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<r.getBoundingClientRect().left?t:r}function hg(r,e,t){let{node:o,offset:n}=hd(e,t),i=-1;if(o.nodeType==1&&!o.firstChild){let a=o.getBoundingClientRect();i=a.left!=a.right&&t.left>(a.left+a.right)/2?1:-1}return r.docView.posFromDOM(o,n,i)}function fg(r,e,t,o){let n=-1;for(let i=e,a=!1;i!=r.dom;){let l=r.docView.nearestDesc(i,!0),c;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((c=l.dom.getBoundingClientRect()).width||c.height)&&(l.node.isBlock&&l.parent&&(!a&&c.left>o.left||c.top>o.top?n=l.posBefore:(!a&&c.right<o.left||c.bottom<o.top)&&(n=l.posAfter),a=!0),!l.contentDOM&&n<0&&!l.node.isText))return(l.node.isBlock?o.top<(c.top+c.bottom)/2:o.left<(c.left+c.right)/2)?l.posBefore:l.posAfter;i=l.dom.parentNode}return n>-1?n:r.docView.posFromDOM(e,t,-1)}function fd(r,e,t){let o=r.childNodes.length;if(o&&t.top<t.bottom)for(let n=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-t.top)/(t.bottom-t.top))-2)),i=n;;){let a=r.childNodes[i];if(a.nodeType==1){let l=a.getClientRects();for(let c=0;c<l.length;c++){let d=l[c];if(Ja(e,d))return fd(a,e,d)}}if((i=(i+1)%o)==n)break}return r}function gg(r,e){let t=r.dom.ownerDocument,o,n=0,i=ng(t,e.left,e.top);i&&({node:o,offset:n}=i);let a=(r.root.elementFromPoint?r.root:t).elementFromPoint(e.left,e.top),l;if(!a||!r.dom.contains(a.nodeType!=1?a.parentNode:a)){let d=r.dom.getBoundingClientRect();if(!Ja(e,d)||(a=fd(r.dom,e,d),!a))return null}if(De)for(let d=a;o&&d;d=qr(d))d.draggable&&(o=void 0);if(a=mg(a,e),o){if(st&&o.nodeType==1&&(n=Math.min(n,o.childNodes.length),n<o.childNodes.length)){let u=o.childNodes[n],p;u.nodeName=="IMG"&&(p=u.getBoundingClientRect()).right<=e.left&&p.bottom>e.top&&n++}let d;Vo&&n&&o.nodeType==1&&(d=o.childNodes[n-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=e.top&&n--,o==r.dom&&n==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?l=r.state.doc.content.size:(n==0||o.nodeType!=1||o.childNodes[n-1].nodeName!="BR")&&(l=fg(r,o,n,e))}l==null&&(l=hg(r,a,e));let c=r.docView.nearestDesc(a,!0);return{pos:l,inside:c?c.posAtStart-c.border:-1}}function gd(r){return r.top<r.bottom||r.left<r.right}function Gt(r,e){let t=r.getClientRects();if(t.length){let o=t[e<0?0:t.length-1];if(gd(o))return o}return Array.prototype.find.call(t,gd)||r.getBoundingClientRect()}const bg=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function bd(r,e,t){let{node:o,offset:n,atom:i}=r.docView.domFromPos(e,t<0?-1:1),a=Vo||st;if(o.nodeType==3)if(a&&(bg.test(o.nodeValue)||(t<0?!n:n==o.nodeValue.length))){let c=Gt(Nt(o,n,n),t);if(st&&n&&/\s/.test(o.nodeValue[n-1])&&n<o.nodeValue.length){let d=Gt(Nt(o,n-1,n-1),-1);if(d.top==c.top){let u=Gt(Nt(o,n,n+1),-1);if(u.top!=c.top)return Po(u,u.left<d.left)}}return c}else{let c=n,d=n,u=t<0?1:-1;return t<0&&!n?(d++,u=-1):t>=0&&n==o.nodeValue.length?(c--,u=1):t<0?c--:d++,Po(Gt(Nt(o,c,d),u),u<0)}if(!r.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&n&&(t<0||n==Ye(o))){let c=o.childNodes[n-1];if(c.nodeType==1)return Ga(c.getBoundingClientRect(),!1)}if(i==null&&n<Ye(o)){let c=o.childNodes[n];if(c.nodeType==1)return Ga(c.getBoundingClientRect(),!0)}return Ga(o.getBoundingClientRect(),t>=0)}if(i==null&&n&&(t<0||n==Ye(o))){let c=o.childNodes[n-1],d=c.nodeType==3?Nt(c,Ye(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(d)return Po(Gt(d,1),!1)}if(i==null&&n<Ye(o)){let c=o.childNodes[n];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let d=c?c.nodeType==3?Nt(c,0,a?0:1):c.nodeType==1?c:null:null;if(d)return Po(Gt(d,-1),!0)}return Po(Gt(o.nodeType==3?Nt(o):o,-t),t>=0)}function Po(r,e){if(r.width==0)return r;let t=e?r.left:r.right;return{top:r.top,bottom:r.bottom,left:t,right:t}}function Ga(r,e){if(r.height==0)return r;let t=e?r.top:r.bottom;return{top:t,bottom:t,left:r.left,right:r.right}}function wd(r,e,t){let o=r.state,n=r.root.activeElement;o!=e&&r.updateState(e),n!=r.dom&&r.focus();try{return t()}finally{o!=e&&r.updateState(o),n!=r.dom&&n&&n.focus()}}function wg(r,e,t){let o=e.selection,n=t=="up"?o.$from:o.$to;return wd(r,e,()=>{let{node:i}=r.docView.domFromPos(n.pos,t=="up"?-1:1);for(;;){let l=r.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let a=bd(r,n.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=Nt(l,0,l.nodeValue.length).getClientRects();else continue;for(let d=0;d<c.length;d++){let u=c[d];if(u.bottom>u.top+1&&(t=="up"?a.top-u.top>(u.bottom-a.top)*2:u.bottom-a.bottom>(a.bottom-u.top)*2))return!1}}return!0})}const yg=/[\u0590-\u08ac]/;function vg(r,e,t){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let n=o.parentOffset,i=!n,a=n==o.parent.content.size,l=r.domSelection();return l?!yg.test(o.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:a:wd(r,e,()=>{let{focusNode:c,focusOffset:d,anchorNode:u,anchorOffset:p}=r.domSelectionRange(),m=l.caretBidiLevel;l.modify("move",t,"character");let h=o.depth?r.docView.domAfterPos(o.before()):r.dom,{focusNode:f,focusOffset:g}=r.domSelectionRange(),b=f&&!h.contains(f.nodeType==1?f:f.parentNode)||c==f&&d==g;try{l.collapse(u,p),c&&(c!=u||d!=p)&&l.extend&&l.extend(c,d)}catch{}return m!=null&&(l.caretBidiLevel=m),b}):o.pos==o.start()||o.pos==o.end()}let yd=null,vd=null,xd=!1;function xg(r,e,t){return yd==e&&vd==t?xd:(yd=e,vd=t,xd=t=="up"||t=="down"?wg(r,e,t):vg(r,e,t))}const Qe=0,kd=1,wr=2,gt=3;class Ao{constructor(e,t,o,n){this.parent=e,this.children=t,this.dom=o,this.contentDOM=n,this.dirty=Qe,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,o=this.posAtStart;;t++){let n=this.children[t];if(n==e)return o;o+=n.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,a;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(a)+a.size:this.posAtStart}else{let i,a;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}let n;if(e==this.dom&&this.contentDOM)n=t>Se(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!1;break}if(i.previousSibling)break}if(n==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!0;break}if(i.nextSibling)break}}return n??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let o=!0,n=e;n;n=n.parentNode){let i=this.getDesc(n),a;if(i&&(!t||i.node))if(o&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))o=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let o=t;o;o=o.parent)if(o==this)return t}posFromDOM(e,t,o){for(let n=e;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(e,t,o)}return-1}descAt(e){for(let t=0,o=0;t<this.children.length;t++){let n=this.children[t],i=o+n.size;if(o==e&&i!=o){for(;!n.border&&n.children.length;)for(let a=0;a<n.children.length;a++){let l=n.children[a];if(l.size){n=l;break}}return n}if(e<i)return n.descAt(e-o-n.border);o=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,n=0;for(let i=0;o<this.children.length;o++){let a=this.children[o],l=i+a.size;if(l>e||a instanceof Cd){n=e-i;break}i=l}if(n)return this.children[o].domFromPos(n-this.children[o].border,t);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof Ed&&i.side>=0;o--);if(t<=0){let i,a=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,a=!1);return i&&t&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?Se(i.dom)+1:0}}else{let i,a=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,a=!1);return i&&a&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?Se(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let n=-1,i=-1;for(let a=o,l=0;;l++){let c=this.children[l],d=a+c.size;if(n==-1&&e<=d){let u=a+c.border;if(e>=u&&t<=d-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,t,u);e=a;for(let p=l;p>0;p--){let m=this.children[p-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){n=Se(m.dom)+1;break}e-=m.size}n==-1&&(n=0)}if(n>-1&&(d>t||l==this.children.length-1)){t=d;for(let u=l+1;u<this.children.length;u++){let p=this.children[u];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(-1)){i=Se(p.dom);break}t+=p.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=d}return{node:this.contentDOM,from:e,to:t,fromOffset:n,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:o}=this.domFromPos(e,0);if(t.nodeType!=1||o==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[o]}setSelection(e,t,o,n=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let h=0,f=0;h<this.children.length;h++){let g=this.children[h],b=f+g.size;if(i>f&&a<b)return g.setSelection(e-f-g.border,t-f-g.border,o,n);f=b}let l=this.domFromPos(e,e?-1:1),c=t==e?l:this.domFromPos(t,t?-1:1),d=o.root.getSelection(),u=o.domSelectionRange(),p=!1;if((st||De)&&e==t){let{node:h,offset:f}=l;if(h.nodeType==3){if(p=!!(f&&h.nodeValue[f-1]==`
|
|
16
|
-
`),p&&f==h.nodeValue.length)for(let g=h,b;g;g=g.parentNode){if(b=g.nextSibling){b.nodeName=="BR"&&(l=c={node:b.parentNode,offset:Se(b)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=h.childNodes[f-1];p=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(st&&u.focusNode&&u.focusNode!=c.node&&u.focusNode.nodeType==1){let h=u.focusNode.childNodes[u.focusOffset];h&&h.contentEditable=="false"&&(n=!0)}if(!(n||p&&De)&&gr(l.node,l.offset,u.anchorNode,u.anchorOffset)&&gr(c.node,c.offset,u.focusNode,u.focusOffset))return;let m=!1;if((d.extend||e==t)&&!p){d.collapse(l.node,l.offset);try{e!=t&&d.extend(c.node,c.offset),m=!0}catch{}}if(!m){if(e>t){let f=l;l=c,c=f}let h=document.createRange();h.setEnd(c.node,c.offset),h.setStart(l.node,l.offset),d.removeAllRanges(),d.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let o=0,n=0;n<this.children.length;n++){let i=this.children[n],a=o+i.size;if(o==a?e<=a&&t>=o:e<a&&t>o){let l=o+i.border,c=a-i.border;if(e>=l&&t<=c){this.dirty=e==o||t==a?wr:kd,e==l&&t==c&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=gt:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?wr:gt}o=a}this.dirty=wr}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let o=e==1?wr:kd;t.dirty<o&&(t.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Ed extends Ao{constructor(e,t,o,n){let i,a=t.type.toDOM;if(typeof a=="function"&&(a=a(o,()=>{if(!i)return n;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let l=document.createElement("span");l.appendChild(a),a=l}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Qe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class kg extends Ao{constructor(e,t,o,n){super(e,[],t,null),this.textDOM=o,this.text=n}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class yr extends Ao{constructor(e,t,o,n,i){super(e,[],o,n),this.mark=t,this.spec=i}static create(e,t,o,n){let i=n.nodeViews[t.type.name],a=i&&i(t,n,o);return(!a||!a.dom)&&(a=hr.renderSpec(document,t.type.spec.toDOM(t,o),null,t.attrs)),new yr(e,t,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty>||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=gt&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Qe){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=Qe}}slice(e,t,o){let n=yr.create(this.parent,this.mark,!0,o),i=this.children,a=this.size;t<a&&(i=Xa(i,t,a,o)),e>0&&(i=Xa(i,0,e,o));for(let l=0;l<i.length;l++)i[l].parent=n;return n.children=i,n}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Yt extends Ao{constructor(e,t,o,n,i,a,l,c,d){super(e,[],i,a),this.node=t,this.outerDeco=o,this.innerDeco=n,this.nodeDOM=l}static create(e,t,o,n,i,a){let l=i.nodeViews[t.type.name],c,d=l&&l(t,i,()=>{if(!c)return a;if(c.parent)return c.parent.posBeforeChild(c)},o,n),u=d&&d.dom,p=d&&d.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:p}=hr.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs));!p&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let m=u;return u=Md(u,o,t),d?c=new Eg(e,t,o,n,u,p||null,m,d,i,a+1):t.isText?new Kn(e,t,o,n,u,m,i):new Yt(e,t,o,n,u,p||null,m,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let o=this.children[t];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>M.empty)}return e}matchesNode(e,t,o){return this.dirty==Qe&&e.eq(this.node)&&Jn(t,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let o=this.node.inlineContent,n=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,l=i&&i.pos<0,c=new Cg(this,a&&a.node,e);Mg(this.node,this.innerDeco,(d,u,p)=>{d.spec.marks?c.syncToMarks(d.spec.marks,o,e):d.type.side>=0&&!p&&c.syncToMarks(u==this.node.childCount?te.none:this.node.child(u).marks,o,e),c.placeWidget(d,e,n)},(d,u,p,m)=>{c.syncToMarks(d.marks,o,e);let h;c.findNodeMatch(d,u,p,m)||l&&e.state.selection.from>n&&e.state.selection.to<n+d.nodeSize&&(h=c.findIndexWithChild(i.node))>-1&&c.updateNodeAt(d,u,p,h,e)||c.updateNextNode(d,u,p,e,m,n)||c.addNode(d,u,p,e,n),n+=d.nodeSize}),c.syncToMarks([],o,e),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==wr)&&(a&&this.protectLocalComposition(e,a),Nd(this.contentDOM,this.children,e),Ur&&Tg(this.dom))}localCompositionInfo(e,t){let{from:o,to:n}=e.state.selection;if(!(e.state.selection instanceof j)||o<t||n>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let a=i.nodeValue,l=Og(this.node.content,a,o-t,n-t);return l<0?null:{node:i,pos:l,text:a}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:o,text:n}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new kg(this,i,t,n);e.input.compositionNodes.push(a),this.children=Xa(this.children,o,o+n.length,e,a)}update(e,t,o,n){return this.dirty==gt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,o,n),!0)}updateInner(e,t,o,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=Qe}updateOuterDeco(e){if(Jn(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Bd(this.dom,this.nodeDOM,Ya(this.outerDeco,this.node,t),Ya(e,this.node,t)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Sd(r,e,t,o,n){Md(o,e,r);let i=new Yt(void 0,r,e,t,o,o,o,n,0);return i.contentDOM&&i.updateChildren(n,0),i}class Kn extends Yt{constructor(e,t,o,n,i,a,l){super(e,t,o,n,i,null,a,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,o,n){return this.dirty==gt||this.dirty!=Qe&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Qe||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=Qe,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,o){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,o){let n=this.node.cut(e,t),i=document.createTextNode(n.text);return new Kn(this.parent,n,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=gt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Cd extends Ao{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Qe&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Eg extends Yt{constructor(e,t,o,n,i,a,l,c,d,u){super(e,t,o,n,i,a,l,d,u),this.spec=c}update(e,t,o,n){if(this.dirty==gt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,o);return i&&this.updateInner(e,t,o,n),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,o,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,o,n){this.spec.setSelection?this.spec.setSelection(e,t,o.root):super.setSelection(e,t,o,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Nd(r,e,t){let o=r.firstChild,n=!1;for(let i=0;i<e.length;i++){let a=e[i],l=a.dom;if(l.parentNode==r){for(;l!=o;)o=Td(o),n=!0;o=o.nextSibling}else n=!0,r.insertBefore(l,o);if(a instanceof yr){let c=o?o.previousSibling:r.lastChild;Nd(a.contentDOM,a.children,t),o=c?c.nextSibling:r.firstChild}}for(;o;)o=Td(o),n=!0;n&&t.trackWrites==r&&(t.trackWrites=null)}const Do=function(r){r&&(this.nodeName=r)};Do.prototype=Object.create(null);const vr=[new Do];function Ya(r,e,t){if(r.length==0)return vr;let o=t?vr[0]:new Do,n=[o];for(let i=0;i<r.length;i++){let a=r[i].type.attrs;if(a){a.nodeName&&n.push(o=new Do(a.nodeName));for(let l in a){let c=a[l];c!=null&&(t&&n.length==1&&n.push(o=new Do(e.isInline?"span":"div")),l=="class"?o.class=(o.class?o.class+" ":"")+c:l=="style"?o.style=(o.style?o.style+";":"")+c:l!="nodeName"&&(o[l]=c))}}}return n}function Bd(r,e,t,o){if(t==vr&&o==vr)return e;let n=e;for(let i=0;i<o.length;i++){let a=o[i],l=t[i];if(i){let c;l&&l.nodeName==a.nodeName&&n!=r&&(c=n.parentNode)&&c.nodeName.toLowerCase()==a.nodeName||(c=document.createElement(a.nodeName),c.pmIsDeco=!0,c.appendChild(n),l=vr[0]),n=c}Sg(n,l||vr[0],a)}return n}function Sg(r,e,t){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in t)&&r.removeAttribute(o);for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&t[o]!=e[o]&&r.setAttribute(o,t[o]);if(e.class!=t.class){let o=e.class?e.class.split(" ").filter(Boolean):[],n=t.class?t.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)n.indexOf(o[i])==-1&&r.classList.remove(o[i]);for(let i=0;i<n.length;i++)o.indexOf(n[i])==-1&&r.classList.add(n[i]);r.classList.length==0&&r.removeAttribute("class")}if(e.style!=t.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=o.exec(e.style);)r.style.removeProperty(n[1])}t.style&&(r.style.cssText+=t.style)}}function Md(r,e,t){return Bd(r,r,vr,Ya(e,t,r.nodeType!=1))}function Jn(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].type.eq(e[t].type))return!1;return!0}function Td(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Cg{constructor(e,t,o){this.lock=t,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Ng(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let o=e;o<t;o++)this.top.children[o].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,o){let n=0,i=this.stack.length>>1,a=Math.min(i,e.length);for(;n<a&&(n==i-1?this.top:this.stack[n+1<<1]).matchesMark(e[n])&&e[n].type.spec.spanning!==!1;)n++;for(;n<i;)this.destroyRest(),this.top.dirty=Qe,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let c=this.index;c<Math.min(this.index+3,this.top.children.length);c++){let d=this.top.children[c];if(d.matchesMark(e[i])&&!this.isLocked(d.dom)){l=c;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let c=yr.create(this.top,e[i],t,o);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,o,n){let i=-1,a;if(n>=this.preMatch.index&&(a=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,o))i=this.top.children.indexOf(a,this.index);else for(let l=this.index,c=Math.min(this.top.children.length,l+5);l<c;l++){let d=this.top.children[l];if(d.matchesNode(e,t,o)&&!this.preMatch.matched.has(d)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,o,n,i){let a=this.top.children[n];return a.dirty==gt&&a.dom==a.contentDOM&&(a.dirty=wr),a.update(e,t,o,i)?(this.destroyBetween(this.index,n),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let n=this.index;n<this.top.children.length;n++)if(this.top.children[n]==o)return n}return-1}e=t}}updateNextNode(e,t,o,n,i,a){for(let l=this.index;l<this.top.children.length;l++){let c=this.top.children[l];if(c instanceof Yt){let d=this.preMatch.matched.get(c);if(d!=null&&d!=i)return!1;let u=c.dom,p,m=this.isLocked(u)&&!(e.isText&&c.node&&c.node.isText&&c.nodeDOM.nodeValue==e.text&&c.dirty!=gt&&Jn(t,c.outerDeco));if(!m&&c.update(e,t,o,n))return this.destroyBetween(this.index,l),c.dom!=u&&(this.changed=!0),this.index++,!0;if(!m&&(p=this.recreateWrapper(c,e,t,o,n,a)))return this.destroyBetween(this.index,l),this.top.children[this.index]=p,p.contentDOM&&(p.dirty=wr,p.updateChildren(n,a+1),p.dirty=Qe),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,o,n,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Jn(o,e.outerDeco)||!n.eq(e.innerDeco))return null;let l=Yt.create(this.top,t,o,n,i,a);if(l.contentDOM){l.children=e.children,e.children=[];for(let c of l.children)c.parent=l}return e.destroy(),l}addNode(e,t,o,n,i){let a=Yt.create(this.top,e,t,o,n,i);a.contentDOM&&a.updateChildren(n,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,o){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(e)&&(e==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let i=new Ed(this.top,e,t,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof yr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Kn)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((De||Oe)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let n=new Cd(this.top,[],o,null);t!=this.top?t.children.push(n):t.children.splice(this.index++,0,n),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Ng(r,e){let t=e,o=t.children.length,n=r.childCount,i=new Map,a=[];e:for(;n>0;){let l;for(;;)if(o){let d=t.children[o-1];if(d instanceof yr)t=d,o=d.children.length;else{l=d,o--;break}}else{if(t==e)break e;o=t.parent.children.indexOf(t),t=t.parent}let c=l.node;if(c){if(c!=r.child(n-1))break;--n,i.set(l,n),a.push(l)}}return{index:n,matched:i,matches:a.reverse()}}function Bg(r,e){return r.type.side-e.type.side}function Mg(r,e,t,o){let n=e.locals(r),i=0;if(n.length==0){for(let d=0;d<r.childCount;d++){let u=r.child(d);o(u,n,e.forChild(i,u),d),i+=u.nodeSize}return}let a=0,l=[],c=null;for(let d=0;;){let u,p;for(;a<n.length&&n[a].to==i;){let b=n[a++];b.widget&&(u?(p||(p=[u])).push(b):u=b)}if(u)if(p){p.sort(Bg);for(let b=0;b<p.length;b++)t(p[b],d,!!c)}else t(u,d,!!c);let m,h;if(c)h=-1,m=c,c=null;else if(d<r.childCount)h=d,m=r.child(d++);else break;for(let b=0;b<l.length;b++)l[b].to<=i&&l.splice(b--,1);for(;a<n.length&&n[a].from<=i&&n[a].to>i;)l.push(n[a++]);let f=i+m.nodeSize;if(m.isText){let b=f;a<n.length&&n[a].from<b&&(b=n[a].from);for(let y=0;y<l.length;y++)l[y].to<b&&(b=l[y].to);b<f&&(c=m.cut(b-i),m=m.cut(0,b-i),f=b,h=-1)}else for(;a<n.length&&n[a].to<f;)a++;let g=m.isInline&&!m.isLeaf?l.filter(b=>!b.inline):l.slice();o(m,g,e.forChild(i,m),h),i=f}}function Tg(r){if(r.nodeName=="UL"||r.nodeName=="OL"){let e=r.style.cssText;r.style.cssText=e+"; list-style: square !important",window.getComputedStyle(r).listStyle,r.style.cssText=e}}function Og(r,e,t,o){for(let n=0,i=0;n<r.childCount&&i<=o;){let a=r.child(n++),l=i;if(i+=a.nodeSize,!a.isText)continue;let c=a.text;for(;n<r.childCount;){let d=r.child(n++);if(i+=d.nodeSize,!d.isText)break;c+=d.text}if(i>=t){if(i>=o&&c.slice(o-e.length-l,o-l)==e)return o-e.length;let d=l<o?c.lastIndexOf(e,o-l-1):-1;if(d>=0&&d+e.length+l>=t)return l+d;if(t==o&&c.length>=o+e.length-l&&c.slice(o-l,o-l+e.length)==e)return o}}return-1}function Xa(r,e,t,o,n){let i=[];for(let a=0,l=0;a<r.length;a++){let c=r[a],d=l,u=l+=c.size;d>=t||u<=e?i.push(c):(d<e&&i.push(c.slice(0,e-d,o)),n&&(i.push(n),n=void 0),u>t&&i.push(c.slice(t-d,c.size,o)))}return i}function Qa(r,e=null){let t=r.domSelectionRange(),o=r.state.doc;if(!t.focusNode)return null;let n=r.docView.nearestDesc(t.focusNode),i=n&&n.size==0,a=r.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(a<0)return null;let l=o.resolve(a),c,d;if(Un(t)){for(c=a;n&&!n.node;)n=n.parent;let p=n.node;if(n&&p.isAtom&&R.isSelectable(p)&&n.parent&&!(p.isInline&&rg(t.focusNode,t.focusOffset,n.dom))){let m=n.posBefore;d=new R(a==m?l:o.resolve(m))}}else{if(t instanceof r.dom.ownerDocument.defaultView.Selection&&t.rangeCount>1){let p=a,m=a;for(let h=0;h<t.rangeCount;h++){let f=t.getRangeAt(h);p=Math.min(p,r.docView.posFromDOM(f.startContainer,f.startOffset,1)),m=Math.max(m,r.docView.posFromDOM(f.endContainer,f.endOffset,-1))}if(p<0)return null;[c,a]=m==r.state.selection.anchor?[m,p]:[p,m],l=o.resolve(a)}else c=r.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(c<0)return null}let u=o.resolve(c);if(!d){let p=e=="pointer"||r.state.selection.head<l.pos&&!i?1:-1;d=$a(r,u,l,p)}return d}function Od(r){return r.editable?r.hasFocus():Rd(r)&&document.activeElement&&document.activeElement.contains(r.dom)}function Tt(r,e=!1){let t=r.state.selection;if(Dd(r,t),!!Od(r)){if(!e&&r.input.mouseDown&&r.input.mouseDown.allowDefault&&Oe){let o=r.domSelectionRange(),n=r.domObserver.currentSelection;if(o.anchorNode&&n.anchorNode&&gr(o.anchorNode,o.anchorOffset,n.anchorNode,n.anchorOffset)){r.input.mouseDown.delayedSelectionSync=!0,r.domObserver.setCurSelection();return}}if(r.domObserver.disconnectSelection(),r.cursorWrapper)Pg(r);else{let{anchor:o,head:n}=t,i,a;Vd&&!(t instanceof j)&&(t.$from.parent.inlineContent||(i=Pd(r,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(a=Pd(r,t.to))),r.docView.setSelection(o,n,r,e),Vd&&(i&&Ad(i),a&&Ad(a)),t.visible?r.dom.classList.remove("ProseMirror-hideselection"):(r.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Vg(r))}r.domObserver.setCurSelection(),r.domObserver.connectSelection()}}const Vd=De||Oe&&dd<63;function Pd(r,e){let{node:t,offset:o}=r.docView.domFromPos(e,0),n=o<t.childNodes.length?t.childNodes[o]:null,i=o?t.childNodes[o-1]:null;if(De&&n&&n.contentEditable=="false")return Za(n);if((!n||n.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(n)return Za(n);if(i)return Za(i)}}function Za(r){return r.contentEditable="true",De&&r.draggable&&(r.draggable=!1,r.wasDraggable=!0),r}function Ad(r){r.contentEditable="false",r.wasDraggable&&(r.draggable=!0,r.wasDraggable=null)}function Vg(r){let e=r.dom.ownerDocument;e.removeEventListener("selectionchange",r.input.hideSelectionGuard);let t=r.domSelectionRange(),o=t.anchorNode,n=t.anchorOffset;e.addEventListener("selectionchange",r.input.hideSelectionGuard=()=>{(t.anchorNode!=o||t.anchorOffset!=n)&&(e.removeEventListener("selectionchange",r.input.hideSelectionGuard),setTimeout(()=>{(!Od(r)||r.state.selection.visible)&&r.dom.classList.remove("ProseMirror-hideselection")},20))})}function Pg(r){let e=r.domSelection(),t=document.createRange();if(!e)return;let o=r.cursorWrapper.dom,n=o.nodeName=="IMG";n?t.setStart(o.parentNode,Se(o)+1):t.setStart(o,0),t.collapse(!0),e.removeAllRanges(),e.addRange(t),!n&&!r.state.selection.visible&&_e&&Jt<=11&&(o.disabled=!0,o.disabled=!1)}function Dd(r,e){if(e instanceof R){let t=r.docView.descAt(e.from);t!=r.lastSelectedViewDesc&&(Id(r),t&&t.selectNode(),r.lastSelectedViewDesc=t)}else Id(r)}function Id(r){r.lastSelectedViewDesc&&(r.lastSelectedViewDesc.parent&&r.lastSelectedViewDesc.deselectNode(),r.lastSelectedViewDesc=void 0)}function $a(r,e,t,o){return r.someProp("createSelectionBetween",n=>n(r,e,t))||j.between(e,t,o)}function Ld(r){return r.editable&&!r.hasFocus()?!1:Rd(r)}function Rd(r){let e=r.domSelectionRange();if(!e.anchorNode)return!1;try{return r.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(r.editable||r.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Ag(r){let e=r.docView.domFromPos(r.state.selection.anchor,0),t=r.domSelectionRange();return gr(e.node,e.offset,t.anchorNode,t.anchorOffset)}function es(r,e){let{$anchor:t,$head:o}=r.selection,n=e>0?t.max(o):t.min(o),i=n.parent.inlineContent?n.depth?r.doc.resolve(e>0?n.after():n.before()):null:n;return i&&W.findFrom(i,e)}function Xt(r,e){return r.dispatch(r.state.tr.setSelection(e).scrollIntoView()),!0}function zd(r,e,t){let o=r.state.selection;if(o instanceof j)if(t.indexOf("s")>-1){let{$head:n}=o,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=r.state.doc.resolve(n.pos+i.nodeSize*(e<0?-1:1));return Xt(r,new j(o.$anchor,a))}else if(o.empty){if(r.endOfTextblock(e>0?"forward":"backward")){let n=es(r.state,e);return n&&n instanceof R?Xt(r,n):!1}else if(!(Xe&&t.indexOf("m")>-1)){let n=o.$head,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let l=e<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=r.docView.descAt(l))&&!a.contentDOM?R.isSelectable(i)?Xt(r,new R(e<0?r.state.doc.resolve(n.pos-i.nodeSize):n)):Vo?Xt(r,new j(r.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof R&&o.node.isInline)return Xt(r,new j(e>0?o.$to:o.$from));{let n=es(r.state,e);return n?Xt(r,n):!1}}}function Gn(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Io(r,e){let t=r.pmViewDesc;return t&&t.size==0&&(e<0||r.nextSibling||r.nodeName!="BR")}function Jr(r,e){return e<0?Dg(r):Ig(r)}function Dg(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n,i,a=!1;for(st&&t.nodeType==1&&o<Gn(t)&&Io(t.childNodes[o],-1)&&(a=!0);;)if(o>0){if(t.nodeType!=1)break;{let l=t.childNodes[o-1];if(Io(l,-1))n=t,i=--o;else if(l.nodeType==3)t=l,o=t.nodeValue.length;else break}}else{if(_d(t))break;{let l=t.previousSibling;for(;l&&Io(l,-1);)n=t.parentNode,i=Se(l),l=l.previousSibling;if(l)t=l,o=Gn(t);else{if(t=t.parentNode,t==r.dom)break;o=0}}}a?ts(r,t,o):n&&ts(r,n,i)}function Ig(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n=Gn(t),i,a;for(;;)if(o<n){if(t.nodeType!=1)break;let l=t.childNodes[o];if(Io(l,1))i=t,a=++o;else break}else{if(_d(t))break;{let l=t.nextSibling;for(;l&&Io(l,1);)i=l.parentNode,a=Se(l)+1,l=l.nextSibling;if(l)t=l,o=0,n=Gn(t);else{if(t=t.parentNode,t==r.dom)break;o=n=0}}}i&&ts(r,i,a)}function _d(r){let e=r.pmViewDesc;return e&&e.node&&e.node.isBlock}function Lg(r,e){for(;r&&e==r.childNodes.length&&!Oo(r);)e=Se(r)+1,r=r.parentNode;for(;r&&e<r.childNodes.length;){let t=r.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=0}}function Rg(r,e){for(;r&&!e&&!Oo(r);)e=Se(r),r=r.parentNode;for(;r&&e;){let t=r.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=r.childNodes.length}}function ts(r,e,t){if(e.nodeType!=3){let i,a;(a=Lg(e,t))?(e=a,t=0):(i=Rg(e,t))&&(e=i,t=i.nodeValue.length)}let o=r.domSelection();if(!o)return;if(Un(o)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,t);r.domObserver.setCurSelection();let{state:n}=r;setTimeout(()=>{r.state==n&&Tt(r)},50)}function Fd(r,e){let t=r.state.doc.resolve(e);if(!(Oe||ig)&&t.parent.inlineContent){let n=r.coordsAtPos(e);if(e>t.start()){let i=r.coordsAtPos(e-1),a=(i.top+i.bottom)/2;if(a>n.top&&a<n.bottom&&Math.abs(i.left-n.left)>1)return i.left<n.left?"ltr":"rtl"}if(e<t.end()){let i=r.coordsAtPos(e+1),a=(i.top+i.bottom)/2;if(a>n.top&&a<n.bottom&&Math.abs(i.left-n.left)>1)return i.left>n.left?"ltr":"rtl"}}return getComputedStyle(r.dom).direction=="rtl"?"rtl":"ltr"}function jd(r,e,t){let o=r.state.selection;if(o instanceof j&&!o.empty||t.indexOf("s")>-1||Xe&&t.indexOf("m")>-1)return!1;let{$from:n,$to:i}=o;if(!n.parent.inlineContent||r.endOfTextblock(e<0?"up":"down")){let a=es(r.state,e);if(a&&a instanceof R)return Xt(r,a)}if(!n.parent.inlineContent){let a=e<0?n:i,l=o instanceof qe?W.near(a,e):W.findFrom(a,e);return l?Xt(r,l):!1}return!1}function Hd(r,e){if(!(r.state.selection instanceof j))return!0;let{$head:t,$anchor:o,empty:n}=r.state.selection;if(!t.sameParent(o))return!0;if(!n)return!1;if(r.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let a=r.state.tr;return e<0?a.delete(t.pos-i.nodeSize,t.pos):a.delete(t.pos,t.pos+i.nodeSize),r.dispatch(a),!0}return!1}function Wd(r,e,t){r.domObserver.stop(),e.contentEditable=t,r.domObserver.start()}function zg(r){if(!De||r.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=r.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;Wd(r,o,"true"),setTimeout(()=>Wd(r,o,"false"),20)}return!1}function _g(r){let e="";return r.ctrlKey&&(e+="c"),r.metaKey&&(e+="m"),r.altKey&&(e+="a"),r.shiftKey&&(e+="s"),e}function Fg(r,e){let t=e.keyCode,o=_g(e);if(t==8||Xe&&t==72&&o=="c")return Hd(r,-1)||Jr(r,-1);if(t==46&&!e.shiftKey||Xe&&t==68&&o=="c")return Hd(r,1)||Jr(r,1);if(t==13||t==27)return!0;if(t==37||Xe&&t==66&&o=="c"){let n=t==37?Fd(r,r.state.selection.from)=="ltr"?-1:1:-1;return zd(r,n,o)||Jr(r,n)}else if(t==39||Xe&&t==70&&o=="c"){let n=t==39?Fd(r,r.state.selection.from)=="ltr"?1:-1:1;return zd(r,n,o)||Jr(r,n)}else{if(t==38||Xe&&t==80&&o=="c")return jd(r,-1,o)||Jr(r,-1);if(t==40||Xe&&t==78&&o=="c")return zg(r)||jd(r,1,o)||Jr(r,1);if(o==(Xe?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function rs(r,e){r.someProp("transformCopied",h=>{e=h(e,r)});let t=[],{content:o,openStart:n,openEnd:i}=e;for(;n>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){n--,i--;let h=o.firstChild;t.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),o=h.content}let a=r.someProp("clipboardSerializer")||hr.fromSchema(r.state.schema),l=Qd(),c=l.createElement("div");c.appendChild(a.serializeFragment(o,{document:l}));let d=c.firstChild,u,p=0;for(;d&&d.nodeType==1&&(u=Yd[d.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let f=l.createElement(u[h]);for(;c.firstChild;)f.appendChild(c.firstChild);c.appendChild(f),p++}d=c.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${n} ${i}${p?` -${p}`:""} ${JSON.stringify(t)}`);let m=r.someProp("clipboardTextSerializer",h=>h(e,r))||e.content.textBetween(0,e.content.size,`
|
|
17
|
-
|
|
18
|
-
`);return{dom:
|
|
19
|
-
`))),0,0):A.empty;let p=r.someProp("clipboardTextParser",m=>m(e,n,o,r));if(p)l=p;else{let m=n.marks(),{schema:h}=r.state,f=hr.fromSchema(h);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let b=a.appendChild(document.createElement("p"));g&&b.appendChild(f.serializeNode(h.text(g,m)))})}}else r.someProp("transformPastedHTML",p=>{t=p(t,r)}),a=qg(t),Vo&&Ug(a);let d=a&&a.querySelector("[data-pm-slice]"),u=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let p=+u[3];p>0;p--){let m=a.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;a=m}if(l||(l=(r.someProp("clipboardParser")||r.someProp("domParser")||ko.fromSchema(r.state.schema)).parseSlice(a,{preserveWhitespace:!!(c||u),context:n,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!jg.test(m.parentNode.nodeName)?{ignore:!0}:null}})),u)l=Kg(Gd(l,+u[1],+u[2]),u[4]);else if(l=A.maxOpen(Hg(l.content,n),!0),l.openStart||l.openEnd){let p=0,m=0;for(let h=l.content.firstChild;p<l.openStart&&!h.type.spec.isolating;p++,h=h.firstChild);for(let h=l.content.lastChild;m<l.openEnd&&!h.type.spec.isolating;m++,h=h.lastChild);l=Gd(l,p,m)}return r.someProp("transformPasted",p=>{l=p(l,r)}),l}const jg=/^(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 Hg(r,e){if(r.childCount<2)return r;for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.index(t)),i,a=[];if(r.forEach(l=>{if(!a)return;let c=n.findWrapping(l.type),d;if(!c)return a=null;if(d=a.length&&i.length&&Kd(c,i,l,a[a.length-1],0))a[a.length-1]=d;else{a.length&&(a[a.length-1]=Jd(a[a.length-1],i.length));let u=Ud(l,c);a.push(u),n=n.matchType(u.type),i=c}}),a)return M.from(a)}return r}function Ud(r,e,t=0){for(let o=e.length-1;o>=t;o--)r=e[o].create(null,M.from(r));return r}function Kd(r,e,t,o,n){if(n<r.length&&n<e.length&&r[n]==e[n]){let i=Kd(r,e,t,o.lastChild,n+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(n==r.length-1?t.type:r[n+1]))return o.copy(o.content.append(M.from(Ud(t,r,n+1))))}}function Jd(r,e){if(e==0)return r;let t=r.content.replaceChild(r.childCount-1,Jd(r.lastChild,e-1)),o=r.contentMatchAt(r.childCount).fillBefore(M.empty,!0);return r.copy(t.append(o))}function ns(r,e,t,o,n,i){let a=e<0?r.firstChild:r.lastChild,l=a.content;return r.childCount>1&&(i=0),n<o-1&&(l=ns(l,e,t,o,n+1,i)),n>=t&&(l=e<0?a.contentMatchAt(0).fillBefore(l,i<=n).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(M.empty,!0))),r.replaceChild(e<0?0:r.childCount-1,a.copy(l))}function Gd(r,e,t){return e<r.openStart&&(r=new A(ns(r.content,-1,e,r.openStart,0,r.openEnd),e,r.openEnd)),t<r.openEnd&&(r=new A(ns(r.content,1,t,r.openEnd,0,0),r.openStart,t)),r}const Yd={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Xd=null;function Qd(){return Xd||(Xd=document.implementation.createHTMLDocument("title"))}let is=null;function Wg(r){let e=window.trustedTypes;return e?(is||(is=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),is.createHTML(r)):r}function qg(r){let e=/^(\s*<meta [^>]*>)*/.exec(r);e&&(r=r.slice(e[0].length));let t=Qd().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(r),n;if((n=o&&Yd[o[1].toLowerCase()])&&(r=n.map(i=>"<"+i+">").join("")+r+n.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=Wg(r),n)for(let i=0;i<n.length;i++)t=t.querySelector(n[i])||t;return t}function Ug(r){let e=r.querySelectorAll(Oe?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let o=e[t];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(r.ownerDocument.createTextNode(" "),o)}}function Kg(r,e){if(!r.size)return r;let t=r.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return r}let{content:n,openStart:i,openEnd:a}=r;for(let l=o.length-2;l>=0;l-=2){let c=t.nodes[o[l]];if(!c||c.hasRequiredAttrs())break;n=M.from(c.create(o[l+1],n)),i++,a++}return new A(n,i,a)}const Ie={},Le={},Jg={touchstart:!0,touchmove:!0};class Gg{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Yg(r){for(let e in Ie){let t=Ie[e];r.dom.addEventListener(e,r.input.eventHandlers[e]=o=>{Qg(r,o)&&!ss(r,o)&&(r.editable||!(o.type in Le))&&t(r,o)},Jg[e]?{passive:!0}:void 0)}De&&r.dom.addEventListener("input",()=>null),as(r)}function Qt(r,e){r.input.lastSelectionOrigin=e,r.input.lastSelectionTime=Date.now()}function Xg(r){r.domObserver.stop();for(let e in r.input.eventHandlers)r.dom.removeEventListener(e,r.input.eventHandlers[e]);clearTimeout(r.input.composingTimeout),clearTimeout(r.input.lastIOSEnterFallbackTimeout)}function as(r){r.someProp("handleDOMEvents",e=>{for(let t in e)r.input.eventHandlers[t]||r.dom.addEventListener(t,r.input.eventHandlers[t]=o=>ss(r,o))})}function ss(r,e){return r.someProp("handleDOMEvents",t=>{let o=t[e.type];return o?o(r,e)||e.defaultPrevented:!1})}function Qg(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=r.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function Zg(r,e){!ss(r,e)&&Ie[e.type]&&(r.editable||!(e.type in Le))&&Ie[e.type](r,e)}Le.keydown=(r,e)=>{let t=e;if(r.input.shiftKey=t.keyCode==16||t.shiftKey,!$d(r,t)&&(r.input.lastKeyCode=t.keyCode,r.input.lastKeyCodeTime=Date.now(),!(Bt&&Oe&&t.keyCode==13)))if(t.keyCode!=229&&r.domObserver.forceFlush(),Ur&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let o=Date.now();r.input.lastIOSEnter=o,r.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{r.input.lastIOSEnter==o&&(r.someProp("handleKeyDown",n=>n(r,br(13,"Enter"))),r.input.lastIOSEnter=0)},200)}else r.someProp("handleKeyDown",o=>o(r,t))||Fg(r,t)?t.preventDefault():Qt(r,"key")},Le.keyup=(r,e)=>{e.keyCode==16&&(r.input.shiftKey=!1)},Le.keypress=(r,e)=>{let t=e;if($d(r,t)||!t.charCode||t.ctrlKey&&!t.altKey||Xe&&t.metaKey)return;if(r.someProp("handleKeyPress",n=>n(r,t))){t.preventDefault();return}let o=r.state.selection;if(!(o instanceof j)||!o.$from.sameParent(o.$to)){let n=String.fromCharCode(t.charCode),i=()=>r.state.tr.insertText(n).scrollIntoView();!/[\r\n]/.test(n)&&!r.someProp("handleTextInput",a=>a(r,o.$from.pos,o.$to.pos,n,i))&&r.dispatch(i()),t.preventDefault()}};function Yn(r){return{left:r.clientX,top:r.clientY}}function $g(r,e){let t=e.x-r.clientX,o=e.y-r.clientY;return t*t+o*o<100}function ls(r,e,t,o,n){if(o==-1)return!1;let i=r.state.doc.resolve(o);for(let a=i.depth+1;a>0;a--)if(r.someProp(e,l=>a>i.depth?l(r,t,i.nodeAfter,i.before(a),n,!0):l(r,t,i.node(a),i.before(a),n,!1)))return!0;return!1}function Gr(r,e,t){if(r.focused||r.focus(),r.state.selection.eq(e))return;let o=r.state.tr.setSelection(e);o.setMeta("pointer",!0),r.dispatch(o)}function e0(r,e){if(e==-1)return!1;let t=r.state.doc.resolve(e),o=t.nodeAfter;return o&&o.isAtom&&R.isSelectable(o)?(Gr(r,new R(t)),!0):!1}function t0(r,e){if(e==-1)return!1;let t=r.state.selection,o,n;t instanceof R&&(o=t.node);let i=r.state.doc.resolve(e);for(let a=i.depth+1;a>0;a--){let l=a>i.depth?i.nodeAfter:i.node(a);if(R.isSelectable(l)){o&&t.$from.depth>0&&a>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?n=i.before(t.$from.depth):n=i.before(a);break}}return n!=null?(Gr(r,R.create(r.state.doc,n)),!0):!1}function r0(r,e,t,o,n){return ls(r,"handleClickOn",e,t,o)||r.someProp("handleClick",i=>i(r,e,o))||(n?t0(r,t):e0(r,t))}function o0(r,e,t,o){return ls(r,"handleDoubleClickOn",e,t,o)||r.someProp("handleDoubleClick",n=>n(r,e,o))}function n0(r,e,t,o){return ls(r,"handleTripleClickOn",e,t,o)||r.someProp("handleTripleClick",n=>n(r,e,o))||i0(r,t,o)}function i0(r,e,t){if(t.button!=0)return!1;let o=r.state.doc;if(e==-1)return o.inlineContent?(Gr(r,j.create(o,0,o.content.size)),!0):!1;let n=o.resolve(e);for(let i=n.depth+1;i>0;i--){let a=i>n.depth?n.nodeAfter:n.node(i),l=n.before(i);if(a.inlineContent)Gr(r,j.create(o,l+1,l+1+a.content.size));else if(R.isSelectable(a))Gr(r,R.create(o,l));else continue;return!0}}function cs(r){return Xn(r)}const Zd=Xe?"metaKey":"ctrlKey";Ie.mousedown=(r,e)=>{let t=e;r.input.shiftKey=t.shiftKey;let o=cs(r),n=Date.now(),i="singleClick";n-r.input.lastClick.time<500&&$g(t,r.input.lastClick)&&!t[Zd]&&r.input.lastClick.button==t.button&&(r.input.lastClick.type=="singleClick"?i="doubleClick":r.input.lastClick.type=="doubleClick"&&(i="tripleClick")),r.input.lastClick={time:n,x:t.clientX,y:t.clientY,type:i,button:t.button};let a=r.posAtCoords(Yn(t));a&&(i=="singleClick"?(r.input.mouseDown&&r.input.mouseDown.done(),r.input.mouseDown=new a0(r,a,t,!!o)):(i=="doubleClick"?o0:n0)(r,a.pos,a.inside,t)?t.preventDefault():Qt(r,"pointer"))};class a0{constructor(e,t,o,n){this.view=e,this.pos=t,this.event=o,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[Zd],this.allowDefault=o.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let u=e.state.doc.resolve(t.pos);i=u.parent,a=u.depth?u.before():0}const l=n?null:o.target,c=l?e.docView.nearestDesc(l,!0):null;this.target=c&&c.dom.nodeType==1?c.dom:null;let{selection:d}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||d instanceof R&&d.from<=a&&d.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&st&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Qt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Tt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Yn(e))),this.updateAllowDefault(e),this.allowDefault||!t?Qt(this.view,"pointer"):r0(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||De&&this.mightDrag&&!this.mightDrag.node.isAtom||Oe&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Gr(this.view,W.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Qt(this.view,"pointer")}move(e){this.updateAllowDefault(e),Qt(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Ie.touchstart=r=>{r.input.lastTouch=Date.now(),cs(r),Qt(r,"pointer")},Ie.touchmove=r=>{r.input.lastTouch=Date.now(),Qt(r,"pointer")},Ie.contextmenu=r=>cs(r);function $d(r,e){return r.composing?!0:De&&Math.abs(e.timeStamp-r.input.compositionEndedAt)<500?(r.input.compositionEndedAt=-2e8,!0):!1}const s0=Bt?5e3:-1;Le.compositionstart=Le.compositionupdate=r=>{if(!r.composing){r.domObserver.flush();let{state:e}=r,t=e.selection.$to;if(e.selection instanceof j&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))r.markCursor=r.state.storedMarks||t.marks(),Xn(r,!0),r.markCursor=null;else if(Xn(r,!e.selection.empty),st&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let o=r.domSelectionRange();for(let n=o.focusNode,i=o.focusOffset;n&&n.nodeType==1&&i!=0;){let a=i<0?n.lastChild:n.childNodes[i-1];if(!a)break;if(a.nodeType==3){let l=r.domSelection();l&&l.collapse(a,a.nodeValue.length);break}else n=a,i=-1}}r.input.composing=!0}eu(r,s0)},Le.compositionend=(r,e)=>{r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=e.timeStamp,r.input.compositionPendingChanges=r.domObserver.pendingRecords().length?r.input.compositionID:0,r.input.compositionNode=null,r.input.compositionPendingChanges&&Promise.resolve().then(()=>r.domObserver.flush()),r.input.compositionID++,eu(r,20))};function eu(r,e){clearTimeout(r.input.composingTimeout),e>-1&&(r.input.composingTimeout=setTimeout(()=>Xn(r),e))}function tu(r){for(r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=c0());r.input.compositionNodes.length>0;)r.input.compositionNodes.pop().markParentsDirty()}function l0(r){let e=r.domSelectionRange();if(!e.focusNode)return null;let t=eg(e.focusNode,e.focusOffset),o=tg(e.focusNode,e.focusOffset);if(t&&o&&t!=o){let n=o.pmViewDesc,i=r.domObserver.lastChangedTextNode;if(t==i||o==i)return i;if(!n||!n.isText(o.nodeValue))return o;if(r.input.compositionNode==o){let a=t.pmViewDesc;if(!(!a||!a.isText(t.nodeValue)))return o}}return t||o}function c0(){let r=document.createEvent("Event");return r.initEvent("event",!0,!0),r.timeStamp}function Xn(r,e=!1){if(!(Bt&&r.domObserver.flushingSoon>=0)){if(r.domObserver.forceFlush(),tu(r),e||r.docView&&r.docView.dirty){let t=Qa(r),o=r.state.selection;return t&&!t.eq(o)?r.dispatch(r.state.tr.setSelection(t)):(r.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?r.dispatch(r.state.tr.deleteSelection()):r.updateState(r.state),!0}return!1}}function d0(r,e){if(!r.dom.parentNode)return;let t=r.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),n=document.createRange();n.selectNodeContents(e),r.dom.blur(),o.removeAllRanges(),o.addRange(n),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),r.focus()},50)}const Lo=_e&&Jt<15||Ur&&ag<604;Ie.copy=Le.cut=(r,e)=>{let t=e,o=r.state.selection,n=t.type=="cut";if(o.empty)return;let i=Lo?null:t.clipboardData,a=o.content(),{dom:l,text:c}=rs(r,a);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",c)):d0(r,l),n&&r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function u0(r){return r.openStart==0&&r.openEnd==0&&r.content.childCount==1?r.content.firstChild:null}function p0(r,e){if(!r.dom.parentNode)return;let t=r.input.shiftKey||r.state.selection.$from.parent.type.spec.code,o=r.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let n=r.input.shiftKey&&r.input.lastKeyCode!=45;setTimeout(()=>{r.focus(),o.parentNode&&o.parentNode.removeChild(o),t?Ro(r,o.value,null,n,e):Ro(r,o.textContent,o.innerHTML,n,e)},50)}function Ro(r,e,t,o,n){let i=qd(r,e,t,o,r.state.selection.$from);if(r.someProp("handlePaste",c=>c(r,n,i||A.empty)))return!0;if(!i)return!1;let a=u0(i),l=a?r.state.tr.replaceSelectionWith(a,o):r.state.tr.replaceSelection(i);return r.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function ru(r){let e=r.getData("text/plain")||r.getData("Text");if(e)return e;let t=r.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}Le.paste=(r,e)=>{let t=e;if(r.composing&&!Bt)return;let o=Lo?null:t.clipboardData,n=r.input.shiftKey&&r.input.lastKeyCode!=45;o&&Ro(r,ru(o),o.getData("text/html"),n,t)?t.preventDefault():p0(r,t)};class ou{constructor(e,t,o){this.slice=e,this.move=t,this.node=o}}const m0=Xe?"altKey":"ctrlKey";function nu(r,e){let t=r.someProp("dragCopies",o=>!o(e));return t??!e[m0]}Ie.dragstart=(r,e)=>{let t=e,o=r.input.mouseDown;if(o&&o.done(),!t.dataTransfer)return;let n=r.state.selection,i=n.empty?null:r.posAtCoords(Yn(t)),a;if(!(i&&i.pos>=n.from&&i.pos<=(n instanceof R?n.to-1:n.to))){if(o&&o.mightDrag)a=R.create(r.state.doc,o.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let p=r.docView.nearestDesc(t.target,!0);p&&p.node.type.spec.draggable&&p!=r.docView&&(a=R.create(r.state.doc,p.posBefore))}}let l=(a||r.state.selection).content(),{dom:c,text:d,slice:u}=rs(r,l);(!t.dataTransfer.files.length||!Oe||dd>120)&&t.dataTransfer.clearData(),t.dataTransfer.setData(Lo?"Text":"text/html",c.innerHTML),t.dataTransfer.effectAllowed="copyMove",Lo||t.dataTransfer.setData("text/plain",d),r.dragging=new ou(u,nu(r,t),a)},Ie.dragend=r=>{let e=r.dragging;window.setTimeout(()=>{r.dragging==e&&(r.dragging=null)},50)},Le.dragover=Le.dragenter=(r,e)=>e.preventDefault(),Le.drop=(r,e)=>{let t=e,o=r.dragging;if(r.dragging=null,!t.dataTransfer)return;let n=r.posAtCoords(Yn(t));if(!n)return;let i=r.state.doc.resolve(n.pos),a=o&&o.slice;a?r.someProp("transformPasted",f=>{a=f(a,r)}):a=qd(r,ru(t.dataTransfer),Lo?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(o&&nu(r,t));if(r.someProp("handleDrop",f=>f(r,t,a||A.empty,l))){t.preventDefault();return}if(!a)return;t.preventDefault();let c=a?Jc(r.state.doc,i.pos,a):i.pos;c==null&&(c=i.pos);let d=r.state.tr;if(l){let{node:f}=o;f?f.replace(d):d.deleteSelection()}let u=d.mapping.map(c),p=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,m=d.doc;if(p?d.replaceRangeWith(u,u,a.content.firstChild):d.replaceRange(u,u,a),d.doc.eq(m))return;let h=d.doc.resolve(u);if(p&&R.isSelectable(a.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(a.content.firstChild))d.setSelection(new R(h));else{let f=d.mapping.map(c);d.mapping.maps[d.mapping.maps.length-1].forEach((g,b,y,k)=>f=k),d.setSelection($a(r,h,d.doc.resolve(f)))}r.focus(),r.dispatch(d.setMeta("uiEvent","drop"))},Ie.focus=r=>{r.input.lastFocus=Date.now(),r.focused||(r.domObserver.stop(),r.dom.classList.add("ProseMirror-focused"),r.domObserver.start(),r.focused=!0,setTimeout(()=>{r.docView&&r.hasFocus()&&!r.domObserver.currentSelection.eq(r.domSelectionRange())&&Tt(r)},20))},Ie.blur=(r,e)=>{let t=e;r.focused&&(r.domObserver.stop(),r.dom.classList.remove("ProseMirror-focused"),r.domObserver.start(),t.relatedTarget&&r.dom.contains(t.relatedTarget)&&r.domObserver.currentSelection.clear(),r.focused=!1)},Ie.beforeinput=(r,e)=>{if(Oe&&Bt&&e.inputType=="deleteContentBackward"){r.domObserver.flushSoon();let{domChangeCount:o}=r.input;setTimeout(()=>{if(r.input.domChangeCount!=o||(r.dom.blur(),r.focus(),r.someProp("handleKeyDown",i=>i(r,br(8,"Backspace")))))return;let{$cursor:n}=r.state.selection;n&&n.pos>0&&r.dispatch(r.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let r in Le)Ie[r]=Le[r];function zo(r,e){if(r==e)return!0;for(let t in r)if(r[t]!==e[t])return!1;for(let t in e)if(!(t in r))return!1;return!0}class Qn{constructor(e,t){this.toDOM=e,this.spec=t||xr,this.side=this.spec.side||0}map(e,t,o,n){let{pos:i,deleted:a}=e.mapResult(t.from+n,this.side<0?-1:1);return a?null:new Ze(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Qn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&zo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Zt{constructor(e,t){this.attrs=e,this.spec=t||xr}map(e,t,o,n){let i=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-o,a=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-o;return i>=a?null:new Ze(i,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Zt&&zo(this.attrs,e.attrs)&&zo(this.spec,e.spec)}static is(e){return e.type instanceof Zt}destroy(){}}class ds{constructor(e,t){this.attrs=e,this.spec=t||xr}map(e,t,o,n){let i=e.mapResult(t.from+n,1);if(i.deleted)return null;let a=e.mapResult(t.to+n,-1);return a.deleted||a.pos<=i.pos?null:new Ze(i.pos-o,a.pos-o,this)}valid(e,t){let{index:o,offset:n}=e.content.findIndex(t.from),i;return n==t.from&&!(i=e.child(o)).isText&&n+i.nodeSize==t.to}eq(e){return this==e||e instanceof ds&&zo(this.attrs,e.attrs)&&zo(this.spec,e.spec)}destroy(){}}class Ze{constructor(e,t,o){this.from=e,this.to=t,this.type=o}copy(e,t){return new Ze(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,o){return this.type.map(e,this,t,o)}static widget(e,t,o){return new Ze(e,e,new Qn(t,o))}static inline(e,t,o,n){return new Ze(e,t,new Zt(o,n))}static node(e,t,o,n){return new Ze(e,t,new ds(o,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Zt}get widget(){return this.type instanceof Qn}}const Yr=[],xr={};class fe{constructor(e,t){this.local=e.length?e:Yr,this.children=t.length?t:Yr}static create(e,t){return t.length?Zn(t,e,0,xr):Ve}find(e,t,o){let n=[];return this.findInner(e??0,t??1e9,n,0,o),n}findInner(e,t,o,n,i){for(let a=0;a<this.local.length;a++){let l=this.local[a];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&o.push(l.copy(l.from+n,l.to+n))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let l=this.children[a]+1;this.children[a+2].findInner(e-l,t-l,o,n+l,i)}}map(e,t,o){return this==Ve||e.maps.length==0?this:this.mapInner(e,t,0,0,o||xr)}mapInner(e,t,o,n,i){let a;for(let l=0;l<this.local.length;l++){let c=this.local[l].map(e,o,n);c&&c.type.valid(t,c)?(a||(a=[])).push(c):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?h0(this.children,a||[],e,t,o,n,i):a?new fe(a.sort(kr),Yr):Ve}add(e,t){return t.length?this==Ve?fe.create(e,t):this.addInner(e,t,0):this}addInner(e,t,o){let n,i=0;e.forEach((l,c)=>{let d=c+o,u;if(u=au(t,l,d)){for(n||(n=this.children.slice());i<n.length&&n[i]<c;)i+=3;n[i]==c?n[i+2]=n[i+2].addInner(l,u,d+1):n.splice(i,0,c,c+l.nodeSize,Zn(u,l,d+1,xr)),i+=3}});let a=iu(i?su(t):t,-o);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||a.splice(l--,1);return new fe(a.length?this.local.concat(a).sort(kr):this.local,n||this.children)}remove(e){return e.length==0||this==Ve?this:this.removeInner(e,0)}removeInner(e,t){let o=this.children,n=this.local;for(let i=0;i<o.length;i+=3){let a,l=o[i]+t,c=o[i+1]+t;for(let u=0,p;u<e.length;u++)(p=e[u])&&p.from>l&&p.to<c&&(e[u]=null,(a||(a=[])).push(p));if(!a)continue;o==this.children&&(o=this.children.slice());let d=o[i+2].removeInner(a,l+1);d!=Ve?o[i+2]=d:(o.splice(i,3),i-=3)}if(n.length){for(let i=0,a;i<e.length;i++)if(a=e[i])for(let l=0;l<n.length;l++)n[l].eq(a,t)&&(n==this.local&&(n=this.local.slice()),n.splice(l--,1))}return o==this.children&&n==this.local?this:n.length||o.length?new fe(n,o):Ve}forChild(e,t){if(this==Ve)return this;if(t.isLeaf)return fe.empty;let o,n;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(o=this.children[l+2]);break}let i=e+1,a=i+t.content.size;for(let l=0;l<this.local.length;l++){let c=this.local[l];if(c.from<a&&c.to>i&&c.type instanceof Zt){let d=Math.max(i,c.from)-i,u=Math.min(a,c.to)-i;d<u&&(n||(n=[])).push(c.copy(d,u))}}if(n){let l=new fe(n.sort(kr),Yr);return o?new $t([l,o]):l}return o||Ve}eq(e){if(this==e)return!0;if(!(e instanceof fe)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return us(this.localsInner(e))}localsInner(e){if(this==Ve)return Yr;if(e.inlineContent||!this.local.some(Zt.is))return this.local;let t=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof Zt||t.push(this.local[o]);return t}forEachSet(e){e(this)}}fe.empty=new fe([],[]),fe.removeOverlap=us;const Ve=fe.empty;class $t{constructor(e){this.members=e}map(e,t){const o=this.members.map(n=>n.map(e,t,xr));return $t.from(o)}forChild(e,t){if(t.isLeaf)return fe.empty;let o=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,t);i!=Ve&&(i instanceof $t?o=o.concat(i.members):o.push(i))}return $t.from(o)}eq(e){if(!(e instanceof $t)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,o=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(!t)t=i;else{o&&(t=t.slice(),o=!1);for(let a=0;a<i.length;a++)t.push(i[a])}}return t?us(o?t:t.sort(kr)):Yr}static from(e){switch(e.length){case 0:return Ve;case 1:return e[0];default:return new $t(e.every(t=>t instanceof fe)?e:e.reduce((t,o)=>t.concat(o instanceof fe?o:o.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function h0(r,e,t,o,n,i,a){let l=r.slice();for(let d=0,u=i;d<t.maps.length;d++){let p=0;t.maps[d].forEach((m,h,f,g)=>{let b=g-f-(h-m);for(let y=0;y<l.length;y+=3){let k=l[y+1];if(k<0||m>k+u-p)continue;let v=l[y]+u-p;h>=v?l[y+1]=m<=v?-2:-1:m>=u&&b&&(l[y]+=b,l[y+1]+=b)}p+=b}),u=t.maps[d].map(u,-1)}let c=!1;for(let d=0;d<l.length;d+=3)if(l[d+1]<0){if(l[d+1]==-2){c=!0,l[d+1]=-1;continue}let u=t.map(r[d]+i),p=u-n;if(p<0||p>=o.content.size){c=!0;continue}let m=t.map(r[d+1]+i,-1),h=m-n,{index:f,offset:g}=o.content.findIndex(p),b=o.maybeChild(f);if(b&&g==p&&g+b.nodeSize==h){let y=l[d+2].mapInner(t,b,u+1,r[d]+i+1,a);y!=Ve?(l[d]=p,l[d+1]=h,l[d+2]=y):(l[d+1]=-2,c=!0)}else c=!0}if(c){let d=f0(l,r,e,t,n,i,a),u=Zn(d,o,0,a);e=u.local;for(let p=0;p<l.length;p+=3)l[p+1]<0&&(l.splice(p,3),p-=3);for(let p=0,m=0;p<u.children.length;p+=3){let h=u.children[p];for(;m<l.length&&l[m]<h;)m+=3;l.splice(m,0,u.children[p],u.children[p+1],u.children[p+2])}}return new fe(e.sort(kr),l)}function iu(r,e){if(!e||!r.length)return r;let t=[];for(let o=0;o<r.length;o++){let n=r[o];t.push(new Ze(n.from+e,n.to+e,n.type))}return t}function f0(r,e,t,o,n,i,a){function l(c,d){for(let u=0;u<c.local.length;u++){let p=c.local[u].map(o,n,d);p?t.push(p):a.onRemove&&a.onRemove(c.local[u].spec)}for(let u=0;u<c.children.length;u+=3)l(c.children[u+2],c.children[u]+d+1)}for(let c=0;c<r.length;c+=3)r[c+1]==-1&&l(r[c+2],e[c]+i+1);return t}function au(r,e,t){if(e.isLeaf)return null;let o=t+e.nodeSize,n=null;for(let i=0,a;i<r.length;i++)(a=r[i])&&a.from>t&&a.to<o&&((n||(n=[])).push(a),r[i]=null);return n}function su(r){let e=[];for(let t=0;t<r.length;t++)r[t]!=null&&e.push(r[t]);return e}function Zn(r,e,t,o){let n=[],i=!1;e.forEach((l,c)=>{let d=au(r,l,c+t);if(d){i=!0;let u=Zn(d,l,t+c+1,o);u!=Ve&&n.push(c,c+l.nodeSize,u)}});let a=iu(i?su(r):r,-t).sort(kr);for(let l=0;l<a.length;l++)a[l].type.valid(e,a[l])||(o.onRemove&&o.onRemove(a[l].spec),a.splice(l--,1));return a.length||n.length?new fe(a,n):Ve}function kr(r,e){return r.from-e.from||r.to-e.to}function us(r){let e=r;for(let t=0;t<e.length-1;t++){let o=e[t];if(o.from!=o.to)for(let n=t+1;n<e.length;n++){let i=e[n];if(i.from==o.from){i.to!=o.to&&(e==r&&(e=r.slice()),e[n]=i.copy(i.from,o.to),lu(e,n+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==r&&(e=r.slice()),e[t]=o.copy(o.from,i.from),lu(e,n,o.copy(i.from,o.to)));break}}}return e}function lu(r,e,t){for(;e<r.length&&kr(t,r[e])>0;)e++;r.splice(e,0,t)}function ps(r){let e=[];return r.someProp("decorations",t=>{let o=t(r.state);o&&o!=Ve&&e.push(o)}),r.cursorWrapper&&e.push(fe.create(r.state.doc,[r.cursorWrapper.deco])),$t.from(e)}const g0={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},b0=_e&&Jt<=11;class w0{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class y0{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new w0,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let n=0;n<o.length;n++)this.queue.push(o[n]);_e&&Jt<=11&&o.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),b0&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,g0)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Ld(this.view)){if(this.suppressingSelectionUpdates)return Tt(this.view);if(_e&&Jt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&gr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,o;for(let i=e.focusNode;i;i=qr(i))t.add(i);for(let i=e.anchorNode;i;i=qr(i))if(t.has(i)){o=i;break}let n=o&&this.view.docView.nearestDesc(o);if(n&&n.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let o=e.domSelectionRange(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Ld(e)&&!this.ignoreSelectionChange(o),i=-1,a=-1,l=!1,c=[];if(e.editable)for(let u=0;u<t.length;u++){let p=this.registerMutation(t[u],c);p&&(i=i<0?p.from:Math.min(p.from,i),a=a<0?p.to:Math.max(p.to,a),p.typeOver&&(l=!0))}if(st&&c.length){let u=c.filter(p=>p.nodeName=="BR");if(u.length==2){let[p,m]=u;p.parentNode&&p.parentNode.parentNode==m.parentNode?m.remove():p.remove()}else{let{focusNode:p}=this.currentSelection;for(let m of u){let h=m.parentNode;h&&h.nodeName=="LI"&&(!p||k0(e,p)!=h)&&m.remove()}}}let d=null;i<0&&n&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Un(o)&&(d=Qa(e))&&d.eq(W.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Tt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||n)&&(i>-1&&(e.docView.markDirty(i,a),v0(e)),this.handleDOMChange(i,a,l,c),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Tt(e),this.currentSelection.set(o))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let p=e.addedNodes[u];t.push(p),p.nodeType==3&&(this.lastChangedTextNode=p)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let n=e.previousSibling,i=e.nextSibling;if(_e&&Jt<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:p,nextSibling:m}=e.addedNodes[u];(!p||Array.prototype.indexOf.call(e.addedNodes,p)<0)&&(n=p),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let a=n&&n.parentNode==e.target?Se(n)+1:0,l=o.localPosFromDOM(e.target,a,-1),c=i&&i.parentNode==e.target?Se(i):e.target.childNodes.length,d=o.localPosFromDOM(e.target,c,1);return{from:l,to:d}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let cu=new WeakMap,du=!1;function v0(r){if(!cu.has(r)&&(cu.set(r,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace)!==-1)){if(r.requiresGeckoHackNode=st,du)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),du=!0}}function uu(r,e){let t=e.startContainer,o=e.startOffset,n=e.endContainer,i=e.endOffset,a=r.domAtPos(r.state.selection.anchor);return gr(a.node,a.offset,n,i)&&([t,o,n,i]=[n,i,t,o]),{anchorNode:t,anchorOffset:o,focusNode:n,focusOffset:i}}function x0(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return uu(r,n)}let t;function o(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),r.dom.removeEventListener("beforeinput",o,!0),t?uu(r,t):null}function k0(r,e){for(let t=e.parentNode;t&&t!=r.dom;t=t.parentNode){let o=r.docView.nearestDesc(t,!0);if(o&&o.node.isBlock)return t}return null}function E0(r,e,t){let{node:o,fromOffset:n,toOffset:i,from:a,to:l}=r.docView.parseRange(e,t),c=r.domSelectionRange(),d,u=c.anchorNode;if(u&&r.dom.contains(u.nodeType==1?u:u.parentNode)&&(d=[{node:u,offset:c.anchorOffset}],Un(c)||d.push({node:c.focusNode,offset:c.focusOffset})),Oe&&r.input.lastKeyCode===8)for(let b=i;b>n;b--){let y=o.childNodes[b-1],k=y.pmViewDesc;if(y.nodeName=="BR"&&!k){i=b;break}if(!k||k.size)break}let p=r.state.doc,m=r.someProp("domParser")||ko.fromSchema(r.state.schema),h=p.resolve(a),f=null,g=m.parse(o,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:n,to:i,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:S0,context:h});if(d&&d[0].pos!=null){let b=d[0].pos,y=d[1]&&d[1].pos;y==null&&(y=b),f={anchor:b+a,head:y+a}}return{doc:g,sel:f,from:a,to:l}}function S0(r){let e=r.pmViewDesc;if(e)return e.parseRule();if(r.nodeName=="BR"&&r.parentNode){if(De&&/^(ul|ol)$/i.test(r.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(r.parentNode.lastChild==r||De&&/^(tr|table)$/i.test(r.parentNode.nodeName))return{ignore:!0}}else if(r.nodeName=="IMG"&&r.getAttribute("mark-placeholder"))return{ignore:!0};return null}const C0=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function N0(r,e,t,o,n){let i=r.input.compositionPendingChanges||(r.composing?r.input.compositionID:0);if(r.input.compositionPendingChanges=0,e<0){let O=r.input.lastSelectionTime>Date.now()-50?r.input.lastSelectionOrigin:null,D=Qa(r,O);if(D&&!r.state.selection.eq(D)){if(Oe&&Bt&&r.input.lastKeyCode===13&&Date.now()-100<r.input.lastKeyCodeTime&&r.someProp("handleKeyDown",E=>E(r,br(13,"Enter"))))return;let B=r.state.tr.setSelection(D);O=="pointer"?B.setMeta("pointer",!0):O=="key"&&B.scrollIntoView(),i&&B.setMeta("composition",i),r.dispatch(B)}return}let a=r.state.doc.resolve(e),l=a.sharedDepth(t);e=a.before(l+1),t=r.state.doc.resolve(t).after(l+1);let c=r.state.selection,d=E0(r,e,t),u=r.state.doc,p=u.slice(d.from,d.to),m,h;r.input.lastKeyCode===8&&Date.now()-100<r.input.lastKeyCodeTime?(m=r.state.selection.to,h="end"):(m=r.state.selection.from,h="start"),r.input.lastKeyCode=null;let f=T0(p.content,d.doc.content,d.from,m,h);if(f&&r.input.domChangeCount++,(Ur&&r.input.lastIOSEnter>Date.now()-225||Bt)&&n.some(O=>O.nodeType==1&&!C0.test(O.nodeName))&&(!f||f.endA>=f.endB)&&r.someProp("handleKeyDown",O=>O(r,br(13,"Enter")))){r.input.lastIOSEnter=0;return}if(!f)if(o&&c instanceof j&&!c.empty&&c.$head.sameParent(c.$anchor)&&!r.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))f={start:c.from,endA:c.to,endB:c.to};else{if(d.sel){let O=pu(r,r.state.doc,d.sel);if(O&&!O.eq(r.state.selection)){let D=r.state.tr.setSelection(O);i&&D.setMeta("composition",i),r.dispatch(D)}}return}r.state.selection.from<r.state.selection.to&&f.start==f.endB&&r.state.selection instanceof j&&(f.start>r.state.selection.from&&f.start<=r.state.selection.from+2&&r.state.selection.from>=d.from?f.start=r.state.selection.from:f.endA<r.state.selection.to&&f.endA>=r.state.selection.to-2&&r.state.selection.to<=d.to&&(f.endB+=r.state.selection.to-f.endA,f.endA=r.state.selection.to)),_e&&Jt<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>d.from&&d.doc.textBetween(f.start-d.from-1,f.start-d.from+1)==" "&&(f.start--,f.endA--,f.endB--);let g=d.doc.resolveNoCache(f.start-d.from),b=d.doc.resolveNoCache(f.endB-d.from),y=u.resolve(f.start),k=g.sameParent(b)&&g.parent.inlineContent&&y.end()>=f.endA,v;if((Ur&&r.input.lastIOSEnter>Date.now()-225&&(!k||n.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!k&&g.pos<d.doc.content.size&&(!g.sameParent(b)||!g.parent.inlineContent)&&!/\S/.test(d.doc.textBetween(g.pos,b.pos,"",""))&&(v=W.findFrom(d.doc.resolve(g.pos+1),1,!0))&&v.head>g.pos)&&r.someProp("handleKeyDown",O=>O(r,br(13,"Enter")))){r.input.lastIOSEnter=0;return}if(r.state.selection.anchor>f.start&&M0(u,f.start,f.endA,g,b)&&r.someProp("handleKeyDown",O=>O(r,br(8,"Backspace")))){Bt&&Oe&&r.domObserver.suppressSelectionUpdates();return}Oe&&f.endB==f.start&&(r.input.lastChromeDelete=Date.now()),Bt&&!k&&g.start()!=b.start()&&b.parentOffset==0&&g.depth==b.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==f.endA&&(f.endB-=2,b=d.doc.resolveNoCache(f.endB-d.from),setTimeout(()=>{r.someProp("handleKeyDown",function(O){return O(r,br(13,"Enter"))})},20));let w=f.start,S=f.endA,x=O=>{let D=O||r.state.tr.replace(w,S,d.doc.slice(f.start-d.from,f.endB-d.from));if(d.sel){let B=pu(r,D.doc,d.sel);B&&!(Oe&&r.composing&&B.empty&&(f.start!=f.endB||r.input.lastChromeDelete<Date.now()-100)&&(B.head==w||B.head==D.mapping.map(S)-1)||_e&&B.empty&&B.head==w)&&D.setSelection(B)}return i&&D.setMeta("composition",i),D.scrollIntoView()},C;if(k){if(g.pos==b.pos){_e&&Jt<=11&&g.parentOffset==0&&(r.domObserver.suppressSelectionUpdates(),setTimeout(()=>Tt(r),20));let O=x(r.state.tr.delete(w,S)),D=u.resolve(f.start).marksAcross(u.resolve(f.endA));D&&O.ensureMarks(D),r.dispatch(O)}else if(f.endA==f.endB&&(C=B0(g.parent.content.cut(g.parentOffset,b.parentOffset),y.parent.content.cut(y.parentOffset,f.endA-y.start())))){let O=x(r.state.tr);C.type=="add"?O.addMark(w,S,C.mark):O.removeMark(w,S,C.mark),r.dispatch(O)}else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let O=g.parent.textBetween(g.parentOffset,b.parentOffset),D=()=>x(r.state.tr.insertText(O,w,S));r.someProp("handleTextInput",B=>B(r,w,S,O,D))||r.dispatch(D())}}else r.dispatch(x())}function pu(r,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:$a(r,e.resolve(t.anchor),e.resolve(t.head))}function B0(r,e){let t=r.firstChild.marks,o=e.firstChild.marks,n=t,i=o,a,l,c;for(let u=0;u<o.length;u++)n=o[u].removeFromSet(n);for(let u=0;u<t.length;u++)i=t[u].removeFromSet(i);if(n.length==1&&i.length==0)l=n[0],a="add",c=u=>u.mark(l.addToSet(u.marks));else if(n.length==0&&i.length==1)l=i[0],a="remove",c=u=>u.mark(l.removeFromSet(u.marks));else return null;let d=[];for(let u=0;u<e.childCount;u++)d.push(c(e.child(u)));if(M.from(d).eq(r))return{mark:l,type:a}}function M0(r,e,t,o,n){if(t-e<=n.pos-o.pos||ms(o,!0,!1)<n.pos)return!1;let i=r.resolve(e);if(!o.parent.isTextblock){let l=i.nodeAfter;return l!=null&&t==e+l.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=r.resolve(ms(i,!0,!0));return!a.parent.isTextblock||a.pos>t||ms(a,!0,!1)<t?!1:o.parent.content.cut(o.parentOffset).eq(a.parent.content)}function ms(r,e,t){let o=r.depth,n=e?r.end():r.pos;for(;o>0&&(e||r.indexAfter(o)==r.node(o).childCount);)o--,n++,e=!1;if(t){let i=r.node(o).maybeChild(r.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,n++}return n}function T0(r,e,t,o,n){let i=r.findDiffStart(e,t);if(i==null)return null;let{a,b:l}=r.findDiffEnd(e,t+r.size,t+e.size);if(n=="end"){let c=Math.max(0,i-Math.min(a,l));o-=a+c-i}if(a<i&&r.size<e.size){let c=o<=i&&o>=a?i-o:0;i-=c,i&&i<e.size&&mu(e.textBetween(i-1,i+1))&&(i+=c?1:-1),l=i+(l-a),a=i}else if(l<i){let c=o<=i&&o>=l?i-o:0;i-=c,i&&i<r.size&&mu(r.textBetween(i-1,i+1))&&(i+=c?1:-1),a=i+(a-l),l=i}return{start:i,endA:a,endB:l}}function mu(r){if(r.length!=2)return!1;let e=r.charCodeAt(0),t=r.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class hu{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Gg,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(yu),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=bu(this),gu(this),this.nodeViews=wu(this),this.docView=Sd(this.state.doc,fu(this),ps(this),this.dom,this),this.domObserver=new y0(this,(o,n,i,a)=>N0(this,o,n,i,a)),this.domObserver.start(),Yg(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&as(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(yu),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let o in this._props)t[o]=this._props[o];t.state=this.state;for(let o in e)t[o]=e[o];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var o;let n=this.state,i=!1,a=!1;e.storedMarks&&this.composing&&(tu(this),a=!0),this.state=e;let l=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let h=wu(this);V0(h,this.nodeViews)&&(this.nodeViews=h,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&as(this),this.editable=bu(this),gu(this);let c=ps(this),d=fu(this),u=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?"reset":e.scrollToSelection>n.scrollToSelection?"to selection":"preserve",p=i||!this.docView.matchesNode(e.doc,d,c);(p||!e.selection.eq(n.selection))&&(a=!0);let m=u=="preserve"&&a&&this.dom.style.overflowAnchor==null&&cg(this);if(a){this.domObserver.stop();let h=p&&(_e||Oe)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&O0(n.selection,e.selection);if(p){let f=Oe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=l0(this)),(i||!this.docView.update(e.doc,d,c,this))&&(this.docView.updateOuterDeco(d),this.docView.destroy(),this.docView=Sd(e.doc,d,c,this.dom,this)),f&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Ag(this))?Tt(this,h):(Dd(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),!((o=this.dragging)===null||o===void 0)&&o.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():m&&dg(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof R){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&ud(this,t.getBoundingClientRect(),e)}else ud(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let o=this.directPlugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let o=this.state.plugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let o=this.pluginViews[t];o.update&&o.update(this,e)}}updateDraggedNode(e,t){let o=e.node,n=-1;if(this.state.doc.nodeAt(o.from)==o.node)n=o.from;else{let i=o.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==o.node&&(n=i)}this.dragging=new ou(e.slice,e.move,n<0?void 0:R.create(this.state.doc,n))}someProp(e,t){let o=this._props&&this._props[e],n;if(o!=null&&(n=t?t(o):o))return n;for(let a=0;a<this.directPlugins.length;a++){let l=this.directPlugins[a].props[e];if(l!=null&&(n=t?t(l):l))return n}let i=this.state.plugins;if(i)for(let a=0;a<i.length;a++){let l=i[a].props[e];if(l!=null&&(n=t?t(l):l))return n}}hasFocus(){if(_e){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&ug(this.dom),Tt(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return gg(this,e)}coordsAtPos(e,t=1){return bd(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,o=-1){let n=this.docView.posFromDOM(e,t,o);if(n==null)throw new RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return xg(this,t||this.state,e)}pasteHTML(e,t){return Ro(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Ro(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return rs(this,e)}destroy(){this.docView&&(Xg(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ps(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Zf())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Zg(this,e)}domSelectionRange(){let e=this.domSelection();return e?De&&this.root.nodeType===11&&og(this.dom.ownerDocument)==this.dom&&x0(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}hu.prototype.dispatch=function(r){let e=this._props.dispatchTransaction;e?e.call(this,r):this.updateState(this.state.apply(r))};function fu(r){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(r.editable),r.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(r.state)),t)for(let o in t)o=="class"?e.class+=" "+t[o]:o=="style"?e.style=(e.style?e.style+";":"")+t[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(t[o]))}),e.translate||(e.translate="no"),[Ze.node(0,r.state.doc.content.size,e)]}function gu(r){if(r.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),r.cursorWrapper={dom:e,deco:Ze.widget(r.state.selection.from,e,{raw:!0,marks:r.markCursor})}}else r.cursorWrapper=null}function bu(r){return!r.someProp("editable",e=>e(r.state)===!1)}function O0(r,e){let t=Math.min(r.$anchor.sharedDepth(r.head),e.$anchor.sharedDepth(e.head));return r.$anchor.start(t)!=e.$anchor.start(t)}function wu(r){let e=Object.create(null);function t(o){for(let n in o)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=o[n])}return r.someProp("nodeViews",t),r.someProp("markViews",t),e}function V0(r,e){let t=0,o=0;for(let n in r){if(r[n]!=e[n])return!0;t++}for(let n in e)o++;return t!=o}function yu(r){if(r.spec.state||r.spec.filterTransaction||r.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var er={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:"'"},$n={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},P0=typeof navigator<"u"&&/Mac/.test(navigator.platform),A0=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ce=0;Ce<10;Ce++)er[48+Ce]=er[96+Ce]=String(Ce);for(var Ce=1;Ce<=24;Ce++)er[Ce+111]="F"+Ce;for(var Ce=65;Ce<=90;Ce++)er[Ce]=String.fromCharCode(Ce+32),$n[Ce]=String.fromCharCode(Ce);for(var hs in er)$n.hasOwnProperty(hs)||($n[hs]=er[hs]);function D0(r){var e=P0&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||A0&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?$n:er)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const I0=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),L0=typeof navigator<"u"&&/Win/.test(navigator.platform);function R0(r){let e=r.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let o,n,i,a;for(let l=0;l<e.length-1;l++){let c=e[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))o=!0;else if(/^(c|ctrl|control)$/i.test(c))n=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))I0?a=!0:n=!0;else throw new Error("Unrecognized modifier name: "+c)}return o&&(t="Alt-"+t),n&&(t="Ctrl-"+t),a&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function z0(r){let e=Object.create(null);for(let t in r)e[R0(t)]=r[t];return e}function fs(r,e,t=!0){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t&&e.shiftKey&&(r="Shift-"+r),r}function _0(r){return new he({props:{handleKeyDown:vu(r)}})}function vu(r){let e=z0(r);return function(t,o){let n=D0(o),i,a=e[fs(n,o)];if(a&&a(t.state,t.dispatch,t))return!0;if(n.length==1&&n!=" "){if(o.shiftKey){let l=e[fs(n,o,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(L0&&o.ctrlKey&&o.altKey)&&(i=er[o.keyCode])&&i!=n){let l=e[fs(i,o)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const gs=(r,e)=>r.selection.empty?!1:(e&&e(r.tr.deleteSelection().scrollIntoView()),!0);function xu(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("backward",r):t.parentOffset>0)?null:t}const ku=(r,e,t)=>{let o=xu(r,t);if(!o)return!1;let n=bs(o);if(!n){let a=o.blockRange(),l=a&&_r(a);return l==null?!1:(e&&e(r.tr.lift(a,l).scrollIntoView()),!0)}let i=n.nodeBefore;if(Vu(r,n,e,-1))return!0;if(o.parent.content.size==0&&(Xr(i,"end")||R.isSelectable(i)))for(let a=o.depth;;a--){let l=Hn(r.doc,o.before(a),o.after(a),A.empty);if(l&&l.slice.size<l.to-l.from){if(e){let c=r.tr.step(l);c.setSelection(Xr(i,"end")?W.findFrom(c.doc.resolve(c.mapping.map(n.pos,-1)),-1):R.create(c.doc,n.pos-i.nodeSize)),e(c.scrollIntoView())}return!0}if(a==1||o.node(a-1).childCount>1)break}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos-i.nodeSize,n.pos).scrollIntoView()),!0):!1},F0=(r,e,t)=>{let o=xu(r,t);if(!o)return!1;let n=bs(o);return n?Eu(r,n,e):!1},j0=(r,e,t)=>{let o=Cu(r,t);if(!o)return!1;let n=ws(o);return n?Eu(r,n,e):!1};function Eu(r,e,t){let o=e.nodeBefore,n=o,i=e.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return!1;let u=n.lastChild;if(!u)return!1;n=u}let a=e.nodeAfter,l=a,c=e.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let u=l.firstChild;if(!u)return!1;l=u}let d=Hn(r.doc,i,c,A.empty);if(!d||d.from!=i||d instanceof be&&d.slice.size>=c-i)return!1;if(t){let u=r.tr.step(d);u.setSelection(j.create(u.doc,i)),t(u.scrollIntoView())}return!0}function Xr(r,e,t=!1){for(let o=r;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(t&&o.childCount!=1)return!1}return!1}const Su=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("backward",r):o.parentOffset>0)return!1;i=bs(o)}let a=i&&i.nodeBefore;return!a||!R.isSelectable(a)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function bs(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){if(r.index(e)>0)return r.doc.resolve(r.before(e+1));if(r.node(e).type.spec.isolating)break}return null}function Cu(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("forward",r):t.parentOffset<t.parent.content.size)?null:t}const Nu=(r,e,t)=>{let o=Cu(r,t);if(!o)return!1;let n=ws(o);if(!n)return!1;let i=n.nodeAfter;if(Vu(r,n,e,1))return!0;if(o.parent.content.size==0&&(Xr(i,"start")||R.isSelectable(i))){let a=Hn(r.doc,o.before(),o.after(),A.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=r.tr.step(a);l.setSelection(Xr(i,"start")?W.findFrom(l.doc.resolve(l.mapping.map(n.pos)),1):R.create(l.doc,l.mapping.map(n.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos,n.pos+i.nodeSize).scrollIntoView()),!0):!1},Bu=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("forward",r):o.parentOffset<o.parent.content.size)return!1;i=ws(o)}let a=i&&i.nodeAfter;return!a||!R.isSelectable(a)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos)).scrollIntoView()),!0)};function ws(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){let t=r.node(e);if(r.index(e)+1<t.childCount)return r.doc.resolve(r.after(e+1));if(t.type.spec.isolating)break}return null}const H0=(r,e)=>{let t=r.selection,o=t instanceof R,n;if(o){if(t.node.isTextblock||!Ut(r.doc,t.from))return!1;n=t.from}else if(n=jn(r.doc,t.from,-1),n==null)return!1;if(e){let i=r.tr.join(n);o&&i.setSelection(R.create(i.doc,n-r.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},W0=(r,e)=>{let t=r.selection,o;if(t instanceof R){if(t.node.isTextblock||!Ut(r.doc,t.to))return!1;o=t.to}else if(o=jn(r.doc,t.to,1),o==null)return!1;return e&&e(r.tr.join(o).scrollIntoView()),!0},q0=(r,e)=>{let{$from:t,$to:o}=r.selection,n=t.blockRange(o),i=n&&_r(n);return i==null?!1:(e&&e(r.tr.lift(n,i).scrollIntoView()),!0)},Mu=(r,e)=>{let{$head:t,$anchor:o}=r.selection;return!t.parent.type.spec.code||!t.sameParent(o)?!1:(e&&e(r.tr.insertText(`
|
|
20
|
-
`).scrollIntoView()),!0)};function ys(r){for(let e=0;e<r.edgeCount;e++){let{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const U0=(r,e)=>{let{$head:t,$anchor:o}=r.selection;if(!t.parent.type.spec.code||!t.sameParent(o))return!1;let n=t.node(-1),i=t.indexAfter(-1),a=ys(n.contentMatchAt(i));if(!a||!n.canReplaceWith(i,i,a))return!1;if(e){let l=t.after(),c=r.tr.replaceWith(l,l,a.createAndFill());c.setSelection(W.near(c.doc.resolve(l),1)),e(c.scrollIntoView())}return!0},Tu=(r,e)=>{let t=r.selection,{$from:o,$to:n}=t;if(t instanceof qe||o.parent.inlineContent||n.parent.inlineContent)return!1;let i=ys(n.parent.contentMatchAt(n.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let a=(!o.parentOffset&&n.index()<n.parent.childCount?o:n).pos,l=r.tr.insert(a,i.createAndFill());l.setSelection(j.create(l.doc,a+1)),e(l.scrollIntoView())}return!0},Ou=(r,e)=>{let{$cursor:t}=r.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let i=t.before();if(Ct(r.doc,i))return e&&e(r.tr.split(i).scrollIntoView()),!0}let o=t.blockRange(),n=o&&_r(o);return n==null?!1:(e&&e(r.tr.lift(o,n).scrollIntoView()),!0)};function K0(r){return(e,t)=>{let{$from:o,$to:n}=e.selection;if(e.selection instanceof R&&e.selection.node.isBlock)return!o.parentOffset||!Ct(e.doc,o.pos)?!1:(t&&t(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],a,l,c=!1,d=!1;for(let h=o.depth;;h--)if(o.node(h).isBlock){c=o.end(h)==o.pos+(o.depth-h),d=o.start(h)==o.pos-(o.depth-h),l=ys(o.node(h-1).contentMatchAt(o.indexAfter(h-1))),i.unshift(c&&l?{type:l}:null),a=h;break}else{if(h==1)return!1;i.unshift(null)}let u=e.tr;(e.selection instanceof j||e.selection instanceof qe)&&u.deleteSelection();let p=u.mapping.map(o.pos),m=Ct(u.doc,p,i.length,i);if(m||(i[0]=l?{type:l}:null,m=Ct(u.doc,p,i.length,i)),!m)return!1;if(u.split(p,i.length,i),!c&&d&&o.node(a).type!=l){let h=u.mapping.map(o.before(a)),f=u.doc.resolve(h);l&&o.node(a-1).canReplaceWith(f.index(),f.index()+1,l)&&u.setNodeMarkup(u.mapping.map(o.before(a)),l)}return t&&t(u.scrollIntoView()),!0}}const J0=K0(),G0=(r,e)=>{let{$from:t,to:o}=r.selection,n,i=t.sharedDepth(o);return i==0?!1:(n=t.before(i),e&&e(r.tr.setSelection(R.create(r.doc,n))),!0)};function Y0(r,e,t){let o=e.nodeBefore,n=e.nodeAfter,i=e.index();return!o||!n||!o.type.compatibleContent(n.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(t&&t(r.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(n.isTextblock||Ut(r.doc,e.pos))?!1:(t&&t(r.tr.join(e.pos).scrollIntoView()),!0)}function Vu(r,e,t,o){let n=e.nodeBefore,i=e.nodeAfter,a,l,c=n.type.spec.isolating||i.type.spec.isolating;if(!c&&Y0(r,e,t))return!0;let d=!c&&e.parent.canReplace(e.index(),e.index()+1);if(d&&(a=(l=n.contentMatchAt(n.childCount)).findWrapping(i.type))&&l.matchType(a[0]||i.type).validEnd){if(t){let h=e.pos+i.nodeSize,f=M.empty;for(let y=a.length-1;y>=0;y--)f=M.from(a[y].create(null,f));f=M.from(n.copy(f));let g=r.tr.step(new we(e.pos-1,h,e.pos,h,new A(f,1,0),a.length,!0)),b=g.doc.resolve(h+2*a.length);b.nodeAfter&&b.nodeAfter.type==n.type&&Ut(g.doc,b.pos)&&g.join(b.pos),t(g.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&c?null:W.findFrom(e,1),p=u&&u.$from.blockRange(u.$to),m=p&&_r(p);if(m!=null&&m>=e.depth)return t&&t(r.tr.lift(p,m).scrollIntoView()),!0;if(d&&Xr(i,"start",!0)&&Xr(n,"end")){let h=n,f=[];for(;f.push(h),!h.isTextblock;)h=h.lastChild;let g=i,b=1;for(;!g.isTextblock;g=g.firstChild)b++;if(h.canReplace(h.childCount,h.childCount,g.content)){if(t){let y=M.empty;for(let v=f.length-1;v>=0;v--)y=M.from(f[v].copy(y));let k=r.tr.step(new we(e.pos-f.length,e.pos+i.nodeSize,e.pos+b,e.pos+i.nodeSize-b,new A(y,f.length,0),0,!0));t(k.scrollIntoView())}return!0}}return!1}function Pu(r){return function(e,t){let o=e.selection,n=r<0?o.$from:o.$to,i=n.depth;for(;n.node(i).isInline;){if(!i)return!1;i--}return n.node(i).isTextblock?(t&&t(e.tr.setSelection(j.create(e.doc,r<0?n.start(i):n.end(i)))),!0):!1}}const X0=Pu(-1),Q0=Pu(1);function Z0(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,a=n.blockRange(i),l=a&&La(a,r,e);return l?(o&&o(t.tr.wrap(a,l).scrollIntoView()),!0):!1}}function Au(r,e=null){return function(t,o){let n=!1;for(let i=0;i<t.selection.ranges.length&&!n;i++){let{$from:{pos:a},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(a,l,(c,d)=>{if(n)return!1;if(!(!c.isTextblock||c.hasMarkup(r,e)))if(c.type==r)n=!0;else{let u=t.doc.resolve(d),p=u.index();n=u.parent.canReplaceWith(p,p+1,r)}})}if(!n)return!1;if(o){let i=t.tr;for(let a=0;a<t.selection.ranges.length;a++){let{$from:{pos:l},$to:{pos:c}}=t.selection.ranges[a];i.setBlockType(l,c,r,e)}o(i.scrollIntoView())}return!0}}function vs(...r){return function(e,t,o){for(let n=0;n<r.length;n++)if(r[n](e,t,o))return!0;return!1}}vs(gs,ku,Su),vs(gs,Nu,Bu),vs(Mu,Tu,Ou,J0),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function $0(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,a=n.blockRange(i);if(!a)return!1;let l=o?t.tr:null;return eb(l,a,r,e)?(o&&o(l.scrollIntoView()),!0):!1}}function eb(r,e,t,o=null){let n=!1,i=e,a=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(t)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let c=a.resolve(e.start-2);i=new In(c,c,e.depth),e.endIndex<e.parent.childCount&&(e=new In(e.$from,a.resolve(e.$to.end(e.depth)),e.depth)),n=!0}let l=La(i,t,o,e);return l?(r&&tb(r,e,l,n,t),!0):!1}function tb(r,e,t,o,n){let i=M.empty;for(let u=t.length-1;u>=0;u--)i=M.from(t[u].type.create(t[u].attrs,i));r.step(new we(e.start-(o?2:0),e.end,e.start,e.end,new A(i,0,0),t.length,!0));let a=0;for(let u=0;u<t.length;u++)t[u].type==n&&(a=u+1);let l=t.length-a,c=e.start+t.length-(o?2:0),d=e.parent;for(let u=e.startIndex,p=e.endIndex,m=!0;u<p;u++,m=!1)!m&&Ct(r.doc,c,l)&&(r.split(c,l),c+=2*l),c+=d.child(u).nodeSize;return r}function rb(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,a=>a.childCount>0&&a.firstChild.type==r);return i?t?o.node(i.depth-1).type==r?ob(e,t,r,i):nb(e,t,i):!0:!1}}function ob(r,e,t,o){let n=r.tr,i=o.end,a=o.$to.end(o.depth);i<a&&(n.step(new we(i-1,a,i,a,new A(M.from(t.create(null,o.parent.copy())),1,0),1,!0)),o=new In(n.doc.resolve(o.$from.pos),n.doc.resolve(a),o.depth));const l=_r(o);if(l==null)return!1;n.lift(o,l);let c=n.doc.resolve(n.mapping.map(i,-1)-1);return Ut(n.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&n.join(c.pos),e(n.scrollIntoView()),!0}function nb(r,e,t){let o=r.tr,n=t.parent;for(let h=t.end,f=t.endIndex-1,g=t.startIndex;f>g;f--)h-=n.child(f).nodeSize,o.delete(h-1,h+1);let i=o.doc.resolve(t.start),a=i.nodeAfter;if(o.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,c=t.endIndex==n.childCount,d=i.node(-1),u=i.index(-1);if(!d.canReplace(u+(l?0:1),u+1,a.content.append(c?M.empty:M.from(n))))return!1;let p=i.pos,m=p+a.nodeSize;return o.step(new we(p-(l?1:0),m+(c?1:0),p+1,m-1,new A((l?M.empty:M.from(n.copy(M.empty))).append(c?M.empty:M.from(n.copy(M.empty))),l?0:1,c?0:1),l?0:1)),e(o.scrollIntoView()),!0}function ib(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,d=>d.childCount>0&&d.firstChild.type==r);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let l=i.parent,c=l.child(a-1);if(c.type!=r)return!1;if(t){let d=c.lastChild&&c.lastChild.type==l.type,u=M.from(d?r.create():null),p=new A(M.from(r.create(null,M.from(l.type.create(null,u)))),d?3:1,0),m=i.start,h=i.end;t(e.tr.step(new we(m-(d?3:1),h,m,h,p,1,!0)).scrollIntoView())}return!0}}function ei(r){const{state:e,transaction:t}=r;let{selection:o}=t,{doc:n}=t,{storedMarks:i}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return o},get doc(){return n},get tr(){return o=t.selection,n=t.doc,i=t.storedMarks,t}}}class ti{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:o}=this,{view:n}=t,{tr:i}=o,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...u)=>{const p=c(...u)(a);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&n.dispatch(i),p}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:a}=n,l=[],c=!!e,d=e||i.tr,u=()=>(!c&&t&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(d),l.every(m=>m===!0)),p={...Object.fromEntries(Object.entries(o).map(([m,h])=>[m,(...g)=>{const b=this.buildProps(d,t),y=h(...g)(b);return l.push(y),p}])),run:u};return p}createCan(e){const{rawCommands:t,state:o}=this,n=!1,i=e||o.tr,a=this.buildProps(i,n);return{...Object.fromEntries(Object.entries(t).map(([c,d])=>[c,(...u)=>d(...u)({...a,dispatch:void 0})])),chain:()=>this.createChain(i,n)}}buildProps(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:a}=n,l={tr:e,editor:n,view:a,state:ei({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([c,d])=>[c,(...u)=>d(...u)(l)]))}};return l}}class ab{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const o=this.callbacks[e];return o&&o.forEach(n=>n.apply(this,t)),this}off(e,t){const o=this.callbacks[e];return o&&(t?this.callbacks[e]=o.filter(n=>n!==t):delete this.callbacks[e]),this}once(e,t){const o=(...n)=>{this.off(e,o),t.apply(this,n)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}}function I(r,e,t){return r.config[e]===void 0&&r.parent?I(r.parent,e,t):typeof r.config[e]=="function"?r.config[e].bind({...t,parent:r.parent?I(r.parent,e,t):null}):r.config[e]}function ri(r){const e=r.filter(n=>n.type==="extension"),t=r.filter(n=>n.type==="node"),o=r.filter(n=>n.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:o}}function Du(r){const e=[],{nodeExtensions:t,markExtensions:o}=ri(r),n=[...t,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return r.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage,extensions:n},c=I(a,"addGlobalAttributes",l);if(!c)return;c().forEach(u=>{u.types.forEach(p=>{Object.entries(u.attributes).forEach(([m,h])=>{e.push({type:p,name:m,attribute:{...i,...h}})})})})}),n.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage},c=I(a,"addAttributes",l);if(!c)return;const d=c();Object.entries(d).forEach(([u,p])=>{const m={...i,...p};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:a.name,name:u,attribute:m})})}),e}function ye(r,e){if(typeof r=="string"){if(!e.nodes[r])throw Error(`There is no node type named '${r}'. Maybe you forgot to add the extension?`);return e.nodes[r]}return r}function Ne(...r){return r.filter(e=>!!e).reduce((e,t)=>{const o={...e};return Object.entries(t).forEach(([n,i])=>{if(!o[n]){o[n]=i;return}if(n==="class"){const l=i?String(i).split(" "):[],c=o[n]?o[n].split(" "):[],d=l.filter(u=>!c.includes(u));o[n]=[...c,...d].join(" ")}else if(n==="style"){const l=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],c=o[n]?o[n].split(";").map(u=>u.trim()).filter(Boolean):[],d=new Map;c.forEach(u=>{const[p,m]=u.split(":").map(h=>h.trim());d.set(p,m)}),l.forEach(u=>{const[p,m]=u.split(":").map(h=>h.trim());d.set(p,m)}),o[n]=Array.from(d.entries()).map(([u,p])=>`${u}: ${p}`).join("; ")}else o[n]=i}),o},{})}function xs(r,e){return e.filter(t=>t.type===r.type.name).filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(r.attrs)||{}:{[t.name]:r.attrs[t.name]}).reduce((t,o)=>Ne(t,o),{})}function Iu(r){return typeof r=="function"}function U(r,e=void 0,...t){return Iu(r)?e?r.bind(e)(...t):r(...t):r}function sb(r={}){return Object.keys(r).length===0&&r.constructor===Object}function lb(r){return typeof r!="string"?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):r==="true"?!0:r==="false"?!1:r}function Lu(r,e){return"style"in r?r:{...r,getAttrs:t=>{const o=r.getAttrs?r.getAttrs(t):r.attrs;if(o===!1)return!1;const n=e.reduce((i,a)=>{const l=a.attribute.parseHTML?a.attribute.parseHTML(t):lb(t.getAttribute(a.name));return l==null?i:{...i,[a.name]:l}},{});return{...o,...n}}}}function Ru(r){return Object.fromEntries(Object.entries(r).filter(([e,t])=>e==="attrs"&&sb(t)?!1:t!=null))}function cb(r,e){var t;const o=Du(r),{nodeExtensions:n,markExtensions:i}=ri(r),a=(t=n.find(d=>I(d,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(n.map(d=>{const u=o.filter(y=>y.type===d.name),p={name:d.name,options:d.options,storage:d.storage,editor:e},m=r.reduce((y,k)=>{const v=I(k,"extendNodeSchema",p);return{...y,...v?v(d):{}}},{}),h=Ru({...m,content:U(I(d,"content",p)),marks:U(I(d,"marks",p)),group:U(I(d,"group",p)),inline:U(I(d,"inline",p)),atom:U(I(d,"atom",p)),selectable:U(I(d,"selectable",p)),draggable:U(I(d,"draggable",p)),code:U(I(d,"code",p)),whitespace:U(I(d,"whitespace",p)),linebreakReplacement:U(I(d,"linebreakReplacement",p)),defining:U(I(d,"defining",p)),isolating:U(I(d,"isolating",p)),attrs:Object.fromEntries(u.map(y=>{var k;return[y.name,{default:(k=y==null?void 0:y.attribute)===null||k===void 0?void 0:k.default}]}))}),f=U(I(d,"parseHTML",p));f&&(h.parseDOM=f.map(y=>Lu(y,u)));const g=I(d,"renderHTML",p);g&&(h.toDOM=y=>g({node:y,HTMLAttributes:xs(y,u)}));const b=I(d,"renderText",p);return b&&(h.toText=b),[d.name,h]})),c=Object.fromEntries(i.map(d=>{const u=o.filter(b=>b.type===d.name),p={name:d.name,options:d.options,storage:d.storage,editor:e},m=r.reduce((b,y)=>{const k=I(y,"extendMarkSchema",p);return{...b,...k?k(d):{}}},{}),h=Ru({...m,inclusive:U(I(d,"inclusive",p)),excludes:U(I(d,"excludes",p)),group:U(I(d,"group",p)),spanning:U(I(d,"spanning",p)),code:U(I(d,"code",p)),attrs:Object.fromEntries(u.map(b=>{var y;return[b.name,{default:(y=b==null?void 0:b.attribute)===null||y===void 0?void 0:y.default}]}))}),f=U(I(d,"parseHTML",p));f&&(h.parseDOM=f.map(b=>Lu(b,u)));const g=I(d,"renderHTML",p);return g&&(h.toDOM=b=>g({mark:b,HTMLAttributes:xs(b,u)})),[d.name,h]}));return new Bc({topNode:a,nodes:l,marks:c})}function ks(r,e){return e.nodes[r]||e.marks[r]||null}function zu(r,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===r.name):e}function Es(r,e){const t=hr.fromSchema(e).serializeFragment(r),n=document.implementation.createHTMLDocument().createElement("div");return n.appendChild(t),n.innerHTML}const db=(r,e=500)=>{let t="";const o=r.parentOffset;return r.parent.nodesBetween(Math.max(0,o-e),o,(n,i,a,l)=>{var c,d;const u=((d=(c=n.type.spec).toText)===null||d===void 0?void 0:d.call(c,{node:n,pos:i,parent:a,index:l}))||n.textContent||"%leaf%";t+=n.isAtom&&!n.isText?u:u.slice(0,Math.max(0,o-i))}),t};function Ss(r){return Object.prototype.toString.call(r)==="[object RegExp]"}class oi{constructor(e){this.find=e.find,this.handler=e.handler}}const ub=(r,e)=>{if(Ss(e))return e.exec(r);const t=e(r);if(!t)return null;const o=[t.text];return o.index=t.index,o.input=r,o.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(t.replaceWith)),o};function ni(r){var e;const{editor:t,from:o,to:n,text:i,rules:a,plugin:l}=r,{view:c}=t;if(c.composing)return!1;const d=c.state.doc.resolve(o);if(d.parent.type.spec.code||!((e=d.nodeBefore||d.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let u=!1;const p=db(d)+i;return a.forEach(m=>{if(u)return;const h=ub(p,m.find);if(!h)return;const f=c.state.tr,g=ei({state:c.state,transaction:f}),b={from:o-(h[0].length-i.length),to:n},{commands:y,chain:k,can:v}=new ti({editor:t,state:g});m.handler({state:g,range:b,match:h,commands:y,chain:k,can:v})===null||!f.steps.length||(f.setMeta(l,{transform:f,from:o,to:n,text:i}),c.dispatch(f),u=!0)}),u}function pb(r){const{editor:e,rules:t}=r,o=new he({state:{init(){return null},apply(n,i,a){const l=n.getMeta(o);if(l)return l;const c=n.getMeta("applyInputRules");return!!c&&setTimeout(()=>{let{text:u}=c;typeof u=="string"?u=u:u=Es(M.from(u),a.schema);const{from:p}=c,m=p+u.length;ni({editor:e,from:p,to:m,text:u,rules:t,plugin:o})}),n.selectionSet||n.docChanged?null:i}},props:{handleTextInput(n,i,a,l){return ni({editor:e,from:i,to:a,text:l,rules:t,plugin:o})},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:i}=n.state.selection;i&&ni({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:o})}),!1)},handleKeyDown(n,i){if(i.key!=="Enter")return!1;const{$cursor:a}=n.state.selection;return a?ni({editor:e,from:a.pos,to:a.pos,text:`
|
|
21
|
-
`,rules:t,plugin:o}):!1}},isInputRules:!0});return o}function
|
|
22
|
-
|
|
23
|
-
`,textSerializers:a={}}=t||{};let l="";return r.nodesBetween(o,n,(c,d,u,p)=>{var m;c.isBlock&&d>o&&(l+=i);const h=a==null?void 0:a[c.type.name];if(h)return u&&(l+=h({node:c,pos:d,parent:u,index:p,range:e})),!1;c.isText&&(l+=(m=c==null?void 0:c.text)===null||m===void 0?void 0:m.slice(Math.max(o,d)-d,n-d))}),l}function Cs(r){return Object.fromEntries(Object.entries(r.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const xb=Be.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new he({key:new Ae("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:r}=this,{state:e,schema:t}=r,{doc:o,selection:n}=e,{ranges:i}=n,a=Math.min(...i.map(u=>u.$from.pos)),l=Math.max(...i.map(u=>u.$to.pos)),c=Cs(t);return _u(o,{from:a,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:c})}}})]}}),kb=()=>({editor:r,view:e})=>(requestAnimationFrame(()=>{var t;r.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Eb=(r=!1)=>({commands:e})=>e.setContent("",r),Sb=()=>({state:r,tr:e,dispatch:t})=>{const{selection:o}=e,{ranges:n}=o;return t&&n.forEach(({$from:i,$to:a})=>{r.doc.nodesBetween(i.pos,a.pos,(l,c)=>{if(l.type.isText)return;const{doc:d,mapping:u}=e,p=d.resolve(u.map(c)),m=d.resolve(u.map(c+l.nodeSize)),h=p.blockRange(m);if(!h)return;const f=_r(h);if(l.type.isTextblock){const{defaultType:g}=p.parent.contentMatchAt(p.index());e.setNodeMarkup(h.start,g)}(f||f===0)&&e.lift(h,f)})}),!0},Cb=r=>e=>r(e),Nb=()=>({state:r,dispatch:e})=>Tu(r,e),Bb=(r,e)=>({editor:t,tr:o})=>{const{state:n}=t,i=n.doc.slice(r.from,r.to);o.deleteRange(r.from,r.to);const a=o.mapping.map(e);return o.insert(a,i.content),o.setSelection(new j(o.doc.resolve(a-1))),!0},Mb=()=>({tr:r,dispatch:e})=>{const{selection:t}=r,o=t.$anchor.node();if(o.content.size>0)return!1;const n=r.selection.$anchor;for(let i=n.depth;i>0;i-=1)if(n.node(i).type===o.type){if(e){const l=n.before(i),c=n.after(i);r.delete(l,c).scrollIntoView()}return!0}return!1},Tb=r=>({tr:e,state:t,dispatch:o})=>{const n=ye(r,t.schema),i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===n){if(o){const c=i.before(a),d=i.after(a);e.delete(c,d).scrollIntoView()}return!0}return!1},Ob=r=>({tr:e,dispatch:t})=>{const{from:o,to:n}=r;return t&&e.delete(o,n),!0},Vb=()=>({state:r,dispatch:e})=>gs(r,e),Pb=()=>({commands:r})=>r.keyboardShortcut("Enter"),Ab=()=>({state:r,dispatch:e})=>U0(r,e);function li(r,e,t={strict:!0}){const o=Object.keys(e);return o.length?o.every(n=>t.strict?e[n]===r[n]:Ss(e[n])?e[n].test(r[n]):e[n]===r[n]):!0}function Fu(r,e,t={}){return r.find(o=>o.type===e&&li(Object.fromEntries(Object.keys(t).map(n=>[n,o.attrs[n]])),t))}function ju(r,e,t={}){return!!Fu(r,e,t)}function Ns(r,e,t){var o;if(!r||!e)return;let n=r.parent.childAfter(r.parentOffset);if((!n.node||!n.node.marks.some(u=>u.type===e))&&(n=r.parent.childBefore(r.parentOffset)),!n.node||!n.node.marks.some(u=>u.type===e)||(t=t||((o=n.node.marks[0])===null||o===void 0?void 0:o.attrs),!Fu([...n.node.marks],e,t)))return;let a=n.index,l=r.start()+n.offset,c=a+1,d=l+n.node.nodeSize;for(;a>0&&ju([...r.parent.child(a-1).marks],e,t);)a-=1,l-=r.parent.child(a).nodeSize;for(;c<r.parent.childCount&&ju([...r.parent.child(c).marks],e,t);)d+=r.parent.child(c).nodeSize,c+=1;return{from:l,to:d}}function tr(r,e){if(typeof r=="string"){if(!e.marks[r])throw Error(`There is no mark type named '${r}'. Maybe you forgot to add the extension?`);return e.marks[r]}return r}const Db=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const i=tr(r,o.schema),{doc:a,selection:l}=t,{$from:c,from:d,to:u}=l;if(n){const p=Ns(c,i,e);if(p&&p.from<=d&&p.to>=u){const m=j.create(a,p.from,p.to);t.setSelection(m)}}return!0},Ib=r=>e=>{const t=typeof r=="function"?r(e):r;for(let o=0;o<t.length;o+=1)if(t[o](e))return!0;return!1};function Bs(r){return r instanceof j}function Vt(r=0,e=0,t=0){return Math.min(Math.max(r,e),t)}function Hu(r,e=null){if(!e)return null;const t=W.atStart(r),o=W.atEnd(r);if(e==="start"||e===!0)return t;if(e==="end")return o;const n=t.from,i=o.to;return e==="all"?j.create(r,Vt(0,n,i),Vt(r.content.size,n,i)):j.create(r,Vt(e,n,i),Vt(e,n,i))}function Lb(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Ms(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Rb=(r=null,e={})=>({editor:t,view:o,tr:n,dispatch:i})=>{e={scrollIntoView:!0,...e};const a=()=>{(Ms()||Lb())&&o.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(o.hasFocus()&&r===null||r===!1)return!0;if(i&&r===null&&!Bs(t.state.selection))return a(),!0;const l=Hu(n.doc,r)||t.state.selection,c=t.state.selection.eq(l);return i&&(c||n.setSelection(l),c&&n.storedMarks&&n.setStoredMarks(n.storedMarks),a()),!0},zb=(r,e)=>t=>r.every((o,n)=>e(o,{...t,index:n})),_b=(r,e)=>({tr:t,commands:o})=>o.insertContentAt({from:t.selection.from,to:t.selection.to},r,e),Wu=r=>{const e=r.childNodes;for(let t=e.length-1;t>=0;t-=1){const o=e[t];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?r.removeChild(o):o.nodeType===1&&Wu(o)}return r};function ci(r){const e=`<body>${r}</body>`,t=new window.DOMParser().parseFromString(e,"text/html").body;return Wu(t)}function _o(r,e,t){if(r instanceof Ht||r instanceof M)return r;t={slice:!0,parseOptions:{},...t};const o=typeof r=="object"&&r!==null,n=typeof r=="string";if(o)try{if(Array.isArray(r)&&r.length>0)return M.fromArray(r.map(l=>e.nodeFromJSON(l)));const a=e.nodeFromJSON(r);return t.errorOnInvalidContent&&a.check(),a}catch(i){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",r,"Error:",i),_o("",e,t)}if(n){if(t.errorOnInvalidContent){let a=!1,l="";const c=new Bc({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:d=>(a=!0,l=typeof d=="string"?d:d.outerHTML,null)}]}})});if(t.slice?ko.fromSchema(c).parseSlice(ci(r),t.parseOptions):ko.fromSchema(c).parse(ci(r),t.parseOptions),t.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const i=ko.fromSchema(e);return t.slice?i.parseSlice(ci(r),t.parseOptions).content:i.parse(ci(r),t.parseOptions)}return _o("",e,t)}function Fb(r,e,t){const o=r.steps.length-1;if(o<e)return;const n=r.steps[o];if(!(n instanceof be||n instanceof we))return;const i=r.mapping.maps[o];let a=0;i.forEach((l,c,d,u)=>{a===0&&(a=u)}),r.setSelection(W.near(r.doc.resolve(a),t))}const jb=r=>!("type"in r),Hb=(r,e,t)=>({tr:o,dispatch:n,editor:i})=>{var a;if(n){t={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let l;const c=b=>{i.emit("contentError",{editor:i,error:b,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},d={preserveWhitespace:"full",...t.parseOptions};if(!t.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{_o(e,i.schema,{parseOptions:d,errorOnInvalidContent:!0})}catch(b){c(b)}try{l=_o(e,i.schema,{parseOptions:d,errorOnInvalidContent:(a=t.errorOnInvalidContent)!==null&&a!==void 0?a:i.options.enableContentCheck})}catch(b){return c(b),!1}let{from:u,to:p}=typeof r=="number"?{from:r,to:r}:{from:r.from,to:r.to},m=!0,h=!0;if((jb(l)?l:[l]).forEach(b=>{b.check(),m=m?b.isText&&b.marks.length===0:!1,h=h?b.isBlock:!1}),u===p&&h){const{parent:b}=o.doc.resolve(u);b.isTextblock&&!b.type.spec.code&&!b.childCount&&(u-=1,p+=1)}let g;if(m){if(Array.isArray(e))g=e.map(b=>b.text||"").join("");else if(e instanceof M){let b="";e.forEach(y=>{y.text&&(b+=y.text)}),g=b}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,p)}else g=l,o.replaceWith(u,p,g);t.updateSelection&&Fb(o,o.steps.length-1,-1),t.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),t.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},Wb=()=>({state:r,dispatch:e})=>H0(r,e),qb=()=>({state:r,dispatch:e})=>W0(r,e),Ub=()=>({state:r,dispatch:e})=>ku(r,e),Kb=()=>({state:r,dispatch:e})=>Nu(r,e),Jb=()=>({state:r,dispatch:e,tr:t})=>{try{const o=jn(r.doc,r.selection.$from.pos,-1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Gb=()=>({state:r,dispatch:e,tr:t})=>{try{const o=jn(r.doc,r.selection.$from.pos,1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Yb=()=>({state:r,dispatch:e})=>F0(r,e),Xb=()=>({state:r,dispatch:e})=>j0(r,e);function qu(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Qb(r){const e=r.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let o,n,i,a;for(let l=0;l<e.length-1;l+=1){const c=e[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))o=!0;else if(/^(c|ctrl|control)$/i.test(c))n=!0;else if(/^s(hift)?$/i.test(c))i=!0;else if(/^mod$/i.test(c))Ms()||qu()?a=!0:n=!0;else throw new Error(`Unrecognized modifier name: ${c}`)}return o&&(t=`Alt-${t}`),n&&(t=`Ctrl-${t}`),a&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const Zb=r=>({editor:e,view:t,tr:o,dispatch:n})=>{const i=Qb(r).split(/-(?!$)/),a=i.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),l=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),c=e.captureTransaction(()=>{t.someProp("handleKeyDown",d=>d(t,l))});return c==null||c.steps.forEach(d=>{const u=d.map(o.mapping);u&&n&&o.maybeStep(u)}),!0};function Fo(r,e,t={}){const{from:o,to:n,empty:i}=r.selection,a=e?ye(e,r.schema):null,l=[];r.doc.nodesBetween(o,n,(p,m)=>{if(p.isText)return;const h=Math.max(o,m),f=Math.min(n,m+p.nodeSize);l.push({node:p,from:h,to:f})});const c=n-o,d=l.filter(p=>a?a.name===p.node.type.name:!0).filter(p=>li(p.node.attrs,t,{strict:!1}));return i?!!d.length:d.reduce((p,m)=>p+m.to-m.from,0)>=c}const $b=(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return Fo(t,n,e)?q0(t,o):!1},ew=()=>({state:r,dispatch:e})=>Ou(r,e),tw=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return rb(o)(e,t)},rw=()=>({state:r,dispatch:e})=>Mu(r,e);function di(r,e){return e.nodes[r]?"node":e.marks[r]?"mark":null}function Uu(r,e){const t=typeof e=="string"?[e]:e;return Object.keys(r).reduce((o,n)=>(t.includes(n)||(o[n]=r[n]),o),{})}const ow=(r,e)=>({tr:t,state:o,dispatch:n})=>{let i=null,a=null;const l=di(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(a=tr(r,o.schema)),n&&t.selection.ranges.forEach(c=>{o.doc.nodesBetween(c.$from.pos,c.$to.pos,(d,u)=>{i&&i===d.type&&t.setNodeMarkup(u,void 0,Uu(d.attrs,e)),a&&d.marks.length&&d.marks.forEach(p=>{a===p.type&&t.addMark(u,u+d.nodeSize,a.create(Uu(p.attrs,e)))})})}),!0):!1},nw=()=>({tr:r,dispatch:e})=>(e&&r.scrollIntoView(),!0),iw=()=>({tr:r,dispatch:e})=>{if(e){const t=new qe(r.doc);r.setSelection(t)}return!0},aw=()=>({state:r,dispatch:e})=>Su(r,e),sw=()=>({state:r,dispatch:e})=>Bu(r,e),lw=()=>({state:r,dispatch:e})=>G0(r,e),cw=()=>({state:r,dispatch:e})=>Q0(r,e),dw=()=>({state:r,dispatch:e})=>X0(r,e);function Ts(r,e,t={},o={}){return _o(r,e,{slice:!1,parseOptions:t,errorOnInvalidContent:o.errorOnInvalidContent})}const uw=(r,e=!1,t={},o={})=>({editor:n,tr:i,dispatch:a,commands:l})=>{var c,d;const{doc:u}=i;if(t.preserveWhitespace!=="full"){const p=Ts(r,n.schema,t,{errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:n.options.enableContentCheck});return a&&i.replaceWith(0,u.content.size,p).setMeta("preventUpdate",!e),!0}return a&&i.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:u.content.size},r,{parseOptions:t,errorOnInvalidContent:(d=o.errorOnInvalidContent)!==null&&d!==void 0?d:n.options.enableContentCheck})};function Ku(r,e){const t=tr(e,r.schema),{from:o,to:n,empty:i}=r.selection,a=[];i?(r.storedMarks&&a.push(...r.storedMarks),a.push(...r.selection.$head.marks())):r.doc.nodesBetween(o,n,c=>{a.push(...c.marks)});const l=a.find(c=>c.type.name===t.name);return l?{...l.attrs}:{}}function pw(r,e){const t=new Zc(r);return e.forEach(o=>{o.steps.forEach(n=>{t.step(n)})}),t}function mw(r){for(let e=0;e<r.edgeCount;e+=1){const{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function hw(r,e,t){const o=[];return r.nodesBetween(e.from,e.to,(n,i)=>{t(n)&&o.push({node:n,pos:i})}),o}function fw(r,e){for(let t=r.depth;t>0;t-=1){const o=r.node(t);if(e(o))return{pos:t>0?r.before(t):0,start:r.start(t),depth:t,node:o}}}function Os(r){return e=>fw(e.$from,r)}function Ju(r,e){const t={from:0,to:r.content.size};return _u(r,t,e)}function gw(r,e){const t=ye(e,r.schema),{from:o,to:n}=r.selection,i=[];r.doc.nodesBetween(o,n,l=>{i.push(l)});const a=i.reverse().find(l=>l.type.name===t.name);return a?{...a.attrs}:{}}function Gu(r,e){const t=di(typeof e=="string"?e:e.name,r.schema);return t==="node"?gw(r,e):t==="mark"?Ku(r,e):{}}function bw(r,e=JSON.stringify){const t={};return r.filter(o=>{const n=e(o);return Object.prototype.hasOwnProperty.call(t,n)?!1:t[n]=!0})}function ww(r){const e=bw(r);return e.length===1?e:e.filter((t,o)=>!e.filter((i,a)=>a!==o).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function yw(r){const{mapping:e,steps:t}=r,o=[];return e.maps.forEach((n,i)=>{const a=[];if(n.ranges.length)n.forEach((l,c)=>{a.push({from:l,to:c})});else{const{from:l,to:c}=t[i];if(l===void 0||c===void 0)return;a.push({from:l,to:c})}a.forEach(({from:l,to:c})=>{const d=e.slice(i).map(l,-1),u=e.slice(i).map(c),p=e.invert().map(d,-1),m=e.invert().map(u);o.push({oldRange:{from:p,to:m},newRange:{from:d,to:u}})})}),ww(o)}function Vs(r,e,t){const o=[];return r===e?t.resolve(r).marks().forEach(n=>{const i=t.resolve(r),a=Ns(i,n.type);a&&o.push({mark:n,...a})}):t.nodesBetween(r,e,(n,i)=>{!n||(n==null?void 0:n.nodeSize)===void 0||o.push(...n.marks.map(a=>({from:i,to:i+n.nodeSize,mark:a})))}),o}function ui(r,e,t){return Object.fromEntries(Object.entries(t).filter(([o])=>{const n=r.find(i=>i.type===e&&i.name===o);return n?n.attribute.keepOnSplit:!1}))}function Ps(r,e,t={}){const{empty:o,ranges:n}=r.selection,i=e?tr(e,r.schema):null;if(o)return!!(r.storedMarks||r.selection.$from.marks()).filter(p=>i?i.name===p.type.name:!0).find(p=>li(p.attrs,t,{strict:!1}));let a=0;const l=[];if(n.forEach(({$from:p,$to:m})=>{const h=p.pos,f=m.pos;r.doc.nodesBetween(h,f,(g,b)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(h,b),k=Math.min(f,b+g.nodeSize),v=k-y;a+=v,l.push(...g.marks.map(w=>({mark:w,from:y,to:k})))})}),a===0)return!1;const c=l.filter(p=>i?i.name===p.mark.type.name:!0).filter(p=>li(p.mark.attrs,t,{strict:!1})).reduce((p,m)=>p+m.to-m.from,0),d=l.filter(p=>i?p.mark.type!==i&&p.mark.type.excludes(i):!0).reduce((p,m)=>p+m.to-m.from,0);return(c>0?c+d:c)>=a}function vw(r,e,t={}){if(!e)return Fo(r,null,t)||Ps(r,null,t);const o=di(e,r.schema);return o==="node"?Fo(r,e,t):o==="mark"?Ps(r,e,t):!1}function Yu(r,e){const{nodeExtensions:t}=ri(e),o=t.find(a=>a.name===r);if(!o)return!1;const n={name:o.name,options:o.options,storage:o.storage},i=U(I(o,"group",n));return typeof i!="string"?!1:i.split(" ").includes("list")}function As(r,{checkChildren:e=!0,ignoreWhitespace:t=!1}={}){var o;if(t){if(r.type.name==="hardBreak")return!0;if(r.isText)return/^\s*$/m.test((o=r.text)!==null&&o!==void 0?o:"")}if(r.isText)return!r.text;if(r.isAtom||r.isLeaf)return!1;if(r.content.childCount===0)return!0;if(e){let n=!0;return r.content.forEach(i=>{n!==!1&&(As(i,{ignoreWhitespace:t,checkChildren:e})||(n=!1))}),n}return!1}function Xu(r){return r instanceof R}function Qu(r,e,t){const n=r.state.doc.content.size,i=Vt(e,0,n),a=Vt(t,0,n),l=r.coordsAtPos(i),c=r.coordsAtPos(a,-1),d=Math.min(l.top,c.top),u=Math.max(l.bottom,c.bottom),p=Math.min(l.left,c.left),m=Math.max(l.right,c.right),h=m-p,f=u-d,y={top:d,bottom:u,left:p,right:m,width:h,height:f,x:p,y:d};return{...y,toJSON:()=>y}}function xw(r,e,t){var o;const{selection:n}=e;let i=null;if(Bs(n)&&(i=n.$cursor),i){const l=(o=r.storedMarks)!==null&&o!==void 0?o:i.marks();return!!t.isInSet(l)||!l.some(c=>c.type.excludes(t))}const{ranges:a}=n;return a.some(({$from:l,$to:c})=>{let d=l.depth===0?r.doc.inlineContent&&r.doc.type.allowsMarkType(t):!1;return r.doc.nodesBetween(l.pos,c.pos,(u,p,m)=>{if(d)return!1;if(u.isInline){const h=!m||m.type.allowsMarkType(t),f=!!t.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(t));d=h&&f}return!d}),d})}const kw=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const{selection:i}=t,{empty:a,ranges:l}=i,c=tr(r,o.schema);if(n)if(a){const d=Ku(o,c);t.addStoredMark(c.create({...d,...e}))}else l.forEach(d=>{const u=d.$from.pos,p=d.$to.pos;o.doc.nodesBetween(u,p,(m,h)=>{const f=Math.max(h,u),g=Math.min(h+m.nodeSize,p);m.marks.find(y=>y.type===c)?m.marks.forEach(y=>{c===y.type&&t.addMark(f,g,c.create({...y.attrs,...e}))}):t.addMark(f,g,c.create(e))})});return xw(o,t,c)},Ew=(r,e)=>({tr:t})=>(t.setMeta(r,e),!0),Sw=(r,e={})=>({state:t,dispatch:o,chain:n})=>{const i=ye(r,t.schema);let a;return t.selection.$anchor.sameParent(t.selection.$head)&&(a=t.selection.$anchor.parent.attrs),i.isTextblock?n().command(({commands:l})=>Au(i,{...a,...e})(t)?!0:l.clearNodes()).command(({state:l})=>Au(i,{...a,...e})(l,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Cw=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,n=Vt(r,0,o.content.size),i=R.create(o,n);e.setSelection(i)}return!0},Nw=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,{from:n,to:i}=typeof r=="number"?{from:r,to:r}:r,a=j.atStart(o).from,l=j.atEnd(o).to,c=Vt(n,a,l),d=Vt(i,a,l),u=j.create(o,c,d);e.setSelection(u)}return!0},Bw=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return ib(o)(e,t)};function Zu(r,e){const t=r.storedMarks||r.selection.$to.parentOffset&&r.selection.$from.marks();if(t){const o=t.filter(n=>e==null?void 0:e.includes(n.type.name));r.tr.ensureMarks(o)}}const Mw=({keepMarks:r=!0}={})=>({tr:e,state:t,dispatch:o,editor:n})=>{const{selection:i,doc:a}=e,{$from:l,$to:c}=i,d=n.extensionManager.attributes,u=ui(d,l.node().type.name,l.node().attrs);if(i instanceof R&&i.node.isBlock)return!l.parentOffset||!Ct(a,l.pos)?!1:(o&&(r&&Zu(t,n.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const p=c.parentOffset===c.parent.content.size,m=l.depth===0?void 0:mw(l.node(-1).contentMatchAt(l.indexAfter(-1)));let h=p&&m?[{type:m,attrs:u}]:void 0,f=Ct(e.doc,e.mapping.map(l.pos),1,h);if(!h&&!f&&Ct(e.doc,e.mapping.map(l.pos),1,m?[{type:m}]:void 0)&&(f=!0,h=m?[{type:m,attrs:u}]:void 0),o){if(f&&(i instanceof j&&e.deleteSelection(),e.split(e.mapping.map(l.pos),1,h),m&&!p&&!l.parentOffset&&l.parent.type!==m)){const g=e.mapping.map(l.before()),b=e.doc.resolve(g);l.node(-1).canReplaceWith(b.index(),b.index()+1,m)&&e.setNodeMarkup(e.mapping.map(l.before()),m)}r&&Zu(t,n.extensionManager.splittableMarks),e.scrollIntoView()}return f},Tw=(r,e={})=>({tr:t,state:o,dispatch:n,editor:i})=>{var a;const l=ye(r,o.schema),{$from:c,$to:d}=o.selection,u=o.selection.node;if(u&&u.isBlock||c.depth<2||!c.sameParent(d))return!1;const p=c.node(-1);if(p.type!==l)return!1;const m=i.extensionManager.attributes;if(c.parent.content.size===0&&c.node(-1).childCount===c.indexAfter(-1)){if(c.depth===2||c.node(-3).type!==l||c.index(-2)!==c.node(-2).childCount-1)return!1;if(n){let y=M.empty;const k=c.index(-1)?1:c.index(-2)?2:3;for(let O=c.depth-k;O>=c.depth-3;O-=1)y=M.from(c.node(O).copy(y));const v=c.indexAfter(-1)<c.node(-2).childCount?1:c.indexAfter(-2)<c.node(-3).childCount?2:3,w={...ui(m,c.node().type.name,c.node().attrs),...e},S=((a=l.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(w))||void 0;y=y.append(M.from(l.createAndFill(null,S)||void 0));const x=c.before(c.depth-(k-1));t.replace(x,c.after(-v),new A(y,4-k,0));let C=-1;t.doc.nodesBetween(x,t.doc.content.size,(O,D)=>{if(C>-1)return!1;O.isTextblock&&O.content.size===0&&(C=D+1)}),C>-1&&t.setSelection(j.near(t.doc.resolve(C))),t.scrollIntoView()}return!0}const h=d.pos===c.end()?p.contentMatchAt(0).defaultType:null,f={...ui(m,p.type.name,p.attrs),...e},g={...ui(m,c.node().type.name,c.node().attrs),...e};t.delete(c.pos,d.pos);const b=h?[{type:l,attrs:f},{type:h,attrs:g}]:[{type:l,attrs:f}];if(!Ct(t.doc,c.pos,2))return!1;if(n){const{selection:y,storedMarks:k}=o,{splittableMarks:v}=i.extensionManager,w=k||y.$to.parentOffset&&y.$from.marks();if(t.split(c.pos,2,b).scrollIntoView(),!w||!n)return!0;const S=w.filter(x=>v.includes(x.type.name));t.ensureMarks(S)}return!0},Ds=(r,e)=>{const t=Os(a=>a.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&Ut(r.doc,t.pos)&&r.join(t.pos),!0},Is=(r,e)=>{const t=Os(a=>a.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(t.start).after(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&Ut(r.doc,o)&&r.join(o),!0};var Ow=Object.freeze({__proto__:null,blur:kb,clearContent:Eb,clearNodes:Sb,command:Cb,createParagraphNear:Nb,cut:Bb,deleteCurrentNode:Mb,deleteNode:Tb,deleteRange:Ob,deleteSelection:Vb,enter:Pb,exitCode:Ab,extendMarkRange:Db,first:Ib,focus:Rb,forEach:zb,insertContent:_b,insertContentAt:Hb,joinBackward:Ub,joinDown:qb,joinForward:Kb,joinItemBackward:Jb,joinItemForward:Gb,joinTextblockBackward:Yb,joinTextblockForward:Xb,joinUp:Wb,keyboardShortcut:Zb,lift:$b,liftEmptyBlock:ew,liftListItem:tw,newlineInCode:rw,resetAttributes:ow,scrollIntoView:nw,selectAll:iw,selectNodeBackward:aw,selectNodeForward:sw,selectParentNode:lw,selectTextblockEnd:cw,selectTextblockStart:dw,setContent:uw,setMark:kw,setMeta:Ew,setNode:Sw,setNodeSelection:Cw,setTextSelection:Nw,sinkListItem:Bw,splitBlock:Mw,splitListItem:Tw,toggleList:(r,e,t,o={})=>({editor:n,tr:i,state:a,dispatch:l,chain:c,commands:d,can:u})=>{const{extensions:p,splittableMarks:m}=n.extensionManager,h=ye(r,a.schema),f=ye(e,a.schema),{selection:g,storedMarks:b}=a,{$from:y,$to:k}=g,v=y.blockRange(k),w=b||g.$to.parentOffset&&g.$from.marks();if(!v)return!1;const S=Os(x=>Yu(x.type.name,p))(g);if(v.depth>=1&&S&&v.depth-S.depth<=1){if(S.node.type===h)return d.liftListItem(f);if(Yu(S.node.type.name,p)&&h.validContent(S.node.content)&&l)return c().command(()=>(i.setNodeMarkup(S.pos,h),!0)).command(()=>Ds(i,h)).command(()=>Is(i,h)).run()}return!t||!w||!l?c().command(()=>u().wrapInList(h,o)?!0:d.clearNodes()).wrapInList(h,o).command(()=>Ds(i,h)).command(()=>Is(i,h)).run():c().command(()=>{const x=u().wrapInList(h,o),C=w.filter(O=>m.includes(O.type.name));return i.ensureMarks(C),x?!0:d.clearNodes()}).wrapInList(h,o).command(()=>Ds(i,h)).command(()=>Is(i,h)).run()},toggleMark:(r,e={},t={})=>({state:o,commands:n})=>{const{extendEmptyMarkRange:i=!1}=t,a=tr(r,o.schema);return Ps(o,a,e)?n.unsetMark(a,{extendEmptyMarkRange:i}):n.setMark(a,e)},toggleNode:(r,e,t={})=>({state:o,commands:n})=>{const i=ye(r,o.schema),a=ye(e,o.schema),l=Fo(o,i,t);let c;return o.selection.$anchor.sameParent(o.selection.$head)&&(c=o.selection.$anchor.parent.attrs),l?n.setNode(a,c):n.setNode(i,{...c,...t})},toggleWrap:(r,e={})=>({state:t,commands:o})=>{const n=ye(r,t.schema);return Fo(t,n,e)?o.lift(n):o.wrapIn(n,e)},undoInputRule:()=>({state:r,dispatch:e})=>{const t=r.plugins;for(let o=0;o<t.length;o+=1){const n=t[o];let i;if(n.spec.isInputRules&&(i=n.getState(r))){if(e){const a=r.tr,l=i.transform;for(let c=l.steps.length-1;c>=0;c-=1)a.step(l.steps[c].invert(l.docs[c]));if(i.text){const c=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,r.schema.text(i.text,c))}else a.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:r,dispatch:e})=>{const{selection:t}=r,{empty:o,ranges:n}=t;return o||e&&n.forEach(i=>{r.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(r,e={})=>({tr:t,state:o,dispatch:n})=>{var i;const{extendEmptyMarkRange:a=!1}=e,{selection:l}=t,c=tr(r,o.schema),{$from:d,empty:u,ranges:p}=l;if(!n)return!0;if(u&&a){let{from:m,to:h}=l;const f=(i=d.marks().find(b=>b.type===c))===null||i===void 0?void 0:i.attrs,g=Ns(d,c,f);g&&(m=g.from,h=g.to),t.removeMark(m,h,c)}else p.forEach(m=>{t.removeMark(m.$from.pos,m.$to.pos,c)});return t.removeStoredMark(c),!0},updateAttributes:(r,e={})=>({tr:t,state:o,dispatch:n})=>{let i=null,a=null;const l=di(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(a=tr(r,o.schema)),n&&t.selection.ranges.forEach(c=>{const d=c.$from.pos,u=c.$to.pos;let p,m,h,f;t.selection.empty?o.doc.nodesBetween(d,u,(g,b)=>{i&&i===g.type&&(h=Math.max(b,d),f=Math.min(b+g.nodeSize,u),p=b,m=g)}):o.doc.nodesBetween(d,u,(g,b)=>{b<d&&i&&i===g.type&&(h=Math.max(b,d),f=Math.min(b+g.nodeSize,u),p=b,m=g),b>=d&&b<=u&&(i&&i===g.type&&t.setNodeMarkup(b,void 0,{...g.attrs,...e}),a&&g.marks.length&&g.marks.forEach(y=>{if(a===y.type){const k=Math.max(b,d),v=Math.min(b+g.nodeSize,u);t.addMark(k,v,a.create({...y.attrs,...e}))}}))}),m&&(p!==void 0&&t.setNodeMarkup(p,void 0,{...m.attrs,...e}),a&&m.marks.length&&m.marks.forEach(g=>{a===g.type&&t.addMark(h,f,a.create({...g.attrs,...e}))}))}),!0):!1},wrapIn:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return Z0(n,e)(t,o)},wrapInList:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return $0(n,e)(t,o)}});const Vw=Be.create({name:"commands",addCommands(){return{...Ow}}}),Pw=Be.create({name:"drop",addProseMirrorPlugins(){return[new he({key:new Ae("tiptapDrop"),props:{handleDrop:(r,e,t,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:t,moved:o})}}})]}}),Aw=Be.create({name:"editable",addProseMirrorPlugins(){return[new he({key:new Ae("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Dw=new Ae("focusEvents"),Iw=Be.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:r}=this;return[new he({key:Dw,props:{handleDOMEvents:{focus:(e,t)=>{r.isFocused=!0;const o=r.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,t)=>{r.isFocused=!1;const o=r.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),Lw=Be.create({name:"keymap",addKeyboardShortcuts(){const r=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:l})=>{const{selection:c,doc:d}=l,{empty:u,$anchor:p}=c,{pos:m,parent:h}=p,f=p.parent.isTextblock&&m>0?l.doc.resolve(m-1):p,g=f.parent.type.spec.isolating,b=p.pos-p.parentOffset,y=g&&f.parent.childCount===1?b===p.pos:W.atStart(d).from===m;return!u||!h.type.isTextblock||h.textContent.length||!y||y&&p.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:r,"Mod-Backspace":r,"Shift-Backspace":r,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},n={...o},i={...o,"Ctrl-h":r,"Alt-Backspace":r,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Ms()||qu()?i:n},addProseMirrorPlugins(){return[new he({key:new Ae("clearDocument"),appendTransaction:(r,e,t)=>{if(r.some(g=>g.getMeta("composition")))return;const o=r.some(g=>g.docChanged)&&!e.doc.eq(t.doc),n=r.some(g=>g.getMeta("preventClearDocument"));if(!o||n)return;const{empty:i,from:a,to:l}=e.selection,c=W.atStart(e.doc).from,d=W.atEnd(e.doc).to;if(i||!(a===c&&l===d)||!As(t.doc))return;const m=t.tr,h=ei({state:t,transaction:m}),{commands:f}=new ti({editor:this.editor,state:h});if(f.clearNodes(),!!m.steps.length)return m}})]}}),Rw=Be.create({name:"paste",addProseMirrorPlugins(){return[new he({key:new Ae("tiptapPaste"),props:{handlePaste:(r,e,t)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:t})}}})]}}),zw=Be.create({name:"tabindex",addProseMirrorPlugins(){return[new he({key:new Ae("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Er{get name(){return this.node.type.name}constructor(e,t,o=!1,n=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=t,this.currentNode=n}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:t,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Er(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Er(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Er(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,o)=>{const n=t.isBlock&&!t.isTextblock,i=t.isAtom&&!t.isText,a=this.pos+o+(i?0:1),l=this.resolvedPos.doc.resolve(a);if(!n&&l.depth<=this.depth)return;const c=new Er(l,this.editor,n,n?t:null);n&&(c.actualDepth=this.depth+1),e.push(new Er(l,this.editor,n,n?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let o=null,n=this.parent;for(;n&&!o;){if(n.node.type.name===e)if(Object.keys(t).length>0){const i=n.node.attrs,a=Object.keys(t);for(let l=0;l<a.length;l+=1){const c=a[l];if(i[c]!==t[c])break}}else o=n;n=n.parent}return o}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},o=!1){let n=[];if(!this.children||this.children.length===0)return n;const i=Object.keys(t);return this.children.forEach(a=>{o&&n.length>0||(a.node.type.name===e&&i.every(c=>t[c]===a.node.attrs[c])&&n.push(a),!(o&&n.length>0)&&(n=n.concat(a.querySelectorAll(e,t,o))))}),n}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}const _w=`.ProseMirror {
|
|
11
|
+
This will fail in production.`);l=wo,l._s.has(o)||(i?Ca(o,e,n,l):lp(o,n,l),process.env.NODE_ENV!=="production"&&(s._pinia=l));const d=l._s.get(o);if(process.env.NODE_ENV!=="production"&&p){const u="__hot:"+o,b=i?Ca(u,e,n,l,!0):lp(u,Je({},n),l,!0);p._hotUpdate(b),delete l.state.value[u],l._s.delete(u)}if(process.env.NODE_ENV!=="production"&&Ft){const u=a.getCurrentInstance();if(u&&u.proxy&&!p){const b=u.proxy,m="_pStores"in b?b._pStores:b._pStores={};m[o]=d}}return d}return s.$id=o,s}const pp=$m("pageBuilderState",{state:()=>({componentArrayAddMethod:null,localStorageItemName:null,showModalTipTap:!1,menuRight:!0,borderStyle:null,borderWidth:null,borderColor:null,borderRadiusGlobal:null,borderRadiusTopLeft:null,borderRadiusTopRight:null,borderRadiusBottomleft:null,borderRadiusBottomRight:null,elementContainsHyperlink:null,hyperlinkAbility:null,hyperlinkInput:null,hyperlinkMessage:null,hyperlinkError:null,hyberlinkEnable:!1,openHyperlinkinkInNewTab:null,opacity:null,backgroundOpacity:null,textAreaVueModel:null,nextSibling:null,parentElement:null,restoredElement:null,currentClasses:[],fontVerticalPadding:null,fontHorizontalPadding:null,fontVerticalMargin:null,fontHorizontalMargin:null,fontStyle:null,fontFamily:null,fontWeight:null,fontBase:null,fontDesktop:null,fontTablet:null,fontMobile:null,backgroundColor:null,textColor:null,element:null,component:null,components:[],basePrimaryImage:null,configPageBuilder:null,currentImage:{src:""},currentPreviewImage:null,isSaving:!1}),getters:{getComponentArrayAddMethod(r){return r.componentArrayAddMethod},getLocalStorageItemName(r){return r.localStorageItemName},getShowModalTipTap(r){return r.showModalTipTap},getMenuRight(r){return r.menuRight},getBorderStyle(r){return r.borderStyle},getBorderWidth(r){return r.borderWidth},getBorderColor(r){return r.borderColor},getBorderRadiusGlobal(r){return r.borderRadiusGlobal},getBorderRadiusTopLeft(r){return r.borderRadiusTopLeft},getBorderRadiusTopRight(r){return r.borderRadiusTopRight},getBorderRadiusBottomleft(r){return r.borderRadiusBottomleft},getBorderRadiusBottomRight(r){return r.borderRadiusBottomRight},getElementContainsHyperlink(r){return r.elementContainsHyperlink},getHyperlinkAbility(r){return r.hyperlinkAbility},getHyperlinkInput(r){return r.hyperlinkInput},getHyperlinkMessage(r){return r.hyperlinkMessage},getHyperlinkError(r){return r.hyperlinkError},getHyberlinkEnable(r){return r.hyberlinkEnable},getOpenHyperlinkInNewTab(r){return r.openHyperlinkinkInNewTab},getOpacity(r){return r.opacity},getBackgroundOpacity(r){return r.backgroundOpacity},getTextAreaVueModel(r){return r.textAreaVueModel},getNextSibling(r){return r.nextSibling},getParentElement(r){return r.parentElement},getRestoredElement(r){return r.restoredElement},getCurrentClasses(r){return r.currentClasses},getFontStyle(r){return r.fontStyle},getFontVerticalPadding(r){return r.fontVerticalPadding},getFontHorizontalPadding(r){return r.fontHorizontalPadding},getFontVerticalMargin(r){return r.fontVerticalMargin},getFontHorizontalMargin(r){return r.fontHorizontalMargin},getFontFamily(r){return r.fontFamily},getFontWeight(r){return r.fontWeight},getFontBase(r){return r.fontBase},getFontDesktop(r){return r.fontDesktop},getFontTablet(r){return r.fontTablet},getFontMobile(r){return r.fontMobile},getBackgroundColor(r){return r.backgroundColor},getTextColor(r){return r.textColor},getElement(r){return r.element},getComponent(r){return r.component},getComponents(r){return r.components},getBasePrimaryImage(r){return r.basePrimaryImage},getConfigPageBuilder(r){return r.configPageBuilder},getCurrentImage(r){return r.currentImage},getCurrentPreviewImage(r){return r.currentPreviewImage},getIsSaving:r=>r.isSaving},actions:{setComponentArrayAddMethod(r){this.componentArrayAddMethod=r},setLocalStorageItemName(r){this.localStorageItemName=r},setShowModalTipTap(r){this.showModalTipTap=r},setMenuRight(r){this.menuRight=r},setBorderStyle(r){this.borderStyle=r},setBorderWidth(r){this.borderWidth=r},setBorderColor(r){this.borderColor=r},setBorderRadiusGlobal(r){this.borderRadiusGlobal=r},setBorderRadiusTopLeft(r){this.borderRadiusTopLeft=r},setBorderRadiusTopRight(r){this.borderRadiusTopRight=r},setBorderRadiusBottomleft(r){this.borderRadiusBottomleft=r},setBorderRadiusBottomRight(r){this.borderRadiusBottomRight=r},setElementContainsHyperlink(r){this.elementContainsHyperlink=r},setHyperlinkAbility(r){this.hyperlinkAbility=r},setHyperlinkInput(r){this.hyperlinkInput=r},setHyperlinkMessage(r){this.hyperlinkMessage=r},setHyperlinkError(r){this.hyperlinkError=r},setHyberlinkEnable(r){this.hyberlinkEnable=r},setOpenHyperlinkInNewTab(r){this.openHyperlinkinkInNewTab=r},setOpacity(r){this.opacity=r},setBackgroundOpacity(r){this.backgroundOpacity=r},setTextAreaVueModel(r){this.textAreaVueModel=r},setNextSibling(r){this.nextSibling=r},setParentElement(r){this.parentElement=r},setRestoredElement(r){this.restoredElement=r},setClass(r){this.currentClasses=[...this.currentClasses,r]},removeClass(r){this.currentClasses=this.currentClasses.filter(e=>e!==r)},setCurrentClasses(r){this.currentClasses=Array.from(r)},setFontVerticalPadding(r){this.fontVerticalPadding=r},setFontHorizontalPadding(r){this.fontHorizontalPadding=r},setFontVerticalMargin(r){this.fontVerticalMargin=r},setFontHorizontalMargin(r){this.fontHorizontalMargin=r},setFontStyle(r){this.fontStyle=r},setFontFamily(r){this.fontFamily=r},setFontWeight(r){this.fontWeight=r},setFontBase(r){this.fontBase=r},setFontDesktop(r){this.fontDesktop=r},setFontTablet(r){this.fontTablet=r},setFontMobile(r){this.fontMobile=r},setBackgroundColor(r){this.backgroundColor=r},setTextColor(r){this.textColor=r},setElement(r){this.element=null,a.nextTick(()=>{this.element=r})},setComponent(r){if(!r){this.element=null,this.component=null;return}this.component=null,a.nextTick(()=>{this.component=r})},setComponents(r){this.components=[],a.nextTick(()=>{this.components=r||[]})},setPushComponents(r){const e=r.componentArrayAddMethod??"push";e==="push"?this.components.push(r.component):e==="unshift"&&this.components.unshift(r.component)},setBasePrimaryImage(r){this.element&&(this.element.src=r??void 0),this.basePrimaryImage=r},setCurrentLayoutPreview(r){localStorage.setItem("preview",r)},applyPageBuilderConfig(r){this.configPageBuilder=r},setCurrentImage(r){this.currentImage=r},setCurrentPreviewImage(r){this.currentPreviewImage=r},setIsSaving(r){this.isSaving=r}}}),Na=rp(),ae=pp(Na),ef={class:"pbx-flex pbx-flex-col pbx-items-center pbx-justify-center pbx-myPrimaryGap"},tf={class:"pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center"},rf={__name:"ComponentTopMenu",setup(r){const e=ae,t=a.ref(!1),o=a.ref(""),n=a.ref(1),i=a.ref(""),s=a.ref(""),l=a.ref(""),p=a.ref(null),c=a.ref(null),d=a.ref(null),u=a.ref(null),b=a.ref(null),m=new le(e),f=function(h){t.value=!0,o.value="delete",n.value=2,i.value="Remove Component?",s.value="Are you sure you want to remove this Component?",l.value="Close",p.value=null,c.value="Delete",d.value=function(){t.value=!1},b.value=function(){m.deleteSelectedComponent(),t.value=!1}};return(h,x)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(Rr,{showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:s.value,firstButtonText:l.value,secondButtonText:p.value,thirdButtonText:c.value,onFirstModalButtonFunctionDynamicModalBuilder:d.value,onSecondModalButtonFunctionDynamicModalBuilder:u.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:a.withCtx(()=>x[3]||(x[3]=[a.createElementVNode("header",null,null,-1),a.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),a.createElementVNode("div",ef,[a.createElementVNode("div",tf,[a.createElementVNode("div",{onClick:x[0]||(x[0]=y=>f()),class:"pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-myPrimaryErrorColor"},x[4]||(x[4]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," delete_forever ",-1)]))]),a.createElementVNode("button",{type:"button",onClick:x[1]||(x[1]=y=>a.unref(m).reorderComponent(-1)),class:"pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"},x[5]||(x[5]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," move_up ",-1)])),a.createElementVNode("button",{type:"button",onClick:x[2]||(x[2]=y=>a.unref(m).reorderComponent(1)),class:"pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"},x[6]||(x[6]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," move_down ",-1)]))])],64))}};function Ee(r){this.content=r}Ee.prototype={constructor:Ee,find:function(r){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===r)return e;return-1},get:function(r){var e=this.find(r);return e==-1?void 0:this.content[e+1]},update:function(r,e,t){var o=t&&t!=r?this.remove(t):this,n=o.find(r),i=o.content.slice();return n==-1?i.push(t||r,e):(i[n+1]=e,t&&(i[n]=t)),new Ee(i)},remove:function(r){var e=this.find(r);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new Ee(t)},addToStart:function(r,e){return new Ee([r,e].concat(this.remove(r).content))},addToEnd:function(r,e){var t=this.remove(r).content.slice();return t.push(r,e),new Ee(t)},addBefore:function(r,e,t){var o=this.remove(e),n=o.content.slice(),i=o.find(r);return n.splice(i==-1?n.length:i,0,e,t),new Ee(n)},forEach:function(r){for(var e=0;e<this.content.length;e+=2)r(this.content[e],this.content[e+1])},prepend:function(r){return r=Ee.from(r),r.size?new Ee(r.content.concat(this.subtract(r).content)):this},append:function(r){return r=Ee.from(r),r.size?new Ee(this.subtract(r).content.concat(r.content)):this},subtract:function(r){var e=this;r=Ee.from(r);for(var t=0;t<r.content.length;t+=2)e=e.remove(r.content[t]);return e},toObject:function(){var r={};return this.forEach(function(e,t){r[e]=t}),r},get size(){return this.content.length>>1}},Ee.from=function(r){if(r instanceof Ee)return r;var e=[];if(r)for(var t in r)e.push(t,r[t]);return new Ee(e)};function cp(r,e,t){for(let o=0;;o++){if(o==r.childCount||o==e.childCount)return r.childCount==e.childCount?null:t;let n=r.child(o),i=e.child(o);if(n==i){t+=n.nodeSize;continue}if(!n.sameMarkup(i))return t;if(n.isText&&n.text!=i.text){for(let s=0;n.text[s]==i.text[s];s++)t++;return t}if(n.content.size||i.content.size){let s=cp(n.content,i.content,t+1);if(s!=null)return s}t+=n.nodeSize}}function dp(r,e,t,o){for(let n=r.childCount,i=e.childCount;;){if(n==0||i==0)return n==i?null:{a:t,b:o};let s=r.child(--n),l=e.child(--i),p=s.nodeSize;if(s==l){t-=p,o-=p;continue}if(!s.sameMarkup(l))return{a:t,b:o};if(s.isText&&s.text!=l.text){let c=0,d=Math.min(s.text.length,l.text.length);for(;c<d&&s.text[s.text.length-c-1]==l.text[l.text.length-c-1];)c++,t--,o--;return{a:t,b:o}}if(s.content.size||l.content.size){let c=dp(s.content,l.content,t-1,o-1);if(c)return c}t-=p,o-=p}}class M{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,t,o,n=0,i){for(let s=0,l=0;l<t;s++){let p=this.content[s],c=l+p.nodeSize;if(c>e&&o(p,n+l,i||null,s)!==!1&&p.content.size){let d=l+1;p.nodesBetween(Math.max(0,e-d),Math.min(p.content.size,t-d),o,n+d)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,o,n){let i="",s=!0;return this.nodesBetween(e,t,(l,p)=>{let c=l.isText?l.text.slice(Math.max(e,p)-p,t-p):l.isLeaf?n?typeof n=="function"?n(l):n:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,o=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(o)&&(n[n.length-1]=t.withText(t.text+o.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new M(n,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let o=[],n=0;if(t>e)for(let i=0,s=0;s<t;i++){let l=this.content[i],p=s+l.nodeSize;p>e&&((s<e||p>t)&&(l.isText?l=l.cut(Math.max(0,e-s),Math.min(l.text.length,t-s)):l=l.cut(Math.max(0,e-s-1),Math.min(l.content.size,t-s-1))),o.push(l),n+=l.nodeSize),s=p}return new M(o,n)}cutByIndex(e,t){return e==t?M.empty:e==0&&t==this.content.length?this:new M(this.content.slice(e,t))}replaceChild(e,t){let o=this.content[e];if(o==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-o.nodeSize;return n[e]=t,new M(n,i)}addToStart(e){return new M([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new M(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,o=0;t<this.content.length;t++){let n=this.content[t];e(n,o,t),o+=n.nodeSize}}findDiffStart(e,t=0){return cp(this,e,t)}findDiffEnd(e,t=this.size,o=e.size){return dp(this,e,t,o)}findIndex(e,t=-1){if(e==0)return Pn(0,e);if(e==this.size)return Pn(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,n=0;;o++){let i=this.child(o),s=n+i.nodeSize;if(s>=e)return s==e||t>0?Pn(o+1,s):Pn(o,n);n=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return M.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new M(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return M.empty;let t,o=0;for(let n=0;n<e.length;n++){let i=e[n];o+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new M(t||e,o)}static from(e){if(!e)return M.empty;if(e instanceof M)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new M([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}M.empty=new M([],0);const Ba={index:0,offset:0};function Pn(r,e){return Ba.index=r,Ba.offset=e,Ba}function An(r,e){if(r===e)return!0;if(!(r&&typeof r=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(r);if(Array.isArray(e)!=t)return!1;if(t){if(r.length!=e.length)return!1;for(let o=0;o<r.length;o++)if(!An(r[o],e[o]))return!1}else{for(let o in r)if(!(o in e)||!An(r[o],e[o]))return!1;for(let o in e)if(!(o in r))return!1}return!0}let te=class Ll{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,o=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),o=!0),t&&t.push(i)}}return t||(t=e.slice()),o||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&An(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[t.type];if(!o)throw new RangeError(`There is no mark type ${t.type} in this schema`);let n=o.create(t.attrs);return o.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(t[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Ll.none;if(e instanceof Ll)return[e];let t=e.slice();return t.sort((o,n)=>o.type.rank-n.type.rank),t}};te.none=[];class Dn extends Error{}class A{constructor(e,t,o){this.content=e,this.openStart=t,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let o=bp(this.content,e+this.openStart,t);return o&&new A(o,this.openStart,this.openEnd)}removeBetween(e,t){return new A(up(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return A.empty;let o=t.openStart||0,n=t.openEnd||0;if(typeof o!="number"||typeof n!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new A(M.fromJSON(e,t.content),o,n)}static maxOpen(e,t=!0){let o=0,n=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)n++;return new A(e,o,n)}}A.empty=new A(M.empty,0,0);function up(r,e,t){let{index:o,offset:n}=r.findIndex(e),i=r.maybeChild(o),{index:s,offset:l}=r.findIndex(t);if(n==e||i.isText){if(l!=t&&!r.child(s).isText)throw new RangeError("Removing non-flat range");return r.cut(0,e).append(r.cut(t))}if(o!=s)throw new RangeError("Removing non-flat range");return r.replaceChild(o,i.copy(up(i.content,e-n-1,t-n-1)))}function bp(r,e,t,o){let{index:n,offset:i}=r.findIndex(e),s=r.maybeChild(n);if(i==e||s.isText)return r.cut(0,e).append(t).append(r.cut(e));let l=bp(s.content,e-i-1,t);return l&&r.replaceChild(n,s.copy(l))}function of(r,e,t){if(t.openStart>r.depth)throw new Dn("Inserted content deeper than insertion position");if(r.depth-t.openStart!=e.depth-t.openEnd)throw new Dn("Inconsistent open depths");return mp(r,e,t,0)}function mp(r,e,t,o){let n=r.index(o),i=r.node(o);if(n==e.index(o)&&o<r.depth-t.openStart){let s=mp(r,e,t,o+1);return i.copy(i.content.replaceChild(n,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&r.depth==o&&e.depth==o){let s=r.parent,l=s.content;return br(s,l.cut(0,r.parentOffset).append(t.content).append(l.cut(e.parentOffset)))}else{let{start:s,end:l}=nf(t,r);return br(i,hp(r,s,l,e,o))}else return br(i,In(r,e,o))}function fp(r,e){if(!e.type.compatibleContent(r.type))throw new Dn("Cannot join "+e.type.name+" onto "+r.type.name)}function Ma(r,e,t){let o=r.node(t);return fp(o,e.node(t)),o}function ur(r,e){let t=e.length-1;t>=0&&r.isText&&r.sameMarkup(e[t])?e[t]=r.withText(e[t].text+r.text):e.push(r)}function ko(r,e,t,o){let n=(e||r).node(t),i=0,s=e?e.index(t):n.childCount;r&&(i=r.index(t),r.depth>t?i++:r.textOffset&&(ur(r.nodeAfter,o),i++));for(let l=i;l<s;l++)ur(n.child(l),o);e&&e.depth==t&&e.textOffset&&ur(e.nodeBefore,o)}function br(r,e){return r.type.checkContent(e),r.copy(e)}function hp(r,e,t,o,n){let i=r.depth>n&&Ma(r,e,n+1),s=o.depth>n&&Ma(t,o,n+1),l=[];return ko(null,r,n,l),i&&s&&e.index(n)==t.index(n)?(fp(i,s),ur(br(i,hp(r,e,t,o,n+1)),l)):(i&&ur(br(i,In(r,e,n+1)),l),ko(e,t,n,l),s&&ur(br(s,In(t,o,n+1)),l)),ko(o,null,n,l),new M(l)}function In(r,e,t){let o=[];if(ko(null,r,t,o),r.depth>t){let n=Ma(r,e,t+1);ur(br(n,In(r,e,t+1)),o)}return ko(e,null,t,o),new M(o)}function nf(r,e){let t=e.depth-r.openStart,n=e.node(t).copy(r.content);for(let i=t-1;i>=0;i--)n=e.node(i).copy(M.from(n));return{start:n.resolveNoCache(r.openStart+t),end:n.resolveNoCache(n.content.size-r.openEnd-t)}}class Eo{constructor(e,t,o){this.pos=e,this.path=t,this.parentOffset=o,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],n=e.child(t);return o?e.child(t).cut(o):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let o=this.path[t*3],n=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)n+=o.child(i).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return te.none;if(this.textOffset)return e.child(t).marks;let o=e.maybeChild(t-1),n=e.maybeChild(t);if(!o){let l=o;o=n,n=l}let i=o.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!n||!i[s].isInSet(n.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let o=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!n||!o[i].isInSet(n.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!t||t(this.node(o))))return new Ln(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let o=[],n=0,i=t;for(let s=e;;){let{index:l,offset:p}=s.content.findIndex(i),c=i-p;if(o.push(s,l,n+p),!c||(s=s.child(l),s.isText))break;i=c-1,n+=p+1}return new Eo(t,o,i)}static resolveCached(e,t){let o=xp.get(e);if(o)for(let i=0;i<o.elts.length;i++){let s=o.elts[i];if(s.pos==t)return s}else xp.set(e,o=new af);let n=o.elts[o.i]=Eo.resolve(e,t);return o.i=(o.i+1)%sf,n}}class af{constructor(){this.elts=[],this.i=0}}const sf=12,xp=new WeakMap;class Ln{constructor(e,t,o){this.$from=e,this.$to=t,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const lf=Object.create(null);let Ht=class Rl{constructor(e,t,o,n=te.none){this.type=e,this.attrs=t,this.marks=n,this.content=o||M.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,o,n=0){this.content.nodesBetween(e,t,o,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,o,n){return this.content.textBetween(e,t,o,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,o){return this.type==e&&An(this.attrs,t||e.defaultAttrs||lf)&&te.sameSet(this.marks,o||te.none)}copy(e=null){return e==this.content?this:new Rl(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Rl(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,o=!1){if(e==t)return A.empty;let n=this.resolve(e),i=this.resolve(t),s=o?0:n.sharedDepth(t),l=n.start(s),c=n.node(s).content.cut(n.pos-l,i.pos-l);return new A(c,n.depth-s,i.depth-s)}replace(e,t,o){return of(this.resolve(e),this.resolve(t),o)}nodeAt(e){for(let t=this;;){let{index:o,offset:n}=t.content.findIndex(e);if(t=t.maybeChild(o),!t)return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(t),index:t,offset:o};let n=this.content.child(t-1);return{node:n,index:t-1,offset:o-n.nodeSize}}resolve(e){return Eo.resolveCached(this,e)}resolveNoCache(e){return Eo.resolve(this,e)}rangeHasMark(e,t,o){let n=!1;return t>e&&this.nodesBetween(e,t,i=>(o.isInSet(i.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),gp(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,o=M.empty,n=0,i=o.childCount){let s=this.contentMatchAt(e).matchFragment(o,n,i),l=s&&s.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let p=n;p<i;p++)if(!this.type.allowsMarks(o.child(p).marks))return!1;return!0}canReplaceWith(e,t,o,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(o),s=i&&i.matchFragment(this.content,t);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=te.none;for(let t=0;t<this.marks.length;t++){let o=this.marks[t];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!te.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let o;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,o)}let n=M.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,o);return i.type.checkAttrs(i.attrs),i}};Ht.prototype.text=void 0;class Rn extends Ht{constructor(e,t,o,n){if(super(e,t,null,n),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):gp(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Rn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Rn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function gp(r,e){for(let t=r.length-1;t>=0;t--)e=r[t].type.name+"("+e+")";return e}class mr{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let o=new pf(e,t);if(o.next==null)return mr.empty;let n=yp(o);o.next&&o.err("Unexpected trailing text");let i=hf(ff(n));return xf(i,o),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,o=e.childCount){let n=this;for(let i=t;n&&i<o;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let o=0;o<e.next.length;o++)if(this.next[t].type==e.next[o].type)return!0;return!1}fillBefore(e,t=!1,o=0){let n=[this];function i(s,l){let p=s.matchFragment(e,o);if(p&&(!t||p.validEnd))return M.from(l.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:d,next:u}=s.next[c];if(!(d.isText||d.hasRequiredAttrs())&&n.indexOf(u)==-1){n.push(u);let b=i(u,l.concat(d));if(b)return b}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let n=o.shift(),i=n.match;if(i.matchType(e)){let s=[];for(let l=n;l.type;l=l.via)s.push(l.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:l,next:p}=i.next[s];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in t)&&(!n.type||p.validEnd)&&(o.push({match:l.contentMatch,type:l,via:n}),t[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(o){e.push(o);for(let n=0;n<o.next.length;n++)e.indexOf(o.next[n].next)==-1&&t(o.next[n].next)}return t(this),e.map((o,n)=>{let i=n+(o.validEnd?"*":" ")+" ";for(let s=0;s<o.next.length;s++)i+=(s?", ":"")+o.next[s].type.name+"->"+e.indexOf(o.next[s].next);return i}).join(`
|
|
12
|
+
`)}}mr.empty=new mr(!0);class pf{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function yp(r){let e=[];do e.push(cf(r));while(r.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function cf(r){let e=[];do e.push(df(r));while(r.next&&r.next!=")"&&r.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function df(r){let e=mf(r);for(;;)if(r.eat("+"))e={type:"plus",expr:e};else if(r.eat("*"))e={type:"star",expr:e};else if(r.eat("?"))e={type:"opt",expr:e};else if(r.eat("{"))e=uf(r,e);else break;return e}function wp(r){/\D/.test(r.next)&&r.err("Expected number, got '"+r.next+"'");let e=Number(r.next);return r.pos++,e}function uf(r,e){let t=wp(r),o=t;return r.eat(",")&&(r.next!="}"?o=wp(r):o=-1),r.eat("}")||r.err("Unclosed braced range"),{type:"range",min:t,max:o,expr:e}}function bf(r,e){let t=r.nodeTypes,o=t[e];if(o)return[o];let n=[];for(let i in t){let s=t[i];s.isInGroup(e)&&n.push(s)}return n.length==0&&r.err("No node type or group '"+e+"' found"),n}function mf(r){if(r.eat("(")){let e=yp(r);return r.eat(")")||r.err("Missing closing paren"),e}else if(/\W/.test(r.next))r.err("Unexpected token '"+r.next+"'");else{let e=bf(r,r.next).map(t=>(r.inline==null?r.inline=t.isInline:r.inline!=t.isInline&&r.err("Mixing inline and block content"),{type:"name",value:t}));return r.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function ff(r){let e=[[]];return n(i(r,0),t()),e;function t(){return e.push([])-1}function o(s,l,p){let c={term:p,to:l};return e[s].push(c),c}function n(s,l){s.forEach(p=>p.to=l)}function i(s,l){if(s.type=="choice")return s.exprs.reduce((p,c)=>p.concat(i(c,l)),[]);if(s.type=="seq")for(let p=0;;p++){let c=i(s.exprs[p],l);if(p==s.exprs.length-1)return c;n(c,l=t())}else if(s.type=="star"){let p=t();return o(l,p),n(i(s.expr,p),p),[o(p)]}else if(s.type=="plus"){let p=t();return n(i(s.expr,l),p),n(i(s.expr,p),p),[o(p)]}else{if(s.type=="opt")return[o(l)].concat(i(s.expr,l));if(s.type=="range"){let p=l;for(let c=0;c<s.min;c++){let d=t();n(i(s.expr,p),d),p=d}if(s.max==-1)n(i(s.expr,p),p);else for(let c=s.min;c<s.max;c++){let d=t();o(p,d),n(i(s.expr,p),d),p=d}return[o(p)]}else{if(s.type=="name")return[o(l,void 0,s.value)];throw new Error("Unknown expr type")}}}}function vp(r,e){return e-r}function kp(r,e){let t=[];return o(e),t.sort(vp);function o(n){let i=r[n];if(i.length==1&&!i[0].term)return o(i[0].to);t.push(n);for(let s=0;s<i.length;s++){let{term:l,to:p}=i[s];!l&&t.indexOf(p)==-1&&o(p)}}}function hf(r){let e=Object.create(null);return t(kp(r,0));function t(o){let n=[];o.forEach(s=>{r[s].forEach(({term:l,to:p})=>{if(!l)return;let c;for(let d=0;d<n.length;d++)n[d][0]==l&&(c=n[d][1]);kp(r,p).forEach(d=>{c||n.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let i=e[o.join(",")]=new mr(o.indexOf(r.length-1)>-1);for(let s=0;s<n.length;s++){let l=n[s][1].sort(vp);i.next.push({type:n[s][0],next:e[l.join(",")]||t(l)})}return i}}function xf(r,e){for(let t=0,o=[r];t<o.length;t++){let n=o[t],i=!n.validEnd,s=[];for(let l=0;l<n.next.length;l++){let{type:p,next:c}=n.next[l];s.push(p.name),i&&!(p.isText||p.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Ep(r){let e=Object.create(null);for(let t in r){let o=r[t];if(!o.hasDefault)return null;e[t]=o.default}return e}function Sp(r,e){let t=Object.create(null);for(let o in r){let n=e&&e[o];if(n===void 0){let i=r[o];if(i.hasDefault)n=i.default;else throw new RangeError("No value supplied for attribute "+o)}t[o]=n}return t}function Cp(r,e,t,o){for(let n in e)if(!(n in r))throw new RangeError(`Unsupported attribute ${n} for ${t} of type ${n}`);for(let n in r){let i=r[n];i.validate&&i.validate(e[n])}}function Np(r,e){let t=Object.create(null);if(e)for(let o in e)t[o]=new yf(r,o,e[o]);return t}let Bp=class Ub{constructor(e,t,o){this.name=e,this.schema=t,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Np(e,o.attrs),this.defaultAttrs=Ep(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==mr.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Sp(this.attrs,e)}create(e=null,t,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ht(this,this.computeAttrs(e),M.from(t),te.setFrom(o))}createChecked(e=null,t,o){return t=M.from(t),this.checkContent(t),new Ht(this,this.computeAttrs(e),t,te.setFrom(o))}createAndFill(e=null,t,o){if(e=this.computeAttrs(e),t=M.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(M.empty,!0);return i?new Ht(this,e,t.append(i),te.setFrom(o)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Cp(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?t&&t.push(e[o]):t||(t=e.slice(0,o));return t?t.length?t:te.none:e}static compile(e,t){let o=Object.create(null);e.forEach((i,s)=>o[i]=new Ub(i,t,s));let n=t.spec.topNode||"doc";if(!o[n])throw new RangeError("Schema is missing its top node type ('"+n+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function gf(r,e,t){let o=t.split("|");return n=>{let i=n===null?"null":typeof n;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${r}, got ${i}`)}}class yf{constructor(e,t,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?gf(e,t,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class zn{constructor(e,t,o,n){this.name=e,this.rank=t,this.schema=o,this.spec=n,this.attrs=Np(e,n.attrs),this.excluded=null;let i=Ep(this.attrs);this.instance=i?new te(this,i):null}create(e=null){return!e&&this.instance?this.instance:new te(this,Sp(this.attrs,e))}static compile(e,t){let o=Object.create(null),n=0;return e.forEach((i,s)=>o[i]=new zn(i,n++,t,s)),o}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Cp(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Mp{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=Ee.from(e.nodes),t.marks=Ee.from(e.marks||{}),this.nodes=Bp.compile(this.spec.nodes,this),this.marks=zn.compile(this.spec.marks,this);let o=Object.create(null);for(let n in this.nodes){if(n in this.marks)throw new RangeError(n+" can not be both a node and a mark");let i=this.nodes[n],s=i.spec.content||"",l=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=mr.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=l=="_"?null:l?Tp(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let n in this.marks){let i=this.marks[n],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Tp(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,o,n){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Bp){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,o,n)}text(e,t){let o=this.nodes.text;return new Rn(o,o.defaultAttrs,e,te.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Ht.fromJSON(this,e)}markFromJSON(e){return te.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Tp(r,e){let t=[];for(let o=0;o<e.length;o++){let n=e[o],i=r.marks[n],s=i;if(i)t.push(i);else for(let l in r.marks){let p=r.marks[l];(n=="_"||p.spec.group&&p.spec.group.split(" ").indexOf(n)>-1)&&t.push(s=p)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return t}function wf(r){return r.tag!=null}function vf(r){return r.style!=null}let So=class zl{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let o=this.matchedStyles=[];t.forEach(n=>{if(wf(n))this.tags.push(n);else if(vf(n)){let i=/[^=]*/.exec(n.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(n)}}),this.normalizeLists=!this.tags.some(n=>{if(!/^(ul|ol)\b/.test(n.tag)||!n.node)return!1;let i=e.nodes[n.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let o=new Ap(this,t,!1);return o.addAll(e,te.none,t.from,t.to),o.finish()}parseSlice(e,t={}){let o=new Ap(this,t,!0);return o.addAll(e,te.none,t.from,t.to),A.maxOpen(o.finish())}matchTag(e,t,o){for(let n=o?this.tags.indexOf(o)+1:0;n<this.tags.length;n++){let i=this.tags[n];if(Sf(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,t,o,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let s=this.styles[i],l=s.style;if(!(l.indexOf(e)!=0||s.context&&!o.matchesContext(s.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(s.getAttrs){let p=s.getAttrs(t);if(p===!1)continue;s.attrs=p||void 0}return s}}}static schemaRules(e){let t=[];function o(n){let i=n.priority==null?50:n.priority,s=0;for(;s<t.length;s++){let l=t[s];if((l.priority==null?50:l.priority)<i)break}t.splice(s,0,n)}for(let n in e.marks){let i=e.marks[n].spec.parseDOM;i&&i.forEach(s=>{o(s=Dp(s)),s.mark||s.ignore||s.clearMark||(s.mark=n)})}for(let n in e.nodes){let i=e.nodes[n].spec.parseDOM;i&&i.forEach(s=>{o(s=Dp(s)),s.node||s.ignore||s.mark||(s.node=n)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new zl(e,zl.schemaRules(e)))}};const Op={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},kf={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Vp={ol:!0,ul:!0},Co=1,Ta=2,No=4;function Pp(r,e,t){return e!=null?(e?Co:0)|(e==="full"?Ta:0):r&&r.whitespace=="pre"?Co|Ta:t&~No}class _n{constructor(e,t,o,n,i,s){this.type=e,this.attrs=t,this.marks=o,this.solid=n,this.options=s,this.content=[],this.activeMarks=te.none,this.match=i||(s&No?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(M.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let o=this.type.contentMatch,n;return(n=o.findWrapping(e.type))?(this.match=o,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Co)){let o=this.content[this.content.length-1],n;if(o&&o.isText&&(n=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==n[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-n[0].length))}}let t=M.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(M.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Op.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ap{constructor(e,t,o){this.parser=e,this.options=t,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let n=t.topNode,i,s=Pp(null,t.preserveWhitespace,0)|(o?No:0);n?i=new _n(n.type,n.attrs,te.none,!0,t.topMatch||n.type.contentMatch,s):o?i=new _n(null,null,te.none,!0,null,s):i=new _n(e.schema.topNodeType,null,te.none,!0,null,s),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let o=e.nodeValue,n=this.top,i=n.options&Ta?"full":this.localPreserveWS||(n.options&Co)>0;if(i==="full"||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)i!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
|
|
13
|
+
`);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let s=n.content[n.content.length-1],l=e.previousSibling;(!s||l&&l.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),t,!/\S/.test(o)),this.findInText(e)}else this.findInside(e)}addElement(e,t,o){let n=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),l;Vp.hasOwnProperty(s)&&this.parser.normalizeLists&&Ef(e);let p=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(l=this.parser.matchTag(e,this,o));e:if(p?p.ignore:kf.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!p||p.skip||p.closeParent){p&&p.closeParent?this.open=Math.max(0,this.open-1):p&&p.skip.nodeType&&(e=p.skip);let c,d=this.needsBlock;if(Op.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let u=p&&p.skip?t:this.readStyles(e,t);u&&this.addAll(e,u),c&&this.sync(i),this.needsBlock=d}else{let c=this.readStyles(e,t);c&&this.addElementByRule(e,p,c,p.consuming===!1?l:void 0)}this.localPreserveWS=n}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
14
|
+
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let o=e.style;if(o&&o.length)for(let n=0;n<this.parser.matchedStyles.length;n++){let i=this.parser.matchedStyles[n],s=o.getPropertyValue(i);if(s)for(let l=void 0;;){let p=this.parser.matchStyle(i,s,this,l);if(!p)break;if(p.ignore)return null;if(p.clearMark?t=t.filter(c=>!p.clearMark(c)):t=t.concat(this.parser.schema.marks[p.mark].create(p.attrs)),p.consuming===!1)l=p;else break}}return t}addElementByRule(e,t,o,n){let i,s;if(t.node)if(s=this.parser.schema.nodes[t.node],s.isLeaf)this.insertNode(s.create(t.attrs),o,e.nodeName=="BR")||this.leafFallback(e,o);else{let p=this.enter(s,t.attrs||null,o,t.preserveWhitespace);p&&(i=!0,o=p)}else{let p=this.parser.schema.marks[t.mark];o=o.concat(p.create(t.attrs))}let l=this.top;if(s&&s.isLeaf)this.findInside(e);else if(n)this.addElement(e,o,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(p=>this.insertNode(p,o,!1));else{let p=e;typeof t.contentElement=="string"?p=e.querySelector(t.contentElement):typeof t.contentElement=="function"?p=t.contentElement(e):t.contentElement&&(p=t.contentElement),this.findAround(e,p,!0),this.addAll(p,o),this.findAround(e,p,!1)}i&&this.sync(l)&&this.open--}addAll(e,t,o,n){let i=o||0;for(let s=o?e.childNodes[o]:e.firstChild,l=n==null?null:e.childNodes[n];s!=l;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,t);this.findAtPoint(e,i)}findPlace(e,t,o){let n,i;for(let s=this.open,l=0;s>=0;s--){let p=this.nodes[s],c=p.findWrapping(e);if(c&&(!n||n.length>c.length+l)&&(n=c,i=p,!c.length))break;if(p.solid){if(o)break;l+=2}}if(!n)return null;this.sync(i);for(let s=0;s<n.length;s++)t=this.enterInner(n[s],null,t,!1);return t}insertNode(e,t,o){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let n=this.findPlace(e,t,o);if(n){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=te.none;for(let l of n.concat(e.marks))(i.type?i.type.allowsMarkType(l.type):Ip(l.type,e.type))&&(s=l.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,t,o,n){let i=this.findPlace(e.create(t),o,!1);return i&&(i=this.enterInner(e,t,o,!0,n)),i}enterInner(e,t,o,n=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let l=Pp(e,i,s.options);s.options&No&&s.content.length==0&&(l|=No);let p=te.none;return o=o.filter(c=>(s.type?s.type.allowsMarkType(c.type):Ip(c.type,e))?(p=c.addToSet(p),!1):!0),this.nodes.push(new _n(e,t,p,n,null,l)),this.open++,o}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Co)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let o=this.nodes[t].content;for(let n=o.length-1;n>=0;n--)e+=o[n].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==t&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,o){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&t.compareDocumentPosition(this.find[n].node)&(o?2:4)&&(this.find[n].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),o=this.options.context,n=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(n?0:1),s=(l,p)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;p>=i;p--)if(s(l-1,p))return!0;return!1}else{let d=p>0||p==0&&n?this.nodes[p].type:o&&p>=i?o.node(p-i).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;p--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let t in this.parser.schema.nodes){let o=this.parser.schema.nodes[t];if(o.isTextblock&&o.defaultAttrs)return o}}}function Ef(r){for(let e=r.firstChild,t=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&Vp.hasOwnProperty(o)&&t?(t.appendChild(e),e=t):o=="li"?t=e:o&&(t=null)}}function Sf(r,e){return(r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector).call(r,e)}function Dp(r){let e={};for(let t in r)e[t]=r[t];return e}function Ip(r,e){let t=e.schema.nodes;for(let o in t){let n=t[o];if(!n.allowsMarkType(r))continue;let i=[],s=l=>{i.push(l);for(let p=0;p<l.edgeCount;p++){let{type:c,next:d}=l.edge(p);if(c==e||i.indexOf(d)<0&&s(d))return!0}};if(s(n.contentMatch))return!0}}class fr{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},o){o||(o=Oa(t).createDocumentFragment());let n=o,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let l=0,p=0;for(;l<i.length&&p<s.marks.length;){let c=s.marks[p];if(!this.marks[c.type.name]){p++;continue}if(!c.eq(i[l][0])||c.type.spec.spanning===!1)break;l++,p++}for(;l<i.length;)n=i.pop()[1];for(;p<s.marks.length;){let c=s.marks[p++],d=this.serializeMark(c,s.isInline,t);d&&(i.push([c,n]),n.appendChild(d.dom),n=d.contentDOM||d.dom)}}n.appendChild(this.serializeNodeInner(s,t))}),o}serializeNodeInner(e,t){let{dom:o,contentDOM:n}=Fn(Oa(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return o}serializeNode(e,t={}){let o=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,t,o={}){let n=this.marks[e.type.name];return n&&Fn(Oa(o),n(e,t),null,e.attrs)}static renderSpec(e,t,o=null,n){return Fn(e,t,o,n)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new fr(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Lp(e.nodes);return t.text||(t.text=o=>o.text),t}static marksFromSchema(e){return Lp(e.marks)}}function Lp(r){let e={};for(let t in r){let o=r[t].spec.toDOM;o&&(e[t]=o)}return e}function Oa(r){return r.document||window.document}const Rp=new WeakMap;function Cf(r){let e=Rp.get(r);return e===void 0&&Rp.set(r,e=Nf(r)),e}function Nf(r){let e=null;function t(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let n=0;n<o.length;n++)t(o[n]);else for(let n in o)t(o[n])}return t(r),e}function Fn(r,e,t,o){if(typeof e=="string")return{dom:r.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let n=e[0],i;if(typeof n!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=Cf(o))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=n.indexOf(" ");s>0&&(t=n.slice(0,s),n=n.slice(s+1));let l,p=t?r.createElementNS(t,n):r.createElement(n),c=e[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let u in c)if(c[u]!=null){let b=u.indexOf(" ");b>0?p.setAttributeNS(u.slice(0,b),u.slice(b+1),c[u]):p.setAttribute(u,c[u])}}for(let u=d;u<e.length;u++){let b=e[u];if(b===0){if(u<e.length-1||u>d)throw new RangeError("Content hole must be the only child of its parent node");return{dom:p,contentDOM:p}}else{let{dom:m,contentDOM:f}=Fn(r,b,t,o);if(p.appendChild(m),f){if(l)throw new RangeError("Multiple content holes");l=f}}}return{dom:p,contentDOM:l}}const zp=65535,_p=Math.pow(2,16);function Bf(r,e){return r+e*_p}function Fp(r){return r&zp}function Mf(r){return(r-(r&zp))/_p}const jp=1,Hp=2,jn=4,Wp=8;class Va{constructor(e,t,o){this.pos=e,this.delInfo=t,this.recover=o}get deleted(){return(this.delInfo&Wp)>0}get deletedBefore(){return(this.delInfo&(jp|jn))>0}get deletedAfter(){return(this.delInfo&(Hp|jn))>0}get deletedAcross(){return(this.delInfo&jn)>0}}class We{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&We.empty)return We.empty}recover(e){let t=0,o=Fp(e);if(!this.inverted)for(let n=0;n<o;n++)t+=this.ranges[n*3+2]-this.ranges[n*3+1];return this.ranges[o*3]+t+Mf(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,o){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let p=this.ranges[l]-(this.inverted?n:0);if(p>e)break;let c=this.ranges[l+i],d=this.ranges[l+s],u=p+c;if(e<=u){let b=c?e==p?-1:e==u?1:t:t,m=p+n+(b<0?0:d);if(o)return m;let f=e==(t<0?p:u)?null:Bf(l/3,e-p),h=e==p?Hp:e==u?jp:jn;return(t<0?e!=p:e!=u)&&(h|=Wp),new Va(m,h,f)}n+=d-c}return o?e+n:new Va(e+n,0,null)}touches(e,t){let o=0,n=Fp(t),i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let p=this.ranges[l]-(this.inverted?o:0);if(p>e)break;let c=this.ranges[l+i],d=p+c;if(e<=d&&l==n*3)return!0;o+=this.ranges[l+s]-c}return!1}forEach(e){let t=this.inverted?2:1,o=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let s=this.ranges[n],l=s-(this.inverted?i:0),p=s+(this.inverted?0:i),c=this.ranges[n+t],d=this.ranges[n+o];e(l,l+c,p,p+d),i+=d-c}}invert(){return new We(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?We.empty:new We(e<0?[0,-e,0]:[0,0,e])}}We.empty=new We([]);class Bo{constructor(e,t,o=0,n=e?e.length:0){this.mirror=t,this.from=o,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new Bo(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,o=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],n!=null&&n<t?o+n:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,o=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),n!=null&&n>t?o-n-1:void 0)}}invert(){let e=new Bo;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,o){let n=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],l=s.mapResult(e,t);if(l.recover!=null){let p=this.getMirror(i);if(p!=null&&p>i&&p<this.to){i=p,e=this._maps[p].recover(l.recover);continue}}n|=l.delInfo,e=l.pos}return o?e:new Va(e,n,null)}}const Pa=Object.create(null);class Te{getMap(){return We.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Pa[t.stepType];if(!o)throw new RangeError(`No step type ${t.stepType} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in Pa)throw new RangeError("Duplicate use of step JSON ID "+e);return Pa[e]=t,t.prototype.jsonID=e,t}}class be{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new be(e,null)}static fail(e){return new be(null,e)}static fromReplace(e,t,o,n){try{return be.ok(e.replace(t,o,n))}catch(i){if(i instanceof Dn)return be.fail(i.message);throw i}}}function Aa(r,e,t){let o=[];for(let n=0;n<r.childCount;n++){let i=r.child(n);i.content.size&&(i=i.copy(Aa(i.content,e,i))),i.isInline&&(i=e(i,t,n)),o.push(i)}return M.fromArray(o)}class Wt extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=e.resolve(this.from),n=o.node(o.sharedDepth(this.to)),i=new A(Aa(t.content,(s,l)=>!s.isAtom||!l.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),n),t.openStart,t.openEnd);return be.fromReplace(e,this.from,this.to,i)}invert(){return new mt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new Wt(t.pos,o.pos,this.mark)}merge(e){return e instanceof Wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Wt(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("addMark",Wt);class mt extends Te{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=new A(Aa(t.content,n=>n.mark(this.mark.removeFromSet(n.marks)),e),t.openStart,t.openEnd);return be.fromReplace(e,this.from,this.to,o)}invert(){return new Wt(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new mt(t.pos,o.pos,this.mark)}merge(e){return e instanceof mt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new mt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new mt(t.from,t.to,e.markFromJSON(t.mark))}}Te.jsonID("removeMark",mt);class Ut extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return be.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return be.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let o=this.mark.addToSet(t.marks);if(o.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(o))return new Ut(this.pos,t.marks[n]);return new Ut(this.pos,this.mark)}}return new hr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ut(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Ut(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("addNodeMark",Ut);class hr extends Te{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return be.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return be.fromReplace(e,this.pos,this.pos+1,new A(M.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Ut(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new hr(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new hr(t.pos,e.markFromJSON(t.mark))}}Te.jsonID("removeNodeMark",hr);class xe extends Te{constructor(e,t,o,n=!1){super(),this.from=e,this.to=t,this.slice=o,this.structure=n}apply(e){return this.structure&&Da(e,this.from,this.to)?be.fail("Structure replace would overwrite content"):be.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new We([this.from,this.to-this.from,this.slice.size])}invert(e){return new xe(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deletedAcross&&o.deletedAcross?null:new xe(t.pos,Math.max(t.pos,o.pos),this.slice,this.structure)}merge(e){if(!(e instanceof xe)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?A.empty:new A(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new xe(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?A.empty:new A(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new xe(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new xe(t.from,t.to,A.fromJSON(e,t.slice),!!t.structure)}}Te.jsonID("replace",xe);class ge extends Te{constructor(e,t,o,n,i,s,l=!1){super(),this.from=e,this.to=t,this.gapFrom=o,this.gapTo=n,this.slice=i,this.insert=s,this.structure=l}apply(e){if(this.structure&&(Da(e,this.from,this.gapFrom)||Da(e,this.gapTo,this.to)))return be.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return be.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,t.content);return o?be.fromReplace(e,this.from,this.to,o):be.fail("Content does not fit in gap")}getMap(){return new We([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new ge(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return t.deletedAcross&&o.deletedAcross||n<t.pos||i>o.pos?null:new ge(t.pos,o.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ge(t.from,t.to,t.gapFrom,t.gapTo,A.fromJSON(e,t.slice),t.insert,!!t.structure)}}Te.jsonID("replaceAround",ge);function Da(r,e,t){let o=r.resolve(e),n=t-e,i=o.depth;for(;n>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,n--;if(n>0){let s=o.node(i).maybeChild(o.indexAfter(i));for(;n>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,n--}}return!1}function Tf(r,e,t,o){let n=[],i=[],s,l;r.doc.nodesBetween(e,t,(p,c,d)=>{if(!p.isInline)return;let u=p.marks;if(!o.isInSet(u)&&d.type.allowsMarkType(o.type)){let b=Math.max(c,e),m=Math.min(c+p.nodeSize,t),f=o.addToSet(u);for(let h=0;h<u.length;h++)u[h].isInSet(f)||(s&&s.to==b&&s.mark.eq(u[h])?s.to=m:n.push(s=new mt(b,m,u[h])));l&&l.to==b?l.to=m:i.push(l=new Wt(b,m,o))}}),n.forEach(p=>r.step(p)),i.forEach(p=>r.step(p))}function Of(r,e,t,o){let n=[],i=0;r.doc.nodesBetween(e,t,(s,l)=>{if(!s.isInline)return;i++;let p=null;if(o instanceof zn){let c=s.marks,d;for(;d=o.isInSet(c);)(p||(p=[])).push(d),c=d.removeFromSet(c)}else o?o.isInSet(s.marks)&&(p=[o]):p=s.marks;if(p&&p.length){let c=Math.min(l+s.nodeSize,t);for(let d=0;d<p.length;d++){let u=p[d],b;for(let m=0;m<n.length;m++){let f=n[m];f.step==i-1&&u.eq(n[m].style)&&(b=f)}b?(b.to=c,b.step=i):n.push({style:u,from:Math.max(l,e),to:c,step:i})}}}),n.forEach(s=>r.step(new mt(s.from,s.to,s.style)))}function Ia(r,e,t,o=t.contentMatch,n=!0){let i=r.doc.nodeAt(e),s=[],l=e+1;for(let p=0;p<i.childCount;p++){let c=i.child(p),d=l+c.nodeSize,u=o.matchType(c.type);if(!u)s.push(new xe(l,d,A.empty));else{o=u;for(let b=0;b<c.marks.length;b++)t.allowsMarkType(c.marks[b].type)||r.step(new mt(l,d,c.marks[b]));if(n&&c.isText&&t.whitespace!="pre"){let b,m=/\r?\n|\r/g,f;for(;b=m.exec(c.text);)f||(f=new A(M.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),s.push(new xe(l+b.index,l+b.index+b[0].length,f))}}l=d}if(!o.validEnd){let p=o.fillBefore(M.empty,!0);r.replace(l,l,new A(p,0,0))}for(let p=s.length-1;p>=0;p--)r.step(s[p])}function Vf(r,e,t){return(e==0||r.canReplace(e,r.childCount))&&(t==r.childCount||r.canReplace(0,t))}function jr(r){let t=r.parent.content.cutByIndex(r.startIndex,r.endIndex);for(let o=r.depth;;--o){let n=r.$from.node(o),i=r.$from.index(o),s=r.$to.indexAfter(o);if(o<r.depth&&n.canReplace(i,s,t))return o;if(o==0||n.type.spec.isolating||!Vf(n,i,s))break}return null}function Pf(r,e,t){let{$from:o,$to:n,depth:i}=e,s=o.before(i+1),l=n.after(i+1),p=s,c=l,d=M.empty,u=0;for(let f=i,h=!1;f>t;f--)h||o.index(f)>0?(h=!0,d=M.from(o.node(f).copy(d)),u++):p--;let b=M.empty,m=0;for(let f=i,h=!1;f>t;f--)h||n.after(f+1)<n.end(f)?(h=!0,b=M.from(n.node(f).copy(b)),m++):c++;r.step(new ge(p,c,s,l,new A(d.append(b),u,m),d.size-u,!0))}function La(r,e,t=null,o=r){let n=Af(r,e),i=n&&Df(o,e);return i?n.map(Up).concat({type:e,attrs:t}).concat(i.map(Up)):null}function Up(r){return{type:r,attrs:null}}function Af(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.contentMatchAt(o).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return t.canReplaceWith(o,n,s)?i:null}function Df(r,e){let{parent:t,startIndex:o,endIndex:n}=r,i=t.child(o),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let p=(s.length?s[s.length-1]:e).contentMatch;for(let c=o;p&&c<n;c++)p=p.matchType(t.child(c).type);return!p||!p.validEnd?null:s}function If(r,e,t){let o=M.empty;for(let s=t.length-1;s>=0;s--){if(o.size){let l=t[s].type.contentMatch.matchFragment(o);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=M.from(t[s].type.create(t[s].attrs,o))}let n=e.start,i=e.end;r.step(new ge(n,i,n,i,new A(o,0,0),t.length,!0))}function Lf(r,e,t,o,n){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=r.steps.length;r.doc.nodesBetween(e,t,(s,l)=>{let p=typeof n=="function"?n(s):n;if(s.isTextblock&&!s.hasMarkup(o,p)&&Rf(r.doc,r.mapping.slice(i).map(l),o)){let c=null;if(o.schema.linebreakReplacement){let m=o.whitespace=="pre",f=!!o.contentMatch.matchType(o.schema.linebreakReplacement);m&&!f?c=!1:!m&&f&&(c=!0)}c===!1&&Kp(r,s,l,i),Ia(r,r.mapping.slice(i).map(l,1),o,void 0,c===null);let d=r.mapping.slice(i),u=d.map(l,1),b=d.map(l+s.nodeSize,1);return r.step(new ge(u,b,u+1,b-1,new A(M.from(o.create(p,null,s.marks)),0,0),1,!0)),c===!0&&qp(r,s,l,i),!1}})}function qp(r,e,t,o){e.forEach((n,i)=>{if(n.isText){let s,l=/\r?\n|\r/g;for(;s=l.exec(n.text);){let p=r.mapping.slice(o).map(t+1+i+s.index);r.replaceWith(p,p+1,e.type.schema.linebreakReplacement.create())}}})}function Kp(r,e,t,o){e.forEach((n,i)=>{if(n.type==n.type.schema.linebreakReplacement){let s=r.mapping.slice(o).map(t+1+i);r.replaceWith(s,s+1,e.type.schema.text(`
|
|
15
|
+
`))}})}function Rf(r,e,t){let o=r.resolve(e),n=o.index();return o.parent.canReplaceWith(n,n+1,t)}function zf(r,e,t,o,n){let i=r.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let s=t.create(o,null,n||i.marks);if(i.isLeaf)return r.replaceWith(e,e+i.nodeSize,s);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);r.step(new ge(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new A(M.from(s),0,0),1,!0))}function Ct(r,e,t=1,o){let n=r.resolve(e),i=n.depth-t,s=o&&o[o.length-1]||n.parent;if(i<0||n.parent.type.spec.isolating||!n.parent.canReplace(n.index(),n.parent.childCount)||!s.type.validContent(n.parent.content.cutByIndex(n.index(),n.parent.childCount)))return!1;for(let c=n.depth-1,d=t-2;c>i;c--,d--){let u=n.node(c),b=n.index(c);if(u.type.spec.isolating)return!1;let m=u.content.cutByIndex(b,u.childCount),f=o&&o[d+1];f&&(m=m.replaceChild(0,f.type.create(f.attrs)));let h=o&&o[d]||u;if(!u.canReplace(b+1,u.childCount)||!h.type.validContent(m))return!1}let l=n.indexAfter(i),p=o&&o[0];return n.node(i).canReplaceWith(l,l,p?p.type:n.node(i+1).type)}function _f(r,e,t=1,o){let n=r.doc.resolve(e),i=M.empty,s=M.empty;for(let l=n.depth,p=n.depth-t,c=t-1;l>p;l--,c--){i=M.from(n.node(l).copy(i));let d=o&&o[c];s=M.from(d?d.type.create(d.attrs,s):n.node(l).copy(s))}r.step(new xe(e,e,new A(i.append(s),t,t),!0))}function qt(r,e){let t=r.resolve(e),o=t.index();return Gp(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(o,o+1)}function Ff(r,e){e.content.size||r.type.compatibleContent(e.type);let t=r.contentMatchAt(r.childCount),{linebreakReplacement:o}=r.type.schema;for(let n=0;n<e.childCount;n++){let i=e.child(n),s=i.type==o?r.type.schema.nodes.text:i.type;if(t=t.matchType(s),!t||!r.type.allowsMarks(i.marks))return!1}return t.validEnd}function Gp(r,e){return!!(r&&e&&!r.isLeaf&&Ff(r,e))}function Hn(r,e,t=-1){let o=r.resolve(e);for(let n=o.depth;;n--){let i,s,l=o.index(n);if(n==o.depth?(i=o.nodeBefore,s=o.nodeAfter):t>0?(i=o.node(n+1),l++,s=o.node(n).maybeChild(l)):(i=o.node(n).maybeChild(l-1),s=o.node(n+1)),i&&!i.isTextblock&&Gp(i,s)&&o.node(n).canReplace(l,l+1))return e;if(n==0)break;e=t<0?o.before(n):o.after(n)}}function jf(r,e,t){let o=null,{linebreakReplacement:n}=r.doc.type.schema,i=r.doc.resolve(e-t),s=i.node().type;if(n&&s.inlineContent){let d=s.whitespace=="pre",u=!!s.contentMatch.matchType(n);d&&!u?o=!1:!d&&u&&(o=!0)}let l=r.steps.length;if(o===!1){let d=r.doc.resolve(e+t);Kp(r,d.node(),d.before(),l)}s.inlineContent&&Ia(r,e+t-1,s,i.node().contentMatchAt(i.index()),o==null);let p=r.mapping.slice(l),c=p.map(e-t);if(r.step(new xe(c,p.map(e+t,-1),A.empty,!0)),o===!0){let d=r.doc.resolve(c);qp(r,d.node(),d.before(),r.steps.length)}return r}function Hf(r,e,t){let o=r.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),t))return e;if(o.parentOffset==0)for(let n=o.depth-1;n>=0;n--){let i=o.index(n);if(o.node(n).canReplaceWith(i,i,t))return o.before(n+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let n=o.depth-1;n>=0;n--){let i=o.indexAfter(n);if(o.node(n).canReplaceWith(i,i,t))return o.after(n+1);if(i<o.node(n).childCount)return null}return null}function Jp(r,e,t){let o=r.resolve(e);if(!t.content.size)return e;let n=t.content;for(let i=0;i<t.openStart;i++)n=n.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let s=o.depth;s>=0;s--){let l=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,p=o.index(s)+(l>0?1:0),c=o.node(s),d=!1;if(i==1)d=c.canReplace(p,p,n);else{let u=c.contentMatchAt(p).findWrapping(n.firstChild.type);d=u&&c.canReplaceWith(p,p,u[0])}if(d)return l==0?o.pos:l<0?o.before(s+1):o.after(s+1)}return null}function Wn(r,e,t=e,o=A.empty){if(e==t&&!o.size)return null;let n=r.resolve(e),i=r.resolve(t);return Yp(n,i,o)?new xe(e,t,o):new Wf(n,i,o).fit()}function Yp(r,e,t){return!t.openStart&&!t.openEnd&&r.start()==e.start()&&r.parent.canReplace(r.index(),e.index(),t.content)}class Wf{constructor(e,t,o){this.$from=e,this.$to=t,this.unplaced=o,this.frontier=[],this.placed=M.empty;for(let n=0;n<=e.depth;n++){let i=e.node(n);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(n))})}for(let n=e.depth;n>0;n--)this.placed=M.from(e.node(n).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,o=this.$from,n=this.close(e<0?this.$to:o.doc.resolve(e));if(!n)return null;let i=this.placed,s=o.depth,l=n.depth;for(;s&&l&&i.childCount==1;)i=i.firstChild.content,s--,l--;let p=new A(i,s,l);return e>-1?new ge(o.pos,e,this.$to.pos,this.$to.end(),p,t):p.size||o.pos!=this.$to.pos?new xe(o.pos,n.pos,p):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,o=0,n=this.unplaced.openEnd;o<e;o++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=o){e=o;break}t=i.content}for(let t=1;t<=2;t++)for(let o=t==1?e:this.unplaced.openStart;o>=0;o--){let n,i=null;o?(i=Ra(this.unplaced.content,o-1).firstChild,n=i.content):n=this.unplaced.content;let s=n.firstChild;for(let l=this.depth;l>=0;l--){let{type:p,match:c}=this.frontier[l],d,u=null;if(t==1&&(s?c.matchType(s.type)||(u=c.fillBefore(M.from(s),!1)):i&&p.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:l,parent:i,inject:u};if(t==2&&s&&(d=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:l,parent:i,wrap:d};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);return!n.childCount||n.firstChild.isLeaf?!1:(this.unplaced=new A(e,t+1,Math.max(o,n.size+t>=e.size-o?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:o}=this.unplaced,n=Ra(e,t);if(n.childCount<=1&&t>0){let i=e.size-t<=t+n.size;this.unplaced=new A(Mo(e,t-1,1),t-1,i?t-1:o)}else this.unplaced=new A(Mo(e,t,1),t,o)}placeNodes({sliceDepth:e,frontierDepth:t,parent:o,inject:n,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let h=0;h<i.length;h++)this.openFrontierNode(i[h]);let s=this.unplaced,l=o?o.content:s.content,p=s.openStart-e,c=0,d=[],{match:u,type:b}=this.frontier[t];if(n){for(let h=0;h<n.childCount;h++)d.push(n.child(h));u=u.matchFragment(n)}let m=l.size+e-(s.content.size-s.openEnd);for(;c<l.childCount;){let h=l.child(c),x=u.matchType(h.type);if(!x)break;c++,(c>1||p==0||h.content.size)&&(u=x,d.push(Xp(h.mark(b.allowedMarks(h.marks)),c==1?p:0,c==l.childCount?m:-1)))}let f=c==l.childCount;f||(m=-1),this.placed=To(this.placed,t,M.from(d)),this.frontier[t].match=u,f&&m<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let h=0,x=l;h<m;h++){let y=x.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),x=y.content}this.unplaced=f?e==0?A.empty:new A(Mo(s.content,e-1,1),e-1,m<0?s.openEnd:e-1):new A(Mo(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!za(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:o}=this.$to,n=this.$to.after(o);for(;o>1&&n==this.$to.end(--o);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:o,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=za(e,t,n,o,i);if(s){for(let l=t-1;l>=0;l--){let{match:p,type:c}=this.frontier[l],d=za(e,l,c,p,!0);if(!d||d.childCount)continue e}return{depth:t,fit:s,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=To(this.placed,t.depth,t.fit)),e=t.move;for(let o=t.depth+1;o<=e.depth;o++){let n=e.node(o),i=n.type.contentMatch.fillBefore(n.content,!0,e.index(o));this.openFrontierNode(n.type,n.attrs,i)}return e}openFrontierNode(e,t=null,o){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=To(this.placed,this.depth,M.from(e.create(t,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(M.empty,!0);t.childCount&&(this.placed=To(this.placed,this.frontier.length,t))}}function Mo(r,e,t){return e==0?r.cutByIndex(t,r.childCount):r.replaceChild(0,r.firstChild.copy(Mo(r.firstChild.content,e-1,t)))}function To(r,e,t){return e==0?r.append(t):r.replaceChild(r.childCount-1,r.lastChild.copy(To(r.lastChild.content,e-1,t)))}function Ra(r,e){for(let t=0;t<e;t++)r=r.firstChild.content;return r}function Xp(r,e,t){if(e<=0)return r;let o=r.content;return e>1&&(o=o.replaceChild(0,Xp(o.firstChild,e-1,o.childCount==1?t-1:0))),e>0&&(o=r.type.contentMatch.fillBefore(o).append(o),t<=0&&(o=o.append(r.type.contentMatch.matchFragment(o).fillBefore(M.empty,!0)))),r.copy(o)}function za(r,e,t,o,n){let i=r.node(e),s=n?r.indexAfter(e):r.index(e);if(s==i.childCount&&!t.compatibleContent(i.type))return null;let l=o.fillBefore(i.content,!0,s);return l&&!Uf(t,i.content,s)?l:null}function Uf(r,e,t){for(let o=t;o<e.childCount;o++)if(!r.allowsMarks(e.child(o).marks))return!0;return!1}function qf(r){return r.spec.defining||r.spec.definingForContent}function Kf(r,e,t,o){if(!o.size)return r.deleteRange(e,t);let n=r.doc.resolve(e),i=r.doc.resolve(t);if(Yp(n,i,o))return r.step(new xe(e,t,o));let s=Zp(n,r.doc.resolve(t));s[s.length-1]==0&&s.pop();let l=-(n.depth+1);s.unshift(l);for(let b=n.depth,m=n.pos-1;b>0;b--,m--){let f=n.node(b).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(b)>-1?l=b:n.before(b)==m&&s.splice(1,0,-b)}let p=s.indexOf(l),c=[],d=o.openStart;for(let b=o.content,m=0;;m++){let f=b.firstChild;if(c.push(f),m==o.openStart)break;b=f.content}for(let b=d-1;b>=0;b--){let m=c[b],f=qf(m.type);if(f&&!m.sameMarkup(n.node(Math.abs(l)-1)))d=b;else if(f||!m.type.isTextblock)break}for(let b=o.openStart;b>=0;b--){let m=(b+d+1)%(o.openStart+1),f=c[m];if(f)for(let h=0;h<s.length;h++){let x=s[(h+p)%s.length],y=!0;x<0&&(y=!1,x=-x);let w=n.node(x-1),v=n.index(x-1);if(w.canReplaceWith(v,v,f.type,f.marks))return r.replace(n.before(x),y?i.after(x):t,new A(Qp(o.content,0,o.openStart,m),m,o.openEnd))}}let u=r.steps.length;for(let b=s.length-1;b>=0&&(r.replace(e,t,o),!(r.steps.length>u));b--){let m=s[b];m<0||(e=n.before(m),t=i.after(m))}}function Qp(r,e,t,o,n){if(e<t){let i=r.firstChild;r=r.replaceChild(0,i.copy(Qp(i.content,e+1,t,o,i)))}if(e>o){let i=n.contentMatchAt(0),s=i.fillBefore(r).append(r);r=s.append(i.matchFragment(s).fillBefore(M.empty,!0))}return r}function Gf(r,e,t,o){if(!o.isInline&&e==t&&r.doc.resolve(e).parent.content.size){let n=Hf(r.doc,e,o.type);n!=null&&(e=t=n)}r.replaceRange(e,t,new A(M.from(o),0,0))}function Jf(r,e,t){let o=r.doc.resolve(e),n=r.doc.resolve(t),i=Zp(o,n);for(let s=0;s<i.length;s++){let l=i[s],p=s==i.length-1;if(p&&l==0||o.node(l).type.contentMatch.validEnd)return r.delete(o.start(l),n.end(l));if(l>0&&(p||o.node(l-1).canReplace(o.index(l-1),n.indexAfter(l-1))))return r.delete(o.before(l),n.after(l))}for(let s=1;s<=o.depth&&s<=n.depth;s++)if(e-o.start(s)==o.depth-s&&t>o.end(s)&&n.end(s)-t!=n.depth-s&&o.start(s-1)==n.start(s-1)&&o.node(s-1).canReplace(o.index(s-1),n.index(s-1)))return r.delete(o.before(s),t);r.delete(e,t)}function Zp(r,e){let t=[],o=Math.min(r.depth,e.depth);for(let n=o;n>=0;n--){let i=r.start(n);if(i<r.pos-(r.depth-n)||e.end(n)>e.pos+(e.depth-n)||r.node(n).type.spec.isolating||e.node(n).type.spec.isolating)break;(i==e.start(n)||n==r.depth&&n==e.depth&&r.parent.inlineContent&&e.parent.inlineContent&&n&&e.start(n-1)==i-1)&&t.push(n)}return t}class Hr extends Te{constructor(e,t,o){super(),this.pos=e,this.attr=t,this.value=o}apply(e){let t=e.nodeAt(this.pos);if(!t)return be.fail("No node at attribute step's position");let o=Object.create(null);for(let i in t.attrs)o[i]=t.attrs[i];o[this.attr]=this.value;let n=t.type.create(o,null,t.marks);return be.fromReplace(e,this.pos,this.pos+1,new A(M.from(n),0,t.isLeaf?0:1))}getMap(){return We.empty}invert(e){return new Hr(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Hr(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Hr(t.pos,t.attr,t.value)}}Te.jsonID("attr",Hr);class Oo extends Te{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let o=e.type.create(t,e.content,e.marks);return be.ok(o)}getMap(){return We.empty}invert(e){return new Oo(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Oo(t.attr,t.value)}}Te.jsonID("docAttr",Oo);let Wr=class extends Error{};Wr=function r(e){let t=Error.call(this,e);return t.__proto__=r.prototype,t},Wr.prototype=Object.create(Error.prototype),Wr.prototype.constructor=Wr,Wr.prototype.name="TransformError";class $p{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Bo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Wr(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,o=A.empty){let n=Wn(this.doc,e,t,o);return n&&this.step(n),this}replaceWith(e,t,o){return this.replace(e,t,new A(M.from(o),0,0))}delete(e,t){return this.replace(e,t,A.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,o){return Kf(this,e,t,o),this}replaceRangeWith(e,t,o){return Gf(this,e,t,o),this}deleteRange(e,t){return Jf(this,e,t),this}lift(e,t){return Pf(this,e,t),this}join(e,t=1){return jf(this,e,t),this}wrap(e,t){return If(this,e,t),this}setBlockType(e,t=e,o,n=null){return Lf(this,e,t,o,n),this}setNodeMarkup(e,t,o=null,n){return zf(this,e,t,o,n),this}setNodeAttribute(e,t,o){return this.step(new Hr(e,t,o)),this}setDocAttribute(e,t){return this.step(new Oo(e,t)),this}addNodeMark(e,t){return this.step(new Ut(e,t)),this}removeNodeMark(e,t){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(t instanceof te)t.isInSet(o.marks)&&this.step(new hr(e,t));else{let n=o.marks,i,s=[];for(;i=t.isInSet(n);)s.push(new hr(e,i)),n=i.removeFromSet(n);for(let l=s.length-1;l>=0;l--)this.step(s[l])}return this}split(e,t=1,o){return _f(this,e,t,o),this}addMark(e,t,o){return Tf(this,e,t,o),this}removeMark(e,t,o){return Of(this,e,t,o),this}clearIncompatible(e,t,o){return Ia(this,e,t,o),this}}const _a=Object.create(null);class U{constructor(e,t,o){this.$anchor=e,this.$head=t,this.ranges=o||[new Yf(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=A.empty){let o=t.content.lastChild,n=null;for(let l=0;l<t.openEnd;l++)n=o,o=o.lastChild;let i=e.steps.length,s=this.ranges;for(let l=0;l<s.length;l++){let{$from:p,$to:c}=s[l],d=e.mapping.slice(i);e.replaceRange(d.map(p.pos),d.map(c.pos),l?A.empty:t),l==0&&rc(e,i,(o?o.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,t){let o=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:s,$to:l}=n[i],p=e.mapping.slice(o),c=p.map(s.pos),d=p.map(l.pos);i?e.deleteRange(c,d):(e.replaceRangeWith(c,d,t),rc(e,o,t.isInline?-1:1))}}static findFrom(e,t,o=!1){let n=e.parent.inlineContent?new H(e):Ur(e.node(0),e.parent,e.pos,e.index(),t,o);if(n)return n;for(let i=e.depth-1;i>=0;i--){let s=t<0?Ur(e.node(0),e.node(i),e.before(i+1),e.index(i),t,o):Ur(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,o);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Ue(e.node(0))}static atStart(e){return Ur(e,e,0,0,1)||new Ue(e)}static atEnd(e){return Ur(e,e,e.content.size,e.childCount,-1)||new Ue(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=_a[t.type];if(!o)throw new RangeError(`No selection type ${t.type} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in _a)throw new RangeError("Duplicate use of selection JSON ID "+e);return _a[e]=t,t.prototype.jsonID=e,t}getBookmark(){return H.between(this.$anchor,this.$head).getBookmark()}}U.prototype.visible=!0;class Yf{constructor(e,t){this.$from=e,this.$to=t}}let ec=!1;function tc(r){!ec&&!r.parent.inlineContent&&(ec=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+r.parent.type.name+")"))}class H extends U{constructor(e,t=e){tc(e),tc(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let o=e.resolve(t.map(this.head));if(!o.parent.inlineContent)return U.near(o);let n=e.resolve(t.map(this.anchor));return new H(n.parent.inlineContent?n:o,o)}replace(e,t=A.empty){if(super.replace(e,t),t==A.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof H&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Un(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new H(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,o=t){let n=e.resolve(t);return new this(n,o==t?n:e.resolve(o))}static between(e,t,o){let n=e.pos-t.pos;if((!o||n)&&(o=n>=0?1:-1),!t.parent.inlineContent){let i=U.findFrom(t,o,!0)||U.findFrom(t,-o,!0);if(i)t=i.$head;else return U.near(t,o)}return e.parent.inlineContent||(n==0?e=t:(e=(U.findFrom(e,-o,!0)||U.findFrom(e,o,!0)).$anchor,e.pos<t.pos!=n<0&&(e=t))),new H(e,t)}}U.jsonID("text",H);class Un{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Un(e.map(this.anchor),e.map(this.head))}resolve(e){return H.between(e.resolve(this.anchor),e.resolve(this.head))}}class R extends U{constructor(e){let t=e.nodeAfter,o=e.node(0).resolve(e.pos+t.nodeSize);super(e,o),this.node=t}map(e,t){let{deleted:o,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return o?U.near(i):new R(i)}content(){return new A(M.from(this.node),0,0)}eq(e){return e instanceof R&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Fa(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new R(e.resolve(t.anchor))}static create(e,t){return new R(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}R.prototype.visible=!1,U.jsonID("node",R);class Fa{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:o}=e.mapResult(this.anchor);return t?new Un(o,o):new Fa(o)}resolve(e){let t=e.resolve(this.anchor),o=t.nodeAfter;return o&&R.isSelectable(o)?new R(t):U.near(t)}}class Ue extends U{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=A.empty){if(t==A.empty){e.delete(0,e.doc.content.size);let o=U.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Ue(e)}map(e){return new Ue(e)}eq(e){return e instanceof Ue}getBookmark(){return Xf}}U.jsonID("all",Ue);const Xf={map(){return this},resolve(r){return new Ue(r)}};function Ur(r,e,t,o,n,i=!1){if(e.inlineContent)return H.create(r,t);for(let s=o-(n>0?0:1);n>0?s<e.childCount:s>=0;s+=n){let l=e.child(s);if(l.isAtom){if(!i&&R.isSelectable(l))return R.create(r,t-(n<0?l.nodeSize:0))}else{let p=Ur(r,l,t+n,n<0?l.childCount:0,n,i);if(p)return p}t+=l.nodeSize*n}return null}function rc(r,e,t){let o=r.steps.length-1;if(o<e)return;let n=r.steps[o];if(!(n instanceof xe||n instanceof ge))return;let i=r.mapping.maps[o],s;i.forEach((l,p,c,d)=>{s==null&&(s=d)}),r.setSelection(U.near(r.doc.resolve(s),t))}const oc=1,qn=2,nc=4;class Qf extends $p{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|oc)&~qn,this.storedMarks=null,this}get selectionSet(){return(this.updated&oc)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=qn,this}ensureMarks(e){return te.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&qn)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~qn,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let o=this.selection;return t&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||te.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,o){let n=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(o==null&&(o=t),o=o??t,!e)return this.deleteRange(t,o);let i=this.storedMarks;if(!i){let s=this.doc.resolve(t);i=o==t?s.marks():s.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(t,o,n.text(e,i)),this.selection.empty||this.setSelection(U.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=nc,this}get scrolledIntoView(){return(this.updated&nc)>0}}function ic(r,e){return!e||!r?r:r.bind(e)}class Vo{constructor(e,t,o){this.name=e,this.init=ic(t.init,o),this.apply=ic(t.apply,o)}}const Zf=[new Vo("doc",{init(r){return r.doc||r.schema.topNodeType.createAndFill()},apply(r){return r.doc}}),new Vo("selection",{init(r,e){return r.selection||U.atStart(e.doc)},apply(r){return r.selection}}),new Vo("storedMarks",{init(r){return r.storedMarks||null},apply(r,e,t,o){return o.selection.$cursor?r.storedMarks:null}}),new Vo("scrollToSelection",{init(){return 0},apply(r,e){return r.scrolledIntoView?e+1:e}})];class ja{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Zf.slice(),t&&t.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new Vo(o.key,o.spec.state,o))})}}class qr{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=t){let n=this.config.plugins[o];if(n.spec.filterTransaction&&!n.spec.filterTransaction.call(n,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],o=this.applyInner(e),n=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let l=this.config.plugins[s];if(l.spec.appendTransaction){let p=n?n[s].n:0,c=n?n[s].state:this,d=p<t.length&&l.spec.appendTransaction.call(l,p?t.slice(p):t,c,o);if(d&&o.filterTransaction(d,s)){if(d.setMeta("appendedTransaction",e),!n){n=[];for(let u=0;u<this.config.plugins.length;u++)n.push(u<s?{state:o,n:t.length}:{state:this,n:0})}t.push(d),o=o.applyInner(d),i=!0}n&&(n[s]={state:o,n:t.length})}}if(!i)return{state:o,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new qr(this.config),o=this.config.fields;for(let n=0;n<o.length;n++){let i=o[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Qf(this)}static create(e){let t=new ja(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new qr(t);for(let n=0;n<t.fields.length;n++)o[t.fields[n].name]=t.fields[n].init(e,o);return o}reconfigure(e){let t=new ja(this.schema,e.plugins),o=t.fields,n=new qr(t);for(let i=0;i<o.length;i++){let s=o[i].name;n[s]=this.hasOwnProperty(s)?this[s]:o[i].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[o],i=n.spec.state;i&&i.toJSON&&(t[o]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,o){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let n=new ja(e.schema,e.plugins),i=new qr(n);return n.fields.forEach(s=>{if(s.name=="doc")i.doc=Ht.fromJSON(e.schema,t.doc);else if(s.name=="selection")i.selection=U.fromJSON(i.doc,t.selection);else if(s.name=="storedMarks")t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let l in o){let p=o[l],c=p.spec.state;if(p.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,l)){i[s.name]=c.fromJSON.call(p,e,t[l],i);return}}i[s.name]=s.init(e,i)}}),i}}function ac(r,e,t){for(let o in r){let n=r[o];n instanceof Function?n=n.bind(e):o=="handleDOMEvents"&&(n=ac(n,e,{})),t[o]=n}return t}class me{constructor(e){this.spec=e,this.props={},e.props&&ac(e.props,this,this.props),this.key=e.key?e.key.key:sc("plugin")}getState(e){return e[this.key]}}const Ha=Object.create(null);function sc(r){return r in Ha?r+"$"+ ++Ha[r]:(Ha[r]=0,r+"$")}class Ae{constructor(e="key"){this.key=sc(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Se=function(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e},Kr=function(r){let e=r.assignedSlot||r.parentNode;return e&&e.nodeType==11?e.host:e};let Wa=null;const Nt=function(r,e,t){let o=Wa||(Wa=document.createRange());return o.setEnd(r,t??r.nodeValue.length),o.setStart(r,e||0),o},$f=function(){Wa=null},xr=function(r,e,t,o){return t&&(lc(r,e,t,o,-1)||lc(r,e,t,o,1))},eh=/^(img|br|input|textarea|hr)$/i;function lc(r,e,t,o,n){for(var i;;){if(r==t&&e==o)return!0;if(e==(n<0?0:Ye(r))){let s=r.parentNode;if(!s||s.nodeType!=1||Po(r)||eh.test(r.nodeName)||r.contentEditable=="false")return!1;e=Se(r)+(n<0?0:1),r=s}else if(r.nodeType==1){let s=r.childNodes[e+(n<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=n;else return!1;else r=s,e=n<0?Ye(r):0}else return!1}}function Ye(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function th(r,e){for(;;){if(r.nodeType==3&&e)return r;if(r.nodeType==1&&e>0){if(r.contentEditable=="false")return null;r=r.childNodes[e-1],e=Ye(r)}else if(r.parentNode&&!Po(r))e=Se(r),r=r.parentNode;else return null}}function rh(r,e){for(;;){if(r.nodeType==3&&e<r.nodeValue.length)return r;if(r.nodeType==1&&e<r.childNodes.length){if(r.contentEditable=="false")return null;r=r.childNodes[e],e=0}else if(r.parentNode&&!Po(r))e=Se(r)+1,r=r.parentNode;else return null}}function oh(r,e,t){for(let o=e==0,n=e==Ye(r);o||n;){if(r==t)return!0;let i=Se(r);if(r=r.parentNode,!r)return!1;o=o&&i==0,n=n&&i==Ye(r)}}function Po(r){let e;for(let t=r;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==r||e.contentDOM==r)}const Kn=function(r){return r.focusNode&&xr(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)};function gr(r,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=r,t.key=t.code=e,t}function nh(r){let e=r.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ih(r,e,t){if(r.caretPositionFromPoint)try{let o=r.caretPositionFromPoint(e,t);if(o)return{node:o.offsetNode,offset:Math.min(Ye(o.offsetNode),o.offset)}}catch{}if(r.caretRangeFromPoint){let o=r.caretRangeFromPoint(e,t);if(o)return{node:o.startContainer,offset:Math.min(Ye(o.startContainer),o.startOffset)}}}const ft=typeof navigator<"u"?navigator:null,pc=typeof document<"u"?document:null,Kt=ft&&ft.userAgent||"",Ua=/Edge\/(\d+)/.exec(Kt),cc=/MSIE \d/.exec(Kt),qa=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Kt),_e=!!(cc||qa||Ua),Gt=cc?document.documentMode:qa?+qa[1]:Ua?+Ua[1]:0,st=!_e&&/gecko\/(\d+)/i.test(Kt);st&&+(/Firefox\/(\d+)/.exec(Kt)||[0,0])[1];const Ka=!_e&&/Chrome\/(\d+)/.exec(Kt),Oe=!!Ka,dc=Ka?+Ka[1]:0,De=!_e&&!!ft&&/Apple Computer/.test(ft.vendor),Gr=De&&(/Mobile\/\w+/.test(Kt)||!!ft&&ft.maxTouchPoints>2),Xe=Gr||(ft?/Mac/.test(ft.platform):!1),ah=ft?/Win/.test(ft.platform):!1,Bt=/Android \d/.test(Kt),Ao=!!pc&&"webkitFontSmoothing"in pc.documentElement.style,sh=Ao?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function lh(r){let e=r.defaultView&&r.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.documentElement.clientWidth,top:0,bottom:r.documentElement.clientHeight}}function Mt(r,e){return typeof r=="number"?r:r[e]}function ph(r){let e=r.getBoundingClientRect(),t=e.width/r.offsetWidth||1,o=e.height/r.offsetHeight||1;return{left:e.left,right:e.left+r.clientWidth*t,top:e.top,bottom:e.top+r.clientHeight*o}}function uc(r,e,t){let o=r.someProp("scrollThreshold")||0,n=r.someProp("scrollMargin")||5,i=r.dom.ownerDocument;for(let s=t||r.dom;s;){if(s.nodeType!=1){s=Kr(s);continue}let l=s,p=l==i.body,c=p?lh(i):ph(l),d=0,u=0;if(e.top<c.top+Mt(o,"top")?u=-(c.top-e.top+Mt(n,"top")):e.bottom>c.bottom-Mt(o,"bottom")&&(u=e.bottom-e.top>c.bottom-c.top?e.top+Mt(n,"top")-c.top:e.bottom-c.bottom+Mt(n,"bottom")),e.left<c.left+Mt(o,"left")?d=-(c.left-e.left+Mt(n,"left")):e.right>c.right-Mt(o,"right")&&(d=e.right-c.right+Mt(n,"right")),d||u)if(p)i.defaultView.scrollBy(d,u);else{let m=l.scrollLeft,f=l.scrollTop;u&&(l.scrollTop+=u),d&&(l.scrollLeft+=d);let h=l.scrollLeft-m,x=l.scrollTop-f;e={left:e.left-h,top:e.top-x,right:e.right-h,bottom:e.bottom-x}}let b=p?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(b))break;s=b=="absolute"?s.offsetParent:Kr(s)}}function ch(r){let e=r.dom.getBoundingClientRect(),t=Math.max(0,e.top),o,n;for(let i=(e.left+e.right)/2,s=t+1;s<Math.min(innerHeight,e.bottom);s+=5){let l=r.root.elementFromPoint(i,s);if(!l||l==r.dom||!r.dom.contains(l))continue;let p=l.getBoundingClientRect();if(p.top>=t-20){o=l,n=p.top;break}}return{refDOM:o,refTop:n,stack:bc(r.dom)}}function bc(r){let e=[],t=r.ownerDocument;for(let o=r;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),r!=t);o=Kr(o));return e}function dh({refDOM:r,refTop:e,stack:t}){let o=r?r.getBoundingClientRect().top:0;mc(t,o==0?0:o-e)}function mc(r,e){for(let t=0;t<r.length;t++){let{dom:o,top:n,left:i}=r[t];o.scrollTop!=n+e&&(o.scrollTop=n+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let Jr=null;function uh(r){if(r.setActive)return r.setActive();if(Jr)return r.focus(Jr);let e=bc(r);r.focus(Jr==null?{get preventScroll(){return Jr={preventScroll:!0},!0}}:void 0),Jr||(Jr=!1,mc(e,0))}function fc(r,e){let t,o=2e8,n,i=0,s=e.top,l=e.top,p,c;for(let d=r.firstChild,u=0;d;d=d.nextSibling,u++){let b;if(d.nodeType==1)b=d.getClientRects();else if(d.nodeType==3)b=Nt(d).getClientRects();else continue;for(let m=0;m<b.length;m++){let f=b[m];if(f.top<=s&&f.bottom>=l){s=Math.max(f.bottom,s),l=Math.min(f.top,l);let h=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(h<o){t=d,o=h,n=h&&t.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,d.nodeType==1&&h&&(i=u+(e.left>=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!p&&f.left<=e.left&&f.right>=e.left&&(p=d,c={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!t&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(i=u+1)}}return!t&&p&&(t=p,n=c,o=0),t&&t.nodeType==3?bh(t,n):!t||o&&t.nodeType==1?{node:r,offset:i}:fc(t,n)}function bh(r,e){let t=r.nodeValue.length,o=document.createRange();for(let n=0;n<t;n++){o.setEnd(r,n+1),o.setStart(r,n);let i=Jt(o,1);if(i.top!=i.bottom&&Ga(e,i))return{node:r,offset:n+(e.left>=(i.left+i.right)/2?1:0)}}return{node:r,offset:0}}function Ga(r,e){return r.left>=e.left-1&&r.left<=e.right+1&&r.top>=e.top-1&&r.top<=e.bottom+1}function mh(r,e){let t=r.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<r.getBoundingClientRect().left?t:r}function fh(r,e,t){let{node:o,offset:n}=fc(e,t),i=-1;if(o.nodeType==1&&!o.firstChild){let s=o.getBoundingClientRect();i=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return r.docView.posFromDOM(o,n,i)}function hh(r,e,t,o){let n=-1;for(let i=e,s=!1;i!=r.dom;){let l=r.docView.nearestDesc(i,!0),p;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((p=l.dom.getBoundingClientRect()).width||p.height)&&(l.node.isBlock&&l.parent&&(!s&&p.left>o.left||p.top>o.top?n=l.posBefore:(!s&&p.right<o.left||p.bottom<o.top)&&(n=l.posAfter),s=!0),!l.contentDOM&&n<0&&!l.node.isText))return(l.node.isBlock?o.top<(p.top+p.bottom)/2:o.left<(p.left+p.right)/2)?l.posBefore:l.posAfter;i=l.dom.parentNode}return n>-1?n:r.docView.posFromDOM(e,t,-1)}function hc(r,e,t){let o=r.childNodes.length;if(o&&t.top<t.bottom)for(let n=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-t.top)/(t.bottom-t.top))-2)),i=n;;){let s=r.childNodes[i];if(s.nodeType==1){let l=s.getClientRects();for(let p=0;p<l.length;p++){let c=l[p];if(Ga(e,c))return hc(s,e,c)}}if((i=(i+1)%o)==n)break}return r}function xh(r,e){let t=r.dom.ownerDocument,o,n=0,i=ih(t,e.left,e.top);i&&({node:o,offset:n}=i);let s=(r.root.elementFromPoint?r.root:t).elementFromPoint(e.left,e.top),l;if(!s||!r.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=r.dom.getBoundingClientRect();if(!Ga(e,c)||(s=hc(r.dom,e,c),!s))return null}if(De)for(let c=s;o&&c;c=Kr(c))c.draggable&&(o=void 0);if(s=mh(s,e),o){if(st&&o.nodeType==1&&(n=Math.min(n,o.childNodes.length),n<o.childNodes.length)){let d=o.childNodes[n],u;d.nodeName=="IMG"&&(u=d.getBoundingClientRect()).right<=e.left&&u.bottom>e.top&&n++}let c;Ao&&n&&o.nodeType==1&&(c=o.childNodes[n-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&n--,o==r.dom&&n==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?l=r.state.doc.content.size:(n==0||o.nodeType!=1||o.childNodes[n-1].nodeName!="BR")&&(l=hh(r,o,n,e))}l==null&&(l=fh(r,s,e));let p=r.docView.nearestDesc(s,!0);return{pos:l,inside:p?p.posAtStart-p.border:-1}}function xc(r){return r.top<r.bottom||r.left<r.right}function Jt(r,e){let t=r.getClientRects();if(t.length){let o=t[e<0?0:t.length-1];if(xc(o))return o}return Array.prototype.find.call(t,xc)||r.getBoundingClientRect()}const gh=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function gc(r,e,t){let{node:o,offset:n,atom:i}=r.docView.domFromPos(e,t<0?-1:1),s=Ao||st;if(o.nodeType==3)if(s&&(gh.test(o.nodeValue)||(t<0?!n:n==o.nodeValue.length))){let p=Jt(Nt(o,n,n),t);if(st&&n&&/\s/.test(o.nodeValue[n-1])&&n<o.nodeValue.length){let c=Jt(Nt(o,n-1,n-1),-1);if(c.top==p.top){let d=Jt(Nt(o,n,n+1),-1);if(d.top!=p.top)return Do(d,d.left<c.left)}}return p}else{let p=n,c=n,d=t<0?1:-1;return t<0&&!n?(c++,d=-1):t>=0&&n==o.nodeValue.length?(p--,d=1):t<0?p--:c++,Do(Jt(Nt(o,p,c),d),d<0)}if(!r.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&n&&(t<0||n==Ye(o))){let p=o.childNodes[n-1];if(p.nodeType==1)return Ja(p.getBoundingClientRect(),!1)}if(i==null&&n<Ye(o)){let p=o.childNodes[n];if(p.nodeType==1)return Ja(p.getBoundingClientRect(),!0)}return Ja(o.getBoundingClientRect(),t>=0)}if(i==null&&n&&(t<0||n==Ye(o))){let p=o.childNodes[n-1],c=p.nodeType==3?Nt(p,Ye(p)-(s?0:1)):p.nodeType==1&&(p.nodeName!="BR"||!p.nextSibling)?p:null;if(c)return Do(Jt(c,1),!1)}if(i==null&&n<Ye(o)){let p=o.childNodes[n];for(;p.pmViewDesc&&p.pmViewDesc.ignoreForCoords;)p=p.nextSibling;let c=p?p.nodeType==3?Nt(p,0,s?0:1):p.nodeType==1?p:null:null;if(c)return Do(Jt(c,-1),!0)}return Do(Jt(o.nodeType==3?Nt(o):o,-t),t>=0)}function Do(r,e){if(r.width==0)return r;let t=e?r.left:r.right;return{top:r.top,bottom:r.bottom,left:t,right:t}}function Ja(r,e){if(r.height==0)return r;let t=e?r.top:r.bottom;return{top:t,bottom:t,left:r.left,right:r.right}}function yc(r,e,t){let o=r.state,n=r.root.activeElement;o!=e&&r.updateState(e),n!=r.dom&&r.focus();try{return t()}finally{o!=e&&r.updateState(o),n!=r.dom&&n&&n.focus()}}function yh(r,e,t){let o=e.selection,n=t=="up"?o.$from:o.$to;return yc(r,e,()=>{let{node:i}=r.docView.domFromPos(n.pos,t=="up"?-1:1);for(;;){let l=r.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let s=gc(r,n.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let p;if(l.nodeType==1)p=l.getClientRects();else if(l.nodeType==3)p=Nt(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;c<p.length;c++){let d=p[c];if(d.bottom>d.top+1&&(t=="up"?s.top-d.top>(d.bottom-s.top)*2:d.bottom-s.bottom>(s.bottom-d.top)*2))return!1}}return!0})}const wh=/[\u0590-\u08ac]/;function vh(r,e,t){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let n=o.parentOffset,i=!n,s=n==o.parent.content.size,l=r.domSelection();return l?!wh.test(o.parent.textContent)||!l.modify?t=="left"||t=="backward"?i:s:yc(r,e,()=>{let{focusNode:p,focusOffset:c,anchorNode:d,anchorOffset:u}=r.domSelectionRange(),b=l.caretBidiLevel;l.modify("move",t,"character");let m=o.depth?r.docView.domAfterPos(o.before()):r.dom,{focusNode:f,focusOffset:h}=r.domSelectionRange(),x=f&&!m.contains(f.nodeType==1?f:f.parentNode)||p==f&&c==h;try{l.collapse(d,u),p&&(p!=d||c!=u)&&l.extend&&l.extend(p,c)}catch{}return b!=null&&(l.caretBidiLevel=b),x}):o.pos==o.start()||o.pos==o.end()}let wc=null,vc=null,kc=!1;function kh(r,e,t){return wc==e&&vc==t?kc:(wc=e,vc=t,kc=t=="up"||t=="down"?yh(r,e,t):vh(r,e,t))}const Qe=0,Ec=1,yr=2,ht=3;class Io{constructor(e,t,o,n){this.parent=e,this.children=t,this.dom=o,this.contentDOM=n,this.dirty=Qe,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,o=this.posAtStart;;t++){let n=this.children[t];if(n==e)return o;o+=n.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,s;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let n;if(e==this.dom&&this.contentDOM)n=t>Se(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!1;break}if(i.previousSibling)break}if(n==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){n=!0;break}if(i.nextSibling)break}}return n??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let o=!0,n=e;n;n=n.parentNode){let i=this.getDesc(n),s;if(i&&(!t||i.node))if(o&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))o=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let o=t;o;o=o.parent)if(o==this)return t}posFromDOM(e,t,o){for(let n=e;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(e,t,o)}return-1}descAt(e){for(let t=0,o=0;t<this.children.length;t++){let n=this.children[t],i=o+n.size;if(o==e&&i!=o){for(;!n.border&&n.children.length;)for(let s=0;s<n.children.length;s++){let l=n.children[s];if(l.size){n=l;break}}return n}if(e<i)return n.descAt(e-o-n.border);o=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,n=0;for(let i=0;o<this.children.length;o++){let s=this.children[o],l=i+s.size;if(l>e||s instanceof Nc){n=e-i;break}i=l}if(n)return this.children[o].domFromPos(n-this.children[o].border,t);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof Sc&&i.side>=0;o--);if(t<=0){let i,s=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,s=!1);return i&&t&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?Se(i.dom)+1:0}}else{let i,s=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?Se(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let n=-1,i=-1;for(let s=o,l=0;;l++){let p=this.children[l],c=s+p.size;if(n==-1&&e<=c){let d=s+p.border;if(e>=d&&t<=c-p.border&&p.node&&p.contentDOM&&this.contentDOM.contains(p.contentDOM))return p.parseRange(e,t,d);e=s;for(let u=l;u>0;u--){let b=this.children[u-1];if(b.size&&b.dom.parentNode==this.contentDOM&&!b.emptyChildAt(1)){n=Se(b.dom)+1;break}e-=b.size}n==-1&&(n=0)}if(n>-1&&(c>t||l==this.children.length-1)){t=c;for(let d=l+1;d<this.children.length;d++){let u=this.children[d];if(u.size&&u.dom.parentNode==this.contentDOM&&!u.emptyChildAt(-1)){i=Se(u.dom);break}t+=u.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:t,fromOffset:n,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:o}=this.domFromPos(e,0);if(t.nodeType!=1||o==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[o]}setSelection(e,t,o,n=!1){let i=Math.min(e,t),s=Math.max(e,t);for(let m=0,f=0;m<this.children.length;m++){let h=this.children[m],x=f+h.size;if(i>f&&s<x)return h.setSelection(e-f-h.border,t-f-h.border,o,n);f=x}let l=this.domFromPos(e,e?-1:1),p=t==e?l:this.domFromPos(t,t?-1:1),c=o.root.getSelection(),d=o.domSelectionRange(),u=!1;if((st||De)&&e==t){let{node:m,offset:f}=l;if(m.nodeType==3){if(u=!!(f&&m.nodeValue[f-1]==`
|
|
16
|
+
`),u&&f==m.nodeValue.length)for(let h=m,x;h;h=h.parentNode){if(x=h.nextSibling){x.nodeName=="BR"&&(l=p={node:x.parentNode,offset:Se(x)+1});break}let y=h.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let h=m.childNodes[f-1];u=h&&(h.nodeName=="BR"||h.contentEditable=="false")}}if(st&&d.focusNode&&d.focusNode!=p.node&&d.focusNode.nodeType==1){let m=d.focusNode.childNodes[d.focusOffset];m&&m.contentEditable=="false"&&(n=!0)}if(!(n||u&&De)&&xr(l.node,l.offset,d.anchorNode,d.anchorOffset)&&xr(p.node,p.offset,d.focusNode,d.focusOffset))return;let b=!1;if((c.extend||e==t)&&!u){c.collapse(l.node,l.offset);try{e!=t&&c.extend(p.node,p.offset),b=!0}catch{}}if(!b){if(e>t){let f=l;l=p,p=f}let m=document.createRange();m.setEnd(p.node,p.offset),m.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(m)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let o=0,n=0;n<this.children.length;n++){let i=this.children[n],s=o+i.size;if(o==s?e<=s&&t>=o:e<s&&t>o){let l=o+i.border,p=s-i.border;if(e>=l&&t<=p){this.dirty=e==o||t==s?yr:Ec,e==l&&t==p&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=ht:i.markDirty(e-l,t-l);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?yr:ht}o=s}this.dirty=yr}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let o=e==1?yr:Ec;t.dirty<o&&(t.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Sc extends Io{constructor(e,t,o,n){let i,s=t.type.toDOM;if(typeof s=="function"&&(s=s(o,()=>{if(!i)return n;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(s.nodeType!=1){let l=document.createElement("span");l.appendChild(s),s=l}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Qe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class Eh extends Io{constructor(e,t,o,n){super(e,[],t,null),this.textDOM=o,this.text=n}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class wr extends Io{constructor(e,t,o,n,i){super(e,[],o,n),this.mark=t,this.spec=i}static create(e,t,o,n){let i=n.nodeViews[t.type.name],s=i&&i(t,n,o);return(!s||!s.dom)&&(s=fr.renderSpec(document,t.type.spec.toDOM(t,o),null,t.attrs)),new wr(e,t,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&ht||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=ht&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Qe){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=Qe}}slice(e,t,o){let n=wr.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;t<s&&(i=Xa(i,t,s,o)),e>0&&(i=Xa(i,0,e,o));for(let l=0;l<i.length;l++)i[l].parent=n;return n.children=i,n}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Yt extends Io{constructor(e,t,o,n,i,s,l,p,c){super(e,[],i,s),this.node=t,this.outerDeco=o,this.innerDeco=n,this.nodeDOM=l}static create(e,t,o,n,i,s){let l=i.nodeViews[t.type.name],p,c=l&&l(t,i,()=>{if(!p)return s;if(p.parent)return p.parent.posBeforeChild(p)},o,n),d=c&&c.dom,u=c&&c.contentDOM;if(t.isText){if(!d)d=document.createTextNode(t.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:u}=fr.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs));!u&&!t.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),t.type.spec.draggable&&(d.draggable=!0));let b=d;return d=Tc(d,o,t),c?p=new Sh(e,t,o,n,d,u||null,b,c,i,s+1):t.isText?new Gn(e,t,o,n,d,b,i):new Yt(e,t,o,n,d,u||null,b,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let o=this.children[t];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>M.empty)}return e}matchesNode(e,t,o){return this.dirty==Qe&&e.eq(this.node)&&Jn(t,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let o=this.node.inlineContent,n=t,i=e.composing?this.localCompositionInfo(e,t):null,s=i&&i.pos>-1?i:null,l=i&&i.pos<0,p=new Nh(this,s&&s.node,e);Th(this.node,this.innerDeco,(c,d,u)=>{c.spec.marks?p.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!u&&p.syncToMarks(d==this.node.childCount?te.none:this.node.child(d).marks,o,e),p.placeWidget(c,e,n)},(c,d,u,b)=>{p.syncToMarks(c.marks,o,e);let m;p.findNodeMatch(c,d,u,b)||l&&e.state.selection.from>n&&e.state.selection.to<n+c.nodeSize&&(m=p.findIndexWithChild(i.node))>-1&&p.updateNodeAt(c,d,u,m,e)||p.updateNextNode(c,d,u,e,b,n)||p.addNode(c,d,u,e,n),n+=c.nodeSize}),p.syncToMarks([],o,e),this.node.isTextblock&&p.addTextblockHacks(),p.destroyRest(),(p.changed||this.dirty==yr)&&(s&&this.protectLocalComposition(e,s),Bc(this.contentDOM,this.children,e),Gr&&Oh(this.dom))}localCompositionInfo(e,t){let{from:o,to:n}=e.state.selection;if(!(e.state.selection instanceof H)||o<t||n>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,l=Vh(this.node.content,s,o-t,n-t);return l<0?null:{node:i,pos:l,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:o,text:n}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new Eh(this,i,t,n);e.input.compositionNodes.push(s),this.children=Xa(this.children,o,o+n.length,e,s)}update(e,t,o,n){return this.dirty==ht||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,o,n),!0)}updateInner(e,t,o,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=Qe}updateOuterDeco(e){if(Jn(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Mc(this.dom,this.nodeDOM,Ya(this.outerDeco,this.node,t),Ya(e,this.node,t)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Cc(r,e,t,o,n){Tc(o,e,r);let i=new Yt(void 0,r,e,t,o,o,o,n,0);return i.contentDOM&&i.updateChildren(n,0),i}class Gn extends Yt{constructor(e,t,o,n,i,s,l){super(e,t,o,n,i,null,s,l,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,o,n){return this.dirty==ht||this.dirty!=Qe&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Qe||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=Qe,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,o){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,o){let n=this.node.cut(e,t),i=document.createTextNode(n.text);return new Gn(this.parent,n,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=ht)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Nc extends Io{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Qe&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Sh extends Yt{constructor(e,t,o,n,i,s,l,p,c,d){super(e,t,o,n,i,s,l,c,d),this.spec=p}update(e,t,o,n){if(this.dirty==ht)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,o);return i&&this.updateInner(e,t,o,n),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,o,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,o,n){this.spec.setSelection?this.spec.setSelection(e,t,o.root):super.setSelection(e,t,o,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Bc(r,e,t){let o=r.firstChild,n=!1;for(let i=0;i<e.length;i++){let s=e[i],l=s.dom;if(l.parentNode==r){for(;l!=o;)o=Oc(o),n=!0;o=o.nextSibling}else n=!0,r.insertBefore(l,o);if(s instanceof wr){let p=o?o.previousSibling:r.lastChild;Bc(s.contentDOM,s.children,t),o=p?p.nextSibling:r.firstChild}}for(;o;)o=Oc(o),n=!0;n&&t.trackWrites==r&&(t.trackWrites=null)}const Lo=function(r){r&&(this.nodeName=r)};Lo.prototype=Object.create(null);const vr=[new Lo];function Ya(r,e,t){if(r.length==0)return vr;let o=t?vr[0]:new Lo,n=[o];for(let i=0;i<r.length;i++){let s=r[i].type.attrs;if(s){s.nodeName&&n.push(o=new Lo(s.nodeName));for(let l in s){let p=s[l];p!=null&&(t&&n.length==1&&n.push(o=new Lo(e.isInline?"span":"div")),l=="class"?o.class=(o.class?o.class+" ":"")+p:l=="style"?o.style=(o.style?o.style+";":"")+p:l!="nodeName"&&(o[l]=p))}}}return n}function Mc(r,e,t,o){if(t==vr&&o==vr)return e;let n=e;for(let i=0;i<o.length;i++){let s=o[i],l=t[i];if(i){let p;l&&l.nodeName==s.nodeName&&n!=r&&(p=n.parentNode)&&p.nodeName.toLowerCase()==s.nodeName||(p=document.createElement(s.nodeName),p.pmIsDeco=!0,p.appendChild(n),l=vr[0]),n=p}Ch(n,l||vr[0],s)}return n}function Ch(r,e,t){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in t)&&r.removeAttribute(o);for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&t[o]!=e[o]&&r.setAttribute(o,t[o]);if(e.class!=t.class){let o=e.class?e.class.split(" ").filter(Boolean):[],n=t.class?t.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)n.indexOf(o[i])==-1&&r.classList.remove(o[i]);for(let i=0;i<n.length;i++)o.indexOf(n[i])==-1&&r.classList.add(n[i]);r.classList.length==0&&r.removeAttribute("class")}if(e.style!=t.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,n;for(;n=o.exec(e.style);)r.style.removeProperty(n[1])}t.style&&(r.style.cssText+=t.style)}}function Tc(r,e,t){return Mc(r,r,vr,Ya(e,t,r.nodeType!=1))}function Jn(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].type.eq(e[t].type))return!1;return!0}function Oc(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}class Nh{constructor(e,t,o){this.lock=t,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Bh(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let o=e;o<t;o++)this.top.children[o].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,o){let n=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;n<s&&(n==i-1?this.top:this.stack[n+1<<1]).matchesMark(e[n])&&e[n].type.spec.spanning!==!1;)n++;for(;n<i;)this.destroyRest(),this.top.dirty=Qe,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let l=-1;for(let p=this.index;p<Math.min(this.index+3,this.top.children.length);p++){let c=this.top.children[p];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){l=p;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let p=wr.create(this.top,e[i],t,o);this.top.children.splice(this.index,0,p),this.top=p,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,o,n){let i=-1,s;if(n>=this.preMatch.index&&(s=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,o))i=this.top.children.indexOf(s,this.index);else for(let l=this.index,p=Math.min(this.top.children.length,l+5);l<p;l++){let c=this.top.children[l];if(c.matchesNode(e,t,o)&&!this.preMatch.matched.has(c)){i=l;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,o,n,i){let s=this.top.children[n];return s.dirty==ht&&s.dom==s.contentDOM&&(s.dirty=yr),s.update(e,t,o,i)?(this.destroyBetween(this.index,n),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let n=this.index;n<this.top.children.length;n++)if(this.top.children[n]==o)return n}return-1}e=t}}updateNextNode(e,t,o,n,i,s){for(let l=this.index;l<this.top.children.length;l++){let p=this.top.children[l];if(p instanceof Yt){let c=this.preMatch.matched.get(p);if(c!=null&&c!=i)return!1;let d=p.dom,u,b=this.isLocked(d)&&!(e.isText&&p.node&&p.node.isText&&p.nodeDOM.nodeValue==e.text&&p.dirty!=ht&&Jn(t,p.outerDeco));if(!b&&p.update(e,t,o,n))return this.destroyBetween(this.index,l),p.dom!=d&&(this.changed=!0),this.index++,!0;if(!b&&(u=this.recreateWrapper(p,e,t,o,n,s)))return this.destroyBetween(this.index,l),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=yr,u.updateChildren(n,s+1),u.dirty=Qe),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,o,n,i,s){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Jn(o,e.outerDeco)||!n.eq(e.innerDeco))return null;let l=Yt.create(this.top,t,o,n,i,s);if(l.contentDOM){l.children=e.children,e.children=[];for(let p of l.children)p.parent=l}return e.destroy(),l}addNode(e,t,o,n,i){let s=Yt.create(this.top,e,t,o,n,i);s.contentDOM&&s.updateChildren(n,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,t,o){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(n&&n.matchesWidget(e)&&(e==n.widget||!n.widget.type.toDOM.parentNode))this.index++;else{let i=new Sc(this.top,e,t,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof wr;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Gn)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((De||Oe)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let n=new Nc(this.top,[],o,null);t!=this.top?t.children.push(n):t.children.splice(this.index++,0,n),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Bh(r,e){let t=e,o=t.children.length,n=r.childCount,i=new Map,s=[];e:for(;n>0;){let l;for(;;)if(o){let c=t.children[o-1];if(c instanceof wr)t=c,o=c.children.length;else{l=c,o--;break}}else{if(t==e)break e;o=t.parent.children.indexOf(t),t=t.parent}let p=l.node;if(p){if(p!=r.child(n-1))break;--n,i.set(l,n),s.push(l)}}return{index:n,matched:i,matches:s.reverse()}}function Mh(r,e){return r.type.side-e.type.side}function Th(r,e,t,o){let n=e.locals(r),i=0;if(n.length==0){for(let c=0;c<r.childCount;c++){let d=r.child(c);o(d,n,e.forChild(i,d),c),i+=d.nodeSize}return}let s=0,l=[],p=null;for(let c=0;;){let d,u;for(;s<n.length&&n[s].to==i;){let x=n[s++];x.widget&&(d?(u||(u=[d])).push(x):d=x)}if(d)if(u){u.sort(Mh);for(let x=0;x<u.length;x++)t(u[x],c,!!p)}else t(d,c,!!p);let b,m;if(p)m=-1,b=p,p=null;else if(c<r.childCount)m=c,b=r.child(c++);else break;for(let x=0;x<l.length;x++)l[x].to<=i&&l.splice(x--,1);for(;s<n.length&&n[s].from<=i&&n[s].to>i;)l.push(n[s++]);let f=i+b.nodeSize;if(b.isText){let x=f;s<n.length&&n[s].from<x&&(x=n[s].from);for(let y=0;y<l.length;y++)l[y].to<x&&(x=l[y].to);x<f&&(p=b.cut(x-i),b=b.cut(0,x-i),f=x,m=-1)}else for(;s<n.length&&n[s].to<f;)s++;let h=b.isInline&&!b.isLeaf?l.filter(x=>!x.inline):l.slice();o(b,h,e.forChild(i,b),m),i=f}}function Oh(r){if(r.nodeName=="UL"||r.nodeName=="OL"){let e=r.style.cssText;r.style.cssText=e+"; list-style: square !important",window.getComputedStyle(r).listStyle,r.style.cssText=e}}function Vh(r,e,t,o){for(let n=0,i=0;n<r.childCount&&i<=o;){let s=r.child(n++),l=i;if(i+=s.nodeSize,!s.isText)continue;let p=s.text;for(;n<r.childCount;){let c=r.child(n++);if(i+=c.nodeSize,!c.isText)break;p+=c.text}if(i>=t){if(i>=o&&p.slice(o-e.length-l,o-l)==e)return o-e.length;let c=l<o?p.lastIndexOf(e,o-l-1):-1;if(c>=0&&c+e.length+l>=t)return l+c;if(t==o&&p.length>=o+e.length-l&&p.slice(o-l,o-l+e.length)==e)return o}}return-1}function Xa(r,e,t,o,n){let i=[];for(let s=0,l=0;s<r.length;s++){let p=r[s],c=l,d=l+=p.size;c>=t||d<=e?i.push(p):(c<e&&i.push(p.slice(0,e-c,o)),n&&(i.push(n),n=void 0),d>t&&i.push(p.slice(t-c,p.size,o)))}return i}function Qa(r,e=null){let t=r.domSelectionRange(),o=r.state.doc;if(!t.focusNode)return null;let n=r.docView.nearestDesc(t.focusNode),i=n&&n.size==0,s=r.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let l=o.resolve(s),p,c;if(Kn(t)){for(p=s;n&&!n.node;)n=n.parent;let u=n.node;if(n&&u.isAtom&&R.isSelectable(u)&&n.parent&&!(u.isInline&&oh(t.focusNode,t.focusOffset,n.dom))){let b=n.posBefore;c=new R(s==b?l:o.resolve(b))}}else{if(t instanceof r.dom.ownerDocument.defaultView.Selection&&t.rangeCount>1){let u=s,b=s;for(let m=0;m<t.rangeCount;m++){let f=t.getRangeAt(m);u=Math.min(u,r.docView.posFromDOM(f.startContainer,f.startOffset,1)),b=Math.max(b,r.docView.posFromDOM(f.endContainer,f.endOffset,-1))}if(u<0)return null;[p,s]=b==r.state.selection.anchor?[b,u]:[u,b],l=o.resolve(s)}else p=r.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(p<0)return null}let d=o.resolve(p);if(!c){let u=e=="pointer"||r.state.selection.head<l.pos&&!i?1:-1;c=$a(r,d,l,u)}return c}function Vc(r){return r.editable?r.hasFocus():zc(r)&&document.activeElement&&document.activeElement.contains(r.dom)}function Tt(r,e=!1){let t=r.state.selection;if(Ic(r,t),!!Vc(r)){if(!e&&r.input.mouseDown&&r.input.mouseDown.allowDefault&&Oe){let o=r.domSelectionRange(),n=r.domObserver.currentSelection;if(o.anchorNode&&n.anchorNode&&xr(o.anchorNode,o.anchorOffset,n.anchorNode,n.anchorOffset)){r.input.mouseDown.delayedSelectionSync=!0,r.domObserver.setCurSelection();return}}if(r.domObserver.disconnectSelection(),r.cursorWrapper)Ah(r);else{let{anchor:o,head:n}=t,i,s;Pc&&!(t instanceof H)&&(t.$from.parent.inlineContent||(i=Ac(r,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(s=Ac(r,t.to))),r.docView.setSelection(o,n,r,e),Pc&&(i&&Dc(i),s&&Dc(s)),t.visible?r.dom.classList.remove("ProseMirror-hideselection"):(r.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Ph(r))}r.domObserver.setCurSelection(),r.domObserver.connectSelection()}}const Pc=De||Oe&&dc<63;function Ac(r,e){let{node:t,offset:o}=r.docView.domFromPos(e,0),n=o<t.childNodes.length?t.childNodes[o]:null,i=o?t.childNodes[o-1]:null;if(De&&n&&n.contentEditable=="false")return Za(n);if((!n||n.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(n)return Za(n);if(i)return Za(i)}}function Za(r){return r.contentEditable="true",De&&r.draggable&&(r.draggable=!1,r.wasDraggable=!0),r}function Dc(r){r.contentEditable="false",r.wasDraggable&&(r.draggable=!0,r.wasDraggable=null)}function Ph(r){let e=r.dom.ownerDocument;e.removeEventListener("selectionchange",r.input.hideSelectionGuard);let t=r.domSelectionRange(),o=t.anchorNode,n=t.anchorOffset;e.addEventListener("selectionchange",r.input.hideSelectionGuard=()=>{(t.anchorNode!=o||t.anchorOffset!=n)&&(e.removeEventListener("selectionchange",r.input.hideSelectionGuard),setTimeout(()=>{(!Vc(r)||r.state.selection.visible)&&r.dom.classList.remove("ProseMirror-hideselection")},20))})}function Ah(r){let e=r.domSelection(),t=document.createRange();if(!e)return;let o=r.cursorWrapper.dom,n=o.nodeName=="IMG";n?t.setStart(o.parentNode,Se(o)+1):t.setStart(o,0),t.collapse(!0),e.removeAllRanges(),e.addRange(t),!n&&!r.state.selection.visible&&_e&&Gt<=11&&(o.disabled=!0,o.disabled=!1)}function Ic(r,e){if(e instanceof R){let t=r.docView.descAt(e.from);t!=r.lastSelectedViewDesc&&(Lc(r),t&&t.selectNode(),r.lastSelectedViewDesc=t)}else Lc(r)}function Lc(r){r.lastSelectedViewDesc&&(r.lastSelectedViewDesc.parent&&r.lastSelectedViewDesc.deselectNode(),r.lastSelectedViewDesc=void 0)}function $a(r,e,t,o){return r.someProp("createSelectionBetween",n=>n(r,e,t))||H.between(e,t,o)}function Rc(r){return r.editable&&!r.hasFocus()?!1:zc(r)}function zc(r){let e=r.domSelectionRange();if(!e.anchorNode)return!1;try{return r.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(r.editable||r.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Dh(r){let e=r.docView.domFromPos(r.state.selection.anchor,0),t=r.domSelectionRange();return xr(e.node,e.offset,t.anchorNode,t.anchorOffset)}function es(r,e){let{$anchor:t,$head:o}=r.selection,n=e>0?t.max(o):t.min(o),i=n.parent.inlineContent?n.depth?r.doc.resolve(e>0?n.after():n.before()):null:n;return i&&U.findFrom(i,e)}function Xt(r,e){return r.dispatch(r.state.tr.setSelection(e).scrollIntoView()),!0}function _c(r,e,t){let o=r.state.selection;if(o instanceof H)if(t.indexOf("s")>-1){let{$head:n}=o,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=r.state.doc.resolve(n.pos+i.nodeSize*(e<0?-1:1));return Xt(r,new H(o.$anchor,s))}else if(o.empty){if(r.endOfTextblock(e>0?"forward":"backward")){let n=es(r.state,e);return n&&n instanceof R?Xt(r,n):!1}else if(!(Xe&&t.indexOf("m")>-1)){let n=o.$head,i=n.textOffset?null:e<0?n.nodeBefore:n.nodeAfter,s;if(!i||i.isText)return!1;let l=e<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(s=r.docView.descAt(l))&&!s.contentDOM?R.isSelectable(i)?Xt(r,new R(e<0?r.state.doc.resolve(n.pos-i.nodeSize):n)):Ao?Xt(r,new H(r.state.doc.resolve(e<0?l:l+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof R&&o.node.isInline)return Xt(r,new H(e>0?o.$to:o.$from));{let n=es(r.state,e);return n?Xt(r,n):!1}}}function Yn(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function Ro(r,e){let t=r.pmViewDesc;return t&&t.size==0&&(e<0||r.nextSibling||r.nodeName!="BR")}function Yr(r,e){return e<0?Ih(r):Lh(r)}function Ih(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n,i,s=!1;for(st&&t.nodeType==1&&o<Yn(t)&&Ro(t.childNodes[o],-1)&&(s=!0);;)if(o>0){if(t.nodeType!=1)break;{let l=t.childNodes[o-1];if(Ro(l,-1))n=t,i=--o;else if(l.nodeType==3)t=l,o=t.nodeValue.length;else break}}else{if(Fc(t))break;{let l=t.previousSibling;for(;l&&Ro(l,-1);)n=t.parentNode,i=Se(l),l=l.previousSibling;if(l)t=l,o=Yn(t);else{if(t=t.parentNode,t==r.dom)break;o=0}}}s?ts(r,t,o):n&&ts(r,n,i)}function Lh(r){let e=r.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let n=Yn(t),i,s;for(;;)if(o<n){if(t.nodeType!=1)break;let l=t.childNodes[o];if(Ro(l,1))i=t,s=++o;else break}else{if(Fc(t))break;{let l=t.nextSibling;for(;l&&Ro(l,1);)i=l.parentNode,s=Se(l)+1,l=l.nextSibling;if(l)t=l,o=0,n=Yn(t);else{if(t=t.parentNode,t==r.dom)break;o=n=0}}}i&&ts(r,i,s)}function Fc(r){let e=r.pmViewDesc;return e&&e.node&&e.node.isBlock}function Rh(r,e){for(;r&&e==r.childNodes.length&&!Po(r);)e=Se(r)+1,r=r.parentNode;for(;r&&e<r.childNodes.length;){let t=r.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=0}}function zh(r,e){for(;r&&!e&&!Po(r);)e=Se(r),r=r.parentNode;for(;r&&e;){let t=r.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;r=t,e=r.childNodes.length}}function ts(r,e,t){if(e.nodeType!=3){let i,s;(s=Rh(e,t))?(e=s,t=0):(i=zh(e,t))&&(e=i,t=i.nodeValue.length)}let o=r.domSelection();if(!o)return;if(Kn(o)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,t);r.domObserver.setCurSelection();let{state:n}=r;setTimeout(()=>{r.state==n&&Tt(r)},50)}function jc(r,e){let t=r.state.doc.resolve(e);if(!(Oe||ah)&&t.parent.inlineContent){let n=r.coordsAtPos(e);if(e>t.start()){let i=r.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>n.top&&s<n.bottom&&Math.abs(i.left-n.left)>1)return i.left<n.left?"ltr":"rtl"}if(e<t.end()){let i=r.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>n.top&&s<n.bottom&&Math.abs(i.left-n.left)>1)return i.left>n.left?"ltr":"rtl"}}return getComputedStyle(r.dom).direction=="rtl"?"rtl":"ltr"}function Hc(r,e,t){let o=r.state.selection;if(o instanceof H&&!o.empty||t.indexOf("s")>-1||Xe&&t.indexOf("m")>-1)return!1;let{$from:n,$to:i}=o;if(!n.parent.inlineContent||r.endOfTextblock(e<0?"up":"down")){let s=es(r.state,e);if(s&&s instanceof R)return Xt(r,s)}if(!n.parent.inlineContent){let s=e<0?n:i,l=o instanceof Ue?U.near(s,e):U.findFrom(s,e);return l?Xt(r,l):!1}return!1}function Wc(r,e){if(!(r.state.selection instanceof H))return!0;let{$head:t,$anchor:o,empty:n}=r.state.selection;if(!t.sameParent(o))return!0;if(!n)return!1;if(r.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let s=r.state.tr;return e<0?s.delete(t.pos-i.nodeSize,t.pos):s.delete(t.pos,t.pos+i.nodeSize),r.dispatch(s),!0}return!1}function Uc(r,e,t){r.domObserver.stop(),e.contentEditable=t,r.domObserver.start()}function _h(r){if(!De||r.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=r.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;Uc(r,o,"true"),setTimeout(()=>Uc(r,o,"false"),20)}return!1}function Fh(r){let e="";return r.ctrlKey&&(e+="c"),r.metaKey&&(e+="m"),r.altKey&&(e+="a"),r.shiftKey&&(e+="s"),e}function jh(r,e){let t=e.keyCode,o=Fh(e);if(t==8||Xe&&t==72&&o=="c")return Wc(r,-1)||Yr(r,-1);if(t==46&&!e.shiftKey||Xe&&t==68&&o=="c")return Wc(r,1)||Yr(r,1);if(t==13||t==27)return!0;if(t==37||Xe&&t==66&&o=="c"){let n=t==37?jc(r,r.state.selection.from)=="ltr"?-1:1:-1;return _c(r,n,o)||Yr(r,n)}else if(t==39||Xe&&t==70&&o=="c"){let n=t==39?jc(r,r.state.selection.from)=="ltr"?1:-1:1;return _c(r,n,o)||Yr(r,n)}else{if(t==38||Xe&&t==80&&o=="c")return Hc(r,-1,o)||Yr(r,-1);if(t==40||Xe&&t==78&&o=="c")return _h(r)||Hc(r,1,o)||Yr(r,1);if(o==(Xe?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function rs(r,e){r.someProp("transformCopied",m=>{e=m(e,r)});let t=[],{content:o,openStart:n,openEnd:i}=e;for(;n>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){n--,i--;let m=o.firstChild;t.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),o=m.content}let s=r.someProp("clipboardSerializer")||fr.fromSchema(r.state.schema),l=Zc(),p=l.createElement("div");p.appendChild(s.serializeFragment(o,{document:l}));let c=p.firstChild,d,u=0;for(;c&&c.nodeType==1&&(d=Xc[c.nodeName.toLowerCase()]);){for(let m=d.length-1;m>=0;m--){let f=l.createElement(d[m]);for(;p.firstChild;)f.appendChild(p.firstChild);p.appendChild(f),u++}c=p.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${n} ${i}${u?` -${u}`:""} ${JSON.stringify(t)}`);let b=r.someProp("clipboardTextSerializer",m=>m(e,r))||e.content.textBetween(0,e.content.size,`
|
|
17
|
+
|
|
18
|
+
`);return{dom:p,text:b,slice:e}}function qc(r,e,t,o,n){let i=n.parent.type.spec.code,s,l;if(!t&&!e)return null;let p=e&&(o||i||!t);if(p){if(r.someProp("transformPastedText",b=>{e=b(e,i||o,r)}),i)return e?new A(M.from(r.state.schema.text(e.replace(/\r\n?/g,`
|
|
19
|
+
`))),0,0):A.empty;let u=r.someProp("clipboardTextParser",b=>b(e,n,o,r));if(u)l=u;else{let b=n.marks(),{schema:m}=r.state,f=fr.fromSchema(m);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(h=>{let x=s.appendChild(document.createElement("p"));h&&x.appendChild(f.serializeNode(m.text(h,b)))})}}else r.someProp("transformPastedHTML",u=>{t=u(t,r)}),s=qh(t),Ao&&Kh(s);let c=s&&s.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let u=+d[3];u>0;u--){let b=s.firstChild;for(;b&&b.nodeType!=1;)b=b.nextSibling;if(!b)break;s=b}if(l||(l=(r.someProp("clipboardParser")||r.someProp("domParser")||So.fromSchema(r.state.schema)).parseSlice(s,{preserveWhitespace:!!(p||d),context:n,ruleFromNode(b){return b.nodeName=="BR"&&!b.nextSibling&&b.parentNode&&!Hh.test(b.parentNode.nodeName)?{ignore:!0}:null}})),d)l=Gh(Yc(l,+d[1],+d[2]),d[4]);else if(l=A.maxOpen(Wh(l.content,n),!0),l.openStart||l.openEnd){let u=0,b=0;for(let m=l.content.firstChild;u<l.openStart&&!m.type.spec.isolating;u++,m=m.firstChild);for(let m=l.content.lastChild;b<l.openEnd&&!m.type.spec.isolating;b++,m=m.lastChild);l=Yc(l,u,b)}return r.someProp("transformPasted",u=>{l=u(l,r)}),l}const Hh=/^(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 Wh(r,e){if(r.childCount<2)return r;for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.index(t)),i,s=[];if(r.forEach(l=>{if(!s)return;let p=n.findWrapping(l.type),c;if(!p)return s=null;if(c=s.length&&i.length&&Gc(p,i,l,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=Jc(s[s.length-1],i.length));let d=Kc(l,p);s.push(d),n=n.matchType(d.type),i=p}}),s)return M.from(s)}return r}function Kc(r,e,t=0){for(let o=e.length-1;o>=t;o--)r=e[o].create(null,M.from(r));return r}function Gc(r,e,t,o,n){if(n<r.length&&n<e.length&&r[n]==e[n]){let i=Gc(r,e,t,o.lastChild,n+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(n==r.length-1?t.type:r[n+1]))return o.copy(o.content.append(M.from(Kc(t,r,n+1))))}}function Jc(r,e){if(e==0)return r;let t=r.content.replaceChild(r.childCount-1,Jc(r.lastChild,e-1)),o=r.contentMatchAt(r.childCount).fillBefore(M.empty,!0);return r.copy(t.append(o))}function ns(r,e,t,o,n,i){let s=e<0?r.firstChild:r.lastChild,l=s.content;return r.childCount>1&&(i=0),n<o-1&&(l=ns(l,e,t,o,n+1,i)),n>=t&&(l=e<0?s.contentMatchAt(0).fillBefore(l,i<=n).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(M.empty,!0))),r.replaceChild(e<0?0:r.childCount-1,s.copy(l))}function Yc(r,e,t){return e<r.openStart&&(r=new A(ns(r.content,-1,e,r.openStart,0,r.openEnd),e,r.openEnd)),t<r.openEnd&&(r=new A(ns(r.content,1,t,r.openEnd,0,0),r.openStart,t)),r}const Xc={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Qc=null;function Zc(){return Qc||(Qc=document.implementation.createHTMLDocument("title"))}let is=null;function Uh(r){let e=window.trustedTypes;return e?(is||(is=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),is.createHTML(r)):r}function qh(r){let e=/^(\s*<meta [^>]*>)*/.exec(r);e&&(r=r.slice(e[0].length));let t=Zc().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(r),n;if((n=o&&Xc[o[1].toLowerCase()])&&(r=n.map(i=>"<"+i+">").join("")+r+n.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=Uh(r),n)for(let i=0;i<n.length;i++)t=t.querySelector(n[i])||t;return t}function Kh(r){let e=r.querySelectorAll(Oe?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let o=e[t];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(r.ownerDocument.createTextNode(" "),o)}}function Gh(r,e){if(!r.size)return r;let t=r.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return r}let{content:n,openStart:i,openEnd:s}=r;for(let l=o.length-2;l>=0;l-=2){let p=t.nodes[o[l]];if(!p||p.hasRequiredAttrs())break;n=M.from(p.create(o[l+1],n)),i++,s++}return new A(n,i,s)}const Ie={},Le={},Jh={touchstart:!0,touchmove:!0};class Yh{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Xh(r){for(let e in Ie){let t=Ie[e];r.dom.addEventListener(e,r.input.eventHandlers[e]=o=>{Zh(r,o)&&!ss(r,o)&&(r.editable||!(o.type in Le))&&t(r,o)},Jh[e]?{passive:!0}:void 0)}De&&r.dom.addEventListener("input",()=>null),as(r)}function Qt(r,e){r.input.lastSelectionOrigin=e,r.input.lastSelectionTime=Date.now()}function Qh(r){r.domObserver.stop();for(let e in r.input.eventHandlers)r.dom.removeEventListener(e,r.input.eventHandlers[e]);clearTimeout(r.input.composingTimeout),clearTimeout(r.input.lastIOSEnterFallbackTimeout)}function as(r){r.someProp("handleDOMEvents",e=>{for(let t in e)r.input.eventHandlers[t]||r.dom.addEventListener(t,r.input.eventHandlers[t]=o=>ss(r,o))})}function ss(r,e){return r.someProp("handleDOMEvents",t=>{let o=t[e.type];return o?o(r,e)||e.defaultPrevented:!1})}function Zh(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=r.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function $h(r,e){!ss(r,e)&&Ie[e.type]&&(r.editable||!(e.type in Le))&&Ie[e.type](r,e)}Le.keydown=(r,e)=>{let t=e;if(r.input.shiftKey=t.keyCode==16||t.shiftKey,!ed(r,t)&&(r.input.lastKeyCode=t.keyCode,r.input.lastKeyCodeTime=Date.now(),!(Bt&&Oe&&t.keyCode==13)))if(t.keyCode!=229&&r.domObserver.forceFlush(),Gr&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let o=Date.now();r.input.lastIOSEnter=o,r.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{r.input.lastIOSEnter==o&&(r.someProp("handleKeyDown",n=>n(r,gr(13,"Enter"))),r.input.lastIOSEnter=0)},200)}else r.someProp("handleKeyDown",o=>o(r,t))||jh(r,t)?t.preventDefault():Qt(r,"key")},Le.keyup=(r,e)=>{e.keyCode==16&&(r.input.shiftKey=!1)},Le.keypress=(r,e)=>{let t=e;if(ed(r,t)||!t.charCode||t.ctrlKey&&!t.altKey||Xe&&t.metaKey)return;if(r.someProp("handleKeyPress",n=>n(r,t))){t.preventDefault();return}let o=r.state.selection;if(!(o instanceof H)||!o.$from.sameParent(o.$to)){let n=String.fromCharCode(t.charCode),i=()=>r.state.tr.insertText(n).scrollIntoView();!/[\r\n]/.test(n)&&!r.someProp("handleTextInput",s=>s(r,o.$from.pos,o.$to.pos,n,i))&&r.dispatch(i()),t.preventDefault()}};function Xn(r){return{left:r.clientX,top:r.clientY}}function ex(r,e){let t=e.x-r.clientX,o=e.y-r.clientY;return t*t+o*o<100}function ls(r,e,t,o,n){if(o==-1)return!1;let i=r.state.doc.resolve(o);for(let s=i.depth+1;s>0;s--)if(r.someProp(e,l=>s>i.depth?l(r,t,i.nodeAfter,i.before(s),n,!0):l(r,t,i.node(s),i.before(s),n,!1)))return!0;return!1}function Xr(r,e,t){if(r.focused||r.focus(),r.state.selection.eq(e))return;let o=r.state.tr.setSelection(e);o.setMeta("pointer",!0),r.dispatch(o)}function tx(r,e){if(e==-1)return!1;let t=r.state.doc.resolve(e),o=t.nodeAfter;return o&&o.isAtom&&R.isSelectable(o)?(Xr(r,new R(t)),!0):!1}function rx(r,e){if(e==-1)return!1;let t=r.state.selection,o,n;t instanceof R&&(o=t.node);let i=r.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let l=s>i.depth?i.nodeAfter:i.node(s);if(R.isSelectable(l)){o&&t.$from.depth>0&&s>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?n=i.before(t.$from.depth):n=i.before(s);break}}return n!=null?(Xr(r,R.create(r.state.doc,n)),!0):!1}function ox(r,e,t,o,n){return ls(r,"handleClickOn",e,t,o)||r.someProp("handleClick",i=>i(r,e,o))||(n?rx(r,t):tx(r,t))}function nx(r,e,t,o){return ls(r,"handleDoubleClickOn",e,t,o)||r.someProp("handleDoubleClick",n=>n(r,e,o))}function ix(r,e,t,o){return ls(r,"handleTripleClickOn",e,t,o)||r.someProp("handleTripleClick",n=>n(r,e,o))||ax(r,t,o)}function ax(r,e,t){if(t.button!=0)return!1;let o=r.state.doc;if(e==-1)return o.inlineContent?(Xr(r,H.create(o,0,o.content.size)),!0):!1;let n=o.resolve(e);for(let i=n.depth+1;i>0;i--){let s=i>n.depth?n.nodeAfter:n.node(i),l=n.before(i);if(s.inlineContent)Xr(r,H.create(o,l+1,l+1+s.content.size));else if(R.isSelectable(s))Xr(r,R.create(o,l));else continue;return!0}}function ps(r){return Qn(r)}const $c=Xe?"metaKey":"ctrlKey";Ie.mousedown=(r,e)=>{let t=e;r.input.shiftKey=t.shiftKey;let o=ps(r),n=Date.now(),i="singleClick";n-r.input.lastClick.time<500&&ex(t,r.input.lastClick)&&!t[$c]&&r.input.lastClick.button==t.button&&(r.input.lastClick.type=="singleClick"?i="doubleClick":r.input.lastClick.type=="doubleClick"&&(i="tripleClick")),r.input.lastClick={time:n,x:t.clientX,y:t.clientY,type:i,button:t.button};let s=r.posAtCoords(Xn(t));s&&(i=="singleClick"?(r.input.mouseDown&&r.input.mouseDown.done(),r.input.mouseDown=new sx(r,s,t,!!o)):(i=="doubleClick"?nx:ix)(r,s.pos,s.inside,t)?t.preventDefault():Qt(r,"pointer"))};class sx{constructor(e,t,o,n){this.view=e,this.pos=t,this.event=o,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[$c],this.allowDefault=o.shiftKey;let i,s;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),s=t.inside;else{let d=e.state.doc.resolve(t.pos);i=d.parent,s=d.depth?d.before():0}const l=n?null:o.target,p=l?e.docView.nearestDesc(l,!0):null;this.target=p&&p.dom.nodeType==1?p.dom:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof R&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&st&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Qt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Tt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Xn(e))),this.updateAllowDefault(e),this.allowDefault||!t?Qt(this.view,"pointer"):ox(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||De&&this.mightDrag&&!this.mightDrag.node.isAtom||Oe&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Xr(this.view,U.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):Qt(this.view,"pointer")}move(e){this.updateAllowDefault(e),Qt(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Ie.touchstart=r=>{r.input.lastTouch=Date.now(),ps(r),Qt(r,"pointer")},Ie.touchmove=r=>{r.input.lastTouch=Date.now(),Qt(r,"pointer")},Ie.contextmenu=r=>ps(r);function ed(r,e){return r.composing?!0:De&&Math.abs(e.timeStamp-r.input.compositionEndedAt)<500?(r.input.compositionEndedAt=-2e8,!0):!1}const lx=Bt?5e3:-1;Le.compositionstart=Le.compositionupdate=r=>{if(!r.composing){r.domObserver.flush();let{state:e}=r,t=e.selection.$to;if(e.selection instanceof H&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))r.markCursor=r.state.storedMarks||t.marks(),Qn(r,!0),r.markCursor=null;else if(Qn(r,!e.selection.empty),st&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let o=r.domSelectionRange();for(let n=o.focusNode,i=o.focusOffset;n&&n.nodeType==1&&i!=0;){let s=i<0?n.lastChild:n.childNodes[i-1];if(!s)break;if(s.nodeType==3){let l=r.domSelection();l&&l.collapse(s,s.nodeValue.length);break}else n=s,i=-1}}r.input.composing=!0}td(r,lx)},Le.compositionend=(r,e)=>{r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=e.timeStamp,r.input.compositionPendingChanges=r.domObserver.pendingRecords().length?r.input.compositionID:0,r.input.compositionNode=null,r.input.compositionPendingChanges&&Promise.resolve().then(()=>r.domObserver.flush()),r.input.compositionID++,td(r,20))};function td(r,e){clearTimeout(r.input.composingTimeout),e>-1&&(r.input.composingTimeout=setTimeout(()=>Qn(r),e))}function rd(r){for(r.composing&&(r.input.composing=!1,r.input.compositionEndedAt=cx());r.input.compositionNodes.length>0;)r.input.compositionNodes.pop().markParentsDirty()}function px(r){let e=r.domSelectionRange();if(!e.focusNode)return null;let t=th(e.focusNode,e.focusOffset),o=rh(e.focusNode,e.focusOffset);if(t&&o&&t!=o){let n=o.pmViewDesc,i=r.domObserver.lastChangedTextNode;if(t==i||o==i)return i;if(!n||!n.isText(o.nodeValue))return o;if(r.input.compositionNode==o){let s=t.pmViewDesc;if(!(!s||!s.isText(t.nodeValue)))return o}}return t||o}function cx(){let r=document.createEvent("Event");return r.initEvent("event",!0,!0),r.timeStamp}function Qn(r,e=!1){if(!(Bt&&r.domObserver.flushingSoon>=0)){if(r.domObserver.forceFlush(),rd(r),e||r.docView&&r.docView.dirty){let t=Qa(r),o=r.state.selection;return t&&!t.eq(o)?r.dispatch(r.state.tr.setSelection(t)):(r.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?r.dispatch(r.state.tr.deleteSelection()):r.updateState(r.state),!0}return!1}}function dx(r,e){if(!r.dom.parentNode)return;let t=r.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),n=document.createRange();n.selectNodeContents(e),r.dom.blur(),o.removeAllRanges(),o.addRange(n),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),r.focus()},50)}const zo=_e&&Gt<15||Gr&&sh<604;Ie.copy=Le.cut=(r,e)=>{let t=e,o=r.state.selection,n=t.type=="cut";if(o.empty)return;let i=zo?null:t.clipboardData,s=o.content(),{dom:l,text:p}=rs(r,s);i?(t.preventDefault(),i.clearData(),i.setData("text/html",l.innerHTML),i.setData("text/plain",p)):dx(r,l),n&&r.dispatch(r.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function ux(r){return r.openStart==0&&r.openEnd==0&&r.content.childCount==1?r.content.firstChild:null}function bx(r,e){if(!r.dom.parentNode)return;let t=r.input.shiftKey||r.state.selection.$from.parent.type.spec.code,o=r.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let n=r.input.shiftKey&&r.input.lastKeyCode!=45;setTimeout(()=>{r.focus(),o.parentNode&&o.parentNode.removeChild(o),t?_o(r,o.value,null,n,e):_o(r,o.textContent,o.innerHTML,n,e)},50)}function _o(r,e,t,o,n){let i=qc(r,e,t,o,r.state.selection.$from);if(r.someProp("handlePaste",p=>p(r,n,i||A.empty)))return!0;if(!i)return!1;let s=ux(i),l=s?r.state.tr.replaceSelectionWith(s,o):r.state.tr.replaceSelection(i);return r.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function od(r){let e=r.getData("text/plain")||r.getData("Text");if(e)return e;let t=r.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}Le.paste=(r,e)=>{let t=e;if(r.composing&&!Bt)return;let o=zo?null:t.clipboardData,n=r.input.shiftKey&&r.input.lastKeyCode!=45;o&&_o(r,od(o),o.getData("text/html"),n,t)?t.preventDefault():bx(r,t)};class nd{constructor(e,t,o){this.slice=e,this.move=t,this.node=o}}const mx=Xe?"altKey":"ctrlKey";function id(r,e){let t=r.someProp("dragCopies",o=>!o(e));return t??!e[mx]}Ie.dragstart=(r,e)=>{let t=e,o=r.input.mouseDown;if(o&&o.done(),!t.dataTransfer)return;let n=r.state.selection,i=n.empty?null:r.posAtCoords(Xn(t)),s;if(!(i&&i.pos>=n.from&&i.pos<=(n instanceof R?n.to-1:n.to))){if(o&&o.mightDrag)s=R.create(r.state.doc,o.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let u=r.docView.nearestDesc(t.target,!0);u&&u.node.type.spec.draggable&&u!=r.docView&&(s=R.create(r.state.doc,u.posBefore))}}let l=(s||r.state.selection).content(),{dom:p,text:c,slice:d}=rs(r,l);(!t.dataTransfer.files.length||!Oe||dc>120)&&t.dataTransfer.clearData(),t.dataTransfer.setData(zo?"Text":"text/html",p.innerHTML),t.dataTransfer.effectAllowed="copyMove",zo||t.dataTransfer.setData("text/plain",c),r.dragging=new nd(d,id(r,t),s)},Ie.dragend=r=>{let e=r.dragging;window.setTimeout(()=>{r.dragging==e&&(r.dragging=null)},50)},Le.dragover=Le.dragenter=(r,e)=>e.preventDefault(),Le.drop=(r,e)=>{let t=e,o=r.dragging;if(r.dragging=null,!t.dataTransfer)return;let n=r.posAtCoords(Xn(t));if(!n)return;let i=r.state.doc.resolve(n.pos),s=o&&o.slice;s?r.someProp("transformPasted",f=>{s=f(s,r)}):s=qc(r,od(t.dataTransfer),zo?null:t.dataTransfer.getData("text/html"),!1,i);let l=!!(o&&id(r,t));if(r.someProp("handleDrop",f=>f(r,t,s||A.empty,l))){t.preventDefault();return}if(!s)return;t.preventDefault();let p=s?Jp(r.state.doc,i.pos,s):i.pos;p==null&&(p=i.pos);let c=r.state.tr;if(l){let{node:f}=o;f?f.replace(c):c.deleteSelection()}let d=c.mapping.map(p),u=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,b=c.doc;if(u?c.replaceRangeWith(d,d,s.content.firstChild):c.replaceRange(d,d,s),c.doc.eq(b))return;let m=c.doc.resolve(d);if(u&&R.isSelectable(s.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new R(m));else{let f=c.mapping.map(p);c.mapping.maps[c.mapping.maps.length-1].forEach((h,x,y,w)=>f=w),c.setSelection($a(r,m,c.doc.resolve(f)))}r.focus(),r.dispatch(c.setMeta("uiEvent","drop"))},Ie.focus=r=>{r.input.lastFocus=Date.now(),r.focused||(r.domObserver.stop(),r.dom.classList.add("ProseMirror-focused"),r.domObserver.start(),r.focused=!0,setTimeout(()=>{r.docView&&r.hasFocus()&&!r.domObserver.currentSelection.eq(r.domSelectionRange())&&Tt(r)},20))},Ie.blur=(r,e)=>{let t=e;r.focused&&(r.domObserver.stop(),r.dom.classList.remove("ProseMirror-focused"),r.domObserver.start(),t.relatedTarget&&r.dom.contains(t.relatedTarget)&&r.domObserver.currentSelection.clear(),r.focused=!1)},Ie.beforeinput=(r,e)=>{if(Oe&&Bt&&e.inputType=="deleteContentBackward"){r.domObserver.flushSoon();let{domChangeCount:o}=r.input;setTimeout(()=>{if(r.input.domChangeCount!=o||(r.dom.blur(),r.focus(),r.someProp("handleKeyDown",i=>i(r,gr(8,"Backspace")))))return;let{$cursor:n}=r.state.selection;n&&n.pos>0&&r.dispatch(r.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let r in Le)Ie[r]=Le[r];function Fo(r,e){if(r==e)return!0;for(let t in r)if(r[t]!==e[t])return!1;for(let t in e)if(!(t in r))return!1;return!0}class Zn{constructor(e,t){this.toDOM=e,this.spec=t||kr,this.side=this.spec.side||0}map(e,t,o,n){let{pos:i,deleted:s}=e.mapResult(t.from+n,this.side<0?-1:1);return s?null:new Ze(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Zn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Fo(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Zt{constructor(e,t){this.attrs=e,this.spec=t||kr}map(e,t,o,n){let i=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-o,s=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-o;return i>=s?null:new Ze(i,s,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Zt&&Fo(this.attrs,e.attrs)&&Fo(this.spec,e.spec)}static is(e){return e.type instanceof Zt}destroy(){}}class cs{constructor(e,t){this.attrs=e,this.spec=t||kr}map(e,t,o,n){let i=e.mapResult(t.from+n,1);if(i.deleted)return null;let s=e.mapResult(t.to+n,-1);return s.deleted||s.pos<=i.pos?null:new Ze(i.pos-o,s.pos-o,this)}valid(e,t){let{index:o,offset:n}=e.content.findIndex(t.from),i;return n==t.from&&!(i=e.child(o)).isText&&n+i.nodeSize==t.to}eq(e){return this==e||e instanceof cs&&Fo(this.attrs,e.attrs)&&Fo(this.spec,e.spec)}destroy(){}}class Ze{constructor(e,t,o){this.from=e,this.to=t,this.type=o}copy(e,t){return new Ze(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,o){return this.type.map(e,this,t,o)}static widget(e,t,o){return new Ze(e,e,new Zn(t,o))}static inline(e,t,o,n){return new Ze(e,t,new Zt(o,n))}static node(e,t,o,n){return new Ze(e,t,new cs(o,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof Zt}get widget(){return this.type instanceof Zn}}const Qr=[],kr={};class fe{constructor(e,t){this.local=e.length?e:Qr,this.children=t.length?t:Qr}static create(e,t){return t.length?$n(t,e,0,kr):Ve}find(e,t,o){let n=[];return this.findInner(e??0,t??1e9,n,0,o),n}findInner(e,t,o,n,i){for(let s=0;s<this.local.length;s++){let l=this.local[s];l.from<=t&&l.to>=e&&(!i||i(l.spec))&&o.push(l.copy(l.from+n,l.to+n))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){let l=this.children[s]+1;this.children[s+2].findInner(e-l,t-l,o,n+l,i)}}map(e,t,o){return this==Ve||e.maps.length==0?this:this.mapInner(e,t,0,0,o||kr)}mapInner(e,t,o,n,i){let s;for(let l=0;l<this.local.length;l++){let p=this.local[l].map(e,o,n);p&&p.type.valid(t,p)?(s||(s=[])).push(p):i.onRemove&&i.onRemove(this.local[l].spec)}return this.children.length?fx(this.children,s||[],e,t,o,n,i):s?new fe(s.sort(Er),Qr):Ve}add(e,t){return t.length?this==Ve?fe.create(e,t):this.addInner(e,t,0):this}addInner(e,t,o){let n,i=0;e.forEach((l,p)=>{let c=p+o,d;if(d=sd(t,l,c)){for(n||(n=this.children.slice());i<n.length&&n[i]<p;)i+=3;n[i]==p?n[i+2]=n[i+2].addInner(l,d,c+1):n.splice(i,0,p,p+l.nodeSize,$n(d,l,c+1,kr)),i+=3}});let s=ad(i?ld(t):t,-o);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||s.splice(l--,1);return new fe(s.length?this.local.concat(s).sort(Er):this.local,n||this.children)}remove(e){return e.length==0||this==Ve?this:this.removeInner(e,0)}removeInner(e,t){let o=this.children,n=this.local;for(let i=0;i<o.length;i+=3){let s,l=o[i]+t,p=o[i+1]+t;for(let d=0,u;d<e.length;d++)(u=e[d])&&u.from>l&&u.to<p&&(e[d]=null,(s||(s=[])).push(u));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,l+1);c!=Ve?o[i+2]=c:(o.splice(i,3),i-=3)}if(n.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let l=0;l<n.length;l++)n[l].eq(s,t)&&(n==this.local&&(n=this.local.slice()),n.splice(l--,1))}return o==this.children&&n==this.local?this:n.length||o.length?new fe(n,o):Ve}forChild(e,t){if(this==Ve)return this;if(t.isLeaf)return fe.empty;let o,n;for(let l=0;l<this.children.length;l+=3)if(this.children[l]>=e){this.children[l]==e&&(o=this.children[l+2]);break}let i=e+1,s=i+t.content.size;for(let l=0;l<this.local.length;l++){let p=this.local[l];if(p.from<s&&p.to>i&&p.type instanceof Zt){let c=Math.max(i,p.from)-i,d=Math.min(s,p.to)-i;c<d&&(n||(n=[])).push(p.copy(c,d))}}if(n){let l=new fe(n.sort(Er),Qr);return o?new $t([l,o]):l}return o||Ve}eq(e){if(this==e)return!0;if(!(e instanceof fe)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return ds(this.localsInner(e))}localsInner(e){if(this==Ve)return Qr;if(e.inlineContent||!this.local.some(Zt.is))return this.local;let t=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof Zt||t.push(this.local[o]);return t}forEachSet(e){e(this)}}fe.empty=new fe([],[]),fe.removeOverlap=ds;const Ve=fe.empty;class $t{constructor(e){this.members=e}map(e,t){const o=this.members.map(n=>n.map(e,t,kr));return $t.from(o)}forChild(e,t){if(t.isLeaf)return fe.empty;let o=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,t);i!=Ve&&(i instanceof $t?o=o.concat(i.members):o.push(i))}return $t.from(o)}eq(e){if(!(e instanceof $t)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,o=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(!t)t=i;else{o&&(t=t.slice(),o=!1);for(let s=0;s<i.length;s++)t.push(i[s])}}return t?ds(o?t:t.sort(Er)):Qr}static from(e){switch(e.length){case 0:return Ve;case 1:return e[0];default:return new $t(e.every(t=>t instanceof fe)?e:e.reduce((t,o)=>t.concat(o instanceof fe?o:o.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function fx(r,e,t,o,n,i,s){let l=r.slice();for(let c=0,d=i;c<t.maps.length;c++){let u=0;t.maps[c].forEach((b,m,f,h)=>{let x=h-f-(m-b);for(let y=0;y<l.length;y+=3){let w=l[y+1];if(w<0||b>w+d-u)continue;let v=l[y]+d-u;m>=v?l[y+1]=b<=v?-2:-1:b>=d&&x&&(l[y]+=x,l[y+1]+=x)}u+=x}),d=t.maps[c].map(d,-1)}let p=!1;for(let c=0;c<l.length;c+=3)if(l[c+1]<0){if(l[c+1]==-2){p=!0,l[c+1]=-1;continue}let d=t.map(r[c]+i),u=d-n;if(u<0||u>=o.content.size){p=!0;continue}let b=t.map(r[c+1]+i,-1),m=b-n,{index:f,offset:h}=o.content.findIndex(u),x=o.maybeChild(f);if(x&&h==u&&h+x.nodeSize==m){let y=l[c+2].mapInner(t,x,d+1,r[c]+i+1,s);y!=Ve?(l[c]=u,l[c+1]=m,l[c+2]=y):(l[c+1]=-2,p=!0)}else p=!0}if(p){let c=hx(l,r,e,t,n,i,s),d=$n(c,o,0,s);e=d.local;for(let u=0;u<l.length;u+=3)l[u+1]<0&&(l.splice(u,3),u-=3);for(let u=0,b=0;u<d.children.length;u+=3){let m=d.children[u];for(;b<l.length&&l[b]<m;)b+=3;l.splice(b,0,d.children[u],d.children[u+1],d.children[u+2])}}return new fe(e.sort(Er),l)}function ad(r,e){if(!e||!r.length)return r;let t=[];for(let o=0;o<r.length;o++){let n=r[o];t.push(new Ze(n.from+e,n.to+e,n.type))}return t}function hx(r,e,t,o,n,i,s){function l(p,c){for(let d=0;d<p.local.length;d++){let u=p.local[d].map(o,n,c);u?t.push(u):s.onRemove&&s.onRemove(p.local[d].spec)}for(let d=0;d<p.children.length;d+=3)l(p.children[d+2],p.children[d]+c+1)}for(let p=0;p<r.length;p+=3)r[p+1]==-1&&l(r[p+2],e[p]+i+1);return t}function sd(r,e,t){if(e.isLeaf)return null;let o=t+e.nodeSize,n=null;for(let i=0,s;i<r.length;i++)(s=r[i])&&s.from>t&&s.to<o&&((n||(n=[])).push(s),r[i]=null);return n}function ld(r){let e=[];for(let t=0;t<r.length;t++)r[t]!=null&&e.push(r[t]);return e}function $n(r,e,t,o){let n=[],i=!1;e.forEach((l,p)=>{let c=sd(r,l,p+t);if(c){i=!0;let d=$n(c,l,t+p+1,o);d!=Ve&&n.push(p,p+l.nodeSize,d)}});let s=ad(i?ld(r):r,-t).sort(Er);for(let l=0;l<s.length;l++)s[l].type.valid(e,s[l])||(o.onRemove&&o.onRemove(s[l].spec),s.splice(l--,1));return s.length||n.length?new fe(s,n):Ve}function Er(r,e){return r.from-e.from||r.to-e.to}function ds(r){let e=r;for(let t=0;t<e.length-1;t++){let o=e[t];if(o.from!=o.to)for(let n=t+1;n<e.length;n++){let i=e[n];if(i.from==o.from){i.to!=o.to&&(e==r&&(e=r.slice()),e[n]=i.copy(i.from,o.to),pd(e,n+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==r&&(e=r.slice()),e[t]=o.copy(o.from,i.from),pd(e,n,o.copy(i.from,o.to)));break}}}return e}function pd(r,e,t){for(;e<r.length&&Er(t,r[e])>0;)e++;r.splice(e,0,t)}function us(r){let e=[];return r.someProp("decorations",t=>{let o=t(r.state);o&&o!=Ve&&e.push(o)}),r.cursorWrapper&&e.push(fe.create(r.state.doc,[r.cursorWrapper.deco])),$t.from(e)}const xx={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},gx=_e&&Gt<=11;class yx{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class wx{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new yx,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let n=0;n<o.length;n++)this.queue.push(o[n]);_e&&Gt<=11&&o.some(n=>n.type=="childList"&&n.removedNodes.length||n.type=="characterData"&&n.oldValue.length>n.target.nodeValue.length)?this.flushSoon():this.flush()}),gx&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,xx)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Rc(this.view)){if(this.suppressingSelectionUpdates)return Tt(this.view);if(_e&&Gt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&xr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,o;for(let i=e.focusNode;i;i=Kr(i))t.add(i);for(let i=e.anchorNode;i;i=Kr(i))if(t.has(i)){o=i;break}let n=o&&this.view.docView.nearestDesc(o);if(n&&n.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let o=e.domSelectionRange(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Rc(e)&&!this.ignoreSelectionChange(o),i=-1,s=-1,l=!1,p=[];if(e.editable)for(let d=0;d<t.length;d++){let u=this.registerMutation(t[d],p);u&&(i=i<0?u.from:Math.min(u.from,i),s=s<0?u.to:Math.max(u.to,s),u.typeOver&&(l=!0))}if(st&&p.length){let d=p.filter(u=>u.nodeName=="BR");if(d.length==2){let[u,b]=d;u.parentNode&&u.parentNode.parentNode==b.parentNode?b.remove():u.remove()}else{let{focusNode:u}=this.currentSelection;for(let b of d){let m=b.parentNode;m&&m.nodeName=="LI"&&(!u||Ex(e,u)!=m)&&b.remove()}}}let c=null;i<0&&n&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Kn(o)&&(c=Qa(e))&&c.eq(U.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Tt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||n)&&(i>-1&&(e.docView.markDirty(i,s),vx(e)),this.handleDOMChange(i,s,l,p),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Tt(e),this.currentSelection.set(o))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let d=0;d<e.addedNodes.length;d++){let u=e.addedNodes[d];t.push(u),u.nodeType==3&&(this.lastChangedTextNode=u)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let n=e.previousSibling,i=e.nextSibling;if(_e&&Gt<=11&&e.addedNodes.length)for(let d=0;d<e.addedNodes.length;d++){let{previousSibling:u,nextSibling:b}=e.addedNodes[d];(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(n=u),(!b||Array.prototype.indexOf.call(e.addedNodes,b)<0)&&(i=b)}let s=n&&n.parentNode==e.target?Se(n)+1:0,l=o.localPosFromDOM(e.target,s,-1),p=i&&i.parentNode==e.target?Se(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,p,1);return{from:l,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let cd=new WeakMap,dd=!1;function vx(r){if(!cd.has(r)&&(cd.set(r,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(r.dom).whiteSpace)!==-1)){if(r.requiresGeckoHackNode=st,dd)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),dd=!0}}function ud(r,e){let t=e.startContainer,o=e.startOffset,n=e.endContainer,i=e.endOffset,s=r.domAtPos(r.state.selection.anchor);return xr(s.node,s.offset,n,i)&&([t,o,n,i]=[n,i,t,o]),{anchorNode:t,anchorOffset:o,focusNode:n,focusOffset:i}}function kx(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return ud(r,n)}let t;function o(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),r.dom.removeEventListener("beforeinput",o,!0),t?ud(r,t):null}function Ex(r,e){for(let t=e.parentNode;t&&t!=r.dom;t=t.parentNode){let o=r.docView.nearestDesc(t,!0);if(o&&o.node.isBlock)return t}return null}function Sx(r,e,t){let{node:o,fromOffset:n,toOffset:i,from:s,to:l}=r.docView.parseRange(e,t),p=r.domSelectionRange(),c,d=p.anchorNode;if(d&&r.dom.contains(d.nodeType==1?d:d.parentNode)&&(c=[{node:d,offset:p.anchorOffset}],Kn(p)||c.push({node:p.focusNode,offset:p.focusOffset})),Oe&&r.input.lastKeyCode===8)for(let x=i;x>n;x--){let y=o.childNodes[x-1],w=y.pmViewDesc;if(y.nodeName=="BR"&&!w){i=x;break}if(!w||w.size)break}let u=r.state.doc,b=r.someProp("domParser")||So.fromSchema(r.state.schema),m=u.resolve(s),f=null,h=b.parse(o,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:n,to:i,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Cx,context:m});if(c&&c[0].pos!=null){let x=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=x),f={anchor:x+s,head:y+s}}return{doc:h,sel:f,from:s,to:l}}function Cx(r){let e=r.pmViewDesc;if(e)return e.parseRule();if(r.nodeName=="BR"&&r.parentNode){if(De&&/^(ul|ol)$/i.test(r.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(r.parentNode.lastChild==r||De&&/^(tr|table)$/i.test(r.parentNode.nodeName))return{ignore:!0}}else if(r.nodeName=="IMG"&&r.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Nx=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Bx(r,e,t,o,n){let i=r.input.compositionPendingChanges||(r.composing?r.input.compositionID:0);if(r.input.compositionPendingChanges=0,e<0){let O=r.input.lastSelectionTime>Date.now()-50?r.input.lastSelectionOrigin:null,D=Qa(r,O);if(D&&!r.state.selection.eq(D)){if(Oe&&Bt&&r.input.lastKeyCode===13&&Date.now()-100<r.input.lastKeyCodeTime&&r.someProp("handleKeyDown",E=>E(r,gr(13,"Enter"))))return;let B=r.state.tr.setSelection(D);O=="pointer"?B.setMeta("pointer",!0):O=="key"&&B.scrollIntoView(),i&&B.setMeta("composition",i),r.dispatch(B)}return}let s=r.state.doc.resolve(e),l=s.sharedDepth(t);e=s.before(l+1),t=r.state.doc.resolve(t).after(l+1);let p=r.state.selection,c=Sx(r,e,t),d=r.state.doc,u=d.slice(c.from,c.to),b,m;r.input.lastKeyCode===8&&Date.now()-100<r.input.lastKeyCodeTime?(b=r.state.selection.to,m="end"):(b=r.state.selection.from,m="start"),r.input.lastKeyCode=null;let f=Ox(u.content,c.doc.content,c.from,b,m);if(f&&r.input.domChangeCount++,(Gr&&r.input.lastIOSEnter>Date.now()-225||Bt)&&n.some(O=>O.nodeType==1&&!Nx.test(O.nodeName))&&(!f||f.endA>=f.endB)&&r.someProp("handleKeyDown",O=>O(r,gr(13,"Enter")))){r.input.lastIOSEnter=0;return}if(!f)if(o&&p instanceof H&&!p.empty&&p.$head.sameParent(p.$anchor)&&!r.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))f={start:p.from,endA:p.to,endB:p.to};else{if(c.sel){let O=bd(r,r.state.doc,c.sel);if(O&&!O.eq(r.state.selection)){let D=r.state.tr.setSelection(O);i&&D.setMeta("composition",i),r.dispatch(D)}}return}r.state.selection.from<r.state.selection.to&&f.start==f.endB&&r.state.selection instanceof H&&(f.start>r.state.selection.from&&f.start<=r.state.selection.from+2&&r.state.selection.from>=c.from?f.start=r.state.selection.from:f.endA<r.state.selection.to&&f.endA>=r.state.selection.to-2&&r.state.selection.to<=c.to&&(f.endB+=r.state.selection.to-f.endA,f.endA=r.state.selection.to)),_e&&Gt<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>c.from&&c.doc.textBetween(f.start-c.from-1,f.start-c.from+1)==" "&&(f.start--,f.endA--,f.endB--);let h=c.doc.resolveNoCache(f.start-c.from),x=c.doc.resolveNoCache(f.endB-c.from),y=d.resolve(f.start),w=h.sameParent(x)&&h.parent.inlineContent&&y.end()>=f.endA,v;if((Gr&&r.input.lastIOSEnter>Date.now()-225&&(!w||n.some(O=>O.nodeName=="DIV"||O.nodeName=="P"))||!w&&h.pos<c.doc.content.size&&(!h.sameParent(x)||!h.parent.inlineContent)&&!/\S/.test(c.doc.textBetween(h.pos,x.pos,"",""))&&(v=U.findFrom(c.doc.resolve(h.pos+1),1,!0))&&v.head>h.pos)&&r.someProp("handleKeyDown",O=>O(r,gr(13,"Enter")))){r.input.lastIOSEnter=0;return}if(r.state.selection.anchor>f.start&&Tx(d,f.start,f.endA,h,x)&&r.someProp("handleKeyDown",O=>O(r,gr(8,"Backspace")))){Bt&&Oe&&r.domObserver.suppressSelectionUpdates();return}Oe&&f.endB==f.start&&(r.input.lastChromeDelete=Date.now()),Bt&&!w&&h.start()!=x.start()&&x.parentOffset==0&&h.depth==x.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==f.endA&&(f.endB-=2,x=c.doc.resolveNoCache(f.endB-c.from),setTimeout(()=>{r.someProp("handleKeyDown",function(O){return O(r,gr(13,"Enter"))})},20));let g=f.start,S=f.endA,k=O=>{let D=O||r.state.tr.replace(g,S,c.doc.slice(f.start-c.from,f.endB-c.from));if(c.sel){let B=bd(r,D.doc,c.sel);B&&!(Oe&&r.composing&&B.empty&&(f.start!=f.endB||r.input.lastChromeDelete<Date.now()-100)&&(B.head==g||B.head==D.mapping.map(S)-1)||_e&&B.empty&&B.head==g)&&D.setSelection(B)}return i&&D.setMeta("composition",i),D.scrollIntoView()},C;if(w){if(h.pos==x.pos){_e&&Gt<=11&&h.parentOffset==0&&(r.domObserver.suppressSelectionUpdates(),setTimeout(()=>Tt(r),20));let O=k(r.state.tr.delete(g,S)),D=d.resolve(f.start).marksAcross(d.resolve(f.endA));D&&O.ensureMarks(D),r.dispatch(O)}else if(f.endA==f.endB&&(C=Mx(h.parent.content.cut(h.parentOffset,x.parentOffset),y.parent.content.cut(y.parentOffset,f.endA-y.start())))){let O=k(r.state.tr);C.type=="add"?O.addMark(g,S,C.mark):O.removeMark(g,S,C.mark),r.dispatch(O)}else if(h.parent.child(h.index()).isText&&h.index()==x.index()-(x.textOffset?0:1)){let O=h.parent.textBetween(h.parentOffset,x.parentOffset),D=()=>k(r.state.tr.insertText(O,g,S));r.someProp("handleTextInput",B=>B(r,g,S,O,D))||r.dispatch(D())}}else r.dispatch(k())}function bd(r,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:$a(r,e.resolve(t.anchor),e.resolve(t.head))}function Mx(r,e){let t=r.firstChild.marks,o=e.firstChild.marks,n=t,i=o,s,l,p;for(let d=0;d<o.length;d++)n=o[d].removeFromSet(n);for(let d=0;d<t.length;d++)i=t[d].removeFromSet(i);if(n.length==1&&i.length==0)l=n[0],s="add",p=d=>d.mark(l.addToSet(d.marks));else if(n.length==0&&i.length==1)l=i[0],s="remove",p=d=>d.mark(l.removeFromSet(d.marks));else return null;let c=[];for(let d=0;d<e.childCount;d++)c.push(p(e.child(d)));if(M.from(c).eq(r))return{mark:l,type:s}}function Tx(r,e,t,o,n){if(t-e<=n.pos-o.pos||bs(o,!0,!1)<n.pos)return!1;let i=r.resolve(e);if(!o.parent.isTextblock){let l=i.nodeAfter;return l!=null&&t==e+l.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=r.resolve(bs(i,!0,!0));return!s.parent.isTextblock||s.pos>t||bs(s,!0,!1)<t?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function bs(r,e,t){let o=r.depth,n=e?r.end():r.pos;for(;o>0&&(e||r.indexAfter(o)==r.node(o).childCount);)o--,n++,e=!1;if(t){let i=r.node(o).maybeChild(r.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,n++}return n}function Ox(r,e,t,o,n){let i=r.findDiffStart(e,t);if(i==null)return null;let{a:s,b:l}=r.findDiffEnd(e,t+r.size,t+e.size);if(n=="end"){let p=Math.max(0,i-Math.min(s,l));o-=s+p-i}if(s<i&&r.size<e.size){let p=o<=i&&o>=s?i-o:0;i-=p,i&&i<e.size&&md(e.textBetween(i-1,i+1))&&(i+=p?1:-1),l=i+(l-s),s=i}else if(l<i){let p=o<=i&&o>=l?i-o:0;i-=p,i&&i<r.size&&md(r.textBetween(i-1,i+1))&&(i+=p?1:-1),s=i+(s-l),l=i}return{start:i,endA:s,endB:l}}function md(r){if(r.length!=2)return!1;let e=r.charCodeAt(0),t=r.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class fd{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Yh,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(wd),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=gd(this),xd(this),this.nodeViews=yd(this),this.docView=Cc(this.state.doc,hd(this),us(this),this.dom,this),this.domObserver=new wx(this,(o,n,i,s)=>Bx(this,o,n,i,s)),this.domObserver.start(),Xh(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&as(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(wd),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let o in this._props)t[o]=this._props[o];t.state=this.state;for(let o in e)t[o]=e[o];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var o;let n=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(rd(this),s=!0),this.state=e;let l=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(l||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let m=yd(this);Px(m,this.nodeViews)&&(this.nodeViews=m,i=!0)}(l||t.handleDOMEvents!=this._props.handleDOMEvents)&&as(this),this.editable=gd(this),xd(this);let p=us(this),c=hd(this),d=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?"reset":e.scrollToSelection>n.scrollToSelection?"to selection":"preserve",u=i||!this.docView.matchesNode(e.doc,c,p);(u||!e.selection.eq(n.selection))&&(s=!0);let b=d=="preserve"&&s&&this.dom.style.overflowAnchor==null&&ch(this);if(s){this.domObserver.stop();let m=u&&(_e||Oe)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Vx(n.selection,e.selection);if(u){let f=Oe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=px(this)),(i||!this.docView.update(e.doc,c,p,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Cc(e.doc,c,p,this.dom,this)),f&&!this.trackWrites&&(m=!0)}m||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Dh(this))?Tt(this,m):(Ic(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),!((o=this.dragging)===null||o===void 0)&&o.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():b&&dh(b)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof R){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&uc(this,t.getBoundingClientRect(),e)}else uc(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let o=this.directPlugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let o=this.state.plugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let o=this.pluginViews[t];o.update&&o.update(this,e)}}updateDraggedNode(e,t){let o=e.node,n=-1;if(this.state.doc.nodeAt(o.from)==o.node)n=o.from;else{let i=o.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==o.node&&(n=i)}this.dragging=new nd(e.slice,e.move,n<0?void 0:R.create(this.state.doc,n))}someProp(e,t){let o=this._props&&this._props[e],n;if(o!=null&&(n=t?t(o):o))return n;for(let s=0;s<this.directPlugins.length;s++){let l=this.directPlugins[s].props[e];if(l!=null&&(n=t?t(l):l))return n}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let l=i[s].props[e];if(l!=null&&(n=t?t(l):l))return n}}hasFocus(){if(_e){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&uh(this.dom),Tt(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return xh(this,e)}coordsAtPos(e,t=1){return gc(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,o=-1){let n=this.docView.posFromDOM(e,t,o);if(n==null)throw new RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return kh(this,t||this.state,e)}pasteHTML(e,t){return _o(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return _o(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return rs(this,e)}destroy(){this.docView&&(Qh(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],us(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,$f())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return $h(this,e)}domSelectionRange(){let e=this.domSelection();return e?De&&this.root.nodeType===11&&nh(this.dom.ownerDocument)==this.dom&&kx(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}fd.prototype.dispatch=function(r){let e=this._props.dispatchTransaction;e?e.call(this,r):this.updateState(this.state.apply(r))};function hd(r){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(r.editable),r.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(r.state)),t)for(let o in t)o=="class"?e.class+=" "+t[o]:o=="style"?e.style=(e.style?e.style+";":"")+t[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(t[o]))}),e.translate||(e.translate="no"),[Ze.node(0,r.state.doc.content.size,e)]}function xd(r){if(r.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),r.cursorWrapper={dom:e,deco:Ze.widget(r.state.selection.from,e,{raw:!0,marks:r.markCursor})}}else r.cursorWrapper=null}function gd(r){return!r.someProp("editable",e=>e(r.state)===!1)}function Vx(r,e){let t=Math.min(r.$anchor.sharedDepth(r.head),e.$anchor.sharedDepth(e.head));return r.$anchor.start(t)!=e.$anchor.start(t)}function yd(r){let e=Object.create(null);function t(o){for(let n in o)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=o[n])}return r.someProp("nodeViews",t),r.someProp("markViews",t),e}function Px(r,e){let t=0,o=0;for(let n in r){if(r[n]!=e[n])return!0;t++}for(let n in e)o++;return t!=o}function wd(r){if(r.spec.state||r.spec.filterTransaction||r.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var er={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:"'"},ei={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ax=typeof navigator<"u"&&/Mac/.test(navigator.platform),Dx=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ce=0;Ce<10;Ce++)er[48+Ce]=er[96+Ce]=String(Ce);for(var Ce=1;Ce<=24;Ce++)er[Ce+111]="F"+Ce;for(var Ce=65;Ce<=90;Ce++)er[Ce]=String.fromCharCode(Ce+32),ei[Ce]=String.fromCharCode(Ce);for(var ms in er)ei.hasOwnProperty(ms)||(ei[ms]=er[ms]);function Ix(r){var e=Ax&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||Dx&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?ei:er)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const Lx=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Rx=typeof navigator<"u"&&/Win/.test(navigator.platform);function zx(r){let e=r.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let o,n,i,s;for(let l=0;l<e.length-1;l++){let p=e[l];if(/^(cmd|meta|m)$/i.test(p))s=!0;else if(/^a(lt)?$/i.test(p))o=!0;else if(/^(c|ctrl|control)$/i.test(p))n=!0;else if(/^s(hift)?$/i.test(p))i=!0;else if(/^mod$/i.test(p))Lx?s=!0:n=!0;else throw new Error("Unrecognized modifier name: "+p)}return o&&(t="Alt-"+t),n&&(t="Ctrl-"+t),s&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function _x(r){let e=Object.create(null);for(let t in r)e[zx(t)]=r[t];return e}function fs(r,e,t=!0){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t&&e.shiftKey&&(r="Shift-"+r),r}function Fx(r){return new me({props:{handleKeyDown:vd(r)}})}function vd(r){let e=_x(r);return function(t,o){let n=Ix(o),i,s=e[fs(n,o)];if(s&&s(t.state,t.dispatch,t))return!0;if(n.length==1&&n!=" "){if(o.shiftKey){let l=e[fs(n,o,!1)];if(l&&l(t.state,t.dispatch,t))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(Rx&&o.ctrlKey&&o.altKey)&&(i=er[o.keyCode])&&i!=n){let l=e[fs(i,o)];if(l&&l(t.state,t.dispatch,t))return!0}}return!1}}const hs=(r,e)=>r.selection.empty?!1:(e&&e(r.tr.deleteSelection().scrollIntoView()),!0);function kd(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("backward",r):t.parentOffset>0)?null:t}const Ed=(r,e,t)=>{let o=kd(r,t);if(!o)return!1;let n=xs(o);if(!n){let s=o.blockRange(),l=s&&jr(s);return l==null?!1:(e&&e(r.tr.lift(s,l).scrollIntoView()),!0)}let i=n.nodeBefore;if(Pd(r,n,e,-1))return!0;if(o.parent.content.size==0&&(Zr(i,"end")||R.isSelectable(i)))for(let s=o.depth;;s--){let l=Wn(r.doc,o.before(s),o.after(s),A.empty);if(l&&l.slice.size<l.to-l.from){if(e){let p=r.tr.step(l);p.setSelection(Zr(i,"end")?U.findFrom(p.doc.resolve(p.mapping.map(n.pos,-1)),-1):R.create(p.doc,n.pos-i.nodeSize)),e(p.scrollIntoView())}return!0}if(s==1||o.node(s-1).childCount>1)break}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos-i.nodeSize,n.pos).scrollIntoView()),!0):!1},jx=(r,e,t)=>{let o=kd(r,t);if(!o)return!1;let n=xs(o);return n?Sd(r,n,e):!1},Hx=(r,e,t)=>{let o=Nd(r,t);if(!o)return!1;let n=gs(o);return n?Sd(r,n,e):!1};function Sd(r,e,t){let o=e.nodeBefore,n=o,i=e.pos-1;for(;!n.isTextblock;i--){if(n.type.spec.isolating)return!1;let d=n.lastChild;if(!d)return!1;n=d}let s=e.nodeAfter,l=s,p=e.pos+1;for(;!l.isTextblock;p++){if(l.type.spec.isolating)return!1;let d=l.firstChild;if(!d)return!1;l=d}let c=Wn(r.doc,i,p,A.empty);if(!c||c.from!=i||c instanceof xe&&c.slice.size>=p-i)return!1;if(t){let d=r.tr.step(c);d.setSelection(H.create(d.doc,i)),t(d.scrollIntoView())}return!0}function Zr(r,e,t=!1){for(let o=r;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(t&&o.childCount!=1)return!1}return!1}const Cd=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("backward",r):o.parentOffset>0)return!1;i=xs(o)}let s=i&&i.nodeBefore;return!s||!R.isSelectable(s)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function xs(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){if(r.index(e)>0)return r.doc.resolve(r.before(e+1));if(r.node(e).type.spec.isolating)break}return null}function Nd(r,e){let{$cursor:t}=r.selection;return!t||(e?!e.endOfTextblock("forward",r):t.parentOffset<t.parent.content.size)?null:t}const Bd=(r,e,t)=>{let o=Nd(r,t);if(!o)return!1;let n=gs(o);if(!n)return!1;let i=n.nodeAfter;if(Pd(r,n,e,1))return!0;if(o.parent.content.size==0&&(Zr(i,"start")||R.isSelectable(i))){let s=Wn(r.doc,o.before(),o.after(),A.empty);if(s&&s.slice.size<s.to-s.from){if(e){let l=r.tr.step(s);l.setSelection(Zr(i,"start")?U.findFrom(l.doc.resolve(l.mapping.map(n.pos)),1):R.create(l.doc,l.mapping.map(n.pos))),e(l.scrollIntoView())}return!0}}return i.isAtom&&n.depth==o.depth-1?(e&&e(r.tr.delete(n.pos,n.pos+i.nodeSize).scrollIntoView()),!0):!1},Md=(r,e,t)=>{let{$head:o,empty:n}=r.selection,i=o;if(!n)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("forward",r):o.parentOffset<o.parent.content.size)return!1;i=gs(o)}let s=i&&i.nodeAfter;return!s||!R.isSelectable(s)?!1:(e&&e(r.tr.setSelection(R.create(r.doc,i.pos)).scrollIntoView()),!0)};function gs(r){if(!r.parent.type.spec.isolating)for(let e=r.depth-1;e>=0;e--){let t=r.node(e);if(r.index(e)+1<t.childCount)return r.doc.resolve(r.after(e+1));if(t.type.spec.isolating)break}return null}const Wx=(r,e)=>{let t=r.selection,o=t instanceof R,n;if(o){if(t.node.isTextblock||!qt(r.doc,t.from))return!1;n=t.from}else if(n=Hn(r.doc,t.from,-1),n==null)return!1;if(e){let i=r.tr.join(n);o&&i.setSelection(R.create(i.doc,n-r.doc.resolve(n).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},Ux=(r,e)=>{let t=r.selection,o;if(t instanceof R){if(t.node.isTextblock||!qt(r.doc,t.to))return!1;o=t.to}else if(o=Hn(r.doc,t.to,1),o==null)return!1;return e&&e(r.tr.join(o).scrollIntoView()),!0},qx=(r,e)=>{let{$from:t,$to:o}=r.selection,n=t.blockRange(o),i=n&&jr(n);return i==null?!1:(e&&e(r.tr.lift(n,i).scrollIntoView()),!0)},Td=(r,e)=>{let{$head:t,$anchor:o}=r.selection;return!t.parent.type.spec.code||!t.sameParent(o)?!1:(e&&e(r.tr.insertText(`
|
|
20
|
+
`).scrollIntoView()),!0)};function ys(r){for(let e=0;e<r.edgeCount;e++){let{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const Kx=(r,e)=>{let{$head:t,$anchor:o}=r.selection;if(!t.parent.type.spec.code||!t.sameParent(o))return!1;let n=t.node(-1),i=t.indexAfter(-1),s=ys(n.contentMatchAt(i));if(!s||!n.canReplaceWith(i,i,s))return!1;if(e){let l=t.after(),p=r.tr.replaceWith(l,l,s.createAndFill());p.setSelection(U.near(p.doc.resolve(l),1)),e(p.scrollIntoView())}return!0},Od=(r,e)=>{let t=r.selection,{$from:o,$to:n}=t;if(t instanceof Ue||o.parent.inlineContent||n.parent.inlineContent)return!1;let i=ys(n.parent.contentMatchAt(n.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!o.parentOffset&&n.index()<n.parent.childCount?o:n).pos,l=r.tr.insert(s,i.createAndFill());l.setSelection(H.create(l.doc,s+1)),e(l.scrollIntoView())}return!0},Vd=(r,e)=>{let{$cursor:t}=r.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let i=t.before();if(Ct(r.doc,i))return e&&e(r.tr.split(i).scrollIntoView()),!0}let o=t.blockRange(),n=o&&jr(o);return n==null?!1:(e&&e(r.tr.lift(o,n).scrollIntoView()),!0)};function Gx(r){return(e,t)=>{let{$from:o,$to:n}=e.selection;if(e.selection instanceof R&&e.selection.node.isBlock)return!o.parentOffset||!Ct(e.doc,o.pos)?!1:(t&&t(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],s,l,p=!1,c=!1;for(let m=o.depth;;m--)if(o.node(m).isBlock){p=o.end(m)==o.pos+(o.depth-m),c=o.start(m)==o.pos-(o.depth-m),l=ys(o.node(m-1).contentMatchAt(o.indexAfter(m-1))),i.unshift(p&&l?{type:l}:null),s=m;break}else{if(m==1)return!1;i.unshift(null)}let d=e.tr;(e.selection instanceof H||e.selection instanceof Ue)&&d.deleteSelection();let u=d.mapping.map(o.pos),b=Ct(d.doc,u,i.length,i);if(b||(i[0]=l?{type:l}:null,b=Ct(d.doc,u,i.length,i)),!b)return!1;if(d.split(u,i.length,i),!p&&c&&o.node(s).type!=l){let m=d.mapping.map(o.before(s)),f=d.doc.resolve(m);l&&o.node(s-1).canReplaceWith(f.index(),f.index()+1,l)&&d.setNodeMarkup(d.mapping.map(o.before(s)),l)}return t&&t(d.scrollIntoView()),!0}}const Jx=Gx(),Yx=(r,e)=>{let{$from:t,to:o}=r.selection,n,i=t.sharedDepth(o);return i==0?!1:(n=t.before(i),e&&e(r.tr.setSelection(R.create(r.doc,n))),!0)};function Xx(r,e,t){let o=e.nodeBefore,n=e.nodeAfter,i=e.index();return!o||!n||!o.type.compatibleContent(n.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(t&&t(r.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(n.isTextblock||qt(r.doc,e.pos))?!1:(t&&t(r.tr.join(e.pos).scrollIntoView()),!0)}function Pd(r,e,t,o){let n=e.nodeBefore,i=e.nodeAfter,s,l,p=n.type.spec.isolating||i.type.spec.isolating;if(!p&&Xx(r,e,t))return!0;let c=!p&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(l=n.contentMatchAt(n.childCount)).findWrapping(i.type))&&l.matchType(s[0]||i.type).validEnd){if(t){let m=e.pos+i.nodeSize,f=M.empty;for(let y=s.length-1;y>=0;y--)f=M.from(s[y].create(null,f));f=M.from(n.copy(f));let h=r.tr.step(new ge(e.pos-1,m,e.pos,m,new A(f,1,0),s.length,!0)),x=h.doc.resolve(m+2*s.length);x.nodeAfter&&x.nodeAfter.type==n.type&&qt(h.doc,x.pos)&&h.join(x.pos),t(h.scrollIntoView())}return!0}let d=i.type.spec.isolating||o>0&&p?null:U.findFrom(e,1),u=d&&d.$from.blockRange(d.$to),b=u&&jr(u);if(b!=null&&b>=e.depth)return t&&t(r.tr.lift(u,b).scrollIntoView()),!0;if(c&&Zr(i,"start",!0)&&Zr(n,"end")){let m=n,f=[];for(;f.push(m),!m.isTextblock;)m=m.lastChild;let h=i,x=1;for(;!h.isTextblock;h=h.firstChild)x++;if(m.canReplace(m.childCount,m.childCount,h.content)){if(t){let y=M.empty;for(let v=f.length-1;v>=0;v--)y=M.from(f[v].copy(y));let w=r.tr.step(new ge(e.pos-f.length,e.pos+i.nodeSize,e.pos+x,e.pos+i.nodeSize-x,new A(y,f.length,0),0,!0));t(w.scrollIntoView())}return!0}}return!1}function Ad(r){return function(e,t){let o=e.selection,n=r<0?o.$from:o.$to,i=n.depth;for(;n.node(i).isInline;){if(!i)return!1;i--}return n.node(i).isTextblock?(t&&t(e.tr.setSelection(H.create(e.doc,r<0?n.start(i):n.end(i)))),!0):!1}}const Qx=Ad(-1),Zx=Ad(1);function $x(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,s=n.blockRange(i),l=s&&La(s,r,e);return l?(o&&o(t.tr.wrap(s,l).scrollIntoView()),!0):!1}}function Dd(r,e=null){return function(t,o){let n=!1;for(let i=0;i<t.selection.ranges.length&&!n;i++){let{$from:{pos:s},$to:{pos:l}}=t.selection.ranges[i];t.doc.nodesBetween(s,l,(p,c)=>{if(n)return!1;if(!(!p.isTextblock||p.hasMarkup(r,e)))if(p.type==r)n=!0;else{let d=t.doc.resolve(c),u=d.index();n=d.parent.canReplaceWith(u,u+1,r)}})}if(!n)return!1;if(o){let i=t.tr;for(let s=0;s<t.selection.ranges.length;s++){let{$from:{pos:l},$to:{pos:p}}=t.selection.ranges[s];i.setBlockType(l,p,r,e)}o(i.scrollIntoView())}return!0}}function ws(...r){return function(e,t,o){for(let n=0;n<r.length;n++)if(r[n](e,t,o))return!0;return!1}}ws(hs,Ed,Cd),ws(hs,Bd,Md),ws(Td,Od,Vd,Jx),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function eg(r,e=null){return function(t,o){let{$from:n,$to:i}=t.selection,s=n.blockRange(i);if(!s)return!1;let l=o?t.tr:null;return tg(l,s,r,e)?(o&&o(l.scrollIntoView()),!0):!1}}function tg(r,e,t,o=null){let n=!1,i=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(t)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let p=s.resolve(e.start-2);i=new Ln(p,p,e.depth),e.endIndex<e.parent.childCount&&(e=new Ln(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),n=!0}let l=La(i,t,o,e);return l?(r&&rg(r,e,l,n,t),!0):!1}function rg(r,e,t,o,n){let i=M.empty;for(let d=t.length-1;d>=0;d--)i=M.from(t[d].type.create(t[d].attrs,i));r.step(new ge(e.start-(o?2:0),e.end,e.start,e.end,new A(i,0,0),t.length,!0));let s=0;for(let d=0;d<t.length;d++)t[d].type==n&&(s=d+1);let l=t.length-s,p=e.start+t.length-(o?2:0),c=e.parent;for(let d=e.startIndex,u=e.endIndex,b=!0;d<u;d++,b=!1)!b&&Ct(r.doc,p,l)&&(r.split(p,l),p+=2*l),p+=c.child(d).nodeSize;return r}function og(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,s=>s.childCount>0&&s.firstChild.type==r);return i?t?o.node(i.depth-1).type==r?ng(e,t,r,i):ig(e,t,i):!0:!1}}function ng(r,e,t,o){let n=r.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(n.step(new ge(i-1,s,i,s,new A(M.from(t.create(null,o.parent.copy())),1,0),1,!0)),o=new Ln(n.doc.resolve(o.$from.pos),n.doc.resolve(s),o.depth));const l=jr(o);if(l==null)return!1;n.lift(o,l);let p=n.doc.resolve(n.mapping.map(i,-1)-1);return qt(n.doc,p.pos)&&p.nodeBefore.type==p.nodeAfter.type&&n.join(p.pos),e(n.scrollIntoView()),!0}function ig(r,e,t){let o=r.tr,n=t.parent;for(let m=t.end,f=t.endIndex-1,h=t.startIndex;f>h;f--)m-=n.child(f).nodeSize,o.delete(m-1,m+1);let i=o.doc.resolve(t.start),s=i.nodeAfter;if(o.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let l=t.startIndex==0,p=t.endIndex==n.childCount,c=i.node(-1),d=i.index(-1);if(!c.canReplace(d+(l?0:1),d+1,s.content.append(p?M.empty:M.from(n))))return!1;let u=i.pos,b=u+s.nodeSize;return o.step(new ge(u-(l?1:0),b+(p?1:0),u+1,b-1,new A((l?M.empty:M.from(n.copy(M.empty))).append(p?M.empty:M.from(n.copy(M.empty))),l?0:1,p?0:1),l?0:1)),e(o.scrollIntoView()),!0}function ag(r){return function(e,t){let{$from:o,$to:n}=e.selection,i=o.blockRange(n,c=>c.childCount>0&&c.firstChild.type==r);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let l=i.parent,p=l.child(s-1);if(p.type!=r)return!1;if(t){let c=p.lastChild&&p.lastChild.type==l.type,d=M.from(c?r.create():null),u=new A(M.from(r.create(null,M.from(l.type.create(null,d)))),c?3:1,0),b=i.start,m=i.end;t(e.tr.step(new ge(b-(c?3:1),m,b,m,u,1,!0)).scrollIntoView())}return!0}}function ti(r){const{state:e,transaction:t}=r;let{selection:o}=t,{doc:n}=t,{storedMarks:i}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return o},get doc(){return n},get tr(){return o=t.selection,n=t.doc,i=t.storedMarks,t}}}class ri{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:o}=this,{view:n}=t,{tr:i}=o,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([l,p])=>[l,(...d)=>{const u=p(...d)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&n.dispatch(i),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:s}=n,l=[],p=!!e,c=e||i.tr,d=()=>(!p&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),l.every(b=>b===!0)),u={...Object.fromEntries(Object.entries(o).map(([b,m])=>[b,(...h)=>{const x=this.buildProps(c,t),y=m(...h)(x);return l.push(y),u}])),run:d};return u}createCan(e){const{rawCommands:t,state:o}=this,n=!1,i=e||o.tr,s=this.buildProps(i,n);return{...Object.fromEntries(Object.entries(t).map(([p,c])=>[p,(...d)=>c(...d)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,n)}}buildProps(e,t=!0){const{rawCommands:o,editor:n,state:i}=this,{view:s}=n,l={tr:e,editor:n,view:s,state:ti({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([p,c])=>[p,(...d)=>c(...d)(l)]))}};return l}}class sg{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const o=this.callbacks[e];return o&&o.forEach(n=>n.apply(this,t)),this}off(e,t){const o=this.callbacks[e];return o&&(t?this.callbacks[e]=o.filter(n=>n!==t):delete this.callbacks[e]),this}once(e,t){const o=(...n)=>{this.off(e,o),t.apply(this,n)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}}function I(r,e,t){return r.config[e]===void 0&&r.parent?I(r.parent,e,t):typeof r.config[e]=="function"?r.config[e].bind({...t,parent:r.parent?I(r.parent,e,t):null}):r.config[e]}function oi(r){const e=r.filter(n=>n.type==="extension"),t=r.filter(n=>n.type==="node"),o=r.filter(n=>n.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:o}}function Id(r){const e=[],{nodeExtensions:t,markExtensions:o}=oi(r),n=[...t,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return r.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage,extensions:n},p=I(s,"addGlobalAttributes",l);if(!p)return;p().forEach(d=>{d.types.forEach(u=>{Object.entries(d.attributes).forEach(([b,m])=>{e.push({type:u,name:b,attribute:{...i,...m}})})})})}),n.forEach(s=>{const l={name:s.name,options:s.options,storage:s.storage},p=I(s,"addAttributes",l);if(!p)return;const c=p();Object.entries(c).forEach(([d,u])=>{const b={...i,...u};typeof(b==null?void 0:b.default)=="function"&&(b.default=b.default()),b!=null&&b.isRequired&&(b==null?void 0:b.default)===void 0&&delete b.default,e.push({type:s.name,name:d,attribute:b})})}),e}function ye(r,e){if(typeof r=="string"){if(!e.nodes[r])throw Error(`There is no node type named '${r}'. Maybe you forgot to add the extension?`);return e.nodes[r]}return r}function Ne(...r){return r.filter(e=>!!e).reduce((e,t)=>{const o={...e};return Object.entries(t).forEach(([n,i])=>{if(!o[n]){o[n]=i;return}if(n==="class"){const l=i?String(i).split(" "):[],p=o[n]?o[n].split(" "):[],c=l.filter(d=>!p.includes(d));o[n]=[...p,...c].join(" ")}else if(n==="style"){const l=i?i.split(";").map(d=>d.trim()).filter(Boolean):[],p=o[n]?o[n].split(";").map(d=>d.trim()).filter(Boolean):[],c=new Map;p.forEach(d=>{const[u,b]=d.split(":").map(m=>m.trim());c.set(u,b)}),l.forEach(d=>{const[u,b]=d.split(":").map(m=>m.trim());c.set(u,b)}),o[n]=Array.from(c.entries()).map(([d,u])=>`${d}: ${u}`).join("; ")}else o[n]=i}),o},{})}function vs(r,e){return e.filter(t=>t.type===r.type.name).filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(r.attrs)||{}:{[t.name]:r.attrs[t.name]}).reduce((t,o)=>Ne(t,o),{})}function Ld(r){return typeof r=="function"}function K(r,e=void 0,...t){return Ld(r)?e?r.bind(e)(...t):r(...t):r}function lg(r={}){return Object.keys(r).length===0&&r.constructor===Object}function pg(r){return typeof r!="string"?r:r.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(r):r==="true"?!0:r==="false"?!1:r}function Rd(r,e){return"style"in r?r:{...r,getAttrs:t=>{const o=r.getAttrs?r.getAttrs(t):r.attrs;if(o===!1)return!1;const n=e.reduce((i,s)=>{const l=s.attribute.parseHTML?s.attribute.parseHTML(t):pg(t.getAttribute(s.name));return l==null?i:{...i,[s.name]:l}},{});return{...o,...n}}}}function zd(r){return Object.fromEntries(Object.entries(r).filter(([e,t])=>e==="attrs"&&lg(t)?!1:t!=null))}function cg(r,e){var t;const o=Id(r),{nodeExtensions:n,markExtensions:i}=oi(r),s=(t=n.find(c=>I(c,"topNode")))===null||t===void 0?void 0:t.name,l=Object.fromEntries(n.map(c=>{const d=o.filter(y=>y.type===c.name),u={name:c.name,options:c.options,storage:c.storage,editor:e},b=r.reduce((y,w)=>{const v=I(w,"extendNodeSchema",u);return{...y,...v?v(c):{}}},{}),m=zd({...b,content:K(I(c,"content",u)),marks:K(I(c,"marks",u)),group:K(I(c,"group",u)),inline:K(I(c,"inline",u)),atom:K(I(c,"atom",u)),selectable:K(I(c,"selectable",u)),draggable:K(I(c,"draggable",u)),code:K(I(c,"code",u)),whitespace:K(I(c,"whitespace",u)),linebreakReplacement:K(I(c,"linebreakReplacement",u)),defining:K(I(c,"defining",u)),isolating:K(I(c,"isolating",u)),attrs:Object.fromEntries(d.map(y=>{var w;return[y.name,{default:(w=y==null?void 0:y.attribute)===null||w===void 0?void 0:w.default}]}))}),f=K(I(c,"parseHTML",u));f&&(m.parseDOM=f.map(y=>Rd(y,d)));const h=I(c,"renderHTML",u);h&&(m.toDOM=y=>h({node:y,HTMLAttributes:vs(y,d)}));const x=I(c,"renderText",u);return x&&(m.toText=x),[c.name,m]})),p=Object.fromEntries(i.map(c=>{const d=o.filter(x=>x.type===c.name),u={name:c.name,options:c.options,storage:c.storage,editor:e},b=r.reduce((x,y)=>{const w=I(y,"extendMarkSchema",u);return{...x,...w?w(c):{}}},{}),m=zd({...b,inclusive:K(I(c,"inclusive",u)),excludes:K(I(c,"excludes",u)),group:K(I(c,"group",u)),spanning:K(I(c,"spanning",u)),code:K(I(c,"code",u)),attrs:Object.fromEntries(d.map(x=>{var y;return[x.name,{default:(y=x==null?void 0:x.attribute)===null||y===void 0?void 0:y.default}]}))}),f=K(I(c,"parseHTML",u));f&&(m.parseDOM=f.map(x=>Rd(x,d)));const h=I(c,"renderHTML",u);return h&&(m.toDOM=x=>h({mark:x,HTMLAttributes:vs(x,d)})),[c.name,m]}));return new Mp({topNode:s,nodes:l,marks:p})}function ks(r,e){return e.nodes[r]||e.marks[r]||null}function _d(r,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===r.name):e}function Es(r,e){const t=fr.fromSchema(e).serializeFragment(r),n=document.implementation.createHTMLDocument().createElement("div");return n.appendChild(t),n.innerHTML}const dg=(r,e=500)=>{let t="";const o=r.parentOffset;return r.parent.nodesBetween(Math.max(0,o-e),o,(n,i,s,l)=>{var p,c;const d=((c=(p=n.type.spec).toText)===null||c===void 0?void 0:c.call(p,{node:n,pos:i,parent:s,index:l}))||n.textContent||"%leaf%";t+=n.isAtom&&!n.isText?d:d.slice(0,Math.max(0,o-i))}),t};function Ss(r){return Object.prototype.toString.call(r)==="[object RegExp]"}class ni{constructor(e){this.find=e.find,this.handler=e.handler}}const ug=(r,e)=>{if(Ss(e))return e.exec(r);const t=e(r);if(!t)return null;const o=[t.text];return o.index=t.index,o.input=r,o.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(t.replaceWith)),o};function ii(r){var e;const{editor:t,from:o,to:n,text:i,rules:s,plugin:l}=r,{view:p}=t;if(p.composing)return!1;const c=p.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(b=>b.type.spec.code))return!1;let d=!1;const u=dg(c)+i;return s.forEach(b=>{if(d)return;const m=ug(u,b.find);if(!m)return;const f=p.state.tr,h=ti({state:p.state,transaction:f}),x={from:o-(m[0].length-i.length),to:n},{commands:y,chain:w,can:v}=new ri({editor:t,state:h});b.handler({state:h,range:x,match:m,commands:y,chain:w,can:v})===null||!f.steps.length||(f.setMeta(l,{transform:f,from:o,to:n,text:i}),p.dispatch(f),d=!0)}),d}function bg(r){const{editor:e,rules:t}=r,o=new me({state:{init(){return null},apply(n,i,s){const l=n.getMeta(o);if(l)return l;const p=n.getMeta("applyInputRules");return!!p&&setTimeout(()=>{let{text:d}=p;typeof d=="string"?d=d:d=Es(M.from(d),s.schema);const{from:u}=p,b=u+d.length;ii({editor:e,from:u,to:b,text:d,rules:t,plugin:o})}),n.selectionSet||n.docChanged?null:i}},props:{handleTextInput(n,i,s,l){return ii({editor:e,from:i,to:s,text:l,rules:t,plugin:o})},handleDOMEvents:{compositionend:n=>(setTimeout(()=>{const{$cursor:i}=n.state.selection;i&&ii({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:o})}),!1)},handleKeyDown(n,i){if(i.key!=="Enter")return!1;const{$cursor:s}=n.state.selection;return s?ii({editor:e,from:s.pos,to:s.pos,text:`
|
|
21
|
+
`,rules:t,plugin:o}):!1}},isInputRules:!0});return o}function mg(r){return Object.prototype.toString.call(r).slice(8,-1)}function ai(r){return mg(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function si(r,e){const t={...r};return ai(r)&&ai(e)&&Object.keys(e).forEach(o=>{ai(e[o])&&ai(r[o])?t[o]=si(r[o],e[o]):t[o]=e[o]}),t}class Ot{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=K(I(this,"addOptions",{name:this.name}))),this.storage=K(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ot(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>si(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Ot(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=K(I(t,"addOptions",{name:t.name})),t.storage=K(I(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:o}=e.state,n=e.state.selection.$from;if(n.pos===n.end()){const s=n.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const p=s.find(c=>(c==null?void 0:c.type.name)===t.name);return p&&o.removeStoredMark(p),o.insertText(" ",n.pos),e.view.dispatch(o),!0}return!1}}function fg(r){return typeof r=="number"}class hg{constructor(e){this.find=e.find,this.handler=e.handler}}const xg=(r,e,t)=>{if(Ss(e))return[...r.matchAll(e)];const o=e(r,t);return o?o.map(n=>{const i=[n.text];return i.index=n.index,i.input=r,i.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(n.replaceWith)),i}):[]};function gg(r){const{editor:e,state:t,from:o,to:n,rule:i,pasteEvent:s,dropEvent:l}=r,{commands:p,chain:c,can:d}=new ri({editor:e,state:t}),u=[];return t.doc.nodesBetween(o,n,(m,f)=>{if(!m.isTextblock||m.type.spec.code)return;const h=Math.max(o,f),x=Math.min(n,f+m.content.size),y=m.textBetween(h-f,x-f,void 0,"");xg(y,i.find,s).forEach(v=>{if(v.index===void 0)return;const g=h+v.index+1,S=g+v[0].length,k={from:t.tr.mapping.map(g),to:t.tr.mapping.map(S)},C=i.handler({state:t,range:k,match:v,commands:p,chain:c,can:d,pasteEvent:s,dropEvent:l});u.push(C)})}),u.every(m=>m!==null)}let li=null;const yg=r=>{var e;const t=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=t.clipboardData)===null||e===void 0||e.setData("text/html",r),t};function wg(r){const{editor:e,rules:t}=r;let o=null,n=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const p=({state:d,from:u,to:b,rule:m,pasteEvt:f})=>{const h=d.tr,x=ti({state:d,transaction:h});if(!(!gg({editor:e,state:x,from:Math.max(u-1,0),to:b.b-1,rule:m,pasteEvent:f,dropEvent:l})||!h.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,h}};return t.map(d=>new me({view(u){const b=f=>{var h;o=!((h=u.dom.parentElement)===null||h===void 0)&&h.contains(f.target)?u.dom.parentElement:null,o&&(li=e)},m=()=>{li&&(li=null)};return window.addEventListener("dragstart",b),window.addEventListener("dragend",m),{destroy(){window.removeEventListener("dragstart",b),window.removeEventListener("dragend",m)}}},props:{handleDOMEvents:{drop:(u,b)=>{if(i=o===u.dom.parentElement,l=b,!i){const m=li;m&&setTimeout(()=>{const f=m.state.selection;f&&m.commands.deleteRange({from:f.from,to:f.to})},10)}return!1},paste:(u,b)=>{var m;const f=(m=b.clipboardData)===null||m===void 0?void 0:m.getData("text/html");return s=b,n=!!(f!=null&&f.includes("data-pm-slice")),!1}}},appendTransaction:(u,b,m)=>{const f=u[0],h=f.getMeta("uiEvent")==="paste"&&!n,x=f.getMeta("uiEvent")==="drop"&&!i,y=f.getMeta("applyPasteRules"),w=!!y;if(!h&&!x&&!w)return;if(w){let{text:S}=y;typeof S=="string"?S=S:S=Es(M.from(S),m.schema);const{from:k}=y,C=k+S.length,O=yg(S);return p({rule:d,state:m,from:k,to:{b:C},pasteEvt:O})}const v=b.doc.content.findDiffStart(m.doc.content),g=b.doc.content.findDiffEnd(m.doc.content);if(!(!fg(v)||!g||v===g.b))return p({rule:d,state:m,from:v,to:g,pasteEvt:s})}}))}function vg(r){const e=r.filter((t,o)=>r.indexOf(t)!==o);return Array.from(new Set(e))}class $r{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=$r.resolve(e),this.schema=cg(this.extensions,t),this.setupExtensions()}static resolve(e){const t=$r.sort($r.flatten(e)),o=vg(t.map(n=>n.name));return o.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${o.map(n=>`'${n}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const o={name:t.name,options:t.options,storage:t.storage},n=I(t,"addExtensions",o);return n?[t,...this.flatten(n())]:t}).flat(10)}static sort(e){return e.sort((o,n)=>{const i=I(o,"priority")||100,s=I(n,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const o={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:ks(t.name,this.schema)},n=I(t,"addCommands",o);return n?{...e,...n()}:e},{})}get plugins(){const{editor:e}=this,t=$r.sort([...this.extensions].reverse()),o=[],n=[],i=t.map(s=>{const l={name:s.name,options:s.options,storage:s.storage,editor:e,type:ks(s.name,this.schema)},p=[],c=I(s,"addKeyboardShortcuts",l);let d={};if(s.type==="mark"&&I(s,"exitable",l)&&(d.ArrowRight=()=>Ot.handleExit({editor:e,mark:s})),c){const h=Object.fromEntries(Object.entries(c()).map(([x,y])=>[x,()=>y({editor:e})]));d={...d,...h}}const u=Fx(d);p.push(u);const b=I(s,"addInputRules",l);_d(s,e.options.enableInputRules)&&b&&o.push(...b());const m=I(s,"addPasteRules",l);_d(s,e.options.enablePasteRules)&&m&&n.push(...m());const f=I(s,"addProseMirrorPlugins",l);if(f){const h=f();p.push(...h)}return p}).flat();return[bg({editor:e,rules:o}),...wg({editor:e,rules:n}),...i]}get attributes(){return Id(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=oi(this.extensions);return Object.fromEntries(t.filter(o=>!!I(o,"addNodeView")).map(o=>{const n=this.attributes.filter(p=>p.type===o.name),i={name:o.name,options:o.options,storage:o.storage,editor:e,type:ye(o.name,this.schema)},s=I(o,"addNodeView",i);if(!s)return[];const l=(p,c,d,u,b)=>{const m=vs(p,n);return s()({node:p,view:c,getPos:d,decorations:u,innerDecorations:b,editor:e,extension:o,HTMLAttributes:m})};return[o.name,l]}))}setupExtensions(){this.extensions.forEach(e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const o={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:ks(e.name,this.schema)};e.type==="mark"&&(!((t=K(I(e,"keepOnSplit",o)))!==null&&t!==void 0)||t)&&this.splittableMarks.push(e.name);const n=I(e,"onBeforeCreate",o),i=I(e,"onCreate",o),s=I(e,"onUpdate",o),l=I(e,"onSelectionUpdate",o),p=I(e,"onTransaction",o),c=I(e,"onFocus",o),d=I(e,"onBlur",o),u=I(e,"onDestroy",o);n&&this.editor.on("beforeCreate",n),i&&this.editor.on("create",i),s&&this.editor.on("update",s),l&&this.editor.on("selectionUpdate",l),p&&this.editor.on("transaction",p),c&&this.editor.on("focus",c),d&&this.editor.on("blur",d),u&&this.editor.on("destroy",u)})}}class Be{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=K(I(this,"addOptions",{name:this.name}))),this.storage=K(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Be(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>si(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Be({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=K(I(t,"addOptions",{name:t.name})),t.storage=K(I(t,"addStorage",{name:t.name,options:t.options})),t}}function Fd(r,e,t){const{from:o,to:n}=e,{blockSeparator:i=`
|
|
22
|
+
|
|
23
|
+
`,textSerializers:s={}}=t||{};let l="";return r.nodesBetween(o,n,(p,c,d,u)=>{var b;p.isBlock&&c>o&&(l+=i);const m=s==null?void 0:s[p.type.name];if(m)return d&&(l+=m({node:p,pos:c,parent:d,index:u,range:e})),!1;p.isText&&(l+=(b=p==null?void 0:p.text)===null||b===void 0?void 0:b.slice(Math.max(o,c)-c,n-c))}),l}function Cs(r){return Object.fromEntries(Object.entries(r.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const kg=Be.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new me({key:new Ae("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:r}=this,{state:e,schema:t}=r,{doc:o,selection:n}=e,{ranges:i}=n,s=Math.min(...i.map(d=>d.$from.pos)),l=Math.max(...i.map(d=>d.$to.pos)),p=Cs(t);return Fd(o,{from:s,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:p})}}})]}}),Eg=()=>({editor:r,view:e})=>(requestAnimationFrame(()=>{var t;r.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Sg=(r=!1)=>({commands:e})=>e.setContent("",r),Cg=()=>({state:r,tr:e,dispatch:t})=>{const{selection:o}=e,{ranges:n}=o;return t&&n.forEach(({$from:i,$to:s})=>{r.doc.nodesBetween(i.pos,s.pos,(l,p)=>{if(l.type.isText)return;const{doc:c,mapping:d}=e,u=c.resolve(d.map(p)),b=c.resolve(d.map(p+l.nodeSize)),m=u.blockRange(b);if(!m)return;const f=jr(m);if(l.type.isTextblock){const{defaultType:h}=u.parent.contentMatchAt(u.index());e.setNodeMarkup(m.start,h)}(f||f===0)&&e.lift(m,f)})}),!0},Ng=r=>e=>r(e),Bg=()=>({state:r,dispatch:e})=>Od(r,e),Mg=(r,e)=>({editor:t,tr:o})=>{const{state:n}=t,i=n.doc.slice(r.from,r.to);o.deleteRange(r.from,r.to);const s=o.mapping.map(e);return o.insert(s,i.content),o.setSelection(new H(o.doc.resolve(s-1))),!0},Tg=()=>({tr:r,dispatch:e})=>{const{selection:t}=r,o=t.$anchor.node();if(o.content.size>0)return!1;const n=r.selection.$anchor;for(let i=n.depth;i>0;i-=1)if(n.node(i).type===o.type){if(e){const l=n.before(i),p=n.after(i);r.delete(l,p).scrollIntoView()}return!0}return!1},Og=r=>({tr:e,state:t,dispatch:o})=>{const n=ye(r,t.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===n){if(o){const p=i.before(s),c=i.after(s);e.delete(p,c).scrollIntoView()}return!0}return!1},Vg=r=>({tr:e,dispatch:t})=>{const{from:o,to:n}=r;return t&&e.delete(o,n),!0},Pg=()=>({state:r,dispatch:e})=>hs(r,e),Ag=()=>({commands:r})=>r.keyboardShortcut("Enter"),Dg=()=>({state:r,dispatch:e})=>Kx(r,e);function pi(r,e,t={strict:!0}){const o=Object.keys(e);return o.length?o.every(n=>t.strict?e[n]===r[n]:Ss(e[n])?e[n].test(r[n]):e[n]===r[n]):!0}function jd(r,e,t={}){return r.find(o=>o.type===e&&pi(Object.fromEntries(Object.keys(t).map(n=>[n,o.attrs[n]])),t))}function Hd(r,e,t={}){return!!jd(r,e,t)}function Ns(r,e,t){var o;if(!r||!e)return;let n=r.parent.childAfter(r.parentOffset);if((!n.node||!n.node.marks.some(d=>d.type===e))&&(n=r.parent.childBefore(r.parentOffset)),!n.node||!n.node.marks.some(d=>d.type===e)||(t=t||((o=n.node.marks[0])===null||o===void 0?void 0:o.attrs),!jd([...n.node.marks],e,t)))return;let s=n.index,l=r.start()+n.offset,p=s+1,c=l+n.node.nodeSize;for(;s>0&&Hd([...r.parent.child(s-1).marks],e,t);)s-=1,l-=r.parent.child(s).nodeSize;for(;p<r.parent.childCount&&Hd([...r.parent.child(p).marks],e,t);)c+=r.parent.child(p).nodeSize,p+=1;return{from:l,to:c}}function tr(r,e){if(typeof r=="string"){if(!e.marks[r])throw Error(`There is no mark type named '${r}'. Maybe you forgot to add the extension?`);return e.marks[r]}return r}const Ig=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const i=tr(r,o.schema),{doc:s,selection:l}=t,{$from:p,from:c,to:d}=l;if(n){const u=Ns(p,i,e);if(u&&u.from<=c&&u.to>=d){const b=H.create(s,u.from,u.to);t.setSelection(b)}}return!0},Lg=r=>e=>{const t=typeof r=="function"?r(e):r;for(let o=0;o<t.length;o+=1)if(t[o](e))return!0;return!1};function Bs(r){return r instanceof H}function Vt(r=0,e=0,t=0){return Math.min(Math.max(r,e),t)}function Wd(r,e=null){if(!e)return null;const t=U.atStart(r),o=U.atEnd(r);if(e==="start"||e===!0)return t;if(e==="end")return o;const n=t.from,i=o.to;return e==="all"?H.create(r,Vt(0,n,i),Vt(r.content.size,n,i)):H.create(r,Vt(e,n,i),Vt(e,n,i))}function Rg(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Ms(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const zg=(r=null,e={})=>({editor:t,view:o,tr:n,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(Ms()||Rg())&&o.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(o.hasFocus()&&r===null||r===!1)return!0;if(i&&r===null&&!Bs(t.state.selection))return s(),!0;const l=Wd(n.doc,r)||t.state.selection,p=t.state.selection.eq(l);return i&&(p||n.setSelection(l),p&&n.storedMarks&&n.setStoredMarks(n.storedMarks),s()),!0},_g=(r,e)=>t=>r.every((o,n)=>e(o,{...t,index:n})),Fg=(r,e)=>({tr:t,commands:o})=>o.insertContentAt({from:t.selection.from,to:t.selection.to},r,e),Ud=r=>{const e=r.childNodes;for(let t=e.length-1;t>=0;t-=1){const o=e[t];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?r.removeChild(o):o.nodeType===1&&Ud(o)}return r};function ci(r){const e=`<body>${r}</body>`,t=new window.DOMParser().parseFromString(e,"text/html").body;return Ud(t)}function jo(r,e,t){if(r instanceof Ht||r instanceof M)return r;t={slice:!0,parseOptions:{},...t};const o=typeof r=="object"&&r!==null,n=typeof r=="string";if(o)try{if(Array.isArray(r)&&r.length>0)return M.fromArray(r.map(l=>e.nodeFromJSON(l)));const s=e.nodeFromJSON(r);return t.errorOnInvalidContent&&s.check(),s}catch(i){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",r,"Error:",i),jo("",e,t)}if(n){if(t.errorOnInvalidContent){let s=!1,l="";const p=new Mp({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,l=typeof c=="string"?c:c.outerHTML,null)}]}})});if(t.slice?So.fromSchema(p).parseSlice(ci(r),t.parseOptions):So.fromSchema(p).parse(ci(r),t.parseOptions),t.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const i=So.fromSchema(e);return t.slice?i.parseSlice(ci(r),t.parseOptions).content:i.parse(ci(r),t.parseOptions)}return jo("",e,t)}function jg(r,e,t){const o=r.steps.length-1;if(o<e)return;const n=r.steps[o];if(!(n instanceof xe||n instanceof ge))return;const i=r.mapping.maps[o];let s=0;i.forEach((l,p,c,d)=>{s===0&&(s=d)}),r.setSelection(U.near(r.doc.resolve(s),t))}const Hg=r=>!("type"in r),Wg=(r,e,t)=>({tr:o,dispatch:n,editor:i})=>{var s;if(n){t={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let l;const p=x=>{i.emit("contentError",{editor:i,error:x,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...t.parseOptions};if(!t.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{jo(e,i.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(x){p(x)}try{l=jo(e,i.schema,{parseOptions:c,errorOnInvalidContent:(s=t.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(x){return p(x),!1}let{from:d,to:u}=typeof r=="number"?{from:r,to:r}:{from:r.from,to:r.to},b=!0,m=!0;if((Hg(l)?l:[l]).forEach(x=>{x.check(),b=b?x.isText&&x.marks.length===0:!1,m=m?x.isBlock:!1}),d===u&&m){const{parent:x}=o.doc.resolve(d);x.isTextblock&&!x.type.spec.code&&!x.childCount&&(d-=1,u+=1)}let h;if(b){if(Array.isArray(e))h=e.map(x=>x.text||"").join("");else if(e instanceof M){let x="";e.forEach(y=>{y.text&&(x+=y.text)}),h=x}else typeof e=="object"&&e&&e.text?h=e.text:h=e;o.insertText(h,d,u)}else h=l,o.replaceWith(d,u,h);t.updateSelection&&jg(o,o.steps.length-1,-1),t.applyInputRules&&o.setMeta("applyInputRules",{from:d,text:h}),t.applyPasteRules&&o.setMeta("applyPasteRules",{from:d,text:h})}return!0},Ug=()=>({state:r,dispatch:e})=>Wx(r,e),qg=()=>({state:r,dispatch:e})=>Ux(r,e),Kg=()=>({state:r,dispatch:e})=>Ed(r,e),Gg=()=>({state:r,dispatch:e})=>Bd(r,e),Jg=()=>({state:r,dispatch:e,tr:t})=>{try{const o=Hn(r.doc,r.selection.$from.pos,-1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Yg=()=>({state:r,dispatch:e,tr:t})=>{try{const o=Hn(r.doc,r.selection.$from.pos,1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Xg=()=>({state:r,dispatch:e})=>jx(r,e),Qg=()=>({state:r,dispatch:e})=>Hx(r,e);function qd(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Zg(r){const e=r.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let o,n,i,s;for(let l=0;l<e.length-1;l+=1){const p=e[l];if(/^(cmd|meta|m)$/i.test(p))s=!0;else if(/^a(lt)?$/i.test(p))o=!0;else if(/^(c|ctrl|control)$/i.test(p))n=!0;else if(/^s(hift)?$/i.test(p))i=!0;else if(/^mod$/i.test(p))Ms()||qd()?s=!0:n=!0;else throw new Error(`Unrecognized modifier name: ${p}`)}return o&&(t=`Alt-${t}`),n&&(t=`Ctrl-${t}`),s&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const $g=r=>({editor:e,view:t,tr:o,dispatch:n})=>{const i=Zg(r).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),p=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,l))});return p==null||p.steps.forEach(c=>{const d=c.map(o.mapping);d&&n&&o.maybeStep(d)}),!0};function Ho(r,e,t={}){const{from:o,to:n,empty:i}=r.selection,s=e?ye(e,r.schema):null,l=[];r.doc.nodesBetween(o,n,(u,b)=>{if(u.isText)return;const m=Math.max(o,b),f=Math.min(n,b+u.nodeSize);l.push({node:u,from:m,to:f})});const p=n-o,c=l.filter(u=>s?s.name===u.node.type.name:!0).filter(u=>pi(u.node.attrs,t,{strict:!1}));return i?!!c.length:c.reduce((u,b)=>u+b.to-b.from,0)>=p}const e0=(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return Ho(t,n,e)?qx(t,o):!1},t0=()=>({state:r,dispatch:e})=>Vd(r,e),r0=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return og(o)(e,t)},o0=()=>({state:r,dispatch:e})=>Td(r,e);function di(r,e){return e.nodes[r]?"node":e.marks[r]?"mark":null}function Kd(r,e){const t=typeof e=="string"?[e]:e;return Object.keys(r).reduce((o,n)=>(t.includes(n)||(o[n]=r[n]),o),{})}const n0=(r,e)=>({tr:t,state:o,dispatch:n})=>{let i=null,s=null;const l=di(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(s=tr(r,o.schema)),n&&t.selection.ranges.forEach(p=>{o.doc.nodesBetween(p.$from.pos,p.$to.pos,(c,d)=>{i&&i===c.type&&t.setNodeMarkup(d,void 0,Kd(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(u=>{s===u.type&&t.addMark(d,d+c.nodeSize,s.create(Kd(u.attrs,e)))})})}),!0):!1},i0=()=>({tr:r,dispatch:e})=>(e&&r.scrollIntoView(),!0),a0=()=>({tr:r,dispatch:e})=>{if(e){const t=new Ue(r.doc);r.setSelection(t)}return!0},s0=()=>({state:r,dispatch:e})=>Cd(r,e),l0=()=>({state:r,dispatch:e})=>Md(r,e),p0=()=>({state:r,dispatch:e})=>Yx(r,e),c0=()=>({state:r,dispatch:e})=>Zx(r,e),d0=()=>({state:r,dispatch:e})=>Qx(r,e);function Ts(r,e,t={},o={}){return jo(r,e,{slice:!1,parseOptions:t,errorOnInvalidContent:o.errorOnInvalidContent})}const u0=(r,e=!1,t={},o={})=>({editor:n,tr:i,dispatch:s,commands:l})=>{var p,c;const{doc:d}=i;if(t.preserveWhitespace!=="full"){const u=Ts(r,n.schema,t,{errorOnInvalidContent:(p=o.errorOnInvalidContent)!==null&&p!==void 0?p:n.options.enableContentCheck});return s&&i.replaceWith(0,d.content.size,u).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),l.insertContentAt({from:0,to:d.content.size},r,{parseOptions:t,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:n.options.enableContentCheck})};function Gd(r,e){const t=tr(e,r.schema),{from:o,to:n,empty:i}=r.selection,s=[];i?(r.storedMarks&&s.push(...r.storedMarks),s.push(...r.selection.$head.marks())):r.doc.nodesBetween(o,n,p=>{s.push(...p.marks)});const l=s.find(p=>p.type.name===t.name);return l?{...l.attrs}:{}}function b0(r,e){const t=new $p(r);return e.forEach(o=>{o.steps.forEach(n=>{t.step(n)})}),t}function m0(r){for(let e=0;e<r.edgeCount;e+=1){const{type:t}=r.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function f0(r,e,t){const o=[];return r.nodesBetween(e.from,e.to,(n,i)=>{t(n)&&o.push({node:n,pos:i})}),o}function h0(r,e){for(let t=r.depth;t>0;t-=1){const o=r.node(t);if(e(o))return{pos:t>0?r.before(t):0,start:r.start(t),depth:t,node:o}}}function Os(r){return e=>h0(e.$from,r)}function Jd(r,e){const t={from:0,to:r.content.size};return Fd(r,t,e)}function x0(r,e){const t=ye(e,r.schema),{from:o,to:n}=r.selection,i=[];r.doc.nodesBetween(o,n,l=>{i.push(l)});const s=i.reverse().find(l=>l.type.name===t.name);return s?{...s.attrs}:{}}function Yd(r,e){const t=di(typeof e=="string"?e:e.name,r.schema);return t==="node"?x0(r,e):t==="mark"?Gd(r,e):{}}function g0(r,e=JSON.stringify){const t={};return r.filter(o=>{const n=e(o);return Object.prototype.hasOwnProperty.call(t,n)?!1:t[n]=!0})}function y0(r){const e=g0(r);return e.length===1?e:e.filter((t,o)=>!e.filter((i,s)=>s!==o).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function w0(r){const{mapping:e,steps:t}=r,o=[];return e.maps.forEach((n,i)=>{const s=[];if(n.ranges.length)n.forEach((l,p)=>{s.push({from:l,to:p})});else{const{from:l,to:p}=t[i];if(l===void 0||p===void 0)return;s.push({from:l,to:p})}s.forEach(({from:l,to:p})=>{const c=e.slice(i).map(l,-1),d=e.slice(i).map(p),u=e.invert().map(c,-1),b=e.invert().map(d);o.push({oldRange:{from:u,to:b},newRange:{from:c,to:d}})})}),y0(o)}function Vs(r,e,t){const o=[];return r===e?t.resolve(r).marks().forEach(n=>{const i=t.resolve(r),s=Ns(i,n.type);s&&o.push({mark:n,...s})}):t.nodesBetween(r,e,(n,i)=>{!n||(n==null?void 0:n.nodeSize)===void 0||o.push(...n.marks.map(s=>({from:i,to:i+n.nodeSize,mark:s})))}),o}function ui(r,e,t){return Object.fromEntries(Object.entries(t).filter(([o])=>{const n=r.find(i=>i.type===e&&i.name===o);return n?n.attribute.keepOnSplit:!1}))}function Ps(r,e,t={}){const{empty:o,ranges:n}=r.selection,i=e?tr(e,r.schema):null;if(o)return!!(r.storedMarks||r.selection.$from.marks()).filter(u=>i?i.name===u.type.name:!0).find(u=>pi(u.attrs,t,{strict:!1}));let s=0;const l=[];if(n.forEach(({$from:u,$to:b})=>{const m=u.pos,f=b.pos;r.doc.nodesBetween(m,f,(h,x)=>{if(!h.isText&&!h.marks.length)return;const y=Math.max(m,x),w=Math.min(f,x+h.nodeSize),v=w-y;s+=v,l.push(...h.marks.map(g=>({mark:g,from:y,to:w})))})}),s===0)return!1;const p=l.filter(u=>i?i.name===u.mark.type.name:!0).filter(u=>pi(u.mark.attrs,t,{strict:!1})).reduce((u,b)=>u+b.to-b.from,0),c=l.filter(u=>i?u.mark.type!==i&&u.mark.type.excludes(i):!0).reduce((u,b)=>u+b.to-b.from,0);return(p>0?p+c:p)>=s}function v0(r,e,t={}){if(!e)return Ho(r,null,t)||Ps(r,null,t);const o=di(e,r.schema);return o==="node"?Ho(r,e,t):o==="mark"?Ps(r,e,t):!1}function Xd(r,e){const{nodeExtensions:t}=oi(e),o=t.find(s=>s.name===r);if(!o)return!1;const n={name:o.name,options:o.options,storage:o.storage},i=K(I(o,"group",n));return typeof i!="string"?!1:i.split(" ").includes("list")}function As(r,{checkChildren:e=!0,ignoreWhitespace:t=!1}={}){var o;if(t){if(r.type.name==="hardBreak")return!0;if(r.isText)return/^\s*$/m.test((o=r.text)!==null&&o!==void 0?o:"")}if(r.isText)return!r.text;if(r.isAtom||r.isLeaf)return!1;if(r.content.childCount===0)return!0;if(e){let n=!0;return r.content.forEach(i=>{n!==!1&&(As(i,{ignoreWhitespace:t,checkChildren:e})||(n=!1))}),n}return!1}function Qd(r){return r instanceof R}function Zd(r,e,t){const n=r.state.doc.content.size,i=Vt(e,0,n),s=Vt(t,0,n),l=r.coordsAtPos(i),p=r.coordsAtPos(s,-1),c=Math.min(l.top,p.top),d=Math.max(l.bottom,p.bottom),u=Math.min(l.left,p.left),b=Math.max(l.right,p.right),m=b-u,f=d-c,y={top:c,bottom:d,left:u,right:b,width:m,height:f,x:u,y:c};return{...y,toJSON:()=>y}}function k0(r,e,t){var o;const{selection:n}=e;let i=null;if(Bs(n)&&(i=n.$cursor),i){const l=(o=r.storedMarks)!==null&&o!==void 0?o:i.marks();return!!t.isInSet(l)||!l.some(p=>p.type.excludes(t))}const{ranges:s}=n;return s.some(({$from:l,$to:p})=>{let c=l.depth===0?r.doc.inlineContent&&r.doc.type.allowsMarkType(t):!1;return r.doc.nodesBetween(l.pos,p.pos,(d,u,b)=>{if(c)return!1;if(d.isInline){const m=!b||b.type.allowsMarkType(t),f=!!t.isInSet(d.marks)||!d.marks.some(h=>h.type.excludes(t));c=m&&f}return!c}),c})}const E0=(r,e={})=>({tr:t,state:o,dispatch:n})=>{const{selection:i}=t,{empty:s,ranges:l}=i,p=tr(r,o.schema);if(n)if(s){const c=Gd(o,p);t.addStoredMark(p.create({...c,...e}))}else l.forEach(c=>{const d=c.$from.pos,u=c.$to.pos;o.doc.nodesBetween(d,u,(b,m)=>{const f=Math.max(m,d),h=Math.min(m+b.nodeSize,u);b.marks.find(y=>y.type===p)?b.marks.forEach(y=>{p===y.type&&t.addMark(f,h,p.create({...y.attrs,...e}))}):t.addMark(f,h,p.create(e))})});return k0(o,t,p)},S0=(r,e)=>({tr:t})=>(t.setMeta(r,e),!0),C0=(r,e={})=>({state:t,dispatch:o,chain:n})=>{const i=ye(r,t.schema);let s;return t.selection.$anchor.sameParent(t.selection.$head)&&(s=t.selection.$anchor.parent.attrs),i.isTextblock?n().command(({commands:l})=>Dd(i,{...s,...e})(t)?!0:l.clearNodes()).command(({state:l})=>Dd(i,{...s,...e})(l,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},N0=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,n=Vt(r,0,o.content.size),i=R.create(o,n);e.setSelection(i)}return!0},B0=r=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,{from:n,to:i}=typeof r=="number"?{from:r,to:r}:r,s=H.atStart(o).from,l=H.atEnd(o).to,p=Vt(n,s,l),c=Vt(i,s,l),d=H.create(o,p,c);e.setSelection(d)}return!0},M0=r=>({state:e,dispatch:t})=>{const o=ye(r,e.schema);return ag(o)(e,t)};function $d(r,e){const t=r.storedMarks||r.selection.$to.parentOffset&&r.selection.$from.marks();if(t){const o=t.filter(n=>e==null?void 0:e.includes(n.type.name));r.tr.ensureMarks(o)}}const T0=({keepMarks:r=!0}={})=>({tr:e,state:t,dispatch:o,editor:n})=>{const{selection:i,doc:s}=e,{$from:l,$to:p}=i,c=n.extensionManager.attributes,d=ui(c,l.node().type.name,l.node().attrs);if(i instanceof R&&i.node.isBlock)return!l.parentOffset||!Ct(s,l.pos)?!1:(o&&(r&&$d(t,n.extensionManager.splittableMarks),e.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const u=p.parentOffset===p.parent.content.size,b=l.depth===0?void 0:m0(l.node(-1).contentMatchAt(l.indexAfter(-1)));let m=u&&b?[{type:b,attrs:d}]:void 0,f=Ct(e.doc,e.mapping.map(l.pos),1,m);if(!m&&!f&&Ct(e.doc,e.mapping.map(l.pos),1,b?[{type:b}]:void 0)&&(f=!0,m=b?[{type:b,attrs:d}]:void 0),o){if(f&&(i instanceof H&&e.deleteSelection(),e.split(e.mapping.map(l.pos),1,m),b&&!u&&!l.parentOffset&&l.parent.type!==b)){const h=e.mapping.map(l.before()),x=e.doc.resolve(h);l.node(-1).canReplaceWith(x.index(),x.index()+1,b)&&e.setNodeMarkup(e.mapping.map(l.before()),b)}r&&$d(t,n.extensionManager.splittableMarks),e.scrollIntoView()}return f},O0=(r,e={})=>({tr:t,state:o,dispatch:n,editor:i})=>{var s;const l=ye(r,o.schema),{$from:p,$to:c}=o.selection,d=o.selection.node;if(d&&d.isBlock||p.depth<2||!p.sameParent(c))return!1;const u=p.node(-1);if(u.type!==l)return!1;const b=i.extensionManager.attributes;if(p.parent.content.size===0&&p.node(-1).childCount===p.indexAfter(-1)){if(p.depth===2||p.node(-3).type!==l||p.index(-2)!==p.node(-2).childCount-1)return!1;if(n){let y=M.empty;const w=p.index(-1)?1:p.index(-2)?2:3;for(let O=p.depth-w;O>=p.depth-3;O-=1)y=M.from(p.node(O).copy(y));const v=p.indexAfter(-1)<p.node(-2).childCount?1:p.indexAfter(-2)<p.node(-3).childCount?2:3,g={...ui(b,p.node().type.name,p.node().attrs),...e},S=((s=l.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(g))||void 0;y=y.append(M.from(l.createAndFill(null,S)||void 0));const k=p.before(p.depth-(w-1));t.replace(k,p.after(-v),new A(y,4-w,0));let C=-1;t.doc.nodesBetween(k,t.doc.content.size,(O,D)=>{if(C>-1)return!1;O.isTextblock&&O.content.size===0&&(C=D+1)}),C>-1&&t.setSelection(H.near(t.doc.resolve(C))),t.scrollIntoView()}return!0}const m=c.pos===p.end()?u.contentMatchAt(0).defaultType:null,f={...ui(b,u.type.name,u.attrs),...e},h={...ui(b,p.node().type.name,p.node().attrs),...e};t.delete(p.pos,c.pos);const x=m?[{type:l,attrs:f},{type:m,attrs:h}]:[{type:l,attrs:f}];if(!Ct(t.doc,p.pos,2))return!1;if(n){const{selection:y,storedMarks:w}=o,{splittableMarks:v}=i.extensionManager,g=w||y.$to.parentOffset&&y.$from.marks();if(t.split(p.pos,2,x).scrollIntoView(),!g||!n)return!0;const S=g.filter(k=>v.includes(k.type.name));t.ensureMarks(S)}return!0},Ds=(r,e)=>{const t=Os(s=>s.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&qt(r.doc,t.pos)&&r.join(t.pos),!0},Is=(r,e)=>{const t=Os(s=>s.type===e)(r.selection);if(!t)return!0;const o=r.doc.resolve(t.start).after(t.depth);if(o===void 0)return!0;const n=r.doc.nodeAt(o);return t.node.type===(n==null?void 0:n.type)&&qt(r.doc,o)&&r.join(o),!0};var V0=Object.freeze({__proto__:null,blur:Eg,clearContent:Sg,clearNodes:Cg,command:Ng,createParagraphNear:Bg,cut:Mg,deleteCurrentNode:Tg,deleteNode:Og,deleteRange:Vg,deleteSelection:Pg,enter:Ag,exitCode:Dg,extendMarkRange:Ig,first:Lg,focus:zg,forEach:_g,insertContent:Fg,insertContentAt:Wg,joinBackward:Kg,joinDown:qg,joinForward:Gg,joinItemBackward:Jg,joinItemForward:Yg,joinTextblockBackward:Xg,joinTextblockForward:Qg,joinUp:Ug,keyboardShortcut:$g,lift:e0,liftEmptyBlock:t0,liftListItem:r0,newlineInCode:o0,resetAttributes:n0,scrollIntoView:i0,selectAll:a0,selectNodeBackward:s0,selectNodeForward:l0,selectParentNode:p0,selectTextblockEnd:c0,selectTextblockStart:d0,setContent:u0,setMark:E0,setMeta:S0,setNode:C0,setNodeSelection:N0,setTextSelection:B0,sinkListItem:M0,splitBlock:T0,splitListItem:O0,toggleList:(r,e,t,o={})=>({editor:n,tr:i,state:s,dispatch:l,chain:p,commands:c,can:d})=>{const{extensions:u,splittableMarks:b}=n.extensionManager,m=ye(r,s.schema),f=ye(e,s.schema),{selection:h,storedMarks:x}=s,{$from:y,$to:w}=h,v=y.blockRange(w),g=x||h.$to.parentOffset&&h.$from.marks();if(!v)return!1;const S=Os(k=>Xd(k.type.name,u))(h);if(v.depth>=1&&S&&v.depth-S.depth<=1){if(S.node.type===m)return c.liftListItem(f);if(Xd(S.node.type.name,u)&&m.validContent(S.node.content)&&l)return p().command(()=>(i.setNodeMarkup(S.pos,m),!0)).command(()=>Ds(i,m)).command(()=>Is(i,m)).run()}return!t||!g||!l?p().command(()=>d().wrapInList(m,o)?!0:c.clearNodes()).wrapInList(m,o).command(()=>Ds(i,m)).command(()=>Is(i,m)).run():p().command(()=>{const k=d().wrapInList(m,o),C=g.filter(O=>b.includes(O.type.name));return i.ensureMarks(C),k?!0:c.clearNodes()}).wrapInList(m,o).command(()=>Ds(i,m)).command(()=>Is(i,m)).run()},toggleMark:(r,e={},t={})=>({state:o,commands:n})=>{const{extendEmptyMarkRange:i=!1}=t,s=tr(r,o.schema);return Ps(o,s,e)?n.unsetMark(s,{extendEmptyMarkRange:i}):n.setMark(s,e)},toggleNode:(r,e,t={})=>({state:o,commands:n})=>{const i=ye(r,o.schema),s=ye(e,o.schema),l=Ho(o,i,t);let p;return o.selection.$anchor.sameParent(o.selection.$head)&&(p=o.selection.$anchor.parent.attrs),l?n.setNode(s,p):n.setNode(i,{...p,...t})},toggleWrap:(r,e={})=>({state:t,commands:o})=>{const n=ye(r,t.schema);return Ho(t,n,e)?o.lift(n):o.wrapIn(n,e)},undoInputRule:()=>({state:r,dispatch:e})=>{const t=r.plugins;for(let o=0;o<t.length;o+=1){const n=t[o];let i;if(n.spec.isInputRules&&(i=n.getState(r))){if(e){const s=r.tr,l=i.transform;for(let p=l.steps.length-1;p>=0;p-=1)s.step(l.steps[p].invert(l.docs[p]));if(i.text){const p=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,r.schema.text(i.text,p))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:r,dispatch:e})=>{const{selection:t}=r,{empty:o,ranges:n}=t;return o||e&&n.forEach(i=>{r.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(r,e={})=>({tr:t,state:o,dispatch:n})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:l}=t,p=tr(r,o.schema),{$from:c,empty:d,ranges:u}=l;if(!n)return!0;if(d&&s){let{from:b,to:m}=l;const f=(i=c.marks().find(x=>x.type===p))===null||i===void 0?void 0:i.attrs,h=Ns(c,p,f);h&&(b=h.from,m=h.to),t.removeMark(b,m,p)}else u.forEach(b=>{t.removeMark(b.$from.pos,b.$to.pos,p)});return t.removeStoredMark(p),!0},updateAttributes:(r,e={})=>({tr:t,state:o,dispatch:n})=>{let i=null,s=null;const l=di(typeof r=="string"?r:r.name,o.schema);return l?(l==="node"&&(i=ye(r,o.schema)),l==="mark"&&(s=tr(r,o.schema)),n&&t.selection.ranges.forEach(p=>{const c=p.$from.pos,d=p.$to.pos;let u,b,m,f;t.selection.empty?o.doc.nodesBetween(c,d,(h,x)=>{i&&i===h.type&&(m=Math.max(x,c),f=Math.min(x+h.nodeSize,d),u=x,b=h)}):o.doc.nodesBetween(c,d,(h,x)=>{x<c&&i&&i===h.type&&(m=Math.max(x,c),f=Math.min(x+h.nodeSize,d),u=x,b=h),x>=c&&x<=d&&(i&&i===h.type&&t.setNodeMarkup(x,void 0,{...h.attrs,...e}),s&&h.marks.length&&h.marks.forEach(y=>{if(s===y.type){const w=Math.max(x,c),v=Math.min(x+h.nodeSize,d);t.addMark(w,v,s.create({...y.attrs,...e}))}}))}),b&&(u!==void 0&&t.setNodeMarkup(u,void 0,{...b.attrs,...e}),s&&b.marks.length&&b.marks.forEach(h=>{s===h.type&&t.addMark(m,f,s.create({...h.attrs,...e}))}))}),!0):!1},wrapIn:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return $x(n,e)(t,o)},wrapInList:(r,e={})=>({state:t,dispatch:o})=>{const n=ye(r,t.schema);return eg(n,e)(t,o)}});const P0=Be.create({name:"commands",addCommands(){return{...V0}}}),A0=Be.create({name:"drop",addProseMirrorPlugins(){return[new me({key:new Ae("tiptapDrop"),props:{handleDrop:(r,e,t,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:t,moved:o})}}})]}}),D0=Be.create({name:"editable",addProseMirrorPlugins(){return[new me({key:new Ae("editable"),props:{editable:()=>this.editor.options.editable}})]}}),I0=new Ae("focusEvents"),L0=Be.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:r}=this;return[new me({key:I0,props:{handleDOMEvents:{focus:(e,t)=>{r.isFocused=!0;const o=r.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,t)=>{r.isFocused=!1;const o=r.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),R0=Be.create({name:"keymap",addKeyboardShortcuts(){const r=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:l})=>{const{selection:p,doc:c}=l,{empty:d,$anchor:u}=p,{pos:b,parent:m}=u,f=u.parent.isTextblock&&b>0?l.doc.resolve(b-1):u,h=f.parent.type.spec.isolating,x=u.pos-u.parentOffset,y=h&&f.parent.childCount===1?x===u.pos:U.atStart(c).from===b;return!d||!m.type.isTextblock||m.textContent.length||!y||y&&u.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:r,"Mod-Backspace":r,"Shift-Backspace":r,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},n={...o},i={...o,"Ctrl-h":r,"Alt-Backspace":r,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Ms()||qd()?i:n},addProseMirrorPlugins(){return[new me({key:new Ae("clearDocument"),appendTransaction:(r,e,t)=>{if(r.some(h=>h.getMeta("composition")))return;const o=r.some(h=>h.docChanged)&&!e.doc.eq(t.doc),n=r.some(h=>h.getMeta("preventClearDocument"));if(!o||n)return;const{empty:i,from:s,to:l}=e.selection,p=U.atStart(e.doc).from,c=U.atEnd(e.doc).to;if(i||!(s===p&&l===c)||!As(t.doc))return;const b=t.tr,m=ti({state:t,transaction:b}),{commands:f}=new ri({editor:this.editor,state:m});if(f.clearNodes(),!!b.steps.length)return b}})]}}),z0=Be.create({name:"paste",addProseMirrorPlugins(){return[new me({key:new Ae("tiptapPaste"),props:{handlePaste:(r,e,t)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:t})}}})]}}),_0=Be.create({name:"tabindex",addProseMirrorPlugins(){return[new me({key:new Ae("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Sr{get name(){return this.node.type.name}constructor(e,t,o=!1,n=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=t,this.currentNode=n}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:t,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Sr(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Sr(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Sr(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,o)=>{const n=t.isBlock&&!t.isTextblock,i=t.isAtom&&!t.isText,s=this.pos+o+(i?0:1),l=this.resolvedPos.doc.resolve(s);if(!n&&l.depth<=this.depth)return;const p=new Sr(l,this.editor,n,n?t:null);n&&(p.actualDepth=this.depth+1),e.push(new Sr(l,this.editor,n,n?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let o=null,n=this.parent;for(;n&&!o;){if(n.node.type.name===e)if(Object.keys(t).length>0){const i=n.node.attrs,s=Object.keys(t);for(let l=0;l<s.length;l+=1){const p=s[l];if(i[p]!==t[p])break}}else o=n;n=n.parent}return o}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},o=!1){let n=[];if(!this.children||this.children.length===0)return n;const i=Object.keys(t);return this.children.forEach(s=>{o&&n.length>0||(s.node.type.name===e&&i.every(p=>t[p]===s.node.attrs[p])&&n.push(s),!(o&&n.length>0)&&(n=n.concat(s.querySelectorAll(e,t,o))))}),n}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}const F0=`.ProseMirror {
|
|
24
24
|
position: relative;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -94,40 +94,40 @@ img.ProseMirror-separator {
|
|
|
94
94
|
|
|
95
95
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
96
96
|
opacity: 0
|
|
97
|
-
}`;function
|
|
97
|
+
}`;function j0(r,e,t){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const n=document.createElement("style");return e&&n.setAttribute("nonce",e),n.setAttribute("data-tiptap-style",""),n.innerHTML=r,document.getElementsByTagName("head")[0].appendChild(n),n}let H0=class extends sg{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:t,slice:o,moved:n})=>this.options.onDrop(t,o,n)),this.on("paste",({event:t,slice:o})=>this.options.onPaste(t,o)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=j0(F0,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const o=Ld(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],n=this.state.reconfigure({plugins:o});return this.view.updateState(n),n}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let o=t;if([].concat(e).forEach(i=>{const s=typeof i=="string"?`${i}$`:i.key;o=o.filter(l=>!l.key.startsWith(s))}),t.length===o.length)return;const n=this.state.reconfigure({plugins:o});return this.view.updateState(n),n}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[D0,kg.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),P0,L0,R0,_0,A0,z0].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new $r(n,this)}createCommandManager(){this.commandManager=new ri({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=Ts(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(l=>l.name!=="collaboration"),this.createExtensionManager()}}),t=Ts(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const o=Wd(t,this.options.autofocus);this.view=new fd(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:qr.create({doc:t,selection:o||void 0})});const n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var l;return(l=this.capturedTransaction)===null||l===void 0?void 0:l.step(s)});return}const t=this.state.apply(e),o=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const n=e.getMeta("focus"),i=e.getMeta("blur");n&&this.emit("focus",{editor:this,event:n.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Yd(this.state,e)}isActive(e,t){const o=typeof e=="string"?e:null,n=typeof e=="string"?t:e;return v0(this.state,o,n)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Es(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
|
|
98
98
|
|
|
99
|
-
`,textSerializers:o={}}=e||{};return Ju(this.state.doc,{blockSeparator:t,textSerializers:{...Cs(this.schema),...o}})}get isEmpty(){return As(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,t))||null}$nodes(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Er(t,this)}get $doc(){return this.$pos(0)}};function Zr(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=U(r.getAttributes,void 0,o);if(n===!1||n===null)return null;const{tr:i}=e,a=o[o.length-1],l=o[0];if(a){const c=l.search(/\S/),d=t.from+l.indexOf(a),u=d+a.length;if(Vs(t.from,t.to,e.doc).filter(h=>h.mark.type.excluded.find(g=>g===r.type&&g!==h.mark.type)).filter(h=>h.to>d).length)return null;u<t.to&&i.delete(u,t.to),d>t.from&&i.delete(t.from+c,d);const m=t.from+c+a.length;i.addMark(t.from+c,m,r.type.create(n||{})),i.removeStoredMark(r.type)}}})}function Hw(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=U(r.getAttributes,void 0,o)||{},{tr:i}=e,a=t.from;let l=t.to;const c=r.type.create(n);if(o[1]){const d=o[0].lastIndexOf(o[1]);let u=a+d;u>l?u=l:l=u+o[1].length;const p=o[0][o[0].length-1];i.insertText(p,a+o[0].length-1),i.replaceWith(u,l,c)}else if(o[0]){const d=r.type.isInline?a:a-1;i.insert(d,r.type.create(n)).delete(i.mapping.map(a),i.mapping.map(l))}i.scrollIntoView()}})}function Ls(r){return new oi({find:r.find,handler:({state:e,range:t,match:o})=>{const n=e.doc.resolve(t.from),i=U(r.getAttributes,void 0,o)||{};if(!n.node(-1).canReplaceWith(n.index(-1),n.indexAfter(-1),r.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,r.type,i)}})}function jo(r){return new oi({find:r.find,handler:({state:e,range:t,match:o,chain:n})=>{const i=U(r.getAttributes,void 0,o)||{},a=e.tr.delete(t.from,t.to),c=a.doc.resolve(t.from).blockRange(),d=c&&La(c,r.type,i);if(!d)return null;if(a.wrap(c,d),r.keepMarks&&r.editor){const{selection:p,storedMarks:m}=e,{splittableMarks:h}=r.editor.extensionManager,f=m||p.$to.parentOffset&&p.$from.marks();if(f){const g=f.filter(b=>h.includes(b.type.name));a.ensureMarks(g)}}if(r.keepAttributes){const p=r.type.name==="bulletList"||r.type.name==="orderedList"?"listItem":"taskList";n().updateAttributes(p,i).run()}const u=a.doc.resolve(t.from-1).nodeBefore;u&&u.type===r.type&&Ut(a.doc,t.from-1)&&(!r.joinPredicate||r.joinPredicate(o,u))&&a.join(t.from-1)}})}let lt=class zl{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=U(I(this,"addOptions",{name:this.name}))),this.storage=U(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zl(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>ai(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new zl(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=U(I(t,"addOptions",{name:t.name})),t.storage=U(I(t,"addStorage",{name:t.name,options:t.options})),t}};function Sr(r){return new fb({find:r.find,handler:({state:e,range:t,match:o,pasteEvent:n})=>{const i=U(r.getAttributes,void 0,o,n);if(i===!1||i===null)return null;const{tr:a}=e,l=o[o.length-1],c=o[0];let d=t.to;if(l){const u=c.search(/\S/),p=t.from+c.indexOf(l),m=p+l.length;if(Vs(t.from,t.to,e.doc).filter(f=>f.mark.type.excluded.find(b=>b===r.type&&b!==f.mark.type)).filter(f=>f.to>p).length)return null;m<t.to&&a.delete(m,t.to),p>t.from&&a.delete(t.from+u,p),d=t.from+u+l.length,a.addMark(t.from+u,d,r.type.create(i||{})),a.removeStoredMark(r.type)}}})}var Fe="top",$e="bottom",et="right",je="left",Rs="auto",Ho=[Fe,$e,et,je],$r="start",Wo="end",Ww="clippingParents",$u="viewport",qo="popper",qw="reference",ep=Ho.reduce(function(r,e){return r.concat([e+"-"+$r,e+"-"+Wo])},[]),tp=[].concat(Ho,[Rs]).reduce(function(r,e){return r.concat([e,e+"-"+$r,e+"-"+Wo])},[]),Uw="beforeRead",Kw="read",Jw="afterRead",Gw="beforeMain",Yw="main",Xw="afterMain",Qw="beforeWrite",Zw="write",$w="afterWrite",ey=[Uw,Kw,Jw,Gw,Yw,Xw,Qw,Zw,$w];function bt(r){return r?(r.nodeName||"").toLowerCase():null}function Ue(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function Cr(r){var e=Ue(r).Element;return r instanceof e||r instanceof Element}function tt(r){var e=Ue(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function zs(r){if(typeof ShadowRoot>"u")return!1;var e=Ue(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function ty(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var o=e.styles[t]||{},n=e.attributes[t]||{},i=e.elements[t];!tt(i)||!bt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(a){var l=n[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function ry(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},a=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:t[o]),l=a.reduce(function(c,d){return c[d]="",c},{});!tt(n)||!bt(n)||(Object.assign(n.style,l),Object.keys(i).forEach(function(c){n.removeAttribute(c)}))})}}const rp={name:"applyStyles",enabled:!0,phase:"write",fn:ty,effect:ry,requires:["computeStyles"]};function wt(r){return r.split("-")[0]}var Nr=Math.max,pi=Math.min,eo=Math.round;function _s(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function op(){return!/^((?!chrome|android).)*safari/i.test(_s())}function to(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var o=r.getBoundingClientRect(),n=1,i=1;e&&tt(r)&&(n=r.offsetWidth>0&&eo(o.width)/r.offsetWidth||1,i=r.offsetHeight>0&&eo(o.height)/r.offsetHeight||1);var a=Cr(r)?Ue(r):window,l=a.visualViewport,c=!op()&&t,d=(o.left+(c&&l?l.offsetLeft:0))/n,u=(o.top+(c&&l?l.offsetTop:0))/i,p=o.width/n,m=o.height/i;return{width:p,height:m,top:u,right:d+p,bottom:u+m,left:d,x:d,y:u}}function Fs(r){var e=to(r),t=r.offsetWidth,o=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:o}}function np(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&zs(t)){var o=e;do{if(o&&r.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Pt(r){return Ue(r).getComputedStyle(r)}function oy(r){return["table","td","th"].indexOf(bt(r))>=0}function rr(r){return((Cr(r)?r.ownerDocument:r.document)||window.document).documentElement}function mi(r){return bt(r)==="html"?r:r.assignedSlot||r.parentNode||(zs(r)?r.host:null)||rr(r)}function ip(r){return!tt(r)||Pt(r).position==="fixed"?null:r.offsetParent}function ny(r){var e=/firefox/i.test(_s()),t=/Trident/i.test(_s());if(t&&tt(r)){var o=Pt(r);if(o.position==="fixed")return null}var n=mi(r);for(zs(n)&&(n=n.host);tt(n)&&["html","body"].indexOf(bt(n))<0;){var i=Pt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Uo(r){for(var e=Ue(r),t=ip(r);t&&oy(t)&&Pt(t).position==="static";)t=ip(t);return t&&(bt(t)==="html"||bt(t)==="body"&&Pt(t).position==="static")?e:t||ny(r)||e}function js(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Ko(r,e,t){return Nr(r,pi(e,t))}function iy(r,e,t){var o=Ko(r,e,t);return o>t?t:o}function ap(){return{top:0,right:0,bottom:0,left:0}}function sp(r){return Object.assign({},ap(),r)}function lp(r,e){return e.reduce(function(t,o){return t[o]=r,t},{})}var ay=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,sp(typeof e!="number"?e:lp(e,Ho))};function sy(r){var e,t=r.state,o=r.name,n=r.options,i=t.elements.arrow,a=t.modifiersData.popperOffsets,l=wt(t.placement),c=js(l),d=[je,et].indexOf(l)>=0,u=d?"height":"width";if(!(!i||!a)){var p=ay(n.padding,t),m=Fs(i),h=c==="y"?Fe:je,f=c==="y"?$e:et,g=t.rects.reference[u]+t.rects.reference[c]-a[c]-t.rects.popper[u],b=a[c]-t.rects.reference[c],y=Uo(i),k=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,v=g/2-b/2,w=p[h],S=k-m[u]-p[f],x=k/2-m[u]/2+v,C=Ko(w,x,S),O=c;t.modifiersData[o]=(e={},e[O]=C,e.centerOffset=C-x,e)}}function ly(r){var e=r.state,t=r.options,o=t.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||np(e.elements.popper,n)&&(e.elements.arrow=n))}const cy={name:"arrow",enabled:!0,phase:"main",fn:sy,effect:ly,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ro(r){return r.split("-")[1]}var dy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uy(r,e){var t=r.x,o=r.y,n=e.devicePixelRatio||1;return{x:eo(t*n)/n||0,y:eo(o*n)/n||0}}function cp(r){var e,t=r.popper,o=r.popperRect,n=r.placement,i=r.variation,a=r.offsets,l=r.position,c=r.gpuAcceleration,d=r.adaptive,u=r.roundOffsets,p=r.isFixed,m=a.x,h=m===void 0?0:m,f=a.y,g=f===void 0?0:f,b=typeof u=="function"?u({x:h,y:g}):{x:h,y:g};h=b.x,g=b.y;var y=a.hasOwnProperty("x"),k=a.hasOwnProperty("y"),v=je,w=Fe,S=window;if(d){var x=Uo(t),C="clientHeight",O="clientWidth";if(x===Ue(t)&&(x=rr(t),Pt(x).position!=="static"&&l==="absolute"&&(C="scrollHeight",O="scrollWidth")),x=x,n===Fe||(n===je||n===et)&&i===Wo){w=$e;var D=p&&x===S&&S.visualViewport?S.visualViewport.height:x[C];g-=D-o.height,g*=c?1:-1}if(n===je||(n===Fe||n===$e)&&i===Wo){v=et;var B=p&&x===S&&S.visualViewport?S.visualViewport.width:x[O];h-=B-o.width,h*=c?1:-1}}var E=Object.assign({position:l},d&&dy),P=u===!0?uy({x:h,y:g},Ue(t)):{x:h,y:g};if(h=P.x,g=P.y,c){var _;return Object.assign({},E,(_={},_[w]=k?"0":"",_[v]=y?"0":"",_.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",_))}return Object.assign({},E,(e={},e[w]=k?g+"px":"",e[v]=y?h+"px":"",e.transform="",e))}function py(r){var e=r.state,t=r.options,o=t.gpuAcceleration,n=o===void 0?!0:o,i=t.adaptive,a=i===void 0?!0:i,l=t.roundOffsets,c=l===void 0?!0:l,d={placement:wt(e.placement),variation:ro(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cp(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cp(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const my={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:py,data:{}};var hi={passive:!0};function hy(r){var e=r.state,t=r.instance,o=r.options,n=o.scroll,i=n===void 0?!0:n,a=o.resize,l=a===void 0?!0:a,c=Ue(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&d.forEach(function(u){u.addEventListener("scroll",t.update,hi)}),l&&c.addEventListener("resize",t.update,hi),function(){i&&d.forEach(function(u){u.removeEventListener("scroll",t.update,hi)}),l&&c.removeEventListener("resize",t.update,hi)}}const fy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hy,data:{}};var gy={left:"right",right:"left",bottom:"top",top:"bottom"};function fi(r){return r.replace(/left|right|bottom|top/g,function(e){return gy[e]})}var by={start:"end",end:"start"};function dp(r){return r.replace(/start|end/g,function(e){return by[e]})}function Hs(r){var e=Ue(r),t=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:t,scrollTop:o}}function Ws(r){return to(rr(r)).left+Hs(r).scrollLeft}function wy(r,e){var t=Ue(r),o=rr(r),n=t.visualViewport,i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(n){i=n.width,a=n.height;var d=op();(d||!d&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:i,height:a,x:l+Ws(r),y:c}}function yy(r){var e,t=rr(r),o=Hs(r),n=(e=r.ownerDocument)==null?void 0:e.body,i=Nr(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),a=Nr(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-o.scrollLeft+Ws(r),c=-o.scrollTop;return Pt(n||t).direction==="rtl"&&(l+=Nr(t.clientWidth,n?n.clientWidth:0)-i),{width:i,height:a,x:l,y:c}}function qs(r){var e=Pt(r),t=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+o)}function up(r){return["html","body","#document"].indexOf(bt(r))>=0?r.ownerDocument.body:tt(r)&&qs(r)?r:up(mi(r))}function Jo(r,e){var t;e===void 0&&(e=[]);var o=up(r),n=o===((t=r.ownerDocument)==null?void 0:t.body),i=Ue(o),a=n?[i].concat(i.visualViewport||[],qs(o)?o:[]):o,l=e.concat(a);return n?l:l.concat(Jo(mi(a)))}function Us(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function vy(r,e){var t=to(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function pp(r,e,t){return e===$u?Us(wy(r,t)):Cr(e)?vy(e,t):Us(yy(rr(r)))}function xy(r){var e=Jo(mi(r)),t=["absolute","fixed"].indexOf(Pt(r).position)>=0,o=t&&tt(r)?Uo(r):r;return Cr(o)?e.filter(function(n){return Cr(n)&&np(n,o)&&bt(n)!=="body"}):[]}function ky(r,e,t,o){var n=e==="clippingParents"?xy(r):[].concat(e),i=[].concat(n,[t]),a=i[0],l=i.reduce(function(c,d){var u=pp(r,d,o);return c.top=Nr(u.top,c.top),c.right=pi(u.right,c.right),c.bottom=pi(u.bottom,c.bottom),c.left=Nr(u.left,c.left),c},pp(r,a,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mp(r){var e=r.reference,t=r.element,o=r.placement,n=o?wt(o):null,i=o?ro(o):null,a=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,c;switch(n){case Fe:c={x:a,y:e.y-t.height};break;case $e:c={x:a,y:e.y+e.height};break;case et:c={x:e.x+e.width,y:l};break;case je:c={x:e.x-t.width,y:l};break;default:c={x:e.x,y:e.y}}var d=n?js(n):null;if(d!=null){var u=d==="y"?"height":"width";switch(i){case $r:c[d]=c[d]-(e[u]/2-t[u]/2);break;case Wo:c[d]=c[d]+(e[u]/2-t[u]/2);break}}return c}function Go(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=o===void 0?r.placement:o,i=t.strategy,a=i===void 0?r.strategy:i,l=t.boundary,c=l===void 0?Ww:l,d=t.rootBoundary,u=d===void 0?$u:d,p=t.elementContext,m=p===void 0?qo:p,h=t.altBoundary,f=h===void 0?!1:h,g=t.padding,b=g===void 0?0:g,y=sp(typeof b!="number"?b:lp(b,Ho)),k=m===qo?qw:qo,v=r.rects.popper,w=r.elements[f?k:m],S=ky(Cr(w)?w:w.contextElement||rr(r.elements.popper),c,u,a),x=to(r.elements.reference),C=mp({reference:x,element:v,placement:n}),O=Us(Object.assign({},v,C)),D=m===qo?O:x,B={top:S.top-D.top+y.top,bottom:D.bottom-S.bottom+y.bottom,left:S.left-D.left+y.left,right:D.right-S.right+y.right},E=r.modifiersData.offset;if(m===qo&&E){var P=E[n];Object.keys(B).forEach(function(_){var ee=[et,$e].indexOf(_)>=0?1:-1,re=[Fe,$e].indexOf(_)>=0?"y":"x";B[_]+=P[re]*ee})}return B}function Ey(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=t.boundary,i=t.rootBoundary,a=t.padding,l=t.flipVariations,c=t.allowedAutoPlacements,d=c===void 0?tp:c,u=ro(o),p=u?l?ep:ep.filter(function(f){return ro(f)===u}):Ho,m=p.filter(function(f){return d.indexOf(f)>=0});m.length===0&&(m=p);var h=m.reduce(function(f,g){return f[g]=Go(r,{placement:g,boundary:n,rootBoundary:i,padding:a})[wt(g)],f},{});return Object.keys(h).sort(function(f,g){return h[f]-h[g]})}function Sy(r){if(wt(r)===Rs)return[];var e=fi(r);return[dp(r),e,dp(e)]}function Cy(r){var e=r.state,t=r.options,o=r.name;if(!e.modifiersData[o]._skip){for(var n=t.mainAxis,i=n===void 0?!0:n,a=t.altAxis,l=a===void 0?!0:a,c=t.fallbackPlacements,d=t.padding,u=t.boundary,p=t.rootBoundary,m=t.altBoundary,h=t.flipVariations,f=h===void 0?!0:h,g=t.allowedAutoPlacements,b=e.options.placement,y=wt(b),k=y===b,v=c||(k||!f?[fi(b)]:Sy(b)),w=[b].concat(v).reduce(function(V,oe){return V.concat(wt(oe)===Rs?Ey(e,{placement:oe,boundary:u,rootBoundary:p,padding:d,flipVariations:f,allowedAutoPlacements:g}):oe)},[]),S=e.rects.reference,x=e.rects.popper,C=new Map,O=!0,D=w[0],B=0;B<w.length;B++){var E=w[B],P=wt(E),_=ro(E)===$r,ee=[Fe,$e].indexOf(P)>=0,re=ee?"width":"height",J=Go(e,{placement:E,boundary:u,rootBoundary:p,altBoundary:m,padding:d}),z=ee?_?et:je:_?$e:Fe;S[re]>x[re]&&(z=fi(z));var X=fi(z),ne=[];if(i&&ne.push(J[P]<=0),l&&ne.push(J[z]<=0,J[X]<=0),ne.every(function(V){return V})){D=E,O=!1;break}C.set(E,ne)}if(O)for(var Je=f?3:1,ut=function(oe){var Et=w.find(function(po){var Rt=C.get(po);if(Rt)return Rt.slice(0,oe).every(function(mo){return mo})});if(Et)return D=Et,"break"},nt=Je;nt>0;nt--){var H=ut(nt);if(H==="break")break}e.placement!==D&&(e.modifiersData[o]._skip=!0,e.placement=D,e.reset=!0)}}const Ny={name:"flip",enabled:!0,phase:"main",fn:Cy,requiresIfExists:["offset"],data:{_skip:!1}};function hp(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function fp(r){return[Fe,et,$e,je].some(function(e){return r[e]>=0})}function By(r){var e=r.state,t=r.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,a=Go(e,{elementContext:"reference"}),l=Go(e,{altBoundary:!0}),c=hp(a,o),d=hp(l,n,i),u=fp(c),p=fp(d);e.modifiersData[t]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const My={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:By};function Ty(r,e,t){var o=wt(r),n=[je,Fe].indexOf(o)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,a=i[0],l=i[1];return a=a||0,l=(l||0)*n,[je,et].indexOf(o)>=0?{x:l,y:a}:{x:a,y:l}}function Oy(r){var e=r.state,t=r.options,o=r.name,n=t.offset,i=n===void 0?[0,0]:n,a=tp.reduce(function(u,p){return u[p]=Ty(p,e.rects,i),u},{}),l=a[e.placement],c=l.x,d=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=d),e.modifiersData[o]=a}const Vy={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oy};function Py(r){var e=r.state,t=r.name;e.modifiersData[t]=mp({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Ay={name:"popperOffsets",enabled:!0,phase:"read",fn:Py,data:{}};function Dy(r){return r==="x"?"y":"x"}function Iy(r){var e=r.state,t=r.options,o=r.name,n=t.mainAxis,i=n===void 0?!0:n,a=t.altAxis,l=a===void 0?!1:a,c=t.boundary,d=t.rootBoundary,u=t.altBoundary,p=t.padding,m=t.tether,h=m===void 0?!0:m,f=t.tetherOffset,g=f===void 0?0:f,b=Go(e,{boundary:c,rootBoundary:d,padding:p,altBoundary:u}),y=wt(e.placement),k=ro(e.placement),v=!k,w=js(y),S=Dy(w),x=e.modifiersData.popperOffsets,C=e.rects.reference,O=e.rects.popper,D=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,B=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(x){if(i){var _,ee=w==="y"?Fe:je,re=w==="y"?$e:et,J=w==="y"?"height":"width",z=x[w],X=z+b[ee],ne=z-b[re],Je=h?-O[J]/2:0,ut=k===$r?C[J]:O[J],nt=k===$r?-O[J]:-C[J],H=e.elements.arrow,V=h&&H?Fs(H):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ap(),Et=oe[ee],po=oe[re],Rt=Ko(0,C[J],V[J]),mo=v?C[J]/2-Je-Rt-Et-B.mainAxis:ut-Rt-Et-B.mainAxis,sr=v?-C[J]/2+Je+Rt+po+B.mainAxis:nt+Rt+po+B.mainAxis,ho=e.elements.arrow&&Uo(e.elements.arrow),ia=ho?w==="y"?ho.clientTop||0:ho.clientLeft||0:0,fn=(_=E==null?void 0:E[w])!=null?_:0,aa=z+mo-fn-ia,sa=z+sr-fn,gn=Ko(h?pi(X,aa):X,z,h?Nr(ne,sa):ne);x[w]=gn,P[w]=gn-z}if(l){var bn,la=w==="x"?Fe:je,ca=w==="x"?$e:et,zt=x[S],lr=S==="y"?"height":"width",wn=zt+b[la],Vr=zt-b[ca],yn=[Fe,je].indexOf(y)!==-1,da=(bn=E==null?void 0:E[S])!=null?bn:0,ua=yn?wn:zt-C[lr]-O[lr]-da+B.altAxis,pa=yn?zt+C[lr]+O[lr]-da-B.altAxis:Vr,ma=h&&yn?iy(ua,zt,pa):Ko(h?ua:wn,zt,h?pa:Vr);x[S]=ma,P[S]=ma-zt}e.modifiersData[o]=P}}const Ly={name:"preventOverflow",enabled:!0,phase:"main",fn:Iy,requiresIfExists:["offset"]};function Ry(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function zy(r){return r===Ue(r)||!tt(r)?Hs(r):Ry(r)}function _y(r){var e=r.getBoundingClientRect(),t=eo(e.width)/r.offsetWidth||1,o=eo(e.height)/r.offsetHeight||1;return t!==1||o!==1}function Fy(r,e,t){t===void 0&&(t=!1);var o=tt(e),n=tt(e)&&_y(e),i=rr(e),a=to(r,n,t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!t)&&((bt(e)!=="body"||qs(i))&&(l=zy(e)),tt(e)?(c=to(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Ws(i))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function jy(r){var e=new Map,t=new Set,o=[];r.forEach(function(i){e.set(i.name,i)});function n(i){t.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!t.has(l)){var c=e.get(l);c&&n(c)}}),o.push(i)}return r.forEach(function(i){t.has(i.name)||n(i)}),o}function Hy(r){var e=jy(r);return ey.reduce(function(t,o){return t.concat(e.filter(function(n){return n.phase===o}))},[])}function Wy(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function qy(r){var e=r.reduce(function(t,o){var n=t[o.name];return t[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,t},{});return Object.keys(e).map(function(t){return e[t]})}var gp={placement:"bottom",modifiers:[],strategy:"absolute"};function bp(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Uy(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,o=t===void 0?[]:t,n=e.defaultOptions,i=n===void 0?gp:n;return function(l,c,d){d===void 0&&(d=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},gp,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],m=!1,h={state:u,setOptions:function(y){var k=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},i,u.options,k),u.scrollParents={reference:Cr(l)?Jo(l):l.contextElement?Jo(l.contextElement):[],popper:Jo(c)};var v=Hy(qy([].concat(o,u.options.modifiers)));return u.orderedModifiers=v.filter(function(w){return w.enabled}),f(),h.update()},forceUpdate:function(){if(!m){var y=u.elements,k=y.reference,v=y.popper;if(bp(k,v)){u.rects={reference:Fy(k,Uo(v),u.options.strategy==="fixed"),popper:Fs(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var S=u.orderedModifiers[w],x=S.fn,C=S.options,O=C===void 0?{}:C,D=S.name;typeof x=="function"&&(u=x({state:u,options:O,name:D,instance:h})||u)}}}},update:Wy(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){g(),m=!0}};if(!bp(l,c))return h;h.setOptions(d).then(function(b){!m&&d.onFirstUpdate&&d.onFirstUpdate(b)});function f(){u.orderedModifiers.forEach(function(b){var y=b.name,k=b.options,v=k===void 0?{}:k,w=b.effect;if(typeof w=="function"){var S=w({state:u,name:y,instance:h,options:v}),x=function(){};p.push(S||x)}})}function g(){p.forEach(function(b){return b()}),p=[]}return h}}var Ky=[fy,Ay,my,rp,Vy,Ny,Ly,cy,My],Jy=Uy({defaultModifiers:Ky}),Gy="tippy-box",wp="tippy-content",Yy="tippy-backdrop",yp="tippy-arrow",vp="tippy-svg-arrow",Br={passive:!0,capture:!0},xp=function(){return document.body};function Xy(r,e){return{}.hasOwnProperty.call(r,e)}function Ks(r,e,t){if(Array.isArray(r)){var o=r[e];return o??(Array.isArray(t)?t[e]:t)}return r}function Js(r,e){var t={}.toString.call(r);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function kp(r,e){return typeof r=="function"?r.apply(void 0,e):r}function Ep(r,e){if(e===0)return r;var t;return function(o){clearTimeout(t),t=setTimeout(function(){r(o)},e)}}function Qy(r,e){var t=Object.assign({},r);return e.forEach(function(o){delete t[o]}),t}function Zy(r){return r.split(/\s+/).filter(Boolean)}function oo(r){return[].concat(r)}function Sp(r,e){r.indexOf(e)===-1&&r.push(e)}function $y(r){return r.filter(function(e,t){return r.indexOf(e)===t})}function e1(r){return r.split("-")[0]}function gi(r){return[].slice.call(r)}function Cp(r){return Object.keys(r).reduce(function(e,t){return r[t]!==void 0&&(e[t]=r[t]),e},{})}function Yo(){return document.createElement("div")}function Xo(r){return["Element","Fragment"].some(function(e){return Js(r,e)})}function t1(r){return Js(r,"NodeList")}function r1(r){return Js(r,"MouseEvent")}function o1(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function n1(r){return Xo(r)?[r]:t1(r)?gi(r):Array.isArray(r)?r:gi(document.querySelectorAll(r))}function Gs(r,e){r.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function Np(r,e){r.forEach(function(t){t&&t.setAttribute("data-state",e)})}function i1(r){var e,t=oo(r),o=t[0];return o!=null&&(e=o.ownerDocument)!=null&&e.body?o.ownerDocument:document}function a1(r,e){var t=e.clientX,o=e.clientY;return r.every(function(n){var i=n.popperRect,a=n.popperState,l=n.props,c=l.interactiveBorder,d=e1(a.placement),u=a.modifiersData.offset;if(!u)return!0;var p=d==="bottom"?u.top.y:0,m=d==="top"?u.bottom.y:0,h=d==="right"?u.left.x:0,f=d==="left"?u.right.x:0,g=i.top-o+p>c,b=o-i.bottom-m>c,y=i.left-t+h>c,k=t-i.right-f>c;return g||b||y||k})}function Ys(r,e,t){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(n){r[o](n,t)})}function Bp(r,e){for(var t=e;t;){var o;if(r.contains(t))return!0;t=t.getRootNode==null||(o=t.getRootNode())==null?void 0:o.host}return!1}var yt={isTouch:!1},Mp=0;function s1(){yt.isTouch||(yt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Tp))}function Tp(){var r=performance.now();r-Mp<20&&(yt.isTouch=!1,document.removeEventListener("mousemove",Tp)),Mp=r}function l1(){var r=document.activeElement;if(o1(r)){var e=r._tippy;r.blur&&!e.state.isVisible&&r.blur()}}function c1(){document.addEventListener("touchstart",s1,Br),window.addEventListener("blur",l1)}var d1=typeof window<"u"&&typeof document<"u",u1=d1?!!window.msCrypto:!1;function no(r){var e=r==="destroy"?"n already-":" ";return[r+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Op(r){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return r.replace(e," ").replace(t,"").trim()}function p1(r){return Op(`
|
|
99
|
+
`,textSerializers:o={}}=e||{};return Jd(this.state.doc,{blockSeparator:t,textSerializers:{...Cs(this.schema),...o}})}get isEmpty(){return As(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,t))||null}$nodes(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Sr(t,this)}get $doc(){return this.$pos(0)}};function eo(r){return new ni({find:r.find,handler:({state:e,range:t,match:o})=>{const n=K(r.getAttributes,void 0,o);if(n===!1||n===null)return null;const{tr:i}=e,s=o[o.length-1],l=o[0];if(s){const p=l.search(/\S/),c=t.from+l.indexOf(s),d=c+s.length;if(Vs(t.from,t.to,e.doc).filter(m=>m.mark.type.excluded.find(h=>h===r.type&&h!==m.mark.type)).filter(m=>m.to>c).length)return null;d<t.to&&i.delete(d,t.to),c>t.from&&i.delete(t.from+p,c);const b=t.from+p+s.length;i.addMark(t.from+p,b,r.type.create(n||{})),i.removeStoredMark(r.type)}}})}function W0(r){return new ni({find:r.find,handler:({state:e,range:t,match:o})=>{const n=K(r.getAttributes,void 0,o)||{},{tr:i}=e,s=t.from;let l=t.to;const p=r.type.create(n);if(o[1]){const c=o[0].lastIndexOf(o[1]);let d=s+c;d>l?d=l:l=d+o[1].length;const u=o[0][o[0].length-1];i.insertText(u,s+o[0].length-1),i.replaceWith(d,l,p)}else if(o[0]){const c=r.type.isInline?s:s-1;i.insert(c,r.type.create(n)).delete(i.mapping.map(s),i.mapping.map(l))}i.scrollIntoView()}})}function Ls(r){return new ni({find:r.find,handler:({state:e,range:t,match:o})=>{const n=e.doc.resolve(t.from),i=K(r.getAttributes,void 0,o)||{};if(!n.node(-1).canReplaceWith(n.index(-1),n.indexAfter(-1),r.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,r.type,i)}})}function Wo(r){return new ni({find:r.find,handler:({state:e,range:t,match:o,chain:n})=>{const i=K(r.getAttributes,void 0,o)||{},s=e.tr.delete(t.from,t.to),p=s.doc.resolve(t.from).blockRange(),c=p&&La(p,r.type,i);if(!c)return null;if(s.wrap(p,c),r.keepMarks&&r.editor){const{selection:u,storedMarks:b}=e,{splittableMarks:m}=r.editor.extensionManager,f=b||u.$to.parentOffset&&u.$from.marks();if(f){const h=f.filter(x=>m.includes(x.type.name));s.ensureMarks(h)}}if(r.keepAttributes){const u=r.type.name==="bulletList"||r.type.name==="orderedList"?"listItem":"taskList";n().updateAttributes(u,i).run()}const d=s.doc.resolve(t.from-1).nodeBefore;d&&d.type===r.type&&qt(s.doc,t.from-1)&&(!r.joinPredicate||r.joinPredicate(o,d))&&s.join(t.from-1)}})}let lt=class _l{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=K(I(this,"addOptions",{name:this.name}))),this.storage=K(I(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new _l(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>si(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new _l(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=K(I(t,"addOptions",{name:t.name})),t.storage=K(I(t,"addStorage",{name:t.name,options:t.options})),t}};function Cr(r){return new hg({find:r.find,handler:({state:e,range:t,match:o,pasteEvent:n})=>{const i=K(r.getAttributes,void 0,o,n);if(i===!1||i===null)return null;const{tr:s}=e,l=o[o.length-1],p=o[0];let c=t.to;if(l){const d=p.search(/\S/),u=t.from+p.indexOf(l),b=u+l.length;if(Vs(t.from,t.to,e.doc).filter(f=>f.mark.type.excluded.find(x=>x===r.type&&x!==f.mark.type)).filter(f=>f.to>u).length)return null;b<t.to&&s.delete(b,t.to),u>t.from&&s.delete(t.from+d,u),c=t.from+d+l.length,s.addMark(t.from+d,c,r.type.create(i||{})),s.removeStoredMark(r.type)}}})}var Fe="top",$e="bottom",et="right",je="left",Rs="auto",Uo=[Fe,$e,et,je],to="start",qo="end",U0="clippingParents",eu="viewport",Ko="popper",q0="reference",tu=Uo.reduce(function(r,e){return r.concat([e+"-"+to,e+"-"+qo])},[]),ru=[].concat(Uo,[Rs]).reduce(function(r,e){return r.concat([e,e+"-"+to,e+"-"+qo])},[]),K0="beforeRead",G0="read",J0="afterRead",Y0="beforeMain",X0="main",Q0="afterMain",Z0="beforeWrite",$0="write",ey="afterWrite",ty=[K0,G0,J0,Y0,X0,Q0,Z0,$0,ey];function xt(r){return r?(r.nodeName||"").toLowerCase():null}function qe(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function Nr(r){var e=qe(r).Element;return r instanceof e||r instanceof Element}function tt(r){var e=qe(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function zs(r){if(typeof ShadowRoot>"u")return!1;var e=qe(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function ry(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var o=e.styles[t]||{},n=e.attributes[t]||{},i=e.elements[t];!tt(i)||!xt(i)||(Object.assign(i.style,o),Object.keys(n).forEach(function(s){var l=n[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function oy(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(o){var n=e.elements[o],i=e.attributes[o]||{},s=Object.keys(e.styles.hasOwnProperty(o)?e.styles[o]:t[o]),l=s.reduce(function(p,c){return p[c]="",p},{});!tt(n)||!xt(n)||(Object.assign(n.style,l),Object.keys(i).forEach(function(p){n.removeAttribute(p)}))})}}const ou={name:"applyStyles",enabled:!0,phase:"write",fn:ry,effect:oy,requires:["computeStyles"]};function gt(r){return r.split("-")[0]}var Br=Math.max,bi=Math.min,ro=Math.round;function _s(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function nu(){return!/^((?!chrome|android).)*safari/i.test(_s())}function oo(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var o=r.getBoundingClientRect(),n=1,i=1;e&&tt(r)&&(n=r.offsetWidth>0&&ro(o.width)/r.offsetWidth||1,i=r.offsetHeight>0&&ro(o.height)/r.offsetHeight||1);var s=Nr(r)?qe(r):window,l=s.visualViewport,p=!nu()&&t,c=(o.left+(p&&l?l.offsetLeft:0))/n,d=(o.top+(p&&l?l.offsetTop:0))/i,u=o.width/n,b=o.height/i;return{width:u,height:b,top:d,right:c+u,bottom:d+b,left:c,x:c,y:d}}function Fs(r){var e=oo(r),t=r.offsetWidth,o=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:o}}function iu(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&zs(t)){var o=e;do{if(o&&r.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Pt(r){return qe(r).getComputedStyle(r)}function ny(r){return["table","td","th"].indexOf(xt(r))>=0}function rr(r){return((Nr(r)?r.ownerDocument:r.document)||window.document).documentElement}function mi(r){return xt(r)==="html"?r:r.assignedSlot||r.parentNode||(zs(r)?r.host:null)||rr(r)}function au(r){return!tt(r)||Pt(r).position==="fixed"?null:r.offsetParent}function iy(r){var e=/firefox/i.test(_s()),t=/Trident/i.test(_s());if(t&&tt(r)){var o=Pt(r);if(o.position==="fixed")return null}var n=mi(r);for(zs(n)&&(n=n.host);tt(n)&&["html","body"].indexOf(xt(n))<0;){var i=Pt(n);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return n;n=n.parentNode}return null}function Go(r){for(var e=qe(r),t=au(r);t&&ny(t)&&Pt(t).position==="static";)t=au(t);return t&&(xt(t)==="html"||xt(t)==="body"&&Pt(t).position==="static")?e:t||iy(r)||e}function js(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function Jo(r,e,t){return Br(r,bi(e,t))}function ay(r,e,t){var o=Jo(r,e,t);return o>t?t:o}function su(){return{top:0,right:0,bottom:0,left:0}}function lu(r){return Object.assign({},su(),r)}function pu(r,e){return e.reduce(function(t,o){return t[o]=r,t},{})}var sy=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,lu(typeof e!="number"?e:pu(e,Uo))};function ly(r){var e,t=r.state,o=r.name,n=r.options,i=t.elements.arrow,s=t.modifiersData.popperOffsets,l=gt(t.placement),p=js(l),c=[je,et].indexOf(l)>=0,d=c?"height":"width";if(!(!i||!s)){var u=sy(n.padding,t),b=Fs(i),m=p==="y"?Fe:je,f=p==="y"?$e:et,h=t.rects.reference[d]+t.rects.reference[p]-s[p]-t.rects.popper[d],x=s[p]-t.rects.reference[p],y=Go(i),w=y?p==="y"?y.clientHeight||0:y.clientWidth||0:0,v=h/2-x/2,g=u[m],S=w-b[d]-u[f],k=w/2-b[d]/2+v,C=Jo(g,k,S),O=p;t.modifiersData[o]=(e={},e[O]=C,e.centerOffset=C-k,e)}}function py(r){var e=r.state,t=r.options,o=t.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=e.elements.popper.querySelector(n),!n)||iu(e.elements.popper,n)&&(e.elements.arrow=n))}const cy={name:"arrow",enabled:!0,phase:"main",fn:ly,effect:py,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function no(r){return r.split("-")[1]}var dy={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uy(r,e){var t=r.x,o=r.y,n=e.devicePixelRatio||1;return{x:ro(t*n)/n||0,y:ro(o*n)/n||0}}function cu(r){var e,t=r.popper,o=r.popperRect,n=r.placement,i=r.variation,s=r.offsets,l=r.position,p=r.gpuAcceleration,c=r.adaptive,d=r.roundOffsets,u=r.isFixed,b=s.x,m=b===void 0?0:b,f=s.y,h=f===void 0?0:f,x=typeof d=="function"?d({x:m,y:h}):{x:m,y:h};m=x.x,h=x.y;var y=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),v=je,g=Fe,S=window;if(c){var k=Go(t),C="clientHeight",O="clientWidth";if(k===qe(t)&&(k=rr(t),Pt(k).position!=="static"&&l==="absolute"&&(C="scrollHeight",O="scrollWidth")),k=k,n===Fe||(n===je||n===et)&&i===qo){g=$e;var D=u&&k===S&&S.visualViewport?S.visualViewport.height:k[C];h-=D-o.height,h*=p?1:-1}if(n===je||(n===Fe||n===$e)&&i===qo){v=et;var B=u&&k===S&&S.visualViewport?S.visualViewport.width:k[O];m-=B-o.width,m*=p?1:-1}}var E=Object.assign({position:l},c&&dy),P=d===!0?uy({x:m,y:h},qe(t)):{x:m,y:h};if(m=P.x,h=P.y,p){var _;return Object.assign({},E,(_={},_[g]=w?"0":"",_[v]=y?"0":"",_.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+h+"px)":"translate3d("+m+"px, "+h+"px, 0)",_))}return Object.assign({},E,(e={},e[g]=w?h+"px":"",e[v]=y?m+"px":"",e.transform="",e))}function by(r){var e=r.state,t=r.options,o=t.gpuAcceleration,n=o===void 0?!0:o,i=t.adaptive,s=i===void 0?!0:i,l=t.roundOffsets,p=l===void 0?!0:l,c={placement:gt(e.placement),variation:no(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cu(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:p})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cu(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const my={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:by,data:{}};var fi={passive:!0};function fy(r){var e=r.state,t=r.instance,o=r.options,n=o.scroll,i=n===void 0?!0:n,s=o.resize,l=s===void 0?!0:s,p=qe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(d){d.addEventListener("scroll",t.update,fi)}),l&&p.addEventListener("resize",t.update,fi),function(){i&&c.forEach(function(d){d.removeEventListener("scroll",t.update,fi)}),l&&p.removeEventListener("resize",t.update,fi)}}const hy={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fy,data:{}};var xy={left:"right",right:"left",bottom:"top",top:"bottom"};function hi(r){return r.replace(/left|right|bottom|top/g,function(e){return xy[e]})}var gy={start:"end",end:"start"};function du(r){return r.replace(/start|end/g,function(e){return gy[e]})}function Hs(r){var e=qe(r),t=e.pageXOffset,o=e.pageYOffset;return{scrollLeft:t,scrollTop:o}}function Ws(r){return oo(rr(r)).left+Hs(r).scrollLeft}function yy(r,e){var t=qe(r),o=rr(r),n=t.visualViewport,i=o.clientWidth,s=o.clientHeight,l=0,p=0;if(n){i=n.width,s=n.height;var c=nu();(c||!c&&e==="fixed")&&(l=n.offsetLeft,p=n.offsetTop)}return{width:i,height:s,x:l+Ws(r),y:p}}function wy(r){var e,t=rr(r),o=Hs(r),n=(e=r.ownerDocument)==null?void 0:e.body,i=Br(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Br(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-o.scrollLeft+Ws(r),p=-o.scrollTop;return Pt(n||t).direction==="rtl"&&(l+=Br(t.clientWidth,n?n.clientWidth:0)-i),{width:i,height:s,x:l,y:p}}function Us(r){var e=Pt(r),t=e.overflow,o=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+o)}function uu(r){return["html","body","#document"].indexOf(xt(r))>=0?r.ownerDocument.body:tt(r)&&Us(r)?r:uu(mi(r))}function Yo(r,e){var t;e===void 0&&(e=[]);var o=uu(r),n=o===((t=r.ownerDocument)==null?void 0:t.body),i=qe(o),s=n?[i].concat(i.visualViewport||[],Us(o)?o:[]):o,l=e.concat(s);return n?l:l.concat(Yo(mi(s)))}function qs(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function vy(r,e){var t=oo(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function bu(r,e,t){return e===eu?qs(yy(r,t)):Nr(e)?vy(e,t):qs(wy(rr(r)))}function ky(r){var e=Yo(mi(r)),t=["absolute","fixed"].indexOf(Pt(r).position)>=0,o=t&&tt(r)?Go(r):r;return Nr(o)?e.filter(function(n){return Nr(n)&&iu(n,o)&&xt(n)!=="body"}):[]}function Ey(r,e,t,o){var n=e==="clippingParents"?ky(r):[].concat(e),i=[].concat(n,[t]),s=i[0],l=i.reduce(function(p,c){var d=bu(r,c,o);return p.top=Br(d.top,p.top),p.right=bi(d.right,p.right),p.bottom=bi(d.bottom,p.bottom),p.left=Br(d.left,p.left),p},bu(r,s,o));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function mu(r){var e=r.reference,t=r.element,o=r.placement,n=o?gt(o):null,i=o?no(o):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,p;switch(n){case Fe:p={x:s,y:e.y-t.height};break;case $e:p={x:s,y:e.y+e.height};break;case et:p={x:e.x+e.width,y:l};break;case je:p={x:e.x-t.width,y:l};break;default:p={x:e.x,y:e.y}}var c=n?js(n):null;if(c!=null){var d=c==="y"?"height":"width";switch(i){case to:p[c]=p[c]-(e[d]/2-t[d]/2);break;case qo:p[c]=p[c]+(e[d]/2-t[d]/2);break}}return p}function Xo(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=o===void 0?r.placement:o,i=t.strategy,s=i===void 0?r.strategy:i,l=t.boundary,p=l===void 0?U0:l,c=t.rootBoundary,d=c===void 0?eu:c,u=t.elementContext,b=u===void 0?Ko:u,m=t.altBoundary,f=m===void 0?!1:m,h=t.padding,x=h===void 0?0:h,y=lu(typeof x!="number"?x:pu(x,Uo)),w=b===Ko?q0:Ko,v=r.rects.popper,g=r.elements[f?w:b],S=Ey(Nr(g)?g:g.contextElement||rr(r.elements.popper),p,d,s),k=oo(r.elements.reference),C=mu({reference:k,element:v,placement:n}),O=qs(Object.assign({},v,C)),D=b===Ko?O:k,B={top:S.top-D.top+y.top,bottom:D.bottom-S.bottom+y.bottom,left:S.left-D.left+y.left,right:D.right-S.right+y.right},E=r.modifiersData.offset;if(b===Ko&&E){var P=E[n];Object.keys(B).forEach(function(_){var ee=[et,$e].indexOf(_)>=0?1:-1,re=[Fe,$e].indexOf(_)>=0?"y":"x";B[_]+=P[re]*ee})}return B}function Sy(r,e){e===void 0&&(e={});var t=e,o=t.placement,n=t.boundary,i=t.rootBoundary,s=t.padding,l=t.flipVariations,p=t.allowedAutoPlacements,c=p===void 0?ru:p,d=no(o),u=d?l?tu:tu.filter(function(f){return no(f)===d}):Uo,b=u.filter(function(f){return c.indexOf(f)>=0});b.length===0&&(b=u);var m=b.reduce(function(f,h){return f[h]=Xo(r,{placement:h,boundary:n,rootBoundary:i,padding:s})[gt(h)],f},{});return Object.keys(m).sort(function(f,h){return m[f]-m[h]})}function Cy(r){if(gt(r)===Rs)return[];var e=hi(r);return[du(r),e,du(e)]}function Ny(r){var e=r.state,t=r.options,o=r.name;if(!e.modifiersData[o]._skip){for(var n=t.mainAxis,i=n===void 0?!0:n,s=t.altAxis,l=s===void 0?!0:s,p=t.fallbackPlacements,c=t.padding,d=t.boundary,u=t.rootBoundary,b=t.altBoundary,m=t.flipVariations,f=m===void 0?!0:m,h=t.allowedAutoPlacements,x=e.options.placement,y=gt(x),w=y===x,v=p||(w||!f?[hi(x)]:Cy(x)),g=[x].concat(v).reduce(function(V,oe){return V.concat(gt(oe)===Rs?Sy(e,{placement:oe,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:h}):oe)},[]),S=e.rects.reference,k=e.rects.popper,C=new Map,O=!0,D=g[0],B=0;B<g.length;B++){var E=g[B],P=gt(E),_=no(E)===to,ee=[Fe,$e].indexOf(P)>=0,re=ee?"width":"height",G=Xo(e,{placement:E,boundary:d,rootBoundary:u,altBoundary:b,padding:c}),z=ee?_?et:je:_?$e:Fe;S[re]>k[re]&&(z=hi(z));var Q=hi(z),ne=[];if(i&&ne.push(G[P]<=0),l&&ne.push(G[z]<=0,G[Q]<=0),ne.every(function(V){return V})){D=E,O=!1;break}C.set(E,ne)}if(O)for(var Ge=f?3:1,dt=function(oe){var Et=g.find(function(bo){var Rt=C.get(bo);if(Rt)return Rt.slice(0,oe).every(function(mo){return mo})});if(Et)return D=Et,"break"},nt=Ge;nt>0;nt--){var W=dt(nt);if(W==="break")break}e.placement!==D&&(e.modifiersData[o]._skip=!0,e.placement=D,e.reset=!0)}}const By={name:"flip",enabled:!0,phase:"main",fn:Ny,requiresIfExists:["offset"],data:{_skip:!1}};function fu(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function hu(r){return[Fe,et,$e,je].some(function(e){return r[e]>=0})}function My(r){var e=r.state,t=r.name,o=e.rects.reference,n=e.rects.popper,i=e.modifiersData.preventOverflow,s=Xo(e,{elementContext:"reference"}),l=Xo(e,{altBoundary:!0}),p=fu(s,o),c=fu(l,n,i),d=hu(p),u=hu(c);e.modifiersData[t]={referenceClippingOffsets:p,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}const Ty={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:My};function Oy(r,e,t){var o=gt(r),n=[je,Fe].indexOf(o)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,s=i[0],l=i[1];return s=s||0,l=(l||0)*n,[je,et].indexOf(o)>=0?{x:l,y:s}:{x:s,y:l}}function Vy(r){var e=r.state,t=r.options,o=r.name,n=t.offset,i=n===void 0?[0,0]:n,s=ru.reduce(function(d,u){return d[u]=Oy(u,e.rects,i),d},{}),l=s[e.placement],p=l.x,c=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=p,e.modifiersData.popperOffsets.y+=c),e.modifiersData[o]=s}const Py={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vy};function Ay(r){var e=r.state,t=r.name;e.modifiersData[t]=mu({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Dy={name:"popperOffsets",enabled:!0,phase:"read",fn:Ay,data:{}};function Iy(r){return r==="x"?"y":"x"}function Ly(r){var e=r.state,t=r.options,o=r.name,n=t.mainAxis,i=n===void 0?!0:n,s=t.altAxis,l=s===void 0?!1:s,p=t.boundary,c=t.rootBoundary,d=t.altBoundary,u=t.padding,b=t.tether,m=b===void 0?!0:b,f=t.tetherOffset,h=f===void 0?0:f,x=Xo(e,{boundary:p,rootBoundary:c,padding:u,altBoundary:d}),y=gt(e.placement),w=no(e.placement),v=!w,g=js(y),S=Iy(g),k=e.modifiersData.popperOffsets,C=e.rects.reference,O=e.rects.popper,D=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,B=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,P={x:0,y:0};if(k){if(i){var _,ee=g==="y"?Fe:je,re=g==="y"?$e:et,G=g==="y"?"height":"width",z=k[g],Q=z+x[ee],ne=z-x[re],Ge=m?-O[G]/2:0,dt=w===to?C[G]:O[G],nt=w===to?-O[G]:-C[G],W=e.elements.arrow,V=m&&W?Fs(W):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:su(),Et=oe[ee],bo=oe[re],Rt=Jo(0,C[G],V[G]),mo=v?C[G]/2-Ge-Rt-Et-B.mainAxis:dt-Rt-Et-B.mainAxis,lr=v?-C[G]/2+Ge+Rt+bo+B.mainAxis:nt+Rt+bo+B.mainAxis,fo=e.elements.arrow&&Go(e.elements.arrow),aa=fo?g==="y"?fo.clientTop||0:fo.clientLeft||0:0,xn=(_=E==null?void 0:E[g])!=null?_:0,sa=z+mo-xn-aa,la=z+lr-xn,gn=Jo(m?bi(Q,sa):Q,z,m?Br(ne,la):ne);k[g]=gn,P[g]=gn-z}if(l){var yn,pa=g==="x"?Fe:je,ca=g==="x"?$e:et,zt=k[S],pr=S==="y"?"height":"width",wn=zt+x[pa],Pr=zt-x[ca],vn=[Fe,je].indexOf(y)!==-1,da=(yn=E==null?void 0:E[S])!=null?yn:0,ua=vn?wn:zt-C[pr]-O[pr]-da+B.altAxis,ba=vn?zt+C[pr]+O[pr]-da-B.altAxis:Pr,ma=m&&vn?ay(ua,zt,ba):Jo(m?ua:wn,zt,m?ba:Pr);k[S]=ma,P[S]=ma-zt}e.modifiersData[o]=P}}const Ry={name:"preventOverflow",enabled:!0,phase:"main",fn:Ly,requiresIfExists:["offset"]};function zy(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function _y(r){return r===qe(r)||!tt(r)?Hs(r):zy(r)}function Fy(r){var e=r.getBoundingClientRect(),t=ro(e.width)/r.offsetWidth||1,o=ro(e.height)/r.offsetHeight||1;return t!==1||o!==1}function jy(r,e,t){t===void 0&&(t=!1);var o=tt(e),n=tt(e)&&Fy(e),i=rr(e),s=oo(r,n,t),l={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!t)&&((xt(e)!=="body"||Us(i))&&(l=_y(e)),tt(e)?(p=oo(e,!0),p.x+=e.clientLeft,p.y+=e.clientTop):i&&(p.x=Ws(i))),{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function Hy(r){var e=new Map,t=new Set,o=[];r.forEach(function(i){e.set(i.name,i)});function n(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var p=e.get(l);p&&n(p)}}),o.push(i)}return r.forEach(function(i){t.has(i.name)||n(i)}),o}function Wy(r){var e=Hy(r);return ty.reduce(function(t,o){return t.concat(e.filter(function(n){return n.phase===o}))},[])}function Uy(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function qy(r){var e=r.reduce(function(t,o){var n=t[o.name];return t[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,t},{});return Object.keys(e).map(function(t){return e[t]})}var xu={placement:"bottom",modifiers:[],strategy:"absolute"};function gu(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Ky(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,o=t===void 0?[]:t,n=e.defaultOptions,i=n===void 0?xu:n;return function(l,p,c){c===void 0&&(c=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},xu,i),modifiersData:{},elements:{reference:l,popper:p},attributes:{},styles:{}},u=[],b=!1,m={state:d,setOptions:function(y){var w=typeof y=="function"?y(d.options):y;h(),d.options=Object.assign({},i,d.options,w),d.scrollParents={reference:Nr(l)?Yo(l):l.contextElement?Yo(l.contextElement):[],popper:Yo(p)};var v=Wy(qy([].concat(o,d.options.modifiers)));return d.orderedModifiers=v.filter(function(g){return g.enabled}),f(),m.update()},forceUpdate:function(){if(!b){var y=d.elements,w=y.reference,v=y.popper;if(gu(w,v)){d.rects={reference:jy(w,Go(v),d.options.strategy==="fixed"),popper:Fs(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(B){return d.modifiersData[B.name]=Object.assign({},B.data)});for(var g=0;g<d.orderedModifiers.length;g++){if(d.reset===!0){d.reset=!1,g=-1;continue}var S=d.orderedModifiers[g],k=S.fn,C=S.options,O=C===void 0?{}:C,D=S.name;typeof k=="function"&&(d=k({state:d,options:O,name:D,instance:m})||d)}}}},update:Uy(function(){return new Promise(function(x){m.forceUpdate(),x(d)})}),destroy:function(){h(),b=!0}};if(!gu(l,p))return m;m.setOptions(c).then(function(x){!b&&c.onFirstUpdate&&c.onFirstUpdate(x)});function f(){d.orderedModifiers.forEach(function(x){var y=x.name,w=x.options,v=w===void 0?{}:w,g=x.effect;if(typeof g=="function"){var S=g({state:d,name:y,instance:m,options:v}),k=function(){};u.push(S||k)}})}function h(){u.forEach(function(x){return x()}),u=[]}return m}}var Gy=[hy,Dy,my,ou,Py,By,Ry,cy,Ty],Jy=Ky({defaultModifiers:Gy}),Yy="tippy-box",yu="tippy-content",Xy="tippy-backdrop",wu="tippy-arrow",vu="tippy-svg-arrow",Mr={passive:!0,capture:!0},ku=function(){return document.body};function Qy(r,e){return{}.hasOwnProperty.call(r,e)}function Ks(r,e,t){if(Array.isArray(r)){var o=r[e];return o??(Array.isArray(t)?t[e]:t)}return r}function Gs(r,e){var t={}.toString.call(r);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function Eu(r,e){return typeof r=="function"?r.apply(void 0,e):r}function Su(r,e){if(e===0)return r;var t;return function(o){clearTimeout(t),t=setTimeout(function(){r(o)},e)}}function Zy(r,e){var t=Object.assign({},r);return e.forEach(function(o){delete t[o]}),t}function $y(r){return r.split(/\s+/).filter(Boolean)}function io(r){return[].concat(r)}function Cu(r,e){r.indexOf(e)===-1&&r.push(e)}function ew(r){return r.filter(function(e,t){return r.indexOf(e)===t})}function tw(r){return r.split("-")[0]}function xi(r){return[].slice.call(r)}function Nu(r){return Object.keys(r).reduce(function(e,t){return r[t]!==void 0&&(e[t]=r[t]),e},{})}function Qo(){return document.createElement("div")}function Zo(r){return["Element","Fragment"].some(function(e){return Gs(r,e)})}function rw(r){return Gs(r,"NodeList")}function ow(r){return Gs(r,"MouseEvent")}function nw(r){return!!(r&&r._tippy&&r._tippy.reference===r)}function iw(r){return Zo(r)?[r]:rw(r)?xi(r):Array.isArray(r)?r:xi(document.querySelectorAll(r))}function Js(r,e){r.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function Bu(r,e){r.forEach(function(t){t&&t.setAttribute("data-state",e)})}function aw(r){var e,t=io(r),o=t[0];return o!=null&&(e=o.ownerDocument)!=null&&e.body?o.ownerDocument:document}function sw(r,e){var t=e.clientX,o=e.clientY;return r.every(function(n){var i=n.popperRect,s=n.popperState,l=n.props,p=l.interactiveBorder,c=tw(s.placement),d=s.modifiersData.offset;if(!d)return!0;var u=c==="bottom"?d.top.y:0,b=c==="top"?d.bottom.y:0,m=c==="right"?d.left.x:0,f=c==="left"?d.right.x:0,h=i.top-o+u>p,x=o-i.bottom-b>p,y=i.left-t+m>p,w=t-i.right-f>p;return h||x||y||w})}function Ys(r,e,t){var o=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(n){r[o](n,t)})}function Mu(r,e){for(var t=e;t;){var o;if(r.contains(t))return!0;t=t.getRootNode==null||(o=t.getRootNode())==null?void 0:o.host}return!1}var yt={isTouch:!1},Tu=0;function lw(){yt.isTouch||(yt.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ou))}function Ou(){var r=performance.now();r-Tu<20&&(yt.isTouch=!1,document.removeEventListener("mousemove",Ou)),Tu=r}function pw(){var r=document.activeElement;if(nw(r)){var e=r._tippy;r.blur&&!e.state.isVisible&&r.blur()}}function cw(){document.addEventListener("touchstart",lw,Mr),window.addEventListener("blur",pw)}var dw=typeof window<"u"&&typeof document<"u",uw=dw?!!window.msCrypto:!1;function ao(r){var e=r==="destroy"?"n already-":" ";return[r+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Vu(r){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return r.replace(e," ").replace(t,"").trim()}function bw(r){return Vu(`
|
|
100
100
|
%ctippy.js
|
|
101
101
|
|
|
102
|
-
%c`+
|
|
102
|
+
%c`+Vu(r)+`
|
|
103
103
|
|
|
104
104
|
%c👷 This is a development-only message. It will be removed in production.
|
|
105
|
-
`)}function
|
|
105
|
+
`)}function Pu(r){return[bw(r),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var $o;process.env.NODE_ENV!=="production"&&mw();function mw(){$o=new Set}function At(r,e){if(r&&!$o.has(e)){var t;$o.add(e),(t=console).warn.apply(t,Pu(e))}}function Xs(r,e){if(r&&!$o.has(e)){var t;$o.add(e),(t=console).error.apply(t,Pu(e))}}function fw(r){var e=!r,t=Object.prototype.toString.call(r)==="[object Object]"&&!r.addEventListener;Xs(e,["tippy() was passed","`"+String(r)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Xs(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Au={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},hw={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ke=Object.assign({appendTo:ku,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Au,hw),xw=Object.keys(Ke),gw=function(e){process.env.NODE_ENV!=="production"&&Lu(e,[]);var t=Object.keys(e);t.forEach(function(o){Ke[o]=e[o]})};function Du(r){var e=r.plugins||[],t=e.reduce(function(o,n){var i=n.name,s=n.defaultValue;if(i){var l;o[i]=r[i]!==void 0?r[i]:(l=Ke[i])!=null?l:s}return o},{});return Object.assign({},r,t)}function yw(r,e){var t=e?Object.keys(Du(Object.assign({},Ke,{plugins:e}))):xw,o=t.reduce(function(n,i){var s=(r.getAttribute("data-tippy-"+i)||"").trim();if(!s)return n;if(i==="content")n[i]=s;else try{n[i]=JSON.parse(s)}catch{n[i]=s}return n},{});return o}function Iu(r,e){var t=Object.assign({},e,{content:Eu(e.content,[r])},e.ignoreAttributes?{}:yw(r,e.plugins));return t.aria=Object.assign({},Ke.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function Lu(r,e){r===void 0&&(r={}),e===void 0&&(e=[]);var t=Object.keys(r);t.forEach(function(o){var n=Zy(Ke,Object.keys(Au)),i=!Qy(n,o);i&&(i=e.filter(function(s){return s.name===o}).length===0),At(i,["`"+o+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
106
106
|
|
|
107
107
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
108
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var
|
|
108
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var ww=function(){return"innerHTML"};function Qs(r,e){r[ww()]=e}function Ru(r){var e=Qo();return r===!0?e.className=wu:(e.className=vu,Zo(r)?e.appendChild(r):Qs(e,r)),e}function zu(r,e){Zo(e.content)?(Qs(r,""),r.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Qs(r,e.content):r.textContent=e.content)}function Zs(r){var e=r.firstElementChild,t=xi(e.children);return{box:e,content:t.find(function(o){return o.classList.contains(yu)}),arrow:t.find(function(o){return o.classList.contains(wu)||o.classList.contains(vu)}),backdrop:t.find(function(o){return o.classList.contains(Xy)})}}function _u(r){var e=Qo(),t=Qo();t.className=Yy,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var o=Qo();o.className=yu,o.setAttribute("data-state","hidden"),zu(o,r.props),e.appendChild(t),t.appendChild(o),n(r.props,r.props);function n(i,s){var l=Zs(e),p=l.box,c=l.content,d=l.arrow;s.theme?p.setAttribute("data-theme",s.theme):p.removeAttribute("data-theme"),typeof s.animation=="string"?p.setAttribute("data-animation",s.animation):p.removeAttribute("data-animation"),s.inertia?p.setAttribute("data-inertia",""):p.removeAttribute("data-inertia"),p.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?p.setAttribute("role",s.role):p.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&zu(c,r.props),s.arrow?d?i.arrow!==s.arrow&&(p.removeChild(d),p.appendChild(Ru(s.arrow))):p.appendChild(Ru(s.arrow)):d&&p.removeChild(d)}return{popper:e,onUpdate:n}}_u.$$tippy=!0;var vw=1,gi=[],$s=[];function kw(r,e){var t=Iu(r,Object.assign({},Ke,Du(Nu(e)))),o,n,i,s=!1,l=!1,p=!1,c=!1,d,u,b,m=[],f=Su(sa,t.interactiveDebounce),h,x=vw++,y=null,w=ew(t.plugins),v={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},g={id:x,reference:r,popper:Qo(),popperInstance:y,props:t,state:v,plugins:w,clearDelayTimeouts:ua,setProps:ba,setContent:ma,show:rC,hide:oC,hideWithInteractivity:nC,enable:vn,disable:da,unmount:iC,destroy:aC};if(!t.render)return process.env.NODE_ENV!=="production"&&Xs(!0,"render() function has not been supplied."),g;var S=t.render(g),k=S.popper,C=S.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+g.id,g.popper=k,r._tippy=g,k._tippy=g;var O=w.map(function(N){return N.fn(g)}),D=r.hasAttribute("aria-expanded");return fo(),Ge(),z(),Q("onCreate",[g]),t.showOnCreate&&wn(),k.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),k.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&ee().addEventListener("mousemove",f)}),g;function B(){var N=g.props.touch;return Array.isArray(N)?N:[N,0]}function E(){return B()[0]==="hold"}function P(){var N;return!!((N=g.props.render)!=null&&N.$$tippy)}function _(){return h||r}function ee(){var N=_().parentNode;return N?aw(N):document}function re(){return Zs(k)}function G(N){return g.state.isMounted&&!g.state.isVisible||yt.isTouch||d&&d.type==="focus"?0:Ks(g.props.delay,N?0:1,Ke.delay)}function z(N){N===void 0&&(N=!1),k.style.pointerEvents=g.props.interactive&&!N?"":"none",k.style.zIndex=""+g.props.zIndex}function Q(N,L,F){if(F===void 0&&(F=!0),O.forEach(function(X){X[N]&&X[N].apply(X,L)}),F){var Z;(Z=g.props)[N].apply(Z,L)}}function ne(){var N=g.props.aria;if(N.content){var L="aria-"+N.content,F=k.id,Z=io(g.props.triggerTarget||r);Z.forEach(function(X){var ze=X.getAttribute(L);if(g.state.isVisible)X.setAttribute(L,ze?ze+" "+F:F);else{var it=ze&&ze.replace(F,"").trim();it?X.setAttribute(L,it):X.removeAttribute(L)}})}}function Ge(){if(!(D||!g.props.aria.expanded)){var N=io(g.props.triggerTarget||r);N.forEach(function(L){g.props.interactive?L.setAttribute("aria-expanded",g.state.isVisible&&L===_()?"true":"false"):L.removeAttribute("aria-expanded")})}}function dt(){ee().removeEventListener("mousemove",f),gi=gi.filter(function(N){return N!==f})}function nt(N){if(!(yt.isTouch&&(p||N.type==="mousedown"))){var L=N.composedPath&&N.composedPath()[0]||N.target;if(!(g.props.interactive&&Mu(k,L))){if(io(g.props.triggerTarget||r).some(function(F){return Mu(F,L)})){if(yt.isTouch||g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else Q("onClickOutside",[g,N]);g.props.hideOnClick===!0&&(g.clearDelayTimeouts(),g.hide(),l=!0,setTimeout(function(){l=!1}),g.state.isMounted||Et())}}}function W(){p=!0}function V(){p=!1}function oe(){var N=ee();N.addEventListener("mousedown",nt,!0),N.addEventListener("touchend",nt,Mr),N.addEventListener("touchstart",V,Mr),N.addEventListener("touchmove",W,Mr)}function Et(){var N=ee();N.removeEventListener("mousedown",nt,!0),N.removeEventListener("touchend",nt,Mr),N.removeEventListener("touchstart",V,Mr),N.removeEventListener("touchmove",W,Mr)}function bo(N,L){mo(N,function(){!g.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&L()})}function Rt(N,L){mo(N,L)}function mo(N,L){var F=re().box;function Z(X){X.target===F&&(Ys(F,"remove",Z),L())}if(N===0)return L();Ys(F,"remove",u),Ys(F,"add",Z),u=Z}function lr(N,L,F){F===void 0&&(F=!1);var Z=io(g.props.triggerTarget||r);Z.forEach(function(X){X.addEventListener(N,L,F),m.push({node:X,eventType:N,handler:L,options:F})})}function fo(){E()&&(lr("touchstart",xn,{passive:!0}),lr("touchend",la,{passive:!0})),$y(g.props.trigger).forEach(function(N){if(N!=="manual")switch(lr(N,xn),N){case"mouseenter":lr("mouseleave",la);break;case"focus":lr(uw?"focusout":"blur",gn);break;case"focusin":lr("focusout",gn);break}})}function aa(){m.forEach(function(N){var L=N.node,F=N.eventType,Z=N.handler,X=N.options;L.removeEventListener(F,Z,X)}),m=[]}function xn(N){var L,F=!1;if(!(!g.state.isEnabled||yn(N)||l)){var Z=((L=d)==null?void 0:L.type)==="focus";d=N,h=N.currentTarget,Ge(),!g.state.isVisible&&ow(N)&&gi.forEach(function(X){return X(N)}),N.type==="click"&&(g.props.trigger.indexOf("mouseenter")<0||s)&&g.props.hideOnClick!==!1&&g.state.isVisible?F=!0:wn(N),N.type==="click"&&(s=!F),F&&!Z&&Pr(N)}}function sa(N){var L=N.target,F=_().contains(L)||k.contains(L);if(!(N.type==="mousemove"&&F)){var Z=pr().concat(k).map(function(X){var ze,it=X._tippy,ho=(ze=it.popperInstance)==null?void 0:ze.state;return ho?{popperRect:X.getBoundingClientRect(),popperState:ho,props:t}:null}).filter(Boolean);sw(Z,N)&&(dt(),Pr(N))}}function la(N){var L=yn(N)||g.props.trigger.indexOf("click")>=0&&s;if(!L){if(g.props.interactive){g.hideWithInteractivity(N);return}Pr(N)}}function gn(N){g.props.trigger.indexOf("focusin")<0&&N.target!==_()||g.props.interactive&&N.relatedTarget&&k.contains(N.relatedTarget)||Pr(N)}function yn(N){return yt.isTouch?E()!==N.type.indexOf("touch")>=0:!1}function pa(){ca();var N=g.props,L=N.popperOptions,F=N.placement,Z=N.offset,X=N.getReferenceClientRect,ze=N.moveTransition,it=P()?Zs(k).arrow:null,ho=X?{getBoundingClientRect:X,contextElement:X.contextElement||_()}:r,Db={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(fa){var xo=fa.state;if(P()){var sC=re(),Al=sC.box;["placement","reference-hidden","escaped"].forEach(function(ha){ha==="placement"?Al.setAttribute("data-placement",xo.placement):xo.attributes.popper["data-popper-"+ha]?Al.setAttribute("data-"+ha,""):Al.removeAttribute("data-"+ha)}),xo.attributes.popper={}}}},Ar=[{name:"offset",options:{offset:Z}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!ze}},Db];P()&&it&&Ar.push({name:"arrow",options:{element:it,padding:3}}),Ar.push.apply(Ar,(L==null?void 0:L.modifiers)||[]),g.popperInstance=Jy(ho,k,Object.assign({},L,{placement:F,onFirstUpdate:b,modifiers:Ar}))}function ca(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function zt(){var N=g.props.appendTo,L,F=_();g.props.interactive&&N===ku||N==="parent"?L=F.parentNode:L=Eu(N,[F]),L.contains(k)||L.appendChild(k),g.state.isMounted=!0,pa(),process.env.NODE_ENV!=="production"&&At(g.props.interactive&&N===Ke.appendTo&&F.nextElementSibling!==k,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
109
109
|
|
|
110
110
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
111
111
|
|
|
112
112
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
113
113
|
|
|
114
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function
|
|
114
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function pr(){return xi(k.querySelectorAll("[data-tippy-root]"))}function wn(N){g.clearDelayTimeouts(),N&&Q("onTrigger",[g,N]),oe();var L=G(!0),F=B(),Z=F[0],X=F[1];yt.isTouch&&Z==="hold"&&X&&(L=X),L?o=setTimeout(function(){g.show()},L):g.show()}function Pr(N){if(g.clearDelayTimeouts(),Q("onUntrigger",[g,N]),!g.state.isVisible){Et();return}if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(N.type)>=0&&s)){var L=G(!1);L?n=setTimeout(function(){g.state.isVisible&&g.hide()},L):i=requestAnimationFrame(function(){g.hide()})}}function vn(){g.state.isEnabled=!0}function da(){g.hide(),g.state.isEnabled=!1}function ua(){clearTimeout(o),clearTimeout(n),cancelAnimationFrame(i)}function ba(N){if(process.env.NODE_ENV!=="production"&&At(g.state.isDestroyed,ao("setProps")),!g.state.isDestroyed){Q("onBeforeUpdate",[g,N]),aa();var L=g.props,F=Iu(r,Object.assign({},L,Nu(N),{ignoreAttributes:!0}));g.props=F,fo(),L.interactiveDebounce!==F.interactiveDebounce&&(dt(),f=Su(sa,F.interactiveDebounce)),L.triggerTarget&&!F.triggerTarget?io(L.triggerTarget).forEach(function(Z){Z.removeAttribute("aria-expanded")}):F.triggerTarget&&r.removeAttribute("aria-expanded"),Ge(),z(),C&&C(L,F),g.popperInstance&&(pa(),pr().forEach(function(Z){requestAnimationFrame(Z._tippy.popperInstance.forceUpdate)})),Q("onAfterUpdate",[g,N])}}function ma(N){g.setProps({content:N})}function rC(){process.env.NODE_ENV!=="production"&&At(g.state.isDestroyed,ao("show"));var N=g.state.isVisible,L=g.state.isDestroyed,F=!g.state.isEnabled,Z=yt.isTouch&&!g.props.touch,X=Ks(g.props.duration,0,Ke.duration);if(!(N||L||F||Z)&&!_().hasAttribute("disabled")&&(Q("onShow",[g],!1),g.props.onShow(g)!==!1)){if(g.state.isVisible=!0,P()&&(k.style.visibility="visible"),z(),oe(),g.state.isMounted||(k.style.transition="none"),P()){var ze=re(),it=ze.box,ho=ze.content;Js([it,ho],0)}b=function(){var Ar;if(!(!g.state.isVisible||c)){if(c=!0,k.offsetHeight,k.style.transition=g.props.moveTransition,P()&&g.props.animation){var Pl=re(),fa=Pl.box,xo=Pl.content;Js([fa,xo],X),Bu([fa,xo],"visible")}ne(),Ge(),Cu($s,g),(Ar=g.popperInstance)==null||Ar.forceUpdate(),Q("onMount",[g]),g.props.animation&&P()&&Rt(X,function(){g.state.isShown=!0,Q("onShown",[g])})}},zt()}}function oC(){process.env.NODE_ENV!=="production"&&At(g.state.isDestroyed,ao("hide"));var N=!g.state.isVisible,L=g.state.isDestroyed,F=!g.state.isEnabled,Z=Ks(g.props.duration,1,Ke.duration);if(!(N||L||F)&&(Q("onHide",[g],!1),g.props.onHide(g)!==!1)){if(g.state.isVisible=!1,g.state.isShown=!1,c=!1,s=!1,P()&&(k.style.visibility="hidden"),dt(),Et(),z(!0),P()){var X=re(),ze=X.box,it=X.content;g.props.animation&&(Js([ze,it],Z),Bu([ze,it],"hidden"))}ne(),Ge(),g.props.animation?P()&&bo(Z,g.unmount):g.unmount()}}function nC(N){process.env.NODE_ENV!=="production"&&At(g.state.isDestroyed,ao("hideWithInteractivity")),ee().addEventListener("mousemove",f),Cu(gi,f),f(N)}function iC(){process.env.NODE_ENV!=="production"&&At(g.state.isDestroyed,ao("unmount")),g.state.isVisible&&g.hide(),g.state.isMounted&&(ca(),pr().forEach(function(N){N._tippy.unmount()}),k.parentNode&&k.parentNode.removeChild(k),$s=$s.filter(function(N){return N!==g}),g.state.isMounted=!1,Q("onHidden",[g]))}function aC(){process.env.NODE_ENV!=="production"&&At(g.state.isDestroyed,ao("destroy")),!g.state.isDestroyed&&(g.clearDelayTimeouts(),g.unmount(),aa(),delete r._tippy,g.state.isDestroyed=!0,Q("onDestroy",[g]))}}function so(r,e){e===void 0&&(e={});var t=Ke.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(fw(r),Lu(e,t)),cw();var o=Object.assign({},e,{plugins:t}),n=iw(r);if(process.env.NODE_ENV!=="production"){var i=Zo(o.content),s=n.length>1;At(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
115
115
|
|
|
116
116
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
117
117
|
|
|
118
118
|
`,`1) content: element.innerHTML
|
|
119
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=n.reduce(function(c,d){var u=d&&x1(d,o);return u&&c.push(u),c},[]);return Xo(r)?l[0]:l}io.defaultProps=Ke,io.setDefaultProps=b1,io.currentInput=yt,Object.assign({},rp,{effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow)}}),io.setDefaultProps({render:zp});class k1{constructor({editor:e,element:t,view:o,tippyOptions:n={},updateDelay:i=250,shouldShow:a}){this.preventHide=!1,this.shouldShow=({view:l,state:c,from:d,to:u})=>{const{doc:p,selection:m}=c,{empty:h}=m,f=!p.textBetween(d,u).length&&Bs(c.selection),g=this.element.contains(document.activeElement);return!(!(l.hasFocus()||g)||h||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var c;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(l.relatedTarget))||(l==null?void 0:l.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,c)=>{const d=!(c!=null&&c.selection.eq(l.state.selection)),u=!(c!=null&&c.doc.eq(l.state.doc));!d&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,d,u,c)},this.updateDelay))},this.updateHandler=(l,c,d,u)=>{var p,m,h;const{state:f,composing:g}=l,{selection:b}=f;if(g||!c&&!d)return;this.createTooltip();const{ranges:k}=b,v=Math.min(...k.map(x=>x.$from.pos)),w=Math.max(...k.map(x=>x.$to.pos));if(!((p=this.shouldShow)===null||p===void 0?void 0:p.call(this,{editor:this.editor,element:this.element,view:l,state:f,oldState:u,from:v,to:w}))){this.hide();return}(m=this.tippy)===null||m===void 0||m.setProps({getReferenceClientRect:((h=this.tippyOptions)===null||h===void 0?void 0:h.getReferenceClientRect)||(()=>{if(Xu(f.selection)){let x=l.nodeDOM(v);if(x){const C=x.dataset.nodeViewWrapper?x:x.querySelector("[data-node-view-wrapper]");if(C&&(x=C.firstChild),x)return x.getBoundingClientRect()}}return Qu(l,v,w)})}),this.show()},this.editor=e,this.element=t,this.view=o,this.updateDelay=i,a&&(this.shouldShow=a),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=io(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:o}=e,n=o.selection.from!==o.selection.to;if(this.updateDelay>0&&n){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),a=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,a,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const _p=r=>new he({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new k1({view:e,...r})});Be.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[_p({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class E1{getTextContent(e){return Ju(e,{textSerializers:Cs(this.editor.schema)})}constructor({editor:e,element:t,view:o,tippyOptions:n={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:a,state:l})=>{const{selection:c}=l,{$anchor:d,empty:u}=c,p=d.depth===1,m=d.parent.isTextblock&&!d.parent.type.spec.code&&!d.parent.textContent&&d.parent.childCount===0&&!this.getTextContent(d.parent);return!(!a.hasFocus()||!u||!p||!m||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(a.relatedTarget))||(a==null?void 0:a.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.editor=e,this.element=t,this.view=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=io(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var o,n,i;const{state:a}=e,{doc:l,selection:c}=a,{from:d,to:u}=c;if(t&&t.doc.eq(l)&&t.selection.eq(c))return;if(this.createTooltip(),!((o=this.shouldShow)===null||o===void 0?void 0:o.call(this,{editor:this.editor,view:e,state:a,oldState:t}))){this.hide();return}(n=this.tippy)===null||n===void 0||n.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Qu(e,d,u))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Fp=r=>new he({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new E1({view:e,...r})});Be.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Fp({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),s.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=s.ref(null);return s.onMounted(()=>{const{updateDelay:o,editor:n,pluginKey:i,shouldShow:a,tippyOptions:l}=r;n.registerPlugin(_p({updateDelay:o,editor:n,element:t.value,pluginKey:i,shouldShow:a,tippyOptions:l}))}),s.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return s.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}});function jp(r){return s.customRef((e,t)=>({get(){return e(),r},set(o){r=o,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class S1 extends jw{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=jp(this.view.state),this.reactiveExtensionStorage=jp(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),s.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const o=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=o),o}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}}const C1=s.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(r){const e=s.ref(),t=s.getCurrentInstance();return s.watchEffect(()=>{const o=r.editor;o&&o.options.element&&e.value&&s.nextTick(()=>{if(!e.value||!o.options.element.firstChild)return;const n=s.unref(e.value);e.value.append(...o.options.element.childNodes),o.contentComponent=t.ctx._,t&&(o.appContext={...t.appContext,provides:t.provides}),o.setOptions({element:n}),o.createNodeViews()})}),s.onBeforeUnmount(()=>{const o=r.editor;o&&(o.contentComponent=null,o.appContext=null)}),{rootEl:e}},render(){return s.h("div",{ref:r=>{this.rootEl=r}})}});s.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=s.ref(null);return s.onMounted(()=>{const{pluginKey:o,editor:n,tippyOptions:i,shouldShow:a}=r;n.registerPlugin(Fp({pluginKey:o,editor:n,element:t.value,tippyOptions:i,shouldShow:a}))}),s.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return s.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}}),s.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return s.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),s.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var r,e;return s.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(r=this.$slots).default)===null||e===void 0?void 0:e.call(r))}});const N1=(r={})=>{const e=s.shallowRef();return s.onMounted(()=>{e.value=new S1(r)}),s.onBeforeUnmount(()=>{var t,o,n;const i=(t=e.value)===null||t===void 0?void 0:t.options.element,a=i==null?void 0:i.cloneNode(!0);(o=i==null?void 0:i.parentNode)===null||o===void 0||o.replaceChild(a,i),(n=e.value)===null||n===void 0||n.destroy()}),e},B1=/^\s*>\s$/,M1=lt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:r}){return["blockquote",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBlockquote:()=>({commands:r})=>r.wrapIn(this.name),toggleBlockquote:()=>({commands:r})=>r.toggleWrap(this.name),unsetBlockquote:()=>({commands:r})=>r.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[jo({find:B1,type:this.type})]}}),T1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,O1=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,V1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,P1=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,A1=Ot.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:r=>r.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:r=>r.type.name===this.name},{style:"font-weight",getAttrs:r=>/^(bold(er)?|[5-9]\d{2,})$/.test(r)&&null}]},renderHTML({HTMLAttributes:r}){return["strong",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBold:()=>({commands:r})=>r.setMark(this.name),toggleBold:()=>({commands:r})=>r.toggleMark(this.name),unsetBold:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Zr({find:T1,type:this.type}),Zr({find:V1,type:this.type})]},addPasteRules(){return[Sr({find:O1,type:this.type}),Sr({find:P1,type:this.type})]}}),D1="listItem",Hp="textStyle",Wp=/^\s*([-+*])\s$/,I1=lt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:r}){return["ul",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleBulletList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(D1,this.editor.getAttributes(Hp)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let r=jo({find:Wp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(r=jo({find:Wp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Hp),editor:this.editor})),[r]}}),L1=/(^|[^`])`([^`]+)`(?!`)/,R1=/(^|[^`])`([^`]+)`(?!`)/g,z1=Ot.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:r}){return["code",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setCode:()=>({commands:r})=>r.setMark(this.name),toggleCode:()=>({commands:r})=>r.toggleMark(this.name),unsetCode:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Zr({find:L1,type:this.type})]},addPasteRules(){return[Sr({find:R1,type:this.type})]}}),_1=/^```([a-z]+)?[\s\n]$/,F1=/^~~~([a-z]+)?[\s\n]$/,j1=lt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:r=>{var e;const{languageClassPrefix:t}=this.options,i=[...((e=r.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(a=>a.startsWith(t)).map(a=>a.replace(t,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:r,HTMLAttributes:e}){return["pre",Ne(this.options.HTMLAttributes,e),["code",{class:r.attrs.language?this.options.languageClassPrefix+r.attrs.language:null},0]]},addCommands(){return{setCodeBlock:r=>({commands:e})=>e.setNode(this.name,r),toggleCodeBlock:r=>({commands:e})=>e.toggleNode(this.name,"paragraph",r)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:r,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!r||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:r})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=r,{selection:t}=e,{$from:o,empty:n}=t;if(!n||o.parent.type!==this.type)return!1;const i=o.parentOffset===o.parent.nodeSize-2,a=o.parent.textContent.endsWith(`
|
|
119
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=n.reduce(function(p,c){var d=c&&kw(c,o);return d&&p.push(d),p},[]);return Zo(r)?l[0]:l}so.defaultProps=Ke,so.setDefaultProps=gw,so.currentInput=yt,Object.assign({},ou,{effect:function(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow)}}),so.setDefaultProps({render:_u});class Ew{constructor({editor:e,element:t,view:o,tippyOptions:n={},updateDelay:i=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:l,state:p,from:c,to:d})=>{const{doc:u,selection:b}=p,{empty:m}=b,f=!u.textBetween(c,d).length&&Bs(p.selection),h=this.element.contains(document.activeElement);return!(!(l.hasFocus()||h)||m||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:l})=>{var p;if(this.preventHide){this.preventHide=!1;return}l!=null&&l.relatedTarget&&(!((p=this.element.parentNode)===null||p===void 0)&&p.contains(l.relatedTarget))||(l==null?void 0:l.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=l=>{this.blurHandler({event:l})},this.handleDebouncedUpdate=(l,p)=>{const c=!(p!=null&&p.selection.eq(l.state.selection)),d=!(p!=null&&p.doc.eq(l.state.doc));!c&&!d||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(l,c,d,p)},this.updateDelay))},this.updateHandler=(l,p,c,d)=>{var u,b,m;const{state:f,composing:h}=l,{selection:x}=f;if(h||!p&&!c)return;this.createTooltip();const{ranges:w}=x,v=Math.min(...w.map(k=>k.$from.pos)),g=Math.max(...w.map(k=>k.$to.pos));if(!((u=this.shouldShow)===null||u===void 0?void 0:u.call(this,{editor:this.editor,element:this.element,view:l,state:f,oldState:d,from:v,to:g}))){this.hide();return}(b=this.tippy)===null||b===void 0||b.setProps({getReferenceClientRect:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(Qd(f.selection)){let k=l.nodeDOM(v);if(k){const C=k.dataset.nodeViewWrapper?k:k.querySelector("[data-node-view-wrapper]");if(C&&(k=C.firstChild),k)return k.getBoundingClientRect()}}return Zd(l,v,g)})}),this.show()},this.editor=e,this.element=t,this.view=o,this.updateDelay=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=so(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:o}=e,n=o.selection.from!==o.selection.to;if(this.updateDelay>0&&n){this.handleDebouncedUpdate(e,t);return}const i=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,i,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Fu=r=>new me({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new Ew({view:e,...r})});Be.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Fu({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class Sw{getTextContent(e){return Jd(e,{textSerializers:Cs(this.editor.schema)})}constructor({editor:e,element:t,view:o,tippyOptions:n={},shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l})=>{const{selection:p}=l,{$anchor:c,empty:d}=p,u=c.depth===1,b=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent&&c.parent.childCount===0&&!this.getTextContent(c.parent);return!(!s.hasFocus()||!d||!u||!b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget))||(s==null?void 0:s.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=n,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=so(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var o,n,i;const{state:s}=e,{doc:l,selection:p}=s,{from:c,to:d}=p;if(t&&t.doc.eq(l)&&t.selection.eq(p))return;if(this.createTooltip(),!((o=this.shouldShow)===null||o===void 0?void 0:o.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(n=this.tippy)===null||n===void 0||n.setProps({getReferenceClientRect:((i=this.tippyOptions)===null||i===void 0?void 0:i.getReferenceClientRect)||(()=>Zd(e,c,d))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const ju=r=>new me({key:typeof r.pluginKey=="string"?new Ae(r.pluginKey):r.pluginKey,view:e=>new Sw({view:e,...r})});Be.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[ju({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),a.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=a.ref(null);return a.onMounted(()=>{const{updateDelay:o,editor:n,pluginKey:i,shouldShow:s,tippyOptions:l}=r;n.registerPlugin(Fu({updateDelay:o,editor:n,element:t.value,pluginKey:i,shouldShow:s,tippyOptions:l}))}),a.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return a.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}});function Hu(r){return a.customRef((e,t)=>({get(){return e(),r},set(o){r=o,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class Cw extends H0{constructor(e={}){return super(e),this.contentComponent=null,this.appContext=null,this.reactiveState=Hu(this.view.state),this.reactiveExtensionStorage=Hu(this.extensionStorage),this.on("beforeTransaction",({nextState:t})=>{this.reactiveState.value=t,this.reactiveExtensionStorage.value=this.extensionStorage}),a.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){const o=super.registerPlugin(e,t);return this.reactiveState&&(this.reactiveState.value=o),o}unregisterPlugin(e){const t=super.unregisterPlugin(e);return this.reactiveState&&t&&(this.reactiveState.value=t),t}}const Nw=a.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(r){const e=a.ref(),t=a.getCurrentInstance();return a.watchEffect(()=>{const o=r.editor;o&&o.options.element&&e.value&&a.nextTick(()=>{if(!e.value||!o.options.element.firstChild)return;const n=a.unref(e.value);e.value.append(...o.options.element.childNodes),o.contentComponent=t.ctx._,t&&(o.appContext={...t.appContext,provides:t.provides}),o.setOptions({element:n}),o.createNodeViews()})}),a.onBeforeUnmount(()=>{const o=r.editor;o&&(o.contentComponent=null,o.appContext=null)}),{rootEl:e}},render(){return a.h("div",{ref:r=>{this.rootEl=r}})}});a.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(r,{slots:e}){const t=a.ref(null);return a.onMounted(()=>{const{pluginKey:o,editor:n,tippyOptions:i,shouldShow:s}=r;n.registerPlugin(ju({pluginKey:o,editor:n,element:t.value,tippyOptions:i,shouldShow:s}))}),a.onBeforeUnmount(()=>{const{pluginKey:o,editor:n}=r;n.unregisterPlugin(o)}),()=>{var o;return a.h("div",{ref:t},(o=e.default)===null||o===void 0?void 0:o.call(e))}}}),a.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return a.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),a.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var r,e;return a.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(r=this.$slots).default)===null||e===void 0?void 0:e.call(r))}});const Bw=(r={})=>{const e=a.shallowRef();return a.onMounted(()=>{e.value=new Cw(r)}),a.onBeforeUnmount(()=>{var t,o,n;const i=(t=e.value)===null||t===void 0?void 0:t.options.element,s=i==null?void 0:i.cloneNode(!0);(o=i==null?void 0:i.parentNode)===null||o===void 0||o.replaceChild(s,i),(n=e.value)===null||n===void 0||n.destroy()}),e},Mw=/^\s*>\s$/,Tw=lt.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:r}){return["blockquote",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBlockquote:()=>({commands:r})=>r.wrapIn(this.name),toggleBlockquote:()=>({commands:r})=>r.toggleWrap(this.name),unsetBlockquote:()=>({commands:r})=>r.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Wo({find:Mw,type:this.type})]}}),Ow=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,Vw=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Pw=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Aw=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Dw=Ot.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:r=>r.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:r=>r.type.name===this.name},{style:"font-weight",getAttrs:r=>/^(bold(er)?|[5-9]\d{2,})$/.test(r)&&null}]},renderHTML({HTMLAttributes:r}){return["strong",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setBold:()=>({commands:r})=>r.setMark(this.name),toggleBold:()=>({commands:r})=>r.toggleMark(this.name),unsetBold:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[eo({find:Ow,type:this.type}),eo({find:Pw,type:this.type})]},addPasteRules(){return[Cr({find:Vw,type:this.type}),Cr({find:Aw,type:this.type})]}}),Iw="listItem",Wu="textStyle",Uu=/^\s*([-+*])\s$/,Lw=lt.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:r}){return["ul",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleBulletList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Iw,this.editor.getAttributes(Wu)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let r=Wo({find:Uu,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(r=Wo({find:Uu,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Wu),editor:this.editor})),[r]}}),Rw=/(^|[^`])`([^`]+)`(?!`)/,zw=/(^|[^`])`([^`]+)`(?!`)/g,_w=Ot.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:r}){return["code",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setCode:()=>({commands:r})=>r.setMark(this.name),toggleCode:()=>({commands:r})=>r.toggleMark(this.name),unsetCode:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[eo({find:Rw,type:this.type})]},addPasteRules(){return[Cr({find:zw,type:this.type})]}}),Fw=/^```([a-z]+)?[\s\n]$/,jw=/^~~~([a-z]+)?[\s\n]$/,Hw=lt.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:r=>{var e;const{languageClassPrefix:t}=this.options,i=[...((e=r.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(t)).map(s=>s.replace(t,""))[0];return i||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:r,HTMLAttributes:e}){return["pre",Ne(this.options.HTMLAttributes,e),["code",{class:r.attrs.language?this.options.languageClassPrefix+r.attrs.language:null},0]]},addCommands(){return{setCodeBlock:r=>({commands:e})=>e.setNode(this.name,r),toggleCodeBlock:r=>({commands:e})=>e.toggleNode(this.name,"paragraph",r)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:r,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!r||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:r})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=r,{selection:t}=e,{$from:o,empty:n}=t;if(!n||o.parent.type!==this.type)return!1;const i=o.parentOffset===o.parent.nodeSize-2,s=o.parent.textContent.endsWith(`
|
|
120
120
|
|
|
121
|
-
`);return!i||!
|
|
122
|
-
`));return
|
|
123
|
-
`},addCommands(){return{setHardBreak:()=>({commands:r,chain:e,state:t,editor:o})=>r.first([()=>r.exitCode(),()=>r.command(()=>{const{selection:n,storedMarks:i}=t;if(n.$from.parent.type.spec.isolating)return!1;const{keepMarks:a}=this.options,{splittableMarks:l}=o.extensionManager,c=i||n.$to.parentOffset&&n.$from.marks();return e().insertContent({type:this.name}).command(({tr:d,dispatch:u})=>{if(u&&c&&a){const p=c.filter(m=>l.includes(m.type.name));d.ensureMarks(p)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),tv=lt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(r=>({tag:`h${r}`,attrs:{level:r}}))},renderHTML({node:r,HTMLAttributes:e}){return[`h${this.options.levels.includes(r.attrs.level)?r.attrs.level:this.options.levels[0]}`,Ne(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.setNode(this.name,r):!1,toggleHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.toggleNode(this.name,"paragraph",r):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((r,e)=>({...r,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(r=>Ls({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${r}})\\s$`),type:this.type,getAttributes:{level:r}}))}});var yi=200,ve=function(){};ve.prototype.append=function(e){return e.length?(e=ve.from(e),!this.length&&e||e.length<yi&&this.leafAppend(e)||this.length<yi&&e.leafPrepend(this)||this.appendInner(e)):this},ve.prototype.prepend=function(e){return e.length?ve.from(e).append(this):this},ve.prototype.appendInner=function(e){return new rv(this,e)},ve.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?ve.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},ve.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},ve.prototype.forEach=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length),t<=o?this.forEachInner(e,t,o,0):this.forEachInvertedInner(e,t,o,0)},ve.prototype.map=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length);var n=[];return this.forEach(function(i,a){return n.push(e(i,a))},t,o),n},ve.from=function(e){return e instanceof ve?e:e&&e.length?new qp(e):ve.empty};var qp=function(r){function e(o){r.call(this),this.values=o}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(n,i){return n==0&&i==this.length?this:new e(this.values.slice(n,i))},e.prototype.getInner=function(n){return this.values[n]},e.prototype.forEachInner=function(n,i,a,l){for(var c=i;c<a;c++)if(n(this.values[c],l+c)===!1)return!1},e.prototype.forEachInvertedInner=function(n,i,a,l){for(var c=i-1;c>=a;c--)if(n(this.values[c],l+c)===!1)return!1},e.prototype.leafAppend=function(n){if(this.length+n.length<=yi)return new e(this.values.concat(n.flatten()))},e.prototype.leafPrepend=function(n){if(this.length+n.length<=yi)return new e(n.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(ve);ve.empty=new qp([]);var rv=function(r){function e(t,o){r.call(this),this.left=t,this.right=o,this.length=t.length+o.length,this.depth=Math.max(t.depth,o.depth)+1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},e.prototype.forEachInner=function(o,n,i,a){var l=this.left.length;if(n<l&&this.left.forEachInner(o,n,Math.min(i,l),a)===!1||i>l&&this.right.forEachInner(o,Math.max(n-l,0),Math.min(this.length,i)-l,a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(o,n,i,a){var l=this.left.length;if(n>l&&this.right.forEachInvertedInner(o,n-l,Math.max(i,l)-l,a+l)===!1||i<l&&this.left.forEachInvertedInner(o,Math.min(n,l),i,a)===!1)return!1},e.prototype.sliceInner=function(o,n){if(o==0&&n==this.length)return this;var i=this.left.length;return n<=i?this.left.slice(o,n):o>=i?this.right.slice(o-i,n-i):this.left.slice(o,i).append(this.right.slice(0,n-i))},e.prototype.leafAppend=function(o){var n=this.right.leafAppend(o);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(o){var n=this.left.leafPrepend(o);if(n)return new e(n,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e}(ve);const ov=500;class ct{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let n,i;t&&(n=this.remapping(o,this.items.length),i=n.maps.length);let a=e.tr,l,c,d=[],u=[];return this.items.forEach((p,m)=>{if(!p.step){n||(n=this.remapping(o,m+1),i=n.maps.length),i--,u.push(p);return}if(n){u.push(new vt(p.map));let h=p.step.map(n.slice(i)),f;h&&a.maybeStep(h).doc&&(f=a.mapping.maps[a.mapping.maps.length-1],d.push(new vt(f,void 0,void 0,d.length+u.length))),i--,f&&n.appendMap(f,i)}else a.maybeStep(p.step);if(p.selection)return l=n?p.selection.map(n.slice(i)):p.selection,c=new ct(this.items.slice(0,o).append(u.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:a,selection:l}}addTransform(e,t,o,n){let i=[],a=this.eventCount,l=this.items,c=!n&&l.length?l.get(l.length-1):null;for(let u=0;u<e.steps.length;u++){let p=e.steps[u].invert(e.docs[u]),m=new vt(e.mapping.maps[u],p,t),h;(h=c&&c.merge(m))&&(m=h,u?i.pop():l=l.slice(0,l.length-1)),i.push(m),t&&(a++,t=void 0),n||(c=m)}let d=a-o.depth;return d>iv&&(l=nv(l,d),a-=d),new ct(l.append(i),a)}remapping(e,t){let o=new Co;return this.items.forEach((n,i)=>{let a=n.mirrorOffset!=null&&i-n.mirrorOffset>=e?o.maps.length-n.mirrorOffset:void 0;o.appendMap(n.map,a)},e,t),o}addMaps(e){return this.eventCount==0?this:new ct(this.items.append(e.map(t=>new vt(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let o=[],n=Math.max(0,this.items.length-t),i=e.mapping,a=e.steps.length,l=this.eventCount;this.items.forEach(m=>{m.selection&&l--},n);let c=t;this.items.forEach(m=>{let h=i.getMirror(--c);if(h==null)return;a=Math.min(a,h);let f=i.maps[h];if(m.step){let g=e.steps[h].invert(e.docs[h]),b=m.selection&&m.selection.map(i.slice(c+1,h));b&&l++,o.push(new vt(f,g,b))}else o.push(new vt(f))},n);let d=[];for(let m=t;m<a;m++)d.push(new vt(i.maps[m]));let u=this.items.slice(0,n).append(d).append(o),p=new ct(u,l);return p.emptyItemCount()>ov&&(p=p.compress(this.items.length-o.length)),p}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),o=t.maps.length,n=[],i=0;return this.items.forEach((a,l)=>{if(l>=e)n.push(a),a.selection&&i++;else if(a.step){let c=a.step.map(t.slice(o)),d=c&&c.getMap();if(o--,d&&t.appendMap(d,o),c){let u=a.selection&&a.selection.map(t.slice(o));u&&i++;let p=new vt(d.invert(),c,u),m,h=n.length-1;(m=n.length&&n[h].merge(p))?n[h]=m:n.push(p)}}else a.map&&o--},this.items.length,0),new ct(ve.from(n.reverse()),i)}}ct.empty=new ct(ve.empty,0);function nv(r,e){let t;return r.forEach((o,n)=>{if(o.selection&&e--==0)return t=n,!1}),r.slice(t)}class vt{constructor(e,t,o,n){this.map=e,this.step=t,this.selection=o,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new vt(t.getMap().invert(),t,this.selection)}}}class or{constructor(e,t,o,n,i){this.done=e,this.undone=t,this.prevRanges=o,this.prevTime=n,this.prevComposition=i}}const iv=20;function av(r,e,t,o){let n=t.getMeta(Mr),i;if(n)return n.historyState;t.getMeta(cv)&&(r=new or(r.done,r.undone,null,0,-1));let a=t.getMeta("appendedTransaction");if(t.steps.length==0)return r;if(a&&a.getMeta(Mr))return a.getMeta(Mr).redo?new or(r.done.addTransform(t,void 0,o,vi(e)),r.undone,Up(t.mapping.maps),r.prevTime,r.prevComposition):new or(r.done,r.undone.addTransform(t,void 0,o,vi(e)),null,r.prevTime,r.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(a&&a.getMeta("addToHistory")===!1)){let l=t.getMeta("composition"),c=r.prevTime==0||!a&&r.prevComposition!=l&&(r.prevTime<(t.time||0)-o.newGroupDelay||!sv(t,r.prevRanges)),d=a?tl(r.prevRanges,t.mapping):Up(t.mapping.maps);return new or(r.done.addTransform(t,c?e.selection.getBookmark():void 0,o,vi(e)),ct.empty,d,t.time,l??r.prevComposition)}else return(i=t.getMeta("rebased"))?new or(r.done.rebased(t,i),r.undone.rebased(t,i),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition):new or(r.done.addMaps(t.mapping.maps),r.undone.addMaps(t.mapping.maps),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition)}function sv(r,e){if(!e)return!1;if(!r.docChanged)return!0;let t=!1;return r.mapping.maps[0].forEach((o,n)=>{for(let i=0;i<e.length;i+=2)o<=e[i+1]&&n>=e[i]&&(t=!0)}),t}function Up(r){let e=[];for(let t=r.length-1;t>=0&&e.length==0;t--)r[t].forEach((o,n,i,a)=>e.push(i,a));return e}function tl(r,e){if(!r)return null;let t=[];for(let o=0;o<r.length;o+=2){let n=e.map(r[o],1),i=e.map(r[o+1],-1);n<=i&&t.push(n,i)}return t}function lv(r,e,t){let o=vi(e),n=Mr.get(e).spec.config,i=(t?r.undone:r.done).popEvent(e,o);if(!i)return null;let a=i.selection.resolve(i.transform.doc),l=(t?r.done:r.undone).addTransform(i.transform,e.selection.getBookmark(),n,o),c=new or(t?l:i.remaining,t?i.remaining:l,null,0,-1);return i.transform.setSelection(a).setMeta(Mr,{redo:t,historyState:c})}let rl=!1,Kp=null;function vi(r){let e=r.plugins;if(Kp!=e){rl=!1,Kp=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){rl=!0;break}}return rl}const Mr=new Ae("history"),cv=new Ae("closeHistory");function dv(r={}){return r={depth:r.depth||100,newGroupDelay:r.newGroupDelay||500},new he({key:Mr,state:{init(){return new or(ct.empty,ct.empty,null,0,-1)},apply(e,t,o){return av(t,o,e,r)}},config:r,props:{handleDOMEvents:{beforeinput(e,t){let o=t.inputType,n=o=="historyUndo"?Gp:o=="historyRedo"?Yp:null;return n?(t.preventDefault(),n(e.state,e.dispatch)):!1}}}})}function Jp(r,e){return(t,o)=>{let n=Mr.getState(t);if(!n||(r?n.undone:n.done).eventCount==0)return!1;if(o){let i=lv(n,t,r);i&&o(e?i.scrollIntoView():i)}return!0}}const Gp=Jp(!1,!0),Yp=Jp(!0,!0),uv=Be.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:r,dispatch:e})=>Gp(r,e),redo:()=>({state:r,dispatch:e})=>Yp(r,e)}},addProseMirrorPlugins(){return[dv(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),pv=lt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:r}){return["hr",Ne(this.options.HTMLAttributes,r)]},addCommands(){return{setHorizontalRule:()=>({chain:r,state:e})=>{const{selection:t}=e,{$from:o,$to:n}=t,i=r();return o.parentOffset===0?i.insertContentAt({from:Math.max(o.pos-1,0),to:n.pos},{type:this.name}):Xu(t)?i.insertContentAt(n.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:a,dispatch:l})=>{var c;if(l){const{$to:d}=a.selection,u=d.end();if(d.nodeAfter)d.nodeAfter.isTextblock?a.setSelection(j.create(a.doc,d.pos+1)):d.nodeAfter.isBlock?a.setSelection(R.create(a.doc,d.pos)):a.setSelection(j.create(a.doc,d.pos));else{const p=(c=d.parent.type.contentMatch.defaultType)===null||c===void 0?void 0:c.create();p&&(a.insert(u,p),a.setSelection(j.create(a.doc,u+1)))}a.scrollIntoView()}return!0}).run()}}},addInputRules(){return[Hw({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),mv=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,hv=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,fv=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,gv=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,bv=Ot.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:r=>r.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:r=>r.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:r}){return["em",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setItalic:()=>({commands:r})=>r.setMark(this.name),toggleItalic:()=>({commands:r})=>r.toggleMark(this.name),unsetItalic:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Zr({find:mv,type:this.type}),Zr({find:fv,type:this.type})]},addPasteRules(){return[Sr({find:hv,type:this.type}),Sr({find:gv,type:this.type})]}}),wv=lt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",Ne(this.options.HTMLAttributes,r),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),yv="listItem",Xp="textStyle",Qp=/^(\d+)\.\s$/,vv=lt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:r=>r.hasAttribute("start")?parseInt(r.getAttribute("start")||"",10):1},type:{default:null,parseHTML:r=>r.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:r}){const{start:e,...t}=r;return e===1?["ol",Ne(this.options.HTMLAttributes,t),0]:["ol",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleOrderedList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(yv,this.editor.getAttributes(Xp)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let r=jo({find:Qp,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(r=jo({find:Qp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Xp)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[r]}}),xv=lt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:r}){return["p",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setParagraph:()=>({commands:r})=>r.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),kv=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Ev=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Sv=Ot.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["s",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setStrike:()=>({commands:r})=>r.setMark(this.name),toggleStrike:()=>({commands:r})=>r.toggleMark(this.name),unsetStrike:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Zr({find:kv,type:this.type})]},addPasteRules(){return[Sr({find:Ev,type:this.type})]}}),Cv=lt.create({name:"text",group:"inline"}),Nv=Be.create({name:"starterKit",addExtensions(){const r=[];return this.options.bold!==!1&&r.push(A1.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(M1.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(I1.configure(this.options.bulletList)),this.options.code!==!1&&r.push(z1.configure(this.options.code)),this.options.codeBlock!==!1&&r.push(j1.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(H1.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(U1.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push($1.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(ev.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(tv.configure(this.options.heading)),this.options.history!==!1&&r.push(uv.configure(this.options.history)),this.options.horizontalRule!==!1&&r.push(pv.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push(bv.configure(this.options.italic)),this.options.listItem!==!1&&r.push(wv.configure(this.options.listItem)),this.options.orderedList!==!1&&r.push(vv.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(xv.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(Sv.configure(this.options.strike)),this.options.text!==!1&&r.push(Cv.configure(this.options.text)),r}}),Bv="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Mv="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",ao=(r,e)=>{for(const t in e)r[t]=e[t];return r},ol="numeric",nl="ascii",il="alpha",Zo="asciinumeric",$o="alphanumeric",al="domain",Zp="emoji",Tv="scheme",Ov="slashscheme",sl="whitespace";function Vv(r,e){return r in e||(e[r]=[]),e[r]}function Tr(r,e,t){e[ol]&&(e[Zo]=!0,e[$o]=!0),e[nl]&&(e[Zo]=!0,e[il]=!0),e[Zo]&&(e[$o]=!0),e[il]&&(e[$o]=!0),e[$o]&&(e[al]=!0),e[Zp]&&(e[al]=!0);for(const o in e){const n=Vv(o,t);n.indexOf(r)<0&&n.push(r)}}function Pv(r,e){const t={};for(const o in e)e[o].indexOf(r)>=0&&(t[o]=!0);return t}function He(r=null){this.j={},this.jr=[],this.jd=null,this.t=r}He.groups={},He.prototype={accepts(){return!!this.t},go(r){const e=this,t=e.j[r];if(t)return t;for(let o=0;o<e.jr.length;o++){const n=e.jr[o][0],i=e.jr[o][1];if(i&&n.test(r))return i}return e.jd},has(r,e=!1){return e?r in this.j:!!this.go(r)},ta(r,e,t,o){for(let n=0;n<r.length;n++)this.tt(r[n],e,t,o)},tr(r,e,t,o){o=o||He.groups;let n;return e&&e.j?n=e:(n=new He(e),t&&o&&Tr(e,t,o)),this.jr.push([r,n]),n},ts(r,e,t,o){let n=this;const i=r.length;if(!i)return n;for(let a=0;a<i-1;a++)n=n.tt(r[a]);return n.tt(r[i-1],e,t,o)},tt(r,e,t,o){o=o||He.groups;const n=this;if(e&&e.j)return n.j[r]=e,e;const i=e;let a,l=n.go(r);if(l?(a=new He,ao(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new He,i){if(o)if(a.t&&typeof a.t=="string"){const c=ao(Pv(a.t,o),t);Tr(i,c,o)}else t&&Tr(i,t,o);a.t=i}return n.j[r]=a,a}};const q=(r,e,t,o,n)=>r.ta(e,t,o,n),ce=(r,e,t,o,n)=>r.tr(e,t,o,n),$p=(r,e,t,o,n)=>r.ts(e,t,o,n),T=(r,e,t,o,n)=>r.tt(e,t,o,n),Dt="WORD",ll="UWORD",em="ASCIINUMERICAL",tm="ALPHANUMERICAL",en="LOCALHOST",cl="TLD",dl="UTLD",xi="SCHEME",so="SLASH_SCHEME",ul="NUM",pl="WS",ml="NL",tn="OPENBRACE",rn="CLOSEBRACE",ki="OPENBRACKET",Ei="CLOSEBRACKET",Si="OPENPAREN",Ci="CLOSEPAREN",Ni="OPENANGLEBRACKET",Bi="CLOSEANGLEBRACKET",Mi="FULLWIDTHLEFTPAREN",Ti="FULLWIDTHRIGHTPAREN",Oi="LEFTCORNERBRACKET",Vi="RIGHTCORNERBRACKET",Pi="LEFTWHITECORNERBRACKET",Ai="RIGHTWHITECORNERBRACKET",Di="FULLWIDTHLESSTHAN",Ii="FULLWIDTHGREATERTHAN",Li="AMPERSAND",Ri="APOSTROPHE",zi="ASTERISK",nr="AT",_i="BACKSLASH",Fi="BACKTICK",ji="CARET",ir="COLON",hl="COMMA",Hi="DOLLAR",xt="DOT",Wi="EQUALS",fl="EXCLAMATION",rt="HYPHEN",on="PERCENT",qi="PIPE",Ui="PLUS",Ki="POUND",nn="QUERY",gl="QUOTE",rm="FULLWIDTHMIDDLEDOT",bl="SEMI",kt="SLASH",an="TILDE",Ji="UNDERSCORE",om="EMOJI",Gi="SYM";var nm=Object.freeze({__proto__:null,ALPHANUMERICAL:tm,AMPERSAND:Li,APOSTROPHE:Ri,ASCIINUMERICAL:em,ASTERISK:zi,AT:nr,BACKSLASH:_i,BACKTICK:Fi,CARET:ji,CLOSEANGLEBRACKET:Bi,CLOSEBRACE:rn,CLOSEBRACKET:Ei,CLOSEPAREN:Ci,COLON:ir,COMMA:hl,DOLLAR:Hi,DOT:xt,EMOJI:om,EQUALS:Wi,EXCLAMATION:fl,FULLWIDTHGREATERTHAN:Ii,FULLWIDTHLEFTPAREN:Mi,FULLWIDTHLESSTHAN:Di,FULLWIDTHMIDDLEDOT:rm,FULLWIDTHRIGHTPAREN:Ti,HYPHEN:rt,LEFTCORNERBRACKET:Oi,LEFTWHITECORNERBRACKET:Pi,LOCALHOST:en,NL:ml,NUM:ul,OPENANGLEBRACKET:Ni,OPENBRACE:tn,OPENBRACKET:ki,OPENPAREN:Si,PERCENT:on,PIPE:qi,PLUS:Ui,POUND:Ki,QUERY:nn,QUOTE:gl,RIGHTCORNERBRACKET:Vi,RIGHTWHITECORNERBRACKET:Ai,SCHEME:xi,SEMI:bl,SLASH:kt,SLASH_SCHEME:so,SYM:Gi,TILDE:an,TLD:cl,UNDERSCORE:Ji,UTLD:dl,UWORD:ll,WORD:Dt,WS:pl});const It=/[a-z]/,sn=new RegExp("\\p{L}","u"),wl=new RegExp("\\p{Emoji}","u"),Lt=/\d/,yl=/\s/,im="\r",vl=`
|
|
124
|
-
`,
|
|
121
|
+
`);return!i||!s?!1:r.chain().command(({tr:l})=>(l.delete(o.pos-2,o.pos),!0)).exitCode().run()},ArrowDown:({editor:r})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=r,{selection:t,doc:o}=e,{$from:n,empty:i}=t;if(!i||n.parent.type!==this.type||!(n.parentOffset===n.parent.nodeSize-2))return!1;const l=n.after();return l===void 0?!1:o.nodeAt(l)?r.commands.command(({tr:c})=>(c.setSelection(U.near(o.resolve(l))),!0)):r.commands.exitCode()}}},addInputRules(){return[Ls({find:Fw,type:this.type,getAttributes:r=>({language:r[1]})}),Ls({find:jw,type:this.type,getAttributes:r=>({language:r[1]})})]},addProseMirrorPlugins(){return[new me({key:new Ae("codeBlockVSCodeHandler"),props:{handlePaste:(r,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),o=e.clipboardData.getData("vscode-editor-data"),n=o?JSON.parse(o):void 0,i=n==null?void 0:n.mode;if(!t||!i)return!1;const{tr:s,schema:l}=r.state,p=l.text(t.replace(/\r\n?/g,`
|
|
122
|
+
`));return s.replaceSelectionWith(this.type.create({language:i},p)),s.selection.$from.parent.type!==this.type&&s.setSelection(H.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),r.dispatch(s),!0}}})]}}),Ww=lt.create({name:"doc",topNode:!0,content:"block+"});function Uw(r={}){return new me({view(e){return new qw(e,r)}})}class qw{constructor(e,t){var o;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(o=t.width)!==null&&o!==void 0?o:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(n=>{let i=s=>{this[n](s)};return e.dom.addEventListener(n,i),{name:n,handler:i}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,o,n=this.editorView.dom,i=n.getBoundingClientRect(),s=i.width/n.offsetWidth,l=i.height/n.offsetHeight;if(t){let u=e.nodeBefore,b=e.nodeAfter;if(u||b){let m=this.editorView.nodeDOM(this.cursorPos-(u?u.nodeSize:0));if(m){let f=m.getBoundingClientRect(),h=u?f.bottom:f.top;u&&b&&(h=(h+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let x=this.width/2*l;o={left:f.left,right:f.right,top:h-x,bottom:h+x}}}}if(!o){let u=this.editorView.coordsAtPos(this.cursorPos),b=this.width/2*s;o={left:u.left-b,right:u.left+b,top:u.top,bottom:u.bottom}}let p=this.editorView.dom.offsetParent;this.element||(this.element=p.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let c,d;if(!p||p==document.body&&getComputedStyle(p).position=="static")c=-pageXOffset,d=-pageYOffset;else{let u=p.getBoundingClientRect(),b=u.width/p.offsetWidth,m=u.height/p.offsetHeight;c=u.left-p.scrollLeft*b,d=u.top-p.scrollTop*m}this.element.style.left=(o.left-c)/s+"px",this.element.style.top=(o.top-d)/l+"px",this.element.style.width=(o.right-o.left)/s+"px",this.element.style.height=(o.bottom-o.top)/l+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),o=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=o&&o.type.spec.disableDropCursor,i=typeof n=="function"?n(this.editorView,t,e):n;if(t&&!i){let s=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let l=Jp(this.editorView.state.doc,s,this.editorView.dragging.slice);l!=null&&(s=l)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const Kw=Be.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Uw(this.options)]}});class ce extends U{constructor(e){super(e,e)}map(e,t){let o=e.resolve(t.map(this.head));return ce.valid(o)?new ce(o):U.near(o)}content(){return A.empty}eq(e){return e instanceof ce&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new ce(e.resolve(t.pos))}getBookmark(){return new el(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!Gw(e)||!Jw(e))return!1;let o=t.type.spec.allowGapCursor;if(o!=null)return o;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t,o=!1){e:for(;;){if(!o&&ce.valid(e))return e;let n=e.pos,i=null;for(let s=e.depth;;s--){let l=e.node(s);if(t>0?e.indexAfter(s)<l.childCount:e.index(s)>0){i=l.child(t>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;n+=t;let p=e.doc.resolve(n);if(ce.valid(p))return p}for(;;){let s=t>0?i.firstChild:i.lastChild;if(!s){if(i.isAtom&&!i.isText&&!R.isSelectable(i)){e=e.doc.resolve(n+i.nodeSize*t),o=!1;continue e}break}i=s,n+=t;let l=e.doc.resolve(n);if(ce.valid(l))return l}return null}}}ce.prototype.visible=!1,ce.findFrom=ce.findGapCursorFrom,U.jsonID("gapcursor",ce);class el{constructor(e){this.pos=e}map(e){return new el(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return ce.valid(t)?new ce(t):U.near(t)}}function Gw(r){for(let e=r.depth;e>=0;e--){let t=r.index(e),o=r.node(e);if(t==0){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t-1);;n=n.lastChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function Jw(r){for(let e=r.depth;e>=0;e--){let t=r.indexAfter(e),o=r.node(e);if(t==o.childCount){if(o.type.spec.isolating)return!0;continue}for(let n=o.child(t);;n=n.firstChild){if(n.childCount==0&&!n.inlineContent||n.isAtom||n.type.spec.isolating)return!0;if(n.inlineContent)return!1}}return!0}function Yw(){return new me({props:{decorations:$w,createSelectionBetween(r,e,t){return e.pos==t.pos&&ce.valid(t)?new ce(t):null},handleClick:Qw,handleKeyDown:Xw,handleDOMEvents:{beforeinput:Zw}}})}const Xw=vd({ArrowLeft:yi("horiz",-1),ArrowRight:yi("horiz",1),ArrowUp:yi("vert",-1),ArrowDown:yi("vert",1)});function yi(r,e){const t=r=="vert"?e>0?"down":"up":e>0?"right":"left";return function(o,n,i){let s=o.selection,l=e>0?s.$to:s.$from,p=s.empty;if(s instanceof H){if(!i.endOfTextblock(t)||l.depth==0)return!1;p=!1,l=o.doc.resolve(e>0?l.after():l.before())}let c=ce.findGapCursorFrom(l,e,p);return c?(n&&n(o.tr.setSelection(new ce(c))),!0):!1}}function Qw(r,e,t){if(!r||!r.editable)return!1;let o=r.state.doc.resolve(e);if(!ce.valid(o))return!1;let n=r.posAtCoords({left:t.clientX,top:t.clientY});return n&&n.inside>-1&&R.isSelectable(r.state.doc.nodeAt(n.inside))?!1:(r.dispatch(r.state.tr.setSelection(new ce(o))),!0)}function Zw(r,e){if(e.inputType!="insertCompositionText"||!(r.state.selection instanceof ce))return!1;let{$from:t}=r.state.selection,o=t.parent.contentMatchAt(t.index()).findWrapping(r.state.schema.nodes.text);if(!o)return!1;let n=M.empty;for(let s=o.length-1;s>=0;s--)n=M.from(o[s].createAndFill(null,n));let i=r.state.tr.replace(t.pos,t.pos,new A(n,0,0));return i.setSelection(H.near(i.doc.resolve(t.pos+1))),r.dispatch(i),!1}function $w(r){if(!(r.selection instanceof ce))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",fe.create(r.doc,[Ze.widget(r.selection.head,e,{key:"gapcursor"})])}const ev=Be.create({name:"gapCursor",addProseMirrorPlugins(){return[Yw()]},extendNodeSchema(r){var e;const t={name:r.name,options:r.options,storage:r.storage};return{allowGapCursor:(e=K(I(r,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),tv=lt.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:r}){return["br",Ne(this.options.HTMLAttributes,r)]},renderText(){return`
|
|
123
|
+
`},addCommands(){return{setHardBreak:()=>({commands:r,chain:e,state:t,editor:o})=>r.first([()=>r.exitCode(),()=>r.command(()=>{const{selection:n,storedMarks:i}=t;if(n.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:l}=o.extensionManager,p=i||n.$to.parentOffset&&n.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:d})=>{if(d&&p&&s){const u=p.filter(b=>l.includes(b.type.name));c.ensureMarks(u)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),rv=lt.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(r=>({tag:`h${r}`,attrs:{level:r}}))},renderHTML({node:r,HTMLAttributes:e}){return[`h${this.options.levels.includes(r.attrs.level)?r.attrs.level:this.options.levels[0]}`,Ne(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.setNode(this.name,r):!1,toggleHeading:r=>({commands:e})=>this.options.levels.includes(r.level)?e.toggleNode(this.name,"paragraph",r):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((r,e)=>({...r,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(r=>Ls({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${r}})\\s$`),type:this.type,getAttributes:{level:r}}))}});var wi=200,we=function(){};we.prototype.append=function(e){return e.length?(e=we.from(e),!this.length&&e||e.length<wi&&this.leafAppend(e)||this.length<wi&&e.leafPrepend(this)||this.appendInner(e)):this},we.prototype.prepend=function(e){return e.length?we.from(e).append(this):this},we.prototype.appendInner=function(e){return new ov(this,e)},we.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?we.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},we.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},we.prototype.forEach=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length),t<=o?this.forEachInner(e,t,o,0):this.forEachInvertedInner(e,t,o,0)},we.prototype.map=function(e,t,o){t===void 0&&(t=0),o===void 0&&(o=this.length);var n=[];return this.forEach(function(i,s){return n.push(e(i,s))},t,o),n},we.from=function(e){return e instanceof we?e:e&&e.length?new qu(e):we.empty};var qu=function(r){function e(o){r.call(this),this.values=o}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(n,i){return n==0&&i==this.length?this:new e(this.values.slice(n,i))},e.prototype.getInner=function(n){return this.values[n]},e.prototype.forEachInner=function(n,i,s,l){for(var p=i;p<s;p++)if(n(this.values[p],l+p)===!1)return!1},e.prototype.forEachInvertedInner=function(n,i,s,l){for(var p=i-1;p>=s;p--)if(n(this.values[p],l+p)===!1)return!1},e.prototype.leafAppend=function(n){if(this.length+n.length<=wi)return new e(this.values.concat(n.flatten()))},e.prototype.leafPrepend=function(n){if(this.length+n.length<=wi)return new e(n.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(we);we.empty=new qu([]);var ov=function(r){function e(t,o){r.call(this),this.left=t,this.right=o,this.length=t.length+o.length,this.depth=Math.max(t.depth,o.depth)+1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(o){return o<this.left.length?this.left.get(o):this.right.get(o-this.left.length)},e.prototype.forEachInner=function(o,n,i,s){var l=this.left.length;if(n<l&&this.left.forEachInner(o,n,Math.min(i,l),s)===!1||i>l&&this.right.forEachInner(o,Math.max(n-l,0),Math.min(this.length,i)-l,s+l)===!1)return!1},e.prototype.forEachInvertedInner=function(o,n,i,s){var l=this.left.length;if(n>l&&this.right.forEachInvertedInner(o,n-l,Math.max(i,l)-l,s+l)===!1||i<l&&this.left.forEachInvertedInner(o,Math.min(n,l),i,s)===!1)return!1},e.prototype.sliceInner=function(o,n){if(o==0&&n==this.length)return this;var i=this.left.length;return n<=i?this.left.slice(o,n):o>=i?this.right.slice(o-i,n-i):this.left.slice(o,i).append(this.right.slice(0,n-i))},e.prototype.leafAppend=function(o){var n=this.right.leafAppend(o);if(n)return new e(this.left,n)},e.prototype.leafPrepend=function(o){var n=this.left.leafPrepend(o);if(n)return new e(n,this.right)},e.prototype.appendInner=function(o){return this.left.depth>=Math.max(this.right.depth,o.depth)+1?new e(this.left,new e(this.right,o)):new e(this,o)},e}(we);const nv=500;class pt{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let o=this.items.length;for(;;o--)if(this.items.get(o-1).selection){--o;break}let n,i;t&&(n=this.remapping(o,this.items.length),i=n.maps.length);let s=e.tr,l,p,c=[],d=[];return this.items.forEach((u,b)=>{if(!u.step){n||(n=this.remapping(o,b+1),i=n.maps.length),i--,d.push(u);return}if(n){d.push(new wt(u.map));let m=u.step.map(n.slice(i)),f;m&&s.maybeStep(m).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],c.push(new wt(f,void 0,void 0,c.length+d.length))),i--,f&&n.appendMap(f,i)}else s.maybeStep(u.step);if(u.selection)return l=n?u.selection.map(n.slice(i)):u.selection,p=new pt(this.items.slice(0,o).append(d.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:p,transform:s,selection:l}}addTransform(e,t,o,n){let i=[],s=this.eventCount,l=this.items,p=!n&&l.length?l.get(l.length-1):null;for(let d=0;d<e.steps.length;d++){let u=e.steps[d].invert(e.docs[d]),b=new wt(e.mapping.maps[d],u,t),m;(m=p&&p.merge(b))&&(b=m,d?i.pop():l=l.slice(0,l.length-1)),i.push(b),t&&(s++,t=void 0),n||(p=b)}let c=s-o.depth;return c>av&&(l=iv(l,c),s-=c),new pt(l.append(i),s)}remapping(e,t){let o=new Bo;return this.items.forEach((n,i)=>{let s=n.mirrorOffset!=null&&i-n.mirrorOffset>=e?o.maps.length-n.mirrorOffset:void 0;o.appendMap(n.map,s)},e,t),o}addMaps(e){return this.eventCount==0?this:new pt(this.items.append(e.map(t=>new wt(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let o=[],n=Math.max(0,this.items.length-t),i=e.mapping,s=e.steps.length,l=this.eventCount;this.items.forEach(b=>{b.selection&&l--},n);let p=t;this.items.forEach(b=>{let m=i.getMirror(--p);if(m==null)return;s=Math.min(s,m);let f=i.maps[m];if(b.step){let h=e.steps[m].invert(e.docs[m]),x=b.selection&&b.selection.map(i.slice(p+1,m));x&&l++,o.push(new wt(f,h,x))}else o.push(new wt(f))},n);let c=[];for(let b=t;b<s;b++)c.push(new wt(i.maps[b]));let d=this.items.slice(0,n).append(c).append(o),u=new pt(d,l);return u.emptyItemCount()>nv&&(u=u.compress(this.items.length-o.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),o=t.maps.length,n=[],i=0;return this.items.forEach((s,l)=>{if(l>=e)n.push(s),s.selection&&i++;else if(s.step){let p=s.step.map(t.slice(o)),c=p&&p.getMap();if(o--,c&&t.appendMap(c,o),p){let d=s.selection&&s.selection.map(t.slice(o));d&&i++;let u=new wt(c.invert(),p,d),b,m=n.length-1;(b=n.length&&n[m].merge(u))?n[m]=b:n.push(u)}}else s.map&&o--},this.items.length,0),new pt(we.from(n.reverse()),i)}}pt.empty=new pt(we.empty,0);function iv(r,e){let t;return r.forEach((o,n)=>{if(o.selection&&e--==0)return t=n,!1}),r.slice(t)}class wt{constructor(e,t,o,n){this.map=e,this.step=t,this.selection=o,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new wt(t.getMap().invert(),t,this.selection)}}}class or{constructor(e,t,o,n,i){this.done=e,this.undone=t,this.prevRanges=o,this.prevTime=n,this.prevComposition=i}}const av=20;function sv(r,e,t,o){let n=t.getMeta(Tr),i;if(n)return n.historyState;t.getMeta(cv)&&(r=new or(r.done,r.undone,null,0,-1));let s=t.getMeta("appendedTransaction");if(t.steps.length==0)return r;if(s&&s.getMeta(Tr))return s.getMeta(Tr).redo?new or(r.done.addTransform(t,void 0,o,vi(e)),r.undone,Ku(t.mapping.maps),r.prevTime,r.prevComposition):new or(r.done,r.undone.addTransform(t,void 0,o,vi(e)),null,r.prevTime,r.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let l=t.getMeta("composition"),p=r.prevTime==0||!s&&r.prevComposition!=l&&(r.prevTime<(t.time||0)-o.newGroupDelay||!lv(t,r.prevRanges)),c=s?tl(r.prevRanges,t.mapping):Ku(t.mapping.maps);return new or(r.done.addTransform(t,p?e.selection.getBookmark():void 0,o,vi(e)),pt.empty,c,t.time,l??r.prevComposition)}else return(i=t.getMeta("rebased"))?new or(r.done.rebased(t,i),r.undone.rebased(t,i),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition):new or(r.done.addMaps(t.mapping.maps),r.undone.addMaps(t.mapping.maps),tl(r.prevRanges,t.mapping),r.prevTime,r.prevComposition)}function lv(r,e){if(!e)return!1;if(!r.docChanged)return!0;let t=!1;return r.mapping.maps[0].forEach((o,n)=>{for(let i=0;i<e.length;i+=2)o<=e[i+1]&&n>=e[i]&&(t=!0)}),t}function Ku(r){let e=[];for(let t=r.length-1;t>=0&&e.length==0;t--)r[t].forEach((o,n,i,s)=>e.push(i,s));return e}function tl(r,e){if(!r)return null;let t=[];for(let o=0;o<r.length;o+=2){let n=e.map(r[o],1),i=e.map(r[o+1],-1);n<=i&&t.push(n,i)}return t}function pv(r,e,t){let o=vi(e),n=Tr.get(e).spec.config,i=(t?r.undone:r.done).popEvent(e,o);if(!i)return null;let s=i.selection.resolve(i.transform.doc),l=(t?r.done:r.undone).addTransform(i.transform,e.selection.getBookmark(),n,o),p=new or(t?l:i.remaining,t?i.remaining:l,null,0,-1);return i.transform.setSelection(s).setMeta(Tr,{redo:t,historyState:p})}let rl=!1,Gu=null;function vi(r){let e=r.plugins;if(Gu!=e){rl=!1,Gu=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){rl=!0;break}}return rl}const Tr=new Ae("history"),cv=new Ae("closeHistory");function dv(r={}){return r={depth:r.depth||100,newGroupDelay:r.newGroupDelay||500},new me({key:Tr,state:{init(){return new or(pt.empty,pt.empty,null,0,-1)},apply(e,t,o){return sv(t,o,e,r)}},config:r,props:{handleDOMEvents:{beforeinput(e,t){let o=t.inputType,n=o=="historyUndo"?Yu:o=="historyRedo"?Xu:null;return n?(t.preventDefault(),n(e.state,e.dispatch)):!1}}}})}function Ju(r,e){return(t,o)=>{let n=Tr.getState(t);if(!n||(r?n.undone:n.done).eventCount==0)return!1;if(o){let i=pv(n,t,r);i&&o(e?i.scrollIntoView():i)}return!0}}const Yu=Ju(!1,!0),Xu=Ju(!0,!0),uv=Be.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:r,dispatch:e})=>Yu(r,e),redo:()=>({state:r,dispatch:e})=>Xu(r,e)}},addProseMirrorPlugins(){return[dv(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),bv=lt.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:r}){return["hr",Ne(this.options.HTMLAttributes,r)]},addCommands(){return{setHorizontalRule:()=>({chain:r,state:e})=>{const{selection:t}=e,{$from:o,$to:n}=t,i=r();return o.parentOffset===0?i.insertContentAt({from:Math.max(o.pos-1,0),to:n.pos},{type:this.name}):Qd(t)?i.insertContentAt(n.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:s,dispatch:l})=>{var p;if(l){const{$to:c}=s.selection,d=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?s.setSelection(H.create(s.doc,c.pos+1)):c.nodeAfter.isBlock?s.setSelection(R.create(s.doc,c.pos)):s.setSelection(H.create(s.doc,c.pos));else{const u=(p=c.parent.type.contentMatch.defaultType)===null||p===void 0?void 0:p.create();u&&(s.insert(d,u),s.setSelection(H.create(s.doc,d+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[W0({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),mv=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,fv=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,hv=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,xv=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,gv=Ot.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:r=>r.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:r=>r.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:r}){return["em",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setItalic:()=>({commands:r})=>r.setMark(this.name),toggleItalic:()=>({commands:r})=>r.toggleMark(this.name),unsetItalic:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[eo({find:mv,type:this.type}),eo({find:hv,type:this.type})]},addPasteRules(){return[Cr({find:fv,type:this.type}),Cr({find:xv,type:this.type})]}}),yv=lt.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:r}){return["li",Ne(this.options.HTMLAttributes,r),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),wv="listItem",Qu="textStyle",Zu=/^(\d+)\.\s$/,vv=lt.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:r=>r.hasAttribute("start")?parseInt(r.getAttribute("start")||"",10):1},type:{default:null,parseHTML:r=>r.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:r}){const{start:e,...t}=r;return e===1?["ol",Ne(this.options.HTMLAttributes,t),0]:["ol",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{toggleOrderedList:()=>({commands:r,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(wv,this.editor.getAttributes(Qu)).run():r.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let r=Wo({find:Zu,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(r=Wo({find:Zu,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Qu)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[r]}}),kv=lt.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:r}){return["p",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setParagraph:()=>({commands:r})=>r.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Ev=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,Sv=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,Cv=Ot.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:r=>r.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:r}){return["s",Ne(this.options.HTMLAttributes,r),0]},addCommands(){return{setStrike:()=>({commands:r})=>r.setMark(this.name),toggleStrike:()=>({commands:r})=>r.toggleMark(this.name),unsetStrike:()=>({commands:r})=>r.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[eo({find:Ev,type:this.type})]},addPasteRules(){return[Cr({find:Sv,type:this.type})]}}),Nv=lt.create({name:"text",group:"inline"}),Bv=Be.create({name:"starterKit",addExtensions(){const r=[];return this.options.bold!==!1&&r.push(Dw.configure(this.options.bold)),this.options.blockquote!==!1&&r.push(Tw.configure(this.options.blockquote)),this.options.bulletList!==!1&&r.push(Lw.configure(this.options.bulletList)),this.options.code!==!1&&r.push(_w.configure(this.options.code)),this.options.codeBlock!==!1&&r.push(Hw.configure(this.options.codeBlock)),this.options.document!==!1&&r.push(Ww.configure(this.options.document)),this.options.dropcursor!==!1&&r.push(Kw.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&r.push(ev.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&r.push(tv.configure(this.options.hardBreak)),this.options.heading!==!1&&r.push(rv.configure(this.options.heading)),this.options.history!==!1&&r.push(uv.configure(this.options.history)),this.options.horizontalRule!==!1&&r.push(bv.configure(this.options.horizontalRule)),this.options.italic!==!1&&r.push(gv.configure(this.options.italic)),this.options.listItem!==!1&&r.push(yv.configure(this.options.listItem)),this.options.orderedList!==!1&&r.push(vv.configure(this.options.orderedList)),this.options.paragraph!==!1&&r.push(kv.configure(this.options.paragraph)),this.options.strike!==!1&&r.push(Cv.configure(this.options.strike)),this.options.text!==!1&&r.push(Nv.configure(this.options.text)),r}}),Mv="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Tv="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",lo=(r,e)=>{for(const t in e)r[t]=e[t];return r},ol="numeric",nl="ascii",il="alpha",en="asciinumeric",tn="alphanumeric",al="domain",$u="emoji",Ov="scheme",Vv="slashscheme",sl="whitespace";function Pv(r,e){return r in e||(e[r]=[]),e[r]}function Or(r,e,t){e[ol]&&(e[en]=!0,e[tn]=!0),e[nl]&&(e[en]=!0,e[il]=!0),e[en]&&(e[tn]=!0),e[il]&&(e[tn]=!0),e[tn]&&(e[al]=!0),e[$u]&&(e[al]=!0);for(const o in e){const n=Pv(o,t);n.indexOf(r)<0&&n.push(r)}}function Av(r,e){const t={};for(const o in e)e[o].indexOf(r)>=0&&(t[o]=!0);return t}function He(r=null){this.j={},this.jr=[],this.jd=null,this.t=r}He.groups={},He.prototype={accepts(){return!!this.t},go(r){const e=this,t=e.j[r];if(t)return t;for(let o=0;o<e.jr.length;o++){const n=e.jr[o][0],i=e.jr[o][1];if(i&&n.test(r))return i}return e.jd},has(r,e=!1){return e?r in this.j:!!this.go(r)},ta(r,e,t,o){for(let n=0;n<r.length;n++)this.tt(r[n],e,t,o)},tr(r,e,t,o){o=o||He.groups;let n;return e&&e.j?n=e:(n=new He(e),t&&o&&Or(e,t,o)),this.jr.push([r,n]),n},ts(r,e,t,o){let n=this;const i=r.length;if(!i)return n;for(let s=0;s<i-1;s++)n=n.tt(r[s]);return n.tt(r[i-1],e,t,o)},tt(r,e,t,o){o=o||He.groups;const n=this;if(e&&e.j)return n.j[r]=e,e;const i=e;let s,l=n.go(r);if(l?(s=new He,lo(s.j,l.j),s.jr.push.apply(s.jr,l.jr),s.jd=l.jd,s.t=l.t):s=new He,i){if(o)if(s.t&&typeof s.t=="string"){const p=lo(Av(s.t,o),t);Or(i,p,o)}else t&&Or(i,t,o);s.t=i}return n.j[r]=s,s}};const q=(r,e,t,o,n)=>r.ta(e,t,o,n),de=(r,e,t,o,n)=>r.tr(e,t,o,n),eb=(r,e,t,o,n)=>r.ts(e,t,o,n),T=(r,e,t,o,n)=>r.tt(e,t,o,n),Dt="WORD",ll="UWORD",tb="ASCIINUMERICAL",rb="ALPHANUMERICAL",rn="LOCALHOST",pl="TLD",cl="UTLD",ki="SCHEME",po="SLASH_SCHEME",dl="NUM",ul="WS",bl="NL",on="OPENBRACE",nn="CLOSEBRACE",Ei="OPENBRACKET",Si="CLOSEBRACKET",Ci="OPENPAREN",Ni="CLOSEPAREN",Bi="OPENANGLEBRACKET",Mi="CLOSEANGLEBRACKET",Ti="FULLWIDTHLEFTPAREN",Oi="FULLWIDTHRIGHTPAREN",Vi="LEFTCORNERBRACKET",Pi="RIGHTCORNERBRACKET",Ai="LEFTWHITECORNERBRACKET",Di="RIGHTWHITECORNERBRACKET",Ii="FULLWIDTHLESSTHAN",Li="FULLWIDTHGREATERTHAN",Ri="AMPERSAND",zi="APOSTROPHE",_i="ASTERISK",nr="AT",Fi="BACKSLASH",ji="BACKTICK",Hi="CARET",ir="COLON",ml="COMMA",Wi="DOLLAR",vt="DOT",Ui="EQUALS",fl="EXCLAMATION",rt="HYPHEN",an="PERCENT",qi="PIPE",Ki="PLUS",Gi="POUND",sn="QUERY",hl="QUOTE",ob="FULLWIDTHMIDDLEDOT",xl="SEMI",kt="SLASH",ln="TILDE",Ji="UNDERSCORE",nb="EMOJI",Yi="SYM";var ib=Object.freeze({__proto__:null,ALPHANUMERICAL:rb,AMPERSAND:Ri,APOSTROPHE:zi,ASCIINUMERICAL:tb,ASTERISK:_i,AT:nr,BACKSLASH:Fi,BACKTICK:ji,CARET:Hi,CLOSEANGLEBRACKET:Mi,CLOSEBRACE:nn,CLOSEBRACKET:Si,CLOSEPAREN:Ni,COLON:ir,COMMA:ml,DOLLAR:Wi,DOT:vt,EMOJI:nb,EQUALS:Ui,EXCLAMATION:fl,FULLWIDTHGREATERTHAN:Li,FULLWIDTHLEFTPAREN:Ti,FULLWIDTHLESSTHAN:Ii,FULLWIDTHMIDDLEDOT:ob,FULLWIDTHRIGHTPAREN:Oi,HYPHEN:rt,LEFTCORNERBRACKET:Vi,LEFTWHITECORNERBRACKET:Ai,LOCALHOST:rn,NL:bl,NUM:dl,OPENANGLEBRACKET:Bi,OPENBRACE:on,OPENBRACKET:Ei,OPENPAREN:Ci,PERCENT:an,PIPE:qi,PLUS:Ki,POUND:Gi,QUERY:sn,QUOTE:hl,RIGHTCORNERBRACKET:Pi,RIGHTWHITECORNERBRACKET:Di,SCHEME:ki,SEMI:xl,SLASH:kt,SLASH_SCHEME:po,SYM:Yi,TILDE:ln,TLD:pl,UNDERSCORE:Ji,UTLD:cl,UWORD:ll,WORD:Dt,WS:ul});const It=/[a-z]/,pn=new RegExp("\\p{L}","u"),gl=new RegExp("\\p{Emoji}","u"),Lt=/\d/,yl=/\s/,ab="\r",wl=`
|
|
124
|
+
`,Dv="️",Iv="",vl="";let Xi=null,Qi=null;function Lv(r=[]){const e={};He.groups=e;const t=new He;Xi==null&&(Xi=lb(Mv)),Qi==null&&(Qi=lb(Tv)),T(t,"'",zi),T(t,"{",on),T(t,"}",nn),T(t,"[",Ei),T(t,"]",Si),T(t,"(",Ci),T(t,")",Ni),T(t,"<",Bi),T(t,">",Mi),T(t,"(",Ti),T(t,")",Oi),T(t,"「",Vi),T(t,"」",Pi),T(t,"『",Ai),T(t,"』",Di),T(t,"<",Ii),T(t,">",Li),T(t,"&",Ri),T(t,"*",_i),T(t,"@",nr),T(t,"`",ji),T(t,"^",Hi),T(t,":",ir),T(t,",",ml),T(t,"$",Wi),T(t,".",vt),T(t,"=",Ui),T(t,"!",fl),T(t,"-",rt),T(t,"%",an),T(t,"|",qi),T(t,"+",Ki),T(t,"#",Gi),T(t,"?",sn),T(t,'"',hl),T(t,"/",kt),T(t,";",xl),T(t,"~",ln),T(t,"_",Ji),T(t,"\\",Fi),T(t,"・",ob);const o=de(t,Lt,dl,{[ol]:!0});de(o,Lt,o);const n=de(o,It,tb,{[en]:!0}),i=de(o,pn,rb,{[tn]:!0}),s=de(t,It,Dt,{[nl]:!0});de(s,Lt,n),de(s,It,s),de(n,Lt,n),de(n,It,n);const l=de(t,pn,ll,{[il]:!0});de(l,It),de(l,Lt,i),de(l,pn,l),de(i,Lt,i),de(i,It),de(i,pn,i);const p=T(t,wl,bl,{[sl]:!0}),c=T(t,ab,ul,{[sl]:!0}),d=de(t,yl,ul,{[sl]:!0});T(t,vl,d),T(c,wl,p),T(c,vl,d),de(c,yl,d),T(d,ab),T(d,wl),de(d,yl,d),T(d,vl,d);const u=de(t,gl,nb,{[$u]:!0});T(u,"#"),de(u,gl,u),T(u,Dv,u);const b=T(u,Iv);T(b,"#"),de(b,gl,u);const m=[[It,s],[Lt,n]],f=[[It,null],[pn,l],[Lt,i]];for(let h=0;h<Xi.length;h++)ar(t,Xi[h],pl,Dt,m);for(let h=0;h<Qi.length;h++)ar(t,Qi[h],cl,ll,f);Or(pl,{tld:!0,ascii:!0},e),Or(cl,{utld:!0,alpha:!0},e),ar(t,"file",ki,Dt,m),ar(t,"mailto",ki,Dt,m),ar(t,"http",po,Dt,m),ar(t,"https",po,Dt,m),ar(t,"ftp",po,Dt,m),ar(t,"ftps",po,Dt,m),Or(ki,{scheme:!0,ascii:!0},e),Or(po,{slashscheme:!0,ascii:!0},e),r=r.sort((h,x)=>h[0]>x[0]?1:-1);for(let h=0;h<r.length;h++){const x=r[h][0],w=r[h][1]?{[Ov]:!0}:{[Vv]:!0};x.indexOf("-")>=0?w[al]=!0:It.test(x)?Lt.test(x)?w[en]=!0:w[nl]=!0:w[ol]=!0,eb(t,x,x,w)}return eb(t,"localhost",rn,{ascii:!0}),t.jd=new He(Yi),{start:t,tokens:lo({groups:e},ib)}}function sb(r,e){const t=Rv(e.replace(/[A-Z]/g,l=>l.toLowerCase())),o=t.length,n=[];let i=0,s=0;for(;s<o;){let l=r,p=null,c=0,d=null,u=-1,b=-1;for(;s<o&&(p=l.go(t[s]));)l=p,l.accepts()?(u=0,b=0,d=l):u>=0&&(u+=t[s].length,b++),c+=t[s].length,i+=t[s].length,s++;i-=u,s-=b,c-=u,n.push({t:d.t,v:e.slice(i-c,i),s:i-c,e:i})}return n}function Rv(r){const e=[],t=r.length;let o=0;for(;o<t;){let n=r.charCodeAt(o),i,s=n<55296||n>56319||o+1===t||(i=r.charCodeAt(o+1))<56320||i>57343?r[o]:r.slice(o,o+2);e.push(s),o+=s.length}return e}function ar(r,e,t,o,n){let i;const s=e.length;for(let l=0;l<s-1;l++){const p=e[l];r.j[p]?i=r.j[p]:(i=new He(o),i.jr=n.slice(),r.j[p]=i),r=i}return i=new He(t),i.jr=n.slice(),r.j[e[s-1]]=i,i}function lb(r){const e=[],t=[];let o=0,n="0123456789";for(;o<r.length;){let i=0;for(;n.indexOf(r[o+i])>=0;)i++;if(i>0){e.push(t.join(""));for(let s=parseInt(r.substring(o,o+i),10);s>0;s--)t.pop();o+=i}else t.push(r[o]),o++}return e}const cn={defaultProtocol:"http",events:null,format:pb,formatHref:pb,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function kl(r,e=null){let t=lo({},cn);r&&(t=lo(t,r instanceof kl?r.o:r));const o=t.ignoreTags,n=[];for(let i=0;i<o.length;i++)n.push(o[i].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=n}kl.prototype={o:cn,ignoreTags:[],defaultRender(r){return r},check(r){return this.get("validate",r.toString(),r)},get(r,e,t){const o=e!=null;let n=this.o[r];return n&&(typeof n=="object"?(n=t.t in n?n[t.t]:cn[r],typeof n=="function"&&o&&(n=n(e,t))):typeof n=="function"&&o&&(n=n(e,t.t,t)),n)},getObj(r,e,t){let o=this.o[r];return typeof o=="function"&&e!=null&&(o=o(e,t.t,t)),o},render(r){const e=r.render(this);return(this.get("render",null,r)||this.defaultRender)(e,r.t,r)}};function pb(r){return r}function cb(r,e){this.t="token",this.v=r,this.tk=e}cb.prototype={isLink:!1,toString(){return this.v},toHref(r){return this.toString()},toFormattedString(r){const e=this.toString(),t=r.get("truncate",e,this),o=r.get("format",e,this);return t&&o.length>t?o.substring(0,t)+"…":o},toFormattedHref(r){return r.get("formatHref",this.toHref(r.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(r=cn.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(r),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(r){return{type:this.t,value:this.toFormattedString(r),isLink:this.isLink,href:this.toFormattedHref(r),start:this.startIndex(),end:this.endIndex()}},validate(r){return r.get("validate",this.toString(),this)},render(r){const e=this,t=this.toHref(r.get("defaultProtocol")),o=r.get("formatHref",t,this),n=r.get("tagName",t,e),i=this.toFormattedString(r),s={},l=r.get("className",t,e),p=r.get("target",t,e),c=r.get("rel",t,e),d=r.getObj("attributes",t,e),u=r.getObj("events",t,e);return s.href=o,l&&(s.class=l),p&&(s.target=p),c&&(s.rel=c),d&&lo(s,d),{tagName:n,attributes:s,content:i,eventListeners:u}}};function Zi(r,e){class t extends cb{constructor(n,i){super(n,i),this.t=r}}for(const o in e)t.prototype[o]=e[o];return t.t=r,t}const db=Zi("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ub=Zi("text"),zv=Zi("nl"),$i=Zi("url",{isLink:!0,toHref(r=cn.defaultProtocol){return this.hasProtocol()?this.v:`${r}://${this.v}`},hasProtocol(){const r=this.tk;return r.length>=2&&r[0].t!==rn&&r[1].t===ir}}),ot=r=>new He(r);function _v({groups:r}){const e=r.domain.concat([Ri,_i,nr,Fi,ji,Hi,Wi,Ui,rt,dl,an,qi,Ki,Gi,kt,Yi,ln,Ji]),t=[zi,ir,ml,vt,fl,an,sn,hl,xl,Bi,Mi,on,nn,Si,Ei,Ci,Ni,Ti,Oi,Vi,Pi,Ai,Di,Ii,Li],o=[Ri,zi,_i,Fi,ji,Hi,Wi,Ui,rt,on,nn,an,qi,Ki,Gi,sn,kt,Yi,ln,Ji],n=ot(),i=T(n,ln);q(i,o,i),q(i,r.domain,i);const s=ot(),l=ot(),p=ot();q(n,r.domain,s),q(n,r.scheme,l),q(n,r.slashscheme,p),q(s,o,i),q(s,r.domain,s);const c=T(s,nr);T(i,nr,c),T(l,nr,c),T(p,nr,c);const d=T(i,vt);q(d,o,i),q(d,r.domain,i);const u=ot();q(c,r.domain,u),q(u,r.domain,u);const b=T(u,vt);q(b,r.domain,u);const m=ot(db);q(b,r.tld,m),q(b,r.utld,m),T(c,rn,m);const f=T(u,rt);T(f,rt,f),q(f,r.domain,u),q(m,r.domain,u),T(m,vt,b),T(m,rt,f);const h=T(m,ir);q(h,r.numeric,db);const x=T(s,rt),y=T(s,vt);T(x,rt,x),q(x,r.domain,s),q(y,o,i),q(y,r.domain,s);const w=ot($i);q(y,r.tld,w),q(y,r.utld,w),q(w,r.domain,s),q(w,o,i),T(w,vt,y),T(w,rt,x),T(w,nr,c);const v=T(w,ir),g=ot($i);q(v,r.numeric,g);const S=ot($i),k=ot();q(S,e,S),q(S,t,k),q(k,e,S),q(k,t,k),T(w,kt,S),T(g,kt,S);const C=T(l,ir),O=T(p,ir),D=T(O,kt),B=T(D,kt);q(l,r.domain,s),T(l,vt,y),T(l,rt,x),q(p,r.domain,s),T(p,vt,y),T(p,rt,x),q(C,r.domain,S),T(C,kt,S),T(C,sn,S),q(B,r.domain,S),q(B,e,S),T(B,kt,S);const E=[[on,nn],[Ei,Si],[Ci,Ni],[Bi,Mi],[Ti,Oi],[Vi,Pi],[Ai,Di],[Ii,Li]];for(let P=0;P<E.length;P++){const[_,ee]=E[P],re=T(S,_);T(k,_,re),T(re,ee,S);const G=ot($i);q(re,e,G);const z=ot();q(re,t),q(G,e,G),q(G,t,z),q(z,e,G),q(z,t,z),T(G,ee,S),T(z,ee,S)}return T(n,rn,w),T(n,bl,zv),{start:n,tokens:ib}}function Fv(r,e,t){let o=t.length,n=0,i=[],s=[];for(;n<o;){let l=r,p=null,c=null,d=0,u=null,b=-1;for(;n<o&&!(p=l.go(t[n].t));)s.push(t[n++]);for(;n<o&&(c=p||l.go(t[n].t));)p=null,l=c,l.accepts()?(b=0,u=l):b>=0&&b++,n++,d++;if(b<0)n-=d,n<o&&(s.push(t[n]),n++);else{s.length>0&&(i.push(El(ub,e,s)),s=[]),n-=b,d-=b;const m=u.t,f=t.slice(n-d,n);i.push(El(m,e,f))}}return s.length>0&&i.push(El(ub,e,s)),i}function El(r,e,t){const o=t[0].s,n=t[t.length-1].e,i=e.slice(o,n);return new r(i,t)}const jv=typeof console<"u"&&console&&console.warn||(()=>{}),Hv="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ie={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Wv(){return He.groups={},ie.scanner=null,ie.parser=null,ie.tokenQueue=[],ie.pluginQueue=[],ie.customSchemes=[],ie.initialized=!1,ie}function bb(r,e=!1){if(ie.initialized&&jv(`linkifyjs: already initialized - will not register custom scheme "${r}" ${Hv}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(r))throw new Error(`linkifyjs: incorrect scheme format.
|
|
125
125
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
126
126
|
2. Cannot start or end with "-"
|
|
127
|
-
3. "-" cannot repeat`);ie.customSchemes.push([r,e])}function Wv(){ie.scanner=Iv(ie.customSchemes);for(let r=0;r<ie.tokenQueue.length;r++)ie.tokenQueue[r][1]({scanner:ie.scanner});ie.parser=zv(ie.scanner.tokens);for(let r=0;r<ie.pluginQueue.length;r++)ie.pluginQueue[r][1]({scanner:ie.scanner,parser:ie.parser});return ie.initialized=!0,ie}function Sl(r){return ie.initialized||Wv(),_v(ie.parser.start,r,am(ie.scanner.start,r))}Sl.scan=am;function mm(r,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const o=new kl(t),n=Sl(r),i=[];for(let a=0;a<n.length;a++){const l=n[a];l.isLink&&(!e||l.t===e)&&o.check(l)&&i.push(l.toFormattedObject(o))}return i}function qv(r){return r.length===1?r[0].isLink:r.length===3&&r[1].isLink?["()","[]"].includes(r[0].value+r[2].value):!1}function Uv(r){return new he({key:new Ae("autolink"),appendTransaction:(e,t,o)=>{const n=e.some(d=>d.docChanged)&&!t.doc.eq(o.doc),i=e.some(d=>d.getMeta("preventAutolink"));if(!n||i)return;const{tr:a}=o,l=pw(t.doc,[...e]);if(yw(l).forEach(({newRange:d})=>{const u=hw(o.doc,d,h=>h.isTextblock);let p,m;if(u.length>1?(p=u[0],m=o.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):u.length&&o.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=u[0],m=o.doc.textBetween(p.pos,d.to,void 0," ")),p&&m){const h=m.split(" ").filter(y=>y!=="");if(h.length<=0)return!1;const f=h[h.length-1],g=p.pos+m.lastIndexOf(f);if(!f)return!1;const b=Sl(f).map(y=>y.toObject(r.defaultProtocol));if(!qv(b))return!1;b.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>r.validate(y.value)).filter(y=>r.shouldAutoLink(y.value)).forEach(y=>{Vs(y.from,y.to,o.doc).some(k=>k.mark.type===r.type)||a.addMark(y.from,y.to,r.type.create({href:y.href}))})}}),!!a.steps.length)return a}})}function Kv(r){return new he({key:new Ae("handleClickLink"),props:{handleClick:(e,t,o)=>{var n,i;if(o.button!==0||!e.editable)return!1;let a=o.target;const l=[];for(;a.nodeName!=="DIV";)l.push(a),a=a.parentNode;if(!l.find(m=>m.nodeName==="A"))return!1;const c=Gu(e.state,r.type.name),d=o.target,u=(n=d==null?void 0:d.href)!==null&&n!==void 0?n:c.href,p=(i=d==null?void 0:d.target)!==null&&i!==void 0?i:c.target;return d&&u?(window.open(u,p),!0):!1}}})}function Jv(r){return new he({key:new Ae("handlePasteLink"),props:{handlePaste:(e,t,o)=>{const{state:n}=e,{selection:i}=n,{empty:a}=i;if(a)return!1;let l="";o.content.forEach(d=>{l+=d.textContent});const c=mm(l,{defaultProtocol:r.defaultProtocol}).find(d=>d.isLink&&d.value===l);return!l||!c?!1:r.editor.commands.setMark(r.type,{href:c.href})}}})}const Gv=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Or(r,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const n=typeof o=="string"?o:o.scheme;n&&t.push(n)}),!r||r.replace(Gv,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Yv=Ot.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(r=>{if(typeof r=="string"){pm(r);return}pm(r.scheme,r.optionalSlashes)})},onDestroy(){Hv()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(r,e)=>!!Or(r,e.protocols),validate:r=>!!r,shouldAutoLink:r=>!!r}},addAttributes(){return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:r=>{const e=r.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!Or(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:r}){return this.options.isAllowedUri(r.href,{defaultValidate:e=>!!Or(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ne(this.options.HTMLAttributes,r),0]:["a",Ne(this.options.HTMLAttributes,{...r,href:""}),0]},addCommands(){return{setLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Or(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,r).setMeta("preventAutolink",!0).run():!1},toggleLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Or(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,r,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:r})=>r().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Sr({find:r=>{const e=[];if(r){const{protocols:t,defaultProtocol:o}=this.options,n=mm(r).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:a=>!!Or(a,t),protocols:t,defaultProtocol:o}));n.length&&n.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:r=>{var e;return{href:(e=r.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const r=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&r.push(Uv({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:n=>!!Or(n,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&r.push(Kv({type:this.type})),this.options.linkOnPaste&&r.push(Jv({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),r}}),Xv={class:"myInputGroup"},Qv={key:0,class:"min-h-[2.5rem] flex items-center justify-start"},Zv={class:"myPrimaryInputError mt-2 mb-0 py-0 self-start"},$v={class:"blockease-linear duration-200 block ease-linear"},ex={key:0},tx={class:"relative rounded-lg"},rx={class:"flex justify-between myPrimaryGap items-center py-4 px-4 overflow-x-auto border-b border-gray-200"},ox={class:"px-2 flex items-center justify-start gap-2 w-max p-1 rounded-full border border-gray-200 shadow-sm"},nx={class:"flex items-center p-1 rounded-full border border-gray-200 shadow-sm"},ix={class:"px-2 flex items-center justify-start gap-2 w-max"},ax={class:"px-2 flex items-center justify-start gap-2 w-max"},sx={class:"px-2 flex items-center justify-start gap-2 w-max"},lx={class:"px-2 flex items-center justify-start gap-2 w-max"},cx={class:"px-2 flex items-center justify-start gap-2 w-max"},dx={class:"px-2 flex items-center justify-start gap-2 w-max"},ux={__name:"TipTapInput",setup(r){const e=se,t=s.ref(!1),o=s.ref(""),n=s.ref(1),i=s.ref(""),a=s.ref(""),l=s.ref(""),c=s.ref(null),d=s.ref(null),u=s.ref(null),p=s.ref(null),m=s.ref(null),h=new de(e),f=s.computed(()=>e.getElement),g=s.ref(""),b=s.computed(()=>{if(k.value)return k.value.getHTML()}),y=s.ref(0);s.watch(f,B=>{const E=document.createElement("div");if(B){E.innerHTML=B;const P=E.textContent;y.value=P.length}});const k=N1({content:"",extensions:[Nv,Yv.configure({openOnClick:!1})],editorProps:{attributes:{class:"prose-sm sm:prose-sm lg:prose-sm focus:outline-none"}}});s.watch(b,async B=>{h.isSelectedElementValidText()&&f.value&&(e.setTextAreaVueModel(B),typeof B=="string"&&B!==g.value&&await h.handleTextInput(B))});const v=function(){h.isSelectedElementValidText()&&k.value&&k.value.commands.setContent(f.value.innerHTML)};s.watch(f,()=>{v()});const w=s.ref(""),S=s.ref(""),x=s.ref(null);s.watch(w,B=>{S.value=B});const C=function(){w.value=k.value.getAttributes("link").href,t.value=!0,o.value="success",n.value=2,i.value="Enter URL",a.value="Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address.",l.value="Close",c.value=w.value?"Remove url":null,d.value="Save",u.value=function(){t.value=!1,x.value=null},p.value=function(){k.value.chain().focus().extendMarkRange("link").unsetLink().run(),t.value=!1},m.value=function(){const B=O();B||(B||D(),t.value=!1)}},O=function(){x.value=null;const B=/^https?:\/\//,E=s.ref(!0);return E.value=B.test(S.value),E.value===!1?(x.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},D=function(){k.value.chain().focus().extendMarkRange("link").setLink({href:S.value}).run()};return s.onBeforeMount(()=>{var B;(B=k.value)==null||B.destroy()}),s.onMounted(()=>{v()}),(B,E)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(zr,{maxWidth:"4xl",showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:c.value,thirdButtonText:d.value,onFirstModalButtonFunctionDynamicModalBuilder:u.value,onSecondModalButtonFunctionDynamicModalBuilder:p.value,onThirdModalButtonFunctionDynamicModalBuilder:m.value},{default:s.withCtx(()=>[E[8]||(E[8]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",null,[s.createElementVNode("div",Xv,[E[7]||(E[7]=s.createElementVNode("label",{class:"myPrimaryInputLabel",for:"roles"},[s.createElementVNode("span",null,"Enter URL")],-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=P=>w.value=P),class:"myPrimaryInput mt-1",type:"url",placeholder:"url"},null,512),[[s.vModelText,w.value]]),x.value?(s.openBlock(),s.createElementBlock("div",Qv,[s.createElementVNode("p",Zv,s.toDisplayString(x.value),1)])):s.createCommentVNode("",!0)])])]),_:1,__:[8]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",$v,[s.unref(h).isSelectedElementValidText()&&s.unref(k)?(s.openBlock(),s.createElementBlock("div",ex,[s.createElementVNode("div",tx,[s.createElementVNode("div",rx,[s.createElementVNode("div",null,[s.createElementVNode("div",null,[s.createElementVNode("div",ox,[s.createElementVNode("button",{onClick:E[1]||(E[1]=P=>s.unref(h).toggleTipTapModal(!1)),type:"button",class:"myPrimaryTag"},E[9]||(E[9]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," Save ",-1),s.createElementVNode("span",null,"Save",-1)]))])])]),s.createElementVNode("div",nx,[s.createElementVNode("div",ix,[s.createElementVNode("button",{onClick:E[2]||(E[2]=P=>s.unref(k).chain().focus().setHardBreak().run()),type:"button",class:"myPrimaryTag"},E[10]||(E[10]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_return ",-1),s.createElementVNode("span",null,"Line break",-1)]))]),s.createElementVNode("div",ax,[s.createElementVNode("button",{onClick:E[3]||(E[3]=P=>s.unref(k).chain().focus().toggleBold().run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("bold")}])},E[11]||(E[11]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," format_bold ",-1),s.createElementVNode("span",null,"Bold",-1)]),2)]),s.createElementVNode("div",sx,[s.createElementVNode("button",{onClick:C,type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("link")}])},E[12]||(E[12]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," link ",-1),s.createElementVNode("span",null,"Link",-1)]),2)]),s.createElementVNode("div",lx,[s.createElementVNode("button",{onClick:E[4]||(E[4]=P=>s.unref(k).chain().focus().toggleHeading({level:2}).run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("heading",{level:2})}])},E[13]||(E[13]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),s.createElementVNode("span",null,"Header 2",-1)]),2)]),s.createElementVNode("div",cx,[s.createElementVNode("button",{onClick:E[5]||(E[5]=P=>s.unref(k).chain().focus().toggleHeading({level:3}).run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("heading",{level:3})}])},E[14]||(E[14]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),s.createElementVNode("span",null,"Header 3",-1)]),2)]),s.createElementVNode("div",dx,[s.createElementVNode("button",{onClick:E[6]||(E[6]=P=>s.unref(k).chain().focus().toggleBulletList().run()),type:"button",class:s.normalizeClass(["myPrimaryTag",{"bg-myPrimaryLinkColor text-white":s.unref(k).isActive("bulletList")}])},E[15]||(E[15]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," list ",-1),s.createElementVNode("span",null,"List",-1)]),2)])])]),s.createVNode(s.unref(C1),{id:"page-builder-editor",editor:s.unref(k),class:"p-2 prounded-lg lg:min-h-[20rem] lg:max-h-[30rem] md:min-h-[20rem] md:max-h-[20rem] min-h-[20rem] max-h-[20rem] overflow-y-auto"},null,8,["editor"])])])):s.createCommentVNode("",!0)])]))}},Cl=(r,e)=>{const t=r.__vccOpts||r;for(const[o,n]of e)t[o]=n;return t},px={},mx={class:"min-h-40"};function hx(r,e){return s.openBlock(),s.createElementBlock("div",mx,e[0]||(e[0]=[s.createElementVNode("p",{class:"myPrimaryParagraph"},[s.createTextVNode(" Provide your own Media Library Component to integrate a custom media picker into the Page Builder. "),s.createElementVNode("br"),s.createTextVNode(" This allows full control over how media is selected and inserted. ")],-1)]))}const fx=Cl(px,[["render",hx]]),gx={key:0,class:"w-full"},bx={key:1},hm={__name:"MediaLibraryModal",props:{title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String},open:{required:!0},customMediaComponent:{type:Object,default:null}},emits:["firstMediaButtonFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstMediaButtonFunction")},n=()=>{o()};return s.provide("closeMediaLibraryModal",n),(i,a)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,showModalBuilder:r.open,onCloseMainModalBuilder:o,maxWidth:"7xl"},{default:s.withCtx(()=>[r.customMediaComponent?(s.openBlock(),s.createElementBlock("div",gx,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.customMediaComponent)))])):(s.openBlock(),s.createElementBlock("div",bx,[s.createVNode(fx)]))]),_:1},8,["title","showModalBuilder"]))}};function wx(r,e,t){let o=s.ref(t==null?void 0:t.value),n=s.computed(()=>r.value!==void 0);return[s.computed(()=>n.value?r.value:o.value),function(i){return n.value||(o.value=i),e==null?void 0:e(i)}]}var fm;let yx=Symbol("headlessui.useid"),vx=0;const $i=(fm=_l.useId)!=null?fm:function(){return _l.inject(yx,()=>`${++vx}`)()};function ue(r){var e;if(r==null||r.value==null)return null;let t=(e=r.value.$el)!=null?e:r.value;return t instanceof Node?t:null}function dt(r,e,...t){if(r in e){let n=e[r];return typeof n=="function"?n(...t):n}let o=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,dt),o}var xx=Object.defineProperty,kx=(r,e,t)=>e in r?xx(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,gm=(r,e,t)=>(kx(r,typeof e!="symbol"?e+"":e,t),t);let Ex=class{constructor(){gm(this,"current",this.detect()),gm(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Nl=new Ex;function Sx(r){if(Nl.isServer)return null;if(r instanceof Node)return r.ownerDocument;if(r!=null&&r.hasOwnProperty("value")){let e=ue(r);if(e)return e.ownerDocument}return document}let bm=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(r=>`${r}:not([tabindex='-1'])`).join(",");var Cx=(r=>(r[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r))(Cx||{}),Nx=(r=>(r[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r))(Nx||{}),Bx=(r=>(r[r.Previous=-1]="Previous",r[r.Next=1]="Next",r))(Bx||{}),Bl=(r=>(r[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r))(Bl||{});function wm(r,e=0){var t;return r===((t=Sx(r))==null?void 0:t.body)?!1:dt(e,{0(){return r.matches(bm)},1(){let o=r;for(;o!==null;){if(o.matches(bm))return!0;o=o.parentElement}return!1}})}var Mx=(r=>(r[r.Keyboard=0]="Keyboard",r[r.Mouse=1]="Mouse",r))(Mx||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",r=>{r.metaKey||r.altKey||r.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",r=>{r.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:r.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Tx(r,e=t=>t){return r.slice().sort((t,o)=>{let n=e(t),i=e(o);if(n===null||i===null)return 0;let a=n.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ox(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Vx(){return/Android/gi.test(window.navigator.userAgent)}function Px(){return Ox()||Vx()}function ea(r,e,t){Nl.isServer||s.watchEffect(o=>{document.addEventListener(r,e,t),o(()=>document.removeEventListener(r,e,t))})}function Ax(r,e,t){Nl.isServer||s.watchEffect(o=>{window.addEventListener(r,e,t),o(()=>window.removeEventListener(r,e,t))})}function Dx(r,e,t=s.computed(()=>!0)){function o(i,a){if(!t.value||i.defaultPrevented)return;let l=a(i);if(l===null||!l.getRootNode().contains(l))return;let c=function d(u){return typeof u=="function"?d(u()):Array.isArray(u)||u instanceof Set?u:[u]}(r);for(let d of c){if(d===null)continue;let u=d instanceof HTMLElement?d:ue(d);if(u!=null&&u.contains(l)||i.composed&&i.composedPath().includes(u))return}return!wm(l,Bl.Loose)&&l.tabIndex!==-1&&i.preventDefault(),e(i,l)}let n=s.ref(null);ea("pointerdown",i=>{var a,l;t.value&&(n.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ea("mousedown",i=>{var a,l;t.value&&(n.value=((l=(a=i.composedPath)==null?void 0:a.call(i))==null?void 0:l[0])||i.target)},!0),ea("click",i=>{Px()||n.value&&(o(i,()=>n.value),n.value=null)},!0),ea("touchend",i=>o(i,()=>i.target instanceof HTMLElement?i.target:null),!0),Ax("blur",i=>o(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function ym(r,e){if(r)return r;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function Ix(r,e){let t=s.ref(ym(r.value.type,r.value.as));return s.onMounted(()=>{t.value=ym(r.value.type,r.value.as)}),s.watchEffect(()=>{var o;t.value||ue(e)&&ue(e)instanceof HTMLButtonElement&&!((o=ue(e))!=null&&o.hasAttribute("type"))&&(t.value="button")}),t}function vm(r){return[r.screenX,r.screenY]}function Lx(){let r=s.ref([-1,-1]);return{wasMoved(e){let t=vm(e);return r.value[0]===t[0]&&r.value[1]===t[1]?!1:(r.value=t,!0)},update(e){r.value=vm(e)}}}var Ml=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Ml||{}),Rx=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(Rx||{});function lo({visible:r=!0,features:e=0,ourProps:t,theirProps:o,...n}){var i;let a=km(o,t),l=Object.assign(n,{props:a});if(r||e&2&&a.static)return Tl(l);if(e&1){let c=(i=a.unmount)==null||i?0:1;return dt(c,{0(){return null},1(){return Tl({...n,props:{...a,hidden:!0,style:{display:"none"}}})}})}return Tl(l)}function Tl({props:r,attrs:e,slots:t,slot:o,name:n}){var i,a;let{as:l,...c}=Em(r,["unmount","static"]),d=(i=t.default)==null?void 0:i.call(t,o),u={};if(o){let p=!1,m=[];for(let[h,f]of Object.entries(o))typeof f=="boolean"&&(p=!0),f===!0&&m.push(h);p&&(u["data-headlessui-state"]=m.join(" "))}if(l==="template"){if(d=xm(d??[]),Object.keys(c).length>0||Object.keys(e).length>0){let[p,...m]=d??[];if(!_x(p)||m.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${n} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(c).concat(Object.keys(e)).map(g=>g.trim()).filter((g,b,y)=>y.indexOf(g)===b).sort((g,b)=>g.localeCompare(b)).map(g=>` - ${g}`).join(`
|
|
128
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(
|
|
127
|
+
3. "-" cannot repeat`);ie.customSchemes.push([r,e])}function Uv(){ie.scanner=Lv(ie.customSchemes);for(let r=0;r<ie.tokenQueue.length;r++)ie.tokenQueue[r][1]({scanner:ie.scanner});ie.parser=_v(ie.scanner.tokens);for(let r=0;r<ie.pluginQueue.length;r++)ie.pluginQueue[r][1]({scanner:ie.scanner,parser:ie.parser});return ie.initialized=!0,ie}function Sl(r){return ie.initialized||Uv(),Fv(ie.parser.start,r,sb(ie.scanner.start,r))}Sl.scan=sb;function mb(r,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const o=new kl(t),n=Sl(r),i=[];for(let s=0;s<n.length;s++){const l=n[s];l.isLink&&(!e||l.t===e)&&o.check(l)&&i.push(l.toFormattedObject(o))}return i}function qv(r){return r.length===1?r[0].isLink:r.length===3&&r[1].isLink?["()","[]"].includes(r[0].value+r[2].value):!1}function Kv(r){return new me({key:new Ae("autolink"),appendTransaction:(e,t,o)=>{const n=e.some(c=>c.docChanged)&&!t.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!n||i)return;const{tr:s}=o,l=b0(t.doc,[...e]);if(w0(l).forEach(({newRange:c})=>{const d=f0(o.doc,c,m=>m.isTextblock);let u,b;if(d.length>1?(u=d[0],b=o.doc.textBetween(u.pos,u.pos+u.node.nodeSize,void 0," ")):d.length&&o.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(u=d[0],b=o.doc.textBetween(u.pos,c.to,void 0," ")),u&&b){const m=b.split(" ").filter(y=>y!=="");if(m.length<=0)return!1;const f=m[m.length-1],h=u.pos+b.lastIndexOf(f);if(!f)return!1;const x=Sl(f).map(y=>y.toObject(r.defaultProtocol));if(!qv(x))return!1;x.filter(y=>y.isLink).map(y=>({...y,from:h+y.start+1,to:h+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>r.validate(y.value)).filter(y=>r.shouldAutoLink(y.value)).forEach(y=>{Vs(y.from,y.to,o.doc).some(w=>w.mark.type===r.type)||s.addMark(y.from,y.to,r.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function Gv(r){return new me({key:new Ae("handleClickLink"),props:{handleClick:(e,t,o)=>{var n,i;if(o.button!==0||!e.editable)return!1;let s=o.target;const l=[];for(;s.nodeName!=="DIV";)l.push(s),s=s.parentNode;if(!l.find(b=>b.nodeName==="A"))return!1;const p=Yd(e.state,r.type.name),c=o.target,d=(n=c==null?void 0:c.href)!==null&&n!==void 0?n:p.href,u=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:p.target;return c&&d?(window.open(d,u),!0):!1}}})}function Jv(r){return new me({key:new Ae("handlePasteLink"),props:{handlePaste:(e,t,o)=>{const{state:n}=e,{selection:i}=n,{empty:s}=i;if(s)return!1;let l="";o.content.forEach(c=>{l+=c.textContent});const p=mb(l,{defaultProtocol:r.defaultProtocol}).find(c=>c.isLink&&c.value===l);return!l||!p?!1:r.editor.commands.setMark(r.type,{href:p.href})}}})}const Yv=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Vr(r,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const n=typeof o=="string"?o:o.scheme;n&&t.push(n)}),!r||r.replace(Yv,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const Xv=Ot.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(r=>{if(typeof r=="string"){bb(r);return}bb(r.scheme,r.optionalSlashes)})},onDestroy(){Wv()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(r,e)=>!!Vr(r,e.protocols),validate:r=>!!r,shouldAutoLink:r=>!!r}},addAttributes(){return{href:{default:null,parseHTML(r){return r.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:r=>{const e=r.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!Vr(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:r}){return this.options.isAllowedUri(r.href,{defaultValidate:e=>!!Vr(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Ne(this.options.HTMLAttributes,r),0]:["a",Ne(this.options.HTMLAttributes,{...r,href:""}),0]},addCommands(){return{setLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Vr(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,r).setMeta("preventAutolink",!0).run():!1},toggleLink:r=>({chain:e})=>{const{href:t}=r;return this.options.isAllowedUri(t,{defaultValidate:o=>!!Vr(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,r,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:r})=>r().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Cr({find:r=>{const e=[];if(r){const{protocols:t,defaultProtocol:o}=this.options,n=mb(r).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!Vr(s,t),protocols:t,defaultProtocol:o}));n.length&&n.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:r=>{var e;return{href:(e=r.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const r=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&r.push(Kv({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:n=>!!Vr(n,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&r.push(Gv({type:this.type})),this.options.linkOnPaste&&r.push(Jv({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),r}}),Qv={class:"pbx-myInputGroup"},Zv={key:0,class:"pbx-min-h-[2.5rem] pbx-flex pbx-items-center pbx-justify-start"},$v={class:"pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start"},e1={class:"pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear"},t1={key:0},r1={class:"pbx-relative pbx-rounded-lg"},o1={class:"pbx-flex pbx-justify-between pbx-myPrimaryGap pbx-items-center pbx-py-4 pbx-px-4 pbx-overflow-x-auto pbx-border-b pbx-border-gray-200"},n1={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max pbx-p-1 pbx-rounded-full pbx-border pbx-border-gray-200 pbx-shadow-sm"},i1={class:"pbx-flex pbx-items-center pbx-p-1 pbx-rounded-full pbx-border pbx-border-gray-200 pbx-shadow-sm"},a1={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},s1={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},l1={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},p1={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},c1={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},d1={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},u1={__name:"TipTapInput",setup(r){const e=ae,t=a.ref(!1),o=a.ref(""),n=a.ref(1),i=a.ref(""),s=a.ref(""),l=a.ref(""),p=a.ref(null),c=a.ref(null),d=a.ref(null),u=a.ref(null),b=a.ref(null),m=new le(e),f=a.computed(()=>e.getElement),h=a.ref(""),x=a.computed(()=>{if(w.value)return w.value.getHTML()}),y=a.ref(0);a.watch(f,B=>{const E=document.createElement("div");if(B){E.innerHTML=B;const P=E.textContent;y.value=P.length}});const w=Bw({content:"",extensions:[Bv,Xv.configure({openOnClick:!1})],editorProps:{attributes:{class:"prose-sm sm:prose-sm lg:prose-sm focus:outline-none"}}});a.watch(x,async B=>{m.isSelectedElementValidText()&&f.value&&(e.setTextAreaVueModel(B),typeof B=="string"&&B!==h.value&&await m.handleTextInput(B))});const v=function(){m.isSelectedElementValidText()&&w.value&&w.value.commands.setContent(f.value.innerHTML)};a.watch(f,()=>{v()});const g=a.ref(""),S=a.ref(""),k=a.ref(null);a.watch(g,B=>{S.value=B});const C=function(){g.value=w.value.getAttributes("link").href,t.value=!0,o.value="success",n.value=2,i.value="Enter URL",s.value="Add a valid URL to transform the selected text into a clickable hyperlink that directs users to the specified web address.",l.value="Close",p.value=g.value?"Remove url":null,c.value="Save",d.value=function(){t.value=!1,k.value=null},u.value=function(){w.value.chain().focus().extendMarkRange("link").unsetLink().run(),t.value=!1},b.value=function(){const B=O();B||(B||D(),t.value=!1)}},O=function(){k.value=null;const B=/^https?:\/\//,E=a.ref(!0);return E.value=B.test(S.value),E.value===!1?(k.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},D=function(){w.value.chain().focus().extendMarkRange("link").setLink({href:S.value}).run()};return a.onBeforeMount(()=>{var B;(B=w.value)==null||B.destroy()}),a.onMounted(()=>{v()}),(B,E)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Rr,{maxWidth:"4xl",showDynamicModalBuilder:t.value,type:o.value,gridColumnAmount:n.value,title:i.value,description:s.value,firstButtonText:l.value,secondButtonText:p.value,thirdButtonText:c.value,onFirstModalButtonFunctionDynamicModalBuilder:d.value,onSecondModalButtonFunctionDynamicModalBuilder:u.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:a.withCtx(()=>[E[8]||(E[8]=a.createElementVNode("header",null,null,-1)),a.createElementVNode("main",null,[a.createElementVNode("div",Qv,[E[7]||(E[7]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel",for:"roles"},[a.createElementVNode("span",null,"Enter URL")],-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":E[0]||(E[0]=P=>g.value=P),class:"pbx-myPrimaryInput pbx-mt-1",type:"url",placeholder:"url"},null,512),[[a.vModelText,g.value]]),k.value?(a.openBlock(),a.createElementBlock("div",Zv,[a.createElementVNode("p",$v,a.toDisplayString(k.value),1)])):a.createCommentVNode("",!0)])])]),_:1,__:[8]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),a.createElementVNode("div",e1,[a.unref(m).isSelectedElementValidText()&&a.unref(w)?(a.openBlock(),a.createElementBlock("div",t1,[a.createElementVNode("div",r1,[a.createElementVNode("div",o1,[a.createElementVNode("div",null,[a.createElementVNode("div",null,[a.createElementVNode("div",n1,[a.createElementVNode("button",{onClick:E[1]||(E[1]=P=>a.unref(m).toggleTipTapModal(!1)),type:"button",class:"pbx-myPrimaryTag"},E[9]||(E[9]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," Save ",-1),a.createElementVNode("span",null,"Save",-1)]))])])]),a.createElementVNode("div",i1,[a.createElementVNode("div",a1,[a.createElementVNode("button",{onClick:E[2]||(E[2]=P=>a.unref(w).chain().focus().setHardBreak().run()),type:"button",class:"pbx-myPrimaryTag"},E[10]||(E[10]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_return ",-1),a.createElementVNode("span",null,"Line break",-1)]))]),a.createElementVNode("div",s1,[a.createElementVNode("button",{onClick:E[3]||(E[3]=P=>a.unref(w).chain().focus().toggleBold().run()),type:"button",class:a.normalizeClass(["pbx-myPrimaryTag",{"pbx-bg-myPrimaryLinkColor pbx-text-white":a.unref(w).isActive("bold")}])},E[11]||(E[11]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," format_bold ",-1),a.createElementVNode("span",null,"Bold",-1)]),2)]),a.createElementVNode("div",l1,[a.createElementVNode("button",{onClick:C,type:"button",class:a.normalizeClass(["pbx-myPrimaryTag",{"pbx-bg-myPrimaryLinkColor pbx-text-white":a.unref(w).isActive("link")}])},E[12]||(E[12]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," link ",-1),a.createElementVNode("span",null,"Link",-1)]),2)]),a.createElementVNode("div",p1,[a.createElementVNode("button",{onClick:E[4]||(E[4]=P=>a.unref(w).chain().focus().toggleHeading({level:2}).run()),type:"button",class:a.normalizeClass(["pbx-myPrimaryTag",{"pbx-bg-myPrimaryLinkColor pbx-text-white":a.unref(w).isActive("heading",{level:2})}])},E[13]||(E[13]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),a.createElementVNode("span",null,"Header 2",-1)]),2)]),a.createElementVNode("div",c1,[a.createElementVNode("button",{onClick:E[5]||(E[5]=P=>a.unref(w).chain().focus().toggleHeading({level:3}).run()),type:"button",class:a.normalizeClass(["pbx-myPrimaryTag",{"pbx-bg-myPrimaryLinkColor pbx-text-white":a.unref(w).isActive("heading",{level:3})}])},E[14]||(E[14]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," titlecase ",-1),a.createElementVNode("span",null,"Header 3",-1)]),2)]),a.createElementVNode("div",d1,[a.createElementVNode("button",{onClick:E[6]||(E[6]=P=>a.unref(w).chain().focus().toggleBulletList().run()),type:"button",class:a.normalizeClass(["pbx-myPrimaryTag",{"pbx-bg-myPrimaryLinkColor pbx-text-white":a.unref(w).isActive("bulletList")}])},E[15]||(E[15]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," list ",-1),a.createElementVNode("span",null,"List",-1)]),2)])])]),a.createVNode(a.unref(Nw),{id:"page-builder-editor",editor:a.unref(w),class:"pbx-p-2 pbx-prounded-lg lg:pbx-min-h-[20rem] lg:pbx-max-h-[30rem] md:pbx-min-h-[20rem] md:pbx-max-h-[20rem] pbx-min-h-[20rem] pbx-max-h-[20rem] pbx-overflow-y-auto"},null,8,["editor"])])])):a.createCommentVNode("",!0)])]))}},Cl=(r,e)=>{const t=r.__vccOpts||r;for(const[o,n]of e)t[o]=n;return t},b1={},m1={class:"pbx-min-h-40"};function f1(r,e){return a.openBlock(),a.createElementBlock("div",m1,e[0]||(e[0]=[a.createElementVNode("p",{class:"pbx-myPrimaryParagraph"},[a.createTextVNode(" Provide your own Media Library Component to integrate a custom media picker into the Page Builder. "),a.createElementVNode("br"),a.createTextVNode(" This allows full control over how media is selected and inserted. ")],-1)]))}const h1=Cl(b1,[["render",f1]]),x1={key:0,class:"pbx-w-full"},g1={key:1},fb={__name:"MediaLibraryModal",props:{title:{type:String,required:!0},description:{required:!0},firstButtonText:{type:String},secondButtonText:{type:String},thirdButtonText:{type:String},open:{required:!0},customMediaComponent:{type:Object,default:null}},emits:["firstMediaButtonFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstMediaButtonFunction")},n=()=>{o()};return a.provide("closeMediaLibraryModal",n),(i,s)=>(a.openBlock(),a.createBlock(Lr,{title:r.title,showModalBuilder:r.open,onCloseMainModalBuilder:o,maxWidth:"6xl"},{default:a.withCtx(()=>[r.customMediaComponent?(a.openBlock(),a.createElementBlock("div",x1,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.customMediaComponent)))])):(a.openBlock(),a.createElementBlock("div",g1,[a.createVNode(h1)]))]),_:1},8,["title","showModalBuilder"]))}};function y1(r,e,t){let o=a.ref(t==null?void 0:t.value),n=a.computed(()=>r.value!==void 0);return[a.computed(()=>n.value?r.value:o.value),function(i){return n.value||(o.value=i),e==null?void 0:e(i)}]}var hb;let w1=Symbol("headlessui.useid"),v1=0;const ea=(hb=Fl.useId)!=null?hb:function(){return Fl.inject(w1,()=>`${++v1}`)()};function ue(r){var e;if(r==null||r.value==null)return null;let t=(e=r.value.$el)!=null?e:r.value;return t instanceof Node?t:null}function ct(r,e,...t){if(r in e){let n=e[r];return typeof n=="function"?n(...t):n}let o=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,ct),o}var k1=Object.defineProperty,E1=(r,e,t)=>e in r?k1(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,xb=(r,e,t)=>(E1(r,typeof e!="symbol"?e+"":e,t),t);let S1=class{constructor(){xb(this,"current",this.detect()),xb(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},Nl=new S1;function C1(r){if(Nl.isServer)return null;if(r instanceof Node)return r.ownerDocument;if(r!=null&&r.hasOwnProperty("value")){let e=ue(r);if(e)return e.ownerDocument}return document}let gb=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(r=>`${r}:not([tabindex='-1'])`).join(",");var N1=(r=>(r[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r))(N1||{}),B1=(r=>(r[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r))(B1||{}),M1=(r=>(r[r.Previous=-1]="Previous",r[r.Next=1]="Next",r))(M1||{}),Bl=(r=>(r[r.Strict=0]="Strict",r[r.Loose=1]="Loose",r))(Bl||{});function yb(r,e=0){var t;return r===((t=C1(r))==null?void 0:t.body)?!1:ct(e,{0(){return r.matches(gb)},1(){let o=r;for(;o!==null;){if(o.matches(gb))return!0;o=o.parentElement}return!1}})}var T1=(r=>(r[r.Keyboard=0]="Keyboard",r[r.Mouse=1]="Mouse",r))(T1||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",r=>{r.metaKey||r.altKey||r.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",r=>{r.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:r.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function O1(r,e=t=>t){return r.slice().sort((t,o)=>{let n=e(t),i=e(o);if(n===null||i===null)return 0;let s=n.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function V1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function P1(){return/Android/gi.test(window.navigator.userAgent)}function A1(){return V1()||P1()}function ta(r,e,t){Nl.isServer||a.watchEffect(o=>{document.addEventListener(r,e,t),o(()=>document.removeEventListener(r,e,t))})}function D1(r,e,t){Nl.isServer||a.watchEffect(o=>{window.addEventListener(r,e,t),o(()=>window.removeEventListener(r,e,t))})}function I1(r,e,t=a.computed(()=>!0)){function o(i,s){if(!t.value||i.defaultPrevented)return;let l=s(i);if(l===null||!l.getRootNode().contains(l))return;let p=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(r);for(let c of p){if(c===null)continue;let d=c instanceof HTMLElement?c:ue(c);if(d!=null&&d.contains(l)||i.composed&&i.composedPath().includes(d))return}return!yb(l,Bl.Loose)&&l.tabIndex!==-1&&i.preventDefault(),e(i,l)}let n=a.ref(null);ta("pointerdown",i=>{var s,l;t.value&&(n.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),ta("mousedown",i=>{var s,l;t.value&&(n.value=((l=(s=i.composedPath)==null?void 0:s.call(i))==null?void 0:l[0])||i.target)},!0),ta("click",i=>{A1()||n.value&&(o(i,()=>n.value),n.value=null)},!0),ta("touchend",i=>o(i,()=>i.target instanceof HTMLElement?i.target:null),!0),D1("blur",i=>o(i,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function wb(r,e){if(r)return r;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function L1(r,e){let t=a.ref(wb(r.value.type,r.value.as));return a.onMounted(()=>{t.value=wb(r.value.type,r.value.as)}),a.watchEffect(()=>{var o;t.value||ue(e)&&ue(e)instanceof HTMLButtonElement&&!((o=ue(e))!=null&&o.hasAttribute("type"))&&(t.value="button")}),t}function vb(r){return[r.screenX,r.screenY]}function R1(){let r=a.ref([-1,-1]);return{wasMoved(e){let t=vb(e);return r.value[0]===t[0]&&r.value[1]===t[1]?!1:(r.value=t,!0)},update(e){r.value=vb(e)}}}var Ml=(r=>(r[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r))(Ml||{}),z1=(r=>(r[r.Unmount=0]="Unmount",r[r.Hidden=1]="Hidden",r))(z1||{});function co({visible:r=!0,features:e=0,ourProps:t,theirProps:o,...n}){var i;let s=Eb(o,t),l=Object.assign(n,{props:s});if(r||e&2&&s.static)return Tl(l);if(e&1){let p=(i=s.unmount)==null||i?0:1;return ct(p,{0(){return null},1(){return Tl({...n,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Tl(l)}function Tl({props:r,attrs:e,slots:t,slot:o,name:n}){var i,s;let{as:l,...p}=Sb(r,["unmount","static"]),c=(i=t.default)==null?void 0:i.call(t,o),d={};if(o){let u=!1,b=[];for(let[m,f]of Object.entries(o))typeof f=="boolean"&&(u=!0),f===!0&&b.push(m);u&&(d["data-headlessui-state"]=b.join(" "))}if(l==="template"){if(c=kb(c??[]),Object.keys(p).length>0||Object.keys(e).length>0){let[u,...b]=c??[];if(!F1(u)||b.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${n} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(p).concat(Object.keys(e)).map(h=>h.trim()).filter((h,x,y)=>y.indexOf(h)===x).sort((h,x)=>h.localeCompare(x)).map(h=>` - ${h}`).join(`
|
|
128
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
|
|
129
129
|
`)].join(`
|
|
130
|
-
`));let h=km((a=p.props)!=null?a:{},c,u),f=s.cloneVNode(p,h,!0);for(let g in h)g.startsWith("on")&&(f.props||(f.props={}),f.props[g]=h[g]);return f}return Array.isArray(d)&&d.length===1?d[0]:d}return s.h(l,Object.assign({},c,u),{default:()=>d})}function xm(r){return r.flatMap(e=>e.type===s.Fragment?xm(e.children):[e])}function km(...r){if(r.length===0)return{};if(r.length===1)return r[0];let e={},t={};for(let o of r)for(let n in o)n.startsWith("on")&&typeof o[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(o[n])):e[n]=o[n];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(o=>[o,void 0])));for(let o in t)Object.assign(e,{[o](n,...i){let a=t[o];for(let l of a){if(n instanceof Event&&n.defaultPrevented)return;l(n,...i)}}});return e}function zx(r){let e=Object.assign({},r);for(let t in e)e[t]===void 0&&delete e[t];return e}function Em(r,e=[]){let t=Object.assign({},r);for(let o of e)o in t&&delete t[o];return t}function _x(r){return r==null?!1:typeof r.type=="string"||typeof r.type=="object"||typeof r.type=="function"}var Sm=(r=>(r[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r))(Sm||{});let Fx=s.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(r,{slots:e,attrs:t}){return()=>{var o;let{features:n,...i}=r,a={"aria-hidden":(n&2)===2?!0:(o=i["aria-hidden"])!=null?o:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return lo({ourProps:a,theirProps:i,slot:{},attrs:t,slots:e,name:"Hidden"})}}}),Cm=Symbol("Context");var cn=(r=>(r[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r))(cn||{});function jx(){return s.inject(Cm,null)}function Hx(r){s.provide(Cm,r)}var xe=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(xe||{});function Wx(r){throw new Error("Unexpected object: "+r)}var Re=(r=>(r[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r))(Re||{});function qx(r,e){let t=e.resolveItems();if(t.length<=0)return null;let o=e.resolveActiveIndex(),n=o??-1;switch(r.focus){case 0:{for(let i=0;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 1:{n===-1&&(n=t.length);for(let i=n-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 2:{for(let i=n+1;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 3:{for(let i=t.length-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 4:{for(let i=0;i<t.length;++i)if(e.resolveId(t[i],i,t)===r.id)return i;return o}case 5:return null;default:Wx(r)}}function Nm(r={},e=null,t=[]){for(let[o,n]of Object.entries(r))Mm(t,Bm(e,o),n);return t}function Bm(r,e){return r?r+"["+e+"]":e}function Mm(r,e,t){if(Array.isArray(t))for(let[o,n]of t.entries())Mm(r,Bm(e,o.toString()),n);else t instanceof Date?r.push([e,t.toISOString()]):typeof t=="boolean"?r.push([e,t?"1":"0"]):typeof t=="string"?r.push([e,t]):typeof t=="number"?r.push([e,`${t}`]):t==null?r.push([e,""]):Nm(t,e,r)}let Tm=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Om(r){var e,t;let o=(e=r.innerText)!=null?e:"",n=r.cloneNode(!0);if(!(n instanceof HTMLElement))return o;let i=!1;for(let l of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let a=i?(t=n.innerText)!=null?t:"":o;return Tm.test(a)&&(a=a.replace(Tm,"")),a}function Ux(r){let e=r.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=r.getAttribute("aria-labelledby");if(t){let o=t.split(" ").map(n=>{let i=document.getElementById(n);if(i){let a=i.getAttribute("aria-label");return typeof a=="string"?a.trim():Om(i).trim()}return null}).filter(Boolean);if(o.length>0)return o.join(", ")}return Om(r).trim()}function Kx(r){let e=s.ref(""),t=s.ref("");return()=>{let o=ue(r);if(!o)return"";let n=o.innerText;if(e.value===n)return t.value;let i=Ux(o).trim().toLowerCase();return e.value=n,t.value=i,i}}function Jx(r,e){return r===e}var Gx=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))(Gx||{}),Yx=(r=>(r[r.Single=0]="Single",r[r.Multi=1]="Multi",r))(Yx||{}),Xx=(r=>(r[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r))(Xx||{});function Qx(r){requestAnimationFrame(()=>requestAnimationFrame(r))}let Vm=Symbol("ListboxContext");function dn(r){let e=s.inject(Vm,null);if(e===null){let t=new Error(`<${r} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,dn),t}return e}let un=s.defineComponent({name:"Listbox",emits:{"update:modelValue":r=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Jx},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(r,{slots:e,attrs:t,emit:o}){let n=s.ref(1),i=s.ref(null),a=s.ref(null),l=s.ref(null),c=s.ref([]),d=s.ref(""),u=s.ref(null),p=s.ref(1);function m(v=w=>w){let w=u.value!==null?c.value[u.value]:null,S=Tx(v(c.value.slice()),C=>ue(C.dataRef.domRef)),x=w?S.indexOf(w):null;return x===-1&&(x=null),{options:S,activeOptionIndex:x}}let h=s.computed(()=>r.multiple?1:0),[f,g]=wx(s.computed(()=>r.modelValue),v=>o("update:modelValue",v),s.computed(()=>r.defaultValue)),b=s.computed(()=>f.value===void 0?dt(h.value,{1:[],0:void 0}):f.value),y={listboxState:n,value:b,mode:h,compare(v,w){if(typeof r.by=="string"){let S=r.by;return(v==null?void 0:v[S])===(w==null?void 0:w[S])}return r.by(v,w)},orientation:s.computed(()=>r.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:a,optionsRef:l,disabled:s.computed(()=>r.disabled),options:c,searchQuery:d,activeOptionIndex:u,activationTrigger:p,closeListbox(){r.disabled||n.value!==1&&(n.value=1,u.value=null)},openListbox(){r.disabled||n.value!==0&&(n.value=0)},goToOption(v,w,S){if(r.disabled||n.value===1)return;let x=m(),C=qx(v===Re.Specific?{focus:Re.Specific,id:w}:{focus:v},{resolveItems:()=>x.options,resolveActiveIndex:()=>x.activeOptionIndex,resolveId:O=>O.id,resolveDisabled:O=>O.dataRef.disabled});d.value="",u.value=C,p.value=S??1,c.value=x.options},search(v){if(r.disabled||n.value===1)return;let w=d.value!==""?0:1;d.value+=v.toLowerCase();let S=(u.value!==null?c.value.slice(u.value+w).concat(c.value.slice(0,u.value+w)):c.value).find(C=>C.dataRef.textValue.startsWith(d.value)&&!C.dataRef.disabled),x=S?c.value.indexOf(S):-1;x===-1||x===u.value||(u.value=x,p.value=1)},clearSearch(){r.disabled||n.value!==1&&d.value!==""&&(d.value="")},registerOption(v,w){let S=m(x=>[...x,{id:v,dataRef:w}]);c.value=S.options,u.value=S.activeOptionIndex},unregisterOption(v){let w=m(S=>{let x=S.findIndex(C=>C.id===v);return x!==-1&&S.splice(x,1),S});c.value=w.options,u.value=w.activeOptionIndex,p.value=1},theirOnChange(v){r.disabled||g(v)},select(v){r.disabled||g(dt(h.value,{0:()=>v,1:()=>{let w=s.toRaw(y.value.value).slice(),S=s.toRaw(v),x=w.findIndex(C=>y.compare(S,s.toRaw(C)));return x===-1?w.push(S):w.splice(x,1),w}}))}};Dx([a,l],(v,w)=>{var S;y.closeListbox(),wm(w,Bl.Loose)||(v.preventDefault(),(S=ue(a))==null||S.focus())},s.computed(()=>n.value===0)),s.provide(Vm,y),Hx(s.computed(()=>dt(n.value,{0:cn.Open,1:cn.Closed})));let k=s.computed(()=>{var v;return(v=ue(a))==null?void 0:v.closest("form")});return s.onMounted(()=>{s.watch([k],()=>{if(!k.value||r.defaultValue===void 0)return;function v(){y.theirOnChange(r.defaultValue)}return k.value.addEventListener("reset",v),()=>{var w;(w=k.value)==null||w.removeEventListener("reset",v)}},{immediate:!0})}),()=>{let{name:v,modelValue:w,disabled:S,form:x,...C}=r,O={open:n.value===0,disabled:S,value:b.value};return s.h(s.Fragment,[...v!=null&&b.value!=null?Nm({[v]:b.value}).map(([D,B])=>s.h(Fx,zx({features:Sm.Hidden,key:D,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:x,disabled:S,name:D,value:B}))):[],lo({ourProps:{},theirProps:{...t,...Em(C,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:O,slots:e,attrs:t,name:"Listbox"})])}}});s.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t}){var o;let n=(o=r.id)!=null?o:`headlessui-listbox-label-${$i()}`,i=dn("ListboxLabel");function a(){var l;(l=ue(i.buttonRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.listboxState.value===0,disabled:i.disabled.value},{...c}=r,d={id:n,ref:i.labelRef,onClick:a};return lo({ourProps:d,theirProps:c,slot:l,attrs:e,slots:t,name:"ListboxLabel"})}}});let pn=s.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-button-${$i()}`,a=dn("ListboxButton");o({el:a.buttonRef,$el:a.buttonRef});function l(p){switch(p.key){case xe.Space:case xe.Enter:case xe.ArrowDown:p.preventDefault(),a.openListbox(),s.nextTick(()=>{var m;(m=ue(a.optionsRef))==null||m.focus({preventScroll:!0}),a.value.value||a.goToOption(Re.First)});break;case xe.ArrowUp:p.preventDefault(),a.openListbox(),s.nextTick(()=>{var m;(m=ue(a.optionsRef))==null||m.focus({preventScroll:!0}),a.value.value||a.goToOption(Re.Last)});break}}function c(p){switch(p.key){case xe.Space:p.preventDefault();break}}function d(p){a.disabled.value||(a.listboxState.value===0?(a.closeListbox(),s.nextTick(()=>{var m;return(m=ue(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})})):(p.preventDefault(),a.openListbox(),Qx(()=>{var m;return(m=ue(a.optionsRef))==null?void 0:m.focus({preventScroll:!0})})))}let u=Ix(s.computed(()=>({as:r.as,type:e.type})),a.buttonRef);return()=>{var p,m;let h={open:a.listboxState.value===0,disabled:a.disabled.value,value:a.value.value},{...f}=r,g={ref:a.buttonRef,id:i,type:u.value,"aria-haspopup":"listbox","aria-controls":(p=ue(a.optionsRef))==null?void 0:p.id,"aria-expanded":a.listboxState.value===0,"aria-labelledby":a.labelRef.value?[(m=ue(a.labelRef))==null?void 0:m.id,i].join(" "):void 0,disabled:a.disabled.value===!0?!0:void 0,onKeydown:l,onKeyup:c,onClick:d};return lo({ourProps:g,theirProps:f,slot:h,attrs:e,slots:t,name:"ListboxButton"})}}}),mn=s.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-options-${$i()}`,a=dn("ListboxOptions"),l=s.ref(null);o({el:a.optionsRef,$el:a.optionsRef});function c(p){switch(l.value&&clearTimeout(l.value),p.key){case xe.Space:if(a.searchQuery.value!=="")return p.preventDefault(),p.stopPropagation(),a.search(p.key);case xe.Enter:if(p.preventDefault(),p.stopPropagation(),a.activeOptionIndex.value!==null){let m=a.options.value[a.activeOptionIndex.value];a.select(m.dataRef.value)}a.mode.value===0&&(a.closeListbox(),s.nextTick(()=>{var m;return(m=ue(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})}));break;case dt(a.orientation.value,{vertical:xe.ArrowDown,horizontal:xe.ArrowRight}):return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.Next);case dt(a.orientation.value,{vertical:xe.ArrowUp,horizontal:xe.ArrowLeft}):return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.Previous);case xe.Home:case xe.PageUp:return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.First);case xe.End:case xe.PageDown:return p.preventDefault(),p.stopPropagation(),a.goToOption(Re.Last);case xe.Escape:p.preventDefault(),p.stopPropagation(),a.closeListbox(),s.nextTick(()=>{var m;return(m=ue(a.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case xe.Tab:p.preventDefault(),p.stopPropagation();break;default:p.key.length===1&&(a.search(p.key),l.value=setTimeout(()=>a.clearSearch(),350));break}}let d=jx(),u=s.computed(()=>d!==null?(d.value&cn.Open)===cn.Open:a.listboxState.value===0);return()=>{var p,m;let h={open:a.listboxState.value===0},{...f}=r,g={"aria-activedescendant":a.activeOptionIndex.value===null||(p=a.options.value[a.activeOptionIndex.value])==null?void 0:p.id,"aria-multiselectable":a.mode.value===1?!0:void 0,"aria-labelledby":(m=ue(a.buttonRef))==null?void 0:m.id,"aria-orientation":a.orientation.value,id:i,onKeydown:c,role:"listbox",tabIndex:0,ref:a.optionsRef};return lo({ourProps:g,theirProps:f,slot:h,attrs:e,slots:t,features:Ml.RenderStrategy|Ml.Static,visible:u.value,name:"ListboxOptions"})}}}),hn=s.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(r,{slots:e,attrs:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-option-${$i()}`,a=dn("ListboxOption"),l=s.ref(null);o({el:l,$el:l});let c=s.computed(()=>a.activeOptionIndex.value!==null?a.options.value[a.activeOptionIndex.value].id===i:!1),d=s.computed(()=>dt(a.mode.value,{0:()=>a.compare(s.toRaw(a.value.value),s.toRaw(r.value)),1:()=>s.toRaw(a.value.value).some(v=>a.compare(s.toRaw(v),s.toRaw(r.value)))})),u=s.computed(()=>dt(a.mode.value,{1:()=>{var v;let w=s.toRaw(a.value.value);return((v=a.options.value.find(S=>w.some(x=>a.compare(s.toRaw(x),s.toRaw(S.dataRef.value)))))==null?void 0:v.id)===i},0:()=>d.value})),p=Kx(l),m=s.computed(()=>({disabled:r.disabled,value:r.value,get textValue(){return p()},domRef:l}));s.onMounted(()=>a.registerOption(i,m)),s.onUnmounted(()=>a.unregisterOption(i)),s.onMounted(()=>{s.watch([a.listboxState,d],()=>{a.listboxState.value===0&&d.value&&dt(a.mode.value,{1:()=>{u.value&&a.goToOption(Re.Specific,i)},0:()=>{a.goToOption(Re.Specific,i)}})},{immediate:!0})}),s.watchEffect(()=>{a.listboxState.value===0&&c.value&&a.activationTrigger.value!==0&&s.nextTick(()=>{var v,w;return(w=(v=ue(l))==null?void 0:v.scrollIntoView)==null?void 0:w.call(v,{block:"nearest"})})});function h(v){if(r.disabled)return v.preventDefault();a.select(r.value),a.mode.value===0&&(a.closeListbox(),s.nextTick(()=>{var w;return(w=ue(a.buttonRef))==null?void 0:w.focus({preventScroll:!0})}))}function f(){if(r.disabled)return a.goToOption(Re.Nothing);a.goToOption(Re.Specific,i)}let g=Lx();function b(v){g.update(v)}function y(v){g.wasMoved(v)&&(r.disabled||c.value||a.goToOption(Re.Specific,i,0))}function k(v){g.wasMoved(v)&&(r.disabled||c.value&&a.goToOption(Re.Nothing))}return()=>{let{disabled:v}=r,w={active:c.value,selected:d.value,disabled:v},{value:S,disabled:x,...C}=r,O={id:i,ref:l,role:"option",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,"aria-selected":d.value,disabled:void 0,onClick:h,onFocus:f,onPointerenter:b,onMouseenter:b,onPointermove:y,onMousemove:y,onPointerleave:k,onMouseleave:k};return lo({ourProps:O,theirProps:C,slot:w,attrs:t,slots:e,name:"ListboxOption"})}}});const Zx={class:"relative"},$x={key:0,class:"flex gap-2 items-center"},e2={key:1,class:"flex items-center gap-2"},t2={class:"block truncate text-[12.5px]"},r2={key:0,class:"flex items-center"},o2={key:1,class:"flex items-center"},n2={class:"ml-3"},i2={__name:"TextColorEditor",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getTextColor);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createBlock(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",Zx,[s.createVNode(s.unref(pn),{class:"w-max flex items-center myPrimaryTag"},{default:s.withCtx(()=>{var l;return[n.value==="none"?(s.openBlock(),s.createElementBlock("div",$x,a[2]||(a[2]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," format_color_text ",-1),s.createElementVNode("span",{class:"block truncate text-[12.5px]"},"Text color",-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",e2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-800 rounded-sm",`bg-${(l=o.value)==null?void 0:l.replace("text-","")}`])},null,2),s.createElementVNode("span",t2,s.toDisplayString(o.value),1)])):s.createCommentVNode("",!0)]}),_:1}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(xn).textColorVariables,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:a[0]||(a[0]=c=>s.unref(t).handleTextColor(o.value)),key:l,value:l},{default:s.withCtx(({active:c,textColor:d})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[l==="none"?(s.openBlock(),s.createElementBlock("div",r2,a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," invert_colors ",-1),s.createElementVNode("span",{class:"ml-3"},"Default black",-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",o2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${l.replace("text-","")}`])},null,2),s.createElementVNode("span",n2,s.toDisplayString(l),1)])):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},a2={class:"relative"},s2={key:0,class:"flex gap-2 items-center"},l2={key:1,class:"flex items-center gap-2"},c2={class:"block truncate"},d2={key:0,class:"flex items-center"},u2={key:1,class:"flex items-center"},p2={class:"ml-3"},m2={__name:"BackgroundColorEditor",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getBackgroundColor);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createBlock(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[1]||(a[1]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",a2,[s.createVNode(s.unref(pn),{class:"w-max flex items-center myPrimaryTag"},{default:s.withCtx(()=>{var l;return[n.value==="none"?(s.openBlock(),s.createElementBlock("div",s2,a[2]||(a[2]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," colors ",-1),s.createElementVNode("span",{class:"block truncate text-[12.5px]"},"Background color ",-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",l2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-800 rounded-sm",`bg-${(l=o.value)==null?void 0:l.replace("bg-","")}`])},null,2),s.createElementVNode("span",c2,s.toDisplayString(o.value),1)])):s.createCommentVNode("",!0)]}),_:1}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute min-w-[12rem] z-40 mt-1 max-h-56 w-full overflow-auto rounded-md bg-gray-50 py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(xn).backgroundColorVariables,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:a[0]||(a[0]=c=>s.unref(t).handleBackgroundColor(o.value)),key:l,value:l},{default:s.withCtx(({active:c,backgroundColor:d})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[l==="none"?(s.openBlock(),s.createElementBlock("div",d2,a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ",-1),s.createElementVNode("span",{class:"ml-3"},"Transparent",-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",u2,[s.createElementVNode("div",{class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${l.replace("bg-","")}`])},null,2),s.createElementVNode("span",p2,s.toDisplayString(l),1)])):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},h2={class:"myInputGroup"},f2={class:"myPrimaryFormOrganizationHeaderDescriptionSection"},g2={class:"myPrimaryFormOrganizationHeader"},b2={key:0,class:"min-h-[2.5rem] flex items-center justify-start"},w2={class:"myPrimaryInputError mt-2 mb-0 py-0 self-start"},y2={class:"overflow-y-auto"},v2={class:"z-20 px-2 py-1 h-24 flex items-center justify-center mt-2 mx-2 border-b border-myPrimaryLightGrayColor"},x2={key:0,class:"px-2 flex items-center justify-start gap-2 w-max"},k2={class:"px-2"},E2={key:2,class:"px-2 flex items-center justify-start gap-2 w-max"},S2={key:3,class:"px-2"},C2={__name:"EditGetElement",setup(r){const e=se,t=s.inject("CustomMediaComponent"),o=new de(e),n=s.computed(()=>e.getElement),i=s.computed(()=>{const J=e.getShowModalTipTap;return J&&y(),J}),a=s.computed(()=>e.getComponent),l=s.ref(""),c=s.ref(1),d=s.ref(""),u=s.ref(""),p=s.ref(""),m=s.ref(null),h=s.ref(null),f=s.ref(null),g=s.ref(null),b=s.ref(null),y=function(){o.toggleTipTapModal(!0),l.value="success",c.value=2,d.value="Manage Content",u.value=null,p.value=null,m.value=null,h.value="Save",f.value=function(){o.toggleTipTapModal(!1)},b.value=function(){o.toggleTipTapModal(!0)}},k=s.computed(()=>e.getBasePrimaryImage),v=s.ref(!1),w=s.ref(""),S=s.ref(""),x=s.ref(""),C=s.ref(null),O=s.ref(null),D=s.ref(null),B=function(){v.value=!0,w.value="Media Library",S.value=null,x.value="Close",C.value="Select image",D.value=function(){v.value=!1}},E=s.ref(null),P=s.ref(""),_=s.ref(!1),ee=function(){E.value=null;const J=/^https?:\/\//,z=s.ref(!0);return z.value=J.test(P.value),z.value===!1?(E.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},re=function(){var z;E.value=null;const J=n.value&&((z=n.value.firstElementChild)==null?void 0:z.tagName)==="IFRAME"&&n.value.firstElementChild.hasAttribute("src")&&n.value.firstElementChild.getAttribute("src").trim()!==""?n.value.firstElementChild.src:"";P.value=J,_.value=!0,l.value="success",c.value=2,d.value="Add video url",u.value=null,p.value="Close",m.value="Save",h.value=null,f.value=function(){_.value=!1},g.value=function(){ee()||(n.value&&n.value.firstElementChild&&n.value.firstElementChild.tagName==="IFRAME"&&(P.value=P.value.replace("watch?v=","embed/"),P.value=P.value.replace(/&ab_channel=[^&]*/,"").replace(/&list=[^&]*/,"").replace(/&start_radio=[^&]*/,"").replace(/&t=[^&]*/,""),n.value.firstElementChild.src=P.value),_.value=!1)}};return(J,z)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(zr,{showDynamicModalBuilder:_.value,maxWidth:"2xl",type:l.value,gridColumnAmount:c.value,title:d.value,description:u.value,firstButtonText:p.value,secondButtonText:m.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:g.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:s.withCtx(()=>[z[2]||(z[2]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",null,[s.createElementVNode("div",h2,[s.createElementVNode("div",f2,[s.createElementVNode("div",g2,[z[1]||(z[1]=s.createElementVNode("label",{for:"video",class:"myPrimaryInputLabel"},"Video url:",-1)),s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":z[0]||(z[0]=X=>P.value=X),type:"text",class:"myPrimaryInput",name:"video"},null,512),[[s.vModelText,P.value]]),E.value?(s.openBlock(),s.createElementBlock("div",b2,[s.createElementVNode("p",w2,s.toDisplayString(E.value),1)])):s.createCommentVNode("",!0)])])])])]),_:1,__:[2]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createVNode(zr,{simpleModal:!0,showDynamicModalBuilder:i.value,maxWidth:"6xl",type:l.value,gridColumnAmount:c.value,title:d.value,description:u.value,firstButtonText:p.value,secondButtonText:m.value,thirdButtonText:h.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:g.value,onThirdModalButtonFunctionDynamicModalBuilder:b.value},{default:s.withCtx(()=>[z[3]||(z[3]=s.createElementVNode("header",null,null,-1)),s.createElementVNode("main",y2,[s.createVNode(ux)])]),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createVNode(hm,{open:v.value,title:w.value,description:S.value,firstButtonText:x.value,secondButtonText:C.value,thirdButtonText:O.value,customMediaComponent:s.unref(t),onFirstMediaButtonFunction:D.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"]),s.createElementVNode("div",v2,[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center justify-center",{"rounded-full border border-gray-200 shadow-sm":n.value}])},[s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",x2,[s.createElementVNode("button",{onClick:re,type:"button",class:"myPrimaryTag"},z[4]||(z[4]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," play_circle ",-1),s.createElementVNode("span",null,"Add YouTube",-1)]))])):s.createCommentVNode("",!0),s.unref(o).isSelectedElementValidText()&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("div",{class:"px-2 flex items-center justify-start gap-2 w-max"},[s.createElementVNode("button",{onClick:y,type:"button",class:"myPrimaryTag"},z[5]||(z[5]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),s.createElementVNode("span",null,"Edit text and links",-1)]))]),s.createElementVNode("div",k2,[s.createVNode(i2)])],64)):s.createCommentVNode("",!0),n.value&&a.value&&k.value!==null&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",E2,[s.createElementVNode("button",{onClick:B,type:"button",class:"myPrimaryTag"},z[6]||(z[6]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," add_photo_alternate ",-1),s.createElementVNode("span",null,"Update image",-1)]))])):s.createCommentVNode("",!0),n.value&&n.value.nodeType===1&&!k.value&&!s.unref(o).ElOrFirstChildIsIframe()?(s.openBlock(),s.createElementBlock("div",S2,[s.createVNode(m2)])):s.createCommentVNode("",!0)],2)])]))}},N2=[{html_code:`
|
|
130
|
+
`));let m=Eb((s=u.props)!=null?s:{},p,d),f=a.cloneVNode(u,m,!0);for(let h in m)h.startsWith("on")&&(f.props||(f.props={}),f.props[h]=m[h]);return f}return Array.isArray(c)&&c.length===1?c[0]:c}return a.h(l,Object.assign({},p,d),{default:()=>c})}function kb(r){return r.flatMap(e=>e.type===a.Fragment?kb(e.children):[e])}function Eb(...r){if(r.length===0)return{};if(r.length===1)return r[0];let e={},t={};for(let o of r)for(let n in o)n.startsWith("on")&&typeof o[n]=="function"?(t[n]!=null||(t[n]=[]),t[n].push(o[n])):e[n]=o[n];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(o=>[o,void 0])));for(let o in t)Object.assign(e,{[o](n,...i){let s=t[o];for(let l of s){if(n instanceof Event&&n.defaultPrevented)return;l(n,...i)}}});return e}function _1(r){let e=Object.assign({},r);for(let t in e)e[t]===void 0&&delete e[t];return e}function Sb(r,e=[]){let t=Object.assign({},r);for(let o of e)o in t&&delete t[o];return t}function F1(r){return r==null?!1:typeof r.type=="string"||typeof r.type=="object"||typeof r.type=="function"}var Cb=(r=>(r[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r))(Cb||{});let j1=a.defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(r,{slots:e,attrs:t}){return()=>{var o;let{features:n,...i}=r,s={"aria-hidden":(n&2)===2?!0:(o=i["aria-hidden"])!=null?o:void 0,hidden:(n&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return co({ourProps:s,theirProps:i,slot:{},attrs:t,slots:e,name:"Hidden"})}}}),Nb=Symbol("Context");var dn=(r=>(r[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r))(dn||{});function H1(){return a.inject(Nb,null)}function W1(r){a.provide(Nb,r)}var ve=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(ve||{});function U1(r){throw new Error("Unexpected object: "+r)}var Re=(r=>(r[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r))(Re||{});function q1(r,e){let t=e.resolveItems();if(t.length<=0)return null;let o=e.resolveActiveIndex(),n=o??-1;switch(r.focus){case 0:{for(let i=0;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 1:{n===-1&&(n=t.length);for(let i=n-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 2:{for(let i=n+1;i<t.length;++i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 3:{for(let i=t.length-1;i>=0;--i)if(!e.resolveDisabled(t[i],i,t))return i;return o}case 4:{for(let i=0;i<t.length;++i)if(e.resolveId(t[i],i,t)===r.id)return i;return o}case 5:return null;default:U1(r)}}function Bb(r={},e=null,t=[]){for(let[o,n]of Object.entries(r))Tb(t,Mb(e,o),n);return t}function Mb(r,e){return r?r+"["+e+"]":e}function Tb(r,e,t){if(Array.isArray(t))for(let[o,n]of t.entries())Tb(r,Mb(e,o.toString()),n);else t instanceof Date?r.push([e,t.toISOString()]):typeof t=="boolean"?r.push([e,t?"1":"0"]):typeof t=="string"?r.push([e,t]):typeof t=="number"?r.push([e,`${t}`]):t==null?r.push([e,""]):Bb(t,e,r)}let Ob=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Vb(r){var e,t;let o=(e=r.innerText)!=null?e:"",n=r.cloneNode(!0);if(!(n instanceof HTMLElement))return o;let i=!1;for(let l of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),i=!0;let s=i?(t=n.innerText)!=null?t:"":o;return Ob.test(s)&&(s=s.replace(Ob,"")),s}function K1(r){let e=r.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=r.getAttribute("aria-labelledby");if(t){let o=t.split(" ").map(n=>{let i=document.getElementById(n);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():Vb(i).trim()}return null}).filter(Boolean);if(o.length>0)return o.join(", ")}return Vb(r).trim()}function G1(r){let e=a.ref(""),t=a.ref("");return()=>{let o=ue(r);if(!o)return"";let n=o.innerText;if(e.value===n)return t.value;let i=K1(o).trim().toLowerCase();return e.value=n,t.value=i,i}}function J1(r,e){return r===e}var Y1=(r=>(r[r.Open=0]="Open",r[r.Closed=1]="Closed",r))(Y1||{}),X1=(r=>(r[r.Single=0]="Single",r[r.Multi=1]="Multi",r))(X1||{}),Q1=(r=>(r[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r))(Q1||{});function Z1(r){requestAnimationFrame(()=>requestAnimationFrame(r))}let Pb=Symbol("ListboxContext");function un(r){let e=a.inject(Pb,null);if(e===null){let t=new Error(`<${r} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,un),t}return e}let bn=a.defineComponent({name:"Listbox",emits:{"update:modelValue":r=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>J1},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(r,{slots:e,attrs:t,emit:o}){let n=a.ref(1),i=a.ref(null),s=a.ref(null),l=a.ref(null),p=a.ref([]),c=a.ref(""),d=a.ref(null),u=a.ref(1);function b(v=g=>g){let g=d.value!==null?p.value[d.value]:null,S=O1(v(p.value.slice()),C=>ue(C.dataRef.domRef)),k=g?S.indexOf(g):null;return k===-1&&(k=null),{options:S,activeOptionIndex:k}}let m=a.computed(()=>r.multiple?1:0),[f,h]=y1(a.computed(()=>r.modelValue),v=>o("update:modelValue",v),a.computed(()=>r.defaultValue)),x=a.computed(()=>f.value===void 0?ct(m.value,{1:[],0:void 0}):f.value),y={listboxState:n,value:x,mode:m,compare(v,g){if(typeof r.by=="string"){let S=r.by;return(v==null?void 0:v[S])===(g==null?void 0:g[S])}return r.by(v,g)},orientation:a.computed(()=>r.horizontal?"horizontal":"vertical"),labelRef:i,buttonRef:s,optionsRef:l,disabled:a.computed(()=>r.disabled),options:p,searchQuery:c,activeOptionIndex:d,activationTrigger:u,closeListbox(){r.disabled||n.value!==1&&(n.value=1,d.value=null)},openListbox(){r.disabled||n.value!==0&&(n.value=0)},goToOption(v,g,S){if(r.disabled||n.value===1)return;let k=b(),C=q1(v===Re.Specific?{focus:Re.Specific,id:g}:{focus:v},{resolveItems:()=>k.options,resolveActiveIndex:()=>k.activeOptionIndex,resolveId:O=>O.id,resolveDisabled:O=>O.dataRef.disabled});c.value="",d.value=C,u.value=S??1,p.value=k.options},search(v){if(r.disabled||n.value===1)return;let g=c.value!==""?0:1;c.value+=v.toLowerCase();let S=(d.value!==null?p.value.slice(d.value+g).concat(p.value.slice(0,d.value+g)):p.value).find(C=>C.dataRef.textValue.startsWith(c.value)&&!C.dataRef.disabled),k=S?p.value.indexOf(S):-1;k===-1||k===d.value||(d.value=k,u.value=1)},clearSearch(){r.disabled||n.value!==1&&c.value!==""&&(c.value="")},registerOption(v,g){let S=b(k=>[...k,{id:v,dataRef:g}]);p.value=S.options,d.value=S.activeOptionIndex},unregisterOption(v){let g=b(S=>{let k=S.findIndex(C=>C.id===v);return k!==-1&&S.splice(k,1),S});p.value=g.options,d.value=g.activeOptionIndex,u.value=1},theirOnChange(v){r.disabled||h(v)},select(v){r.disabled||h(ct(m.value,{0:()=>v,1:()=>{let g=a.toRaw(y.value.value).slice(),S=a.toRaw(v),k=g.findIndex(C=>y.compare(S,a.toRaw(C)));return k===-1?g.push(S):g.splice(k,1),g}}))}};I1([s,l],(v,g)=>{var S;y.closeListbox(),yb(g,Bl.Loose)||(v.preventDefault(),(S=ue(s))==null||S.focus())},a.computed(()=>n.value===0)),a.provide(Pb,y),W1(a.computed(()=>ct(n.value,{0:dn.Open,1:dn.Closed})));let w=a.computed(()=>{var v;return(v=ue(s))==null?void 0:v.closest("form")});return a.onMounted(()=>{a.watch([w],()=>{if(!w.value||r.defaultValue===void 0)return;function v(){y.theirOnChange(r.defaultValue)}return w.value.addEventListener("reset",v),()=>{var g;(g=w.value)==null||g.removeEventListener("reset",v)}},{immediate:!0})}),()=>{let{name:v,modelValue:g,disabled:S,form:k,...C}=r,O={open:n.value===0,disabled:S,value:x.value};return a.h(a.Fragment,[...v!=null&&x.value!=null?Bb({[v]:x.value}).map(([D,B])=>a.h(j1,_1({features:Cb.Hidden,key:D,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:k,disabled:S,name:D,value:B}))):[],co({ourProps:{},theirProps:{...t,...Sb(C,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:O,slots:e,attrs:t,name:"Listbox"})])}}});a.defineComponent({name:"ListboxLabel",props:{as:{type:[Object,String],default:"label"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t}){var o;let n=(o=r.id)!=null?o:`headlessui-listbox-label-${ea()}`,i=un("ListboxLabel");function s(){var l;(l=ue(i.buttonRef))==null||l.focus({preventScroll:!0})}return()=>{let l={open:i.listboxState.value===0,disabled:i.disabled.value},{...p}=r,c={id:n,ref:i.labelRef,onClick:s};return co({ourProps:c,theirProps:p,slot:l,attrs:e,slots:t,name:"ListboxLabel"})}}});let mn=a.defineComponent({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-button-${ea()}`,s=un("ListboxButton");o({el:s.buttonRef,$el:s.buttonRef});function l(u){switch(u.key){case ve.Space:case ve.Enter:case ve.ArrowDown:u.preventDefault(),s.openListbox(),a.nextTick(()=>{var b;(b=ue(s.optionsRef))==null||b.focus({preventScroll:!0}),s.value.value||s.goToOption(Re.First)});break;case ve.ArrowUp:u.preventDefault(),s.openListbox(),a.nextTick(()=>{var b;(b=ue(s.optionsRef))==null||b.focus({preventScroll:!0}),s.value.value||s.goToOption(Re.Last)});break}}function p(u){switch(u.key){case ve.Space:u.preventDefault();break}}function c(u){s.disabled.value||(s.listboxState.value===0?(s.closeListbox(),a.nextTick(()=>{var b;return(b=ue(s.buttonRef))==null?void 0:b.focus({preventScroll:!0})})):(u.preventDefault(),s.openListbox(),Z1(()=>{var b;return(b=ue(s.optionsRef))==null?void 0:b.focus({preventScroll:!0})})))}let d=L1(a.computed(()=>({as:r.as,type:e.type})),s.buttonRef);return()=>{var u,b;let m={open:s.listboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...f}=r,h={ref:s.buttonRef,id:i,type:d.value,"aria-haspopup":"listbox","aria-controls":(u=ue(s.optionsRef))==null?void 0:u.id,"aria-expanded":s.listboxState.value===0,"aria-labelledby":s.labelRef.value?[(b=ue(s.labelRef))==null?void 0:b.id,i].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:l,onKeyup:p,onClick:c};return co({ourProps:h,theirProps:f,slot:m,attrs:e,slots:t,name:"ListboxButton"})}}}),fn=a.defineComponent({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(r,{attrs:e,slots:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-options-${ea()}`,s=un("ListboxOptions"),l=a.ref(null);o({el:s.optionsRef,$el:s.optionsRef});function p(u){switch(l.value&&clearTimeout(l.value),u.key){case ve.Space:if(s.searchQuery.value!=="")return u.preventDefault(),u.stopPropagation(),s.search(u.key);case ve.Enter:if(u.preventDefault(),u.stopPropagation(),s.activeOptionIndex.value!==null){let b=s.options.value[s.activeOptionIndex.value];s.select(b.dataRef.value)}s.mode.value===0&&(s.closeListbox(),a.nextTick(()=>{var b;return(b=ue(s.buttonRef))==null?void 0:b.focus({preventScroll:!0})}));break;case ct(s.orientation.value,{vertical:ve.ArrowDown,horizontal:ve.ArrowRight}):return u.preventDefault(),u.stopPropagation(),s.goToOption(Re.Next);case ct(s.orientation.value,{vertical:ve.ArrowUp,horizontal:ve.ArrowLeft}):return u.preventDefault(),u.stopPropagation(),s.goToOption(Re.Previous);case ve.Home:case ve.PageUp:return u.preventDefault(),u.stopPropagation(),s.goToOption(Re.First);case ve.End:case ve.PageDown:return u.preventDefault(),u.stopPropagation(),s.goToOption(Re.Last);case ve.Escape:u.preventDefault(),u.stopPropagation(),s.closeListbox(),a.nextTick(()=>{var b;return(b=ue(s.buttonRef))==null?void 0:b.focus({preventScroll:!0})});break;case ve.Tab:u.preventDefault(),u.stopPropagation();break;default:u.key.length===1&&(s.search(u.key),l.value=setTimeout(()=>s.clearSearch(),350));break}}let c=H1(),d=a.computed(()=>c!==null?(c.value&dn.Open)===dn.Open:s.listboxState.value===0);return()=>{var u,b;let m={open:s.listboxState.value===0},{...f}=r,h={"aria-activedescendant":s.activeOptionIndex.value===null||(u=s.options.value[s.activeOptionIndex.value])==null?void 0:u.id,"aria-multiselectable":s.mode.value===1?!0:void 0,"aria-labelledby":(b=ue(s.buttonRef))==null?void 0:b.id,"aria-orientation":s.orientation.value,id:i,onKeydown:p,role:"listbox",tabIndex:0,ref:s.optionsRef};return co({ourProps:h,theirProps:f,slot:m,attrs:e,slots:t,features:Ml.RenderStrategy|Ml.Static,visible:d.value,name:"ListboxOptions"})}}}),hn=a.defineComponent({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(r,{slots:e,attrs:t,expose:o}){var n;let i=(n=r.id)!=null?n:`headlessui-listbox-option-${ea()}`,s=un("ListboxOption"),l=a.ref(null);o({el:l,$el:l});let p=a.computed(()=>s.activeOptionIndex.value!==null?s.options.value[s.activeOptionIndex.value].id===i:!1),c=a.computed(()=>ct(s.mode.value,{0:()=>s.compare(a.toRaw(s.value.value),a.toRaw(r.value)),1:()=>a.toRaw(s.value.value).some(v=>s.compare(a.toRaw(v),a.toRaw(r.value)))})),d=a.computed(()=>ct(s.mode.value,{1:()=>{var v;let g=a.toRaw(s.value.value);return((v=s.options.value.find(S=>g.some(k=>s.compare(a.toRaw(k),a.toRaw(S.dataRef.value)))))==null?void 0:v.id)===i},0:()=>c.value})),u=G1(l),b=a.computed(()=>({disabled:r.disabled,value:r.value,get textValue(){return u()},domRef:l}));a.onMounted(()=>s.registerOption(i,b)),a.onUnmounted(()=>s.unregisterOption(i)),a.onMounted(()=>{a.watch([s.listboxState,c],()=>{s.listboxState.value===0&&c.value&&ct(s.mode.value,{1:()=>{d.value&&s.goToOption(Re.Specific,i)},0:()=>{s.goToOption(Re.Specific,i)}})},{immediate:!0})}),a.watchEffect(()=>{s.listboxState.value===0&&p.value&&s.activationTrigger.value!==0&&a.nextTick(()=>{var v,g;return(g=(v=ue(l))==null?void 0:v.scrollIntoView)==null?void 0:g.call(v,{block:"nearest"})})});function m(v){if(r.disabled)return v.preventDefault();s.select(r.value),s.mode.value===0&&(s.closeListbox(),a.nextTick(()=>{var g;return(g=ue(s.buttonRef))==null?void 0:g.focus({preventScroll:!0})}))}function f(){if(r.disabled)return s.goToOption(Re.Nothing);s.goToOption(Re.Specific,i)}let h=R1();function x(v){h.update(v)}function y(v){h.wasMoved(v)&&(r.disabled||p.value||s.goToOption(Re.Specific,i,0))}function w(v){h.wasMoved(v)&&(r.disabled||p.value&&s.goToOption(Re.Nothing))}return()=>{let{disabled:v}=r,g={active:p.value,selected:c.value,disabled:v},{value:S,disabled:k,...C}=r,O={id:i,ref:l,role:"option",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:m,onFocus:f,onPointerenter:x,onMouseenter:x,onPointermove:y,onMousemove:y,onPointerleave:w,onMouseleave:w};return co({ourProps:O,theirProps:C,slot:g,attrs:t,slots:e,name:"ListboxOption"})}}});const $1={class:"pbx-relative"},e2={key:0,class:"pbx-flex pbx-gap-2 pbx-items-center"},t2={key:1,class:"pbx-flex pbx-items-center pbx-gap-2"},r2={class:"pbx-block pbx-truncate pbx-text-[12.5px]"},o2={key:0,class:"pbx-flex pbx-items-center"},n2={key:1,class:"pbx-flex pbx-items-center"},i2={class:"pbx-ml-3"},a2={__name:"TextColorEditor",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.computed(()=>e.getTextColor);return a.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,s)=>(a.openBlock(),a.createBlock(a.unref(bn),{as:"div",modelValue:o.value,"onUpdate:modelValue":s[1]||(s[1]=l=>o.value=l)},{default:a.withCtx(()=>[a.createElementVNode("div",$1,[a.createVNode(a.unref(mn),{class:"pbx-w-max pbx-flex pbx-items-center pbx-myPrimaryTag"},{default:a.withCtx(()=>{var l;return[n.value==="none"?(a.openBlock(),a.createElementBlock("div",e2,s[2]||(s[2]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," format_color_text ",-1),a.createElementVNode("span",{class:"pbx-block pbx-truncate pbx-text-[12.5px]"},"Text color",-1)]))):a.createCommentVNode("",!0),o.value!=="none"?(a.openBlock(),a.createElementBlock("div",t2,[a.createElementVNode("div",{class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-800 pbx-rounded-sm",`pbx-bg-${(l=o.value)==null?void 0:l.replace("pbx-text-","")}`])},null,2),a.createElementVNode("span",r2,a.toDisplayString(o.value),1)])):a.createCommentVNode("",!0)]}),_:1}),a.createVNode(a.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(fn),{class:"pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(En).textColorVariables,l=>(a.openBlock(),a.createBlock(a.unref(hn),{as:"template",onClick:s[0]||(s[0]=p=>a.unref(t).handleTextColor(o.value)),key:l,value:l},{default:a.withCtx(({active:p,textColor:c})=>[a.createElementVNode("li",{class:a.normalizeClass([p?"pbx-bg-myPrimaryLinkColor pbx-text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[l==="none"?(a.openBlock(),a.createElementBlock("div",o2,s[3]||(s[3]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," invert_colors ",-1),a.createElementVNode("span",{class:"pbx-ml-3"},"Default black",-1)]))):a.createCommentVNode("",!0),l!=="none"?(a.openBlock(),a.createElementBlock("div",n2,[a.createElementVNode("div",{class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-100 pbx-rounded-sm",`pbx-bg-${l.replace("pbx-text-","")}`])},null,2),a.createElementVNode("span",i2,a.toDisplayString(l),1)])):a.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},s2={class:"pbx-relative"},l2={key:0,class:"pbx-flex pbx-gap-2 pbx-items-center"},p2={key:1,class:"pbx-flex pbx-items-center pbx-gap-2"},c2={class:"pbx-block pbx-truncate"},d2={key:0,class:"pbx-flex pbx-items-center"},u2={key:1,class:"pbx-flex pbx-items-center"},b2={class:"pbx-ml-3"},m2={__name:"BackgroundColorEditor",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.computed(()=>e.getBackgroundColor);return a.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,s)=>(a.openBlock(),a.createBlock(a.unref(bn),{as:"div",modelValue:o.value,"onUpdate:modelValue":s[1]||(s[1]=l=>o.value=l)},{default:a.withCtx(()=>[a.createElementVNode("div",s2,[a.createVNode(a.unref(mn),{class:"pbx-w-max pbx-flex pbx-items-center pbx-myPrimaryTag"},{default:a.withCtx(()=>{var l;return[n.value==="none"?(a.openBlock(),a.createElementBlock("div",l2,s[2]||(s[2]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," colors ",-1),a.createElementVNode("span",{class:"pbx-block pbx-truncate pbx-text-[12.5px]"},"Background color ",-1)]))):a.createCommentVNode("",!0),o.value!=="none"?(a.openBlock(),a.createElementBlock("div",p2,[a.createElementVNode("div",{class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-800 pbx-rounded-sm",`pbx-bg-${(l=o.value)==null?void 0:l.replace("pbx-bg-","")}`])},null,2),a.createElementVNode("span",c2,a.toDisplayString(o.value),1)])):a.createCommentVNode("",!0)]}),_:1}),a.createVNode(a.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(fn),{class:"pbx-absolute pbx-min-w-[12rem] pbx-z-40 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-gray-50 pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(En).backgroundColorVariables,l=>(a.openBlock(),a.createBlock(a.unref(hn),{as:"template",onClick:s[0]||(s[0]=p=>a.unref(t).handleBackgroundColor(o.value)),key:l,value:l},{default:a.withCtx(({active:p,backgroundColor:c})=>[a.createElementVNode("li",{class:a.normalizeClass([p?"pbx-bg-myPrimaryLinkColor pbx-text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[l==="none"?(a.openBlock(),a.createElementBlock("div",d2,s[3]||(s[3]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ",-1),a.createElementVNode("span",{class:"pbx-ml-3"},"Transparent",-1)]))):a.createCommentVNode("",!0),l!=="none"?(a.openBlock(),a.createElementBlock("div",u2,[a.createElementVNode("div",{class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-100 pbx-rounded-sm",`pbx-bg-${l.replace("pbx-bg-","")}`])},null,2),a.createElementVNode("span",b2,a.toDisplayString(l),1)])):a.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}},f2={class:"pbx-myInputGroup"},h2={class:"pbx-myPrimaryFormOrganizationHeaderDescriptionSection"},x2={class:"pbx-myPrimaryFormOrganizationHeader"},g2={key:0,class:"pbx-min-h-[2.5rem] pbx-flex pbx-items-center pbx-justify-start"},y2={class:"pbx-myPrimaryInputError pbx-mt-2 pbx-mb-0 pbx-py-0 pbx-self-start"},w2={class:"pbx-overflow-y-auto"},v2={class:"pbx-z-20 pbx-px-2 pbx-py-1 pbx-h-24 pbx-flex pbx-items-center pbx-justify-center pbx-mt-2 pbx-mx-2 pbx-border-b pbx-border-myPrimaryLightGrayColor"},k2={key:0,class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},E2={class:"pbx-px-2"},S2={key:2,class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},C2={key:3,class:"pbx-px-2"},N2={__name:"EditGetElement",setup(r){const e=ae,t=a.inject("CustomMediaComponent"),o=new le(e),n=a.computed(()=>e.getElement),i=a.computed(()=>{const G=e.getShowModalTipTap;return G&&y(),G}),s=a.computed(()=>e.getComponent),l=a.ref(""),p=a.ref(1),c=a.ref(""),d=a.ref(""),u=a.ref(""),b=a.ref(null),m=a.ref(null),f=a.ref(null),h=a.ref(null),x=a.ref(null),y=function(){o.toggleTipTapModal(!0),l.value="success",p.value=2,c.value="Manage Content",d.value=null,u.value=null,b.value=null,m.value="Save",f.value=function(){o.toggleTipTapModal(!1)},x.value=function(){o.toggleTipTapModal(!0)}},w=a.computed(()=>e.getBasePrimaryImage),v=a.ref(!1),g=a.ref(""),S=a.ref(""),k=a.ref(""),C=a.ref(null),O=a.ref(null),D=a.ref(null),B=function(){v.value=!0,g.value="Media Library",S.value=null,k.value="Close",C.value="Select image",D.value=function(){v.value=!1}},E=a.ref(null),P=a.ref(""),_=a.ref(!1),ee=function(){E.value=null;const G=/^https?:\/\//,z=a.ref(!0);return z.value=G.test(P.value),z.value===!1?(E.value="The provided URL is invalid. Please ensure that it begins with 'https://' for proper formatting and security.",!0):!1},re=function(){var z;E.value=null;const G=n.value&&((z=n.value.firstElementChild)==null?void 0:z.tagName)==="IFRAME"&&n.value.firstElementChild.hasAttribute("src")&&n.value.firstElementChild.getAttribute("src").trim()!==""?n.value.firstElementChild.src:"";P.value=G,_.value=!0,l.value="success",p.value=2,c.value="Add video url",d.value=null,u.value="Close",b.value="Save",m.value=null,f.value=function(){_.value=!1},h.value=function(){ee()||(n.value&&n.value.firstElementChild&&n.value.firstElementChild.tagName==="IFRAME"&&(P.value=P.value.replace("watch?v=","embed/"),P.value=P.value.replace(/&ab_channel=[^&]*/,"").replace(/&list=[^&]*/,"").replace(/&start_radio=[^&]*/,"").replace(/&t=[^&]*/,""),n.value.firstElementChild.src=P.value),_.value=!1)}};return(G,z)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Rr,{showDynamicModalBuilder:_.value,maxWidth:"2xl",type:l.value,gridColumnAmount:p.value,title:c.value,description:d.value,firstButtonText:u.value,secondButtonText:b.value,thirdButtonText:m.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:h.value,onThirdModalButtonFunctionDynamicModalBuilder:x.value},{default:a.withCtx(()=>[z[2]||(z[2]=a.createElementVNode("header",null,null,-1)),a.createElementVNode("main",null,[a.createElementVNode("div",f2,[a.createElementVNode("div",h2,[a.createElementVNode("div",x2,[z[1]||(z[1]=a.createElementVNode("label",{for:"video",class:"pbx-myPrimaryInputLabel"},"Video url:",-1)),a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":z[0]||(z[0]=Q=>P.value=Q),type:"text",class:"pbx-myPrimaryInput",name:"video"},null,512),[[a.vModelText,P.value]]),E.value?(a.openBlock(),a.createElementBlock("div",g2,[a.createElementVNode("p",y2,a.toDisplayString(E.value),1)])):a.createCommentVNode("",!0)])])])])]),_:1,__:[2]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),a.createVNode(Rr,{simpleModal:!0,showDynamicModalBuilder:i.value,maxWidth:"6xl",type:l.value,gridColumnAmount:p.value,title:c.value,description:d.value,firstButtonText:u.value,secondButtonText:b.value,thirdButtonText:m.value,onFirstModalButtonFunctionDynamicModalBuilder:f.value,onSecondModalButtonFunctionDynamicModalBuilder:h.value,onThirdModalButtonFunctionDynamicModalBuilder:x.value},{default:a.withCtx(()=>[z[3]||(z[3]=a.createElementVNode("header",null,null,-1)),a.createElementVNode("main",w2,[a.createVNode(u1)])]),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),a.createVNode(fb,{open:v.value,title:g.value,description:S.value,firstButtonText:k.value,secondButtonText:C.value,thirdButtonText:O.value,customMediaComponent:a.unref(t),onFirstMediaButtonFunction:D.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"]),a.createElementVNode("div",v2,[a.createElementVNode("div",{class:a.normalizeClass(["pbx-flex pbx-items-center pbx-justify-center",{"pbx-rounded-full pbx-border pbx-border-gray-200 pbx-shadow-sm":n.value}])},[a.unref(o).ElOrFirstChildIsIframe()?(a.openBlock(),a.createElementBlock("div",k2,[a.createElementVNode("button",{onClick:re,type:"button",class:"pbx-myPrimaryTag"},z[4]||(z[4]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," play_circle ",-1),a.createElementVNode("span",null,"Add YouTube",-1)]))])):a.createCommentVNode("",!0),a.unref(o).isSelectedElementValidText()&&!a.unref(o).ElOrFirstChildIsIframe()?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},[a.createElementVNode("button",{onClick:y,type:"button",class:"pbx-myPrimaryTag"},z[5]||(z[5]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),a.createElementVNode("span",null,"Edit text and links",-1)]))]),a.createElementVNode("div",E2,[a.createVNode(a2)])],64)):a.createCommentVNode("",!0),n.value&&s.value&&w.value!==null&&!a.unref(o).ElOrFirstChildIsIframe()?(a.openBlock(),a.createElementBlock("div",S2,[a.createElementVNode("button",{onClick:B,type:"button",class:"pbx-myPrimaryTag"},z[6]||(z[6]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," add_photo_alternate ",-1),a.createElementVNode("span",null,"Update image",-1)]))])):a.createCommentVNode("",!0),n.value&&n.value.nodeType===1&&!w.value&&!a.unref(o).ElOrFirstChildIsIframe()?(a.openBlock(),a.createElementBlock("div",C2,[a.createVNode(m2)])):a.createCommentVNode("",!0)],2)])]))}},B2=[{html_code:`
|
|
131
131
|
<section>
|
|
132
132
|
<div class="relative py-4">
|
|
133
133
|
<div class="mx-auto max-w-7xl lg:px-4 px-2">
|
|
@@ -191,7 +191,7 @@ class="flex items-centre justify-start font-medium text-black bg-gray-200">
|
|
|
191
191
|
<span class="material-symbols-outlined">
|
|
192
192
|
link
|
|
193
193
|
</span>
|
|
194
|
-
`}],
|
|
194
|
+
`}],M2=()=>`data:image/svg+xml,${encodeURIComponent(`
|
|
195
195
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150">
|
|
196
196
|
<defs>
|
|
197
197
|
<style>
|
|
@@ -204,7 +204,7 @@ class="flex items-centre justify-start font-medium text-black bg-gray-200">
|
|
|
204
204
|
<polygon class="fg" points="110 90.01 122.5 75.01 135 90.01"/>
|
|
205
205
|
<circle class="fg" cx="122.5" cy="64.15" r="4.16"/>
|
|
206
206
|
</svg>
|
|
207
|
-
`.trim())}`,
|
|
207
|
+
`.trim())}`,T2=r=>{const t={"Single Image":{title:"Single Image",svg:`
|
|
208
208
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 150">
|
|
209
209
|
<defs>
|
|
210
210
|
<style>
|
|
@@ -486,7 +486,7 @@ class="flex items-centre justify-start font-medium text-black bg-gray-200">
|
|
|
486
486
|
<rect fill="#384152" width="200" height="150"/>
|
|
487
487
|
<text x="100" y="75" text-anchor="middle" fill="#718096" font-family="Arial, sans-serif" font-size="14">Preview</text>
|
|
488
488
|
</svg>
|
|
489
|
-
`},$=
|
|
489
|
+
`},$=M2(),O2=[{components:{data:[{title:"Single Image",html_code:`<section>
|
|
490
490
|
<div class="w-full md:pt-12 md:pb-12 pt-4 pb-4 lg:px-4 px-2"><div class="mx-auto max-w-7xl"><div class="myPrimaryGap grid grid-cols-1 sm:grid-cols-1 lg:grid-cols-1"> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"></div></div></div></div>
|
|
491
491
|
</section>`,cover_image:null},{title:"2 Vertical Images",html_code:`<section>
|
|
492
492
|
<div class="w-full md:pt-12 md:pb-12 pt-4 pb-4 lg:px-4 px-2"><div class="mx-auto max-w-7xl"><div class="myPrimaryGap grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-2"> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-[9/16] smooth-transition" src="${$}" alt="provider"> </div> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-[9/16] smooth-transition" src="${$}" alt="provider"> </div> </div> </div> </div>
|
|
@@ -541,6 +541,6 @@ class="flex items-centre justify-start font-medium text-black bg-gray-200">
|
|
|
541
541
|
<div class="w-full md:pt-12 md:pb-12 pt-4 pb-4 lg:px-4 px-2"><div class="mx-auto max-w-7xl"><div class="myPrimaryGap grid grid-cols-1 sm:grid-cols-3 lg:grid-cols-3"> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> </div> </div> </div>
|
|
542
542
|
</section>`,cover_image:null},{title:"2 Square Images With Text",html_code:`<section>
|
|
543
543
|
<div class="w-full md:pt-12 md:pb-12 pt-4 pb-4 lg:px-4 px-2"><div class="mx-auto max-w-7xl"><div class="myPrimaryGap grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-2"> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> <div class="flex-1 py-2"> <img class="object-cover w-full object-top aspect-square smooth-transition" src="${$}" alt="provider"> <div class="break-words py-2"><p>Layouts and visual.</p><p>Ullamcorper dignissim cras tincidunt.</p></div> </div> </div> </div> </div>
|
|
544
|
-
</section>`,cover_image:null}]}}];function Pm(){const r=s.inject("closeAddComponentModal",null),e=s.inject("closeMediaLibraryModal",null);return{closeAddComponentModal:r||(()=>{console.warn("closeAddComponentModal function not available. Make sure you are using this within a PageBuilder context.")}),closeMediaLibraryModal:e||(()=>{console.warn("closeMediaLibraryModal function not available. Make sure you are using this within a MediaLibraryModal context.")})}}const O2={class:"mb-8"},V2={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4"},P2=["onClick"],A2={class:"max-h-72 cursor-pointer object-contain bg-white mx-auto"},D2={class:"myPrimaryParagraph text-base font-medium"},I2={class:"myPrimaryParagraph text-xs font-normal pt-2"},L2={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4"},R2=["onClick"],z2={class:"overflow-hidden whitespace-pre-line flex-1 h-auto border-b border-gray-200 lg:py-10 py-8 px-2"},_2=["innerHTML"],F2={class:"p-3"},j2={class:"myPrimaryParagraph text-sm font-normal"},H2=Cl(s.defineComponent({__name:"DefaultBuilderComponents",setup(r){const{closeAddComponentModal:e}=Pm(),t=se,o=new de(t),n=async function(l){await o.addComponent(l),e()},i=function(l){return{id:null,html_code:l.html_code,title:l.title}},a=l=>M2(l);return(l,c)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",O2,[c[0]||(c[0]=s.createElementVNode("h3",{class:"myQuaternaryHeader mb-4"},"Helper Components",-1)),s.createElementVNode("div",V2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(N2),d=>(s.openBlock(),s.createElementBlock("div",{key:d.title,class:"border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer p-4",onClick:u=>n(d)},[s.createElementVNode("div",A2,[s.createCommentVNode("",!0),s.createElementVNode("h4",D2,s.toDisplayString(d.title),1)]),s.createElementVNode("div",I2," Click to add "+s.toDisplayString(d.title.toLowerCase())+" component ",1)],8,P2))),128))])]),s.createElementVNode("div",null,[c[2]||(c[2]=s.createElementVNode("h3",{class:"myQuaternaryHeader mb-4"},"Layout Components",-1)),s.createElementVNode("div",L2,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(T2)[0].components.data,d=>(s.openBlock(),s.createElementBlock("div",{key:d.title,class:"border border-gray-200 overflow-hidden hover:border-myPrimaryLinkColor duration-100 cursor-pointer",onClick:u=>n(i(d))},[s.createElementVNode("div",z2,[s.createElementVNode("div",{class:"max-h-72 cursor-pointer bg-white mx-auto flex items-center justify-center",innerHTML:a(d.title)},null,8,_2)]),s.createElementVNode("div",F2,[s.createElementVNode("h4",j2,s.toDisplayString(d.title),1),c[1]||(c[1]=s.createElementVNode("div",{class:"myPrimaryParagraph text-xs font-normal pt-2"},"Click to add component",-1))])],8,R2))),128))])])]))}}),[["__scopeId","data-v-f343d494"]]),W2={class:"w-full inset-x-0 bg-white overflow-x-scroll lg:pt-2 pt-2"},q2={key:0},U2={key:1,class:"h-[75vh]"},K2={class:"py-4 flex sm:justify-end justify-center border-t border-gray-200 mt-4"},J2={class:"sm:w-3/6 w-full px-2 my-2 flex gap-2 justify-end"},G2={__name:"BuilderComponents",props:{firstButtonText:{required:!0},title:{required:!0},show:{type:Boolean,default:!1,required:!0},CustomBuilderComponents:{type:Object,default:null}},emits:["firstModalButtonSearchComponentsFunction"],setup(r,{emit:e}){const t=e,o=function(){t("firstModalButtonSearchComponentsFunction")};return(n,i)=>(s.openBlock(),s.createBlock(Dr,{title:r.title,maxWidth:"7xl",showModalBuilder:r.show,onCloseMainModalBuilder:o,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createElementVNode("div",W2,[s.createElementVNode("div",null,[r.CustomBuilderComponents?(s.openBlock(),s.createElementBlock("div",q2,[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.CustomBuilderComponents)))])):(s.openBlock(),s.createElementBlock("div",U2,[s.createVNode(H2)]))])]),s.createElementVNode("div",K2,[s.createElementVNode("div",J2,[r.firstButtonText?(s.openBlock(),s.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"mySecondaryButton",type:"button",onClick:o},s.toDisplayString(r.firstButtonText),513)):s.createCommentVNode("",!0)])])]),_:1},8,["title","showModalBuilder"]))}},Y2={setup(){return{expanded:s.ref(!1)}}},X2={class:"myPrimaryParagraph font-medium my-0 py-0"},Q2={key:0,class:"material-symbols-outlined"},Z2={key:1,class:"material-symbols-outlined"};function $2(r,e,t,o,n,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["flex flex-col border border-gray-400",{"pb-8":o.expanded}])},[s.createElementVNode("div",{class:"flex flex-row justify-between items-center pl-3 pr-3 py-5 cursor-pointer duration-200 hover:bg-myPrimaryLightGrayColor border-b border-gray-200",onClick:e[0]||(e[0]=a=>o.expanded=!o.expanded)},[s.createElementVNode("p",X2,[s.renderSlot(r.$slots,"title")]),o.expanded?(s.openBlock(),s.createElementBlock("span",Q2," keyboard_arrow_down ")):s.createCommentVNode("",!0),o.expanded?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",Z2," chevron_right "))]),s.createElementVNode("div",{class:s.normalizeClass([[o.expanded?"block":"hidden"],"px-4 ease-linear duration-75"])},[s.renderSlot(r.$slots,"content")],2)],2)}const co=Cl(Y2,[["render",$2]]),e5={class:"flex flex-row flex-wrap gap-2 mt-2 mb-4"},t5=["onClick"],r5={class:"flex items-center gap-1"},o5={class:"mr-1"},n5={class:"flex gap-2 item-center flex-col"},i5={class:"flex gap-2 item-center"},a5={class:"mt-1 relative flex items-center w-full border myPrimaryInput py-0 p-0"},s5={__name:"ClassEditor",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getCurrentClasses);s.watch(n,l=>{o.value=l},{immediate:!0});const i=s.ref(""),a=async function(){t.handleAddClasses(i.value),await t.initializeElementStyles(),i.value=""};return(l,c)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>c[2]||(c[2]=[s.createTextVNode("Generated CSS")])),content:s.withCtx(()=>[s.createElementVNode("div",e5,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value,d=>(s.openBlock(),s.createElementBlock("div",{key:d,class:"myPrimaryTag cursor-pointer hover:bg-myPrimaryErrorColor hover:text-white text-xs py-2 font-medium",onClick:async()=>{s.unref(t).handleRemoveClasses(d),await s.unref(t).initializeElementStyles()}},[s.createElementVNode("div",r5,[s.createElementVNode("span",o5,s.toDisplayString(d),1)])],8,t5))),128))]),s.createElementVNode("div",n5,[s.createElementVNode("div",i5,[s.createElementVNode("div",a5,[s.withDirectives(s.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>i.value=d),type:"text",placeholder:"Type class",onKeydown:c[1]||(c[1]=s.withKeys(d=>a(),["enter"])),autocomplete:"off",class:"myPrimaryInput border-none rounded-r-none ml-0 w-full"},null,544),[[s.vModelText,i.value]]),c[3]||(c[3]=s.createElementVNode("div",{class:"border border-gray-200 border-none rounded flex items-center justify-center h-full w-8"},[s.createElementVNode("kbd",{class:"myPrimaryParagraph text-gray-400 border-none"}," ⏎ ")],-1))])]),c[4]||(c[4]=s.createElementVNode("p",{class:"myPrimaryInputError"},null,-1))])]),_:1}))}};function l5(r){return new Promise((e,t)=>{const o=new window.Image;o.onload=e,o.onerror=t,o.src=r})}const c5=["src"],d5={__name:"ImageEditor",setup(r){const e=se,t=s.inject("CustomMediaComponent");new de(e),s.ref(!1);const o=s.ref(!1),n=s.ref(!1),i=s.ref(""),a=s.ref(""),l=s.ref(""),c=s.ref(null),d=s.ref(null),u=s.ref(null),p=s.computed(()=>(e.getBasePrimaryImage&&h(e.getBasePrimaryImage),e.getBasePrimaryImage));s.computed(()=>e.getElement);const m=function(){n.value=!0,i.value="Media Library",a.value=null,l.value="Close",c.value="Select image",u.value=function(){n.value=!1}},h=async function(f){o.value=!0,f&&typeof f=="string"&&f.length>2&&(await l5(f),await wa(200),o.value=!1)};return(f,g)=>(s.openBlock(),s.createElementBlock("div",null,[s.withDirectives(s.createElementVNode("div",null,g[0]||(g[0]=[s.createElementVNode("div",{class:"flex items-center justify-center mt-4 min-h-80"},[s.createElementVNode("div",{class:"inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"},[s.createElementVNode("span",{class:"!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]"},"Loading...")])],-1)]),512),[[s.vShow,o.value]]),s.withDirectives(s.createElementVNode("div",null,[s.createElementVNode("img",{class:"object-cover object-center w-full cursor-pointer",src:p.value,onClick:m,alt:"image"},null,8,c5)],512),[[s.vShow,p.value&&!o.value]]),s.createVNode(hm,{open:n.value,title:i.value,description:a.value,firstButtonText:l.value,secondButtonText:c.value,thirdButtonText:d.value,customMediaComponent:s.unref(t),onFirstMediaButtonFunction:u.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"])]))}},u5={class:"my-2 py-2"},p5={class:"relative"},m5={class:"flex items-center gap-2"},h5={key:0},f5={class:"flex items-center"},g5={key:0,class:"aspect-square w-6 h-6"},b5={key:2,class:"ml-3"},w5={key:3,class:"ml-3"},y5={__name:"ManageBackgroundOpacity",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getBackgroundOpacity);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createElementBlock("div",u5,[a[4]||(a[4]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Background opacity",-1)),s.createVNode(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",p5,[s.createVNode(s.unref(pn),{class:"myPrimarySelect"},{default:s.withCtx(()=>[s.createElementVNode("span",m5,[o.value==="none"?(s.openBlock(),s.createElementBlock("div",h5,a[1]||(a[1]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${o.value}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["block truncate",[(o.value!=="none","")]])},s.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),a[2]||(a[2]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(kn).backgroundOpacities,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:c=>s.unref(t).handleBackgroundOpacity(l),key:l,value:l},{default:s.withCtx(({active:c})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",f5,[l==="none"?(s.openBlock(),s.createElementBlock("div",g5,a[3]||(a[3]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${l}`])},null,2)):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("span",b5,s.toDisplayString(l),1)):s.createCommentVNode("",!0),l==="none"?(s.openBlock(),s.createElementBlock("span",w5,"Transparent")):s.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},v5={class:"my-2 py-2"},x5={class:"relative"},k5={class:"flex items-center gap-2"},E5={key:0},S5={class:"flex items-center"},C5={key:0},N5={key:2,class:"ml-3"},B5={key:3,class:"ml-3"},M5={__name:"ManageOpacity",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.computed(()=>e.getOpacity);return s.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,a)=>(s.openBlock(),s.createElementBlock("div",v5,[a[4]||(a[4]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Opacity",-1)),s.createVNode(s.unref(un),{as:"div",modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=l=>o.value=l)},{default:s.withCtx(()=>[s.createElementVNode("div",x5,[s.createVNode(s.unref(pn),{class:"myPrimarySelect"},{default:s.withCtx(()=>[s.createElementVNode("span",k5,[o.value==="none"?(s.openBlock(),s.createElementBlock("div",E5,a[1]||(a[1]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),o.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${o.value}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["block truncate",[(o.value!=="none","")]])},s.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),a[2]||(a[2]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(kn).opacities,l=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:c=>s.unref(t).handleOpacity(l),key:l,value:l},{default:s.withCtx(({active:c})=>[s.createElementVNode("li",{class:s.normalizeClass([c?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",S5,[l==="none"?(s.openBlock(),s.createElementBlock("div",C5,a[3]||(a[3]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`${l}`])},null,2)):s.createCommentVNode("",!0),l==="none"?(s.openBlock(),s.createElementBlock("span",N5,"Transparent")):s.createCommentVNode("",!0),l!=="none"?(s.openBlock(),s.createElementBlock("span",B5,s.toDisplayString(l),1)):s.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},T5={__name:"OpacityEditor",setup(r){return(e,t)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>t[0]||(t[0]=[s.createTextVNode("Opacity settings")])),content:s.withCtx(()=>[t[1]||(t[1]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Opacity",-1)),s.createVNode(M5),s.createVNode(y5)]),_:1}))}},O5={class:"my-2 py-2"},V5={class:"my-2 py-2"},P5={class:"my-2 py-2"},A5={class:"my-2 py-2"},D5={__name:"PaddingPlusMargin",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.ref(null),l=s.computed(()=>e.getFontVerticalPadding),c=s.computed(()=>e.getFontHorizontalPadding),d=s.computed(()=>e.getFontVerticalMargin),u=s.computed(()=>e.getFontHorizontalMargin);return s.watch(l,async p=>{o.value=p,await t.initializeElementStyles()},{immediate:!0}),s.watch(c,async p=>{n.value=p,await t.initializeElementStyles()},{immediate:!0}),s.watch(d,async p=>{i.value=p,await t.initializeElementStyles()},{immediate:!0}),s.watch(u,async p=>{a.value=p,await t.initializeElementStyles()},{immediate:!0}),(p,m)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>m[8]||(m[8]=[s.createTextVNode("Padding & Margin")])),content:s.withCtx(()=>[m[17]||(m[17]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Padding",-1)),s.createElementVNode("div",O5,[m[10]||(m[10]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Padding Y-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[0]||(m[0]=h=>o.value=h),class:"myPrimarySelect",onChange:m[1]||(m[1]=h=>s.unref(t).handleVerticalPadding(o.value))},[m[9]||(m[9]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).verticalPadding,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,o.value]])]),s.createElementVNode("div",V5,[m[12]||(m[12]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Padding X-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[2]||(m[2]=h=>n.value=h),class:"myPrimarySelect",onChange:m[3]||(m[3]=h=>s.unref(t).handleHorizontalPadding(n.value))},[m[11]||(m[11]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).horizontalPadding,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,n.value]])]),m[18]||(m[18]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Margin",-1)),s.createElementVNode("div",P5,[m[14]||(m[14]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Margin Y-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[4]||(m[4]=h=>i.value=h),class:"myPrimarySelect",onChange:m[5]||(m[5]=h=>s.unref(t).handleVerticalMargin(i.value))},[m[13]||(m[13]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).verticalMargin,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,i.value]])]),s.createElementVNode("div",A5,[m[16]||(m[16]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Margin X-axis ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":m[6]||(m[6]=h=>a.value=h),class:"myPrimarySelect",onChange:m[7]||(m[7]=h=>s.unref(t).handleHorizontalMargin(a.value))},[m[15]||(m[15]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(_t).horizontalMargin,h=>(s.openBlock(),s.createElementBlock("option",{key:h},s.toDisplayString(h),1))),128))],544),[[s.vModelSelect,a.value]])])]),_:1}))}},I5={class:"my-2 py-2"},L5={class:"my-2 py-2"},R5={class:"my-2 py-2"},z5={class:"my-2 py-2"},_5={class:"my-2 py-2"},F5={__name:"BorderRadius",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.ref(null),l=s.ref(null),c=s.computed(()=>e.getBorderRadiusGlobal),d=s.computed(()=>e.getBorderRadiusTopLeft),u=s.computed(()=>e.getBorderRadiusTopRight),p=s.computed(()=>e.getBorderRadiusBottomleft),m=s.computed(()=>e.getBorderRadiusBottomRight);return s.watch(c,async h=>{o.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(d,async h=>{n.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(u,async h=>{i.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(p,async h=>{a.value=h,await t.initializeElementStyles()},{immediate:!0}),s.watch(m,async h=>{l.value=h,await t.initializeElementStyles()},{immediate:!0}),(h,f)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>f[10]||(f[10]=[s.createTextVNode("Border Radius")])),content:s.withCtx(()=>[f[21]||(f[21]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Global",-1)),s.createElementVNode("div",I5,[f[12]||(f[12]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[0]||(f[0]=g=>o.value=g),class:"myPrimarySelect",onChange:f[1]||(f[1]=g=>s.unref(t).handleBorderRadiusGlobal(o.value))},[f[11]||(f[11]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedGlobal,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,o.value]])]),f[22]||(f[22]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Specific",-1)),s.createElementVNode("div",L5,[f[14]||(f[14]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius top left ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[2]||(f[2]=g=>n.value=g),class:"myPrimarySelect",onChange:f[3]||(f[3]=g=>s.unref(t).handleBorderRadiusTopLeft(n.value))},[f[13]||(f[13]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedTopLeft,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,n.value]])]),s.createElementVNode("div",R5,[f[16]||(f[16]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius top right ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[4]||(f[4]=g=>i.value=g),class:"myPrimarySelect",onChange:f[5]||(f[5]=g=>s.unref(t).handleBorderRadiusTopRight(i.value))},[f[15]||(f[15]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedTopRight,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,i.value]])]),s.createElementVNode("div",z5,[f[18]||(f[18]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius bottom left ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[6]||(f[6]=g=>a.value=g),class:"myPrimarySelect",onChange:f[7]||(f[7]=g=>s.unref(t).handleBorderRadiusBottomleft(a.value))},[f[17]||(f[17]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedBottomLeft,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,a.value]])]),s.createElementVNode("div",_5,[f[20]||(f[20]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Radius bottom right ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":f[8]||(f[8]=g=>l.value=g),class:"myPrimarySelect",onChange:f[9]||(f[9]=g=>s.unref(t).handleBorderRadiusBottomRight(l.value))},[f[19]||(f[19]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(pt).roundedBottomRight,g=>(s.openBlock(),s.createElementBlock("option",{key:g},s.toDisplayString(g),1))),128))],544),[[s.vModelSelect,l.value]])])]),_:1}))}},j5={class:"my-2 py-2"},H5={class:"my-2 py-2"},W5={class:"relative mt-2"},q5={class:"flex items-center gap-2"},U5={key:0},K5={class:"block truncate"},J5={class:"flex items-center"},G5={key:0},Y5={key:2,class:"ml-3"},X5={key:3,class:"ml-3"},Q5={__name:"Borders",setup(r){const e=se,t=new de(e),o=s.ref(null),n=s.ref(null),i=s.ref(null),a=s.computed(()=>e.getBorderStyle),l=s.computed(()=>e.getBorderWidth),c=s.computed(()=>e.getBorderColor);return s.watch(a,async d=>{o.value=d,await t.initializeElementStyles()},{immediate:!0}),s.watch(l,async d=>{n.value=d,await t.initializeElementStyles()},{immediate:!0}),s.watch(c,async d=>{i.value=d,await t.initializeElementStyles()},{immediate:!0}),(d,u)=>(s.openBlock(),s.createBlock(co,null,{title:s.withCtx(()=>u[6]||(u[6]=[s.createTextVNode("Border Style, Width & Color")])),content:s.withCtx(()=>[u[14]||(u[14]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 my-4"},"Border",-1)),s.createElementVNode("div",j5,[u[8]||(u[8]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Style ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":u[0]||(u[0]=p=>o.value=p),class:"myPrimarySelect",onChange:u[1]||(u[1]=p=>s.unref(t).handleBorderStyle(o.value))},[u[7]||(u[7]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderStyle,p=>(s.openBlock(),s.createElementBlock("option",{key:p},s.toDisplayString(p),1))),128))],544),[[s.vModelSelect,o.value]])]),s.createElementVNode("div",H5,[u[10]||(u[10]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Width ",-1)),s.withDirectives(s.createElementVNode("select",{"onUpdate:modelValue":u[2]||(u[2]=p=>n.value=p),class:"myPrimarySelect",onChange:u[3]||(u[3]=p=>s.unref(t).handleBorderWidth(n.value))},[u[9]||(u[9]=s.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderWidth,p=>(s.openBlock(),s.createElementBlock("option",{key:p},s.toDisplayString(p),1))),128))],544),[[s.vModelSelect,n.value]])]),u[15]||(u[15]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Border Color ",-1)),s.createVNode(s.unref(un),{as:"div",modelValue:i.value,"onUpdate:modelValue":u[5]||(u[5]=p=>i.value=p)},{default:s.withCtx(()=>[s.createElementVNode("div",W5,[s.createVNode(s.unref(pn),{class:"myPrimarySelect"},{default:s.withCtx(()=>{var p;return[s.createElementVNode("span",q5,[c.value==="none"?(s.openBlock(),s.createElementBlock("div",U5,u[11]||(u[11]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),i.value!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 border border-gray-100 rounded-sm",`bg-${(p=i.value)==null?void 0:p.replace("border-","")}`])},null,2)):s.createCommentVNode("",!0),s.createElementVNode("span",K5,s.toDisplayString(i.value),1)]),u[12]||(u[12]=s.createElementVNode("span",{class:"pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]}),_:1,__:[12]}),s.createVNode(s.Transition,{"leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:s.withCtx(()=>[s.createVNode(s.unref(mn),{class:"absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(s.unref(Ar).borderColor,p=>(s.openBlock(),s.createBlock(s.unref(hn),{as:"template",onClick:u[4]||(u[4]=m=>s.unref(t).handleBorderColor(i.value)),key:p,value:p},{default:s.withCtx(({active:m,borderColor:h})=>[s.createElementVNode("li",{class:s.normalizeClass([m?"bg-myPrimaryLinkColor text-white":"text-myPrimaryDarkGrayColor","relative cursor-default select-none py-2 pl-3 pr-9"])},[s.createElementVNode("div",J5,[p==="none"?(s.openBlock(),s.createElementBlock("div",G5,u[13]||(u[13]=[s.createElementVNode("div",{class:"myPrimaryColorPreview border-none"},[s.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):s.createCommentVNode("",!0),p!=="none"?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["aspect-square w-6 h-6 bg-gray-950",`bg-${p.replace("border-","")}`])},null,2)):s.createCommentVNode("",!0),p==="none"?(s.openBlock(),s.createElementBlock("span",Y5,"Transparent")):s.createCommentVNode("",!0),p!=="none"?(s.openBlock(),s.createElementBlock("span",X5,s.toDisplayString(p),1)):s.createCommentVNode("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),_:1}))}},Z5={class:"blockease-linear duration-200 block ease-linear"},$5={key:0,class:"flex items-center justify-center mb-6"},ek={class:"px-2 flex items-center justify-start gap-2 w-max"},tk=s.defineComponent({__name:"TipTap",setup(r){const e=se,t=new de(e);return(o,n)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",Z5,[s.unref(t).isSelectedElementValidText()?(s.openBlock(),s.createElementBlock("div",$5,[s.createElementVNode("div",ek,[s.createElementVNode("button",{onClick:n[0]||(n[0]=i=>s.unref(t).toggleTipTapModal(!0)),type:"button",class:"myPrimaryTag"},n[1]||(n[1]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),s.createElementVNode("span",null,"Edit text and links",-1)]))])])):s.createCommentVNode("",!0)])]))}}),rk={key:0,class:"border-b border-gray-200 mb-4 pb-8 pt-4"},ok={class:"px-2 flex items-center justify-start gap-2 w-max"},nk={class:"px-2 flex items-center justify-start gap-2 w-max"},ik={__name:"ElementEditor",setup(r){const e=se,t=new de(e),o=s.computed(()=>e.getElement),n=s.computed(()=>e.getRestoredElement);return(i,a)=>o.value||n.value?(s.openBlock(),s.createBlock(co,{key:0},{title:s.withCtx(()=>a[2]||(a[2]=[s.createTextVNode("Selected HTML Element")])),content:s.withCtx(()=>[a[9]||(a[9]=s.createElementVNode("div",{class:"flex flex-row flex-wrap gap-2 mt-2"},null,-1)),n.value?(s.openBlock(),s.createElementBlock("div",rk,[a[4]||(a[4]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0"},"Restore",-1)),a[5]||(a[5]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Restore the last deleted HTML element.",-1)),s.createElementVNode("div",ok,[s.createElementVNode("button",{onClick:a[0]||(a[0]=(...l)=>s.unref(t).handleRestoreElement&&s.unref(t).handleRestoreElement(...l)),type:"button",class:"myPrimaryButton w-full mt-4"},a[3]||(a[3]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," undo ",-1),s.createElementVNode("span",null,"Restore",-1)]))])])):s.createCommentVNode("",!0),o.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[a[7]||(a[7]=s.createElementVNode("p",{class:"myPrimaryParagraph font-medium py-0 mb-4 pt-4"},"Delete",-1)),a[8]||(a[8]=s.createElementVNode("label",{class:"myPrimaryInputLabel"}," Delete the currently selected HTML element from the page.",-1)),s.createElementVNode("div",nk,[s.createElementVNode("button",{onClick:a[1]||(a[1]=(...l)=>s.unref(t).handleDeleteElement&&s.unref(t).handleDeleteElement(...l)),type:"button",class:"myPrimaryDeleteButton w-full mt-4"},a[6]||(a[6]=[s.createElementVNode("span",{class:"hover:text-white"},"Delete element",-1)]))])],64)):s.createCommentVNode("",!0)]),_:1})):s.createCommentVNode("",!0)}},ak={class:"flex max-h-[50rem] flex-col"},sk={class:"flex flex-row justify-between pt-7 pr-4 pl-4 items-center mb-3"},lk={class:"font-medium text-sm"},ck={class:"lowercase"},dk={class:"pl-3 pr-3 mb-4 overflow-y-scroll"},uk={class:"mb-1"},pk={class:"mb-1"},mk={class:"my-1 bg-white"},hk={class:"my-1 bg-white"},fk={class:"my-1 bg-white"},gk={class:"my-1 bg-white"},bk={class:"my-1 bg-white"},wk={class:"my-1 bg-white"},yk={__name:"RightSidebarEditor",emits:["closeEditor"],setup(r,{emit:e}){const t=se,o=new de(t),n=s.computed(()=>t.getElement),i=s.computed(()=>{var a;return(a=n.value)==null?void 0:a.tagName});return s.computed(()=>n.value instanceof HTMLElement&&n.value.innerText.trim()!==" "||n.value instanceof HTMLImageElement),(a,l)=>(s.openBlock(),s.createElementBlock("div",ak,[s.createElementVNode("div",sk,[s.createElementVNode("button",{type:"button",onClick:l[0]||(l[0]=c=>a.$emit("closeEditor")),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},l[1]||(l[1]=[s.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)])),s.createElementVNode("p",lk,[l[2]||(l[2]=s.createTextVNode(" Editing ")),s.createElementVNode("span",ck,"<"+s.toDisplayString(i.value)+">",1)])]),s.createElementVNode("div",dk,[s.withDirectives(s.createElementVNode("div",null,[s.createElementVNode("article",uk,[s.createVNode(d5)]),s.createElementVNode("article",pk,[s.createVNode(tk)]),s.createCommentVNode("",!0),s.createElementVNode("article",mk,[s.createVNode(T5)]),s.createElementVNode("article",hk,[s.createVNode(D5)]),s.createElementVNode("article",fk,[s.createVNode(F5)]),s.createElementVNode("article",gk,[s.createVNode(Q5)]),s.createElementVNode("article",bk,[s.createVNode(s5)])],512),[[s.vShow,n.value&&s.unref(o).isEditableElement(n.value)]]),s.createElementVNode("div",null,[s.createElementVNode("article",wk,[s.createVNode(ik)])]),l[3]||(l[3]=s.createElementVNode("article",{class:"mt-1 bg-white"},null,-1))])]))}},uo=function(r){return!r||typeof r=="object"&&r.constructor===Object&&Object.keys(r).length===0},vk=se,Ol=new de(vk),xk=function(r){if(!r.updateOrCreate||r.updateOrCreate&&typeof r.updateOrCreate.formType!="string"||r.updateOrCreate&&uo(r.updateOrCreate)){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&r.updateOrCreate.formType!=="create"&&r.updateOrCreate.formType!=="update"&&typeof r.formName!="string"){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&(r.updateOrCreate.formType==="create"||r.updateOrCreate.formType==="update")&&typeof r.updateOrCreate.formName!="string"||typeof r.updateOrCreate.formName=="string"&&r.updateOrCreate.formName.length===0){const e={...r,updateOrCreate:{formType:r.updateOrCreate.formType,formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}},kk=`@import"https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&display=swap";@import"https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap";@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0";*,: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(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--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(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Jost,Raleway,Cormorant,sans-serif,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.myPrimaryWidthScreenModule{margin-bottom:0}@media (min-width: 768px){.myPrimaryWidthScreenModule{margin-bottom:0}}.myPrimaryWidthScreenModule{padding-top:4rem;padding-bottom:4rem}@media (min-width: 768px){.myPrimaryWidthScreenModule{padding-top:7rem;padding-bottom:7rem}}.myPrimaryContentSection{margin-left:auto;margin-right:auto;max-width:80rem;padding-left:1rem;padding-right:1rem;padding-bottom:1.5rem}@media (min-width: 768px){.myPrimaryContentSection{padding-left:1rem;padding-right:1rem;padding-bottom:2rem}}@media (min-width: 1024px){.myPrimaryContentSection{padding-bottom:2.5rem}}.myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -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)}@media (min-width: 640px){.myPrimaryTag{width:auto}}.myPrimaryParagraph{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryParagraph{font-size:1rem;line-height:1.5rem}}.myPrimaryParagraphError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryParagraphError{font-size:1rem;line-height:1.5rem}}.myPrimaryParagraphError{margin-top:.25rem;font-style:italic;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.mySecondaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-family:Cormorant;font-size:1.875rem;line-height:2.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.mySecondaryHeader{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.mySecondaryHeader{margin-bottom:2rem;font-size:3rem;line-height:1}}.myTertiaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myTertiaryHeader{margin-bottom:1rem;font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.myTertiaryHeader{margin-bottom:2rem;font-size:1.875rem;line-height:2.25rem}}.myQuaternaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myQuaternaryHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.myQuaternaryHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.myPrimaryLink{cursor:pointer;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.myPrimaryLink:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.myPrimaryLink:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.myPrimaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.myPrimaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.myPrimaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.myPrimaryButton{padding:.75rem 1rem}}.mySecondaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.mySecondaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.mySecondaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.mySecondaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.mySecondaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.mySecondaryButton{padding:.75rem 1rem}}.mySecondaryButton{--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.mySecondaryButton:hover{background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .9;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.mySecondaryButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 242 246 / var(--tw-ring-opacity, 1))}.myPrimaryDeleteButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.myPrimaryDeleteButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryDeleteButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}@media (min-width: 640px){.myPrimaryDeleteButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.myPrimaryDeleteButton{padding:.75rem 1rem}}.myPrimaryDeleteButton,.myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.myPrimaryDeleteButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1))}.myMediumIcon{display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center;stroke-width:1.5px}.myPrimaryGap{gap:1rem}.mysearchBarWithOptions{display:flex;gap:.5rem;border-radius:9999px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1));padding-left:1rem}.myPrimarySearchInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimarySearchInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimarySearchInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySearchInput::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySearchInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimarySearchInput{font-size:.875rem;line-height:1.25rem}}.myPrimarySearchInput{height:100%;border-style:none;background-color:transparent;padding-top:1rem;padding-bottom:1rem;padding-left:2.5rem;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.myPrimarySearchInput:focus{border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-offset-width: 0px}.myPrimaryFormOrganizationHeaderDescriptionSection{margin-bottom:1rem}.myPrimaryFormOrganizationHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.myPrimaryFormOrganizationHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.myPrimaryFormOrganizationHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.myPrimaryFormOrganizationHeader{margin:0;padding-top:1rem}.myInputGroup{margin-bottom:.5rem;width:100%;align-self:flex-start;padding-left:.5rem;padding-right:.5rem}.myPrimaryInputLabel{margin-top:0;margin-bottom:0;margin-bottom:.5rem;display:block;text-align:left;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.myPrimaryInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimaryInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimaryInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimaryInput::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimaryInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimaryInput{font-size:.875rem;line-height:1.25rem}}.myPrimaryInputError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.myPrimaryInputError{font-size:1rem;line-height:1.5rem}}.myPrimaryInputError{margin-top:.25rem;display:block;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.myPrimarySelect:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px}.myPrimarySelect{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.myPrimarySelect::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySelect::placeholder{font-weight:400;accent-color:#d1d5db}.myPrimarySelect:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.myPrimarySelect{font-size:.875rem;line-height:1.25rem}}.myPrimarySelect{position:relative;width:100%}.myPrimaryColorPreview{aspect-ratio:1 / 1;min-height:1.5rem;cursor:pointer;border-radius:.125rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.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}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\\/3{top:33.333333%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-auto{z-index:auto}.col-span-1{grid-column:span 1 / span 1}.\\!-m-px{margin:-1px!important}.m-0{margin:0}.m-1{margin:.25rem}.m-4{margin:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-11{margin-left:2.75rem;margin-right:2.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-14{margin-left:3.5rem;margin-right:3.5rem}.mx-16{margin-left:4rem;margin-right:4rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\\.5{margin-left:.625rem;margin-right:.625rem}.mx-20{margin-left:5rem;margin-right:5rem}.mx-24{margin-left:6rem;margin-right:6rem}.mx-28{margin-left:7rem;margin-right:7rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-3\\.5{margin-left:.875rem;margin-right:.875rem}.mx-32{margin-left:8rem;margin-right:8rem}.mx-36{margin-left:9rem;margin-right:9rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-40{margin-left:10rem;margin-right:10rem}.mx-44{margin-left:11rem;margin-right:11rem}.mx-48{margin-left:12rem;margin-right:12rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-52{margin-left:13rem;margin-right:13rem}.mx-56{margin-left:14rem;margin-right:14rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-60{margin-left:15rem;margin-right:15rem}.mx-64{margin-left:16rem;margin-right:16rem}.mx-7{margin-left:1.75rem;margin-right:1.75rem}.mx-72{margin-left:18rem;margin-right:18rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-80{margin-left:20rem;margin-right:20rem}.mx-9{margin-left:2.25rem;margin-right:2.25rem}.mx-96{margin-left:24rem;margin-right:24rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-0\\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-1\\.5{margin-top:.375rem;margin-bottom:.375rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-11{margin-top:2.75rem;margin-bottom:2.75rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-2\\.5{margin-top:.625rem;margin-bottom:.625rem}.my-20{margin-top:5rem;margin-bottom:5rem}.my-24{margin-top:6rem;margin-bottom:6rem}.my-28{margin-top:7rem;margin-bottom:7rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-3\\.5{margin-top:.875rem;margin-bottom:.875rem}.my-32{margin-top:8rem;margin-bottom:8rem}.my-36{margin-top:9rem;margin-bottom:9rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-40{margin-top:10rem;margin-bottom:10rem}.my-44{margin-top:11rem;margin-bottom:11rem}.my-48{margin-top:12rem;margin-bottom:12rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.my-52{margin-top:13rem;margin-bottom:13rem}.my-56{margin-top:14rem;margin-bottom:14rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-60{margin-top:15rem;margin-bottom:15rem}.my-64{margin-top:16rem;margin-bottom:16rem}.my-7{margin-top:1.75rem;margin-bottom:1.75rem}.my-72{margin-top:18rem;margin-bottom:18rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-80{margin-top:20rem;margin-bottom:20rem}.my-9{margin-top:2.25rem;margin-bottom:2.25rem}.my-96{margin-top:24rem;margin-bottom:24rem}.-mb-px{margin-bottom:-1px}.-ml-16{margin-left:-4rem}.-mt-2{margin-top:-.5rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.inline-grid{display:inline-grid}.hidden{display:none}.aspect-\\[16\\/9\\]{aspect-ratio:16/9}.aspect-\\[21\\/9\\]{aspect-ratio:21/9}.aspect-\\[4\\/3\\]{aspect-ratio:4/3}.aspect-\\[9\\/16\\]{aspect-ratio:9/16}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-3{width:.75rem;height:.75rem}.\\!h-px{height:1px!important}.h-0\\.5{height:.125rem}.h-1{height:.25rem}.h-1\\.5{height:.375rem}.h-1\\/2{height:50%}.h-1\\/3{height:33.333333%}.h-1\\/4{height:25%}.h-1\\/5{height:20%}.h-1\\/6{height:16.666667%}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-2\\/3{height:66.666667%}.h-2\\/4{height:50%}.h-2\\/5{height:40%}.h-2\\/6{height:33.333333%}.h-20{height:5rem}.h-24{height:6rem}.h-28{height:7rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-3\\/4{height:75%}.h-3\\/5{height:60%}.h-3\\/6{height:50%}.h-32{height:8rem}.h-36{height:9rem}.h-4{height:1rem}.h-4\\/5{height:80%}.h-4\\/6{height:66.666667%}.h-40{height:10rem}.h-44{height:11rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-5\\/6{height:83.333333%}.h-52{height:13rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-60{height:15rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-72{height:18rem}.h-8{height:2rem}.h-80{height:20rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\\[10vh\\]{height:10vh}.h-\\[39rem\\]{height:39rem}.h-\\[75vh\\]{height:75vh}.h-\\[90vh\\]{height:90vh}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-max{height:-moz-max-content;height:max-content}.h-min{height:-moz-min-content;height:min-content}.h-screen{height:100vh}.max-h-0{max-height:0px}.max-h-0\\.5{max-height:.125rem}.max-h-1{max-height:.25rem}.max-h-1\\.5{max-height:.375rem}.max-h-10{max-height:2.5rem}.max-h-11{max-height:2.75rem}.max-h-12{max-height:3rem}.max-h-14{max-height:3.5rem}.max-h-16{max-height:4rem}.max-h-2{max-height:.5rem}.max-h-2\\.5{max-height:.625rem}.max-h-20{max-height:5rem}.max-h-24{max-height:6rem}.max-h-28{max-height:7rem}.max-h-3{max-height:.75rem}.max-h-3\\.5{max-height:.875rem}.max-h-32{max-height:8rem}.max-h-36{max-height:9rem}.max-h-4{max-height:1rem}.max-h-40{max-height:10rem}.max-h-44{max-height:11rem}.max-h-48{max-height:12rem}.max-h-5{max-height:1.25rem}.max-h-52{max-height:13rem}.max-h-56{max-height:14rem}.max-h-6{max-height:1.5rem}.max-h-60{max-height:15rem}.max-h-64{max-height:16rem}.max-h-7{max-height:1.75rem}.max-h-72{max-height:18rem}.max-h-8{max-height:2rem}.max-h-80{max-height:20rem}.max-h-9{max-height:2.25rem}.max-h-96{max-height:24rem}.max-h-\\[20rem\\]{max-height:20rem}.max-h-\\[33rem\\]{max-height:33rem}.max-h-\\[50rem\\]{max-height:50rem}.max-h-\\[98vh\\]{max-height:98vh}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.max-h-full{max-height:100%}.max-h-max{max-height:-moz-max-content;max-height:max-content}.max-h-min{max-height:-moz-min-content;max-height:min-content}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-0\\.5{min-height:.125rem}.min-h-1{min-height:.25rem}.min-h-1\\.5{min-height:.375rem}.min-h-10{min-height:2.5rem}.min-h-11{min-height:2.75rem}.min-h-12{min-height:3rem}.min-h-14{min-height:3.5rem}.min-h-16{min-height:4rem}.min-h-2{min-height:.5rem}.min-h-2\\.5{min-height:.625rem}.min-h-20{min-height:5rem}.min-h-24{min-height:6rem}.min-h-28{min-height:7rem}.min-h-3{min-height:.75rem}.min-h-3\\.5{min-height:.875rem}.min-h-32{min-height:8rem}.min-h-36{min-height:9rem}.min-h-4{min-height:1rem}.min-h-40{min-height:10rem}.min-h-44{min-height:11rem}.min-h-48{min-height:12rem}.min-h-5{min-height:1.25rem}.min-h-52{min-height:13rem}.min-h-56{min-height:14rem}.min-h-6{min-height:1.5rem}.min-h-60{min-height:15rem}.min-h-64{min-height:16rem}.min-h-7{min-height:1.75rem}.min-h-72{min-height:18rem}.min-h-8{min-height:2rem}.min-h-80{min-height:20rem}.min-h-9{min-height:2.25rem}.min-h-96{min-height:24rem}.min-h-\\[12rem\\]{min-height:12rem}.min-h-\\[2\\.5rem\\]{min-height:2.5rem}.min-h-\\[20rem\\]{min-height:20rem}.min-h-\\[33rem\\]{min-height:33rem}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-full{min-height:100%}.min-h-max{min-height:-moz-max-content;min-height:max-content}.min-h-min{min-height:-moz-min-content;min-height:min-content}.min-h-screen{min-height:100vh}.\\!w-px{width:1px!important}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-1\\/2{width:50%}.w-1\\/3{width:33.333333%}.w-1\\/4{width:25%}.w-1\\/5{width:20%}.w-1\\/6{width:16.666667%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-2\\/3{width:66.666667%}.w-2\\/4{width:50%}.w-2\\/5{width:40%}.w-2\\/6{width:33.333333%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-3\\/12{width:25%}.w-3\\/4{width:75%}.w-3\\/5{width:60%}.w-3\\/6{width:50%}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-4\\/5{width:80%}.w-4\\/6{width:66.666667%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-5\\/6{width:83.333333%}.w-52{width:13rem}.w-56{width:14rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\\/12{width:75%}.w-96{width:24rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-min{width:-moz-min-content;width:min-content}.w-screen{width:100vw}.min-w-0{min-width:0px}.min-w-0\\.5{min-width:.125rem}.min-w-1{min-width:.25rem}.min-w-1\\.5{min-width:.375rem}.min-w-10{min-width:2.5rem}.min-w-11{min-width:2.75rem}.min-w-12{min-width:3rem}.min-w-14{min-width:3.5rem}.min-w-16{min-width:4rem}.min-w-2{min-width:.5rem}.min-w-2\\.5{min-width:.625rem}.min-w-20{min-width:5rem}.min-w-24{min-width:6rem}.min-w-28{min-width:7rem}.min-w-3{min-width:.75rem}.min-w-3\\.5{min-width:.875rem}.min-w-32{min-width:8rem}.min-w-36{min-width:9rem}.min-w-4{min-width:1rem}.min-w-40{min-width:10rem}.min-w-44{min-width:11rem}.min-w-48{min-width:12rem}.min-w-5{min-width:1.25rem}.min-w-52{min-width:13rem}.min-w-56{min-width:14rem}.min-w-6{min-width:1.5rem}.min-w-60{min-width:15rem}.min-w-64{min-width:16rem}.min-w-7{min-width:1.75rem}.min-w-72{min-width:18rem}.min-w-8{min-width:2rem}.min-w-80{min-width:20rem}.min-w-9{min-width:2.25rem}.min-w-96{min-width:24rem}.min-w-\\[12rem\\]{min-width:12rem}.min-w-\\[3\\.5rem\\]{min-width:3.5rem}.min-w-\\[30rem\\]{min-width:30rem}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-full{min-width:100%}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-0\\.5{max-width:.125rem}.max-w-1{max-width:.25rem}.max-w-1\\.5{max-width:.375rem}.max-w-10{max-width:2.5rem}.max-w-11{max-width:2.75rem}.max-w-12{max-width:3rem}.max-w-14{max-width:3.5rem}.max-w-16{max-width:4rem}.max-w-2{max-width:.5rem}.max-w-2\\.5{max-width:.625rem}.max-w-20{max-width:5rem}.max-w-24{max-width:6rem}.max-w-28{max-width:7rem}.max-w-2xl{max-width:42rem}.max-w-3{max-width:.75rem}.max-w-3\\.5{max-width:.875rem}.max-w-32{max-width:8rem}.max-w-36{max-width:9rem}.max-w-3xl{max-width:48rem}.max-w-4{max-width:1rem}.max-w-40{max-width:10rem}.max-w-44{max-width:11rem}.max-w-48{max-width:12rem}.max-w-4xl{max-width:56rem}.max-w-5{max-width:1.25rem}.max-w-52{max-width:13rem}.max-w-56{max-width:14rem}.max-w-5xl{max-width:64rem}.max-w-6{max-width:1.5rem}.max-w-60{max-width:15rem}.max-w-64{max-width:16rem}.max-w-6xl{max-width:72rem}.max-w-7{max-width:1.75rem}.max-w-72{max-width:18rem}.max-w-7xl{max-width:80rem}.max-w-8{max-width:2rem}.max-w-80{max-width:20rem}.max-w-9{max-width:2.25rem}.max-w-96{max-width:24rem}.max-w-\\[96vh\\]{max-width:96vh}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.max-w-prose{max-width:65ch}.max-w-screen-2xl{max-width:1536px}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-screen-sm{max-width:640px}.max-w-screen-xl{max-width:1280px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.grow{flex-grow:1}.-translate-y-2{--tw-translate-y: -.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;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))}.rotate-0{--tw-rotate: 0deg;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))}.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))}.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))}.rotate-90{--tw-rotate: 90deg;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))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.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))}.scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}.scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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))}.scale-50{--tw-scale-x: .5;--tw-scale-y: .5;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))}.scale-75{--tw-scale-x: .75;--tw-scale-y: .75;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))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;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))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.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))}.transform-none{transform:none}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}.animate-none{animation:none}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.cursor-wait{cursor:wait}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.resize-none{resize:none}.resize-y{resize:vertical}.resize-x{resize:horizontal}.resize{resize:both}.snap-none{scroll-snap-type:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-proximity{--tw-scroll-snap-strictness: proximity}.snap-start{scroll-snap-align:start}.snap-end{scroll-snap-align:end}.snap-center{scroll-snap-align:center}.snap-align-none{scroll-snap-align:none}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.auto-cols-\\[minmax\\(100px\\,_1fr\\)\\]{grid-auto-columns:minmax(100px,1fr)}.auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.auto-cols-max{grid-auto-columns:max-content}.auto-cols-min{grid-auto-columns:min-content}.grid-flow-col{grid-auto-flow:column}.grid-flow-row-dense{grid-auto-flow:row dense}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.grid-cols-\\[minmax\\(10rem\\,1fr\\)\\]{grid-template-columns:minmax(10rem,1fr)}.grid-cols-\\[minmax\\(14rem\\,1fr\\)\\]{grid-template-columns:minmax(14rem,1fr)}.grid-cols-\\[minmax\\(50px\\,100px\\)\\]{grid-template-columns:minmax(50px,100px)}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.flex-nowrap{flex-wrap:nowrap}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(0px * var(--tw-divide-x-reverse));border-left-width:calc(0px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(2px * var(--tw-divide-x-reverse));border-left-width:calc(2px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-4>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(4px * var(--tw-divide-x-reverse));border-left-width:calc(4px * calc(1 - var(--tw-divide-x-reverse)))}.divide-x-8>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(8px * var(--tw-divide-x-reverse));border-left-width:calc(8px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.divide-y-2>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(2px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(2px * var(--tw-divide-y-reverse))}.divide-y-4>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(4px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(4px * var(--tw-divide-y-reverse))}.divide-y-8>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(8px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(8px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.justify-self-stretch{justify-self:stretch}.overflow-auto{overflow:auto}.\\!overflow-hidden{overflow:hidden!important}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-hidden{overflow-y:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.scroll-auto{scroll-behavior:auto}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.\\!whitespace-nowrap{white-space:nowrap!important}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.break-normal{overflow-wrap:normal;word-break:normal}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-bl{border-bottom-left-radius:.25rem}.rounded-bl-2xl{border-bottom-left-radius:1rem}.rounded-bl-3xl{border-bottom-left-radius:1.5rem}.rounded-bl-full{border-bottom-left-radius:9999px}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-bl-sm{border-bottom-left-radius:.125rem}.rounded-bl-xl{border-bottom-left-radius:.75rem}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-2xl{border-bottom-right-radius:1rem}.rounded-br-3xl{border-bottom-right-radius:1.5rem}.rounded-br-full{border-bottom-right-radius:9999px}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-br-sm{border-bottom-right-radius:.125rem}.rounded-br-xl{border-bottom-right-radius:.75rem}.rounded-tl{border-top-left-radius:.25rem}.rounded-tl-2xl{border-top-left-radius:1rem}.rounded-tl-3xl{border-top-left-radius:1.5rem}.rounded-tl-full{border-top-left-radius:9999px}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tl-sm{border-top-left-radius:.125rem}.rounded-tl-xl{border-top-left-radius:.75rem}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-2xl{border-top-right-radius:1rem}.rounded-tr-3xl{border-top-right-radius:1.5rem}.rounded-tr-full{border-top-right-radius:9999px}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-md{border-top-right-radius:.375rem}.rounded-tr-sm{border-top-right-radius:.125rem}.rounded-tr-xl{border-top-right-radius:.75rem}.\\!border-0{border-width:0px!important}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-4{border-width:4px}.border-8{border-width:8px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-dotted{border-style:dotted}.border-double{border-style:double}.border-hidden{border-style:hidden}.border-none{border-style:none}.border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-amber-50{--tw-border-opacity: 1;border-color:rgb(255 251 235 / var(--tw-border-opacity, 1))}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.border-amber-600{--tw-border-opacity: 1;border-color:rgb(217 119 6 / var(--tw-border-opacity, 1))}.border-amber-700{--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.border-amber-800{--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.border-amber-900{--tw-border-opacity: 1;border-color:rgb(120 53 15 / var(--tw-border-opacity, 1))}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-blue-50{--tw-border-opacity: 1;border-color:rgb(239 246 255 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.border-blue-800{--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.border-blue-900{--tw-border-opacity: 1;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))}.border-current{border-color:currentColor}.border-cyan-100{--tw-border-opacity: 1;border-color:rgb(207 250 254 / var(--tw-border-opacity, 1))}.border-cyan-200{--tw-border-opacity: 1;border-color:rgb(165 243 252 / var(--tw-border-opacity, 1))}.border-cyan-300{--tw-border-opacity: 1;border-color:rgb(103 232 249 / var(--tw-border-opacity, 1))}.border-cyan-400{--tw-border-opacity: 1;border-color:rgb(34 211 238 / var(--tw-border-opacity, 1))}.border-cyan-50{--tw-border-opacity: 1;border-color:rgb(236 254 255 / var(--tw-border-opacity, 1))}.border-cyan-500{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity, 1))}.border-cyan-600{--tw-border-opacity: 1;border-color:rgb(8 145 178 / var(--tw-border-opacity, 1))}.border-cyan-700{--tw-border-opacity: 1;border-color:rgb(14 116 144 / var(--tw-border-opacity, 1))}.border-cyan-800{--tw-border-opacity: 1;border-color:rgb(21 94 117 / var(--tw-border-opacity, 1))}.border-cyan-900{--tw-border-opacity: 1;border-color:rgb(22 78 99 / var(--tw-border-opacity, 1))}.border-emerald-100{--tw-border-opacity: 1;border-color:rgb(209 250 229 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-emerald-300{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.border-emerald-400{--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.border-emerald-50{--tw-border-opacity: 1;border-color:rgb(236 253 245 / var(--tw-border-opacity, 1))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.border-emerald-600{--tw-border-opacity: 1;border-color:rgb(5 150 105 / var(--tw-border-opacity, 1))}.border-emerald-700{--tw-border-opacity: 1;border-color:rgb(4 120 87 / var(--tw-border-opacity, 1))}.border-emerald-800{--tw-border-opacity: 1;border-color:rgb(6 95 70 / var(--tw-border-opacity, 1))}.border-emerald-900{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity, 1))}.border-fuchsia-100{--tw-border-opacity: 1;border-color:rgb(250 232 255 / var(--tw-border-opacity, 1))}.border-fuchsia-200{--tw-border-opacity: 1;border-color:rgb(245 208 254 / var(--tw-border-opacity, 1))}.border-fuchsia-300{--tw-border-opacity: 1;border-color:rgb(240 171 252 / var(--tw-border-opacity, 1))}.border-fuchsia-400{--tw-border-opacity: 1;border-color:rgb(232 121 249 / var(--tw-border-opacity, 1))}.border-fuchsia-50{--tw-border-opacity: 1;border-color:rgb(253 244 255 / var(--tw-border-opacity, 1))}.border-fuchsia-500{--tw-border-opacity: 1;border-color:rgb(217 70 239 / var(--tw-border-opacity, 1))}.border-fuchsia-600{--tw-border-opacity: 1;border-color:rgb(192 38 211 / var(--tw-border-opacity, 1))}.border-fuchsia-700{--tw-border-opacity: 1;border-color:rgb(162 28 175 / var(--tw-border-opacity, 1))}.border-fuchsia-800{--tw-border-opacity: 1;border-color:rgb(134 25 143 / var(--tw-border-opacity, 1))}.border-fuchsia-900{--tw-border-opacity: 1;border-color:rgb(112 26 117 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-gray-50{--tw-border-opacity: 1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity, 1))}.border-green-100{--tw-border-opacity: 1;border-color:rgb(220 252 231 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.border-green-400{--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity, 1))}.border-green-50{--tw-border-opacity: 1;border-color:rgb(240 253 244 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.border-green-800{--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.border-green-900{--tw-border-opacity: 1;border-color:rgb(20 83 45 / var(--tw-border-opacity, 1))}.border-indigo-100{--tw-border-opacity: 1;border-color:rgb(224 231 255 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity, 1))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.border-indigo-400{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity, 1))}.border-indigo-50{--tw-border-opacity: 1;border-color:rgb(238 242 255 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-indigo-700{--tw-border-opacity: 1;border-color:rgb(67 56 202 / var(--tw-border-opacity, 1))}.border-indigo-800{--tw-border-opacity: 1;border-color:rgb(55 48 163 / var(--tw-border-opacity, 1))}.border-indigo-900{--tw-border-opacity: 1;border-color:rgb(49 46 129 / var(--tw-border-opacity, 1))}.border-lime-100{--tw-border-opacity: 1;border-color:rgb(236 252 203 / var(--tw-border-opacity, 1))}.border-lime-200{--tw-border-opacity: 1;border-color:rgb(217 249 157 / var(--tw-border-opacity, 1))}.border-lime-300{--tw-border-opacity: 1;border-color:rgb(190 242 100 / var(--tw-border-opacity, 1))}.border-lime-400{--tw-border-opacity: 1;border-color:rgb(163 230 53 / var(--tw-border-opacity, 1))}.border-lime-50{--tw-border-opacity: 1;border-color:rgb(247 254 231 / var(--tw-border-opacity, 1))}.border-lime-500{--tw-border-opacity: 1;border-color:rgb(132 204 22 / var(--tw-border-opacity, 1))}.border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity, 1))}.border-lime-700{--tw-border-opacity: 1;border-color:rgb(77 124 15 / var(--tw-border-opacity, 1))}.border-lime-800{--tw-border-opacity: 1;border-color:rgb(63 98 18 / var(--tw-border-opacity, 1))}.border-lime-900{--tw-border-opacity: 1;border-color:rgb(54 83 20 / var(--tw-border-opacity, 1))}.border-myPrimaryLightGrayColor{--tw-border-opacity: 1;border-color:rgb(239 242 246 / var(--tw-border-opacity, 1))}.border-myPrimaryMediumGrayColor{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-neutral-400{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.border-neutral-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.border-neutral-500{--tw-border-opacity: 1;border-color:rgb(115 115 115 / var(--tw-border-opacity, 1))}.border-neutral-600{--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-neutral-900{--tw-border-opacity: 1;border-color:rgb(23 23 23 / var(--tw-border-opacity, 1))}.border-orange-100{--tw-border-opacity: 1;border-color:rgb(255 237 213 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.border-orange-300{--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1))}.border-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}.border-orange-50{--tw-border-opacity: 1;border-color:rgb(255 247 237 / var(--tw-border-opacity, 1))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity, 1))}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity, 1))}.border-orange-700{--tw-border-opacity: 1;border-color:rgb(194 65 12 / var(--tw-border-opacity, 1))}.border-orange-800{--tw-border-opacity: 1;border-color:rgb(154 52 18 / var(--tw-border-opacity, 1))}.border-orange-900{--tw-border-opacity: 1;border-color:rgb(124 45 18 / var(--tw-border-opacity, 1))}.border-pink-100{--tw-border-opacity: 1;border-color:rgb(252 231 243 / var(--tw-border-opacity, 1))}.border-pink-200{--tw-border-opacity: 1;border-color:rgb(251 207 232 / var(--tw-border-opacity, 1))}.border-pink-300{--tw-border-opacity: 1;border-color:rgb(249 168 212 / var(--tw-border-opacity, 1))}.border-pink-400{--tw-border-opacity: 1;border-color:rgb(244 114 182 / var(--tw-border-opacity, 1))}.border-pink-50{--tw-border-opacity: 1;border-color:rgb(253 242 248 / var(--tw-border-opacity, 1))}.border-pink-500{--tw-border-opacity: 1;border-color:rgb(236 72 153 / var(--tw-border-opacity, 1))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(219 39 119 / var(--tw-border-opacity, 1))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(190 24 93 / var(--tw-border-opacity, 1))}.border-pink-800{--tw-border-opacity: 1;border-color:rgb(157 23 77 / var(--tw-border-opacity, 1))}.border-pink-900{--tw-border-opacity: 1;border-color:rgb(131 24 67 / var(--tw-border-opacity, 1))}.border-purple-100{--tw-border-opacity: 1;border-color:rgb(243 232 255 / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(216 180 254 / var(--tw-border-opacity, 1))}.border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.border-purple-50{--tw-border-opacity: 1;border-color:rgb(250 245 255 / var(--tw-border-opacity, 1))}.border-purple-500{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity, 1))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(147 51 234 / var(--tw-border-opacity, 1))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.border-purple-800{--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1))}.border-purple-900{--tw-border-opacity: 1;border-color:rgb(88 28 135 / var(--tw-border-opacity, 1))}.border-red-100{--tw-border-opacity: 1;border-color:rgb(254 226 226 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.border-red-50{--tw-border-opacity: 1;border-color:rgb(254 242 242 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.border-red-800{--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.border-red-900{--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.border-rose-100{--tw-border-opacity: 1;border-color:rgb(255 228 230 / var(--tw-border-opacity, 1))}.border-rose-200{--tw-border-opacity: 1;border-color:rgb(254 205 211 / var(--tw-border-opacity, 1))}.border-rose-300{--tw-border-opacity: 1;border-color:rgb(253 164 175 / var(--tw-border-opacity, 1))}.border-rose-400{--tw-border-opacity: 1;border-color:rgb(251 113 133 / var(--tw-border-opacity, 1))}.border-rose-50{--tw-border-opacity: 1;border-color:rgb(255 241 242 / var(--tw-border-opacity, 1))}.border-rose-500{--tw-border-opacity: 1;border-color:rgb(244 63 94 / var(--tw-border-opacity, 1))}.border-rose-600{--tw-border-opacity: 1;border-color:rgb(225 29 72 / var(--tw-border-opacity, 1))}.border-rose-700{--tw-border-opacity: 1;border-color:rgb(190 18 60 / var(--tw-border-opacity, 1))}.border-rose-800{--tw-border-opacity: 1;border-color:rgb(159 18 57 / var(--tw-border-opacity, 1))}.border-rose-900{--tw-border-opacity: 1;border-color:rgb(136 19 55 / var(--tw-border-opacity, 1))}.border-sky-100{--tw-border-opacity: 1;border-color:rgb(224 242 254 / var(--tw-border-opacity, 1))}.border-sky-200{--tw-border-opacity: 1;border-color:rgb(186 230 253 / var(--tw-border-opacity, 1))}.border-sky-300{--tw-border-opacity: 1;border-color:rgb(125 211 252 / var(--tw-border-opacity, 1))}.border-sky-400{--tw-border-opacity: 1;border-color:rgb(56 189 248 / var(--tw-border-opacity, 1))}.border-sky-50{--tw-border-opacity: 1;border-color:rgb(240 249 255 / var(--tw-border-opacity, 1))}.border-sky-500{--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity, 1))}.border-sky-600{--tw-border-opacity: 1;border-color:rgb(2 132 199 / var(--tw-border-opacity, 1))}.border-sky-700{--tw-border-opacity: 1;border-color:rgb(3 105 161 / var(--tw-border-opacity, 1))}.border-sky-800{--tw-border-opacity: 1;border-color:rgb(7 89 133 / var(--tw-border-opacity, 1))}.border-sky-900{--tw-border-opacity: 1;border-color:rgb(12 74 110 / var(--tw-border-opacity, 1))}.border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.border-slate-50{--tw-border-opacity: 1;border-color:rgb(248 250 252 / var(--tw-border-opacity, 1))}.border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.border-slate-900{--tw-border-opacity: 1;border-color:rgb(15 23 42 / var(--tw-border-opacity, 1))}.border-stone-100{--tw-border-opacity: 1;border-color:rgb(245 245 244 / var(--tw-border-opacity, 1))}.border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity, 1))}.border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity, 1))}.border-stone-400{--tw-border-opacity: 1;border-color:rgb(168 162 158 / var(--tw-border-opacity, 1))}.border-stone-50{--tw-border-opacity: 1;border-color:rgb(250 250 249 / var(--tw-border-opacity, 1))}.border-stone-500{--tw-border-opacity: 1;border-color:rgb(120 113 108 / var(--tw-border-opacity, 1))}.border-stone-600{--tw-border-opacity: 1;border-color:rgb(87 83 78 / var(--tw-border-opacity, 1))}.border-stone-700{--tw-border-opacity: 1;border-color:rgb(68 64 60 / var(--tw-border-opacity, 1))}.border-stone-800{--tw-border-opacity: 1;border-color:rgb(41 37 36 / var(--tw-border-opacity, 1))}.border-stone-900{--tw-border-opacity: 1;border-color:rgb(28 25 23 / var(--tw-border-opacity, 1))}.border-teal-100{--tw-border-opacity: 1;border-color:rgb(204 251 241 / var(--tw-border-opacity, 1))}.border-teal-200{--tw-border-opacity: 1;border-color:rgb(153 246 228 / var(--tw-border-opacity, 1))}.border-teal-300{--tw-border-opacity: 1;border-color:rgb(94 234 212 / var(--tw-border-opacity, 1))}.border-teal-400{--tw-border-opacity: 1;border-color:rgb(45 212 191 / var(--tw-border-opacity, 1))}.border-teal-50{--tw-border-opacity: 1;border-color:rgb(240 253 250 / var(--tw-border-opacity, 1))}.border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity, 1))}.border-teal-600{--tw-border-opacity: 1;border-color:rgb(13 148 136 / var(--tw-border-opacity, 1))}.border-teal-700{--tw-border-opacity: 1;border-color:rgb(15 118 110 / var(--tw-border-opacity, 1))}.border-teal-800{--tw-border-opacity: 1;border-color:rgb(17 94 89 / var(--tw-border-opacity, 1))}.border-teal-900{--tw-border-opacity: 1;border-color:rgb(19 78 74 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-violet-100{--tw-border-opacity: 1;border-color:rgb(237 233 254 / var(--tw-border-opacity, 1))}.border-violet-200{--tw-border-opacity: 1;border-color:rgb(221 214 254 / var(--tw-border-opacity, 1))}.border-violet-300{--tw-border-opacity: 1;border-color:rgb(196 181 253 / var(--tw-border-opacity, 1))}.border-violet-400{--tw-border-opacity: 1;border-color:rgb(167 139 250 / var(--tw-border-opacity, 1))}.border-violet-50{--tw-border-opacity: 1;border-color:rgb(245 243 255 / var(--tw-border-opacity, 1))}.border-violet-500{--tw-border-opacity: 1;border-color:rgb(139 92 246 / var(--tw-border-opacity, 1))}.border-violet-600{--tw-border-opacity: 1;border-color:rgb(124 58 237 / var(--tw-border-opacity, 1))}.border-violet-700{--tw-border-opacity: 1;border-color:rgb(109 40 217 / var(--tw-border-opacity, 1))}.border-violet-800{--tw-border-opacity: 1;border-color:rgb(91 33 182 / var(--tw-border-opacity, 1))}.border-violet-900{--tw-border-opacity: 1;border-color:rgb(76 29 149 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-yellow-100{--tw-border-opacity: 1;border-color:rgb(254 249 195 / var(--tw-border-opacity, 1))}.border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity, 1))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.border-yellow-50{--tw-border-opacity: 1;border-color:rgb(254 252 232 / var(--tw-border-opacity, 1))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(234 179 8 / var(--tw-border-opacity, 1))}.border-yellow-600{--tw-border-opacity: 1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.border-yellow-700{--tw-border-opacity: 1;border-color:rgb(161 98 7 / var(--tw-border-opacity, 1))}.border-yellow-800{--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.border-yellow-900{--tw-border-opacity: 1;border-color:rgb(113 63 18 / var(--tw-border-opacity, 1))}.border-zinc-100{--tw-border-opacity: 1;border-color:rgb(244 244 245 / var(--tw-border-opacity, 1))}.border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity, 1))}.border-zinc-300{--tw-border-opacity: 1;border-color:rgb(212 212 216 / var(--tw-border-opacity, 1))}.border-zinc-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity, 1))}.border-zinc-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1))}.border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity, 1))}.border-zinc-700{--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity, 1))}.border-zinc-800{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity, 1))}.border-zinc-900{--tw-border-opacity: 1;border-color:rgb(24 24 27 / var(--tw-border-opacity, 1))}.border-r-transparent{border-right-color:transparent}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-200{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))}.bg-amber-300{--tw-bg-opacity: 1;background-color:rgb(252 211 77 / var(--tw-bg-opacity, 1))}.bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-700{--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity, 1))}.bg-amber-800{--tw-bg-opacity: 1;background-color:rgb(146 64 14 / var(--tw-bg-opacity, 1))}.bg-amber-900{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\\/0{background-color:#0000}.bg-black\\/50{background-color:#00000080}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.bg-cyan-100{--tw-bg-opacity: 1;background-color:rgb(207 250 254 / var(--tw-bg-opacity, 1))}.bg-cyan-200{--tw-bg-opacity: 1;background-color:rgb(165 243 252 / var(--tw-bg-opacity, 1))}.bg-cyan-300{--tw-bg-opacity: 1;background-color:rgb(103 232 249 / var(--tw-bg-opacity, 1))}.bg-cyan-400{--tw-bg-opacity: 1;background-color:rgb(34 211 238 / var(--tw-bg-opacity, 1))}.bg-cyan-50{--tw-bg-opacity: 1;background-color:rgb(236 254 255 / var(--tw-bg-opacity, 1))}.bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity, 1))}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-700{--tw-bg-opacity: 1;background-color:rgb(14 116 144 / var(--tw-bg-opacity, 1))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity, 1))}.bg-cyan-900{--tw-bg-opacity: 1;background-color:rgb(22 78 99 / var(--tw-bg-opacity, 1))}.bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.bg-emerald-200{--tw-bg-opacity: 1;background-color:rgb(167 243 208 / var(--tw-bg-opacity, 1))}.bg-emerald-300{--tw-bg-opacity: 1;background-color:rgb(110 231 183 / var(--tw-bg-opacity, 1))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-700{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.bg-emerald-800{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity, 1))}.bg-emerald-900{--tw-bg-opacity: 1;background-color:rgb(6 78 59 / var(--tw-bg-opacity, 1))}.bg-fuchsia-100{--tw-bg-opacity: 1;background-color:rgb(250 232 255 / var(--tw-bg-opacity, 1))}.bg-fuchsia-200{--tw-bg-opacity: 1;background-color:rgb(245 208 254 / var(--tw-bg-opacity, 1))}.bg-fuchsia-300{--tw-bg-opacity: 1;background-color:rgb(240 171 252 / var(--tw-bg-opacity, 1))}.bg-fuchsia-400{--tw-bg-opacity: 1;background-color:rgb(232 121 249 / var(--tw-bg-opacity, 1))}.bg-fuchsia-50{--tw-bg-opacity: 1;background-color:rgb(253 244 255 / var(--tw-bg-opacity, 1))}.bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity, 1))}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.bg-fuchsia-700{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.bg-fuchsia-800{--tw-bg-opacity: 1;background-color:rgb(134 25 143 / var(--tw-bg-opacity, 1))}.bg-fuchsia-900{--tw-bg-opacity: 1;background-color:rgb(112 26 117 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-800\\/40{background-color:#1f293766}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.bg-green-300{--tw-bg-opacity: 1;background-color:rgb(134 239 172 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.bg-green-800{--tw-bg-opacity: 1;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))}.bg-green-900{--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity, 1))}.bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-indigo-700{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.bg-indigo-800{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity, 1))}.bg-indigo-900{--tw-bg-opacity: 1;background-color:rgb(49 46 129 / var(--tw-bg-opacity, 1))}.bg-lime-100{--tw-bg-opacity: 1;background-color:rgb(236 252 203 / var(--tw-bg-opacity, 1))}.bg-lime-200{--tw-bg-opacity: 1;background-color:rgb(217 249 157 / var(--tw-bg-opacity, 1))}.bg-lime-300{--tw-bg-opacity: 1;background-color:rgb(190 242 100 / var(--tw-bg-opacity, 1))}.bg-lime-400{--tw-bg-opacity: 1;background-color:rgb(163 230 53 / var(--tw-bg-opacity, 1))}.bg-lime-50{--tw-bg-opacity: 1;background-color:rgb(247 254 231 / var(--tw-bg-opacity, 1))}.bg-lime-500{--tw-bg-opacity: 1;background-color:rgb(132 204 22 / var(--tw-bg-opacity, 1))}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-700{--tw-bg-opacity: 1;background-color:rgb(77 124 15 / var(--tw-bg-opacity, 1))}.bg-lime-800{--tw-bg-opacity: 1;background-color:rgb(63 98 18 / var(--tw-bg-opacity, 1))}.bg-lime-900{--tw-bg-opacity: 1;background-color:rgb(54 83 20 / var(--tw-bg-opacity, 1))}.bg-myPrimaryBrandColor{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-myPrimaryErrorColor{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.bg-myPrimaryLightGrayColor{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.bg-myPrimaryLinkColor{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-neutral-500{--tw-bg-opacity: 1;background-color:rgb(115 115 115 / var(--tw-bg-opacity, 1))}.bg-neutral-600{--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.bg-neutral-700{--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity, 1))}.bg-orange-300{--tw-bg-opacity: 1;background-color:rgb(253 186 116 / var(--tw-bg-opacity, 1))}.bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.bg-orange-700{--tw-bg-opacity: 1;background-color:rgb(194 65 12 / var(--tw-bg-opacity, 1))}.bg-orange-800{--tw-bg-opacity: 1;background-color:rgb(154 52 18 / var(--tw-bg-opacity, 1))}.bg-orange-900{--tw-bg-opacity: 1;background-color:rgb(124 45 18 / var(--tw-bg-opacity, 1))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 231 243 / var(--tw-bg-opacity, 1))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(251 207 232 / var(--tw-bg-opacity, 1))}.bg-pink-300{--tw-bg-opacity: 1;background-color:rgb(249 168 212 / var(--tw-bg-opacity, 1))}.bg-pink-400{--tw-bg-opacity: 1;background-color:rgb(244 114 182 / var(--tw-bg-opacity, 1))}.bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity, 1))}.bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(190 24 93 / var(--tw-bg-opacity, 1))}.bg-pink-800{--tw-bg-opacity: 1;background-color:rgb(157 23 77 / var(--tw-bg-opacity, 1))}.bg-pink-900{--tw-bg-opacity: 1;background-color:rgb(131 24 67 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity, 1))}.bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity, 1))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity, 1))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity, 1))}.bg-purple-900{--tw-bg-opacity: 1;background-color:rgb(88 28 135 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.bg-red-300{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))}.bg-red-900{--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.bg-rose-100{--tw-bg-opacity: 1;background-color:rgb(255 228 230 / var(--tw-bg-opacity, 1))}.bg-rose-200{--tw-bg-opacity: 1;background-color:rgb(254 205 211 / var(--tw-bg-opacity, 1))}.bg-rose-300{--tw-bg-opacity: 1;background-color:rgb(253 164 175 / var(--tw-bg-opacity, 1))}.bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.bg-rose-50{--tw-bg-opacity: 1;background-color:rgb(255 241 242 / var(--tw-bg-opacity, 1))}.bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.bg-rose-700{--tw-bg-opacity: 1;background-color:rgb(190 18 60 / var(--tw-bg-opacity, 1))}.bg-rose-800{--tw-bg-opacity: 1;background-color:rgb(159 18 57 / var(--tw-bg-opacity, 1))}.bg-rose-900{--tw-bg-opacity: 1;background-color:rgb(136 19 55 / var(--tw-bg-opacity, 1))}.bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity, 1))}.bg-sky-200{--tw-bg-opacity: 1;background-color:rgb(186 230 253 / var(--tw-bg-opacity, 1))}.bg-sky-300{--tw-bg-opacity: 1;background-color:rgb(125 211 252 / var(--tw-bg-opacity, 1))}.bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity, 1))}.bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.bg-sky-700{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))}.bg-sky-800{--tw-bg-opacity: 1;background-color:rgb(7 89 133 / var(--tw-bg-opacity, 1))}.bg-sky-900{--tw-bg-opacity: 1;background-color:rgb(12 74 110 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity, 1))}.bg-stone-200{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity, 1))}.bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}.bg-stone-500{--tw-bg-opacity: 1;background-color:rgb(120 113 108 / var(--tw-bg-opacity, 1))}.bg-stone-600{--tw-bg-opacity: 1;background-color:rgb(87 83 78 / var(--tw-bg-opacity, 1))}.bg-stone-700{--tw-bg-opacity: 1;background-color:rgb(68 64 60 / var(--tw-bg-opacity, 1))}.bg-stone-800{--tw-bg-opacity: 1;background-color:rgb(41 37 36 / var(--tw-bg-opacity, 1))}.bg-stone-900{--tw-bg-opacity: 1;background-color:rgb(28 25 23 / var(--tw-bg-opacity, 1))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-200{--tw-bg-opacity: 1;background-color:rgb(153 246 228 / var(--tw-bg-opacity, 1))}.bg-teal-300{--tw-bg-opacity: 1;background-color:rgb(94 234 212 / var(--tw-bg-opacity, 1))}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity, 1))}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.bg-teal-500{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.bg-teal-800{--tw-bg-opacity: 1;background-color:rgb(17 94 89 / var(--tw-bg-opacity, 1))}.bg-teal-900{--tw-bg-opacity: 1;background-color:rgb(19 78 74 / var(--tw-bg-opacity, 1))}.bg-violet-100{--tw-bg-opacity: 1;background-color:rgb(237 233 254 / var(--tw-bg-opacity, 1))}.bg-violet-200{--tw-bg-opacity: 1;background-color:rgb(221 214 254 / var(--tw-bg-opacity, 1))}.bg-violet-300{--tw-bg-opacity: 1;background-color:rgb(196 181 253 / var(--tw-bg-opacity, 1))}.bg-violet-400{--tw-bg-opacity: 1;background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1))}.bg-violet-50{--tw-bg-opacity: 1;background-color:rgb(245 243 255 / var(--tw-bg-opacity, 1))}.bg-violet-500{--tw-bg-opacity: 1;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-700{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity, 1))}.bg-violet-800{--tw-bg-opacity: 1;background-color:rgb(91 33 182 / var(--tw-bg-opacity, 1))}.bg-violet-900{--tw-bg-opacity: 1;background-color:rgb(76 29 149 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity, 1))}.bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.bg-yellow-700{--tw-bg-opacity: 1;background-color:rgb(161 98 7 / var(--tw-bg-opacity, 1))}.bg-yellow-800{--tw-bg-opacity: 1;background-color:rgb(133 77 14 / var(--tw-bg-opacity, 1))}.bg-yellow-900{--tw-bg-opacity: 1;background-color:rgb(113 63 18 / var(--tw-bg-opacity, 1))}.bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(244 244 245 / var(--tw-bg-opacity, 1))}.bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity, 1))}.bg-zinc-300{--tw-bg-opacity: 1;background-color:rgb(212 212 216 / var(--tw-bg-opacity, 1))}.bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(161 161 170 / var(--tw-bg-opacity, 1))}.bg-zinc-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.bg-zinc-500{--tw-bg-opacity: 1;background-color:rgb(113 113 122 / var(--tw-bg-opacity, 1))}.bg-zinc-600{--tw-bg-opacity: 1;background-color:rgb(82 82 91 / var(--tw-bg-opacity, 1))}.bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1))}.bg-zinc-800{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity, 1))}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))}.bg-opacity-0{--tw-bg-opacity: 0}.bg-opacity-10{--tw-bg-opacity: .1}.bg-opacity-100{--tw-bg-opacity: 1}.bg-opacity-20{--tw-bg-opacity: .2}.bg-opacity-25{--tw-bg-opacity: .25}.bg-opacity-30{--tw-bg-opacity: .3}.bg-opacity-40{--tw-bg-opacity: .4}.bg-opacity-5{--tw-bg-opacity: .05}.bg-opacity-50{--tw-bg-opacity: .5}.bg-opacity-60{--tw-bg-opacity: .6}.bg-opacity-70{--tw-bg-opacity: .7}.bg-opacity-75{--tw-bg-opacity: .75}.bg-opacity-80{--tw-bg-opacity: .8}.bg-opacity-90{--tw-bg-opacity: .9}.bg-opacity-95{--tw-bg-opacity: .95}.fill-gray-800{fill:#1f2937}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.object-fill{-o-object-fit:fill;object-fit:fill}.object-none{-o-object-fit:none;object-fit:none}.object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.object-bottom{-o-object-position:bottom;object-position:bottom}.object-center{-o-object-position:center;object-position:center}.object-left{-o-object-position:left;object-position:left}.object-left-bottom{-o-object-position:left bottom;object-position:left bottom}.object-left-top{-o-object-position:left top;object-position:left top}.object-right{-o-object-position:right;object-position:right}.object-right-bottom{-o-object-position:right bottom;object-position:right bottom}.object-right-top{-o-object-position:right top;object-position:right top}.object-top{-o-object-position:top;object-position:top}.\\!p-0{padding:0!important}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-0{padding-left:0;padding-right:0}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-11{padding-left:2.75rem;padding-right:2.75rem}.px-12{padding-left:3rem;padding-right:3rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-20{padding-left:5rem;padding-right:5rem}.px-24{padding-left:6rem;padding-right:6rem}.px-28{padding-left:7rem;padding-right:7rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-32{padding-left:8rem;padding-right:8rem}.px-36{padding-left:9rem;padding-right:9rem}.px-4{padding-left:1rem;padding-right:1rem}.px-40{padding-left:10rem;padding-right:10rem}.px-44{padding-left:11rem;padding-right:11rem}.px-48{padding-left:12rem;padding-right:12rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-52{padding-left:13rem;padding-right:13rem}.px-56{padding-left:14rem;padding-right:14rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-60{padding-left:15rem;padding-right:15rem}.px-64{padding-left:16rem;padding-right:16rem}.px-7{padding-left:1.75rem;padding-right:1.75rem}.px-72{padding-left:18rem;padding-right:18rem}.px-8{padding-left:2rem;padding-right:2rem}.px-80{padding-left:20rem;padding-right:20rem}.px-9{padding-left:2.25rem;padding-right:2.25rem}.px-96{padding-left:24rem;padding-right:24rem}.py-0{padding-top:0;padding-bottom:0}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-11{padding-top:2.75rem;padding-bottom:2.75rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-28{padding-top:7rem;padding-bottom:7rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-36{padding-top:9rem;padding-bottom:9rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-40{padding-top:10rem;padding-bottom:10rem}.py-44{padding-top:11rem;padding-bottom:11rem}.py-48{padding-top:12rem;padding-bottom:12rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-52{padding-top:13rem;padding-bottom:13rem}.py-56{padding-top:14rem;padding-bottom:14rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-60{padding-top:15rem;padding-bottom:15rem}.py-64{padding-top:16rem;padding-bottom:16rem}.py-7{padding-top:1.75rem;padding-bottom:1.75rem}.py-72{padding-top:18rem;padding-bottom:18rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-80{padding-top:20rem;padding-bottom:20rem}.py-9{padding-top:2.25rem;padding-bottom:2.25rem}.py-96{padding-top:24rem;padding-bottom:24rem}.pb-1{padding-bottom:.25rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-9{padding-right:2.25rem}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-7{padding-top:1.75rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.text-start{text-align:start}.text-end{text-align:end}.indent-0{text-indent:0px}.indent-1{text-indent:.25rem}.indent-2{text-indent:.5rem}.indent-4{text-indent:1rem}.indent-8{text-indent:2rem}.indent-px{text-indent:1px}.align-bottom{vertical-align:bottom}.align-\\[-0\\.125em\\]{vertical-align:-.125em}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-sans{font-family:Jost,Raleway,Cormorant,sans-serif,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-7xl{font-size:4.5rem;line-height:1}.text-8xl{font-size:6rem;line-height:1}.text-9xl{font-size:8rem;line-height:1}.text-\\[12\\.5px\\]{font-size:12.5px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-black{font-weight:900}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-extralight{font-weight:200}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.italic{font-style:italic}.not-italic{font-style:normal}.leading-none{line-height:1}.tracking-wider{letter-spacing:.05em}.text-amber-100{--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.text-amber-200{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-amber-50{--tw-text-opacity: 1;color:rgb(255 251 235 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.text-cyan-100{--tw-text-opacity: 1;color:rgb(207 250 254 / var(--tw-text-opacity, 1))}.text-cyan-200{--tw-text-opacity: 1;color:rgb(165 243 252 / var(--tw-text-opacity, 1))}.text-cyan-300{--tw-text-opacity: 1;color:rgb(103 232 249 / var(--tw-text-opacity, 1))}.text-cyan-400{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.text-cyan-50{--tw-text-opacity: 1;color:rgb(236 254 255 / var(--tw-text-opacity, 1))}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity, 1))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-cyan-700{--tw-text-opacity: 1;color:rgb(14 116 144 / var(--tw-text-opacity, 1))}.text-cyan-800{--tw-text-opacity: 1;color:rgb(21 94 117 / var(--tw-text-opacity, 1))}.text-cyan-900{--tw-text-opacity: 1;color:rgb(22 78 99 / var(--tw-text-opacity, 1))}.text-emerald-100{--tw-text-opacity: 1;color:rgb(209 250 229 / var(--tw-text-opacity, 1))}.text-emerald-200{--tw-text-opacity: 1;color:rgb(167 243 208 / var(--tw-text-opacity, 1))}.text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-50{--tw-text-opacity: 1;color:rgb(236 253 245 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}.text-fuchsia-100{--tw-text-opacity: 1;color:rgb(250 232 255 / var(--tw-text-opacity, 1))}.text-fuchsia-200{--tw-text-opacity: 1;color:rgb(245 208 254 / var(--tw-text-opacity, 1))}.text-fuchsia-300{--tw-text-opacity: 1;color:rgb(240 171 252 / var(--tw-text-opacity, 1))}.text-fuchsia-400{--tw-text-opacity: 1;color:rgb(232 121 249 / var(--tw-text-opacity, 1))}.text-fuchsia-50{--tw-text-opacity: 1;color:rgb(253 244 255 / var(--tw-text-opacity, 1))}.text-fuchsia-500{--tw-text-opacity: 1;color:rgb(217 70 239 / var(--tw-text-opacity, 1))}.text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.text-fuchsia-700{--tw-text-opacity: 1;color:rgb(162 28 175 / var(--tw-text-opacity, 1))}.text-fuchsia-800{--tw-text-opacity: 1;color:rgb(134 25 143 / var(--tw-text-opacity, 1))}.text-fuchsia-900{--tw-text-opacity: 1;color:rgb(112 26 117 / var(--tw-text-opacity, 1))}.text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.text-green-200{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-50{--tw-text-opacity: 1;color:rgb(240 253 244 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.text-indigo-100{--tw-text-opacity: 1;color:rgb(224 231 255 / var(--tw-text-opacity, 1))}.text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity, 1))}.text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-indigo-50{--tw-text-opacity: 1;color:rgb(238 242 255 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity, 1))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity, 1))}.text-lime-100{--tw-text-opacity: 1;color:rgb(236 252 203 / var(--tw-text-opacity, 1))}.text-lime-200{--tw-text-opacity: 1;color:rgb(217 249 157 / var(--tw-text-opacity, 1))}.text-lime-300{--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity, 1))}.text-lime-400{--tw-text-opacity: 1;color:rgb(163 230 53 / var(--tw-text-opacity, 1))}.text-lime-50{--tw-text-opacity: 1;color:rgb(247 254 231 / var(--tw-text-opacity, 1))}.text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity, 1))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity, 1))}.text-lime-800{--tw-text-opacity: 1;color:rgb(63 98 18 / var(--tw-text-opacity, 1))}.text-lime-900{--tw-text-opacity: 1;color:rgb(54 83 20 / var(--tw-text-opacity, 1))}.text-myPrimaryDarkGrayColor{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-myPrimaryErrorColor{--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.text-myPrimaryLinkColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-myPrimaryMediumGrayColor{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-myPrimarySuccesColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-neutral-100{--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-orange-100{--tw-text-opacity: 1;color:rgb(255 237 213 / var(--tw-text-opacity, 1))}.text-orange-200{--tw-text-opacity: 1;color:rgb(254 215 170 / var(--tw-text-opacity, 1))}.text-orange-300{--tw-text-opacity: 1;color:rgb(253 186 116 / var(--tw-text-opacity, 1))}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-orange-50{--tw-text-opacity: 1;color:rgb(255 247 237 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-orange-800{--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity, 1))}.text-pink-100{--tw-text-opacity: 1;color:rgb(252 231 243 / var(--tw-text-opacity, 1))}.text-pink-200{--tw-text-opacity: 1;color:rgb(251 207 232 / var(--tw-text-opacity, 1))}.text-pink-300{--tw-text-opacity: 1;color:rgb(249 168 212 / var(--tw-text-opacity, 1))}.text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.text-pink-50{--tw-text-opacity: 1;color:rgb(253 242 248 / var(--tw-text-opacity, 1))}.text-pink-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-pink-700{--tw-text-opacity: 1;color:rgb(190 24 93 / var(--tw-text-opacity, 1))}.text-pink-800{--tw-text-opacity: 1;color:rgb(157 23 77 / var(--tw-text-opacity, 1))}.text-pink-900{--tw-text-opacity: 1;color:rgb(131 24 67 / var(--tw-text-opacity, 1))}.text-purple-100{--tw-text-opacity: 1;color:rgb(243 232 255 / var(--tw-text-opacity, 1))}.text-purple-200{--tw-text-opacity: 1;color:rgb(233 213 255 / var(--tw-text-opacity, 1))}.text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-purple-50{--tw-text-opacity: 1;color:rgb(250 245 255 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-purple-900{--tw-text-opacity: 1;color:rgb(88 28 135 / var(--tw-text-opacity, 1))}.text-red-100{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-50{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-rose-100{--tw-text-opacity: 1;color:rgb(255 228 230 / var(--tw-text-opacity, 1))}.text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.text-rose-50{--tw-text-opacity: 1;color:rgb(255 241 242 / var(--tw-text-opacity, 1))}.text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-rose-700{--tw-text-opacity: 1;color:rgb(190 18 60 / var(--tw-text-opacity, 1))}.text-rose-800{--tw-text-opacity: 1;color:rgb(159 18 57 / var(--tw-text-opacity, 1))}.text-rose-900{--tw-text-opacity: 1;color:rgb(136 19 55 / var(--tw-text-opacity, 1))}.text-sky-100{--tw-text-opacity: 1;color:rgb(224 242 254 / var(--tw-text-opacity, 1))}.text-sky-200{--tw-text-opacity: 1;color:rgb(186 230 253 / var(--tw-text-opacity, 1))}.text-sky-300{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-sky-50{--tw-text-opacity: 1;color:rgb(240 249 255 / var(--tw-text-opacity, 1))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity, 1))}.text-sky-600{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity, 1))}.text-sky-700{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity, 1))}.text-sky-800{--tw-text-opacity: 1;color:rgb(7 89 133 / var(--tw-text-opacity, 1))}.text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity, 1))}.text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-stone-100{--tw-text-opacity: 1;color:rgb(245 245 244 / var(--tw-text-opacity, 1))}.text-stone-200{--tw-text-opacity: 1;color:rgb(231 229 228 / var(--tw-text-opacity, 1))}.text-stone-300{--tw-text-opacity: 1;color:rgb(214 211 209 / var(--tw-text-opacity, 1))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity, 1))}.text-stone-50{--tw-text-opacity: 1;color:rgb(250 250 249 / var(--tw-text-opacity, 1))}.text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity, 1))}.text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity, 1))}.text-stone-700{--tw-text-opacity: 1;color:rgb(68 64 60 / var(--tw-text-opacity, 1))}.text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity, 1))}.text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity, 1))}.text-teal-100{--tw-text-opacity: 1;color:rgb(204 251 241 / var(--tw-text-opacity, 1))}.text-teal-200{--tw-text-opacity: 1;color:rgb(153 246 228 / var(--tw-text-opacity, 1))}.text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.text-teal-400{--tw-text-opacity: 1;color:rgb(45 212 191 / var(--tw-text-opacity, 1))}.text-teal-50{--tw-text-opacity: 1;color:rgb(240 253 250 / var(--tw-text-opacity, 1))}.text-teal-500{--tw-text-opacity: 1;color:rgb(20 184 166 / var(--tw-text-opacity, 1))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-teal-800{--tw-text-opacity: 1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.text-teal-900{--tw-text-opacity: 1;color:rgb(19 78 74 / var(--tw-text-opacity, 1))}.text-violet-100{--tw-text-opacity: 1;color:rgb(237 233 254 / var(--tw-text-opacity, 1))}.text-violet-200{--tw-text-opacity: 1;color:rgb(221 214 254 / var(--tw-text-opacity, 1))}.text-violet-300{--tw-text-opacity: 1;color:rgb(196 181 253 / var(--tw-text-opacity, 1))}.text-violet-400{--tw-text-opacity: 1;color:rgb(167 139 250 / var(--tw-text-opacity, 1))}.text-violet-50{--tw-text-opacity: 1;color:rgb(245 243 255 / var(--tw-text-opacity, 1))}.text-violet-500{--tw-text-opacity: 1;color:rgb(139 92 246 / var(--tw-text-opacity, 1))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-violet-700{--tw-text-opacity: 1;color:rgb(109 40 217 / var(--tw-text-opacity, 1))}.text-violet-800{--tw-text-opacity: 1;color:rgb(91 33 182 / var(--tw-text-opacity, 1))}.text-violet-900{--tw-text-opacity: 1;color:rgb(76 29 149 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-100{--tw-text-opacity: 1;color:rgb(254 249 195 / var(--tw-text-opacity, 1))}.text-yellow-200{--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-50{--tw-text-opacity: 1;color:rgb(254 252 232 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(113 63 18 / var(--tw-text-opacity, 1))}.text-zinc-100{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity, 1))}.text-zinc-200{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity, 1))}.text-zinc-300{--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}.text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.text-zinc-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.text-zinc-600{--tw-text-opacity: 1;color:rgb(82 82 91 / var(--tw-text-opacity, 1))}.text-zinc-700{--tw-text-opacity: 1;color:rgb(63 63 70 / var(--tw-text-opacity, 1))}.text-zinc-800{--tw-text-opacity: 1;color:rgb(39 39 42 / var(--tw-text-opacity, 1))}.text-zinc-900{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.decoration-solid{text-decoration-style:solid}.decoration-double{text-decoration-style:double}.decoration-dotted{text-decoration-style:dotted}.decoration-dashed{text-decoration-style:dashed}.decoration-wavy{text-decoration-style:wavy}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.placeholder-opacity-50::-moz-placeholder{--tw-placeholder-opacity: .5}.placeholder-opacity-50::placeholder{--tw-placeholder-opacity: .5}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-5{opacity:.05}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.opacity-95{opacity:.95}.mix-blend-normal{mix-blend-mode:normal}.mix-blend-multiply{mix-blend-mode:multiply}.mix-blend-screen{mix-blend-mode:screen}.mix-blend-overlay{mix-blend-mode:overlay}.mix-blend-darken{mix-blend-mode:darken}.mix-blend-lighten{mix-blend-mode:lighten}.mix-blend-color-dodge{mix-blend-mode:color-dodge}.mix-blend-color-burn{mix-blend-mode:color-burn}.mix-blend-hard-light{mix-blend-mode:hard-light}.mix-blend-soft-light{mix-blend-mode:soft-light}.mix-blend-difference{mix-blend-mode:difference}.mix-blend-exclusion{mix-blend-mode:exclusion}.mix-blend-hue{mix-blend-mode:hue}.mix-blend-saturation{mix-blend-mode:saturation}.mix-blend-color{mix-blend-mode:color}.mix-blend-luminosity{mix-blend-mode:luminosity}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -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)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -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)}.shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-0{outline-width:0px}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.outline-4{outline-width:4px}.outline-8{outline-width:8px}.outline-offset-8{outline-offset:8px}.outline-yellow-400{outline-color:#facc15}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-white\\/5{--tw-ring-color: rgb(255 255 255 / .05)}.ring-opacity-5{--tw-ring-opacity: .05}.ring-offset-0{--tw-ring-offset-width: 0px}.ring-offset-1{--tw-ring-offset-width: 1px}.ring-offset-2{--tw-ring-offset-width: 2px}.ring-offset-4{--tw-ring-offset-width: 4px}.ring-offset-8{--tw-ring-offset-width: 8px}.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)}.blur-2xl{--tw-blur: blur(40px);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)}.blur-3xl{--tw-blur: blur(64px);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)}.blur-lg{--tw-blur: blur(16px);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)}.blur-md{--tw-blur: blur(12px);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)}.blur-sm{--tw-blur: blur(4px);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)}.blur-xl{--tw-blur: blur(24px);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)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));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)}.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)}.filter-none{filter:none}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-2xl{--tw-backdrop-blur: blur(40px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-3xl{--tw-backdrop-blur: blur(64px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\!\\[clip\\:rect\\(0\\,0\\,0\\,0\\)\\]{clip:rect(0,0,0,0)!important}.ql-toolbar.ql-snow{border-top-right-radius:10px;border-top-left-radius:10px}.ql-editor{min-height:200px}.table-enter-active,.table-leave-active{transition:opacity .3s ease}.table-enter-from,.table-leave-to{opacity:0}.tags-enter-from{opacity:.6;transform:translate(10px)}.tags-enter-active{transition:all .2s ease}.tags-leave-to{opacity:.1;transform:translate(5px)}.tags-leave-active{transition:all .1s ease;position:absolute}.tags-move{transition:all .1s ease}*{scrollbar-width:thin;scrollbar-color:black transparent}*::-webkit-scrollbar-track{background:transparent;border-radius:25px}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-thumb{background-color:#000;border-radius:25px;border:none}.scrollable{overflow-x:auto;overflow-y:auto}.tailwind-pagination-package{box-shadow:none!important;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px 0px;justify-content:center}.tailwind-pagination-package>:first-child,.tailwind-pagination-package>:last-child{border-radius:100%}.smooth-transition{transition:opacity .3s ease-in-out}p{font-size:1rem;line-height:1.5rem;font-weight:400}@media (min-width: 1024px){p{font-size:1rem;line-height:1.5rem}}a{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}h2{margin-top:1rem;margin-bottom:.75rem;font-size:1.875rem;line-height:2.25rem;font-weight:500}h3{margin-top:1rem;margin-bottom:.75rem;font-size:1.5rem;line-height:2rem;font-weight:500}#pagebuilder a{pointer-events:none}#page-builder-editor .tiptap{background:#fff;min-height:25rem}#pagebuilder #youtube-video:before{content:"Select Video Element";font-family:Jost;background:#16a34a!important;color:#fff;text-decoration:none;margin-right:8px;vertical-align:middle;min-height:3rem;padding:.75rem;white-space:nowrap;word-break:keep-all;font-weight:500;display:inline-flex;gap:.25rem;align-items:center;justify-content:center;border-radius:9999px;border:1px solid transparent;margin-bottom:20px;font-size:.8rem!important}@media (min-width: 640px){#pagebuilder #youtube-video:before{font-size:.9rem!important;width:auto}}#pagebuilder #youtube-video:hover:before{text-decoration:none;cursor:pointer}#page-builder-editor a,#pagebuilder a{text-decoration:underline}#page-builder-editor #linktree p,#pagebuilder #linktree p{width:100%}#page-builder-editor #linktree a,#pagebuilder #linktree a{display:block;padding:1rem .5rem;text-decoration:none;font-weight:500;color:inherit!important;width:100%;cursor:pointer}#page-builder-editor strong,#pagebuilder strong{font-weight:500}#page-builder-editor ol,#pagebuilder ol,#page-builder-editor ul,#pagebuilder ul{list-style:disc!important;padding:1rem 0rem}#page-builder-editor li,#pagebuilder li{line-height:2.2rem;margin-left:1.5em}:root{--dp-border-radius: 40px;--dp-cell-border-radius: 4px;--dp-common-transition: all .1s ease-in}.dp__action_row{display:flex!important;align-items:center!important;justify-content:center;margin:0 0 10px}.dp__today{background:transparent!important;border:2px solid #ff5252!important;color:#ff5252!important;border-radius:100%!important}.dp__active_date{background:#ff5252!important;border:#ff5252!important;color:#fff!important;border-radius:100%!important}.dp__date_hover:hover{background:#f1f1f1!important;border:#f1f1f1!important;color:#000!important;border-radius:100%!important}.dp__action_button{background:#ff5252!important;border:#000!important;color:#fff!important;border-radius:8px!important;padding:1rem!important;font-weight:500}.dp__overlay_cell_active{background:#ff5252!important;border:#000!important;color:#fff!important}@media (min-width: 640px){.sm\\:prose-sm{font-size:.875rem;line-height:1.7142857}.sm\\:prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.sm\\:prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.sm\\:prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.sm\\:prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.sm\\:prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.sm\\:prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.sm\\:prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.sm\\:prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.sm\\:prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.sm\\:prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.sm\\:prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.sm\\:prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.sm\\:prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.sm\\:prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.sm\\:prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(.sm\\:prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.sm\\:prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.sm\\:prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.sm\\:prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.sm\\:prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.sm\\:prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.sm\\:prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.sm\\:prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.sm\\:prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.sm\\:prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.sm\\:prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.sm\\:prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.sm\\:prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.sm\\:prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.sm\\:prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.sm\\:prose-sm :where(.sm\\:prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.sm\\:prose-sm :where(.sm\\:prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}}@media (min-width: 1024px){.lg\\:prose-sm{font-size:.875rem;line-height:1.7142857}.lg\\:prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.lg\\:prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.lg\\:prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.lg\\:prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.lg\\:prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.lg\\:prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.lg\\:prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.lg\\:prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.lg\\:prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.lg\\:prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.lg\\:prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.lg\\:prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.lg\\:prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.lg\\:prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(.lg\\:prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.lg\\:prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.lg\\:prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.lg\\:prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.lg\\:prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.lg\\:prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.lg\\:prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.lg\\:prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.lg\\:prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\\:prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\\:prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.lg\\:prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\\:prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.lg\\:prose-sm :where(.lg\\:prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\\:prose-sm :where(.lg\\:prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.lg\\:myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.lg\\:myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -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)}@media (min-width: 640px){.lg\\:myPrimaryTag{width:auto}}}.placeholder\\:text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.hover\\:border-myPrimaryLinkColor:hover{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.hover\\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryErrorColor:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryLightGrayColor:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-myPrimaryLinkColor:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.hover\\:bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.hover\\:bg-opacity-10:hover{--tw-bg-opacity: .1}.hover\\:fill-white:hover{fill:#fff}.hover\\:text-myPrimaryDarkGrayColor:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-green-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.focus\\:ring-myPrimaryErrorColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1))}.focus\\:ring-myPrimaryLinkColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.focus\\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color: #f0fdf4}.focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-myPrimaryLinkColor:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1))}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group:hover .group-hover\\:translate-y-0{--tw-translate-y: 0px;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))}.group:hover .group-hover\\:opacity-100{opacity:1}.aria-checked\\:bg-blue-500[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\\:bg-blue-100[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}@media (prefers-reduced-motion: reduce){@keyframes spin{to{transform:rotate(360deg)}}.motion-reduce\\:animate-\\[spin_1\\.5s_linear_infinite\\]{animation:spin 1.5s linear infinite}}@media (min-width: 640px){.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-0\\.5{height:.125rem}.sm\\:h-1{height:.25rem}.sm\\:h-1\\.5{height:.375rem}.sm\\:h-1\\/2{height:50%}.sm\\:h-1\\/3{height:33.333333%}.sm\\:h-1\\/4{height:25%}.sm\\:h-1\\/5{height:20%}.sm\\:h-1\\/6{height:16.666667%}.sm\\:h-10{height:2.5rem}.sm\\:h-11{height:2.75rem}.sm\\:h-12{height:3rem}.sm\\:h-14{height:3.5rem}.sm\\:h-16{height:4rem}.sm\\:h-2{height:.5rem}.sm\\:h-2\\.5{height:.625rem}.sm\\:h-2\\/3{height:66.666667%}.sm\\:h-2\\/4{height:50%}.sm\\:h-2\\/5{height:40%}.sm\\:h-2\\/6{height:33.333333%}.sm\\:h-20{height:5rem}.sm\\:h-24{height:6rem}.sm\\:h-28{height:7rem}.sm\\:h-3{height:.75rem}.sm\\:h-3\\.5{height:.875rem}.sm\\:h-3\\/4{height:75%}.sm\\:h-3\\/5{height:60%}.sm\\:h-3\\/6{height:50%}.sm\\:h-32{height:8rem}.sm\\:h-36{height:9rem}.sm\\:h-4{height:1rem}.sm\\:h-4\\/5{height:80%}.sm\\:h-4\\/6{height:66.666667%}.sm\\:h-40{height:10rem}.sm\\:h-44{height:11rem}.sm\\:h-48{height:12rem}.sm\\:h-5{height:1.25rem}.sm\\:h-5\\/6{height:83.333333%}.sm\\:h-52{height:13rem}.sm\\:h-56{height:14rem}.sm\\:h-6{height:1.5rem}.sm\\:h-60{height:15rem}.sm\\:h-64{height:16rem}.sm\\:h-7{height:1.75rem}.sm\\:h-72{height:18rem}.sm\\:h-8{height:2rem}.sm\\:h-80{height:20rem}.sm\\:h-9{height:2.25rem}.sm\\:h-96{height:24rem}.sm\\:h-auto{height:auto}.sm\\:h-fit{height:-moz-fit-content;height:fit-content}.sm\\:h-full{height:100%}.sm\\:h-max{height:-moz-max-content;height:max-content}.sm\\:h-min{height:-moz-min-content;height:min-content}.sm\\:h-screen{height:100vh}.sm\\:w-0\\.5{width:.125rem}.sm\\:w-1{width:.25rem}.sm\\:w-1\\.5{width:.375rem}.sm\\:w-1\\/2{width:50%}.sm\\:w-1\\/3{width:33.333333%}.sm\\:w-1\\/4{width:25%}.sm\\:w-1\\/5{width:20%}.sm\\:w-1\\/6{width:16.666667%}.sm\\:w-10{width:2.5rem}.sm\\:w-11{width:2.75rem}.sm\\:w-12{width:3rem}.sm\\:w-14{width:3.5rem}.sm\\:w-16{width:4rem}.sm\\:w-2{width:.5rem}.sm\\:w-2\\.5{width:.625rem}.sm\\:w-2\\/3{width:66.666667%}.sm\\:w-2\\/4{width:50%}.sm\\:w-2\\/5{width:40%}.sm\\:w-2\\/6{width:33.333333%}.sm\\:w-20{width:5rem}.sm\\:w-24{width:6rem}.sm\\:w-28{width:7rem}.sm\\:w-3{width:.75rem}.sm\\:w-3\\.5{width:.875rem}.sm\\:w-3\\/4{width:75%}.sm\\:w-3\\/5{width:60%}.sm\\:w-3\\/6{width:50%}.sm\\:w-32{width:8rem}.sm\\:w-36{width:9rem}.sm\\:w-4{width:1rem}.sm\\:w-4\\/5{width:80%}.sm\\:w-4\\/6{width:66.666667%}.sm\\:w-40{width:10rem}.sm\\:w-44{width:11rem}.sm\\:w-48{width:12rem}.sm\\:w-5{width:1.25rem}.sm\\:w-5\\/6{width:83.333333%}.sm\\:w-52{width:13rem}.sm\\:w-56{width:14rem}.sm\\:w-6{width:1.5rem}.sm\\:w-60{width:15rem}.sm\\:w-64{width:16rem}.sm\\:w-7{width:1.75rem}.sm\\:w-72{width:18rem}.sm\\:w-8{width:2rem}.sm\\:w-80{width:20rem}.sm\\:w-9{width:2.25rem}.sm\\:w-96{width:24rem}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-moz-fit-content;width:fit-content}.sm\\:w-full{width:100%}.sm\\:w-max{width:-moz-max-content;width:max-content}.sm\\:w-min{width:-moz-min-content;width:min-content}.sm\\:w-screen{width:100vw}.sm\\:max-w-none{max-width:none}.sm\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.sm\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.sm\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.sm\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.sm\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.sm\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.sm\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.sm\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.sm\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.sm\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.sm\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.sm\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.sm\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.sm\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.sm\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.sm\\:flex-row{flex-direction:row}.sm\\:items-end{align-items:flex-end}.sm\\:justify-end{justify-content:flex-end}.sm\\:align-middle{vertical-align:middle}.sm\\:text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\\:text-5xl{font-size:3rem;line-height:1}.sm\\:text-6xl{font-size:3.75rem;line-height:1}.sm\\:text-7xl{font-size:4.5rem;line-height:1}.sm\\:text-8xl{font-size:6rem;line-height:1}.sm\\:text-9xl{font-size:8rem;line-height:1}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:text-xl{font-size:1.25rem;line-height:1.75rem}.sm\\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\\:flex{display:flex}.md\\:grid{display:grid}.md\\:h-0\\.5{height:.125rem}.md\\:h-1{height:.25rem}.md\\:h-1\\.5{height:.375rem}.md\\:h-1\\/2{height:50%}.md\\:h-1\\/3{height:33.333333%}.md\\:h-1\\/4{height:25%}.md\\:h-1\\/5{height:20%}.md\\:h-1\\/6{height:16.666667%}.md\\:h-10{height:2.5rem}.md\\:h-11{height:2.75rem}.md\\:h-12{height:3rem}.md\\:h-14{height:3.5rem}.md\\:h-16{height:4rem}.md\\:h-2{height:.5rem}.md\\:h-2\\.5{height:.625rem}.md\\:h-2\\/3{height:66.666667%}.md\\:h-2\\/4{height:50%}.md\\:h-2\\/5{height:40%}.md\\:h-2\\/6{height:33.333333%}.md\\:h-20{height:5rem}.md\\:h-24{height:6rem}.md\\:h-28{height:7rem}.md\\:h-3{height:.75rem}.md\\:h-3\\.5{height:.875rem}.md\\:h-3\\/4{height:75%}.md\\:h-3\\/5{height:60%}.md\\:h-3\\/6{height:50%}.md\\:h-32{height:8rem}.md\\:h-36{height:9rem}.md\\:h-4{height:1rem}.md\\:h-4\\/5{height:80%}.md\\:h-4\\/6{height:66.666667%}.md\\:h-40{height:10rem}.md\\:h-44{height:11rem}.md\\:h-48{height:12rem}.md\\:h-5{height:1.25rem}.md\\:h-5\\/6{height:83.333333%}.md\\:h-52{height:13rem}.md\\:h-56{height:14rem}.md\\:h-6{height:1.5rem}.md\\:h-60{height:15rem}.md\\:h-64{height:16rem}.md\\:h-7{height:1.75rem}.md\\:h-72{height:18rem}.md\\:h-8{height:2rem}.md\\:h-80{height:20rem}.md\\:h-9{height:2.25rem}.md\\:h-96{height:24rem}.md\\:h-auto{height:auto}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:h-full{height:100%}.md\\:h-max{height:-moz-max-content;height:max-content}.md\\:h-min{height:-moz-min-content;height:min-content}.md\\:h-screen{height:100vh}.md\\:max-h-\\[20rem\\]{max-height:20rem}.md\\:min-h-\\[20rem\\]{min-height:20rem}.md\\:w-0\\.5{width:.125rem}.md\\:w-1{width:.25rem}.md\\:w-1\\.5{width:.375rem}.md\\:w-1\\/2{width:50%}.md\\:w-1\\/3{width:33.333333%}.md\\:w-1\\/4{width:25%}.md\\:w-1\\/5{width:20%}.md\\:w-1\\/6{width:16.666667%}.md\\:w-10{width:2.5rem}.md\\:w-11{width:2.75rem}.md\\:w-12{width:3rem}.md\\:w-14{width:3.5rem}.md\\:w-16{width:4rem}.md\\:w-2{width:.5rem}.md\\:w-2\\.5{width:.625rem}.md\\:w-2\\/3{width:66.666667%}.md\\:w-2\\/4{width:50%}.md\\:w-2\\/5{width:40%}.md\\:w-2\\/6{width:33.333333%}.md\\:w-20{width:5rem}.md\\:w-24{width:6rem}.md\\:w-28{width:7rem}.md\\:w-3{width:.75rem}.md\\:w-3\\.5{width:.875rem}.md\\:w-3\\/4{width:75%}.md\\:w-3\\/5{width:60%}.md\\:w-3\\/6{width:50%}.md\\:w-32{width:8rem}.md\\:w-36{width:9rem}.md\\:w-4{width:1rem}.md\\:w-4\\/5{width:80%}.md\\:w-4\\/6{width:66.666667%}.md\\:w-40{width:10rem}.md\\:w-44{width:11rem}.md\\:w-48{width:12rem}.md\\:w-5{width:1.25rem}.md\\:w-5\\/6{width:83.333333%}.md\\:w-52{width:13rem}.md\\:w-56{width:14rem}.md\\:w-6{width:1.5rem}.md\\:w-60{width:15rem}.md\\:w-64{width:16rem}.md\\:w-7{width:1.75rem}.md\\:w-72{width:18rem}.md\\:w-8{width:2rem}.md\\:w-80{width:20rem}.md\\:w-9{width:2.25rem}.md\\:w-96{width:24rem}.md\\:w-auto{width:auto}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:w-full{width:100%}.md\\:w-max{width:-moz-max-content;width:max-content}.md\\:w-min{width:-moz-min-content;width:min-content}.md\\:w-screen{width:100vw}.md\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.md\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.md\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.md\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.md\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.md\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.md\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.md\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.md\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.md\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.md\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.md\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.md\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.md\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.md\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.md\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.md\\:rounded-lg{border-radius:.5rem}.md\\:px-3{padding-left:.75rem;padding-right:.75rem}.md\\:pb-12{padding-bottom:3rem}.md\\:pb-2{padding-bottom:.5rem}.md\\:pt-12{padding-top:3rem}.md\\:pt-2{padding-top:.5rem}.md\\:text-2xl{font-size:1.5rem;line-height:2rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.md\\:text-5xl{font-size:3rem;line-height:1}.md\\:text-6xl{font-size:3.75rem;line-height:1}.md\\:text-7xl{font-size:4.5rem;line-height:1}.md\\:text-8xl{font-size:6rem;line-height:1}.md\\:text-9xl{font-size:8rem;line-height:1}.md\\:text-base{font-size:1rem;line-height:1.5rem}.md\\:text-lg{font-size:1.125rem;line-height:1.75rem}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}.md\\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\\:text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\\:mr-10{margin-right:2.5rem}.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:grid{display:grid}.lg\\:h-0\\.5{height:.125rem}.lg\\:h-1{height:.25rem}.lg\\:h-1\\.5{height:.375rem}.lg\\:h-1\\/2{height:50%}.lg\\:h-1\\/3{height:33.333333%}.lg\\:h-1\\/4{height:25%}.lg\\:h-1\\/5{height:20%}.lg\\:h-1\\/6{height:16.666667%}.lg\\:h-10{height:2.5rem}.lg\\:h-11{height:2.75rem}.lg\\:h-12{height:3rem}.lg\\:h-14{height:3.5rem}.lg\\:h-16{height:4rem}.lg\\:h-2{height:.5rem}.lg\\:h-2\\.5{height:.625rem}.lg\\:h-2\\/3{height:66.666667%}.lg\\:h-2\\/4{height:50%}.lg\\:h-2\\/5{height:40%}.lg\\:h-2\\/6{height:33.333333%}.lg\\:h-20{height:5rem}.lg\\:h-24{height:6rem}.lg\\:h-28{height:7rem}.lg\\:h-3{height:.75rem}.lg\\:h-3\\.5{height:.875rem}.lg\\:h-3\\/4{height:75%}.lg\\:h-3\\/5{height:60%}.lg\\:h-3\\/6{height:50%}.lg\\:h-32{height:8rem}.lg\\:h-36{height:9rem}.lg\\:h-4{height:1rem}.lg\\:h-4\\/5{height:80%}.lg\\:h-4\\/6{height:66.666667%}.lg\\:h-40{height:10rem}.lg\\:h-44{height:11rem}.lg\\:h-48{height:12rem}.lg\\:h-5{height:1.25rem}.lg\\:h-5\\/6{height:83.333333%}.lg\\:h-52{height:13rem}.lg\\:h-56{height:14rem}.lg\\:h-6{height:1.5rem}.lg\\:h-60{height:15rem}.lg\\:h-64{height:16rem}.lg\\:h-7{height:1.75rem}.lg\\:h-72{height:18rem}.lg\\:h-8{height:2rem}.lg\\:h-80{height:20rem}.lg\\:h-9{height:2.25rem}.lg\\:h-96{height:24rem}.lg\\:h-\\[10vh\\]{height:10vh}.lg\\:h-auto{height:auto}.lg\\:h-fit{height:-moz-fit-content;height:fit-content}.lg\\:h-full{height:100%}.lg\\:h-max{height:-moz-max-content;height:max-content}.lg\\:h-min{height:-moz-min-content;height:min-content}.lg\\:h-screen{height:100vh}.lg\\:max-h-\\[30rem\\]{max-height:30rem}.lg\\:min-h-\\[20rem\\]{min-height:20rem}.lg\\:w-0\\.5{width:.125rem}.lg\\:w-1{width:.25rem}.lg\\:w-1\\.5{width:.375rem}.lg\\:w-1\\/2{width:50%}.lg\\:w-1\\/3{width:33.333333%}.lg\\:w-1\\/4{width:25%}.lg\\:w-1\\/5{width:20%}.lg\\:w-1\\/6{width:16.666667%}.lg\\:w-10{width:2.5rem}.lg\\:w-11{width:2.75rem}.lg\\:w-12{width:3rem}.lg\\:w-14{width:3.5rem}.lg\\:w-16{width:4rem}.lg\\:w-2{width:.5rem}.lg\\:w-2\\.5{width:.625rem}.lg\\:w-2\\/3{width:66.666667%}.lg\\:w-2\\/4{width:50%}.lg\\:w-2\\/5{width:40%}.lg\\:w-2\\/6{width:33.333333%}.lg\\:w-20{width:5rem}.lg\\:w-24{width:6rem}.lg\\:w-28{width:7rem}.lg\\:w-3{width:.75rem}.lg\\:w-3\\.5{width:.875rem}.lg\\:w-3\\/4{width:75%}.lg\\:w-3\\/5{width:60%}.lg\\:w-3\\/6{width:50%}.lg\\:w-32{width:8rem}.lg\\:w-36{width:9rem}.lg\\:w-4{width:1rem}.lg\\:w-4\\/5{width:80%}.lg\\:w-4\\/6{width:66.666667%}.lg\\:w-40{width:10rem}.lg\\:w-44{width:11rem}.lg\\:w-48{width:12rem}.lg\\:w-5{width:1.25rem}.lg\\:w-5\\/6{width:83.333333%}.lg\\:w-52{width:13rem}.lg\\:w-56{width:14rem}.lg\\:w-6{width:1.5rem}.lg\\:w-60{width:15rem}.lg\\:w-64{width:16rem}.lg\\:w-7{width:1.75rem}.lg\\:w-72{width:18rem}.lg\\:w-8{width:2rem}.lg\\:w-80{width:20rem}.lg\\:w-9{width:2.25rem}.lg\\:w-96{width:24rem}.lg\\:w-auto{width:auto}.lg\\:w-fit{width:-moz-fit-content;width:fit-content}.lg\\:w-full{width:100%}.lg\\:w-max{width:-moz-max-content;width:max-content}.lg\\:w-min{width:-moz-min-content;width:min-content}.lg\\:w-screen{width:100vw}.lg\\:max-w-2xl{max-width:42rem}.lg\\:max-w-3xl{max-width:48rem}.lg\\:max-w-4xl{max-width:56rem}.lg\\:max-w-5xl{max-width:64rem}.lg\\:max-w-6xl{max-width:72rem}.lg\\:max-w-7xl{max-width:80rem}.lg\\:max-w-full{max-width:100%}.lg\\:max-w-lg{max-width:32rem}.lg\\:max-w-md{max-width:28rem}.lg\\:max-w-sm{max-width:24rem}.lg\\:max-w-xl{max-width:36rem}.lg\\:auto-cols-\\[minmax\\(100px\\,_4fr\\)\\]{grid-auto-columns:minmax(100px,4fr)}.lg\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.lg\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.lg\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.lg\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.lg\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.lg\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.lg\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.lg\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.lg\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.lg\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.lg\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.lg\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.lg\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.lg\\:justify-center{justify-content:center}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.lg\\:border{border-width:1px}.lg\\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.lg\\:px-12{padding-left:3rem;padding-right:3rem}.lg\\:px-4{padding-left:1rem;padding-right:1rem}.lg\\:py-10{padding-top:2.5rem;padding-bottom:2.5rem}.lg\\:pt-2{padding-top:.5rem}.lg\\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\\:text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\\:text-5xl{font-size:3rem;line-height:1}.lg\\:text-6xl{font-size:3.75rem;line-height:1}.lg\\:text-7xl{font-size:4.5rem;line-height:1}.lg\\:text-8xl{font-size:6rem;line-height:1}.lg\\:text-9xl{font-size:8rem;line-height:1}.lg\\:text-base{font-size:1rem;line-height:1.5rem}.lg\\:text-lg{font-size:1.125rem;line-height:1.75rem}.lg\\:text-sm{font-size:.875rem;line-height:1.25rem}.lg\\:text-xl{font-size:1.25rem;line-height:1.75rem}.lg\\:text-xs{font-size:.75rem;line-height:1rem}.lg\\:shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1280px){.xl\\:flex{display:flex}.xl\\:grid{display:grid}.xl\\:h-0\\.5{height:.125rem}.xl\\:h-1{height:.25rem}.xl\\:h-1\\.5{height:.375rem}.xl\\:h-1\\/2{height:50%}.xl\\:h-1\\/3{height:33.333333%}.xl\\:h-1\\/4{height:25%}.xl\\:h-1\\/5{height:20%}.xl\\:h-1\\/6{height:16.666667%}.xl\\:h-10{height:2.5rem}.xl\\:h-11{height:2.75rem}.xl\\:h-12{height:3rem}.xl\\:h-14{height:3.5rem}.xl\\:h-16{height:4rem}.xl\\:h-2{height:.5rem}.xl\\:h-2\\.5{height:.625rem}.xl\\:h-2\\/3{height:66.666667%}.xl\\:h-2\\/4{height:50%}.xl\\:h-2\\/5{height:40%}.xl\\:h-2\\/6{height:33.333333%}.xl\\:h-20{height:5rem}.xl\\:h-24{height:6rem}.xl\\:h-28{height:7rem}.xl\\:h-3{height:.75rem}.xl\\:h-3\\.5{height:.875rem}.xl\\:h-3\\/4{height:75%}.xl\\:h-3\\/5{height:60%}.xl\\:h-3\\/6{height:50%}.xl\\:h-32{height:8rem}.xl\\:h-36{height:9rem}.xl\\:h-4{height:1rem}.xl\\:h-4\\/5{height:80%}.xl\\:h-4\\/6{height:66.666667%}.xl\\:h-40{height:10rem}.xl\\:h-44{height:11rem}.xl\\:h-48{height:12rem}.xl\\:h-5{height:1.25rem}.xl\\:h-5\\/6{height:83.333333%}.xl\\:h-52{height:13rem}.xl\\:h-56{height:14rem}.xl\\:h-6{height:1.5rem}.xl\\:h-60{height:15rem}.xl\\:h-64{height:16rem}.xl\\:h-7{height:1.75rem}.xl\\:h-72{height:18rem}.xl\\:h-8{height:2rem}.xl\\:h-80{height:20rem}.xl\\:h-9{height:2.25rem}.xl\\:h-96{height:24rem}.xl\\:h-auto{height:auto}.xl\\:h-fit{height:-moz-fit-content;height:fit-content}.xl\\:h-full{height:100%}.xl\\:h-max{height:-moz-max-content;height:max-content}.xl\\:h-min{height:-moz-min-content;height:min-content}.xl\\:h-screen{height:100vh}.xl\\:w-0\\.5{width:.125rem}.xl\\:w-1{width:.25rem}.xl\\:w-1\\.5{width:.375rem}.xl\\:w-1\\/2{width:50%}.xl\\:w-1\\/3{width:33.333333%}.xl\\:w-1\\/4{width:25%}.xl\\:w-1\\/5{width:20%}.xl\\:w-1\\/6{width:16.666667%}.xl\\:w-10{width:2.5rem}.xl\\:w-11{width:2.75rem}.xl\\:w-12{width:3rem}.xl\\:w-14{width:3.5rem}.xl\\:w-16{width:4rem}.xl\\:w-2{width:.5rem}.xl\\:w-2\\.5{width:.625rem}.xl\\:w-2\\/3{width:66.666667%}.xl\\:w-2\\/4{width:50%}.xl\\:w-2\\/5{width:40%}.xl\\:w-2\\/6{width:33.333333%}.xl\\:w-20{width:5rem}.xl\\:w-24{width:6rem}.xl\\:w-28{width:7rem}.xl\\:w-3{width:.75rem}.xl\\:w-3\\.5{width:.875rem}.xl\\:w-3\\/4{width:75%}.xl\\:w-3\\/5{width:60%}.xl\\:w-3\\/6{width:50%}.xl\\:w-32{width:8rem}.xl\\:w-36{width:9rem}.xl\\:w-4{width:1rem}.xl\\:w-4\\/5{width:80%}.xl\\:w-4\\/6{width:66.666667%}.xl\\:w-40{width:10rem}.xl\\:w-44{width:11rem}.xl\\:w-48{width:12rem}.xl\\:w-5{width:1.25rem}.xl\\:w-5\\/6{width:83.333333%}.xl\\:w-52{width:13rem}.xl\\:w-56{width:14rem}.xl\\:w-6{width:1.5rem}.xl\\:w-60{width:15rem}.xl\\:w-64{width:16rem}.xl\\:w-7{width:1.75rem}.xl\\:w-72{width:18rem}.xl\\:w-8{width:2rem}.xl\\:w-80{width:20rem}.xl\\:w-9{width:2.25rem}.xl\\:w-96{width:24rem}.xl\\:w-auto{width:auto}.xl\\:w-fit{width:-moz-fit-content;width:fit-content}.xl\\:w-full{width:100%}.xl\\:w-max{width:-moz-max-content;width:max-content}.xl\\:w-min{width:-moz-min-content;width:min-content}.xl\\:w-screen{width:100vw}.xl\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.xl\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.xl\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.xl\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.xl\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.xl\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.xl\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.xl\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.xl\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.xl\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.xl\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.xl\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.xl\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.xl\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:flex{display:flex}.\\32xl\\:grid{display:grid}.\\32xl\\:h-0\\.5{height:.125rem}.\\32xl\\:h-1{height:.25rem}.\\32xl\\:h-1\\.5{height:.375rem}.\\32xl\\:h-1\\/2{height:50%}.\\32xl\\:h-1\\/3{height:33.333333%}.\\32xl\\:h-1\\/4{height:25%}.\\32xl\\:h-1\\/5{height:20%}.\\32xl\\:h-1\\/6{height:16.666667%}.\\32xl\\:h-10{height:2.5rem}.\\32xl\\:h-11{height:2.75rem}.\\32xl\\:h-12{height:3rem}.\\32xl\\:h-14{height:3.5rem}.\\32xl\\:h-16{height:4rem}.\\32xl\\:h-2{height:.5rem}.\\32xl\\:h-2\\.5{height:.625rem}.\\32xl\\:h-2\\/3{height:66.666667%}.\\32xl\\:h-2\\/4{height:50%}.\\32xl\\:h-2\\/5{height:40%}.\\32xl\\:h-2\\/6{height:33.333333%}.\\32xl\\:h-20{height:5rem}.\\32xl\\:h-24{height:6rem}.\\32xl\\:h-28{height:7rem}.\\32xl\\:h-3{height:.75rem}.\\32xl\\:h-3\\.5{height:.875rem}.\\32xl\\:h-3\\/4{height:75%}.\\32xl\\:h-3\\/5{height:60%}.\\32xl\\:h-3\\/6{height:50%}.\\32xl\\:h-32{height:8rem}.\\32xl\\:h-36{height:9rem}.\\32xl\\:h-4{height:1rem}.\\32xl\\:h-4\\/5{height:80%}.\\32xl\\:h-4\\/6{height:66.666667%}.\\32xl\\:h-40{height:10rem}.\\32xl\\:h-44{height:11rem}.\\32xl\\:h-48{height:12rem}.\\32xl\\:h-5{height:1.25rem}.\\32xl\\:h-5\\/6{height:83.333333%}.\\32xl\\:h-52{height:13rem}.\\32xl\\:h-56{height:14rem}.\\32xl\\:h-6{height:1.5rem}.\\32xl\\:h-60{height:15rem}.\\32xl\\:h-64{height:16rem}.\\32xl\\:h-7{height:1.75rem}.\\32xl\\:h-72{height:18rem}.\\32xl\\:h-8{height:2rem}.\\32xl\\:h-80{height:20rem}.\\32xl\\:h-9{height:2.25rem}.\\32xl\\:h-96{height:24rem}.\\32xl\\:h-auto{height:auto}.\\32xl\\:h-fit{height:-moz-fit-content;height:fit-content}.\\32xl\\:h-full{height:100%}.\\32xl\\:h-max{height:-moz-max-content;height:max-content}.\\32xl\\:h-min{height:-moz-min-content;height:min-content}.\\32xl\\:h-screen{height:100vh}.\\32xl\\:w-0\\.5{width:.125rem}.\\32xl\\:w-1{width:.25rem}.\\32xl\\:w-1\\.5{width:.375rem}.\\32xl\\:w-1\\/2{width:50%}.\\32xl\\:w-1\\/3{width:33.333333%}.\\32xl\\:w-1\\/4{width:25%}.\\32xl\\:w-1\\/5{width:20%}.\\32xl\\:w-1\\/6{width:16.666667%}.\\32xl\\:w-10{width:2.5rem}.\\32xl\\:w-11{width:2.75rem}.\\32xl\\:w-12{width:3rem}.\\32xl\\:w-14{width:3.5rem}.\\32xl\\:w-16{width:4rem}.\\32xl\\:w-2{width:.5rem}.\\32xl\\:w-2\\.5{width:.625rem}.\\32xl\\:w-2\\/3{width:66.666667%}.\\32xl\\:w-2\\/4{width:50%}.\\32xl\\:w-2\\/5{width:40%}.\\32xl\\:w-2\\/6{width:33.333333%}.\\32xl\\:w-20{width:5rem}.\\32xl\\:w-24{width:6rem}.\\32xl\\:w-28{width:7rem}.\\32xl\\:w-3{width:.75rem}.\\32xl\\:w-3\\.5{width:.875rem}.\\32xl\\:w-3\\/4{width:75%}.\\32xl\\:w-3\\/5{width:60%}.\\32xl\\:w-3\\/6{width:50%}.\\32xl\\:w-32{width:8rem}.\\32xl\\:w-36{width:9rem}.\\32xl\\:w-4{width:1rem}.\\32xl\\:w-4\\/5{width:80%}.\\32xl\\:w-4\\/6{width:66.666667%}.\\32xl\\:w-40{width:10rem}.\\32xl\\:w-44{width:11rem}.\\32xl\\:w-48{width:12rem}.\\32xl\\:w-5{width:1.25rem}.\\32xl\\:w-5\\/6{width:83.333333%}.\\32xl\\:w-52{width:13rem}.\\32xl\\:w-56{width:14rem}.\\32xl\\:w-6{width:1.5rem}.\\32xl\\:w-60{width:15rem}.\\32xl\\:w-64{width:16rem}.\\32xl\\:w-7{width:1.75rem}.\\32xl\\:w-72{width:18rem}.\\32xl\\:w-8{width:2rem}.\\32xl\\:w-80{width:20rem}.\\32xl\\:w-9{width:2.25rem}.\\32xl\\:w-96{width:24rem}.\\32xl\\:w-auto{width:auto}.\\32xl\\:w-fit{width:-moz-fit-content;width:fit-content}.\\32xl\\:w-full{width:100%}.\\32xl\\:w-max{width:-moz-max-content;width:max-content}.\\32xl\\:w-min{width:-moz-min-content;width:min-content}.\\32xl\\:w-screen{width:100vw}.\\32xl\\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.\\32xl\\:grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\\32xl\\:grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.\\32xl\\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\\32xl\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\32xl\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\32xl\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\\32xl\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\\32xl\\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\\32xl\\:grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.\\32xl\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.\\32xl\\:grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.\\32xl\\:grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.\\32xl\\:grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.\\32xl\\:grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.\\32xl\\:grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.\\32xl\\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.\\32xl\\:grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.\\32xl\\:grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.\\32xl\\:grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.\\32xl\\:grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.\\32xl\\:grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.\\32xl\\:grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.\\32xl\\:grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}}@media (prefers-color-scheme: dark){.dark\\:text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}}`,Ek=function(r){return`<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${kk}</style></head><body>${r}</body></html>`},Sk={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},Ck={class:"flex gap-4 flex-col divide-y divide-gray-300"},Nk={class:"mb-4 pb-8 border-b border-myPrimbryLightGrayColor"},Bk={class:"px-2"},Mk={class:"mt-8"},Tk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Ok={class:"overflow-x-auto"},Vk={class:"min-w-full"},Pk={class:"bg-white divide-y divide-gray-200"},Ak={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Dk={class:"min-w-[30rem] w-max"},Ik={class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800"},Lk={key:0,class:"mt-4"},Rk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},zk={class:"overflow-x-auto"},_k={class:"min-w-full"},Fk={class:"bg-white divide-y divide-gray-200"},jk={key:0},Hk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Wk={class:"min-w-[30rem] w-max"},qk={key:1},Uk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Kk={class:"min-w-[30rem] w-max"},Jk={key:1,class:"mt-8"},Gk={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},Yk={class:"overflow-x-auto"},Xk={class:"min-w-full"},Qk={class:"bg-white divide-y divide-gray-200"},Zk={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},$k={class:"min-w-[30rem] w-max"},e3={key:0,class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},t3={class:"min-w-[30rem] w-max"},r3={class:"flex items-center space-x-3"},o3=["src"],n3={key:0,class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},i3={class:"min-w-[30rem] w-max"},a3={key:2,class:"mt-8"},s3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},l3={class:"overflow-x-auto"},c3={class:"min-w-full"},d3={class:"bg-white divide-y divide-gray-200"},u3={key:0},p3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},m3={class:"min-w-[30rem] w-max"},h3={key:1},f3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},g3={class:"min-w-[30rem] w-max"},b3={key:2},w3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},y3={class:"min-w-[30rem] w-max"},v3={key:3},x3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},k3={class:"min-w-[30rem] w-max"},E3={key:3,class:"mt-8"},S3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},C3={class:"overflow-x-auto"},N3={class:"min-w-full"},B3={class:"bg-white divide-y divide-gray-200"},M3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},T3={class:"min-w-[30rem] w-max"},O3={class:"flex items-center space-x-3"},V3=["src"],P3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},A3={class:"min-w-[30rem] w-max"},D3={class:"flex items-center space-x-3"},I3={class:"border-r border-gray-200 pr-6"},L3={class:"flex items-center space-x-3"},R3={class:"whitespace-nowrap"},z3={key:4,class:"mt-8"},_3={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},F3={class:"overflow-x-auto"},j3={class:"w-max"},H3={class:"bg-white divide-y divide-gray-200"},W3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},q3={class:"min-w-[30rem] w-max"},U3={key:0},K3={key:1},J3={key:0},G3={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},Y3={class:"min-w-[30rem] w-max"},X3={class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium"},Q3={class:"mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor"},Z3={class:"mt-4 whitespace-pre-wrap text-white overflow-hidden bg-gray-900"},$3={class:"px-4 pb-8 pt-4 text-white text-xs break-all"},e4={class:"myPrimaryParagraph text-xs text-white"},t4={__name:"PageBuilderSettings",setup(r){const e="v3.2.85",t=se;new de(t);const o=s.ref(null),n=s.computed(()=>t.getConfigPageBuilder),i=s.computed(()=>t.getComponents),a=function(c,d){const u=document.createElement("a");u.setAttribute("href","data:text/html;charset=utf-8,"+encodeURIComponent(Ek(d))),u.setAttribute("download",c),u.style.display="none",document.body.appendChild(u),u.click(),document.body.removeChild(u)},l=function(){o.value=i.value.map(c=>c.html_code),a("downloaded_html.html",o.value.join(""))};return(c,d)=>{var u,p,m,h,f,g,b,y,k,v,w,S,x,C,O,D;return s.openBlock(),s.createElementBlock("div",Sk,[s.createElementVNode("div",Ck,[s.createElementVNode("div",Nk,[d[26]||(d[26]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Configuration Overview"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"}," A summary of current user preferences, application settings, and system metadata including UI theme, language, saved components, and logo configuration. ")],-1)),s.createElementVNode("div",Bk,[s.createElementVNode("div",Mk,[d[2]||(d[2]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Version Information",-1)),s.createElementVNode("div",Tk,[s.createElementVNode("div",Ok,[s.createElementVNode("table",Vk,[d[1]||(d[1]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Component "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Version ")])],-1)),s.createElementVNode("tbody",Pk,[s.createElementVNode("tr",null,[d[0]||(d[0]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Page Builder")],-1)),s.createElementVNode("td",Ak,[s.createElementVNode("div",Dk,[s.createElementVNode("span",Ik,s.toDisplayString(s.unref(e)),1)])])])])])])])]),(u=n.value)!=null&&u.resourceData&&!s.unref(uo)(n.value.resourceData)?(s.openBlock(),s.createElementBlock("div",Lk,[d[6]||(d[6]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Resource Data",-1)),s.createElementVNode("div",Rk,[s.createElementVNode("div",zk,[s.createElementVNode("table",_k,[d[5]||(d[5]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",Fk,[(m=(p=n.value)==null?void 0:p.resourceData)!=null&&m.title?(s.openBlock(),s.createElementBlock("tr",jk,[d[3]||(d[3]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Title")],-1)),s.createElementVNode("td",Hk,[s.createElementVNode("div",Wk,s.toDisplayString(n.value.resourceData.title),1)])])):s.createCommentVNode("",!0),(f=(h=n.value)==null?void 0:h.resourceData)!=null&&f.id?(s.openBlock(),s.createElementBlock("tr",qk,[d[4]||(d[4]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"ID")],-1)),s.createElementVNode("td",Uk,[s.createElementVNode("div",Kk,s.toDisplayString(n.value.resourceData.id),1)])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0),(g=n.value)!=null&&g.userForPageBuilder&&!s.unref(uo)(n.value.userForPageBuilder)?(s.openBlock(),s.createElementBlock("div",Jk,[d[11]||(d[11]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"User Information",-1)),s.createElementVNode("div",Gk,[s.createElementVNode("div",Yk,[s.createElementVNode("table",Xk,[d[10]||(d[10]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",Qk,[s.createElementVNode("tr",null,[d[7]||(d[7]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"User Name")],-1)),s.createElementVNode("td",Zk,[s.createElementVNode("div",$k,s.toDisplayString(n.value.userForPageBuilder.name),1)])]),s.createElementVNode("tr",null,[d[8]||(d[8]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Image")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("td",e3,[s.createElementVNode("div",t3,[s.createElementVNode("div",r3,[s.createElementVNode("img",{class:"block inset-0 object-top h-10 min-h-10 max-h-10 w-10 min-w-10 max-w-10 object-cover rounded-full",src:n.value.userForPageBuilder.image,alt:"image"},null,8,o3)])])])):s.createCommentVNode("",!0)]),s.createElementVNode("tr",null,[d[9]||(d[9]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Image URL")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("td",n3,[s.createElementVNode("div",i3,s.toDisplayString(n.value.userForPageBuilder.image),1)])):s.createCommentVNode("",!0)])])])])])])):s.createCommentVNode("",!0),(b=n.value)!=null&&b.userSettings&&!s.unref(uo)(n.value.userSettings)?(s.openBlock(),s.createElementBlock("div",a3,[d[17]||(d[17]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"User Settings",-1)),s.createElementVNode("div",s3,[s.createElementVNode("div",l3,[s.createElementVNode("table",c3,[d[16]||(d[16]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Setting "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",d3,[(k=(y=n.value)==null?void 0:y.userSettings)!=null&&k.theme?(s.openBlock(),s.createElementBlock("tr",u3,[d[12]||(d[12]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Theme")],-1)),s.createElementVNode("td",p3,[s.createElementVNode("div",m3,s.toDisplayString(n.value.userSettings.theme),1)])])):s.createCommentVNode("",!0),(w=(v=n.value)==null?void 0:v.userSettings)!=null&&w.language?(s.openBlock(),s.createElementBlock("tr",h3,[d[13]||(d[13]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Language")],-1)),s.createElementVNode("td",f3,[s.createElementVNode("div",g3,s.toDisplayString(n.value.userSettings.language),1)])])):s.createCommentVNode("",!0),((x=(S=n.value)==null?void 0:S.userSettings)==null?void 0:x.autoSave)!==void 0?(s.openBlock(),s.createElementBlock("tr",b3,[d[14]||(d[14]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Auto Save")],-1)),s.createElementVNode("td",w3,[s.createElementVNode("div",y3,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.userSettings.autoSave?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},s.toDisplayString(n.value.userSettings.autoSave?"Enabled":"Disabled"),3)])])])):s.createCommentVNode("",!0),((O=(C=n.value)==null?void 0:C.userSettings)==null?void 0:O.notifications)!==void 0?(s.openBlock(),s.createElementBlock("tr",v3,[d[15]||(d[15]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Notifications")],-1)),s.createElementVNode("td",x3,[s.createElementVNode("div",k3,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.userSettings.notifications?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},s.toDisplayString(n.value.userSettings.notifications?"Enabled":"Disabled"),3)])])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0),n.value.pageBuilderLogo&&!s.unref(uo)(n.value.pageBuilderLogo)?(s.openBlock(),s.createElementBlock("div",E3,[d[21]||(d[21]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Logo Configuration",-1)),s.createElementVNode("div",S3,[s.createElementVNode("div",C3,[s.createElementVNode("table",N3,[d[20]||(d[20]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Property "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Value ")])],-1)),s.createElementVNode("tbody",B3,[s.createElementVNode("tr",null,[d[18]||(d[18]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Logo")],-1)),s.createElementVNode("td",M3,[s.createElementVNode("div",T3,[s.createElementVNode("div",O3,[s.createElementVNode("img",{class:"h-4",src:n.value.pageBuilderLogo.src,alt:"Logo"},null,8,V3)])])])]),s.createElementVNode("tr",null,[d[19]||(d[19]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Logo URL")],-1)),s.createElementVNode("td",P3,[s.createElementVNode("div",A3,[s.createElementVNode("div",D3,[s.createElementVNode("div",I3,[s.createElementVNode("div",L3,[s.createElementVNode("span",R3,s.toDisplayString(n.value.pageBuilderLogo.src),1)])])])])])])])])])])])):s.createCommentVNode("",!0),(D=n.value)!=null&&D.updateOrCreate&&!s.unref(uo)(n.value.updateOrCreate)?(s.openBlock(),s.createElementBlock("div",z3,[d[25]||(d[25]=s.createElementVNode("h4",{class:"myQuaternaryHeader text-sm mb-2"},"Form Type",-1)),s.createElementVNode("div",_3,[s.createElementVNode("div",F3,[s.createElementVNode("table",j3,[d[24]||(d[24]=s.createElementVNode("thead",{class:"bg-gray-50"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Mode "),s.createElementVNode("th",{scope:"col",class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"}," Description ")])],-1)),s.createElementVNode("tbody",H3,[s.createElementVNode("tr",null,[d[22]||(d[22]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Form Type")],-1)),s.createElementVNode("td",W3,[s.createElementVNode("div",q3,[s.createElementVNode("span",{class:s.normalizeClass(["inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",n.value.updateOrCreate==="create"?"bg-green-100 text-green-800":"bg-blue-100 text-blue-800"])},[n.value&&n.value.updateOrCreate.formType==="create"?(s.openBlock(),s.createElementBlock("span",U3,s.toDisplayString(n.value.updateOrCreate.formType),1)):s.createCommentVNode("",!0),n.value&&n.value.updateOrCreate.formType==="update"?(s.openBlock(),s.createElementBlock("span",K3,s.toDisplayString(n.value.updateOrCreate.formType),1)):s.createCommentVNode("",!0)],2)])])]),n.value.updateOrCreate.formName&&n.value.updateOrCreate.formName.length>0?(s.openBlock(),s.createElementBlock("tr",J3,[d[23]||(d[23]=s.createElementVNode("td",{class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},[s.createElementVNode("div",{class:"min-w-[30rem] w-max"},"Form Name")],-1)),s.createElementVNode("td",G3,[s.createElementVNode("div",Y3,[s.createElementVNode("span",X3,s.toDisplayString(n.value.updateOrCreate.formName),1)])])])):s.createCommentVNode("",!0)])])])])])):s.createCommentVNode("",!0)])])]),s.createElementVNode("div",{class:"mt-4 mb-4 py-8 border-b border-myPrimbryLightGrayColor"},[d[27]||(d[27]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Download Page as HTML"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"},"Download current page layout.")],-1)),s.createElementVNode("div",{class:"mt-4"},[s.createElementVNode("button",{onClick:l,type:"button",class:"myPrimaryButton"}," Download HTML file ")])]),s.createElementVNode("div",Q3,[d[29]||(d[29]=s.createElementVNode("div",{class:"flex items-left flex-col gap-1"},[s.createElementVNode("h3",{class:"myQuaternaryHeader"},"Complete Configuration Overview"),s.createElementVNode("p",{class:"myPrimaryParagraph text-xs"}," omplete configuration object currently used by the Page Builder. It includes information about the user, form behavior, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")],-1)),s.createElementVNode("div",Z3,[d[28]||(d[28]=s.createElementVNode("div",{class:"flex bg-gray-800/40 ring-1 ring-white/5"},[s.createElementVNode("div",{class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},[s.createElementVNode("div",{class:"px-4 py-4 text-white"},"Configuration")])],-1)),s.createElementVNode("div",$3,[s.createElementVNode("p",e4," config: "+s.toDisplayString(JSON.stringify(n.value,null,4)),1)])])])])}}},r4={class:"w-full inset-x-0 h-[90vh] bg-white overflow-x-scroll lg:pt-2 pt-2"},o4={class:"flex items-left flex-col myPrimaryGap border-myPrimaryMediumGrayColor"},n4={class:"text-gray-100 overflow-hidden bg-stone-800"},i4={class:"px-4 pb-8 pt-4 text-gray-100 text-xs"},a4={class:"text-xs pb-2"},s4={class:"text-xs pb-2"},l4={class:"text-xs pb-2"},c4={class:"overflow-hidden bg-stone-800"},d4={class:"flex bg-stone-800 ring-1 ring-white/5"},u4={class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},p4={class:"px-4 pb-8 pt-4 text-gray-100 text-xs break-all"},m4={key:0},h4={key:0},f4={class:"pb-2 text-xs"},g4={key:1,class:"overflow-hidden border border-gray-100 mb-6"},b4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},w4={class:"overflow-x-auto"},y4={class:"min-w-full"},v4={class:"bg-stone-800 divide-y divide-gray-200"},x4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal border-b"},k4={class:"overflow-x-auto"},E4={class:"min-w-full"},S4={class:"bg-stone-800 divide-y divide-gray-200"},C4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},N4={class:"overflow-x-auto"},B4={class:"min-w-full"},M4={class:"bg-stone-800 divide-y divide-gray-200"},T4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},O4={key:1},V4={key:0},P4={class:"pb-2 text-xs"},A4={key:1,class:"overflow-hidden border border-gray-100 mb-6"},D4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},I4={class:"overflow-x-auto"},L4={class:"min-w-full"},R4={class:"bg-stone-800 divide-y divide-gray-200"},z4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},_4={class:"overflow-x-auto"},F4={class:"min-w-full"},j4={class:"bg-stone-800 divide-y divide-gray-200"},H4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},W4={class:"overflow-x-auto"},q4={class:"min-w-full"},U4={class:"bg-stone-800 divide-y divide-gray-200"},K4={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},J4={class:"text-xs text-gray-100 whitespace-pre-lines font-sans flex items-start justify-left"},G4=["innerHTML"],Y4={key:2},X4={class:"pb-2 text-xs"},Q4={key:0},Z4={class:"bg-stone-800 pt-4 pb-1 border-b border-gray-200"},$4={class:"overflow-x-auto"},eE={class:"min-w-full"},tE={class:"bg-stone-800 divide-y divide-gray-200"},rE={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},oE={class:"overflow-x-auto"},nE={class:"min-w-full"},iE={class:"bg-stone-800 divide-y divide-gray-200"},aE={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal whitespace-pre-line"},sE={class:"overflow-x-auto"},lE={class:"min-w-full"},cE={class:"bg-stone-800 divide-y divide-gray-200"},dE={class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},uE={class:"text-xs text-gray-100 whitespace-pre-lines font-sans flex items-start justify-left"},pE=["innerHTML"],mE={__name:"AdvancedPageBuilderSettings",setup(r){const e=se,t=s.computed(()=>e.getElement),o=s.computed(()=>e.getComponent),n=s.computed(()=>e.getComponents),i=s.ref("element"),a=function(c){i.value=c};function l(c){return c?c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""}return(c,d)=>{var u,p,m,h,f,g,b,y,k,v;return s.openBlock(),s.createElementBlock("div",r4,[s.createElementVNode("div",o4,[d[22]||(d[22]=s.createElementVNode("p",{class:"myPrimaryParagraph"}," Overview of Selected Element, Component, and Components. This section provides real-time updates based on your HTML selection. ",-1)),s.createElementVNode("div",null,[d[7]||(d[7]=s.createElementVNode("h4",{class:"myPrimaryParagraph text-xs pb-2"},"Types",-1)),s.createElementVNode("div",n4,[d[6]||(d[6]=s.createElementVNode("div",{class:"flex bg-stone-800 ring-1 ring-white/5"},[s.createElementVNode("div",{class:"-mb-px flex text-xs font-medium text-myPrimaryMediumGrayColor"},[s.createElementVNode("div",{class:"px-4 py-4 text-gray-100"},"Types")])],-1)),s.createElementVNode("div",i4,[s.createElementVNode("p",a4,[d[3]||(d[3]=s.createElementVNode("span",null,"Element type: ",-1)),s.createElementVNode("span",null,s.toDisplayString(typeof t.value),1)]),s.createElementVNode("p",s4,[d[4]||(d[4]=s.createElementVNode("span",null,"Component type: ",-1)),s.createTextVNode(" "+s.toDisplayString(typeof o.value),1)]),s.createElementVNode("p",l4,[d[5]||(d[5]=s.createElementVNode("span",null,"Components: ",-1)),s.createElementVNode("span",null,s.toDisplayString(Array.isArray(n.value)===!0?"array":typeof n.value),1)])])])]),s.createElementVNode("div",null,[d[21]||(d[21]=s.createElementVNode("h4",{class:"myPrimaryParagraph text-xs pb-2"},"Content",-1)),s.createElementVNode("div",c4,[s.createElementVNode("div",d4,[s.createElementVNode("div",u4,[s.createElementVNode("div",{onClick:d[0]||(d[0]=w=>a("element")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="element"?"text-gray-100":""]])}," Element ",2),s.createElementVNode("div",{onClick:d[1]||(d[1]=w=>a("component")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="component"?"text-gray-100":""]])}," Component ",2),s.createElementVNode("div",{onClick:d[2]||(d[2]=w=>a("components")),class:s.normalizeClass(["px-4 py-4 cursor-pointer",[i.value==="components"?"text-gray-100":""]])}," Components "+s.toDisplayString(Array.isArray(n.value)&&n.value.length),3)])]),s.createElementVNode("div",p4,[i.value==="element"?(s.openBlock(),s.createElementBlock("div",m4,[o.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",h4,[s.createElementVNode("p",f4,s.toDisplayString(o.value===null?"No Element selected":typeof o.value),1)])),t.value?(s.openBlock(),s.createElementBlock("div",g4,[s.createElementVNode("div",b4,[s.createElementVNode("div",w4,[s.createElementVNode("table",y4,[d[8]||(d[8]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Selected HTML: ")])],-1)),s.createElementVNode("tbody",v4,[s.createElementVNode("tr",null,[s.createElementVNode("td",x4,s.toDisplayString((u=t.value)==null?void 0:u.outerHTML),1)])])])]),s.createElementVNode("div",k4,[s.createElementVNode("table",E4,[d[9]||(d[9]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Element src: ")])],-1)),s.createElementVNode("tbody",S4,[s.createElementVNode("tr",null,[s.createElementVNode("td",C4,s.toDisplayString((p=t.value)!=null&&p.src?(m=t.value)==null?void 0:m.src:typeof((h=t.value)==null?void 0:h.src)),1)])])])])]),s.createElementVNode("div",N4,[s.createElementVNode("table",B4,[d[10]||(d[10]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," Element classes: ")])],-1)),s.createElementVNode("tbody",M4,[s.createElementVNode("tr",null,[s.createElementVNode("td",T4,s.toDisplayString((f=t.value)!=null&&f.classList?(g=t.value)==null?void 0:g.classList:typeof((b=t.value)==null?void 0:b.classList)),1)])])])])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.value==="component"?(s.openBlock(),s.createElementBlock("div",O4,[o.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",V4,[s.createElementVNode("p",P4,s.toDisplayString(o.value===null?"No Component selected":typeof o.value),1)])),o.value?(s.openBlock(),s.createElementBlock("div",A4,[s.createElementVNode("div",D4,[s.createElementVNode("div",I4,[s.createElementVNode("table",L4,[d[11]||(d[11]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"},"ID:")])],-1)),s.createElementVNode("tbody",R4,[s.createElementVNode("tr",null,[s.createElementVNode("td",z4,s.toDisplayString((y=o.value)==null?void 0:y.id),1)])])])]),s.createElementVNode("div",_4,[s.createElementVNode("table",F4,[d[12]||(d[12]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal border-t"}," Title: ")])],-1)),s.createElementVNode("tbody",j4,[s.createElementVNode("tr",null,[s.createElementVNode("td",H4,s.toDisplayString((k=o.value)==null?void 0:k.title),1)])])])])]),s.createElementVNode("div",W4,[s.createElementVNode("table",q4,[d[15]||(d[15]=s.createElementVNode("thead",{class:"bg-stone-800"},[s.createElementVNode("tr",null,[s.createElementVNode("th",{class:"px-6 py-3 text-left text-xs text-gray-100 font-normal"}," HTML Code: ")])],-1)),s.createElementVNode("tbody",U4,[s.createElementVNode("tr",null,[s.createElementVNode("td",K4,[s.createElementVNode("pre",J4,[d[13]||(d[13]=s.createTextVNode(" ")),s.createElementVNode("code",{class:"font-sans",innerHTML:l((v=o.value)==null?void 0:v.html_code)},null,8,G4),d[14]||(d[14]=s.createTextVNode(`
|
|
545
|
-
`))])])])])])])])):
|
|
546
|
-
`))])])])])])])]))),128))])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])])])])])}}},hE={class:"flex gap-2 items-center myPrimaryParagraph font-medium text-xs py-1 px-2 rounded-full lg:border lg:border-gray-200 lg:shadow-sm lg:mr-10"},fE={key:0,class:"flex items-center myPrimaryTag py-0"},gE={class:"text-white rounded-full bg-myPrimaryBrandColor flex justify-center items-center text-xs h-8 min-h-8 max-h-8 w-8 min-w-8 max-w-8 font-normal"},bE={class:"hidden text-xs h-8 lg:flex items-center font-normal"},wE={key:1,class:"flex items-center lg:myPrimaryTag py-0 gap-4 w-max"},yE={class:"text-white flex-shrink-0 h-8 w-8 rounded-full flex justify-center items-center text-xs rounded-l-full"},vE=["src"],xE={class:"hidden text-xs h-8 lg:flex items-center font-normal"},kE={class:"relative group"},EE={class:"absolute left-0 -ml-16 -mt-2 flex flex-col gap-3 shadow-lg bg-white w-max border border-gray-100 rounded-2xl transition-all duration-200 ease-out pt-4 pr-4 pb-4 pl-2 z-30 opacity-0 pointer-events-none -translate-y-2 group-hover:opacity-100 group-hover:pointer-events-auto group-hover:translate-y-0"},SE={__name:"ToolbarOption",setup(r){const e=se,t=s.computed(()=>e.getConfigPageBuilder),o=new de(e),n=s.ref(!1),i=s.ref(""),a=s.ref(1),l=s.ref(""),c=s.ref(""),d=s.ref(""),u=s.ref(null),p=s.ref(null),m=s.ref(null),h=s.ref(null),f=s.ref(null),g=function(){n.value=!0,i.value="delete",a.value=2,l.value="Remove all Components",c.value="Are you sure you want to remove all Components?",d.value="Close",u.value=null,p.value="Delete",m.value=function(){n.value=!1},f.value=async function(){o.deleteAllComponents(),await o.clearHtmlSelection(),t.value.updateOrCreate&&typeof t.value.updateOrCreate.formType=="string"&&(t.value.updateOrCreate.formType==="create"&&await o.removeItemComponentsLocalStorage(),t.value.updateOrCreate.formType==="update"&&await o.removeItemComponentsLocalStorage()),n.value=!1}},b=s.ref(!1),y=function(){b.value=!1},k=function(){b.value=!0},v=s.ref(!1),w=function(){v.value=!1},S=function(){v.value=!0};return(x,C)=>{var O;return s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",hE,[t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&(!t.value.userForPageBuilder.image||typeof t.value.userForPageBuilder.image=="string"&&((O=t.value.userForPageBuilder.image)==null?void 0:O.length)<2)?(s.openBlock(),s.createElementBlock("div",fE,[s.createElementVNode("div",gE,s.toDisplayString(typeof t.value.userForPageBuilder.name=="string"&&t.value.userForPageBuilder.name[0]),1),s.createElementVNode("div",bE,s.toDisplayString(t.value.userForPageBuilder.name),1)])):s.createCommentVNode("",!0),t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&t.value.userForPageBuilder.image&&typeof t.value.userForPageBuilder.image=="string"&&t.value.userForPageBuilder.image.length>2?(s.openBlock(),s.createElementBlock("div",wE,[s.createElementVNode("div",yE,[s.createElementVNode("img",{alt:"avatar",src:`${t.value.userForPageBuilder.image}`,class:"block inset-0 object-top h-8 min-h-8 max-h-8 w-8 min-w-8 max-w-8 object-cover rounded-full"},null,8,vE)]),s.createElementVNode("div",xE,s.toDisplayString(t.value.userForPageBuilder.name),1)])):s.createCommentVNode("",!0),s.createElementVNode("div",null,[s.createElementVNode("div",kE,[C[2]||(C[2]=s.createElementVNode("button",{type:"button",class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max text-xs"},[s.createElementVNode("span",null," Options ")],-1)),s.createElementVNode("div",EE,[s.createElementVNode("button",{onClick:C[0]||(C[0]=()=>{s.unref(o).clearHtmlSelection(),k()}),class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0",type:"button"}," Config Overview "),s.createElementVNode("button",{onClick:S,class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0",type:"button"}," HTML Overview "),s.createElementVNode("button",{onClick:C[1]||(C[1]=()=>{s.unref(o).clearHtmlSelection(),g()}),class:"cursor-pointer lg:flex myPrimaryTag font-normal w-max border-none m-0 bg-myPrimaryErrorColor text-white",type:"button"}," Delete Layout ")])])])]),s.createVNode(Dr,{maxWidth:"5xl",showModalBuilder:b.value,title:"Main Settings",onCloseMainModalBuilder:y,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createVNode(t4)]),_:1},8,["showModalBuilder"]),s.createVNode(Dr,{maxWidth:"5xl",showModalBuilder:v.value,title:"Selected HTML",onCloseMainModalBuilder:w,minHeight:"",maxHeight:""},{default:s.withCtx(()=>[s.createVNode(mE)]),_:1},8,["showModalBuilder"]),s.createVNode(zr,{showDynamicModalBuilder:n.value,type:i.value,gridColumnAmount:a.value,title:l.value,description:c.value,firstButtonText:d.value,secondButtonText:u.value,thirdButtonText:p.value,onFirstModalButtonFunctionDynamicModalBuilder:m.value,onSecondModalButtonFunctionDynamicModalBuilder:h.value,onThirdModalButtonFunctionDynamicModalBuilder:f.value},{default:s.withCtx(()=>C[3]||(C[3]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"])])}}};let Vl=null;function CE(){return(r,e=300)=>{Vl&&clearTimeout(Vl),Vl=setTimeout(r,e)}}const NE={id:"builder-container",class:"font-sans max-w-full m-1 border border-gray-600 inset-x-0 z-10 bg-white overflow-x-scroll"},BE={id:"pagebuilder-top-area",class:"lg:px-4 pt-2 pb-4 mx-4 mb-4 mt-2"},ME={key:0,class:"flex items-center divide-x divide-gray-200"},TE={id:"pagebuilder-logo-main",class:"pr-4"},OE=["src"],VE={key:1},PE={class:"relative h-full flex pb-2 gap-2"},AE={class:"mx-2 flex flex-col myPrimaryGap items-stretch"},DE={class:"flex gap-2 items-center justify-center"},IE={id:"pagebuilder-toolbar-area",class:"flex items-center justify-between rounded-t-2xl bg-myPrimaryLightGrayColor min-w-[30rem]"},LE=["disabled"],RE={key:0,class:"h-10 w-4 cursor-pointer rounded-full flex items-center justify-center"},zE={key:1,class:"h-10 w-4 cursor-pointer rounded-full flex items-center justify-center"},_E={class:"flex items-center justify-center gap-4"},FE={id:"contains-pagebuilder",class:"pl-4 pr-4 pb-4 overflow-y-auto pt-1 h-[39rem]"},jE={id:"pagebuilder"},HE=["onMouseup"],WE=["innerHTML"],qE={class:"mt-6 flex items-center gap-2 justify-center"},UE={__name:"PageBuilder",props:{CustomMediaLibraryComponent:{type:Object,default:null},CustomBuilderComponents:{type:Object,default:null}},setup(r){const e=r,t=Na,o=se,n=new de(o);s.provide("pageBuilderStateStore",o),s.provide("internalPinia",t),s.provide("CustomMediaComponent",e.CustomMediaLibraryComponent),s.provide("CustomBuilderComponents",e.CustomBuilderComponents);const i=()=>{h.value=!1};s.provide("closeAddComponentModal",i);const a=s.computed(()=>o.getConfigPageBuilder),l=s.computed(()=>o.getIsSaving),c=s.computed(()=>o.getMenuRight),d=function(){n.previewCurrentDesign()},u=s.ref(!1),p=function(){d(),u.value=!0},m=function(){u.value=!1},h=s.ref(!1),f=s.ref(""),g=s.ref(""),b=s.ref(null),y=async function(){await n.clearHtmlSelection(),f.value="Add Components to Page",g.value="Close",h.value=!0,b.value=function(){h.value=!1}},k=s.computed(()=>o.getComponents),v=s.computed(()=>o.getElement),w=s.computed(()=>!v.value||!(v.value instanceof HTMLElement)?"":{src:v.value.getAttribute("src"),href:v.value.getAttribute("href"),style:v.value.getAttribute("style"),class:v.value.getAttribute("class"),dataImage:v.value.getAttribute("data-image")}),S=CE();s.watch(w,async(H,V)=>{((H==null?void 0:H.src)!==(V==null?void 0:V.src)||(H==null?void 0:H.href)!==(V==null?void 0:V.href)||(H==null?void 0:H.style)!==(V==null?void 0:V.style)||(H==null?void 0:H.class)!==(V==null?void 0:V.class)||(H==null?void 0:H.dataImage)!==(V==null?void 0:V.dataImage))&&S(async()=>{await n.handleAutoSave(),await n.initializeElementStyles()},200)});const x=function(H){o.setComponent(H)},C=s.ref(null),O={updateOrCreate:{formType:"create",formName:"post"}},D=function(H){if(H==null||H&&Object.keys(H).length===0&&H.constructor===Object){n.applyPageBuilderConfig(O);return}H&&Object.keys(H).length!==0&&H.constructor===Object&&xk(H)};s.watch(()=>a.value,H=>{n.updateLocalStorageItemName(),H&&H.updateOrCreate&&H.updateOrCreate.formType==="create"&&n.mountComponentsToDOM()},{immediate:!0});const B=s.ref(1),E=s.ref(""),P=s.ref(!1),_=s.ref(""),ee=s.ref(""),re=s.ref(""),J=s.ref(null),z=s.ref(null),X=s.ref(null),ne=s.ref(null),Je=s.ref(null),ut=s.ref(null),nt=async function(){await n.clearHtmlSelection(),E.value="default",_.value="Continue Your Work?",ee.value="We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently saved?",re.value="Use Saved Version",J.value=null,z.value="Continue Where I Left Off",P.value=!0,X.value=function(){P.value=!1},ne.value=function(){},Je.value=async function(){ut.value=!0,await wa(600),await n.resumeEditingForUpdate(),ut.value=!1,P.value=!1}};return s.onMounted(async()=>{const H=a.value;D(H),n.updateLocalStorageItemName(),n.deleteOldPageBuilderLocalStorage(),await n.clearHtmlSelection(),await n.addListenersToEditableElements(),await n.hasLocalDraftForUpdate()&&nt()}),(H,V)=>(s.openBlock(),s.createElementBlock("div",NE,[s.createElementVNode("div",BE,[s.createElementVNode("div",{onClick:V[1]||(V[1]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-between items-center pb-2 border-b border-gray-200"},[s.createElementVNode("div",{onClick:V[0]||(V[0]=oe=>s.unref(n).clearHtmlSelection())},[a.value&&a.value.pageBuilderLogo&&a.value.pageBuilderLogo.src?(s.openBlock(),s.createElementBlock("div",ME,[s.createElementVNode("div",TE,[s.createElementVNode("img",{class:"h-6",src:a.value.pageBuilderLogo.src,alt:"Logo"},null,8,OE)]),V[17]||(V[17]=s.createElementVNode("span",{class:"myPrimaryParagraph font-medium pl-4"},"Editing Page ",-1))])):(s.openBlock(),s.createElementBlock("div",VE,V[18]||(V[18]=[s.createElementVNode("div",{class:"pr-6"},[s.createElementVNode("span",{class:"myPrimaryParagraph font-medium"},"Editing Page ")],-1)])))]),s.createElementVNode("div",null,[s.createVNode(SE)])])]),h.value?(s.openBlock(),s.createBlock(G2,{key:0,show:h.value,firstButtonText:g.value,title:f.value,CustomBuilderComponents:e.CustomBuilderComponents,onFirstModalButtonSearchComponentsFunction:b.value},null,8,["show","firstButtonText","title","CustomBuilderComponents","onFirstModalButtonSearchComponentsFunction"])):s.createCommentVNode("",!0),s.createVNode(Dr,{title:"Preview",showModalBuilder:u.value,onCloseMainModalBuilder:m,maxWidth:"screen"},{default:s.withCtx(()=>[s.createVNode(lc)]),_:1},8,["showModalBuilder"]),s.createVNode(zr,{showDynamicModalBuilder:P.value,isLoading:ut.value,type:E.value,gridColumnAmount:B.value,title:_.value,description:ee.value,firstButtonText:re.value,secondButtonText:J.value,thirdButtonText:z.value,onFirstModalButtonFunctionDynamicModalBuilder:X.value,onSecondModalButtonFunctionDynamicModalBuilder:ne.value,onThirdModalButtonFunctionDynamicModalBuilder:Je.value},{default:s.withCtx(()=>V[19]||(V[19]=[s.createElementVNode("header",null,null,-1),s.createElementVNode("main",null,null,-1)])),_:1,__:[19]},8,["showDynamicModalBuilder","isLoading","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),s.createElementVNode("div",null,[s.createElementVNode("div",PE,[s.createElementVNode("div",{onClick:V[4]||(V[4]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),id:"pagebuilder-left-area",class:"min-w-[3.5rem] pt-6 pb-2 ml-2 bg-myPrimaryLightGrayColor rounded-full shadow-sm"},[s.createElementVNode("div",AE,[s.createElementVNode("div",DE,[s.createElementVNode("button",{type:"button",onClick:V[2]||(V[2]=()=>{s.unref(o).setComponentArrayAddMethod("unshift"),y()}),class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},V[20]||(V[20]=[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," interests ",-1)]))]),s.createElementVNode("div",{onClick:V[3]||(V[3]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"]))},[v.value?(s.openBlock(),s.createBlock(tf,{key:0})):s.createCommentVNode("",!0)])])]),s.createElementVNode("main",{class:s.normalizeClass(["flex flex-col h-full grow rounded-tr-2xl rounded-tl-2xl border border-gray-200 items-stretch",{"mr-2":!c.value,"":c.value}])},[s.createElementVNode("div",IE,[s.createElementVNode("div",{onClick:V[6]||(V[6]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex myPrimaryGap items-center pt-4 pb-2 pl-2 h-24 w-full min-w-36"},[s.createElementVNode("button",{class:"mySecondaryButton h-6 flex gap-2",onClick:V[5]||(V[5]=s.withModifiers(async()=>{await s.unref(n).clearHtmlSelection(),await s.unref(n).handleManualSave()},["stop"])),type:"button",disabled:l.value},[l.value?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",RE,V[21]||(V[21]=[s.createElementVNode("span",{class:"material-symbols-outlined"},"save",-1)]))),l.value?(s.openBlock(),s.createElementBlock("div",zE,V[22]||(V[22]=[s.createElementVNode("span",{class:"relative flex size-3"},[s.createElementVNode("span",{class:"absolute inline-flex h-full w-full animate-ping rounded-full bg-gray-400 opacity-75"}),s.createElementVNode("span",{class:"relative inline-flex size-3 rounded-full bg-green-200"})],-1)]))):s.createCommentVNode("",!0),V[23]||(V[23]=s.createElementVNode("div",null,"Save",-1))],8,LE)]),s.createElementVNode("div",{onClick:V[10]||(V[10]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-end py-2 pr-2 h-24 w-full"},[s.createElementVNode("div",{onClick:V[9]||(V[9]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex items-center justify-center gap-4"},[s.createElementVNode("button",{type:"button",onClick:V[7]||(V[7]=()=>{s.unref(o).setComponentArrayAddMethod("unshift"),y()})},V[24]||(V[24]=[s.createStaticVNode('<div class="flex items-center justify-center gap-2"><span class="lg:block hidden"><div class="whitespace-nowrap">Add new Components</div></span><span class="h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"><span class="myMediumIcon material-symbols-outlined"> interests </span></span></div>',1)])),s.createElementVNode("div",_E,[s.createElementVNode("button",{type:"button",onClick:V[8]||(V[8]=()=>{s.unref(o).setMenuRight(!1),s.unref(o).setElement(null),s.unref(n).clearHtmlSelection(),p()})},V[25]||(V[25]=[s.createElementVNode("div",{class:"flex items-center justify-center gap-2"},[s.createElementVNode("div",{class:"whitespace-nowrap lg:block hidden"},"Preview"),s.createElementVNode("span",{class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," visibility ")])],-1)]))])])]),s.createElementVNode("div",{onClick:V[13]||(V[13]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex justify-end py-2 pr-2 w-full h-24"},[s.createElementVNode("div",{onClick:V[12]||(V[12]=s.withModifiers(oe=>s.unref(n).clearHtmlSelection(),["self"])),class:"flex items-center justify-center gap-4"},[c.value===!1?(s.openBlock(),s.createElementBlock("button",{key:0,type:"button",onClick:V[11]||(V[11]=oe=>s.unref(o).setMenuRight(!0))},V[26]||(V[26]=[s.createElementVNode("div",{class:"flex items-center justify-center gap-2"},[s.createElementVNode("span",{class:"lg:block hidden"}," Styling "),s.createElementVNode("span",{class:"h-10 w-10 cursor-pointer rounded-full flex items-center border-none justify-center bg-gray-50 aspect-square hover:bg-myPrimaryLinkColor hover:text-white focus-visible:ring-0"},[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," more_vert ")])],-1)]))):s.createCommentVNode("",!0)])])]),s.createVNode(C2),s.createElementVNode("div",FE,[s.createElementVNode("div",jE,[s.createElementVNode("div",{ref_key:"draggableZone",ref:C},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(k.value,oe=>(s.openBlock(),s.createElementBlock("div",{key:oe.id,id:"page-builder-editor-editable-area",class:"bg-white grow"},[s.createElementVNode("div",{onMouseup:Et=>x(oe),class:"relative group"},[s.createElementVNode("div",{innerHTML:oe.html_code},null,8,WE)],40,HE)]))),128))],512),s.createElementVNode("div",{onClick:V[15]||(V[15]=oe=>s.unref(n).clearHtmlSelection()),id:"pagebuilder-bottom-components-area",class:s.normalizeClass(["pt-8 pb-12 text-center focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 my-2 mx-4",{"border-t border-gray-200":k.value.length>0}])},[V[28]||(V[28]=s.createElementVNode("div",{class:"flex items-center justify-center gap-2 font-medium"},[s.createElementVNode("span",{class:"lg:block hidden"},[s.createElementVNode("div",null,"Add new components to the bottom of the page")])],-1)),s.createElementVNode("div",qE,[s.createElementVNode("button",{onClick:V[14]||(V[14]=()=>{s.unref(o).setComponentArrayAddMethod("push"),y()}),type:"button",class:"myPrimaryButton flex items-center gap-2 justify-center"},V[27]||(V[27]=[s.createElementVNode("span",{class:"myMediumIcon material-symbols-outlined"}," interests ",-1),s.createElementVNode("span",{class:"font-medium"}," Add new Components ",-1)]))])],2)])])],2),s.createElementVNode("aside",{"aria-label":"Menu",id:"pagebuilder-right-area",class:s.normalizeClass([{"w-0":!c.value,"w-80 mr-2 bg-myPrimaryLightGrayColor items-stretch":c.value},"duration-300 z-20 flex-shrink-0 overflow-hidden shadow-sm rounded-l-2xl"])},[s.createVNode(yk,{onCloseEditor:V[16]||(V[16]=oe=>s.unref(o).setMenuRight(!1))})],2)])])]))}};G.PageBuilder=UE,G.PageBuilderClass=de,G.Preview=lc,G.createPinia=ec,G.sharedPageBuilderPinia=Na,G.sharedPageBuilderStore=se,G.usePageBuilderModal=Pm,G.usePageBuilderStateStore=sc,Object.defineProperty(G,Symbol.toStringTag,{value:"Module"})});
|
|
544
|
+
</section>`,cover_image:null}]}}];function Ab(){const r=a.inject("closeAddComponentModal",null),e=a.inject("closeMediaLibraryModal",null);return{closeAddComponentModal:r||(()=>{console.warn("closeAddComponentModal function not available. Make sure you are using this within a PageBuilder context.")}),closeMediaLibraryModal:e||(()=>{console.warn("closeMediaLibraryModal function not available. Make sure you are using this within a MediaLibraryModal context.")})}}const V2={class:"pbx-mb-8"},P2={class:"pbx-grid pbx-grid-cols-1 sm:pbx-grid-cols-2 md:pbx-grid-cols-3 lg:pbx-grid-cols-4 pbx-gap-4"},A2=["onClick"],D2={class:"pbx-max-h-72 pbx-cursor-pointer pbx-object-contain pbx-bg-white pbx-mx-auto"},I2={class:"pbx-myPrimaryParagraph pbx-text-base pbx-font-medium"},L2={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-pt-2"},R2={key:0},z2={class:"pbx-grid pbx-grid-cols-1 sm:pbx-grid-cols-2 md:pbx-grid-cols-3 pbx-gap-4"},_2=["onClick"],F2={class:"pbx-overflow-hidden pbx-whitespace-pre-line pbx-flex-1 pbx-h-auto pbx-border-b pbx-border-gray-200 lg:pbx-py-10 pbx-py-8 pbx-px-2"},j2=["innerHTML"],H2={class:"pbx-p-3"},W2={class:"pbx-myPrimaryParagraph pbx-text-sm pbx-font-normal"},U2=Cl(a.defineComponent({__name:"DefaultBuilderComponents",props:{customMediaComponent:{type:Object,default:null}},setup(r){const{closeAddComponentModal:e}=Ab(),t=ae,o=new le(t),n=async function(l){await o.addComponent(l),e()},i=function(l){return{id:null,html_code:l.html_code,title:l.title}},s=l=>T2(l);return(l,p)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",V2,[p[0]||(p[0]=a.createElementVNode("h3",{class:"pbx-myQuaternaryHeader pbx-mb-4"},"Helper Components",-1)),a.createElementVNode("div",P2,[a.createTextVNode(" NOW: Did user include custom media component: "+a.toDisplayString(r.customMediaComponent?"true":"false")+" ",1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(B2),c=>(a.openBlock(),a.createElementBlock("div",{key:c.title,class:"pbx-border pbx-border-gray-200 pbx-overflow-hidden hover:pbx-border-myPrimaryLinkColor pbx-duration-100 pbx-cursor-pointer pbx-p-4",onClick:d=>n(c)},[a.createElementVNode("div",D2,[a.createCommentVNode("",!0),a.createElementVNode("h4",I2,a.toDisplayString(c.title),1)]),a.createElementVNode("div",L2," Click to add "+a.toDisplayString(c.title.toLowerCase())+" component ",1)],8,A2))),128))])]),r.customMediaComponent?(a.openBlock(),a.createElementBlock("div",R2,[p[2]||(p[2]=a.createElementVNode("h3",{class:"pbx-myQuaternaryHeader pbx-mb-4"},"Layout Components",-1)),a.createElementVNode("div",z2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(O2)[0].components.data,c=>(a.openBlock(),a.createElementBlock("div",{key:c.title,class:"pbx-border pbx-border-gray-200 pbx-overflow-hidden hover:pbx-border-myPrimaryLinkColor pbx-duration-100 pbx-cursor-pointer",onClick:d=>n(i(c))},[a.createElementVNode("div",F2,[a.createElementVNode("div",{class:"pbx-max-h-72 pbx-cursor-pointer pbx-bg-white pbx-mx-auto pbx-flex pbx-items-center pbx-justify-center",innerHTML:s(c.title)},null,8,j2)]),a.createElementVNode("div",H2,[a.createElementVNode("h4",W2,a.toDisplayString(c.title),1),p[1]||(p[1]=a.createElementVNode("div",{class:"pbx-myPrimaryParagraph pbx-text-xs pbx-font-normal pbx-pt-2"}," Click to add component ",-1))])],8,_2))),128))])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-d8dd0dfb"]]),q2={class:"pbx-w-full pbx-inset-x-0 pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},K2={key:0},G2={key:1,class:"pbx-h-[75vh]"},J2={class:"pbx-py-4 pbx-flex sm:pbx-justify-end pbx-justify-center pbx-border-t pbx-border-gray-200 pbx-mt-4"},Y2={class:"sm:pbx-w-3/6 pbx-w-full pbx-px-2 pbx-my-2 pbx-flex pbx-gap-2 pbx-justify-end"},X2={__name:"BuilderComponents",props:{firstButtonText:{required:!0},title:{required:!0},show:{type:Boolean,default:!1,required:!0},CustomBuilderComponents:{type:Object,default:null}},emits:["firstModalButtonSearchComponentsFunction"],setup(r,{emit:e}){const t=a.inject("CustomMediaComponent"),o=e,n=function(){o("firstModalButtonSearchComponentsFunction")};return(i,s)=>(a.openBlock(),a.createBlock(Lr,{title:r.title,maxWidth:"6xl",showModalBuilder:r.show,onCloseMainModalBuilder:n,minHeight:"",maxHeight:""},{default:a.withCtx(()=>[a.createElementVNode("div",q2,[a.createElementVNode("div",null,[r.CustomBuilderComponents?(a.openBlock(),a.createElementBlock("div",K2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(r.CustomBuilderComponents)))])):(a.openBlock(),a.createElementBlock("div",G2,[a.createVNode(U2,{customMediaComponent:a.unref(t)},null,8,["customMediaComponent"])]))])]),a.createElementVNode("div",J2,[a.createElementVNode("div",Y2,[r.firstButtonText?(a.openBlock(),a.createElementBlock("button",{key:0,ref:"firstButtonRef",class:"pbx-mySecondaryButton",type:"button",onClick:n},a.toDisplayString(r.firstButtonText),513)):a.createCommentVNode("",!0)])])]),_:1},8,["title","showModalBuilder"]))}},Q2={setup(){return{expanded:a.ref(!1)}}},Z2={class:"pbx-myPrimaryParagraph pbx-font-medium pbx-my-0 pbx-py-0"},$2={key:0,class:"material-symbols-outlined"},e5={key:1,class:"material-symbols-outlined"};function t5(r,e,t,o,n,i){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["pbx-flex pbx-flex-col pbx-border pbx-border-gray-400",{"":o.expanded}])},[a.createElementVNode("div",{class:"pbx-flex pbx-flex-row pbx-justify-between pbx-items-center pbx-pl-3 pbx-pr-3 pbx-py-5 pbx-cursor-pointer pbx-duration-200 hover:pbx-bg-myPrimaryLightGrayColor pbx-border-b pbx-border-gray-200",onClick:e[0]||(e[0]=s=>o.expanded=!o.expanded)},[a.createElementVNode("p",Z2,[a.renderSlot(r.$slots,"title")]),o.expanded?(a.openBlock(),a.createElementBlock("span",$2," keyboard_arrow_down ")):a.createCommentVNode("",!0),o.expanded?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("span",e5," chevron_right "))]),a.createElementVNode("div",{class:a.normalizeClass([[o.expanded?"pbx-block":"pbx-hidden"],"pbx-px-4 pbx-ease-linear pbx-duration-75"])},[a.renderSlot(r.$slots,"content")],2)],2)}const sr=Cl(Q2,[["render",t5]]),r5={class:"pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2 pbx-mb-4"},o5=["onClick"],n5={class:"pbx-flex pbx-items-center pbx-gap-1"},i5={class:"pbx-mr-1"},a5={class:"pbx-flex pbx-gap-2 pbx-item-center pbx-flex-col"},s5={class:"pbx-flex pbx-gap-2 pbx-item-center"},l5={class:"pbx-mt-1 pbx-relative pbx-flex pbx-items-center pbx-w-full pbx-border pbx-myPrimaryInput pbx-py-0 pbx-p-0"},p5={__name:"ClassEditor",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.computed(()=>e.getCurrentClasses);a.watch(n,l=>{o.value=l},{immediate:!0});const i=a.ref(""),s=async function(){t.handleAddClasses(i.value),await t.initializeElementStyles(),i.value=""};return(l,p)=>(a.openBlock(),a.createBlock(sr,null,{title:a.withCtx(()=>p[2]||(p[2]=[a.createTextVNode("Generated CSS")])),content:a.withCtx(()=>[a.createElementVNode("div",r5,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o.value,c=>(a.openBlock(),a.createElementBlock("div",{key:c,class:"pbx-myPrimaryTag pbx-cursor-pointer hover:pbx-bg-myPrimaryErrorColor hover:pbx-text-white pbx-text-xs pbx-py-2 pbx-font-medium",onClick:async()=>{a.unref(t).handleRemoveClasses(c),await a.unref(t).initializeElementStyles()}},[a.createElementVNode("div",n5,[a.createElementVNode("span",i5,a.toDisplayString(c),1)])],8,o5))),128))]),a.createElementVNode("div",a5,[a.createElementVNode("div",s5,[a.createElementVNode("div",l5,[a.withDirectives(a.createElementVNode("input",{"onUpdate:modelValue":p[0]||(p[0]=c=>i.value=c),type:"text",placeholder:"Type class",onKeydown:p[1]||(p[1]=a.withKeys(c=>s(),["enter"])),autocomplete:"off",class:"pbx-myPrimaryInput pbx-border-none pbx-rounded-r-none pbx-ml-0 pbx-w-full"},null,544),[[a.vModelText,i.value]]),p[3]||(p[3]=a.createElementVNode("div",{class:"pbx-border pbx-border-gray-200 pbx-border-none pbx-rounded pbx-flex pbx-items-center pbx-justify-center pbx-h-full pbx-w-8"},[a.createElementVNode("kbd",{class:"pbx-myPrimaryParagraph pbx-text-gray-400 pbx-border-none"}," ⏎ ")],-1))])]),p[4]||(p[4]=a.createElementVNode("p",{class:"pbx-myPrimaryInputError"},null,-1))])]),_:1}))}};function c5(r){return new Promise((e,t)=>{const o=new window.Image;o.onload=e,o.onerror=t,o.src=r})}const d5=["src"],u5={__name:"ImageEditor",setup(r){const e=ae,t=a.inject("CustomMediaComponent");new le(e),a.ref(!1);const o=a.ref(!1),n=a.ref(!1),i=a.ref(""),s=a.ref(""),l=a.ref(""),p=a.ref(null),c=a.ref(null),d=a.ref(null),u=a.computed(()=>(e.getBasePrimaryImage&&m(e.getBasePrimaryImage),e.getBasePrimaryImage));a.computed(()=>e.getElement);const b=function(){n.value=!0,i.value="Media Library",s.value=null,l.value="Close",p.value="Select image",d.value=function(){n.value=!1}},m=async function(f){o.value=!0,f&&typeof f=="string"&&f.length>2&&(await c5(f),await ga(200),o.value=!1)};return(f,h)=>(a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("div",null,h[0]||(h[0]=[a.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-center pbx-mt-4 pbx-min-h-80"},[a.createElementVNode("div",{class:"pbx-inline-block pbx-h-8 pbx-w-8 pbx-animate-spin pbx-rounded-full pbx-border-4 pbx-border-solid pbx-border-current pbx-border-r-transparent pbx-align-[-0.125em] motion-reduce:pbx-animate-[spin_1.5s_linear_infinite]"},[a.createElementVNode("span",{class:"!pbx-absolute !pbx-m-px !pbx-h-px !pbx-w-px !pbx-overflow-hidden !pbx-whitespace-nowrap !pbx-border-0 !pbx-p-0 !pbx-[clip:rect(0,0,0,0)]"},"Loading...")])],-1)]),512),[[a.vShow,o.value]]),a.withDirectives(a.createElementVNode("div",null,[a.createElementVNode("img",{class:"pbx-object-cover pbx-object-center pbx-w-full pbx-cursor-pointer",src:u.value,onClick:b,alt:"image"},null,8,d5)],512),[[a.vShow,u.value&&!o.value]]),a.createVNode(fb,{open:n.value,title:i.value,description:s.value,firstButtonText:l.value,secondButtonText:p.value,thirdButtonText:c.value,customMediaComponent:a.unref(t),onFirstMediaButtonFunction:d.value},null,8,["open","title","description","firstButtonText","secondButtonText","thirdButtonText","customMediaComponent","onFirstMediaButtonFunction"])]))}},b5={class:"pbx-my-2 pbx-py-2"},m5={class:"pbx-relative"},f5={class:"pbx-flex pbx-items-center pbx-gap-2"},h5={key:0},x5={class:"pbx-flex pbx-items-center"},g5={key:0,class:"pbx-aspect-square pbx-w-6 pbx-h-6"},y5={key:2,class:"pbx-ml-3"},w5={key:3,class:"pbx-ml-3"},v5={__name:"ManageBackgroundOpacity",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.computed(()=>e.getBackgroundOpacity);return a.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,s)=>(a.openBlock(),a.createElementBlock("div",b5,[s[4]||(s[4]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Background opacity",-1)),a.createVNode(a.unref(bn),{as:"div",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value=l)},{default:a.withCtx(()=>[a.createElementVNode("div",m5,[a.createVNode(a.unref(mn),{class:"pbx-myPrimarySelect"},{default:a.withCtx(()=>[a.createElementVNode("span",f5,[o.value==="none"?(a.openBlock(),a.createElementBlock("div",h5,s[1]||(s[1]=[a.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):a.createCommentVNode("",!0),o.value!=="none"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${o.value}`])},null,2)):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass(["pbx-block pbx-truncate",[(o.value!=="none","")]])},a.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),s[2]||(s[2]=a.createElementVNode("span",{class:"pbx-pointer-events-none pbx-absolute pbx-inset-y-0 pbx-right-0 pbx-ml-3 pbx-flex pbx-items-center pbx-pr-2"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),a.createVNode(a.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(fn),{class:"pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Sn).backgroundOpacities,l=>(a.openBlock(),a.createBlock(a.unref(hn),{as:"template",onClick:p=>a.unref(t).handleBackgroundOpacity(l),key:l,value:l},{default:a.withCtx(({active:p})=>[a.createElementVNode("li",{class:a.normalizeClass([p?"bg-myPrimaryLinkColor text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[a.createElementVNode("div",x5,[l==="none"?(a.openBlock(),a.createElementBlock("div",g5,s[3]||(s[3]=[a.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):a.createCommentVNode("",!0),l!=="none"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${l}`])},null,2)):a.createCommentVNode("",!0),l!=="none"?(a.openBlock(),a.createElementBlock("span",y5,a.toDisplayString(l),1)):a.createCommentVNode("",!0),l==="none"?(a.openBlock(),a.createElementBlock("span",w5,"Transparent")):a.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},k5={class:"pbx-my-2 pbx-py-2"},E5={class:"pbx-relative"},S5={class:"pbx-flex pbx-items-center pbx-gap-2"},C5={key:0},N5={class:"pbx-flex pbx-items-center"},B5={key:0},M5={key:2,class:"pbx-ml-3"},T5={key:3,class:"pbx-ml-3"},O5={__name:"ManageOpacity",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.computed(()=>e.getOpacity);return a.watch(n,async i=>{o.value=i,await t.initializeElementStyles()},{immediate:!0}),(i,s)=>(a.openBlock(),a.createElementBlock("div",k5,[s[4]||(s[4]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Opacity",-1)),a.createVNode(a.unref(bn),{as:"div",modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=l=>o.value=l)},{default:a.withCtx(()=>[a.createElementVNode("div",E5,[a.createVNode(a.unref(mn),{class:"pbx-myPrimarySelect"},{default:a.withCtx(()=>[a.createElementVNode("span",S5,[o.value==="none"?(a.openBlock(),a.createElementBlock("div",C5,s[1]||(s[1]=[a.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):a.createCommentVNode("",!0),o.value!=="none"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${o.value}`])},null,2)):a.createCommentVNode("",!0),a.createElementVNode("span",{class:a.normalizeClass(["pbx-block pbx-truncate",[(o.value!=="none","")]])},a.toDisplayString(o.value==="none"?"Transparent":o.value),3)]),s[2]||(s[2]=a.createElementVNode("span",{class:"pbx-pointer-events-none pbx-absolute pbx-inset-y-0 pbx-right-0 pbx-ml-3 pbx-flex pbx-items-center pbx-pr-2"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]),_:1,__:[2]}),a.createVNode(a.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(fn),{class:"pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Sn).opacities,l=>(a.openBlock(),a.createBlock(a.unref(hn),{as:"template",onClick:p=>a.unref(t).handleOpacity(l),key:l,value:l},{default:a.withCtx(({active:p})=>[a.createElementVNode("li",{class:a.normalizeClass([p?"pbx-bg-myPrimaryLinkColor text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[a.createElementVNode("div",N5,[l==="none"?(a.openBlock(),a.createElementBlock("div",B5,s[3]||(s[3]=[a.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):a.createCommentVNode("",!0),l!=="none"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`${l}`])},null,2)):a.createCommentVNode("",!0),l==="none"?(a.openBlock(),a.createElementBlock("span",M5,"Transparent")):a.createCommentVNode("",!0),l!=="none"?(a.openBlock(),a.createElementBlock("span",T5,a.toDisplayString(l),1)):a.createCommentVNode("",!0)])],2)]),_:2},1032,["onClick","value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},V5={__name:"OpacityEditor",setup(r){return(e,t)=>(a.openBlock(),a.createBlock(sr,null,{title:a.withCtx(()=>t[0]||(t[0]=[a.createTextVNode("Opacity & Transparency ")])),content:a.withCtx(()=>[a.createVNode(O5),t[1]||(t[1]=a.createElementVNode("hr",null,null,-1)),a.createVNode(v5)]),_:1}))}},P5={class:"pbx-my-2 pbx-py-2"},A5={class:"pbx-my-2 pbx-py-2"},D5={class:"pbx-my-2 pbx-py-2"},I5={class:"pbx-my-2 pbx-py-2"},L5={__name:"Typography",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.ref(null),i=a.ref(null),s=a.ref(null),l=a.ref(null),p=a.ref(null),c=a.ref(null),d=a.computed(()=>e.getFontBase),u=a.computed(()=>e.getFontDesktop),b=a.computed(()=>e.getFontTablet),m=a.computed(()=>e.getFontMobile),f=a.computed(()=>e.getFontWeight),h=a.computed(()=>e.getFontFamily),x=a.computed(()=>e.getFontStyle);return a.watch(d,async y=>{o.value=y,await t.initializeElementStyles()},{immediate:!0}),a.watch(u,async y=>{n.value=y,await t.initializeElementStyles()},{immediate:!0}),a.watch(b,async y=>{i.value=y,await t.initializeElementStyles()},{immediate:!0}),a.watch(m,async y=>{s.value=y,await t.initializeElementStyles()},{immediate:!0}),a.watch(f,async y=>{l.value=y,await t.initializeElementStyles()},{immediate:!0}),a.watch(h,async y=>{p.value=y,await t.initializeElementStyles()},{immediate:!0}),a.watch(x,async y=>{c.value=y,await t.initializeElementStyles()},{immediate:!0}),(y,w)=>(a.openBlock(),a.createBlock(sr,null,{title:a.withCtx(()=>w[14]||(w[14]=[a.createTextVNode(" Typographies ")])),content:a.withCtx(()=>[w[29]||(w[29]=a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},"Font Appearance",-1)),a.createElementVNode("div",P5,[w[16]||(w[16]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Font Size ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":w[0]||(w[0]=v=>o.value=v),class:"pbx-myPrimarySelect",onChange:w[1]||(w[1]=v=>a.unref(t).handleFontSizeBase(o.value))},[w[15]||(w[15]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(yo).fontBase,v=>(a.openBlock(),a.createElementBlock("option",{key:v},a.toDisplayString(v),1))),128))],544),[[a.vModelSelect,o.value]])]),a.createCommentVNode("",!0),w[30]||(w[30]=a.createElementVNode("hr",null,null,-1)),a.createElementVNode("div",A5,[w[24]||(w[24]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Font family ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":w[8]||(w[8]=v=>p.value=v),class:"pbx-myPrimarySelect",onChange:w[9]||(w[9]=v=>a.unref(t).handleFontFamily(p.value))},[w[23]||(w[23]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Dr).fontFamily,v=>(a.openBlock(),a.createElementBlock("option",{key:v},a.toDisplayString(v),1))),128))],544),[[a.vModelSelect,p.value]])]),w[31]||(w[31]=a.createElementVNode("hr",null,null,-1)),a.createElementVNode("div",D5,[w[26]||(w[26]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Font weight ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":w[10]||(w[10]=v=>l.value=v),class:"pbx-myPrimarySelect",onChange:w[11]||(w[11]=v=>a.unref(t).handleFontWeight(l.value))},[w[25]||(w[25]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Dr).fontWeight,v=>(a.openBlock(),a.createElementBlock("option",{key:v},a.toDisplayString(v),1))),128))],544),[[a.vModelSelect,l.value]])]),w[32]||(w[32]=a.createElementVNode("hr",null,null,-1)),a.createElementVNode("div",I5,[w[28]||(w[28]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Font Style ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":w[12]||(w[12]=v=>c.value=v),class:"pbx-myPrimarySelect",onChange:w[13]||(w[13]=v=>a.unref(t).handleFontStyle(c.value))},[w[27]||(w[27]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Dr).fontStyle,v=>(a.openBlock(),a.createElementBlock("option",{key:v},a.toDisplayString(v),1))),128))],544),[[a.vModelSelect,c.value]])])]),_:1}))}},R5={class:"pbx-my-2 pbx-py-2"},z5={class:"pbx-my-2 pbx-py-2"},_5={__name:"Padding",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.ref(null),i=a.ref(null),s=a.ref(null),l=a.computed(()=>e.getFontVerticalPadding),p=a.computed(()=>e.getFontHorizontalPadding),c=a.computed(()=>e.getFontVerticalMargin),d=a.computed(()=>e.getFontHorizontalMargin);return a.watch(l,async u=>{o.value=u,await t.initializeElementStyles()},{immediate:!0}),a.watch(p,async u=>{n.value=u,await t.initializeElementStyles()},{immediate:!0}),a.watch(c,async u=>{i.value=u,await t.initializeElementStyles()},{immediate:!0}),a.watch(d,async u=>{s.value=u,await t.initializeElementStyles()},{immediate:!0}),(u,b)=>(a.openBlock(),a.createBlock(sr,null,{title:a.withCtx(()=>b[4]||(b[4]=[a.createTextVNode("Padding")])),content:a.withCtx(()=>[a.createElementVNode("div",R5,[b[6]||(b[6]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Vertical Padding ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":b[0]||(b[0]=m=>o.value=m),class:"pbx-myPrimarySelect",onChange:b[1]||(b[1]=m=>a.unref(t).handleVerticalPadding(o.value))},[b[5]||(b[5]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(_t).verticalPadding,m=>(a.openBlock(),a.createElementBlock("option",{key:m},a.toDisplayString(m),1))),128))],544),[[a.vModelSelect,o.value]])]),b[9]||(b[9]=a.createElementVNode("hr",null,null,-1)),a.createElementVNode("div",z5,[b[8]||(b[8]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Horizontal Padding ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":b[2]||(b[2]=m=>n.value=m),class:"pbx-myPrimarySelect",onChange:b[3]||(b[3]=m=>a.unref(t).handleHorizontalPadding(n.value))},[b[7]||(b[7]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(_t).horizontalPadding,m=>(a.openBlock(),a.createElementBlock("option",{key:m},a.toDisplayString(m),1))),128))],544),[[a.vModelSelect,n.value]])])]),_:1}))}},F5={class:"pbx-my-2 pbx-py-2"},j5={class:"pbx-my-2 pbx-py-2"},H5={__name:"Margin",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.ref(null),i=a.ref(null),s=a.ref(null),l=a.computed(()=>e.getFontVerticalPadding),p=a.computed(()=>e.getFontHorizontalPadding),c=a.computed(()=>e.getFontVerticalMargin),d=a.computed(()=>e.getFontHorizontalMargin);return a.watch(l,async u=>{o.value=u,await t.initializeElementStyles()},{immediate:!0}),a.watch(p,async u=>{n.value=u,await t.initializeElementStyles()},{immediate:!0}),a.watch(c,async u=>{i.value=u,await t.initializeElementStyles()},{immediate:!0}),a.watch(d,async u=>{s.value=u,await t.initializeElementStyles()},{immediate:!0}),(u,b)=>(a.openBlock(),a.createBlock(sr,null,{title:a.withCtx(()=>b[4]||(b[4]=[a.createTextVNode("Margin")])),content:a.withCtx(()=>[a.createElementVNode("div",F5,[b[6]||(b[6]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Vertical Margin ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":b[0]||(b[0]=m=>i.value=m),class:"pbx-myPrimarySelect",onChange:b[1]||(b[1]=m=>a.unref(t).handleVerticalMargin(i.value))},[b[5]||(b[5]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(_t).verticalMargin,m=>(a.openBlock(),a.createElementBlock("option",{key:m},a.toDisplayString(m),1))),128))],544),[[a.vModelSelect,i.value]])]),b[9]||(b[9]=a.createElementVNode("hr",null,null,-1)),a.createElementVNode("div",j5,[b[8]||(b[8]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Horizontal Margin ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":b[2]||(b[2]=m=>s.value=m),class:"pbx-myPrimarySelect",onChange:b[3]||(b[3]=m=>a.unref(t).handleHorizontalMargin(s.value))},[b[7]||(b[7]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(_t).horizontalMargin,m=>(a.openBlock(),a.createElementBlock("option",{key:m},a.toDisplayString(m),1))),128))],544),[[a.vModelSelect,s.value]])])]),_:1}))}},W5={class:"pbx-my-2 pbx-py-2"},U5={class:"pbx-my-2 pbx-py-2"},q5={class:"pbx-my-2 pbx-py-2"},K5={class:"pbx-my-2 pbx-py-2"},G5={class:"pbx-my-2 pbx-py-2"},J5={__name:"BorderRadius",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.ref(null),i=a.ref(null),s=a.ref(null),l=a.ref(null),p=a.computed(()=>e.getBorderRadiusGlobal),c=a.computed(()=>e.getBorderRadiusTopLeft),d=a.computed(()=>e.getBorderRadiusTopRight),u=a.computed(()=>e.getBorderRadiusBottomleft),b=a.computed(()=>e.getBorderRadiusBottomRight);return a.watch(p,async m=>{o.value=m,await t.initializeElementStyles()},{immediate:!0}),a.watch(c,async m=>{n.value=m,await t.initializeElementStyles()},{immediate:!0}),a.watch(d,async m=>{i.value=m,await t.initializeElementStyles()},{immediate:!0}),a.watch(u,async m=>{s.value=m,await t.initializeElementStyles()},{immediate:!0}),a.watch(b,async m=>{l.value=m,await t.initializeElementStyles()},{immediate:!0}),(m,f)=>(a.openBlock(),a.createBlock(sr,null,{title:a.withCtx(()=>f[10]||(f[10]=[a.createTextVNode("Border Radius")])),content:a.withCtx(()=>[f[21]||(f[21]=a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},"Global",-1)),a.createElementVNode("div",W5,[f[12]||(f[12]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Radius ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),class:"pbx-myPrimarySelect",onChange:f[1]||(f[1]=h=>a.unref(t).handleBorderRadiusGlobal(o.value))},[f[11]||(f[11]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(ut).roundedGlobal,h=>(a.openBlock(),a.createElementBlock("option",{key:h},a.toDisplayString(h),1))),128))],544),[[a.vModelSelect,o.value]])]),f[22]||(f[22]=a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},"Specific",-1)),a.createElementVNode("div",U5,[f[14]||(f[14]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Radius top left ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":f[2]||(f[2]=h=>n.value=h),class:"pbx-myPrimarySelect",onChange:f[3]||(f[3]=h=>a.unref(t).handleBorderRadiusTopLeft(n.value))},[f[13]||(f[13]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(ut).roundedTopLeft,h=>(a.openBlock(),a.createElementBlock("option",{key:h},a.toDisplayString(h),1))),128))],544),[[a.vModelSelect,n.value]])]),a.createElementVNode("div",q5,[f[16]||(f[16]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Radius top right ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":f[4]||(f[4]=h=>i.value=h),class:"pbx-myPrimarySelect",onChange:f[5]||(f[5]=h=>a.unref(t).handleBorderRadiusTopRight(i.value))},[f[15]||(f[15]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(ut).roundedTopRight,h=>(a.openBlock(),a.createElementBlock("option",{key:h},a.toDisplayString(h),1))),128))],544),[[a.vModelSelect,i.value]])]),a.createElementVNode("div",K5,[f[18]||(f[18]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Radius bottom left ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":f[6]||(f[6]=h=>s.value=h),class:"pbx-myPrimarySelect",onChange:f[7]||(f[7]=h=>a.unref(t).handleBorderRadiusBottomleft(s.value))},[f[17]||(f[17]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(ut).roundedBottomLeft,h=>(a.openBlock(),a.createElementBlock("option",{key:h},a.toDisplayString(h),1))),128))],544),[[a.vModelSelect,s.value]])]),a.createElementVNode("div",G5,[f[20]||(f[20]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Radius bottom right ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":f[8]||(f[8]=h=>l.value=h),class:"pbx-myPrimarySelect",onChange:f[9]||(f[9]=h=>a.unref(t).handleBorderRadiusBottomRight(l.value))},[f[19]||(f[19]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(ut).roundedBottomRight,h=>(a.openBlock(),a.createElementBlock("option",{key:h},a.toDisplayString(h),1))),128))],544),[[a.vModelSelect,l.value]])])]),_:1}))}},Y5={class:"pbx-my-2 pbx-py-2"},X5={class:"pbx-my-2 pbx-py-2"},Q5={class:"pbx-relative pbx-mt-2"},Z5={class:"pbx-flex pbx-items-center pbx-gap-2"},$5={key:0},ek={class:"pbx-block pbx-truncate"},tk={class:"pbx-flex pbx-items-center"},rk={key:0},ok={key:2,class:"pbx-ml-3"},nk={key:3,class:"pbx-ml-3"},ik={__name:"Borders",setup(r){const e=ae,t=new le(e),o=a.ref(null),n=a.ref(null),i=a.ref(null),s=a.computed(()=>e.getBorderStyle),l=a.computed(()=>e.getBorderWidth),p=a.computed(()=>e.getBorderColor);return a.watch(s,async c=>{o.value=c,await t.initializeElementStyles()},{immediate:!0}),a.watch(l,async c=>{n.value=c,await t.initializeElementStyles()},{immediate:!0}),a.watch(p,async c=>{i.value=c,await t.initializeElementStyles()},{immediate:!0}),(c,d)=>(a.openBlock(),a.createBlock(sr,null,{title:a.withCtx(()=>d[6]||(d[6]=[a.createTextVNode("Border Style, Width & Color")])),content:a.withCtx(()=>[d[14]||(d[14]=a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-my-4"},"Border",-1)),a.createElementVNode("div",Y5,[d[8]||(d[8]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Style ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":d[0]||(d[0]=u=>o.value=u),class:"pbx-myPrimarySelect",onChange:d[1]||(d[1]=u=>a.unref(t).handleBorderStyle(o.value))},[d[7]||(d[7]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ir).borderStyle,u=>(a.openBlock(),a.createElementBlock("option",{key:u},a.toDisplayString(u),1))),128))],544),[[a.vModelSelect,o.value]])]),a.createElementVNode("div",X5,[d[10]||(d[10]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Width ",-1)),a.withDirectives(a.createElementVNode("select",{"onUpdate:modelValue":d[2]||(d[2]=u=>n.value=u),class:"pbx-myPrimarySelect",onChange:d[3]||(d[3]=u=>a.unref(t).handleBorderWidth(n.value))},[d[9]||(d[9]=a.createElementVNode("option",{disabled:"",value:""},"Select",-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ir).borderWidth,u=>(a.openBlock(),a.createElementBlock("option",{key:u},a.toDisplayString(u),1))),128))],544),[[a.vModelSelect,n.value]])]),d[15]||(d[15]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Border Color ",-1)),a.createVNode(a.unref(bn),{as:"div",modelValue:i.value,"onUpdate:modelValue":d[5]||(d[5]=u=>i.value=u)},{default:a.withCtx(()=>[a.createElementVNode("div",Q5,[a.createVNode(a.unref(mn),{class:"pbx-myPrimarySelect"},{default:a.withCtx(()=>{var u;return[a.createElementVNode("span",Z5,[p.value==="none"?(a.openBlock(),a.createElementBlock("div",$5,d[11]||(d[11]=[a.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):a.createCommentVNode("",!0),i.value!=="none"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-border pbx-border-gray-100 pbx-rounded-sm",`bg-${(u=i.value)==null?void 0:u.replace("border-","")}`])},null,2)):a.createCommentVNode("",!0),a.createElementVNode("span",ek,a.toDisplayString(i.value),1)]),d[12]||(d[12]=a.createElementVNode("span",{class:"pbx-pointer-events-none pbx-absolute pbx-inset-y-0 pbx-right-0 pbx-ml-3 pbx-flex pbx-items-center pbx-pr-2"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," keyboard_arrow_down ")],-1))]}),_:1,__:[12]}),a.createVNode(a.Transition,{"leave-active-class":"pbx-transition pbx-ease-in pbx-duration-100","leave-from-class":"pbx-opacity-100","leave-to-class":"pbx-opacity-0"},{default:a.withCtx(()=>[a.createVNode(a.unref(fn),{class:"pbx-absolute pbx-z-10 pbx-mt-1 pbx-max-h-56 pbx-w-full pbx-overflow-auto pbx-rounded-md pbx-bg-white pbx-py-1 pbx-text-base pbx-shadow-lg pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 focus:pbx-outline-none sm:pbx-text-sm"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(Ir).borderColor,u=>(a.openBlock(),a.createBlock(a.unref(hn),{as:"template",onClick:d[4]||(d[4]=b=>a.unref(t).handleBorderColor(i.value)),key:u,value:u},{default:a.withCtx(({active:b,borderColor:m})=>[a.createElementVNode("li",{class:a.normalizeClass([b?"pbx-bg-myPrimaryLinkColor pbx-text-white":"pbx-text-myPrimaryDarkGrayColor","pbx-relative pbx-cursor-default pbx-select-none pbx-py-2 pbx-pl-3 pbx-pr-9"])},[a.createElementVNode("div",tk,[u==="none"?(a.openBlock(),a.createElementBlock("div",rk,d[13]||(d[13]=[a.createElementVNode("div",{class:"pbx-myPrimaryColorPreview pbx-border-none"},[a.createElementVNode("span",{class:"material-symbols-outlined"}," ev_shadow ")],-1)]))):a.createCommentVNode("",!0),u!=="none"?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(["pbx-aspect-square pbx-w-6 pbx-h-6 pbx-bg-gray-950",`bg-${u.replace("border-","")}`])},null,2)):a.createCommentVNode("",!0),u==="none"?(a.openBlock(),a.createElementBlock("span",ok,"Transparent")):a.createCommentVNode("",!0),u!=="none"?(a.openBlock(),a.createElementBlock("span",nk,a.toDisplayString(u),1)):a.createCommentVNode("",!0)])],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),_:1}))}},ak={class:"pbx-blockease-linear pbx-duration-200 pbx-block pbx-ease-linear"},sk={key:0,class:"pbx-flex pbx-items-center pbx-justify-center pbx-mb-6"},lk={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},pk=a.defineComponent({__name:"TipTap",setup(r){const e=ae,t=new le(e);return(o,n)=>(a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",ak,[a.unref(t).isSelectedElementValidText()?(a.openBlock(),a.createElementBlock("div",sk,[a.createElementVNode("div",lk,[a.createElementVNode("button",{onClick:n[0]||(n[0]=i=>a.unref(t).toggleTipTapModal(!0)),type:"button",class:"pbx-myPrimaryTag"},n[1]||(n[1]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," edit ",-1),a.createElementVNode("span",null,"Edit text and links",-1)]))])])):a.createCommentVNode("",!0)])]))}}),ck={key:0,class:"pbx-border-b pbx-border-gray-200 pbx-mb-4 pbx-pb-8 pbx-pt-4"},dk={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},uk={class:"pbx-px-2 pbx-flex pbx-items-center pbx-justify-start pbx-gap-2 pbx-w-max"},bk={__name:"ElementEditor",setup(r){const e=ae,t=new le(e),o=a.computed(()=>e.getElement),n=a.computed(()=>e.getRestoredElement);return(i,s)=>o.value||n.value?(a.openBlock(),a.createBlock(sr,{key:0},{title:a.withCtx(()=>s[2]||(s[2]=[a.createTextVNode("Selected HTML Element")])),content:a.withCtx(()=>[s[9]||(s[9]=a.createElementVNode("div",{class:"pbx-flex pbx-flex-row pbx-flex-wrap pbx-gap-2 pbx-mt-2"},null,-1)),n.value?(a.openBlock(),a.createElementBlock("div",ck,[s[4]||(s[4]=a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0"},"Restore",-1)),s[5]||(s[5]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Restore the last deleted HTML element.",-1)),a.createElementVNode("div",dk,[a.createElementVNode("button",{onClick:s[0]||(s[0]=(...l)=>a.unref(t).handleRestoreElement&&a.unref(t).handleRestoreElement(...l)),type:"button",class:"pbx-myPrimaryButton pbx-w-full pbx-mt-4"},s[3]||(s[3]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," undo ",-1),a.createElementVNode("span",null,"Restore",-1)]))])])):a.createCommentVNode("",!0),o.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[s[7]||(s[7]=a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-font-medium pbx-py-0 pbx-mb-4 pbx-pt-4"},"Delete",-1)),s[8]||(s[8]=a.createElementVNode("label",{class:"pbx-myPrimaryInputLabel"}," Delete the currently selected HTML element from the page.",-1)),a.createElementVNode("div",uk,[a.createElementVNode("button",{onClick:s[1]||(s[1]=(...l)=>a.unref(t).handleDeleteElement&&a.unref(t).handleDeleteElement(...l)),type:"button",class:"pbx-myPrimaryDeleteButton pbx-w-full pbx-mt-4"},s[6]||(s[6]=[a.createElementVNode("span",{class:"hover:pbx-text-white"},"Delete element",-1)]))])],64)):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}},mk={class:"pbx-flex pbx-max-h-[50rem] pbx-flex-col"},fk={class:"pbx-flex pbx-flex-row pbx-justify-between pbx-pt-7 pbx-pr-4 pbx-pl-4 pbx-items-center pbx-mb-3"},hk={class:"pbx-font-medium pbx-text-sm"},xk={class:"pbx-lowercase"},gk={class:"pbx-pl-3 pbx-pr-3 pbx-mb-4 pbx-overflow-y-scroll"},yk={class:"pbx-mb-1"},wk={class:"pbx-mb-1"},vk={class:"pbx-my-1 pbx-bg-white"},kk={class:"pbx-my-1 pbx-bg-white"},Ek={class:"pbx-my-1 pbx-bg-white"},Sk={class:"pbx-my-1 pbx-bg-white"},Ck={class:"pbx-my-1 pbx-bg-white"},Nk={class:"pbx-my-1 pbx-bg-white"},Bk={class:"pbx-my-1 pbx-bg-white"},Mk={class:"pbx-my-1 pbx-bg-white"},Tk={__name:"RightSidebarEditor",emits:["closeEditor"],setup(r,{emit:e}){const t=ae,o=new le(t),n=a.computed(()=>t.getElement),i=a.computed(()=>{var s;return(s=n.value)==null?void 0:s.tagName});return a.computed(()=>n.value instanceof HTMLElement&&n.value.innerText.trim()!==" "||n.value instanceof HTMLImageElement),(s,l)=>(a.openBlock(),a.createElementBlock("div",mk,[a.createElementVNode("div",fk,[a.createElementVNode("button",{type:"button",onClick:l[0]||(l[0]=p=>s.$emit("closeEditor")),class:"pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"},l[1]||(l[1]=[a.createElementVNode("span",{class:"material-symbols-outlined"}," close ",-1)])),a.createElementVNode("p",hk,[l[2]||(l[2]=a.createTextVNode(" Editing ")),a.createElementVNode("span",xk,"<"+a.toDisplayString(i.value)+">",1)])]),a.createElementVNode("div",gk,[a.withDirectives(a.createElementVNode("div",null,[a.createElementVNode("article",yk,[a.createVNode(u5)]),a.createElementVNode("article",wk,[a.createVNode(pk)]),a.createElementVNode("article",vk,[a.createVNode(L5)]),a.createElementVNode("article",kk,[a.createVNode(V5)]),a.createElementVNode("article",Ek,[a.createVNode(_5)]),a.createElementVNode("article",Sk,[a.createVNode(H5)]),a.createElementVNode("article",Ck,[a.createVNode(J5)]),a.createElementVNode("article",Nk,[a.createVNode(ik)]),a.createElementVNode("article",Bk,[a.createVNode(p5)])],512),[[a.vShow,n.value&&a.unref(o).isEditableElement(n.value)]]),a.createElementVNode("div",null,[a.createElementVNode("article",Mk,[a.createVNode(bk)])]),l[3]||(l[3]=a.createElementVNode("article",{class:"pbx-mt-1 pbx-bg-white"},null,-1))])]))}},uo=function(r){return!r||typeof r=="object"&&r.constructor===Object&&Object.keys(r).length===0},Ok=ae,Ol=new le(Ok),Vk=function(r){if(!r.updateOrCreate||r.updateOrCreate&&typeof r.updateOrCreate.formType!="string"||r.updateOrCreate&&uo(r.updateOrCreate)){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&r.updateOrCreate.formType!=="create"&&r.updateOrCreate.formType!=="update"&&typeof r.formName!="string"){const e={...r,updateOrCreate:{formType:"create",formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}if(r.updateOrCreate&&typeof r.updateOrCreate.formType=="string"&&(r.updateOrCreate.formType==="create"||r.updateOrCreate.formType==="update")&&typeof r.updateOrCreate.formName!="string"||typeof r.updateOrCreate.formName=="string"&&r.updateOrCreate.formName.length===0){const e={...r,updateOrCreate:{formType:r.updateOrCreate.formType,formName:"post"}};return Ol.applyPageBuilderConfig(e),!0}},Pk='@import"https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&display=swap";@import"https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap";@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0";.pbx-container{width:100%}@media (min-width: 640px){.pbx-container{max-width:640px}}@media (min-width: 768px){.pbx-container{max-width:768px}}@media (min-width: 1024px){.pbx-container{max-width:1024px}}@media (min-width: 1280px){.pbx-container{max-width:1280px}}@media (min-width: 1536px){.pbx-container{max-width:1536px}}.pbx-myPrimaryWidthScreenModule{margin-bottom:0}@media (min-width: 768px){.pbx-myPrimaryWidthScreenModule{margin-bottom:0}}.pbx-myPrimaryWidthScreenModule{padding-top:4rem;padding-bottom:4rem}@media (min-width: 768px){.pbx-myPrimaryWidthScreenModule{padding-top:7rem;padding-bottom:7rem}}.pbx-myPrimaryContentSection{margin-left:auto;margin-right:auto;max-width:80rem;padding-left:1rem;padding-right:1rem;padding-bottom:1.5rem}@media (min-width: 768px){.pbx-myPrimaryContentSection{padding-left:1rem;padding-right:1rem;padding-bottom:2rem}}@media (min-width: 1024px){.pbx-myPrimaryContentSection{padding-bottom:2.5rem}}.pbx-myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -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)}@media (min-width: 640px){.pbx-myPrimaryTag{width:auto}}.pbx-myPrimaryParagraph{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.pbx-myPrimaryParagraph{font-size:1rem;line-height:1.5rem}}.pbx-myPrimaryParagraphError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.pbx-myPrimaryParagraphError{font-size:1rem;line-height:1.5rem}}.pbx-myPrimaryParagraphError{margin-top:.25rem;font-style:italic;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.pbx-mySecondaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-family:Cormorant;font-size:1.875rem;line-height:2.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.pbx-mySecondaryHeader{margin-bottom:1rem;font-size:2.25rem;line-height:2.5rem}}@media (min-width: 1024px){.pbx-mySecondaryHeader{margin-bottom:2rem;font-size:3rem;line-height:1}}.pbx-myTertiaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1.5rem;line-height:2rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.pbx-myTertiaryHeader{margin-bottom:1rem;font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.pbx-myTertiaryHeader{margin-bottom:2rem;font-size:1.875rem;line-height:2.25rem}}.pbx-myQuaternaryHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.pbx-myQuaternaryHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.pbx-myQuaternaryHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.pbx-myPrimaryLink{cursor:pointer;--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.pbx-myPrimaryLink:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }.pbx-myPrimaryLink:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }.pbx-myPrimaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-myPrimaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.pbx-myPrimaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px }.pbx-myPrimaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }@media (min-width: 640px){.pbx-myPrimaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.pbx-myPrimaryButton{padding:.75rem 1rem}}.pbx-mySecondaryButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-mySecondaryButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.pbx-mySecondaryButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px }.pbx-mySecondaryButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }@media (min-width: 640px){.pbx-mySecondaryButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.pbx-mySecondaryButton{padding:.75rem 1rem}}.pbx-mySecondaryButton{--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-mySecondaryButton:hover{background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));--tw-bg-opacity: .9;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.pbx-mySecondaryButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(239 242 246 / var(--tw-ring-opacity, 1)) }.pbx-myPrimaryDeleteButton{display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;white-space:nowrap;word-break:keep-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1));padding:.75rem;font-size:.75rem;line-height:1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.pbx-myPrimaryDeleteButton:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px }.pbx-myPrimaryDeleteButton:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }@media (min-width: 640px){.pbx-myPrimaryDeleteButton{width:auto;font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.pbx-myPrimaryDeleteButton{padding:.75rem 1rem}}.pbx-myPrimaryDeleteButton,.pbx-myPrimaryDeleteButton:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.pbx-myPrimaryDeleteButton:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1)) }.pbx-myMediumIcon{display:flex;height:1.5rem;width:1.5rem;flex-shrink:0;align-items:center;justify-content:center;stroke-width:1.5px}.pbx-myPrimaryGap{gap:1rem}.pbx-mysearchBarWithOptions{display:flex;gap:.5rem;border-radius:9999px;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1));padding-left:1rem}.pbx-myPrimarySearchInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px }.pbx-myPrimarySearchInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-myPrimarySearchInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.pbx-myPrimarySearchInput::placeholder{font-weight:400;accent-color:#d1d5db}.pbx-myPrimarySearchInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.pbx-myPrimarySearchInput{font-size:.875rem;line-height:1.25rem}}.pbx-myPrimarySearchInput{height:100%;border-style:none;background-color:transparent;padding-top:1rem;padding-bottom:1rem;padding-left:2.5rem;font-size:.875rem;line-height:1.25rem;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}.pbx-myPrimarySearchInput:focus{border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-offset-width: 0px }.pbx-myPrimaryFormOrganizationHeaderDescriptionSection{margin-bottom:1rem}.pbx-myPrimaryFormOrganizationHeader{margin-bottom:.5rem;overflow-wrap:break-word;font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 768px){.pbx-myPrimaryFormOrganizationHeader{margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem}}@media (min-width: 1024px){.pbx-myPrimaryFormOrganizationHeader{margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem}}.pbx-myPrimaryFormOrganizationHeader{margin:0;padding-top:1rem}.pbx-myInputGroup{margin-bottom:.5rem;width:100%;align-self:flex-start;padding-left:.5rem;padding-right:.5rem}.pbx-myPrimaryInputLabel{margin-top:0;margin-bottom:0;margin-bottom:.5rem;display:block;text-align:left;font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.pbx-myPrimaryInput:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px }.pbx-myPrimaryInput{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-myPrimaryInput::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.pbx-myPrimaryInput::placeholder{font-weight:400;accent-color:#d1d5db}.pbx-myPrimaryInput:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.pbx-myPrimaryInput{font-size:.875rem;line-height:1.25rem}}.pbx-myPrimaryInputError{font-size:.875rem;line-height:1.25rem;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 1024px){.pbx-myPrimaryInputError{font-size:1rem;line-height:1.5rem}}.pbx-myPrimaryInputError{margin-top:.25rem;display:block;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.pbx-myPrimarySelect:focus{border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1));--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1));--tw-ring-offset-width: 2px }.pbx-myPrimarySelect{display:block;height:100%;width:100%;border-radius:.375rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:.75rem 2rem .75rem .75rem;text-align:left;font-weight:400;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-myPrimarySelect::-moz-placeholder{font-weight:400;accent-color:#d1d5db}.pbx-myPrimarySelect::placeholder{font-weight:400;accent-color:#d1d5db}.pbx-myPrimarySelect:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));outline:2px solid transparent;outline-offset:2px}@media (min-width: 640px){.pbx-myPrimarySelect{font-size:.875rem;line-height:1.25rem}}.pbx-myPrimarySelect{position:relative;width:100%}.pbx-myPrimaryColorPreview{aspect-ratio:1 / 1;min-height:1.5rem;cursor:pointer;border-radius:.125rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.pbx-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}.pbx-pointer-events-none{pointer-events:none}.pbx-pointer-events-auto{pointer-events:auto}.pbx-visible{visibility:visible}.pbx-invisible{visibility:hidden}.pbx-collapse{visibility:collapse}.pbx-static{position:static}.pbx-fixed{position:fixed}.\\!pbx-absolute{position:absolute!important}.pbx-absolute{position:absolute}.pbx-relative{position:relative}.pbx-sticky{position:sticky}.pbx-inset-0{top:0;right:0;bottom:0;left:0}.pbx-inset-x-0{left:0;right:0}.pbx-inset-y-0{top:0;bottom:0}.pbx-left-0{left:0}.pbx-right-0{right:0}.pbx-top-0{top:0}.pbx-z-0{z-index:0}.pbx-z-10{z-index:10}.pbx-z-20{z-index:20}.pbx-z-30{z-index:30}.pbx-z-40{z-index:40}.pbx-z-50{z-index:50}.pbx-z-auto{z-index:auto}.pbx-col-span-1{grid-column:span 1 / span 1}.\\!pbx-m-px{margin:1px!important}.pbx-m-0{margin:0}.pbx-m-0\\.5{margin:.125rem}.pbx-m-1{margin:.25rem}.pbx-m-10{margin:2.5rem}.pbx-m-11{margin:2.75rem}.pbx-m-12{margin:3rem}.pbx-m-14{margin:3.5rem}.pbx-m-16{margin:4rem}.pbx-m-2{margin:.5rem}.pbx-m-20{margin:5rem}.pbx-m-24{margin:6rem}.pbx-m-28{margin:7rem}.pbx-m-3{margin:.75rem}.pbx-m-32{margin:8rem}.pbx-m-36{margin:9rem}.pbx-m-4{margin:1rem}.pbx-m-40{margin:10rem}.pbx-m-44{margin:11rem}.pbx-m-48{margin:12rem}.pbx-m-5{margin:1.25rem}.pbx-m-52{margin:13rem}.pbx-m-56{margin:14rem}.pbx-m-6{margin:1.5rem}.pbx-m-60{margin:15rem}.pbx-m-64{margin:16rem}.pbx-m-7{margin:1.75rem}.pbx-m-72{margin:18rem}.pbx-m-8{margin:2rem}.pbx-m-80{margin:20rem}.pbx-m-9{margin:2.25rem}.pbx-m-96{margin:24rem}.pbx-mx-0{margin-left:0;margin-right:0}.pbx-mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.pbx-mx-1{margin-left:.25rem;margin-right:.25rem}.pbx-mx-1\\.5{margin-left:.375rem;margin-right:.375rem}.pbx-mx-10{margin-left:2.5rem;margin-right:2.5rem}.pbx-mx-11{margin-left:2.75rem;margin-right:2.75rem}.pbx-mx-12{margin-left:3rem;margin-right:3rem}.pbx-mx-14{margin-left:3.5rem;margin-right:3.5rem}.pbx-mx-16{margin-left:4rem;margin-right:4rem}.pbx-mx-2{margin-left:.5rem;margin-right:.5rem}.pbx-mx-2\\.5{margin-left:.625rem;margin-right:.625rem}.pbx-mx-20{margin-left:5rem;margin-right:5rem}.pbx-mx-24{margin-left:6rem;margin-right:6rem}.pbx-mx-28{margin-left:7rem;margin-right:7rem}.pbx-mx-3{margin-left:.75rem;margin-right:.75rem}.pbx-mx-3\\.5{margin-left:.875rem;margin-right:.875rem}.pbx-mx-32{margin-left:8rem;margin-right:8rem}.pbx-mx-36{margin-left:9rem;margin-right:9rem}.pbx-mx-4{margin-left:1rem;margin-right:1rem}.pbx-mx-40{margin-left:10rem;margin-right:10rem}.pbx-mx-44{margin-left:11rem;margin-right:11rem}.pbx-mx-48{margin-left:12rem;margin-right:12rem}.pbx-mx-5{margin-left:1.25rem;margin-right:1.25rem}.pbx-mx-52{margin-left:13rem;margin-right:13rem}.pbx-mx-56{margin-left:14rem;margin-right:14rem}.pbx-mx-6{margin-left:1.5rem;margin-right:1.5rem}.pbx-mx-60{margin-left:15rem;margin-right:15rem}.pbx-mx-64{margin-left:16rem;margin-right:16rem}.pbx-mx-7{margin-left:1.75rem;margin-right:1.75rem}.pbx-mx-72{margin-left:18rem;margin-right:18rem}.pbx-mx-8{margin-left:2rem;margin-right:2rem}.pbx-mx-80{margin-left:20rem;margin-right:20rem}.pbx-mx-9{margin-left:2.25rem;margin-right:2.25rem}.pbx-mx-96{margin-left:24rem;margin-right:24rem}.pbx-mx-auto{margin-left:auto;margin-right:auto}.pbx-my-0{margin-top:0;margin-bottom:0}.pbx-my-0\\.5{margin-top:.125rem;margin-bottom:.125rem}.pbx-my-1{margin-top:.25rem;margin-bottom:.25rem}.pbx-my-1\\.5{margin-top:.375rem;margin-bottom:.375rem}.pbx-my-10{margin-top:2.5rem;margin-bottom:2.5rem}.pbx-my-11{margin-top:2.75rem;margin-bottom:2.75rem}.pbx-my-12{margin-top:3rem;margin-bottom:3rem}.pbx-my-14{margin-top:3.5rem;margin-bottom:3.5rem}.pbx-my-16{margin-top:4rem;margin-bottom:4rem}.pbx-my-2{margin-top:.5rem;margin-bottom:.5rem}.pbx-my-2\\.5{margin-top:.625rem;margin-bottom:.625rem}.pbx-my-20{margin-top:5rem;margin-bottom:5rem}.pbx-my-24{margin-top:6rem;margin-bottom:6rem}.pbx-my-28{margin-top:7rem;margin-bottom:7rem}.pbx-my-3{margin-top:.75rem;margin-bottom:.75rem}.pbx-my-3\\.5{margin-top:.875rem;margin-bottom:.875rem}.pbx-my-32{margin-top:8rem;margin-bottom:8rem}.pbx-my-36{margin-top:9rem;margin-bottom:9rem}.pbx-my-4{margin-top:1rem;margin-bottom:1rem}.pbx-my-40{margin-top:10rem;margin-bottom:10rem}.pbx-my-44{margin-top:11rem;margin-bottom:11rem}.pbx-my-48{margin-top:12rem;margin-bottom:12rem}.pbx-my-5{margin-top:1.25rem;margin-bottom:1.25rem}.pbx-my-52{margin-top:13rem;margin-bottom:13rem}.pbx-my-56{margin-top:14rem;margin-bottom:14rem}.pbx-my-6{margin-top:1.5rem;margin-bottom:1.5rem}.pbx-my-60{margin-top:15rem;margin-bottom:15rem}.pbx-my-64{margin-top:16rem;margin-bottom:16rem}.pbx-my-7{margin-top:1.75rem;margin-bottom:1.75rem}.pbx-my-72{margin-top:18rem;margin-bottom:18rem}.pbx-my-8{margin-top:2rem;margin-bottom:2rem}.pbx-my-80{margin-top:20rem;margin-bottom:20rem}.pbx-my-9{margin-top:2.25rem;margin-bottom:2.25rem}.pbx-my-96{margin-top:24rem;margin-bottom:24rem}.-pbx-ml-16{margin-left:-4rem}.-pbx-mt-2{margin-top:-.5rem}.pbx-mb-0{margin-bottom:0}.pbx-mb-1{margin-bottom:.25rem}.pbx-mb-2{margin-bottom:.5rem}.pbx-mb-3{margin-bottom:.75rem}.pbx-mb-4{margin-bottom:1rem}.pbx-mb-6{margin-bottom:1.5rem}.pbx-mb-8{margin-bottom:2rem}.pbx-mb-px{margin-bottom:1px}.pbx-ml-0{margin-left:0}.pbx-ml-2{margin-left:.5rem}.pbx-ml-3{margin-left:.75rem}.pbx-ml-auto{margin-left:auto}.pbx-mr-1{margin-right:.25rem}.pbx-mr-2{margin-right:.5rem}.pbx-mr-4{margin-right:1rem}.pbx-mt-1{margin-top:.25rem}.pbx-mt-2{margin-top:.5rem}.pbx-mt-3{margin-top:.75rem}.pbx-mt-4{margin-top:1rem}.pbx-mt-6{margin-top:1.5rem}.pbx-mt-8{margin-top:2rem}.pbx-block{display:block}.pbx-inline-block{display:inline-block}.pbx-inline{display:inline}.pbx-flex{display:flex}.pbx-inline-flex{display:inline-flex}.pbx-grid{display:grid}.pbx-inline-grid{display:inline-grid}.pbx-hidden{display:none}.pbx-aspect-\\[16\\/9\\]{aspect-ratio:16/9}.pbx-aspect-\\[21\\/9\\]{aspect-ratio:21/9}.pbx-aspect-\\[4\\/3\\]{aspect-ratio:4/3}.pbx-aspect-\\[9\\/16\\]{aspect-ratio:9/16}.pbx-aspect-auto{aspect-ratio:auto}.pbx-aspect-square{aspect-ratio:1 / 1}.pbx-aspect-video{aspect-ratio:16 / 9}.pbx-size-3{width:.75rem;height:.75rem}.\\!pbx-h-px{height:1px!important}.pbx-h-1{height:.25rem}.pbx-h-10{height:2.5rem}.pbx-h-11{height:2.75rem}.pbx-h-12{height:3rem}.pbx-h-14{height:3.5rem}.pbx-h-16{height:4rem}.pbx-h-2{height:.5rem}.pbx-h-20{height:5rem}.pbx-h-24{height:6rem}.pbx-h-28{height:7rem}.pbx-h-3{height:.75rem}.pbx-h-32{height:8rem}.pbx-h-36{height:9rem}.pbx-h-4{height:1rem}.pbx-h-40{height:10rem}.pbx-h-44{height:11rem}.pbx-h-48{height:12rem}.pbx-h-5{height:1.25rem}.pbx-h-52{height:13rem}.pbx-h-56{height:14rem}.pbx-h-6{height:1.5rem}.pbx-h-60{height:15rem}.pbx-h-64{height:16rem}.pbx-h-7{height:1.75rem}.pbx-h-72{height:18rem}.pbx-h-8{height:2rem}.pbx-h-80{height:20rem}.pbx-h-9{height:2.25rem}.pbx-h-96{height:24rem}.pbx-h-\\[10vh\\]{height:10vh}.pbx-h-\\[39rem\\]{height:39rem}.pbx-h-\\[75vh\\]{height:75vh}.pbx-h-\\[90vh\\]{height:90vh}.pbx-h-auto{height:auto}.pbx-h-fit{height:-moz-fit-content;height:fit-content}.pbx-h-full{height:100%}.pbx-h-max{height:-moz-max-content;height:max-content}.pbx-h-min{height:-moz-min-content;height:min-content}.pbx-h-screen{height:100vh}.pbx-max-h-0{max-height:0px}.pbx-max-h-1{max-height:.25rem}.pbx-max-h-10{max-height:2.5rem}.pbx-max-h-11{max-height:2.75rem}.pbx-max-h-12{max-height:3rem}.pbx-max-h-14{max-height:3.5rem}.pbx-max-h-16{max-height:4rem}.pbx-max-h-2{max-height:.5rem}.pbx-max-h-20{max-height:5rem}.pbx-max-h-24{max-height:6rem}.pbx-max-h-28{max-height:7rem}.pbx-max-h-3{max-height:.75rem}.pbx-max-h-32{max-height:8rem}.pbx-max-h-36{max-height:9rem}.pbx-max-h-4{max-height:1rem}.pbx-max-h-40{max-height:10rem}.pbx-max-h-44{max-height:11rem}.pbx-max-h-48{max-height:12rem}.pbx-max-h-5{max-height:1.25rem}.pbx-max-h-52{max-height:13rem}.pbx-max-h-56{max-height:14rem}.pbx-max-h-6{max-height:1.5rem}.pbx-max-h-60{max-height:15rem}.pbx-max-h-64{max-height:16rem}.pbx-max-h-7{max-height:1.75rem}.pbx-max-h-72{max-height:18rem}.pbx-max-h-8{max-height:2rem}.pbx-max-h-80{max-height:20rem}.pbx-max-h-9{max-height:2.25rem}.pbx-max-h-96{max-height:24rem}.pbx-max-h-\\[20rem\\]{max-height:20rem}.pbx-max-h-\\[33rem\\]{max-height:33rem}.pbx-max-h-\\[50rem\\]{max-height:50rem}.pbx-max-h-\\[98vh\\]{max-height:98vh}.pbx-max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.pbx-max-h-full{max-height:100%}.pbx-max-h-max{max-height:-moz-max-content;max-height:max-content}.pbx-max-h-min{max-height:-moz-min-content;max-height:min-content}.pbx-max-h-screen{max-height:100vh}.pbx-min-h-0{min-height:0px}.pbx-min-h-1{min-height:.25rem}.pbx-min-h-10{min-height:2.5rem}.pbx-min-h-11{min-height:2.75rem}.pbx-min-h-12{min-height:3rem}.pbx-min-h-14{min-height:3.5rem}.pbx-min-h-16{min-height:4rem}.pbx-min-h-2{min-height:.5rem}.pbx-min-h-20{min-height:5rem}.pbx-min-h-24{min-height:6rem}.pbx-min-h-28{min-height:7rem}.pbx-min-h-3{min-height:.75rem}.pbx-min-h-32{min-height:8rem}.pbx-min-h-36{min-height:9rem}.pbx-min-h-4{min-height:1rem}.pbx-min-h-40{min-height:10rem}.pbx-min-h-44{min-height:11rem}.pbx-min-h-48{min-height:12rem}.pbx-min-h-5{min-height:1.25rem}.pbx-min-h-52{min-height:13rem}.pbx-min-h-56{min-height:14rem}.pbx-min-h-6{min-height:1.5rem}.pbx-min-h-60{min-height:15rem}.pbx-min-h-64{min-height:16rem}.pbx-min-h-7{min-height:1.75rem}.pbx-min-h-72{min-height:18rem}.pbx-min-h-8{min-height:2rem}.pbx-min-h-80{min-height:20rem}.pbx-min-h-9{min-height:2.25rem}.pbx-min-h-96{min-height:24rem}.pbx-min-h-\\[12rem\\]{min-height:12rem}.pbx-min-h-\\[2\\.5rem\\]{min-height:2.5rem}.pbx-min-h-\\[20rem\\]{min-height:20rem}.pbx-min-h-\\[33rem\\]{min-height:33rem}.pbx-min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.pbx-min-h-full{min-height:100%}.pbx-min-h-max{min-height:-moz-max-content;min-height:max-content}.pbx-min-h-min{min-height:-moz-min-content;min-height:min-content}.pbx-min-h-screen{min-height:100vh}.\\!pbx-w-px{width:1px!important}.pbx-w-0{width:0px}.pbx-w-1{width:.25rem}.pbx-w-10{width:2.5rem}.pbx-w-11{width:2.75rem}.pbx-w-12{width:3rem}.pbx-w-14{width:3.5rem}.pbx-w-16{width:4rem}.pbx-w-2{width:.5rem}.pbx-w-20{width:5rem}.pbx-w-24{width:6rem}.pbx-w-28{width:7rem}.pbx-w-3{width:.75rem}.pbx-w-3\\/12{width:25%}.pbx-w-32{width:8rem}.pbx-w-36{width:9rem}.pbx-w-4{width:1rem}.pbx-w-40{width:10rem}.pbx-w-44{width:11rem}.pbx-w-48{width:12rem}.pbx-w-5{width:1.25rem}.pbx-w-52{width:13rem}.pbx-w-56{width:14rem}.pbx-w-6{width:1.5rem}.pbx-w-60{width:15rem}.pbx-w-64{width:16rem}.pbx-w-7{width:1.75rem}.pbx-w-72{width:18rem}.pbx-w-8{width:2rem}.pbx-w-80{width:20rem}.pbx-w-9{width:2.25rem}.pbx-w-9\\/12{width:75%}.pbx-w-96{width:24rem}.pbx-w-auto{width:auto}.pbx-w-fit{width:-moz-fit-content;width:fit-content}.pbx-w-full{width:100%}.pbx-w-max{width:-moz-max-content;width:max-content}.pbx-w-min{width:-moz-min-content;width:min-content}.pbx-w-screen{width:100vw}.pbx-min-w-0{min-width:0px}.pbx-min-w-1{min-width:.25rem}.pbx-min-w-10{min-width:2.5rem}.pbx-min-w-11{min-width:2.75rem}.pbx-min-w-12{min-width:3rem}.pbx-min-w-14{min-width:3.5rem}.pbx-min-w-16{min-width:4rem}.pbx-min-w-2{min-width:.5rem}.pbx-min-w-20{min-width:5rem}.pbx-min-w-24{min-width:6rem}.pbx-min-w-28{min-width:7rem}.pbx-min-w-3{min-width:.75rem}.pbx-min-w-32{min-width:8rem}.pbx-min-w-36{min-width:9rem}.pbx-min-w-4{min-width:1rem}.pbx-min-w-40{min-width:10rem}.pbx-min-w-44{min-width:11rem}.pbx-min-w-48{min-width:12rem}.pbx-min-w-5{min-width:1.25rem}.pbx-min-w-52{min-width:13rem}.pbx-min-w-56{min-width:14rem}.pbx-min-w-6{min-width:1.5rem}.pbx-min-w-60{min-width:15rem}.pbx-min-w-64{min-width:16rem}.pbx-min-w-7{min-width:1.75rem}.pbx-min-w-72{min-width:18rem}.pbx-min-w-8{min-width:2rem}.pbx-min-w-80{min-width:20rem}.pbx-min-w-9{min-width:2.25rem}.pbx-min-w-96{min-width:24rem}.pbx-min-w-\\[12rem\\]{min-width:12rem}.pbx-min-w-\\[3\\.5rem\\]{min-width:3.5rem}.pbx-min-w-\\[30rem\\]{min-width:30rem}.pbx-min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.pbx-min-w-full{min-width:100%}.pbx-min-w-max{min-width:-moz-max-content;min-width:max-content}.pbx-min-w-min{min-width:-moz-min-content;min-width:min-content}.pbx-max-w-1{max-width:.25rem}.pbx-max-w-10{max-width:2.5rem}.pbx-max-w-11{max-width:2.75rem}.pbx-max-w-12{max-width:3rem}.pbx-max-w-14{max-width:3.5rem}.pbx-max-w-16{max-width:4rem}.pbx-max-w-2{max-width:.5rem}.pbx-max-w-20{max-width:5rem}.pbx-max-w-24{max-width:6rem}.pbx-max-w-28{max-width:7rem}.pbx-max-w-3{max-width:.75rem}.pbx-max-w-32{max-width:8rem}.pbx-max-w-36{max-width:9rem}.pbx-max-w-4{max-width:1rem}.pbx-max-w-40{max-width:10rem}.pbx-max-w-44{max-width:11rem}.pbx-max-w-48{max-width:12rem}.pbx-max-w-5{max-width:1.25rem}.pbx-max-w-52{max-width:13rem}.pbx-max-w-56{max-width:14rem}.pbx-max-w-6{max-width:1.5rem}.pbx-max-w-60{max-width:15rem}.pbx-max-w-64{max-width:16rem}.pbx-max-w-7{max-width:1.75rem}.pbx-max-w-72{max-width:18rem}.pbx-max-w-8{max-width:2rem}.pbx-max-w-80{max-width:20rem}.pbx-max-w-9{max-width:2.25rem}.pbx-max-w-96{max-width:24rem}.pbx-max-w-\\[96vh\\]{max-width:96vh}.pbx-max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.pbx-max-w-full{max-width:100%}.pbx-max-w-lg{max-width:32rem}.pbx-max-w-max{max-width:-moz-max-content;max-width:max-content}.pbx-max-w-md{max-width:28rem}.pbx-max-w-min{max-width:-moz-min-content;max-width:min-content}.pbx-max-w-prose{max-width:65ch}.pbx-max-w-screen-lg{max-width:1024px}.pbx-max-w-screen-md{max-width:768px}.pbx-max-w-screen-sm{max-width:640px}.pbx-max-w-screen-xl{max-width:1280px}.pbx-max-w-sm{max-width:24rem}.pbx-max-w-xl{max-width:36rem}.pbx-max-w-xs{max-width:20rem}.pbx-flex-1{flex:1 1 0%}.pbx-flex-shrink-0{flex-shrink:0}.pbx-grow{flex-grow:1}.pbx-translate-x-0{--tw-translate-x: 0px;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))}.pbx-translate-x-5{--tw-translate-x: 1.25rem;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))}.pbx-translate-y-2{--tw-translate-y: .5rem;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))}.pbx-rotate-0{--tw-rotate: 0deg;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))}.pbx-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))}.pbx-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))}.pbx-rotate-90{--tw-rotate: 90deg;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))}.pbx-scale-0{--tw-scale-x: 0;--tw-scale-y: 0;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))}.pbx-scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.pbx-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))}.pbx-scale-110{--tw-scale-x: 1.1;--tw-scale-y: 1.1;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))}.pbx-scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;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))}.pbx-scale-150{--tw-scale-x: 1.5;--tw-scale-y: 1.5;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))}.pbx-scale-50{--tw-scale-x: .5;--tw-scale-y: .5;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))}.pbx-scale-75{--tw-scale-x: .75;--tw-scale-y: .75;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))}.pbx-scale-90{--tw-scale-x: .9;--tw-scale-y: .9;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))}.pbx-scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.pbx-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))}.pbx-transform-none{transform:none}@keyframes pbx-bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.pbx-animate-bounce{animation:pbx-bounce 1s infinite}.pbx-animate-none{animation:none}@keyframes pbx-ping{75%,to{transform:scale(2);opacity:0}}.pbx-animate-ping{animation:pbx-ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pbx-pulse{50%{opacity:.5}}.pbx-animate-pulse{animation:pbx-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes pbx-spin{to{transform:rotate(360deg)}}.pbx-animate-spin{animation:pbx-spin 1s linear infinite}.pbx-cursor-default{cursor:default}.pbx-cursor-move{cursor:move}.pbx-cursor-not-allowed{cursor:not-allowed}.pbx-cursor-pointer{cursor:pointer}.pbx-cursor-text{cursor:text}.pbx-cursor-wait{cursor:wait}.pbx-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.pbx-select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.pbx-select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.pbx-select-auto{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.pbx-resize-none{resize:none}.pbx-resize-y{resize:vertical}.pbx-resize-x{resize:horizontal}.pbx-resize{resize:both}.pbx-snap-none{scroll-snap-type:none}.pbx-snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.pbx-snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.pbx-snap-both{scroll-snap-type:both var(--tw-scroll-snap-strictness)}.pbx-snap-mandatory{--tw-scroll-snap-strictness: mandatory }.pbx-snap-proximity{--tw-scroll-snap-strictness: proximity }.pbx-snap-start{scroll-snap-align:start}.pbx-snap-end{scroll-snap-align:end}.pbx-snap-center{scroll-snap-align:center}.pbx-snap-align-none{scroll-snap-align:none}.pbx-list-inside{list-style-position:inside}.pbx-list-outside{list-style-position:outside}.pbx-list-decimal{list-style-type:decimal}.pbx-list-disc{list-style-type:disc}.pbx-list-none{list-style-type:none}.pbx-auto-cols-\\[minmax\\(100px\\,_1fr\\)\\]{grid-auto-columns:minmax(100px,1fr)}.pbx-auto-cols-fr{grid-auto-columns:minmax(0,1fr)}.pbx-auto-cols-max{grid-auto-columns:max-content}.pbx-auto-cols-min{grid-auto-columns:min-content}.pbx-grid-flow-col{grid-auto-flow:column}.pbx-grid-flow-row-dense{grid-auto-flow:row dense}.pbx-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.pbx-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.pbx-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.pbx-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.pbx-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.pbx-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.pbx-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.pbx-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.pbx-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.pbx-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.pbx-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.pbx-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.pbx-grid-cols-\\[minmax\\(10rem\\,1fr\\)\\]{grid-template-columns:minmax(10rem,1fr)}.pbx-grid-cols-\\[minmax\\(14rem\\,1fr\\)\\]{grid-template-columns:minmax(14rem,1fr)}.pbx-grid-cols-\\[minmax\\(50px\\,100px\\)\\]{grid-template-columns:minmax(50px,100px)}.pbx-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.pbx-grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.pbx-grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.pbx-grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.pbx-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.pbx-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.pbx-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.pbx-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.pbx-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.pbx-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.pbx-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.pbx-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.pbx-flex-row{flex-direction:row}.pbx-flex-row-reverse{flex-direction:row-reverse}.pbx-flex-col{flex-direction:column}.pbx-flex-col-reverse{flex-direction:column-reverse}.pbx-flex-wrap{flex-wrap:wrap}.pbx-flex-wrap-reverse{flex-wrap:wrap-reverse}.pbx-flex-nowrap{flex-wrap:nowrap}.pbx-place-content-center{place-content:center}.pbx-place-content-start{place-content:start}.pbx-place-content-end{place-content:end}.pbx-place-content-between{place-content:space-between}.pbx-place-content-around{place-content:space-around}.pbx-place-content-evenly{place-content:space-evenly}.pbx-items-start{align-items:flex-start}.pbx-items-end{align-items:flex-end}.pbx-items-center{align-items:center}.pbx-items-baseline{align-items:baseline}.pbx-items-stretch{align-items:stretch}.pbx-justify-start{justify-content:flex-start}.pbx-justify-end{justify-content:flex-end}.pbx-justify-center{justify-content:center}.pbx-justify-between{justify-content:space-between}.pbx-justify-around{justify-content:space-around}.pbx-justify-evenly{justify-content:space-evenly}.pbx-gap-0{gap:0px}.pbx-gap-1{gap:.25rem}.pbx-gap-2{gap:.5rem}.pbx-gap-3{gap:.75rem}.pbx-gap-4{gap:1rem}.pbx-gap-6{gap:1.5rem}.pbx-gap-8{gap:2rem}.pbx-space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.pbx-divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.pbx-divide-x-0>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(0px * var(--tw-divide-x-reverse));border-left-width:calc(0px * calc(1 - var(--tw-divide-x-reverse)))}.pbx-divide-x-2>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(2px * var(--tw-divide-x-reverse));border-left-width:calc(2px * calc(1 - var(--tw-divide-x-reverse)))}.pbx-divide-x-4>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(4px * var(--tw-divide-x-reverse));border-left-width:calc(4px * calc(1 - var(--tw-divide-x-reverse)))}.pbx-divide-x-8>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(8px * var(--tw-divide-x-reverse));border-left-width:calc(8px * calc(1 - var(--tw-divide-x-reverse)))}.pbx-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.pbx-divide-y-0>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(0px * var(--tw-divide-y-reverse))}.pbx-divide-y-2>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(2px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(2px * var(--tw-divide-y-reverse))}.pbx-divide-y-4>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(4px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(4px * var(--tw-divide-y-reverse))}.pbx-divide-y-8>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(8px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(8px * var(--tw-divide-y-reverse))}.pbx-divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.pbx-divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.pbx-self-auto{align-self:auto}.pbx-self-start{align-self:flex-start}.pbx-self-end{align-self:flex-end}.pbx-self-center{align-self:center}.pbx-self-stretch{align-self:stretch}.pbx-justify-self-auto{justify-self:auto}.pbx-justify-self-start{justify-self:start}.pbx-justify-self-end{justify-self:end}.pbx-justify-self-center{justify-self:center}.pbx-justify-self-stretch{justify-self:stretch}.pbx-overflow-auto{overflow:auto}.\\!pbx-overflow-hidden{overflow:hidden!important}.pbx-overflow-hidden{overflow:hidden}.pbx-overflow-visible{overflow:visible}.pbx-overflow-scroll{overflow:scroll}.pbx-overflow-x-auto{overflow-x:auto}.pbx-overflow-y-auto{overflow-y:auto}.pbx-overflow-x-hidden{overflow-x:hidden}.pbx-overflow-y-hidden{overflow-y:hidden}.pbx-overflow-x-scroll{overflow-x:scroll}.pbx-overflow-y-scroll{overflow-y:scroll}.pbx-scroll-auto{scroll-behavior:auto}.pbx-scroll-smooth{scroll-behavior:smooth}.pbx-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pbx-whitespace-normal{white-space:normal}.\\!pbx-whitespace-nowrap{white-space:nowrap!important}.pbx-whitespace-nowrap{white-space:nowrap}.pbx-whitespace-pre{white-space:pre}.pbx-whitespace-pre-line{white-space:pre-line}.pbx-whitespace-pre-wrap{white-space:pre-wrap}.pbx-break-normal{overflow-wrap:normal;word-break:normal}.pbx-break-words{overflow-wrap:break-word}.pbx-break-all{word-break:break-all}.pbx-break-keep{word-break:keep-all}.pbx-rounded{border-radius:.25rem}.pbx-rounded-2xl{border-radius:1rem}.pbx-rounded-3xl{border-radius:1.5rem}.pbx-rounded-full{border-radius:9999px}.pbx-rounded-lg{border-radius:.5rem}.pbx-rounded-md{border-radius:.375rem}.pbx-rounded-sm{border-radius:.125rem}.pbx-rounded-xl{border-radius:.75rem}.pbx-rounded-l-2xl{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.pbx-rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.pbx-rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.pbx-rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.pbx-rounded-bl{border-bottom-left-radius:.25rem}.pbx-rounded-bl-2xl{border-bottom-left-radius:1rem}.pbx-rounded-bl-3xl{border-bottom-left-radius:1.5rem}.pbx-rounded-bl-full{border-bottom-left-radius:9999px}.pbx-rounded-bl-lg{border-bottom-left-radius:.5rem}.pbx-rounded-bl-md{border-bottom-left-radius:.375rem}.pbx-rounded-bl-sm{border-bottom-left-radius:.125rem}.pbx-rounded-bl-xl{border-bottom-left-radius:.75rem}.pbx-rounded-br{border-bottom-right-radius:.25rem}.pbx-rounded-br-2xl{border-bottom-right-radius:1rem}.pbx-rounded-br-3xl{border-bottom-right-radius:1.5rem}.pbx-rounded-br-full{border-bottom-right-radius:9999px}.pbx-rounded-br-lg{border-bottom-right-radius:.5rem}.pbx-rounded-br-md{border-bottom-right-radius:.375rem}.pbx-rounded-br-sm{border-bottom-right-radius:.125rem}.pbx-rounded-br-xl{border-bottom-right-radius:.75rem}.pbx-rounded-tl{border-top-left-radius:.25rem}.pbx-rounded-tl-2xl{border-top-left-radius:1rem}.pbx-rounded-tl-3xl{border-top-left-radius:1.5rem}.pbx-rounded-tl-full{border-top-left-radius:9999px}.pbx-rounded-tl-lg{border-top-left-radius:.5rem}.pbx-rounded-tl-md{border-top-left-radius:.375rem}.pbx-rounded-tl-sm{border-top-left-radius:.125rem}.pbx-rounded-tl-xl{border-top-left-radius:.75rem}.pbx-rounded-tr{border-top-right-radius:.25rem}.pbx-rounded-tr-2xl{border-top-right-radius:1rem}.pbx-rounded-tr-3xl{border-top-right-radius:1.5rem}.pbx-rounded-tr-full{border-top-right-radius:9999px}.pbx-rounded-tr-lg{border-top-right-radius:.5rem}.pbx-rounded-tr-md{border-top-right-radius:.375rem}.pbx-rounded-tr-sm{border-top-right-radius:.125rem}.pbx-rounded-tr-xl{border-top-right-radius:.75rem}.\\!pbx-border-0{border-width:0px!important}.pbx-border{border-width:1px}.pbx-border-0{border-width:0px}.pbx-border-2{border-width:2px}.pbx-border-4{border-width:4px}.pbx-border-8{border-width:8px}.pbx-border-b{border-bottom-width:1px}.pbx-border-l{border-left-width:1px}.pbx-border-r{border-right-width:1px}.pbx-border-t{border-top-width:1px}.pbx-border-solid{border-style:solid}.pbx-border-dashed{border-style:dashed}.pbx-border-dotted{border-style:dotted}.pbx-border-double{border-style:double}.pbx-border-hidden{border-style:hidden}.pbx-border-none{border-style:none}.pbx-border-amber-100{--tw-border-opacity: 1;border-color:rgb(254 243 199 / var(--tw-border-opacity, 1))}.pbx-border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.pbx-border-amber-300{--tw-border-opacity: 1;border-color:rgb(252 211 77 / var(--tw-border-opacity, 1))}.pbx-border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.pbx-border-amber-50{--tw-border-opacity: 1;border-color:rgb(255 251 235 / var(--tw-border-opacity, 1))}.pbx-border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.pbx-border-amber-600{--tw-border-opacity: 1;border-color:rgb(217 119 6 / var(--tw-border-opacity, 1))}.pbx-border-amber-700{--tw-border-opacity: 1;border-color:rgb(180 83 9 / var(--tw-border-opacity, 1))}.pbx-border-amber-800{--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.pbx-border-amber-900{--tw-border-opacity: 1;border-color:rgb(120 53 15 / var(--tw-border-opacity, 1))}.pbx-border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity, 1))}.pbx-border-blue-100{--tw-border-opacity: 1;border-color:rgb(219 234 254 / var(--tw-border-opacity, 1))}.pbx-border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.pbx-border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.pbx-border-blue-400{--tw-border-opacity: 1;border-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.pbx-border-blue-50{--tw-border-opacity: 1;border-color:rgb(239 246 255 / var(--tw-border-opacity, 1))}.pbx-border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.pbx-border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.pbx-border-blue-700{--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.pbx-border-blue-800{--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.pbx-border-blue-900{--tw-border-opacity: 1;border-color:rgb(30 58 138 / var(--tw-border-opacity, 1))}.pbx-border-current{border-color:currentColor}.pbx-border-cyan-100{--tw-border-opacity: 1;border-color:rgb(207 250 254 / var(--tw-border-opacity, 1))}.pbx-border-cyan-200{--tw-border-opacity: 1;border-color:rgb(165 243 252 / var(--tw-border-opacity, 1))}.pbx-border-cyan-300{--tw-border-opacity: 1;border-color:rgb(103 232 249 / var(--tw-border-opacity, 1))}.pbx-border-cyan-400{--tw-border-opacity: 1;border-color:rgb(34 211 238 / var(--tw-border-opacity, 1))}.pbx-border-cyan-50{--tw-border-opacity: 1;border-color:rgb(236 254 255 / var(--tw-border-opacity, 1))}.pbx-border-cyan-500{--tw-border-opacity: 1;border-color:rgb(6 182 212 / var(--tw-border-opacity, 1))}.pbx-border-cyan-600{--tw-border-opacity: 1;border-color:rgb(8 145 178 / var(--tw-border-opacity, 1))}.pbx-border-cyan-700{--tw-border-opacity: 1;border-color:rgb(14 116 144 / var(--tw-border-opacity, 1))}.pbx-border-cyan-800{--tw-border-opacity: 1;border-color:rgb(21 94 117 / var(--tw-border-opacity, 1))}.pbx-border-cyan-900{--tw-border-opacity: 1;border-color:rgb(22 78 99 / var(--tw-border-opacity, 1))}.pbx-border-emerald-100{--tw-border-opacity: 1;border-color:rgb(209 250 229 / var(--tw-border-opacity, 1))}.pbx-border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.pbx-border-emerald-300{--tw-border-opacity: 1;border-color:rgb(110 231 183 / var(--tw-border-opacity, 1))}.pbx-border-emerald-400{--tw-border-opacity: 1;border-color:rgb(52 211 153 / var(--tw-border-opacity, 1))}.pbx-border-emerald-50{--tw-border-opacity: 1;border-color:rgb(236 253 245 / var(--tw-border-opacity, 1))}.pbx-border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity, 1))}.pbx-border-emerald-600{--tw-border-opacity: 1;border-color:rgb(5 150 105 / var(--tw-border-opacity, 1))}.pbx-border-emerald-700{--tw-border-opacity: 1;border-color:rgb(4 120 87 / var(--tw-border-opacity, 1))}.pbx-border-emerald-800{--tw-border-opacity: 1;border-color:rgb(6 95 70 / var(--tw-border-opacity, 1))}.pbx-border-emerald-900{--tw-border-opacity: 1;border-color:rgb(6 78 59 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-100{--tw-border-opacity: 1;border-color:rgb(250 232 255 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-200{--tw-border-opacity: 1;border-color:rgb(245 208 254 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-300{--tw-border-opacity: 1;border-color:rgb(240 171 252 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-400{--tw-border-opacity: 1;border-color:rgb(232 121 249 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-50{--tw-border-opacity: 1;border-color:rgb(253 244 255 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-500{--tw-border-opacity: 1;border-color:rgb(217 70 239 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-600{--tw-border-opacity: 1;border-color:rgb(192 38 211 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-700{--tw-border-opacity: 1;border-color:rgb(162 28 175 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-800{--tw-border-opacity: 1;border-color:rgb(134 25 143 / var(--tw-border-opacity, 1))}.pbx-border-fuchsia-900{--tw-border-opacity: 1;border-color:rgb(112 26 117 / var(--tw-border-opacity, 1))}.pbx-border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.pbx-border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.pbx-border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.pbx-border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.pbx-border-gray-50{--tw-border-opacity: 1;border-color:rgb(249 250 251 / var(--tw-border-opacity, 1))}.pbx-border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.pbx-border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity, 1))}.pbx-border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.pbx-border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.pbx-border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity, 1))}.pbx-border-green-100{--tw-border-opacity: 1;border-color:rgb(220 252 231 / var(--tw-border-opacity, 1))}.pbx-border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.pbx-border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.pbx-border-green-400{--tw-border-opacity: 1;border-color:rgb(74 222 128 / var(--tw-border-opacity, 1))}.pbx-border-green-50{--tw-border-opacity: 1;border-color:rgb(240 253 244 / var(--tw-border-opacity, 1))}.pbx-border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.pbx-border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.pbx-border-green-700{--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.pbx-border-green-800{--tw-border-opacity: 1;border-color:rgb(22 101 52 / var(--tw-border-opacity, 1))}.pbx-border-green-900{--tw-border-opacity: 1;border-color:rgb(20 83 45 / var(--tw-border-opacity, 1))}.pbx-border-indigo-100{--tw-border-opacity: 1;border-color:rgb(224 231 255 / var(--tw-border-opacity, 1))}.pbx-border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity, 1))}.pbx-border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.pbx-border-indigo-400{--tw-border-opacity: 1;border-color:rgb(129 140 248 / var(--tw-border-opacity, 1))}.pbx-border-indigo-50{--tw-border-opacity: 1;border-color:rgb(238 242 255 / var(--tw-border-opacity, 1))}.pbx-border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.pbx-border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.pbx-border-indigo-700{--tw-border-opacity: 1;border-color:rgb(67 56 202 / var(--tw-border-opacity, 1))}.pbx-border-indigo-800{--tw-border-opacity: 1;border-color:rgb(55 48 163 / var(--tw-border-opacity, 1))}.pbx-border-indigo-900{--tw-border-opacity: 1;border-color:rgb(49 46 129 / var(--tw-border-opacity, 1))}.pbx-border-lime-100{--tw-border-opacity: 1;border-color:rgb(236 252 203 / var(--tw-border-opacity, 1))}.pbx-border-lime-200{--tw-border-opacity: 1;border-color:rgb(217 249 157 / var(--tw-border-opacity, 1))}.pbx-border-lime-300{--tw-border-opacity: 1;border-color:rgb(190 242 100 / var(--tw-border-opacity, 1))}.pbx-border-lime-400{--tw-border-opacity: 1;border-color:rgb(163 230 53 / var(--tw-border-opacity, 1))}.pbx-border-lime-50{--tw-border-opacity: 1;border-color:rgb(247 254 231 / var(--tw-border-opacity, 1))}.pbx-border-lime-500{--tw-border-opacity: 1;border-color:rgb(132 204 22 / var(--tw-border-opacity, 1))}.pbx-border-lime-600{--tw-border-opacity: 1;border-color:rgb(101 163 13 / var(--tw-border-opacity, 1))}.pbx-border-lime-700{--tw-border-opacity: 1;border-color:rgb(77 124 15 / var(--tw-border-opacity, 1))}.pbx-border-lime-800{--tw-border-opacity: 1;border-color:rgb(63 98 18 / var(--tw-border-opacity, 1))}.pbx-border-lime-900{--tw-border-opacity: 1;border-color:rgb(54 83 20 / var(--tw-border-opacity, 1))}.pbx-border-myPrimaryLightGrayColor{--tw-border-opacity: 1;border-color:rgb(239 242 246 / var(--tw-border-opacity, 1))}.pbx-border-myPrimaryMediumGrayColor{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.pbx-border-neutral-100{--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1))}.pbx-border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.pbx-border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.pbx-border-neutral-400{--tw-border-opacity: 1;border-color:rgb(163 163 163 / var(--tw-border-opacity, 1))}.pbx-border-neutral-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.pbx-border-neutral-500{--tw-border-opacity: 1;border-color:rgb(115 115 115 / var(--tw-border-opacity, 1))}.pbx-border-neutral-600{--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.pbx-border-neutral-700{--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.pbx-border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.pbx-border-neutral-900{--tw-border-opacity: 1;border-color:rgb(23 23 23 / var(--tw-border-opacity, 1))}.pbx-border-orange-100{--tw-border-opacity: 1;border-color:rgb(255 237 213 / var(--tw-border-opacity, 1))}.pbx-border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.pbx-border-orange-300{--tw-border-opacity: 1;border-color:rgb(253 186 116 / var(--tw-border-opacity, 1))}.pbx-border-orange-400{--tw-border-opacity: 1;border-color:rgb(251 146 60 / var(--tw-border-opacity, 1))}.pbx-border-orange-50{--tw-border-opacity: 1;border-color:rgb(255 247 237 / var(--tw-border-opacity, 1))}.pbx-border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity, 1))}.pbx-border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity, 1))}.pbx-border-orange-700{--tw-border-opacity: 1;border-color:rgb(194 65 12 / var(--tw-border-opacity, 1))}.pbx-border-orange-800{--tw-border-opacity: 1;border-color:rgb(154 52 18 / var(--tw-border-opacity, 1))}.pbx-border-orange-900{--tw-border-opacity: 1;border-color:rgb(124 45 18 / var(--tw-border-opacity, 1))}.pbx-border-pink-100{--tw-border-opacity: 1;border-color:rgb(252 231 243 / var(--tw-border-opacity, 1))}.pbx-border-pink-200{--tw-border-opacity: 1;border-color:rgb(251 207 232 / var(--tw-border-opacity, 1))}.pbx-border-pink-300{--tw-border-opacity: 1;border-color:rgb(249 168 212 / var(--tw-border-opacity, 1))}.pbx-border-pink-400{--tw-border-opacity: 1;border-color:rgb(244 114 182 / var(--tw-border-opacity, 1))}.pbx-border-pink-50{--tw-border-opacity: 1;border-color:rgb(253 242 248 / var(--tw-border-opacity, 1))}.pbx-border-pink-500{--tw-border-opacity: 1;border-color:rgb(236 72 153 / var(--tw-border-opacity, 1))}.pbx-border-pink-600{--tw-border-opacity: 1;border-color:rgb(219 39 119 / var(--tw-border-opacity, 1))}.pbx-border-pink-700{--tw-border-opacity: 1;border-color:rgb(190 24 93 / var(--tw-border-opacity, 1))}.pbx-border-pink-800{--tw-border-opacity: 1;border-color:rgb(157 23 77 / var(--tw-border-opacity, 1))}.pbx-border-pink-900{--tw-border-opacity: 1;border-color:rgb(131 24 67 / var(--tw-border-opacity, 1))}.pbx-border-purple-100{--tw-border-opacity: 1;border-color:rgb(243 232 255 / var(--tw-border-opacity, 1))}.pbx-border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.pbx-border-purple-300{--tw-border-opacity: 1;border-color:rgb(216 180 254 / var(--tw-border-opacity, 1))}.pbx-border-purple-400{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.pbx-border-purple-50{--tw-border-opacity: 1;border-color:rgb(250 245 255 / var(--tw-border-opacity, 1))}.pbx-border-purple-500{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity, 1))}.pbx-border-purple-600{--tw-border-opacity: 1;border-color:rgb(147 51 234 / var(--tw-border-opacity, 1))}.pbx-border-purple-700{--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.pbx-border-purple-800{--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1))}.pbx-border-purple-900{--tw-border-opacity: 1;border-color:rgb(88 28 135 / var(--tw-border-opacity, 1))}.pbx-border-red-100{--tw-border-opacity: 1;border-color:rgb(254 226 226 / var(--tw-border-opacity, 1))}.pbx-border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.pbx-border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.pbx-border-red-400{--tw-border-opacity: 1;border-color:rgb(248 113 113 / var(--tw-border-opacity, 1))}.pbx-border-red-50{--tw-border-opacity: 1;border-color:rgb(254 242 242 / var(--tw-border-opacity, 1))}.pbx-border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.pbx-border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity, 1))}.pbx-border-red-700{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.pbx-border-red-800{--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.pbx-border-red-900{--tw-border-opacity: 1;border-color:rgb(127 29 29 / var(--tw-border-opacity, 1))}.pbx-border-rose-100{--tw-border-opacity: 1;border-color:rgb(255 228 230 / var(--tw-border-opacity, 1))}.pbx-border-rose-200{--tw-border-opacity: 1;border-color:rgb(254 205 211 / var(--tw-border-opacity, 1))}.pbx-border-rose-300{--tw-border-opacity: 1;border-color:rgb(253 164 175 / var(--tw-border-opacity, 1))}.pbx-border-rose-400{--tw-border-opacity: 1;border-color:rgb(251 113 133 / var(--tw-border-opacity, 1))}.pbx-border-rose-50{--tw-border-opacity: 1;border-color:rgb(255 241 242 / var(--tw-border-opacity, 1))}.pbx-border-rose-500{--tw-border-opacity: 1;border-color:rgb(244 63 94 / var(--tw-border-opacity, 1))}.pbx-border-rose-600{--tw-border-opacity: 1;border-color:rgb(225 29 72 / var(--tw-border-opacity, 1))}.pbx-border-rose-700{--tw-border-opacity: 1;border-color:rgb(190 18 60 / var(--tw-border-opacity, 1))}.pbx-border-rose-800{--tw-border-opacity: 1;border-color:rgb(159 18 57 / var(--tw-border-opacity, 1))}.pbx-border-rose-900{--tw-border-opacity: 1;border-color:rgb(136 19 55 / var(--tw-border-opacity, 1))}.pbx-border-sky-100{--tw-border-opacity: 1;border-color:rgb(224 242 254 / var(--tw-border-opacity, 1))}.pbx-border-sky-200{--tw-border-opacity: 1;border-color:rgb(186 230 253 / var(--tw-border-opacity, 1))}.pbx-border-sky-300{--tw-border-opacity: 1;border-color:rgb(125 211 252 / var(--tw-border-opacity, 1))}.pbx-border-sky-400{--tw-border-opacity: 1;border-color:rgb(56 189 248 / var(--tw-border-opacity, 1))}.pbx-border-sky-50{--tw-border-opacity: 1;border-color:rgb(240 249 255 / var(--tw-border-opacity, 1))}.pbx-border-sky-500{--tw-border-opacity: 1;border-color:rgb(14 165 233 / var(--tw-border-opacity, 1))}.pbx-border-sky-600{--tw-border-opacity: 1;border-color:rgb(2 132 199 / var(--tw-border-opacity, 1))}.pbx-border-sky-700{--tw-border-opacity: 1;border-color:rgb(3 105 161 / var(--tw-border-opacity, 1))}.pbx-border-sky-800{--tw-border-opacity: 1;border-color:rgb(7 89 133 / var(--tw-border-opacity, 1))}.pbx-border-sky-900{--tw-border-opacity: 1;border-color:rgb(12 74 110 / var(--tw-border-opacity, 1))}.pbx-border-slate-100{--tw-border-opacity: 1;border-color:rgb(241 245 249 / var(--tw-border-opacity, 1))}.pbx-border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity, 1))}.pbx-border-slate-300{--tw-border-opacity: 1;border-color:rgb(203 213 225 / var(--tw-border-opacity, 1))}.pbx-border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity, 1))}.pbx-border-slate-50{--tw-border-opacity: 1;border-color:rgb(248 250 252 / var(--tw-border-opacity, 1))}.pbx-border-slate-500{--tw-border-opacity: 1;border-color:rgb(100 116 139 / var(--tw-border-opacity, 1))}.pbx-border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.pbx-border-slate-700{--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.pbx-border-slate-800{--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.pbx-border-slate-900{--tw-border-opacity: 1;border-color:rgb(15 23 42 / var(--tw-border-opacity, 1))}.pbx-border-stone-100{--tw-border-opacity: 1;border-color:rgb(245 245 244 / var(--tw-border-opacity, 1))}.pbx-border-stone-200{--tw-border-opacity: 1;border-color:rgb(231 229 228 / var(--tw-border-opacity, 1))}.pbx-border-stone-300{--tw-border-opacity: 1;border-color:rgb(214 211 209 / var(--tw-border-opacity, 1))}.pbx-border-stone-400{--tw-border-opacity: 1;border-color:rgb(168 162 158 / var(--tw-border-opacity, 1))}.pbx-border-stone-50{--tw-border-opacity: 1;border-color:rgb(250 250 249 / var(--tw-border-opacity, 1))}.pbx-border-stone-500{--tw-border-opacity: 1;border-color:rgb(120 113 108 / var(--tw-border-opacity, 1))}.pbx-border-stone-600{--tw-border-opacity: 1;border-color:rgb(87 83 78 / var(--tw-border-opacity, 1))}.pbx-border-stone-700{--tw-border-opacity: 1;border-color:rgb(68 64 60 / var(--tw-border-opacity, 1))}.pbx-border-stone-800{--tw-border-opacity: 1;border-color:rgb(41 37 36 / var(--tw-border-opacity, 1))}.pbx-border-stone-900{--tw-border-opacity: 1;border-color:rgb(28 25 23 / var(--tw-border-opacity, 1))}.pbx-border-teal-100{--tw-border-opacity: 1;border-color:rgb(204 251 241 / var(--tw-border-opacity, 1))}.pbx-border-teal-200{--tw-border-opacity: 1;border-color:rgb(153 246 228 / var(--tw-border-opacity, 1))}.pbx-border-teal-300{--tw-border-opacity: 1;border-color:rgb(94 234 212 / var(--tw-border-opacity, 1))}.pbx-border-teal-400{--tw-border-opacity: 1;border-color:rgb(45 212 191 / var(--tw-border-opacity, 1))}.pbx-border-teal-50{--tw-border-opacity: 1;border-color:rgb(240 253 250 / var(--tw-border-opacity, 1))}.pbx-border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity, 1))}.pbx-border-teal-600{--tw-border-opacity: 1;border-color:rgb(13 148 136 / var(--tw-border-opacity, 1))}.pbx-border-teal-700{--tw-border-opacity: 1;border-color:rgb(15 118 110 / var(--tw-border-opacity, 1))}.pbx-border-teal-800{--tw-border-opacity: 1;border-color:rgb(17 94 89 / var(--tw-border-opacity, 1))}.pbx-border-teal-900{--tw-border-opacity: 1;border-color:rgb(19 78 74 / var(--tw-border-opacity, 1))}.pbx-border-transparent{border-color:transparent}.pbx-border-violet-100{--tw-border-opacity: 1;border-color:rgb(237 233 254 / var(--tw-border-opacity, 1))}.pbx-border-violet-200{--tw-border-opacity: 1;border-color:rgb(221 214 254 / var(--tw-border-opacity, 1))}.pbx-border-violet-300{--tw-border-opacity: 1;border-color:rgb(196 181 253 / var(--tw-border-opacity, 1))}.pbx-border-violet-400{--tw-border-opacity: 1;border-color:rgb(167 139 250 / var(--tw-border-opacity, 1))}.pbx-border-violet-50{--tw-border-opacity: 1;border-color:rgb(245 243 255 / var(--tw-border-opacity, 1))}.pbx-border-violet-500{--tw-border-opacity: 1;border-color:rgb(139 92 246 / var(--tw-border-opacity, 1))}.pbx-border-violet-600{--tw-border-opacity: 1;border-color:rgb(124 58 237 / var(--tw-border-opacity, 1))}.pbx-border-violet-700{--tw-border-opacity: 1;border-color:rgb(109 40 217 / var(--tw-border-opacity, 1))}.pbx-border-violet-800{--tw-border-opacity: 1;border-color:rgb(91 33 182 / var(--tw-border-opacity, 1))}.pbx-border-violet-900{--tw-border-opacity: 1;border-color:rgb(76 29 149 / var(--tw-border-opacity, 1))}.pbx-border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.pbx-border-yellow-100{--tw-border-opacity: 1;border-color:rgb(254 249 195 / var(--tw-border-opacity, 1))}.pbx-border-yellow-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity, 1))}.pbx-border-yellow-300{--tw-border-opacity: 1;border-color:rgb(253 224 71 / var(--tw-border-opacity, 1))}.pbx-border-yellow-400{--tw-border-opacity: 1;border-color:rgb(250 204 21 / var(--tw-border-opacity, 1))}.pbx-border-yellow-50{--tw-border-opacity: 1;border-color:rgb(254 252 232 / var(--tw-border-opacity, 1))}.pbx-border-yellow-500{--tw-border-opacity: 1;border-color:rgb(234 179 8 / var(--tw-border-opacity, 1))}.pbx-border-yellow-600{--tw-border-opacity: 1;border-color:rgb(202 138 4 / var(--tw-border-opacity, 1))}.pbx-border-yellow-700{--tw-border-opacity: 1;border-color:rgb(161 98 7 / var(--tw-border-opacity, 1))}.pbx-border-yellow-800{--tw-border-opacity: 1;border-color:rgb(133 77 14 / var(--tw-border-opacity, 1))}.pbx-border-yellow-900{--tw-border-opacity: 1;border-color:rgb(113 63 18 / var(--tw-border-opacity, 1))}.pbx-border-zinc-100{--tw-border-opacity: 1;border-color:rgb(244 244 245 / var(--tw-border-opacity, 1))}.pbx-border-zinc-200{--tw-border-opacity: 1;border-color:rgb(228 228 231 / var(--tw-border-opacity, 1))}.pbx-border-zinc-300{--tw-border-opacity: 1;border-color:rgb(212 212 216 / var(--tw-border-opacity, 1))}.pbx-border-zinc-400{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity, 1))}.pbx-border-zinc-50{--tw-border-opacity: 1;border-color:rgb(250 250 250 / var(--tw-border-opacity, 1))}.pbx-border-zinc-500{--tw-border-opacity: 1;border-color:rgb(113 113 122 / var(--tw-border-opacity, 1))}.pbx-border-zinc-600{--tw-border-opacity: 1;border-color:rgb(82 82 91 / var(--tw-border-opacity, 1))}.pbx-border-zinc-700{--tw-border-opacity: 1;border-color:rgb(63 63 70 / var(--tw-border-opacity, 1))}.pbx-border-zinc-800{--tw-border-opacity: 1;border-color:rgb(39 39 42 / var(--tw-border-opacity, 1))}.pbx-border-zinc-900{--tw-border-opacity: 1;border-color:rgb(24 24 27 / var(--tw-border-opacity, 1))}.pbx-border-r-transparent{border-right-color:transparent}.pbx-bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-200{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-300{--tw-bg-opacity: 1;background-color:rgb(252 211 77 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-400{--tw-bg-opacity: 1;background-color:rgb(251 191 36 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-700{--tw-bg-opacity: 1;background-color:rgb(180 83 9 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-800{--tw-bg-opacity: 1;background-color:rgb(146 64 14 / var(--tw-bg-opacity, 1))}.pbx-bg-amber-900{--tw-bg-opacity: 1;background-color:rgb(120 53 15 / var(--tw-bg-opacity, 1))}.pbx-bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.pbx-bg-black\\/0{background-color:#0000}.pbx-bg-black\\/50{background-color:#00000080}.pbx-bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(191 219 254 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-300{--tw-bg-opacity: 1;background-color:rgb(147 197 253 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-800{--tw-bg-opacity: 1;background-color:rgb(30 64 175 / var(--tw-bg-opacity, 1))}.pbx-bg-blue-900{--tw-bg-opacity: 1;background-color:rgb(30 58 138 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-100{--tw-bg-opacity: 1;background-color:rgb(207 250 254 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-200{--tw-bg-opacity: 1;background-color:rgb(165 243 252 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-300{--tw-bg-opacity: 1;background-color:rgb(103 232 249 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-400{--tw-bg-opacity: 1;background-color:rgb(34 211 238 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-50{--tw-bg-opacity: 1;background-color:rgb(236 254 255 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-700{--tw-bg-opacity: 1;background-color:rgb(14 116 144 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity, 1))}.pbx-bg-cyan-900{--tw-bg-opacity: 1;background-color:rgb(22 78 99 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-200{--tw-bg-opacity: 1;background-color:rgb(167 243 208 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-300{--tw-bg-opacity: 1;background-color:rgb(110 231 183 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-700{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-800{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity, 1))}.pbx-bg-emerald-900{--tw-bg-opacity: 1;background-color:rgb(6 78 59 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-100{--tw-bg-opacity: 1;background-color:rgb(250 232 255 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-200{--tw-bg-opacity: 1;background-color:rgb(245 208 254 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-300{--tw-bg-opacity: 1;background-color:rgb(240 171 252 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-400{--tw-bg-opacity: 1;background-color:rgb(232 121 249 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-50{--tw-bg-opacity: 1;background-color:rgb(253 244 255 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-500{--tw-bg-opacity: 1;background-color:rgb(217 70 239 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-700{--tw-bg-opacity: 1;background-color:rgb(162 28 175 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-800{--tw-bg-opacity: 1;background-color:rgb(134 25 143 / var(--tw-bg-opacity, 1))}.pbx-bg-fuchsia-900{--tw-bg-opacity: 1;background-color:rgb(112 26 117 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.pbx-bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity, 1))}.pbx-bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.pbx-bg-green-200{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.pbx-bg-green-300{--tw-bg-opacity: 1;background-color:rgb(134 239 172 / var(--tw-bg-opacity, 1))}.pbx-bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.pbx-bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.pbx-bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.pbx-bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.pbx-bg-green-700{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.pbx-bg-green-800{--tw-bg-opacity: 1;background-color:rgb(22 101 52 / var(--tw-bg-opacity, 1))}.pbx-bg-green-900{--tw-bg-opacity: 1;background-color:rgb(20 83 45 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-300{--tw-bg-opacity: 1;background-color:rgb(165 180 252 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-400{--tw-bg-opacity: 1;background-color:rgb(129 140 248 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-700{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-800{--tw-bg-opacity: 1;background-color:rgb(55 48 163 / var(--tw-bg-opacity, 1))}.pbx-bg-indigo-900{--tw-bg-opacity: 1;background-color:rgb(49 46 129 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-100{--tw-bg-opacity: 1;background-color:rgb(236 252 203 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-200{--tw-bg-opacity: 1;background-color:rgb(217 249 157 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-300{--tw-bg-opacity: 1;background-color:rgb(190 242 100 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-400{--tw-bg-opacity: 1;background-color:rgb(163 230 53 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-50{--tw-bg-opacity: 1;background-color:rgb(247 254 231 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-500{--tw-bg-opacity: 1;background-color:rgb(132 204 22 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-700{--tw-bg-opacity: 1;background-color:rgb(77 124 15 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-800{--tw-bg-opacity: 1;background-color:rgb(63 98 18 / var(--tw-bg-opacity, 1))}.pbx-bg-lime-900{--tw-bg-opacity: 1;background-color:rgb(54 83 20 / var(--tw-bg-opacity, 1))}.pbx-bg-myPrimaryBrandColor{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.pbx-bg-myPrimaryErrorColor{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.pbx-bg-myPrimaryLightGrayColor{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.pbx-bg-myPrimaryLinkColor{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-200{--tw-bg-opacity: 1;background-color:rgb(229 229 229 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-500{--tw-bg-opacity: 1;background-color:rgb(115 115 115 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-600{--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-700{--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.pbx-bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-300{--tw-bg-opacity: 1;background-color:rgb(253 186 116 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-400{--tw-bg-opacity: 1;background-color:rgb(251 146 60 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-600{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-700{--tw-bg-opacity: 1;background-color:rgb(194 65 12 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-800{--tw-bg-opacity: 1;background-color:rgb(154 52 18 / var(--tw-bg-opacity, 1))}.pbx-bg-orange-900{--tw-bg-opacity: 1;background-color:rgb(124 45 18 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 231 243 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(251 207 232 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-300{--tw-bg-opacity: 1;background-color:rgb(249 168 212 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-400{--tw-bg-opacity: 1;background-color:rgb(244 114 182 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(190 24 93 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-800{--tw-bg-opacity: 1;background-color:rgb(157 23 77 / var(--tw-bg-opacity, 1))}.pbx-bg-pink-900{--tw-bg-opacity: 1;background-color:rgb(131 24 67 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(233 213 255 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity, 1))}.pbx-bg-purple-900{--tw-bg-opacity: 1;background-color:rgb(88 28 135 / var(--tw-bg-opacity, 1))}.pbx-bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.pbx-bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity, 1))}.pbx-bg-red-300{--tw-bg-opacity: 1;background-color:rgb(252 165 165 / var(--tw-bg-opacity, 1))}.pbx-bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.pbx-bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.pbx-bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.pbx-bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.pbx-bg-red-700{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.pbx-bg-red-800{--tw-bg-opacity: 1;background-color:rgb(153 27 27 / var(--tw-bg-opacity, 1))}.pbx-bg-red-900{--tw-bg-opacity: 1;background-color:rgb(127 29 29 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-100{--tw-bg-opacity: 1;background-color:rgb(255 228 230 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-200{--tw-bg-opacity: 1;background-color:rgb(254 205 211 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-300{--tw-bg-opacity: 1;background-color:rgb(253 164 175 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-400{--tw-bg-opacity: 1;background-color:rgb(251 113 133 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-50{--tw-bg-opacity: 1;background-color:rgb(255 241 242 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-500{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-600{--tw-bg-opacity: 1;background-color:rgb(225 29 72 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-700{--tw-bg-opacity: 1;background-color:rgb(190 18 60 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-800{--tw-bg-opacity: 1;background-color:rgb(159 18 57 / var(--tw-bg-opacity, 1))}.pbx-bg-rose-900{--tw-bg-opacity: 1;background-color:rgb(136 19 55 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-100{--tw-bg-opacity: 1;background-color:rgb(224 242 254 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-200{--tw-bg-opacity: 1;background-color:rgb(186 230 253 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-300{--tw-bg-opacity: 1;background-color:rgb(125 211 252 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-400{--tw-bg-opacity: 1;background-color:rgb(56 189 248 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-50{--tw-bg-opacity: 1;background-color:rgb(240 249 255 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-500{--tw-bg-opacity: 1;background-color:rgb(14 165 233 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-600{--tw-bg-opacity: 1;background-color:rgb(2 132 199 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-700{--tw-bg-opacity: 1;background-color:rgb(3 105 161 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-800{--tw-bg-opacity: 1;background-color:rgb(7 89 133 / var(--tw-bg-opacity, 1))}.pbx-bg-sky-900{--tw-bg-opacity: 1;background-color:rgb(12 74 110 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-400{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-700{--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.pbx-bg-slate-900{--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-100{--tw-bg-opacity: 1;background-color:rgb(245 245 244 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-200{--tw-bg-opacity: 1;background-color:rgb(231 229 228 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-300{--tw-bg-opacity: 1;background-color:rgb(214 211 209 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-400{--tw-bg-opacity: 1;background-color:rgb(168 162 158 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-50{--tw-bg-opacity: 1;background-color:rgb(250 250 249 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-500{--tw-bg-opacity: 1;background-color:rgb(120 113 108 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-600{--tw-bg-opacity: 1;background-color:rgb(87 83 78 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-700{--tw-bg-opacity: 1;background-color:rgb(68 64 60 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-800{--tw-bg-opacity: 1;background-color:rgb(41 37 36 / var(--tw-bg-opacity, 1))}.pbx-bg-stone-900{--tw-bg-opacity: 1;background-color:rgb(28 25 23 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-200{--tw-bg-opacity: 1;background-color:rgb(153 246 228 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-300{--tw-bg-opacity: 1;background-color:rgb(94 234 212 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-500{--tw-bg-opacity: 1;background-color:rgb(20 184 166 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-600{--tw-bg-opacity: 1;background-color:rgb(13 148 136 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-700{--tw-bg-opacity: 1;background-color:rgb(15 118 110 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-800{--tw-bg-opacity: 1;background-color:rgb(17 94 89 / var(--tw-bg-opacity, 1))}.pbx-bg-teal-900{--tw-bg-opacity: 1;background-color:rgb(19 78 74 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-100{--tw-bg-opacity: 1;background-color:rgb(237 233 254 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-200{--tw-bg-opacity: 1;background-color:rgb(221 214 254 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-300{--tw-bg-opacity: 1;background-color:rgb(196 181 253 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-400{--tw-bg-opacity: 1;background-color:rgb(167 139 250 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-50{--tw-bg-opacity: 1;background-color:rgb(245 243 255 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-500{--tw-bg-opacity: 1;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-700{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-800{--tw-bg-opacity: 1;background-color:rgb(91 33 182 / var(--tw-bg-opacity, 1))}.pbx-bg-violet-900{--tw-bg-opacity: 1;background-color:rgb(76 29 149 / var(--tw-bg-opacity, 1))}.pbx-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-300{--tw-bg-opacity: 1;background-color:rgb(253 224 71 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-700{--tw-bg-opacity: 1;background-color:rgb(161 98 7 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-800{--tw-bg-opacity: 1;background-color:rgb(133 77 14 / var(--tw-bg-opacity, 1))}.pbx-bg-yellow-900{--tw-bg-opacity: 1;background-color:rgb(113 63 18 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-100{--tw-bg-opacity: 1;background-color:rgb(244 244 245 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-200{--tw-bg-opacity: 1;background-color:rgb(228 228 231 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-300{--tw-bg-opacity: 1;background-color:rgb(212 212 216 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(161 161 170 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-50{--tw-bg-opacity: 1;background-color:rgb(250 250 250 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-500{--tw-bg-opacity: 1;background-color:rgb(113 113 122 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-600{--tw-bg-opacity: 1;background-color:rgb(82 82 91 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-700{--tw-bg-opacity: 1;background-color:rgb(63 63 70 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-800{--tw-bg-opacity: 1;background-color:rgb(39 39 42 / var(--tw-bg-opacity, 1))}.pbx-bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))}.pbx-bg-opacity-0{--tw-bg-opacity: 0 }.pbx-bg-opacity-10{--tw-bg-opacity: .1 }.pbx-bg-opacity-100{--tw-bg-opacity: 1 }.pbx-bg-opacity-20{--tw-bg-opacity: .2 }.pbx-bg-opacity-25{--tw-bg-opacity: .25 }.pbx-bg-opacity-30{--tw-bg-opacity: .3 }.pbx-bg-opacity-40{--tw-bg-opacity: .4 }.pbx-bg-opacity-5{--tw-bg-opacity: .05 }.pbx-bg-opacity-50{--tw-bg-opacity: .5 }.pbx-bg-opacity-60{--tw-bg-opacity: .6 }.pbx-bg-opacity-70{--tw-bg-opacity: .7 }.pbx-bg-opacity-75{--tw-bg-opacity: .75 }.pbx-bg-opacity-80{--tw-bg-opacity: .8 }.pbx-bg-opacity-90{--tw-bg-opacity: .9 }.pbx-bg-opacity-95{--tw-bg-opacity: .95 }.pbx-fill-gray-800{fill:#1f2937}.pbx-object-contain{-o-object-fit:contain;object-fit:contain}.pbx-object-cover{-o-object-fit:cover;object-fit:cover}.pbx-object-fill{-o-object-fit:fill;object-fit:fill}.pbx-object-none{-o-object-fit:none;object-fit:none}.pbx-object-scale-down{-o-object-fit:scale-down;object-fit:scale-down}.pbx-object-bottom{-o-object-position:bottom;object-position:bottom}.pbx-object-center{-o-object-position:center;object-position:center}.pbx-object-left{-o-object-position:left;object-position:left}.pbx-object-left-bottom{-o-object-position:left bottom;object-position:left bottom}.pbx-object-left-top{-o-object-position:left top;object-position:left top}.pbx-object-right{-o-object-position:right;object-position:right}.pbx-object-right-bottom{-o-object-position:right bottom;object-position:right bottom}.pbx-object-right-top{-o-object-position:right top;object-position:right top}.pbx-object-top{-o-object-position:top;object-position:top}.\\!pbx-p-0{padding:0!important}.pbx-p-0{padding:0}.pbx-p-0\\.5{padding:.125rem}.pbx-p-1{padding:.25rem}.pbx-p-1\\.5{padding:.375rem}.pbx-p-10{padding:2.5rem}.pbx-p-11{padding:2.75rem}.pbx-p-12{padding:3rem}.pbx-p-14{padding:3.5rem}.pbx-p-16{padding:4rem}.pbx-p-2{padding:.5rem}.pbx-p-20{padding:5rem}.pbx-p-24{padding:6rem}.pbx-p-28{padding:7rem}.pbx-p-3{padding:.75rem}.pbx-p-32{padding:8rem}.pbx-p-36{padding:9rem}.pbx-p-4{padding:1rem}.pbx-p-40{padding:10rem}.pbx-p-44{padding:11rem}.pbx-p-48{padding:12rem}.pbx-p-5{padding:1.25rem}.pbx-p-52{padding:13rem}.pbx-p-56{padding:14rem}.pbx-p-6{padding:1.5rem}.pbx-p-60{padding:15rem}.pbx-p-64{padding:16rem}.pbx-p-7{padding:1.75rem}.pbx-p-72{padding:18rem}.pbx-p-8{padding:2rem}.pbx-p-80{padding:20rem}.pbx-p-9{padding:2.25rem}.pbx-p-96{padding:24rem}.pbx-px-0{padding-left:0;padding-right:0}.pbx-px-0\\.5{padding-left:.125rem;padding-right:.125rem}.pbx-px-1{padding-left:.25rem;padding-right:.25rem}.pbx-px-1\\.5{padding-left:.375rem;padding-right:.375rem}.pbx-px-10{padding-left:2.5rem;padding-right:2.5rem}.pbx-px-11{padding-left:2.75rem;padding-right:2.75rem}.pbx-px-12{padding-left:3rem;padding-right:3rem}.pbx-px-14{padding-left:3.5rem;padding-right:3.5rem}.pbx-px-16{padding-left:4rem;padding-right:4rem}.pbx-px-2{padding-left:.5rem;padding-right:.5rem}.pbx-px-2\\.5{padding-left:.625rem;padding-right:.625rem}.pbx-px-20{padding-left:5rem;padding-right:5rem}.pbx-px-24{padding-left:6rem;padding-right:6rem}.pbx-px-28{padding-left:7rem;padding-right:7rem}.pbx-px-3{padding-left:.75rem;padding-right:.75rem}.pbx-px-3\\.5{padding-left:.875rem;padding-right:.875rem}.pbx-px-32{padding-left:8rem;padding-right:8rem}.pbx-px-36{padding-left:9rem;padding-right:9rem}.pbx-px-4{padding-left:1rem;padding-right:1rem}.pbx-px-40{padding-left:10rem;padding-right:10rem}.pbx-px-44{padding-left:11rem;padding-right:11rem}.pbx-px-48{padding-left:12rem;padding-right:12rem}.pbx-px-5{padding-left:1.25rem;padding-right:1.25rem}.pbx-px-52{padding-left:13rem;padding-right:13rem}.pbx-px-56{padding-left:14rem;padding-right:14rem}.pbx-px-6{padding-left:1.5rem;padding-right:1.5rem}.pbx-px-60{padding-left:15rem;padding-right:15rem}.pbx-px-64{padding-left:16rem;padding-right:16rem}.pbx-px-7{padding-left:1.75rem;padding-right:1.75rem}.pbx-px-72{padding-left:18rem;padding-right:18rem}.pbx-px-8{padding-left:2rem;padding-right:2rem}.pbx-px-80{padding-left:20rem;padding-right:20rem}.pbx-px-9{padding-left:2.25rem;padding-right:2.25rem}.pbx-px-96{padding-left:24rem;padding-right:24rem}.pbx-py-0{padding-top:0;padding-bottom:0}.pbx-py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.pbx-py-1{padding-top:.25rem;padding-bottom:.25rem}.pbx-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.pbx-py-10{padding-top:2.5rem;padding-bottom:2.5rem}.pbx-py-11{padding-top:2.75rem;padding-bottom:2.75rem}.pbx-py-12{padding-top:3rem;padding-bottom:3rem}.pbx-py-14{padding-top:3.5rem;padding-bottom:3.5rem}.pbx-py-16{padding-top:4rem;padding-bottom:4rem}.pbx-py-2{padding-top:.5rem;padding-bottom:.5rem}.pbx-py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pbx-py-20{padding-top:5rem;padding-bottom:5rem}.pbx-py-24{padding-top:6rem;padding-bottom:6rem}.pbx-py-28{padding-top:7rem;padding-bottom:7rem}.pbx-py-3{padding-top:.75rem;padding-bottom:.75rem}.pbx-py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.pbx-py-32{padding-top:8rem;padding-bottom:8rem}.pbx-py-36{padding-top:9rem;padding-bottom:9rem}.pbx-py-4{padding-top:1rem;padding-bottom:1rem}.pbx-py-40{padding-top:10rem;padding-bottom:10rem}.pbx-py-44{padding-top:11rem;padding-bottom:11rem}.pbx-py-48{padding-top:12rem;padding-bottom:12rem}.pbx-py-5{padding-top:1.25rem;padding-bottom:1.25rem}.pbx-py-52{padding-top:13rem;padding-bottom:13rem}.pbx-py-56{padding-top:14rem;padding-bottom:14rem}.pbx-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pbx-py-60{padding-top:15rem;padding-bottom:15rem}.pbx-py-64{padding-top:16rem;padding-bottom:16rem}.pbx-py-7{padding-top:1.75rem;padding-bottom:1.75rem}.pbx-py-72{padding-top:18rem;padding-bottom:18rem}.pbx-py-8{padding-top:2rem;padding-bottom:2rem}.pbx-py-80{padding-top:20rem;padding-bottom:20rem}.pbx-py-9{padding-top:2.25rem;padding-bottom:2.25rem}.pbx-py-96{padding-top:24rem;padding-bottom:24rem}.pbx-pb-12{padding-bottom:3rem}.pbx-pb-2{padding-bottom:.5rem}.pbx-pb-4{padding-bottom:1rem}.pbx-pb-8{padding-bottom:2rem}.pbx-pl-1{padding-left:.25rem}.pbx-pl-2{padding-left:.5rem}.pbx-pl-3{padding-left:.75rem}.pbx-pl-4{padding-left:1rem}.pbx-pr-1{padding-right:.25rem}.pbx-pr-2{padding-right:.5rem}.pbx-pr-3{padding-right:.75rem}.pbx-pr-4{padding-right:1rem}.pbx-pr-6{padding-right:1.5rem}.pbx-pr-9{padding-right:2.25rem}.pbx-pt-1{padding-top:.25rem}.pbx-pt-2{padding-top:.5rem}.pbx-pt-4{padding-top:1rem}.pbx-pt-6{padding-top:1.5rem}.pbx-pt-7{padding-top:1.75rem}.pbx-pt-8{padding-top:2rem}.pbx-text-left{text-align:left}.pbx-text-center{text-align:center}.pbx-text-right{text-align:right}.pbx-text-justify{text-align:justify}.pbx-text-start{text-align:start}.pbx-text-end{text-align:end}.pbx-indent-0{text-indent:0px}.pbx-indent-1{text-indent:.25rem}.pbx-indent-2{text-indent:.5rem}.pbx-indent-4{text-indent:1rem}.pbx-indent-8{text-indent:2rem}.pbx-indent-px{text-indent:1px}.pbx-align-bottom{vertical-align:bottom}.pbx-align-\\[-0\\.125em\\]{vertical-align:-.125em}.pbx-font-arial{font-family:Arial,sans-serif}.pbx-font-avenir{font-family:Avenir,sans-serif}.pbx-font-baskerville{font-family:Baskerville,serif}.pbx-font-bookman{font-family:Bookman,serif}.pbx-font-calibri{font-family:Calibri,sans-serif}.pbx-font-cambria{font-family:Cambria,serif}.pbx-font-candara{font-family:Candara,sans-serif}.pbx-font-comic-sans{font-family:Comic Sans MS,cursive,sans-serif}.pbx-font-courier{font-family:Courier,monospace}.pbx-font-courier-new{font-family:Courier New,Courier,monospace}.pbx-font-didot{font-family:Didot,serif}.pbx-font-franklin-gothic{font-family:Franklin Gothic Medium,Franklin Gothic,Arial,sans-serif}.pbx-font-futura{font-family:Futura,sans-serif}.pbx-font-garamond{font-family:Garamond,serif}.pbx-font-georgia{font-family:Georgia,serif}.pbx-font-helvetica{font-family:Helvetica,Arial,sans-serif}.pbx-font-impact{font-family:Impact,Charcoal,sans-serif}.pbx-font-lucida{font-family:Lucida Sans Unicode,Lucida Grande,sans-serif}.pbx-font-lucida-console{font-family:Lucida Console,Monaco,monospace}.pbx-font-lucida-sans{font-family:Lucida Sans Unicode,Lucida Grande,sans-serif}.pbx-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.pbx-font-optima{font-family:Optima,sans-serif}.pbx-font-palantino{font-family:Palatino,serif}.pbx-font-rockwell{font-family:Rockwell,serif}.pbx-font-sans{font-family:Jost,Raleway,Cormorant,sans-serif,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.pbx-font-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.pbx-font-tahoma{font-family:Tahoma,Geneva,sans-serif}.pbx-font-times{font-family:Times,serif}.pbx-font-times-new-roman{font-family:Times New Roman,Times,serif}.pbx-font-trebuchet{font-family:Trebuchet MS,Geneva,sans-serif}.pbx-font-verdana{font-family:Verdana,Geneva,sans-serif}.pbx-text-2xl{font-size:1.5rem;line-height:2rem}.pbx-text-3xl{font-size:1.875rem;line-height:2.25rem}.pbx-text-4xl{font-size:2.25rem;line-height:2.5rem}.pbx-text-5xl{font-size:3rem;line-height:1}.pbx-text-6xl{font-size:3.75rem;line-height:1}.pbx-text-7xl{font-size:4.5rem;line-height:1}.pbx-text-8xl{font-size:6rem;line-height:1}.pbx-text-9xl{font-size:8rem;line-height:1}.pbx-text-\\[12\\.5px\\]{font-size:12.5px}.pbx-text-base{font-size:1rem;line-height:1.5rem}.pbx-text-lg{font-size:1.125rem;line-height:1.75rem}.pbx-text-sm{font-size:.875rem;line-height:1.25rem}.pbx-text-xl{font-size:1.25rem;line-height:1.75rem}.pbx-text-xs{font-size:.75rem;line-height:1rem}.pbx-font-black{font-weight:900}.pbx-font-bold{font-weight:700}.pbx-font-extrabold{font-weight:800}.pbx-font-extralight{font-weight:200}.pbx-font-light{font-weight:300}.pbx-font-medium{font-weight:500}.pbx-font-normal{font-weight:400}.pbx-font-semibold{font-weight:600}.pbx-font-thin{font-weight:100}.pbx-uppercase{text-transform:uppercase}.pbx-lowercase{text-transform:lowercase}.pbx-capitalize{text-transform:capitalize}.pbx-normal-case{text-transform:none}.pbx-italic{font-style:italic}.pbx-not-italic{font-style:normal}.pbx-tracking-wider{letter-spacing:.05em}.pbx-text-amber-100{--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.pbx-text-amber-200{--tw-text-opacity: 1;color:rgb(253 230 138 / var(--tw-text-opacity, 1))}.pbx-text-amber-300{--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.pbx-text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.pbx-text-amber-50{--tw-text-opacity: 1;color:rgb(255 251 235 / var(--tw-text-opacity, 1))}.pbx-text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.pbx-text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.pbx-text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.pbx-text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.pbx-text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.pbx-text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.pbx-text-blue-100{--tw-text-opacity: 1;color:rgb(219 234 254 / var(--tw-text-opacity, 1))}.pbx-text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.pbx-text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.pbx-text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.pbx-text-blue-50{--tw-text-opacity: 1;color:rgb(239 246 255 / var(--tw-text-opacity, 1))}.pbx-text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.pbx-text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.pbx-text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.pbx-text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.pbx-text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.pbx-text-cyan-100{--tw-text-opacity: 1;color:rgb(207 250 254 / var(--tw-text-opacity, 1))}.pbx-text-cyan-200{--tw-text-opacity: 1;color:rgb(165 243 252 / var(--tw-text-opacity, 1))}.pbx-text-cyan-300{--tw-text-opacity: 1;color:rgb(103 232 249 / var(--tw-text-opacity, 1))}.pbx-text-cyan-400{--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.pbx-text-cyan-50{--tw-text-opacity: 1;color:rgb(236 254 255 / var(--tw-text-opacity, 1))}.pbx-text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity, 1))}.pbx-text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.pbx-text-cyan-700{--tw-text-opacity: 1;color:rgb(14 116 144 / var(--tw-text-opacity, 1))}.pbx-text-cyan-800{--tw-text-opacity: 1;color:rgb(21 94 117 / var(--tw-text-opacity, 1))}.pbx-text-cyan-900{--tw-text-opacity: 1;color:rgb(22 78 99 / var(--tw-text-opacity, 1))}.pbx-text-emerald-100{--tw-text-opacity: 1;color:rgb(209 250 229 / var(--tw-text-opacity, 1))}.pbx-text-emerald-200{--tw-text-opacity: 1;color:rgb(167 243 208 / var(--tw-text-opacity, 1))}.pbx-text-emerald-300{--tw-text-opacity: 1;color:rgb(110 231 183 / var(--tw-text-opacity, 1))}.pbx-text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.pbx-text-emerald-50{--tw-text-opacity: 1;color:rgb(236 253 245 / var(--tw-text-opacity, 1))}.pbx-text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.pbx-text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.pbx-text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.pbx-text-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / var(--tw-text-opacity, 1))}.pbx-text-emerald-900{--tw-text-opacity: 1;color:rgb(6 78 59 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-100{--tw-text-opacity: 1;color:rgb(250 232 255 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-200{--tw-text-opacity: 1;color:rgb(245 208 254 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-300{--tw-text-opacity: 1;color:rgb(240 171 252 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-400{--tw-text-opacity: 1;color:rgb(232 121 249 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-50{--tw-text-opacity: 1;color:rgb(253 244 255 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-500{--tw-text-opacity: 1;color:rgb(217 70 239 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-700{--tw-text-opacity: 1;color:rgb(162 28 175 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-800{--tw-text-opacity: 1;color:rgb(134 25 143 / var(--tw-text-opacity, 1))}.pbx-text-fuchsia-900{--tw-text-opacity: 1;color:rgb(112 26 117 / var(--tw-text-opacity, 1))}.pbx-text-gray-100{--tw-text-opacity: 1;color:rgb(243 244 246 / var(--tw-text-opacity, 1))}.pbx-text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.pbx-text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.pbx-text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.pbx-text-gray-50{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity, 1))}.pbx-text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.pbx-text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.pbx-text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.pbx-text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.pbx-text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.pbx-text-green-100{--tw-text-opacity: 1;color:rgb(220 252 231 / var(--tw-text-opacity, 1))}.pbx-text-green-200{--tw-text-opacity: 1;color:rgb(187 247 208 / var(--tw-text-opacity, 1))}.pbx-text-green-300{--tw-text-opacity: 1;color:rgb(134 239 172 / var(--tw-text-opacity, 1))}.pbx-text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.pbx-text-green-50{--tw-text-opacity: 1;color:rgb(240 253 244 / var(--tw-text-opacity, 1))}.pbx-text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.pbx-text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.pbx-text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.pbx-text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.pbx-text-green-900{--tw-text-opacity: 1;color:rgb(20 83 45 / var(--tw-text-opacity, 1))}.pbx-text-indigo-100{--tw-text-opacity: 1;color:rgb(224 231 255 / var(--tw-text-opacity, 1))}.pbx-text-indigo-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity, 1))}.pbx-text-indigo-300{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.pbx-text-indigo-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.pbx-text-indigo-50{--tw-text-opacity: 1;color:rgb(238 242 255 / var(--tw-text-opacity, 1))}.pbx-text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.pbx-text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.pbx-text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.pbx-text-indigo-800{--tw-text-opacity: 1;color:rgb(55 48 163 / var(--tw-text-opacity, 1))}.pbx-text-indigo-900{--tw-text-opacity: 1;color:rgb(49 46 129 / var(--tw-text-opacity, 1))}.pbx-text-lime-100{--tw-text-opacity: 1;color:rgb(236 252 203 / var(--tw-text-opacity, 1))}.pbx-text-lime-200{--tw-text-opacity: 1;color:rgb(217 249 157 / var(--tw-text-opacity, 1))}.pbx-text-lime-300{--tw-text-opacity: 1;color:rgb(190 242 100 / var(--tw-text-opacity, 1))}.pbx-text-lime-400{--tw-text-opacity: 1;color:rgb(163 230 53 / var(--tw-text-opacity, 1))}.pbx-text-lime-50{--tw-text-opacity: 1;color:rgb(247 254 231 / var(--tw-text-opacity, 1))}.pbx-text-lime-500{--tw-text-opacity: 1;color:rgb(132 204 22 / var(--tw-text-opacity, 1))}.pbx-text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.pbx-text-lime-700{--tw-text-opacity: 1;color:rgb(77 124 15 / var(--tw-text-opacity, 1))}.pbx-text-lime-800{--tw-text-opacity: 1;color:rgb(63 98 18 / var(--tw-text-opacity, 1))}.pbx-text-lime-900{--tw-text-opacity: 1;color:rgb(54 83 20 / var(--tw-text-opacity, 1))}.pbx-text-myPrimaryDarkGrayColor{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.pbx-text-myPrimaryErrorColor{--tw-text-opacity: 1;color:rgb(214 0 0 / var(--tw-text-opacity, 1))}.pbx-text-myPrimaryLinkColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.pbx-text-myPrimaryMediumGrayColor{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.pbx-text-myPrimarySuccesColor{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.pbx-text-neutral-100{--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.pbx-text-neutral-200{--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.pbx-text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.pbx-text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.pbx-text-neutral-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.pbx-text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.pbx-text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.pbx-text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.pbx-text-neutral-800{--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity, 1))}.pbx-text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.pbx-text-orange-100{--tw-text-opacity: 1;color:rgb(255 237 213 / var(--tw-text-opacity, 1))}.pbx-text-orange-200{--tw-text-opacity: 1;color:rgb(254 215 170 / var(--tw-text-opacity, 1))}.pbx-text-orange-300{--tw-text-opacity: 1;color:rgb(253 186 116 / var(--tw-text-opacity, 1))}.pbx-text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.pbx-text-orange-50{--tw-text-opacity: 1;color:rgb(255 247 237 / var(--tw-text-opacity, 1))}.pbx-text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.pbx-text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.pbx-text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.pbx-text-orange-800{--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.pbx-text-orange-900{--tw-text-opacity: 1;color:rgb(124 45 18 / var(--tw-text-opacity, 1))}.pbx-text-pink-100{--tw-text-opacity: 1;color:rgb(252 231 243 / var(--tw-text-opacity, 1))}.pbx-text-pink-200{--tw-text-opacity: 1;color:rgb(251 207 232 / var(--tw-text-opacity, 1))}.pbx-text-pink-300{--tw-text-opacity: 1;color:rgb(249 168 212 / var(--tw-text-opacity, 1))}.pbx-text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.pbx-text-pink-50{--tw-text-opacity: 1;color:rgb(253 242 248 / var(--tw-text-opacity, 1))}.pbx-text-pink-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.pbx-text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.pbx-text-pink-700{--tw-text-opacity: 1;color:rgb(190 24 93 / var(--tw-text-opacity, 1))}.pbx-text-pink-800{--tw-text-opacity: 1;color:rgb(157 23 77 / var(--tw-text-opacity, 1))}.pbx-text-pink-900{--tw-text-opacity: 1;color:rgb(131 24 67 / var(--tw-text-opacity, 1))}.pbx-text-purple-100{--tw-text-opacity: 1;color:rgb(243 232 255 / var(--tw-text-opacity, 1))}.pbx-text-purple-200{--tw-text-opacity: 1;color:rgb(233 213 255 / var(--tw-text-opacity, 1))}.pbx-text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.pbx-text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.pbx-text-purple-50{--tw-text-opacity: 1;color:rgb(250 245 255 / var(--tw-text-opacity, 1))}.pbx-text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.pbx-text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.pbx-text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.pbx-text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.pbx-text-purple-900{--tw-text-opacity: 1;color:rgb(88 28 135 / var(--tw-text-opacity, 1))}.pbx-text-red-100{--tw-text-opacity: 1;color:rgb(254 226 226 / var(--tw-text-opacity, 1))}.pbx-text-red-200{--tw-text-opacity: 1;color:rgb(254 202 202 / var(--tw-text-opacity, 1))}.pbx-text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.pbx-text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.pbx-text-red-50{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.pbx-text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.pbx-text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.pbx-text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.pbx-text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.pbx-text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.pbx-text-rose-100{--tw-text-opacity: 1;color:rgb(255 228 230 / var(--tw-text-opacity, 1))}.pbx-text-rose-200{--tw-text-opacity: 1;color:rgb(254 205 211 / var(--tw-text-opacity, 1))}.pbx-text-rose-300{--tw-text-opacity: 1;color:rgb(253 164 175 / var(--tw-text-opacity, 1))}.pbx-text-rose-400{--tw-text-opacity: 1;color:rgb(251 113 133 / var(--tw-text-opacity, 1))}.pbx-text-rose-50{--tw-text-opacity: 1;color:rgb(255 241 242 / var(--tw-text-opacity, 1))}.pbx-text-rose-500{--tw-text-opacity: 1;color:rgb(244 63 94 / var(--tw-text-opacity, 1))}.pbx-text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.pbx-text-rose-700{--tw-text-opacity: 1;color:rgb(190 18 60 / var(--tw-text-opacity, 1))}.pbx-text-rose-800{--tw-text-opacity: 1;color:rgb(159 18 57 / var(--tw-text-opacity, 1))}.pbx-text-rose-900{--tw-text-opacity: 1;color:rgb(136 19 55 / var(--tw-text-opacity, 1))}.pbx-text-sky-100{--tw-text-opacity: 1;color:rgb(224 242 254 / var(--tw-text-opacity, 1))}.pbx-text-sky-200{--tw-text-opacity: 1;color:rgb(186 230 253 / var(--tw-text-opacity, 1))}.pbx-text-sky-300{--tw-text-opacity: 1;color:rgb(125 211 252 / var(--tw-text-opacity, 1))}.pbx-text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.pbx-text-sky-50{--tw-text-opacity: 1;color:rgb(240 249 255 / var(--tw-text-opacity, 1))}.pbx-text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity, 1))}.pbx-text-sky-600{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity, 1))}.pbx-text-sky-700{--tw-text-opacity: 1;color:rgb(3 105 161 / var(--tw-text-opacity, 1))}.pbx-text-sky-800{--tw-text-opacity: 1;color:rgb(7 89 133 / var(--tw-text-opacity, 1))}.pbx-text-sky-900{--tw-text-opacity: 1;color:rgb(12 74 110 / var(--tw-text-opacity, 1))}.pbx-text-slate-100{--tw-text-opacity: 1;color:rgb(241 245 249 / var(--tw-text-opacity, 1))}.pbx-text-slate-200{--tw-text-opacity: 1;color:rgb(226 232 240 / var(--tw-text-opacity, 1))}.pbx-text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.pbx-text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.pbx-text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity, 1))}.pbx-text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.pbx-text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.pbx-text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.pbx-text-slate-800{--tw-text-opacity: 1;color:rgb(30 41 59 / var(--tw-text-opacity, 1))}.pbx-text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.pbx-text-stone-100{--tw-text-opacity: 1;color:rgb(245 245 244 / var(--tw-text-opacity, 1))}.pbx-text-stone-200{--tw-text-opacity: 1;color:rgb(231 229 228 / var(--tw-text-opacity, 1))}.pbx-text-stone-300{--tw-text-opacity: 1;color:rgb(214 211 209 / var(--tw-text-opacity, 1))}.pbx-text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity, 1))}.pbx-text-stone-50{--tw-text-opacity: 1;color:rgb(250 250 249 / var(--tw-text-opacity, 1))}.pbx-text-stone-500{--tw-text-opacity: 1;color:rgb(120 113 108 / var(--tw-text-opacity, 1))}.pbx-text-stone-600{--tw-text-opacity: 1;color:rgb(87 83 78 / var(--tw-text-opacity, 1))}.pbx-text-stone-700{--tw-text-opacity: 1;color:rgb(68 64 60 / var(--tw-text-opacity, 1))}.pbx-text-stone-800{--tw-text-opacity: 1;color:rgb(41 37 36 / var(--tw-text-opacity, 1))}.pbx-text-stone-900{--tw-text-opacity: 1;color:rgb(28 25 23 / var(--tw-text-opacity, 1))}.pbx-text-teal-100{--tw-text-opacity: 1;color:rgb(204 251 241 / var(--tw-text-opacity, 1))}.pbx-text-teal-200{--tw-text-opacity: 1;color:rgb(153 246 228 / var(--tw-text-opacity, 1))}.pbx-text-teal-300{--tw-text-opacity: 1;color:rgb(94 234 212 / var(--tw-text-opacity, 1))}.pbx-text-teal-400{--tw-text-opacity: 1;color:rgb(45 212 191 / var(--tw-text-opacity, 1))}.pbx-text-teal-50{--tw-text-opacity: 1;color:rgb(240 253 250 / var(--tw-text-opacity, 1))}.pbx-text-teal-500{--tw-text-opacity: 1;color:rgb(20 184 166 / var(--tw-text-opacity, 1))}.pbx-text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.pbx-text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.pbx-text-teal-800{--tw-text-opacity: 1;color:rgb(17 94 89 / var(--tw-text-opacity, 1))}.pbx-text-teal-900{--tw-text-opacity: 1;color:rgb(19 78 74 / var(--tw-text-opacity, 1))}.pbx-text-violet-100{--tw-text-opacity: 1;color:rgb(237 233 254 / var(--tw-text-opacity, 1))}.pbx-text-violet-200{--tw-text-opacity: 1;color:rgb(221 214 254 / var(--tw-text-opacity, 1))}.pbx-text-violet-300{--tw-text-opacity: 1;color:rgb(196 181 253 / var(--tw-text-opacity, 1))}.pbx-text-violet-400{--tw-text-opacity: 1;color:rgb(167 139 250 / var(--tw-text-opacity, 1))}.pbx-text-violet-50{--tw-text-opacity: 1;color:rgb(245 243 255 / var(--tw-text-opacity, 1))}.pbx-text-violet-500{--tw-text-opacity: 1;color:rgb(139 92 246 / var(--tw-text-opacity, 1))}.pbx-text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.pbx-text-violet-700{--tw-text-opacity: 1;color:rgb(109 40 217 / var(--tw-text-opacity, 1))}.pbx-text-violet-800{--tw-text-opacity: 1;color:rgb(91 33 182 / var(--tw-text-opacity, 1))}.pbx-text-violet-900{--tw-text-opacity: 1;color:rgb(76 29 149 / var(--tw-text-opacity, 1))}.pbx-text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.pbx-text-yellow-100{--tw-text-opacity: 1;color:rgb(254 249 195 / var(--tw-text-opacity, 1))}.pbx-text-yellow-200{--tw-text-opacity: 1;color:rgb(254 240 138 / var(--tw-text-opacity, 1))}.pbx-text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.pbx-text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.pbx-text-yellow-50{--tw-text-opacity: 1;color:rgb(254 252 232 / var(--tw-text-opacity, 1))}.pbx-text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.pbx-text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.pbx-text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.pbx-text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity, 1))}.pbx-text-yellow-900{--tw-text-opacity: 1;color:rgb(113 63 18 / var(--tw-text-opacity, 1))}.pbx-text-zinc-100{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity, 1))}.pbx-text-zinc-200{--tw-text-opacity: 1;color:rgb(228 228 231 / var(--tw-text-opacity, 1))}.pbx-text-zinc-300{--tw-text-opacity: 1;color:rgb(212 212 216 / var(--tw-text-opacity, 1))}.pbx-text-zinc-400{--tw-text-opacity: 1;color:rgb(161 161 170 / var(--tw-text-opacity, 1))}.pbx-text-zinc-50{--tw-text-opacity: 1;color:rgb(250 250 250 / var(--tw-text-opacity, 1))}.pbx-text-zinc-500{--tw-text-opacity: 1;color:rgb(113 113 122 / var(--tw-text-opacity, 1))}.pbx-text-zinc-600{--tw-text-opacity: 1;color:rgb(82 82 91 / var(--tw-text-opacity, 1))}.pbx-text-zinc-700{--tw-text-opacity: 1;color:rgb(63 63 70 / var(--tw-text-opacity, 1))}.pbx-text-zinc-800{--tw-text-opacity: 1;color:rgb(39 39 42 / var(--tw-text-opacity, 1))}.pbx-text-zinc-900{--tw-text-opacity: 1;color:rgb(24 24 27 / var(--tw-text-opacity, 1))}.pbx-underline{text-decoration-line:underline}.pbx-overline{text-decoration-line:overline}.pbx-line-through{text-decoration-line:line-through}.pbx-no-underline{text-decoration-line:none}.pbx-decoration-solid{text-decoration-style:solid}.pbx-decoration-double{text-decoration-style:double}.pbx-decoration-dotted{text-decoration-style:dotted}.pbx-decoration-dashed{text-decoration-style:dashed}.pbx-decoration-wavy{text-decoration-style:wavy}.pbx-placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.pbx-placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity, 1))}.pbx-placeholder-opacity-50::-moz-placeholder{--tw-placeholder-opacity: .5 }.pbx-placeholder-opacity-50::placeholder{--tw-placeholder-opacity: .5 }.pbx-opacity-0{opacity:0}.pbx-opacity-10{opacity:.1}.pbx-opacity-100{opacity:1}.pbx-opacity-20{opacity:.2}.pbx-opacity-25{opacity:.25}.pbx-opacity-30{opacity:.3}.pbx-opacity-40{opacity:.4}.pbx-opacity-5{opacity:.05}.pbx-opacity-50{opacity:.5}.pbx-opacity-60{opacity:.6}.pbx-opacity-70{opacity:.7}.pbx-opacity-75{opacity:.75}.pbx-opacity-80{opacity:.8}.pbx-opacity-90{opacity:.9}.pbx-opacity-95{opacity:.95}.pbx-mix-blend-normal{mix-blend-mode:normal}.pbx-mix-blend-multiply{mix-blend-mode:multiply}.pbx-mix-blend-screen{mix-blend-mode:screen}.pbx-mix-blend-overlay{mix-blend-mode:overlay}.pbx-mix-blend-darken{mix-blend-mode:darken}.pbx-mix-blend-lighten{mix-blend-mode:lighten}.pbx-mix-blend-color-dodge{mix-blend-mode:color-dodge}.pbx-mix-blend-color-burn{mix-blend-mode:color-burn}.pbx-mix-blend-hard-light{mix-blend-mode:hard-light}.pbx-mix-blend-soft-light{mix-blend-mode:soft-light}.pbx-mix-blend-difference{mix-blend-mode:difference}.pbx-mix-blend-exclusion{mix-blend-mode:exclusion}.pbx-mix-blend-hue{mix-blend-mode:hue}.pbx-mix-blend-saturation{mix-blend-mode:saturation}.pbx-mix-blend-color{mix-blend-mode:color}.pbx-mix-blend-luminosity{mix-blend-mode:luminosity}.pbx-shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -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)}.pbx-shadow-inner{--tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / .05);--tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -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)}.pbx-shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.pbx-outline-none{outline:2px solid transparent;outline-offset:2px}.pbx-outline{outline-style:solid}.pbx-outline-0{outline-width:0px}.pbx-outline-1{outline-width:1px}.pbx-outline-2{outline-width:2px}.pbx-outline-4{outline-width:4px}.pbx-outline-8{outline-width:8px}.pbx-outline-offset-8{outline-offset:8px}.pbx-outline-yellow-400{outline-color:#facc15}.pbx-ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.pbx-ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.pbx-ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.pbx-ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.pbx-ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.pbx-ring-8{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(8px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.pbx-ring-inset{--tw-ring-inset: inset }.pbx-ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1)) }.pbx-ring-opacity-5{--tw-ring-opacity: .05 }.pbx-ring-offset-0{--tw-ring-offset-width: 0px }.pbx-ring-offset-1{--tw-ring-offset-width: 1px }.pbx-ring-offset-2{--tw-ring-offset-width: 2px }.pbx-ring-offset-4{--tw-ring-offset-width: 4px }.pbx-ring-offset-8{--tw-ring-offset-width: 8px }.pbx-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)}.pbx-blur-lg{--tw-blur: blur(16px);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)}.pbx-blur-md{--tw-blur: blur(12px);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)}.pbx-blur-sm{--tw-blur: blur(4px);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)}.pbx-blur-xl{--tw-blur: blur(24px);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)}.pbx-drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));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)}.pbx-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)}.pbx-filter-none{filter:none}.pbx-backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.pbx-backdrop-blur-lg{--tw-backdrop-blur: blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.pbx-backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.pbx-backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.pbx-backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.pbx-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pbx-transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pbx-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}.pbx-transition-none{transition-property:none}.pbx-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pbx-transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pbx-transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.pbx-duration-100{transition-duration:.1s}.pbx-duration-1000{transition-duration:1s}.pbx-duration-150{transition-duration:.15s}.pbx-duration-200{transition-duration:.2s}.pbx-duration-300{transition-duration:.3s}.pbx-duration-500{transition-duration:.5s}.pbx-duration-700{transition-duration:.7s}.pbx-duration-75{transition-duration:75ms}.pbx-ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.pbx-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.pbx-ease-linear{transition-timing-function:linear}.pbx-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 1024px){.lg\\:pbx-myPrimaryTag{margin-top:.5rem;margin-bottom:.5rem;display:inline-flex;min-height:3rem;align-items:center;justify-content:center;gap:.25rem;word-break:break-all;border-radius:9999px;border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(222 230 240 / var(--tw-bg-opacity, 1));padding:.5rem .75rem;font-size:.75rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.lg\\:pbx-myPrimaryTag:hover{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -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)}@media (min-width: 640px){.lg\\:pbx-myPrimaryTag{width:auto}}}.placeholder\\:pbx-text-sm::-moz-placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:pbx-text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.hover\\:pbx-border-myPrimaryLinkColor:hover{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.hover\\:pbx-bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\\:pbx-bg-myPrimaryErrorColor:hover{--tw-bg-opacity: 1;background-color:rgb(214 0 0 / var(--tw-bg-opacity, 1))}.hover\\:pbx-bg-myPrimaryLightGrayColor:hover{--tw-bg-opacity: 1;background-color:rgb(239 242 246 / var(--tw-bg-opacity, 1))}.hover\\:pbx-bg-myPrimaryLinkColor:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\\:pbx-bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.hover\\:pbx-bg-yellow-400:hover{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.hover\\:pbx-bg-opacity-10:hover{--tw-bg-opacity: .1 }.hover\\:pbx-fill-white:hover{fill:#fff}.hover\\:pbx-text-myPrimaryDarkGrayColor:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\\:pbx-text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.focus\\:pbx-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:pbx-ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:pbx-ring-green-600:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }.focus\\:pbx-ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1)) }.focus\\:pbx-ring-myPrimaryErrorColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(214 0 0 / var(--tw-ring-opacity, 1)) }.focus\\:pbx-ring-myPrimaryLinkColor:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }.focus\\:pbx-ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1)) }.focus\\:pbx-ring-offset-2:focus{--tw-ring-offset-width: 2px }.focus\\:pbx-ring-offset-green-50:focus{--tw-ring-offset-color: #f0fdf4 }.focus-visible\\:pbx-ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:pbx-ring-myPrimaryLinkColor:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(22 163 74 / var(--tw-ring-opacity, 1)) }.pbx-group:hover .group-hover\\:pbx-pointer-events-auto{pointer-events:auto}.pbx-group:hover .group-hover\\:pbx-translate-y-0{--tw-translate-y: 0px;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))}.pbx-group:hover .group-hover\\:pbx-opacity-100{opacity:1}.aria-checked\\:pbx-bg-blue-500[aria-checked=true]{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.aria-disabled\\:pbx-opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\\:pbx-bg-blue-100[aria-selected=true]{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}@media (prefers-reduced-motion: reduce){@keyframes pbx-spin{to{transform:rotate(360deg)}}.motion-reduce\\:pbx-animate-\\[spin_1\\.5s_linear_infinite\\]{animation:pbx-spin 1.5s linear infinite}}@media (min-width: 640px){.sm\\:pbx-flex{display:flex}.sm\\:pbx-grid{display:grid}.sm\\:pbx-h-1{height:.25rem}.sm\\:pbx-h-10{height:2.5rem}.sm\\:pbx-h-11{height:2.75rem}.sm\\:pbx-h-12{height:3rem}.sm\\:pbx-h-14{height:3.5rem}.sm\\:pbx-h-16{height:4rem}.sm\\:pbx-h-2{height:.5rem}.sm\\:pbx-h-20{height:5rem}.sm\\:pbx-h-24{height:6rem}.sm\\:pbx-h-28{height:7rem}.sm\\:pbx-h-3{height:.75rem}.sm\\:pbx-h-32{height:8rem}.sm\\:pbx-h-36{height:9rem}.sm\\:pbx-h-4{height:1rem}.sm\\:pbx-h-40{height:10rem}.sm\\:pbx-h-44{height:11rem}.sm\\:pbx-h-48{height:12rem}.sm\\:pbx-h-5{height:1.25rem}.sm\\:pbx-h-52{height:13rem}.sm\\:pbx-h-56{height:14rem}.sm\\:pbx-h-6{height:1.5rem}.sm\\:pbx-h-60{height:15rem}.sm\\:pbx-h-64{height:16rem}.sm\\:pbx-h-7{height:1.75rem}.sm\\:pbx-h-72{height:18rem}.sm\\:pbx-h-8{height:2rem}.sm\\:pbx-h-80{height:20rem}.sm\\:pbx-h-9{height:2.25rem}.sm\\:pbx-h-96{height:24rem}.sm\\:pbx-h-auto{height:auto}.sm\\:pbx-h-fit{height:-moz-fit-content;height:fit-content}.sm\\:pbx-h-full{height:100%}.sm\\:pbx-h-max{height:-moz-max-content;height:max-content}.sm\\:pbx-h-min{height:-moz-min-content;height:min-content}.sm\\:pbx-h-screen{height:100vh}.sm\\:pbx-w-1{width:.25rem}.sm\\:pbx-w-10{width:2.5rem}.sm\\:pbx-w-11{width:2.75rem}.sm\\:pbx-w-12{width:3rem}.sm\\:pbx-w-14{width:3.5rem}.sm\\:pbx-w-16{width:4rem}.sm\\:pbx-w-2{width:.5rem}.sm\\:pbx-w-20{width:5rem}.sm\\:pbx-w-24{width:6rem}.sm\\:pbx-w-28{width:7rem}.sm\\:pbx-w-3{width:.75rem}.sm\\:pbx-w-3\\/6{width:50%}.sm\\:pbx-w-32{width:8rem}.sm\\:pbx-w-36{width:9rem}.sm\\:pbx-w-4{width:1rem}.sm\\:pbx-w-40{width:10rem}.sm\\:pbx-w-44{width:11rem}.sm\\:pbx-w-48{width:12rem}.sm\\:pbx-w-5{width:1.25rem}.sm\\:pbx-w-5\\/6{width:83.333333%}.sm\\:pbx-w-52{width:13rem}.sm\\:pbx-w-56{width:14rem}.sm\\:pbx-w-6{width:1.5rem}.sm\\:pbx-w-60{width:15rem}.sm\\:pbx-w-64{width:16rem}.sm\\:pbx-w-7{width:1.75rem}.sm\\:pbx-w-72{width:18rem}.sm\\:pbx-w-8{width:2rem}.sm\\:pbx-w-80{width:20rem}.sm\\:pbx-w-9{width:2.25rem}.sm\\:pbx-w-96{width:24rem}.sm\\:pbx-w-auto{width:auto}.sm\\:pbx-w-fit{width:-moz-fit-content;width:fit-content}.sm\\:pbx-w-full{width:100%}.sm\\:pbx-w-max{width:-moz-max-content;width:max-content}.sm\\:pbx-w-min{width:-moz-min-content;width:min-content}.sm\\:pbx-w-screen{width:100vw}.sm\\:pbx-max-w-none{max-width:none}.sm\\:pbx-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.sm\\:pbx-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.sm\\:pbx-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.sm\\:pbx-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.sm\\:pbx-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:pbx-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:pbx-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\\:pbx-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\\:pbx-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.sm\\:pbx-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.sm\\:pbx-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.sm\\:pbx-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.sm\\:pbx-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.sm\\:pbx-grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.sm\\:pbx-grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.sm\\:pbx-grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.sm\\:pbx-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.sm\\:pbx-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.sm\\:pbx-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.sm\\:pbx-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.sm\\:pbx-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.sm\\:pbx-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.sm\\:pbx-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.sm\\:pbx-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.sm\\:pbx-flex-row{flex-direction:row}.sm\\:pbx-items-end{align-items:flex-end}.sm\\:pbx-justify-end{justify-content:flex-end}.sm\\:pbx-align-middle{vertical-align:middle}.sm\\:pbx-text-2xl{font-size:1.5rem;line-height:2rem}.sm\\:pbx-text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:pbx-text-4xl{font-size:2.25rem;line-height:2.5rem}.sm\\:pbx-text-5xl{font-size:3rem;line-height:1}.sm\\:pbx-text-6xl{font-size:3.75rem;line-height:1}.sm\\:pbx-text-7xl{font-size:4.5rem;line-height:1}.sm\\:pbx-text-8xl{font-size:6rem;line-height:1}.sm\\:pbx-text-9xl{font-size:8rem;line-height:1}.sm\\:pbx-text-base{font-size:1rem;line-height:1.5rem}.sm\\:pbx-text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:pbx-text-sm{font-size:.875rem;line-height:1.25rem}.sm\\:pbx-text-xl{font-size:1.25rem;line-height:1.75rem}.sm\\:pbx-text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 768px){.md\\:pbx-flex{display:flex}.md\\:pbx-grid{display:grid}.md\\:pbx-h-1{height:.25rem}.md\\:pbx-h-10{height:2.5rem}.md\\:pbx-h-11{height:2.75rem}.md\\:pbx-h-12{height:3rem}.md\\:pbx-h-14{height:3.5rem}.md\\:pbx-h-16{height:4rem}.md\\:pbx-h-2{height:.5rem}.md\\:pbx-h-20{height:5rem}.md\\:pbx-h-24{height:6rem}.md\\:pbx-h-28{height:7rem}.md\\:pbx-h-3{height:.75rem}.md\\:pbx-h-32{height:8rem}.md\\:pbx-h-36{height:9rem}.md\\:pbx-h-4{height:1rem}.md\\:pbx-h-40{height:10rem}.md\\:pbx-h-44{height:11rem}.md\\:pbx-h-48{height:12rem}.md\\:pbx-h-5{height:1.25rem}.md\\:pbx-h-52{height:13rem}.md\\:pbx-h-56{height:14rem}.md\\:pbx-h-6{height:1.5rem}.md\\:pbx-h-60{height:15rem}.md\\:pbx-h-64{height:16rem}.md\\:pbx-h-7{height:1.75rem}.md\\:pbx-h-72{height:18rem}.md\\:pbx-h-8{height:2rem}.md\\:pbx-h-80{height:20rem}.md\\:pbx-h-9{height:2.25rem}.md\\:pbx-h-96{height:24rem}.md\\:pbx-h-auto{height:auto}.md\\:pbx-h-fit{height:-moz-fit-content;height:fit-content}.md\\:pbx-h-full{height:100%}.md\\:pbx-h-max{height:-moz-max-content;height:max-content}.md\\:pbx-h-min{height:-moz-min-content;height:min-content}.md\\:pbx-h-screen{height:100vh}.md\\:pbx-max-h-\\[20rem\\]{max-height:20rem}.md\\:pbx-min-h-\\[20rem\\]{min-height:20rem}.md\\:pbx-w-1{width:.25rem}.md\\:pbx-w-10{width:2.5rem}.md\\:pbx-w-11{width:2.75rem}.md\\:pbx-w-12{width:3rem}.md\\:pbx-w-14{width:3.5rem}.md\\:pbx-w-16{width:4rem}.md\\:pbx-w-2{width:.5rem}.md\\:pbx-w-20{width:5rem}.md\\:pbx-w-24{width:6rem}.md\\:pbx-w-28{width:7rem}.md\\:pbx-w-3{width:.75rem}.md\\:pbx-w-32{width:8rem}.md\\:pbx-w-36{width:9rem}.md\\:pbx-w-4{width:1rem}.md\\:pbx-w-40{width:10rem}.md\\:pbx-w-44{width:11rem}.md\\:pbx-w-48{width:12rem}.md\\:pbx-w-5{width:1.25rem}.md\\:pbx-w-52{width:13rem}.md\\:pbx-w-56{width:14rem}.md\\:pbx-w-6{width:1.5rem}.md\\:pbx-w-60{width:15rem}.md\\:pbx-w-64{width:16rem}.md\\:pbx-w-7{width:1.75rem}.md\\:pbx-w-72{width:18rem}.md\\:pbx-w-8{width:2rem}.md\\:pbx-w-80{width:20rem}.md\\:pbx-w-9{width:2.25rem}.md\\:pbx-w-96{width:24rem}.md\\:pbx-w-auto{width:auto}.md\\:pbx-w-fit{width:-moz-fit-content;width:fit-content}.md\\:pbx-w-full{width:100%}.md\\:pbx-w-max{width:-moz-max-content;width:max-content}.md\\:pbx-w-min{width:-moz-min-content;width:min-content}.md\\:pbx-w-screen{width:100vw}.md\\:pbx-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:pbx-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.md\\:pbx-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.md\\:pbx-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\\:pbx-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:pbx-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:pbx-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\\:pbx-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\\:pbx-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.md\\:pbx-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.md\\:pbx-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.md\\:pbx-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.md\\:pbx-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.md\\:pbx-grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.md\\:pbx-grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.md\\:pbx-grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.md\\:pbx-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.md\\:pbx-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.md\\:pbx-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.md\\:pbx-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.md\\:pbx-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.md\\:pbx-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.md\\:pbx-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.md\\:pbx-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.md\\:pbx-rounded-lg{border-radius:.5rem}.md\\:pbx-px-3{padding-left:.75rem;padding-right:.75rem}.md\\:pbx-text-2xl{font-size:1.5rem;line-height:2rem}.md\\:pbx-text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:pbx-text-4xl{font-size:2.25rem;line-height:2.5rem}.md\\:pbx-text-5xl{font-size:3rem;line-height:1}.md\\:pbx-text-6xl{font-size:3.75rem;line-height:1}.md\\:pbx-text-7xl{font-size:4.5rem;line-height:1}.md\\:pbx-text-8xl{font-size:6rem;line-height:1}.md\\:pbx-text-9xl{font-size:8rem;line-height:1}.md\\:pbx-text-base{font-size:1rem;line-height:1.5rem}.md\\:pbx-text-lg{font-size:1.125rem;line-height:1.75rem}.md\\:pbx-text-sm{font-size:.875rem;line-height:1.25rem}.md\\:pbx-text-xl{font-size:1.25rem;line-height:1.75rem}.md\\:pbx-text-xs{font-size:.75rem;line-height:1rem}}@media (min-width: 1024px){.lg\\:pbx-mr-10{margin-right:2.5rem}.lg\\:pbx-block{display:block}.lg\\:pbx-flex{display:flex}.lg\\:pbx-grid{display:grid}.lg\\:pbx-h-1{height:.25rem}.lg\\:pbx-h-10{height:2.5rem}.lg\\:pbx-h-11{height:2.75rem}.lg\\:pbx-h-12{height:3rem}.lg\\:pbx-h-14{height:3.5rem}.lg\\:pbx-h-16{height:4rem}.lg\\:pbx-h-2{height:.5rem}.lg\\:pbx-h-20{height:5rem}.lg\\:pbx-h-24{height:6rem}.lg\\:pbx-h-28{height:7rem}.lg\\:pbx-h-3{height:.75rem}.lg\\:pbx-h-32{height:8rem}.lg\\:pbx-h-36{height:9rem}.lg\\:pbx-h-4{height:1rem}.lg\\:pbx-h-40{height:10rem}.lg\\:pbx-h-44{height:11rem}.lg\\:pbx-h-48{height:12rem}.lg\\:pbx-h-5{height:1.25rem}.lg\\:pbx-h-52{height:13rem}.lg\\:pbx-h-56{height:14rem}.lg\\:pbx-h-6{height:1.5rem}.lg\\:pbx-h-60{height:15rem}.lg\\:pbx-h-64{height:16rem}.lg\\:pbx-h-7{height:1.75rem}.lg\\:pbx-h-72{height:18rem}.lg\\:pbx-h-8{height:2rem}.lg\\:pbx-h-80{height:20rem}.lg\\:pbx-h-9{height:2.25rem}.lg\\:pbx-h-96{height:24rem}.lg\\:pbx-h-\\[10vh\\]{height:10vh}.lg\\:pbx-h-auto{height:auto}.lg\\:pbx-h-fit{height:-moz-fit-content;height:fit-content}.lg\\:pbx-h-full{height:100%}.lg\\:pbx-h-max{height:-moz-max-content;height:max-content}.lg\\:pbx-h-min{height:-moz-min-content;height:min-content}.lg\\:pbx-h-screen{height:100vh}.lg\\:pbx-max-h-\\[30rem\\]{max-height:30rem}.lg\\:pbx-min-h-\\[20rem\\]{min-height:20rem}.lg\\:pbx-w-1{width:.25rem}.lg\\:pbx-w-10{width:2.5rem}.lg\\:pbx-w-11{width:2.75rem}.lg\\:pbx-w-12{width:3rem}.lg\\:pbx-w-14{width:3.5rem}.lg\\:pbx-w-16{width:4rem}.lg\\:pbx-w-2{width:.5rem}.lg\\:pbx-w-20{width:5rem}.lg\\:pbx-w-24{width:6rem}.lg\\:pbx-w-28{width:7rem}.lg\\:pbx-w-3{width:.75rem}.lg\\:pbx-w-32{width:8rem}.lg\\:pbx-w-36{width:9rem}.lg\\:pbx-w-4{width:1rem}.lg\\:pbx-w-40{width:10rem}.lg\\:pbx-w-44{width:11rem}.lg\\:pbx-w-48{width:12rem}.lg\\:pbx-w-5{width:1.25rem}.lg\\:pbx-w-52{width:13rem}.lg\\:pbx-w-56{width:14rem}.lg\\:pbx-w-6{width:1.5rem}.lg\\:pbx-w-60{width:15rem}.lg\\:pbx-w-64{width:16rem}.lg\\:pbx-w-7{width:1.75rem}.lg\\:pbx-w-72{width:18rem}.lg\\:pbx-w-8{width:2rem}.lg\\:pbx-w-80{width:20rem}.lg\\:pbx-w-9{width:2.25rem}.lg\\:pbx-w-96{width:24rem}.lg\\:pbx-w-auto{width:auto}.lg\\:pbx-w-fit{width:-moz-fit-content;width:fit-content}.lg\\:pbx-w-full{width:100%}.lg\\:pbx-w-max{width:-moz-max-content;width:max-content}.lg\\:pbx-w-min{width:-moz-min-content;width:min-content}.lg\\:pbx-w-screen{width:100vw}.lg\\:pbx-max-w-2xl{max-width:42rem}.lg\\:pbx-max-w-3xl{max-width:48rem}.lg\\:pbx-max-w-4xl{max-width:56rem}.lg\\:pbx-max-w-5xl{max-width:64rem}.lg\\:pbx-max-w-6xl{max-width:72rem}.lg\\:pbx-max-w-7xl{max-width:80rem}.lg\\:pbx-max-w-full{max-width:100%}.lg\\:pbx-max-w-lg{max-width:32rem}.lg\\:pbx-max-w-md{max-width:28rem}.lg\\:pbx-max-w-sm{max-width:24rem}.lg\\:pbx-max-w-xl{max-width:36rem}.lg\\:pbx-auto-cols-\\[minmax\\(100px\\,_4fr\\)\\]{grid-auto-columns:minmax(100px,4fr)}.lg\\:pbx-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.lg\\:pbx-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.lg\\:pbx-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.lg\\:pbx-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.lg\\:pbx-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:pbx-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\\:pbx-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\\:pbx-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\\:pbx-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\\:pbx-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.lg\\:pbx-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.lg\\:pbx-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.lg\\:pbx-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.lg\\:pbx-grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.lg\\:pbx-grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.lg\\:pbx-grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.lg\\:pbx-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.lg\\:pbx-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.lg\\:pbx-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.lg\\:pbx-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.lg\\:pbx-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.lg\\:pbx-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.lg\\:pbx-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.lg\\:pbx-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}.lg\\:pbx-justify-between{justify-content:space-between}.lg\\:pbx-gap-x-12{-moz-column-gap:3rem;column-gap:3rem}.lg\\:pbx-border{border-width:1px}.lg\\:pbx-border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.lg\\:pbx-px-12{padding-left:3rem;padding-right:3rem}.lg\\:pbx-px-4{padding-left:1rem;padding-right:1rem}.lg\\:pbx-py-10{padding-top:2.5rem;padding-bottom:2.5rem}.lg\\:pbx-pt-2{padding-top:.5rem}.lg\\:pbx-text-2xl{font-size:1.5rem;line-height:2rem}.lg\\:pbx-text-3xl{font-size:1.875rem;line-height:2.25rem}.lg\\:pbx-text-4xl{font-size:2.25rem;line-height:2.5rem}.lg\\:pbx-text-5xl{font-size:3rem;line-height:1}.lg\\:pbx-text-6xl{font-size:3.75rem;line-height:1}.lg\\:pbx-text-7xl{font-size:4.5rem;line-height:1}.lg\\:pbx-text-8xl{font-size:6rem;line-height:1}.lg\\:pbx-text-9xl{font-size:8rem;line-height:1}.lg\\:pbx-text-base{font-size:1rem;line-height:1.5rem}.lg\\:pbx-text-lg{font-size:1.125rem;line-height:1.75rem}.lg\\:pbx-text-sm{font-size:.875rem;line-height:1.25rem}.lg\\:pbx-text-xl{font-size:1.25rem;line-height:1.75rem}.lg\\:pbx-text-xs{font-size:.75rem;line-height:1rem}.lg\\:pbx-shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1280px){.xl\\:pbx-flex{display:flex}.xl\\:pbx-grid{display:grid}.xl\\:pbx-h-1{height:.25rem}.xl\\:pbx-h-10{height:2.5rem}.xl\\:pbx-h-11{height:2.75rem}.xl\\:pbx-h-12{height:3rem}.xl\\:pbx-h-14{height:3.5rem}.xl\\:pbx-h-16{height:4rem}.xl\\:pbx-h-2{height:.5rem}.xl\\:pbx-h-20{height:5rem}.xl\\:pbx-h-24{height:6rem}.xl\\:pbx-h-28{height:7rem}.xl\\:pbx-h-3{height:.75rem}.xl\\:pbx-h-32{height:8rem}.xl\\:pbx-h-36{height:9rem}.xl\\:pbx-h-4{height:1rem}.xl\\:pbx-h-40{height:10rem}.xl\\:pbx-h-44{height:11rem}.xl\\:pbx-h-48{height:12rem}.xl\\:pbx-h-5{height:1.25rem}.xl\\:pbx-h-52{height:13rem}.xl\\:pbx-h-56{height:14rem}.xl\\:pbx-h-6{height:1.5rem}.xl\\:pbx-h-60{height:15rem}.xl\\:pbx-h-64{height:16rem}.xl\\:pbx-h-7{height:1.75rem}.xl\\:pbx-h-72{height:18rem}.xl\\:pbx-h-8{height:2rem}.xl\\:pbx-h-80{height:20rem}.xl\\:pbx-h-9{height:2.25rem}.xl\\:pbx-h-96{height:24rem}.xl\\:pbx-h-auto{height:auto}.xl\\:pbx-h-fit{height:-moz-fit-content;height:fit-content}.xl\\:pbx-h-full{height:100%}.xl\\:pbx-h-max{height:-moz-max-content;height:max-content}.xl\\:pbx-h-min{height:-moz-min-content;height:min-content}.xl\\:pbx-h-screen{height:100vh}.xl\\:pbx-w-1{width:.25rem}.xl\\:pbx-w-10{width:2.5rem}.xl\\:pbx-w-11{width:2.75rem}.xl\\:pbx-w-12{width:3rem}.xl\\:pbx-w-14{width:3.5rem}.xl\\:pbx-w-16{width:4rem}.xl\\:pbx-w-2{width:.5rem}.xl\\:pbx-w-20{width:5rem}.xl\\:pbx-w-24{width:6rem}.xl\\:pbx-w-28{width:7rem}.xl\\:pbx-w-3{width:.75rem}.xl\\:pbx-w-32{width:8rem}.xl\\:pbx-w-36{width:9rem}.xl\\:pbx-w-4{width:1rem}.xl\\:pbx-w-40{width:10rem}.xl\\:pbx-w-44{width:11rem}.xl\\:pbx-w-48{width:12rem}.xl\\:pbx-w-5{width:1.25rem}.xl\\:pbx-w-52{width:13rem}.xl\\:pbx-w-56{width:14rem}.xl\\:pbx-w-6{width:1.5rem}.xl\\:pbx-w-60{width:15rem}.xl\\:pbx-w-64{width:16rem}.xl\\:pbx-w-7{width:1.75rem}.xl\\:pbx-w-72{width:18rem}.xl\\:pbx-w-8{width:2rem}.xl\\:pbx-w-80{width:20rem}.xl\\:pbx-w-9{width:2.25rem}.xl\\:pbx-w-96{width:24rem}.xl\\:pbx-w-auto{width:auto}.xl\\:pbx-w-fit{width:-moz-fit-content;width:fit-content}.xl\\:pbx-w-full{width:100%}.xl\\:pbx-w-max{width:-moz-max-content;width:max-content}.xl\\:pbx-w-min{width:-moz-min-content;width:min-content}.xl\\:pbx-w-screen{width:100vw}.xl\\:pbx-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.xl\\:pbx-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.xl\\:pbx-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.xl\\:pbx-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.xl\\:pbx-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.xl\\:pbx-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\\:pbx-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\\:pbx-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.xl\\:pbx-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.xl\\:pbx-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.xl\\:pbx-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.xl\\:pbx-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.xl\\:pbx-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.xl\\:pbx-grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.xl\\:pbx-grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.xl\\:pbx-grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.xl\\:pbx-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.xl\\:pbx-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.xl\\:pbx-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.xl\\:pbx-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.xl\\:pbx-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.xl\\:pbx-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.xl\\:pbx-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.xl\\:pbx-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}}@media (min-width: 1536px){.\\32xl\\:pbx-flex{display:flex}.\\32xl\\:pbx-grid{display:grid}.\\32xl\\:pbx-h-1{height:.25rem}.\\32xl\\:pbx-h-10{height:2.5rem}.\\32xl\\:pbx-h-11{height:2.75rem}.\\32xl\\:pbx-h-12{height:3rem}.\\32xl\\:pbx-h-14{height:3.5rem}.\\32xl\\:pbx-h-16{height:4rem}.\\32xl\\:pbx-h-2{height:.5rem}.\\32xl\\:pbx-h-20{height:5rem}.\\32xl\\:pbx-h-24{height:6rem}.\\32xl\\:pbx-h-28{height:7rem}.\\32xl\\:pbx-h-3{height:.75rem}.\\32xl\\:pbx-h-32{height:8rem}.\\32xl\\:pbx-h-36{height:9rem}.\\32xl\\:pbx-h-4{height:1rem}.\\32xl\\:pbx-h-40{height:10rem}.\\32xl\\:pbx-h-44{height:11rem}.\\32xl\\:pbx-h-48{height:12rem}.\\32xl\\:pbx-h-5{height:1.25rem}.\\32xl\\:pbx-h-52{height:13rem}.\\32xl\\:pbx-h-56{height:14rem}.\\32xl\\:pbx-h-6{height:1.5rem}.\\32xl\\:pbx-h-60{height:15rem}.\\32xl\\:pbx-h-64{height:16rem}.\\32xl\\:pbx-h-7{height:1.75rem}.\\32xl\\:pbx-h-72{height:18rem}.\\32xl\\:pbx-h-8{height:2rem}.\\32xl\\:pbx-h-80{height:20rem}.\\32xl\\:pbx-h-9{height:2.25rem}.\\32xl\\:pbx-h-96{height:24rem}.\\32xl\\:pbx-h-auto{height:auto}.\\32xl\\:pbx-h-fit{height:-moz-fit-content;height:fit-content}.\\32xl\\:pbx-h-full{height:100%}.\\32xl\\:pbx-h-max{height:-moz-max-content;height:max-content}.\\32xl\\:pbx-h-min{height:-moz-min-content;height:min-content}.\\32xl\\:pbx-h-screen{height:100vh}.\\32xl\\:pbx-w-1{width:.25rem}.\\32xl\\:pbx-w-10{width:2.5rem}.\\32xl\\:pbx-w-11{width:2.75rem}.\\32xl\\:pbx-w-12{width:3rem}.\\32xl\\:pbx-w-14{width:3.5rem}.\\32xl\\:pbx-w-16{width:4rem}.\\32xl\\:pbx-w-2{width:.5rem}.\\32xl\\:pbx-w-20{width:5rem}.\\32xl\\:pbx-w-24{width:6rem}.\\32xl\\:pbx-w-28{width:7rem}.\\32xl\\:pbx-w-3{width:.75rem}.\\32xl\\:pbx-w-32{width:8rem}.\\32xl\\:pbx-w-36{width:9rem}.\\32xl\\:pbx-w-4{width:1rem}.\\32xl\\:pbx-w-40{width:10rem}.\\32xl\\:pbx-w-44{width:11rem}.\\32xl\\:pbx-w-48{width:12rem}.\\32xl\\:pbx-w-5{width:1.25rem}.\\32xl\\:pbx-w-52{width:13rem}.\\32xl\\:pbx-w-56{width:14rem}.\\32xl\\:pbx-w-6{width:1.5rem}.\\32xl\\:pbx-w-60{width:15rem}.\\32xl\\:pbx-w-64{width:16rem}.\\32xl\\:pbx-w-7{width:1.75rem}.\\32xl\\:pbx-w-72{width:18rem}.\\32xl\\:pbx-w-8{width:2rem}.\\32xl\\:pbx-w-80{width:20rem}.\\32xl\\:pbx-w-9{width:2.25rem}.\\32xl\\:pbx-w-96{width:24rem}.\\32xl\\:pbx-w-auto{width:auto}.\\32xl\\:pbx-w-fit{width:-moz-fit-content;width:fit-content}.\\32xl\\:pbx-w-full{width:100%}.\\32xl\\:pbx-w-max{width:-moz-max-content;width:max-content}.\\32xl\\:pbx-w-min{width:-moz-min-content;width:min-content}.\\32xl\\:pbx-w-screen{width:100vw}.\\32xl\\:pbx-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.\\32xl\\:pbx-grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-10{grid-template-rows:repeat(10,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-11{grid-template-rows:repeat(11,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-12{grid-template-rows:repeat(12,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-3{grid-template-rows:repeat(3,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-4{grid-template-rows:repeat(4,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-5{grid-template-rows:repeat(5,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-6{grid-template-rows:repeat(6,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-7{grid-template-rows:repeat(7,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-8{grid-template-rows:repeat(8,minmax(0,1fr))}.\\32xl\\:pbx-grid-rows-9{grid-template-rows:repeat(9,minmax(0,1fr))}}@media (prefers-color-scheme: dark){.dark\\:pbx-text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}}',Ak=function(r){return`<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${Pk}</style></head><body>${r}</body></html>`},Dk={class:"pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},Ik={class:"pbx-flex pbx-gap-4 pbx-flex-col pbx-divide-y pbx-divide-gray-300"},Lk={class:"pbx-mb-4 pbx-pb-8 pbx-border-b pbx-border-myPrimbryLightGrayColor"},Rk={class:"pbx-px-2"},zk={class:"pbx-mt-8"},_k={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},Fk={class:"pbx-overflow-x-auto"},jk={class:"pbx-min-w-full"},Hk={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},Wk={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},Uk={class:"pbx-min-w-[30rem] pbx-w-max"},qk={class:"pbx-inline-flex pbx-items-center px-2.5 py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium pbx-bg-blue-100 pbx-text-blue-800"},Kk={key:0,class:"pbx-mt-4"},Gk={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},Jk={class:"pbx-overflow-x-auto"},Yk={class:"pbx-min-w-full"},Xk={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},Qk={key:0},Zk={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},$k={class:"pbx-min-w-[30rem] pbx-w-max"},eE={key:1},tE={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},rE={class:"pbx-min-w-[30rem] pbx-w-max"},oE={key:1,class:"pbx-mt-8"},nE={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},iE={class:"pbx-overflow-x-auto"},aE={class:"pbx-min-w-full"},sE={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},lE={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},pE={class:"pbx-min-w-[30rem] pbx-w-max"},cE={key:0,class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},dE={class:"pbx-min-w-[30rem] pbx-w-max"},uE={class:"pbx-flex pbx-items-center pbx-space-x-3"},bE=["src"],mE={key:0,class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},fE={class:"pbx-min-w-[30rem] pbx-w-max"},hE={key:2,class:"pbx-mt-8"},xE={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},gE={class:"pbx-overflow-x-auto"},yE={class:"pbx-min-w-full"},wE={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},vE={key:0},kE={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},EE={class:"pbx-min-w-[30rem] pbx-w-max"},SE={key:1},CE={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},NE={class:"pbx-min-w-[30rem] pbx-w-max"},BE={key:2},ME={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},TE={class:"pbx-min-w-[30rem] pbx-w-max"},OE={key:3},VE={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},PE={class:"pbx-min-w-[30rem] pbx-w-max"},AE={key:3,class:"pbx-mt-8"},DE={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},IE={class:"pbx-overflow-x-auto"},LE={class:"pbx-min-w-full"},RE={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},zE={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},_E={class:"pbx-min-w-[30rem] pbx-w-max"},FE={class:"pbx-flex pbx-items-center pbx-space-x-3"},jE=["src"],HE={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},WE={class:"pbx-min-w-[30rem] pbx-w-max"},UE={class:"pbx-flex pbx-items-center pbx-space-x-3"},qE={class:"pbx-pr-6"},KE={class:"pbx-flex pbx-items-center pbx-space-x-3"},GE={class:"pbx-whitespace-nowrap"},JE={key:4,class:"pbx-mt-8"},YE={class:"pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg"},XE={class:"pbx-overflow-x-auto"},QE={class:"pbx-w-max"},ZE={class:"pbx-bg-white pbx-divide-y pbx-divide-gray-200"},$E={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},e3={class:"pbx-min-w-[30rem] pbx-w-max"},t3={key:0},r3={key:1},o3={key:0},n3={class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500"},i3={class:"pbx-min-w-[30rem] pbx-w-max"},a3={class:"pbx-inline-flex pbx-items-center px-2.5 py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium"},s3={class:"pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-border-b pbx-border-myPrimbryLightGrayColor"},l3={class:"pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900"},p3={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all"},c3={class:"pbx-myPrimaryParagraph pbx-text-xs pbx-text-white"},d3={__name:"PageBuilderSettings",setup(r){const e="v3.2.90",t=ae;new le(t);const o=a.ref(null),n=a.computed(()=>t.getConfigPageBuilder),i=a.computed(()=>t.getComponents),s=function(p,c){const d=document.createElement("a");d.setAttribute("href","data:text/html;charset=utf-8,"+encodeURIComponent(Ak(c))),d.setAttribute("download",p),d.style.display="none",document.body.appendChild(d),d.click(),document.body.removeChild(d)},l=function(){o.value=i.value.map(p=>p.html_code),s("downloaded_html.html",o.value.join(""))};return(p,c)=>{var d,u,b,m,f,h,x,y,w,v,g,S,k,C,O,D;return a.openBlock(),a.createElementBlock("div",Dk,[a.createElementVNode("div",Ik,[a.createElementVNode("div",Lk,[c[26]||(c[26]=a.createElementVNode("div",{class:"pbx-flex pbx-items-left pbx-flex-col pbx-gap-1"},[a.createElementVNode("h3",{class:"pbx-myQuaternaryHeader"},"Configuration Overview"),a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-text-xs"}," A summary of current user preferences, application settings, and system metadata including UI theme, language, saved components, and logo configuration. ")],-1)),a.createElementVNode("div",Rk,[a.createElementVNode("div",zk,[c[2]||(c[2]=a.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Version Information",-1)),a.createElementVNode("div",_k,[a.createElementVNode("div",Fk,[a.createElementVNode("table",jk,[c[1]||(c[1]=a.createElementVNode("thead",{class:"pbx-bg-gray-50"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Component "),a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Version ")])],-1)),a.createElementVNode("tbody",Hk,[a.createElementVNode("tr",null,[c[0]||(c[0]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Page Builder")],-1)),a.createElementVNode("td",Wk,[a.createElementVNode("div",Uk,[a.createElementVNode("span",qk,a.toDisplayString(a.unref(e)),1)])])])])])])])]),(d=n.value)!=null&&d.resourceData&&!a.unref(uo)(n.value.resourceData)?(a.openBlock(),a.createElementBlock("div",Kk,[c[6]||(c[6]=a.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Resource Data",-1)),a.createElementVNode("div",Gk,[a.createElementVNode("div",Jk,[a.createElementVNode("table",Yk,[c[5]||(c[5]=a.createElementVNode("thead",{class:"pbx-bg-gray-50"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),a.createElementVNode("tbody",Xk,[(b=(u=n.value)==null?void 0:u.resourceData)!=null&&b.title?(a.openBlock(),a.createElementBlock("tr",Qk,[c[3]||(c[3]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Title")],-1)),a.createElementVNode("td",Zk,[a.createElementVNode("div",$k,a.toDisplayString(n.value.resourceData.title),1)])])):a.createCommentVNode("",!0),(f=(m=n.value)==null?void 0:m.resourceData)!=null&&f.id?(a.openBlock(),a.createElementBlock("tr",eE,[c[4]||(c[4]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"ID")],-1)),a.createElementVNode("td",tE,[a.createElementVNode("div",rE,a.toDisplayString(n.value.resourceData.id),1)])])):a.createCommentVNode("",!0)])])])])])):a.createCommentVNode("",!0),(h=n.value)!=null&&h.userForPageBuilder&&!a.unref(uo)(n.value.userForPageBuilder)?(a.openBlock(),a.createElementBlock("div",oE,[c[11]||(c[11]=a.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"User Information",-1)),a.createElementVNode("div",nE,[a.createElementVNode("div",iE,[a.createElementVNode("table",aE,[c[10]||(c[10]=a.createElementVNode("thead",{class:"pbx-bg-gray-50"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),a.createElementVNode("tbody",sE,[a.createElementVNode("tr",null,[c[7]||(c[7]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"User Name")],-1)),a.createElementVNode("td",lE,[a.createElementVNode("div",pE,a.toDisplayString(n.value.userForPageBuilder.name),1)])]),a.createElementVNode("tr",null,[c[8]||(c[8]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Image")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(a.openBlock(),a.createElementBlock("td",cE,[a.createElementVNode("div",dE,[a.createElementVNode("div",uE,[a.createElementVNode("img",{class:"pbx-block pbx-inset-0 pbx-object-top pbx-h-10 pbx-min-h-10 pbx-max-h-10 pbx-w-10 pbx-min-w-10 pbx-max-w-10 pbx-object-cover pbx-rounded-full",src:n.value.userForPageBuilder.image,alt:"image"},null,8,bE)])])])):a.createCommentVNode("",!0)]),a.createElementVNode("tr",null,[c[9]||(c[9]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Image URL")],-1)),n.value.userForPageBuilder.image&&typeof n.value.userForPageBuilder.image=="string"&&n.value.userForPageBuilder.image.length>2?(a.openBlock(),a.createElementBlock("td",mE,[a.createElementVNode("div",fE,a.toDisplayString(n.value.userForPageBuilder.image),1)])):a.createCommentVNode("",!0)])])])])])])):a.createCommentVNode("",!0),(x=n.value)!=null&&x.userSettings&&!a.unref(uo)(n.value.userSettings)?(a.openBlock(),a.createElementBlock("div",hE,[c[17]||(c[17]=a.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"User Settings",-1)),a.createElementVNode("div",xE,[a.createElementVNode("div",gE,[a.createElementVNode("table",yE,[c[16]||(c[16]=a.createElementVNode("thead",{class:"pbx-bg-gray-50"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Setting "),a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),a.createElementVNode("tbody",wE,[(w=(y=n.value)==null?void 0:y.userSettings)!=null&&w.theme?(a.openBlock(),a.createElementBlock("tr",vE,[c[12]||(c[12]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Theme")],-1)),a.createElementVNode("td",kE,[a.createElementVNode("div",EE,a.toDisplayString(n.value.userSettings.theme),1)])])):a.createCommentVNode("",!0),(g=(v=n.value)==null?void 0:v.userSettings)!=null&&g.language?(a.openBlock(),a.createElementBlock("tr",SE,[c[13]||(c[13]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Language")],-1)),a.createElementVNode("td",CE,[a.createElementVNode("div",NE,a.toDisplayString(n.value.userSettings.language),1)])])):a.createCommentVNode("",!0),((k=(S=n.value)==null?void 0:S.userSettings)==null?void 0:k.autoSave)!==void 0?(a.openBlock(),a.createElementBlock("tr",BE,[c[14]||(c[14]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Auto Save")],-1)),a.createElementVNode("td",ME,[a.createElementVNode("div",TE,[a.createElementVNode("span",{class:a.normalizeClass(["pbx-inline-flex pbx-items-center px-2.5 py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",n.value.userSettings.autoSave?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},a.toDisplayString(n.value.userSettings.autoSave?"Enabled":"Disabled"),3)])])])):a.createCommentVNode("",!0),((O=(C=n.value)==null?void 0:C.userSettings)==null?void 0:O.notifications)!==void 0?(a.openBlock(),a.createElementBlock("tr",OE,[c[15]||(c[15]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Notifications")],-1)),a.createElementVNode("td",VE,[a.createElementVNode("div",PE,[a.createElementVNode("span",{class:a.normalizeClass(["pbx-inline-flex pbx-items-center px-2.5 py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",n.value.userSettings.notifications?"bg-green-100 text-green-800":"bg-red-100 text-red-800"])},a.toDisplayString(n.value.userSettings.notifications?"Enabled":"Disabled"),3)])])])):a.createCommentVNode("",!0)])])])])])):a.createCommentVNode("",!0),n.value.pageBuilderLogo&&!a.unref(uo)(n.value.pageBuilderLogo)?(a.openBlock(),a.createElementBlock("div",AE,[c[21]||(c[21]=a.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Logo Configuration",-1)),a.createElementVNode("div",DE,[a.createElementVNode("div",IE,[a.createElementVNode("table",LE,[c[20]||(c[20]=a.createElementVNode("thead",{class:"pbx-bg-gray-50"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Property "),a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Value ")])],-1)),a.createElementVNode("tbody",RE,[a.createElementVNode("tr",null,[c[18]||(c[18]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Logo")],-1)),a.createElementVNode("td",zE,[a.createElementVNode("div",_E,[a.createElementVNode("div",FE,[a.createElementVNode("img",{class:"pbx-h-4",src:n.value.pageBuilderLogo.src,alt:"Logo"},null,8,jE)])])])]),a.createElementVNode("tr",null,[c[19]||(c[19]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Logo URL")],-1)),a.createElementVNode("td",HE,[a.createElementVNode("div",WE,[a.createElementVNode("div",UE,[a.createElementVNode("div",qE,[a.createElementVNode("div",KE,[a.createElementVNode("span",GE,a.toDisplayString(n.value.pageBuilderLogo.src),1)])])])])])])])])])])])):a.createCommentVNode("",!0),(D=n.value)!=null&&D.updateOrCreate&&!a.unref(uo)(n.value.updateOrCreate)?(a.openBlock(),a.createElementBlock("div",JE,[c[25]||(c[25]=a.createElementVNode("h4",{class:"pbx-myQuaternaryHeader pbx-text-sm pbx-mb-2"},"Form Type",-1)),a.createElementVNode("div",YE,[a.createElementVNode("div",XE,[a.createElementVNode("table",QE,[c[24]||(c[24]=a.createElementVNode("thead",{class:"pbx-bg-gray-50"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Mode "),a.createElementVNode("th",{scope:"col",class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-font-medium pbx-text-gray-500 pbx-uppercase pbx-tracking-wider"}," Description ")])],-1)),a.createElementVNode("tbody",ZE,[a.createElementVNode("tr",null,[c[22]||(c[22]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Form Type")],-1)),a.createElementVNode("td",$E,[a.createElementVNode("div",e3,[a.createElementVNode("span",{class:a.normalizeClass(["pbx-inline-flex pbx-items-center px-2.5 py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium",n.value.updateOrCreate==="create"?"bg-green-100 text-green-800":"bg-blue-100 text-blue-800"])},[n.value&&n.value.updateOrCreate.formType==="create"?(a.openBlock(),a.createElementBlock("span",t3,a.toDisplayString(n.value.updateOrCreate.formType),1)):a.createCommentVNode("",!0),n.value&&n.value.updateOrCreate.formType==="update"?(a.openBlock(),a.createElementBlock("span",r3,a.toDisplayString(n.value.updateOrCreate.formType),1)):a.createCommentVNode("",!0)],2)])])]),n.value.updateOrCreate.formName&&n.value.updateOrCreate.formName.length>0?(a.openBlock(),a.createElementBlock("tr",o3,[c[23]||(c[23]=a.createElementVNode("td",{class:"pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-font-medium pbx-text-gray-900"},[a.createElementVNode("div",{class:"pbx-min-w-[30rem] pbx-w-max"},"Form Name")],-1)),a.createElementVNode("td",n3,[a.createElementVNode("div",i3,[a.createElementVNode("span",a3,a.toDisplayString(n.value.updateOrCreate.formName),1)])])])):a.createCommentVNode("",!0)])])])])])):a.createCommentVNode("",!0)])])]),a.createElementVNode("div",{class:"pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-border-b pbx-border-myPrimbryLightGrayColor"},[c[27]||(c[27]=a.createElementVNode("div",{class:"pbx-flex pbx-items-left pbx-flex-col pbx-gap-1"},[a.createElementVNode("h3",{class:"pbx-myQuaternaryHeader"},"Download Page as HTML"),a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-text-xs"},"Download current page layout.")],-1)),a.createElementVNode("div",{class:"pbx-mt-4"},[a.createElementVNode("button",{onClick:l,type:"button",class:"pbx-myPrimaryButton"}," Download HTML file ")])]),a.createElementVNode("div",s3,[c[29]||(c[29]=a.createElementVNode("div",{class:"pbx-flex pbx-items-left pbx-flex-col pbx-gap-1"},[a.createElementVNode("h3",{class:"pbx-myQuaternaryHeader"},"Complete Configuration Overview"),a.createElementVNode("p",{class:"pbx-myPrimaryParagraph pbx-text-xs"}," omplete configuration object currently used by the Page Builder. It includes information about the user, form behavior, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")],-1)),a.createElementVNode("div",l3,[c[28]||(c[28]=a.createElementVNode("div",{class:"pbx-flex bg-gray-800/40 pbx-ring-1 ring-white/5"},[a.createElementVNode("div",{class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},[a.createElementVNode("div",{class:"pbx-px-4 pbx-py-4 pbx-text-white"},"Configuration")])],-1)),a.createElementVNode("div",p3,[a.createElementVNode("p",c3," config: "+a.toDisplayString(JSON.stringify(n.value,null,4)),1)])])])])}}},u3={class:"pbx-w-full pbx-inset-x-0 pbx-h-[90vh] pbx-bg-white pbx-overflow-x-scroll lg:pbx-pt-2 pbx-pt-2"},b3={class:"pbx-flex pbx-items-left pbx-flex-col pbx-myPrimaryGap pbx-border-myPrimaryMediumGrayColor"},m3={class:"pbx-text-gray-100 pbx-overflow-hidden pbx-bg-stone-800"},f3={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs"},h3={class:"pbx-text-xs pbx-pb-2"},x3={class:"pbx-text-xs pbx-pb-2"},g3={class:"pbx-text-xs pbx-pb-2"},y3={class:"pbx-overflow-hidden pbx-bg-stone-800"},w3={class:"pbx-flex pbx-bg-stone-800 pbx-ring-1 ring-white/5"},v3={class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},k3={class:"pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-gray-100 pbx-text-xs pbx-break-all"},E3={key:0},S3={key:0},C3={class:"pbx-pb-2 pbx-text-xs"},N3={key:1,class:"pbx-overflow-hidden pbx-border pbx-border-gray-100 pbx-mb-6"},B3={class:"pbx-bg-stone-800 pbx-pt-4 pbx-1 pbx-border-b pbx-border-gray-200"},M3={class:"pbx-overflow-x-auto"},T3={class:"pbx-min-w-full"},O3={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},V3={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-b"},P3={class:"pbx-overflow-x-auto"},A3={class:"pbx-min-w-full"},D3={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},I3={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},L3={class:"pbx-overflow-x-auto"},R3={class:"pbx-min-w-full"},z3={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},_3={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},F3={key:1},j3={key:0},H3={class:"pbx-pb-2 pbx-text-xs"},W3={key:1,class:"pbx-overflow-hidden pbx-border pbx-border-gray-100 pbx-mb-6"},U3={class:"pbx-bg-stone-800 pbx-pt-4 pbx-1 pbx-border-b pbx-border-gray-200"},q3={class:"pbx-overflow-x-auto"},K3={class:"pbx-min-w-full"},G3={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},J3={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},Y3={class:"pbx-overflow-x-auto"},X3={class:"pbx-min-w-full"},Q3={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},Z3={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},$3={class:"pbx-overflow-x-auto"},eS={class:"pbx-min-w-full"},tS={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},rS={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},oS={class:"pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-lines pbx-font-sans pbx-flex pbx-items-start pbx-justify-left"},nS=["innerHTML"],iS={key:2},aS={key:0},sS={key:1},lS={class:"pbx-bg-stone-800 pbx-pt-4 pbx-1 pbx-border-b pbx-border-gray-200"},pS={class:"pbx-overflow-x-auto"},cS={class:"pbx-min-w-full"},dS={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},uS={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},bS={class:"pbx-overflow-x-auto"},mS={class:"pbx-min-w-full"},fS={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},hS={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-whitespace-pre-line"},xS={class:"pbx-overflow-x-auto"},gS={class:"pbx-min-w-full"},yS={class:"pbx-bg-stone-800 pbx-divide-y pbx-divide-gray-200"},wS={class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"},vS={class:"pbx-text-xs pbx-text-gray-100 pbx-whitespace-pre-lines pbx-font-sans pbx-flex pbx-items-start pbx-justify-left"},kS=["innerHTML"],ES={__name:"AdvancedPageBuilderSettings",setup(r){const e=ae,t=a.computed(()=>e.getElement),o=a.computed(()=>e.getComponent),n=a.computed(()=>e.getComponents),i=a.ref("element"),s=function(p){i.value=p};function l(p){return p?p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""}return(p,c)=>{var d,u,b,m,f,h,x,y,w,v;return a.openBlock(),a.createElementBlock("div",u3,[a.createElementVNode("div",b3,[c[23]||(c[23]=a.createElementVNode("p",{class:"pbx-myPrimaryParagraph"}," Overview of Selected Element, Component, and Components. This section provides real-time updates based on your HTML selection. ",-1)),a.createElementVNode("div",null,[c[7]||(c[7]=a.createElementVNode("h4",{class:"pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2"},"Types",-1)),a.createElementVNode("div",m3,[c[6]||(c[6]=a.createElementVNode("div",{class:"pbx-flex pbx-bg-stone-800 pbx-ring-1 ring-white/5"},[a.createElementVNode("div",{class:"pbx-mb-px pbx-flex pbx-text-xs pbx-font-medium pbx-text-myPrimaryMediumGrayColor"},[a.createElementVNode("div",{class:"pbx-px-4 pbx-py-4 pbx-text-gray-100"},"Types")])],-1)),a.createElementVNode("div",f3,[a.createElementVNode("p",h3,[c[3]||(c[3]=a.createElementVNode("span",null,"Element type: ",-1)),a.createElementVNode("span",null,a.toDisplayString(typeof t.value),1)]),a.createElementVNode("p",x3,[c[4]||(c[4]=a.createElementVNode("span",null,"Component type: ",-1)),a.createTextVNode(" "+a.toDisplayString(typeof o.value),1)]),a.createElementVNode("p",g3,[c[5]||(c[5]=a.createElementVNode("span",null,"Components: ",-1)),a.createElementVNode("span",null,a.toDisplayString(Array.isArray(n.value)===!0?"array":typeof n.value),1)])])])]),a.createElementVNode("div",null,[c[22]||(c[22]=a.createElementVNode("h4",{class:"pbx-myPrimaryParagraph pbx-text-xs pbx-pb-2"},"Content",-1)),a.createElementVNode("div",y3,[a.createElementVNode("div",w3,[a.createElementVNode("div",v3,[a.createElementVNode("div",{onClick:c[0]||(c[0]=g=>s("element")),class:a.normalizeClass(["pbx-px-4 pbx-py-4 pbx-cursor-pointer",[i.value==="element"?"pbx-text-gray-100":""]])}," Element ",2),a.createElementVNode("div",{onClick:c[1]||(c[1]=g=>s("component")),class:a.normalizeClass(["pbx-px-4 pbx-py-4 pbx-cursor-pointer",[i.value==="component"?"pbx-text-gray-100":""]])}," Component ",2),a.createElementVNode("div",{onClick:c[2]||(c[2]=g=>s("components")),class:a.normalizeClass(["pbx-px-4 pbx-py-4 pbx-cursor-pointer",[i.value==="components"?"pbx-text-gray-100":""]])}," Components added "+a.toDisplayString(Array.isArray(n.value)&&n.value.length),3)])]),a.createElementVNode("div",k3,[i.value==="element"?(a.openBlock(),a.createElementBlock("div",E3,[o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",S3,[a.createElementVNode("p",C3,a.toDisplayString(o.value===null?"No Element selected":typeof o.value),1)])),t.value?(a.openBlock(),a.createElementBlock("div",N3,[a.createElementVNode("div",B3,[a.createElementVNode("div",M3,[a.createElementVNode("table",T3,[c[8]||(c[8]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"}," Selected HTML: ")])],-1)),a.createElementVNode("tbody",O3,[a.createElementVNode("tr",null,[a.createElementVNode("td",V3,a.toDisplayString((d=t.value)==null?void 0:d.outerHTML),1)])])])]),a.createElementVNode("div",P3,[a.createElementVNode("table",A3,[c[9]||(c[9]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"}," Element src: ")])],-1)),a.createElementVNode("tbody",D3,[a.createElementVNode("tr",null,[a.createElementVNode("td",I3,a.toDisplayString((u=t.value)!=null&&u.src?(b=t.value)==null?void 0:b.src:typeof((m=t.value)==null?void 0:m.src)),1)])])])])]),a.createElementVNode("div",L3,[a.createElementVNode("table",R3,[c[10]||(c[10]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"}," Element classes: ")])],-1)),a.createElementVNode("tbody",z3,[a.createElementVNode("tr",null,[a.createElementVNode("td",_3,a.toDisplayString((f=t.value)!=null&&f.classList?(h=t.value)==null?void 0:h.classList:typeof((x=t.value)==null?void 0:x.classList)),1)])])])])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),i.value==="component"?(a.openBlock(),a.createElementBlock("div",F3,[o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",j3,[a.createElementVNode("p",H3,a.toDisplayString(o.value===null?"No Component selected":typeof o.value),1)])),o.value?(a.openBlock(),a.createElementBlock("div",W3,[a.createElementVNode("div",U3,[a.createElementVNode("div",q3,[a.createElementVNode("table",K3,[c[11]||(c[11]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"}," ID: ")])],-1)),a.createElementVNode("tbody",G3,[a.createElementVNode("tr",null,[a.createElementVNode("td",J3,a.toDisplayString((y=o.value)==null?void 0:y.id),1)])])])]),a.createElementVNode("div",Y3,[a.createElementVNode("table",X3,[c[12]||(c[12]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-t"}," Title: ")])],-1)),a.createElementVNode("tbody",Q3,[a.createElementVNode("tr",null,[a.createElementVNode("td",Z3,a.toDisplayString((w=o.value)==null?void 0:w.title),1)])])])])]),a.createElementVNode("div",$3,[a.createElementVNode("table",eS,[c[15]||(c[15]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"}," HTML Code: ")])],-1)),a.createElementVNode("tbody",tS,[a.createElementVNode("tr",null,[a.createElementVNode("td",rS,[a.createElementVNode("pre",oS,[c[13]||(c[13]=a.createTextVNode(" ")),a.createElementVNode("code",{class:"pbx-font-sans",innerHTML:l((v=o.value)==null?void 0:v.html_code)},null,8,nS),c[14]||(c[14]=a.createTextVNode(`
|
|
545
|
+
`))])])])])])])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),i.value==="components"?(a.openBlock(),a.createElementBlock("div",iS,[Array.isArray(n.value)&&n.value.length===0?(a.openBlock(),a.createElementBlock("div",aS,c[16]||(c[16]=[a.createElementVNode("p",{class:"pbx-pb-2 pbx-text-xs"},"No Components added yet",-1)]))):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createElementBlock("div",sS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,g=>(a.openBlock(),a.createElementBlock("div",{key:g.id,class:"pbx-overflow-hidden pbx-border pbx-border-gray-100 pbx-mb-6"},[a.createElementVNode("div",lS,[a.createElementVNode("div",pS,[a.createElementVNode("table",cS,[c[17]||(c[17]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"}," ID: ")])],-1)),a.createElementVNode("tbody",dS,[a.createElementVNode("tr",null,[a.createElementVNode("td",uS,a.toDisplayString(g.id),1)])])])]),a.createElementVNode("div",bS,[a.createElementVNode("table",mS,[c[18]||(c[18]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal pbx-border-t"}," Title: ")])],-1)),a.createElementVNode("tbody",fS,[a.createElementVNode("tr",null,[a.createElementVNode("td",hS,a.toDisplayString(g.title),1)])])])])]),a.createElementVNode("div",xS,[a.createElementVNode("table",gS,[c[21]||(c[21]=a.createElementVNode("thead",{class:"pbx-bg-stone-800"},[a.createElementVNode("tr",null,[a.createElementVNode("th",{class:"pbx-px-6 pbx-py-3 pbx-text-left pbx-text-xs pbx-text-gray-100 pbx-font-normal"}," HTML Code: ")])],-1)),a.createElementVNode("tbody",yS,[a.createElementVNode("tr",null,[a.createElementVNode("td",wS,[a.createElementVNode("pre",vS,[c[19]||(c[19]=a.createTextVNode(" ")),a.createElementVNode("code",{class:"pbx-font-sans",innerHTML:l(g.html_code)},null,8,kS),c[20]||(c[20]=a.createTextVNode(`
|
|
546
|
+
`))])])])])])])]))),128))])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])])])])])}}},SS={class:"pbx-flex pbx-gap-2 pbx-items-center pbx-myPrimaryParagraph pbx-font-medium pbx-text-xs pbx-py-1 pbx-px-2 pbx-rounded-full lg:pbx-border lg:pbx-border-gray-200 lg:pbx-shadow-sm lg:pbx-mr-10"},CS={key:0,class:"pbx-flex pbx-items-center pbx-myPrimaryTag pbx-py-0"},NS={class:"pbx-text-white pbx-rounded-full pbx-bg-myPrimaryBrandColor pbx-flex pbx-justify-center pbx-items-center pbx-text-xs pbx-h-8 pbx-min-h-8 pbx-max-h-8 pbx-w-8 pbx-min-w-8 pbx-max-w-8 pbx-font-normal"},BS={class:"pbx-hidden pbx-text-xs pbx-h-8 lg:pbx-flex pbx-items-center pbx-font-normal"},MS={key:1,class:"pbx-flex pbx-items-center lg:pbx-myPrimaryTag pbx-py-0 pbx-gap-4 pbx-w-max"},TS={class:"pbx-text-white pbx-flex-shrink-0 pbx-h-8 pbx-w-8 pbx-rounded-full pbx-flex pbx-justify-center pbx-items-center pbx-text-xs pbx-rounded-l-full"},OS=["src"],VS={class:"pbx-hidden pbx-text-xs pbx-h-8 lg:pbx-flex pbx-items-center pbx-font-normal"},PS={class:"pbx-relative pbx-group"},AS={class:"pbx-absolute pbx-left-0 -pbx-ml-16 -pbx-mt-2 pbx-flex pbx-flex-col pbx-gap-3 pbx-shadow-lg pbx-bg-white pbx-w-max pbx-border pbx-border-gray-100 pbx-rounded-2xl pbx-transition-all pbx-duration-200 pbx-ease-out pbx-pt-4 pbx-pr-4 pbx-pb-4 pbx-pl-2 pbx-z-30 pbx-opacity-0 pbx-pointer-events-none pbx-translate-y-2 group-hover:pbx-opacity-100 group-hover:pbx-pointer-events-auto group-hover:pbx-translate-y-0"},DS={__name:"ToolbarOption",setup(r){const e=ae,t=a.computed(()=>e.getConfigPageBuilder),o=new le(e),n=a.ref(!1),i=a.ref(""),s=a.ref(1),l=a.ref(""),p=a.ref(""),c=a.ref(""),d=a.ref(null),u=a.ref(null),b=a.ref(null),m=a.ref(null),f=a.ref(null),h=function(){n.value=!0,i.value="delete",s.value=2,l.value="Remove all Components",p.value="Are you sure you want to remove all Components?",c.value="Close",d.value=null,u.value="Delete",b.value=function(){n.value=!1},f.value=async function(){o.deleteAllComponents(),await o.clearHtmlSelection(),t.value.updateOrCreate&&typeof t.value.updateOrCreate.formType=="string"&&(t.value.updateOrCreate.formType==="create"&&await o.removeItemComponentsLocalStorage(),t.value.updateOrCreate.formType==="update"&&await o.removeItemComponentsLocalStorage()),n.value=!1}},x=a.ref(!1),y=function(){x.value=!1},w=function(){x.value=!0},v=a.ref(!1),g=function(){v.value=!1},S=function(){v.value=!0};return(k,C)=>{var O;return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",SS,[t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&(!t.value.userForPageBuilder.image||typeof t.value.userForPageBuilder.image=="string"&&((O=t.value.userForPageBuilder.image)==null?void 0:O.length)<2)?(a.openBlock(),a.createElementBlock("div",CS,[a.createElementVNode("div",NS,a.toDisplayString(typeof t.value.userForPageBuilder.name=="string"&&t.value.userForPageBuilder.name[0]),1),a.createElementVNode("div",BS,a.toDisplayString(t.value.userForPageBuilder.name),1)])):a.createCommentVNode("",!0),t.value&&t.value.userForPageBuilder&&t.value.userForPageBuilder.name&&t.value.userForPageBuilder.image&&typeof t.value.userForPageBuilder.image=="string"&&t.value.userForPageBuilder.image.length>2?(a.openBlock(),a.createElementBlock("div",MS,[a.createElementVNode("div",TS,[a.createElementVNode("img",{alt:"avatar",src:`${t.value.userForPageBuilder.image}`,class:"pbx-block pbx-inset-0 pbx-object-top pbx-h-8 pbx-min-h-8 pbx-max-h-8 pbx-w-8 pbx-min-w-8 pbx-max-w-8 pbx-object-cover pbx-rounded-full"},null,8,OS)]),a.createElementVNode("div",VS,a.toDisplayString(t.value.userForPageBuilder.name),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",null,[a.createElementVNode("div",PS,[C[2]||(C[2]=a.createElementVNode("button",{type:"button",class:"pbx-cursor-pointer lg:pbx-flex pbx-myPrimaryTag pbx-font-normal pbx-w-max pbx-text-xs"},[a.createElementVNode("span",null," Options ")],-1)),a.createElementVNode("div",AS,[a.createElementVNode("button",{onClick:C[0]||(C[0]=()=>{a.unref(o).clearHtmlSelection(),w()}),class:"pbx-cursor-pointer lg:pbx-flex pbx-myPrimaryTag pbx-font-normal pbx-w-max pbx-border-none pbx-m-0",type:"button"}," Config Overview "),a.createElementVNode("button",{onClick:S,class:"pbx-cursor-pointer lg:pbx-flex pbx-myPrimaryTag pbx-font-normal pbx-w-max pbx-border-none pbx-m-0",type:"button"}," HTML Overview "),a.createElementVNode("button",{onClick:C[1]||(C[1]=()=>{a.unref(o).clearHtmlSelection(),h()}),class:"pbx-cursor-pointer lg:pbx-flex pbx-myPrimaryTag pbx-font-normal pbx-w-max pbx-border-none pbx-m-0 pbx-bg-myPrimaryErrorColor pbx-text-white",type:"button"}," Delete Layout ")])])])]),a.createVNode(Lr,{maxWidth:"5xl",showModalBuilder:x.value,title:"Main Settings",onCloseMainModalBuilder:y,minHeight:"",maxHeight:""},{default:a.withCtx(()=>[a.createVNode(d3)]),_:1},8,["showModalBuilder"]),a.createVNode(Lr,{maxWidth:"5xl",showModalBuilder:v.value,title:"Selected HTML",onCloseMainModalBuilder:g,minHeight:"",maxHeight:""},{default:a.withCtx(()=>[a.createVNode(ES)]),_:1},8,["showModalBuilder"]),a.createVNode(Rr,{showDynamicModalBuilder:n.value,type:i.value,gridColumnAmount:s.value,title:l.value,description:p.value,firstButtonText:c.value,secondButtonText:d.value,thirdButtonText:u.value,onFirstModalButtonFunctionDynamicModalBuilder:b.value,onSecondModalButtonFunctionDynamicModalBuilder:m.value,onThirdModalButtonFunctionDynamicModalBuilder:f.value},{default:a.withCtx(()=>C[3]||(C[3]=[a.createElementVNode("header",null,null,-1),a.createElementVNode("main",null,null,-1)])),_:1,__:[3]},8,["showDynamicModalBuilder","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"])])}}};let Vl=null;function IS(){return(r,e=300)=>{Vl&&clearTimeout(Vl),Vl=setTimeout(r,e)}}const LS={id:"builder-container",class:"pbx-font-sans pbx-max-w-full pbx-m-1 pbx-border pbx-border-gray-400 pbx-inset-x-0 pbx-z-10 pbx-bg-white pbx-overflow-x-scroll"},RS={id:"pagebuilder-top-area",class:"lg:pbx-px-4 pbx-pt-2 pbx-pb-4 pbx-mx-4 pbx-mb-4 pbx-mt-2"},zS={key:0,class:"pbx-flex pbx-items-center pbx-divide-x pbx-divide-gray-200"},_S={id:"pagebuilder-logo-main",class:"pbx-pr-4"},FS=["src"],jS={key:1},HS={class:"pbx-relative pbx-h-full pbx-flex pbx-pb-2 pbx-gap-2"},WS={class:"pbx-mx-2 pbx-flex pbx-flex-col pbx-myPrimaryGap pbx-items-stretch"},US={class:"pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center"},qS={id:"pagebuilder-toolbar-area",class:"pbx-flex pbx-items-center pbx-justify-between pbx-rounded-t-2xl pbx-bg-myPrimaryLightGrayColor pbx-min-w-[30rem]"},KS=["disabled"],GS={key:0,class:"pbx-h-10 pbx-w-4 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-justify-center"},JS={key:1,class:"pbx-h-10 pbx-w-4 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-justify-center"},YS={class:"pbx-flex pbx-items-center pbx-justify-center pbx-gap-4"},XS={id:"contains-pagebuilder",class:"pbx-pl-4 pbx-pr-4 pbx-pb-4 pbx-overflow-y-auto pbx-pt-1 pbx-h-[39rem]"},QS={id:"pagebuilder"},ZS=["onMouseup"],$S=["innerHTML"],eC={class:"pbx-mt-6 pbx-flex pbx-items-center pbx-gap-2 pbx-justify-center"},tC={__name:"PageBuilder",props:{CustomMediaLibraryComponent:{type:Object,default:null},CustomBuilderComponents:{type:Object,default:null}},setup(r){const e=r,t=Na,o=ae,n=new le(o);a.provide("pageBuilderStateStore",o),a.provide("internalPinia",t),a.provide("CustomMediaComponent",e.CustomMediaLibraryComponent),a.provide("CustomBuilderComponents",e.CustomBuilderComponents);const i=()=>{m.value=!1};a.provide("closeAddComponentModal",i);const s=a.computed(()=>o.getConfigPageBuilder),l=a.computed(()=>o.getIsSaving),p=a.computed(()=>o.getMenuRight),c=function(){n.previewCurrentDesign()},d=a.ref(!1),u=function(){c(),d.value=!0},b=function(){d.value=!1},m=a.ref(!1),f=a.ref(""),h=a.ref(""),x=a.ref(null),y=async function(){await n.clearHtmlSelection(),f.value="Add Components to Page",h.value="Close",m.value=!0,x.value=function(){m.value=!1}},w=a.computed(()=>o.getComponents),v=a.computed(()=>o.getElement),g=a.computed(()=>!v.value||!(v.value instanceof HTMLElement)?"":{src:v.value.getAttribute("src"),href:v.value.getAttribute("href"),style:v.value.getAttribute("style"),class:v.value.getAttribute("class"),dataImage:v.value.getAttribute("data-image")}),S=IS();a.watch(g,async(W,V)=>{((W==null?void 0:W.src)!==(V==null?void 0:V.src)||(W==null?void 0:W.href)!==(V==null?void 0:V.href)||(W==null?void 0:W.style)!==(V==null?void 0:V.style)||(W==null?void 0:W.class)!==(V==null?void 0:V.class)||(W==null?void 0:W.dataImage)!==(V==null?void 0:V.dataImage))&&S(async()=>{await n.handleAutoSave(),await n.initializeElementStyles()},200)});const k=function(W){o.setComponent(W)},C=a.ref(null),O={updateOrCreate:{formType:"create",formName:"post"}},D=function(W){if(W==null||W&&Object.keys(W).length===0&&W.constructor===Object){n.applyPageBuilderConfig(O);return}W&&Object.keys(W).length!==0&&W.constructor===Object&&Vk(W)};a.watch(()=>s.value,W=>{n.updateLocalStorageItemName(),W&&W.updateOrCreate&&W.updateOrCreate.formType==="create"&&n.mountComponentsToDOM()},{immediate:!0});const B=a.ref(1),E=a.ref(""),P=a.ref(!1),_=a.ref(""),ee=a.ref(""),re=a.ref(""),G=a.ref(null),z=a.ref(null),Q=a.ref(null),ne=a.ref(null),Ge=a.ref(null),dt=a.ref(null),nt=async function(){await n.clearHtmlSelection(),E.value="default",_.value="Continue Your Work?",ee.value="We noticed you have some changes that weren’t saved last time. Would you like to pick up where you left off, or use the version that’s currently saved?",re.value="Use Saved Version",G.value=null,z.value="Continue Where I Left Off",P.value=!0,Q.value=function(){P.value=!1},ne.value=function(){},Ge.value=async function(){dt.value=!0,await ga(600),await n.resumeEditingForUpdate(),dt.value=!1,P.value=!1}};return a.onMounted(async()=>{const W=s.value;D(W),n.updateLocalStorageItemName(),n.deleteOldPageBuilderLocalStorage(),await n.clearHtmlSelection(),await n.addListenersToEditableElements(),await n.hasLocalDraftForUpdate()&&nt()}),(W,V)=>(a.openBlock(),a.createElementBlock("div",LS,[a.createElementVNode("div",RS,[a.createElementVNode("div",{onClick:V[1]||(V[1]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"])),class:"pbx-flex pbx-justify-between pbx-items-center pbx-pb-2 pbx-border-b pbx-border-gray-200"},[a.createElementVNode("div",{onClick:V[0]||(V[0]=oe=>a.unref(n).clearHtmlSelection())},[s.value&&s.value.pageBuilderLogo&&s.value.pageBuilderLogo.src?(a.openBlock(),a.createElementBlock("div",zS,[a.createElementVNode("div",_S,[a.createElementVNode("img",{class:"pbx-h-6",src:s.value.pageBuilderLogo.src,alt:"Logo"},null,8,FS)]),V[17]||(V[17]=a.createElementVNode("span",{class:"pbx-myPrimaryParagraph pbx-font-medium pbx-pl-4"},"Editing Page ",-1))])):(a.openBlock(),a.createElementBlock("div",jS,V[18]||(V[18]=[a.createElementVNode("div",{class:"pbx-pr-6"},[a.createElementVNode("span",{class:"pbx-myPrimaryParagraph pbx-font-medium"},"Editing Page ")],-1)])))]),a.createElementVNode("div",null,[a.createVNode(DS)])])]),m.value?(a.openBlock(),a.createBlock(X2,{key:0,show:m.value,firstButtonText:h.value,title:f.value,CustomBuilderComponents:e.CustomBuilderComponents,onFirstModalButtonSearchComponentsFunction:x.value},null,8,["show","firstButtonText","title","CustomBuilderComponents","onFirstModalButtonSearchComponentsFunction"])):a.createCommentVNode("",!0),a.createVNode(Lr,{title:"Preview",showModalBuilder:d.value,onCloseMainModalBuilder:b,maxWidth:"screen"},{default:a.withCtx(()=>[a.createVNode(Hl)]),_:1},8,["showModalBuilder"]),a.createVNode(Rr,{showDynamicModalBuilder:P.value,isLoading:dt.value,type:E.value,gridColumnAmount:B.value,title:_.value,description:ee.value,firstButtonText:re.value,secondButtonText:G.value,thirdButtonText:z.value,onFirstModalButtonFunctionDynamicModalBuilder:Q.value,onSecondModalButtonFunctionDynamicModalBuilder:ne.value,onThirdModalButtonFunctionDynamicModalBuilder:Ge.value},{default:a.withCtx(()=>V[19]||(V[19]=[a.createElementVNode("header",null,null,-1),a.createElementVNode("main",null,null,-1)])),_:1,__:[19]},8,["showDynamicModalBuilder","isLoading","type","gridColumnAmount","title","description","firstButtonText","secondButtonText","thirdButtonText","onFirstModalButtonFunctionDynamicModalBuilder","onSecondModalButtonFunctionDynamicModalBuilder","onThirdModalButtonFunctionDynamicModalBuilder"]),a.createElementVNode("div",null,[a.createElementVNode("div",HS,[a.createElementVNode("div",{onClick:V[4]||(V[4]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"])),id:"pagebuilder-left-area",class:"pbx-min-w-[3.5rem] pbx-pt-6 pbx-pb-2 pbx-ml-2 pbx-bg-myPrimaryLightGrayColor pbx-rounded-full pbx-shadow-sm"},[a.createElementVNode("div",WS,[a.createElementVNode("div",US,[a.createElementVNode("button",{type:"button",onClick:V[2]||(V[2]=()=>{a.unref(o).setComponentArrayAddMethod("unshift"),y()}),class:"pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"},V[20]||(V[20]=[a.createElementVNode("span",{class:"pbx-myMediumIcon material-symbols-outlined"}," interests ",-1)]))]),a.createElementVNode("div",{onClick:V[3]||(V[3]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"]))},[v.value?(a.openBlock(),a.createBlock(rf,{key:0})):a.createCommentVNode("",!0)])])]),a.createElementVNode("main",{class:a.normalizeClass(["pbx-flex pbx-flex-col pbx-h-full pbx-grow pbx-rounded-tr-2xl pbx-rounded-tl-2xl pbx-border pbx-border-gray-200 pbx-items-stretch",{"pbx-mr-2":!p.value,"":p.value}])},[a.createElementVNode("div",qS,[a.createElementVNode("div",{onClick:V[6]||(V[6]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"])),class:"pbx-flex pbx-myPrimaryGap pbx-items-center pbx-pt-4 pbx-pb-2 pbx-pl-2 pbx-h-24 pbx-w-full pbx-min-w-36"},[a.createElementVNode("button",{class:"pbx-mySecondaryButton pbx-h-6 pbx-flex pbx-gap-2",onClick:V[5]||(V[5]=a.withModifiers(async()=>{await a.unref(n).clearHtmlSelection(),await a.unref(n).handleManualSave()},["stop"])),type:"button",disabled:l.value},[l.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",GS,V[21]||(V[21]=[a.createElementVNode("span",{class:"material-symbols-outlined"},"save",-1)]))),l.value?(a.openBlock(),a.createElementBlock("div",JS,V[22]||(V[22]=[a.createElementVNode("span",{class:"pbx-relative pbx-flex pbx-size-3"},[a.createElementVNode("span",{class:"pbx-absolute pbx-inline-flex pbx-h-full pbx-w-full pbx-animate-ping pbx-rounded-full pbx-bg-gray-400 pbx-opacity-75"}),a.createElementVNode("span",{class:"pbx-relative pbx-inline-flex pbx-size-3 pbx-rounded-full pbx-bg-green-200"})],-1)]))):a.createCommentVNode("",!0),V[23]||(V[23]=a.createElementVNode("div",null,"Save",-1))],8,KS)]),a.createElementVNode("div",{onClick:V[10]||(V[10]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"])),class:"pbx-flex pbx-justify-end pbx-py-2 pbx-pr-2 pbx-h-24 pbx-w-full"},[a.createElementVNode("div",{onClick:V[9]||(V[9]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"])),class:"pbx-flex pbx-items-center pbx-justify-center pbx-gap-4"},[a.createElementVNode("button",{type:"button",onClick:V[7]||(V[7]=()=>{a.unref(o).setComponentArrayAddMethod("unshift"),y()})},V[24]||(V[24]=[a.createStaticVNode('<div class="pbx-flex pbx-items-center pbx-justify-center pbx-gap-2"><span class="lg:pbx-block pbx-hidden"><div class="pbx-whitespace-nowrap">Add new Components</div></span><span class="pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"><span class="pbx-myMediumIcon material-symbols-outlined"> interests </span></span></div>',1)])),a.createElementVNode("div",YS,[a.createElementVNode("button",{type:"button",onClick:V[8]||(V[8]=()=>{a.unref(o).setMenuRight(!1),a.unref(o).setElement(null),a.unref(n).clearHtmlSelection(),u()})},V[25]||(V[25]=[a.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-center pbx-gap-2"},[a.createElementVNode("div",{class:"pbx-whitespace-nowrap lg:pbx-block pbx-hidden"},"Preview"),a.createElementVNode("span",{class:"pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"},[a.createElementVNode("span",{class:"pbx-myMediumIcon material-symbols-outlined"}," visibility ")])],-1)]))])])]),a.createElementVNode("div",{onClick:V[13]||(V[13]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"])),class:"pbx-flex pbx-justify-end pbx-py-2 pbx-pr-2 pbx-w-full pbx-h-24"},[a.createElementVNode("div",{onClick:V[12]||(V[12]=a.withModifiers(oe=>a.unref(n).clearHtmlSelection(),["self"])),class:"pbx-flex pbx-items-center pbx-justify-center pbx-gap-4"},[p.value===!1?(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",onClick:V[11]||(V[11]=oe=>a.unref(o).setMenuRight(!0))},V[26]||(V[26]=[a.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-center pbx-gap-2"},[a.createElementVNode("span",{class:"lg:pbx-block pbx-hidden"}," Styling "),a.createElementVNode("span",{class:"pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"},[a.createElementVNode("span",{class:"pbx-myMediumIcon material-symbols-outlined"}," more_vert ")])],-1)]))):a.createCommentVNode("",!0)])])]),a.createVNode(N2),a.createElementVNode("div",XS,[a.createElementVNode("div",QS,[a.createElementVNode("div",{ref_key:"draggableZone",ref:C},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(w.value,oe=>(a.openBlock(),a.createElementBlock("div",{key:oe.id,id:"page-builder-editor-editable-area",class:"pbx-bg-white pbx-grow"},[a.createElementVNode("div",{onMouseup:Et=>k(oe),class:"pbx-relative group"},[a.createElementVNode("div",{innerHTML:oe.html_code},null,8,$S)],40,ZS)]))),128))],512),a.createElementVNode("div",{onClick:V[15]||(V[15]=oe=>a.unref(n).clearHtmlSelection()),id:"pagebuilder-bottom-components-area",class:a.normalizeClass(["pbx-pt-8 pbx-pb-12 pbx-text-center focus:pbx-outline-none focus:pbx-ring-2 focus:pbx-ring-indigo-500 focus:pbx-ring-offset-2 pbx-my-2 pbx-mx-4",{"pbx-border-t pbx-border-gray-200":w.value.length>0}])},[V[28]||(V[28]=a.createElementVNode("div",{class:"pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-font-medium"},[a.createElementVNode("span",{class:"lg:pbx-block pbx-hidden"},[a.createElementVNode("div",null,"Add new components to the bottom of the page")])],-1)),a.createElementVNode("div",eC,[a.createElementVNode("button",{onClick:V[14]||(V[14]=()=>{a.unref(o).setComponentArrayAddMethod("push"),y()}),type:"button",class:"pbx-myPrimaryButton pbx-flex pbx-items-center pbx-gap-2 pbx-justify-center"},V[27]||(V[27]=[a.createElementVNode("span",{class:"pbx-myMediumIcon material-symbols-outlined"}," interests ",-1),a.createElementVNode("span",{class:"pbx-font-medium"}," Add new Components ",-1)]))])],2)])])],2),a.createElementVNode("aside",{"aria-label":"Menu",id:"pagebuilder-right-area",class:a.normalizeClass([{"pbx-w-0":!p.value,"pbx-w-80 pbx-mr-2 pbx-bg-myPrimaryLightGrayColor pbx-items-stretch":p.value},"pbx-duration-300 pbx-z-20 pbx-flex-shrink-0 pbx-overflow-hidden pbx-shadow-sm pbx-rounded-l-2xl"])},[a.createVNode(Tk,{onCloseEditor:V[16]||(V[16]=oe=>a.unref(o).setMenuRight(!1))})],2)])])]))}};Y.PageBuilder=tC,Y.PageBuilderClass=le,Y.Preview=Hl,Y.createPinia=rp,Y.sharedPageBuilderPinia=Na,Y.sharedPageBuilderStore=ae,Y.usePageBuilderModal=Ab,Y.usePageBuilderStateStore=pp,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|