@tech_carthagos/page-builder 1.0.12 → 1.0.13

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.
@@ -0,0 +1,189 @@
1
+ "use strict";const p=require("react/jsx-runtime"),j=require("react"),Zs=require("react-dom"),c0=require("@tanstack/react-query");function Qs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const x=Qs(j),el=Qs(Zs);function tl(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=tl(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Kt(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=tl(t))&&(n&&(n+=" "),n+=e);return n}const $u="-",d0=t=>{const e=p0(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split($u);return a[0]===""&&a.length!==1&&a.shift(),rl(a,e)||f0(o)},getConflictingClassGroupIds:(o,a)=>{const s=r[o]||[];return a&&n[o]?[...s,...n[o]]:s}}},rl=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?rl(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const u=t.join($u);return(o=e.validators.find(({validator:a})=>a(u)))==null?void 0:o.classGroupId},aa=/^\[(.+)\]$/,f0=t=>{if(aa.test(t)){const e=aa.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},p0=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return b0(Object.entries(t.classGroups),r).forEach(([u,o])=>{Gi(o,n,u,e)}),n},Gi=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const u=i===""?e:sa(e,i);u.classGroupId=r;return}if(typeof i=="function"){if(h0(i)){Gi(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,o])=>{Gi(o,sa(e,u),r,n)})})},sa=(t,e)=>{let r=t;return e.split($u).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},h0=t=>t.isThemeGetter,b0=(t,e)=>e?t.map(([r,n])=>{const i=n.map(u=>typeof u=="string"?e+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([o,a])=>[e+o,a])):u);return[r,i]}):t,g0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(u,o)=>{r.set(u,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(u){let o=r.get(u);if(o!==void 0)return o;if((o=n.get(u))!==void 0)return i(u,o),o},set(u,o){r.has(u)?r.set(u,o):i(u,o)}}},nl="!",m0=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],u=e.length,o=a=>{const s=[];let l=0,c=0,h;for(let b=0;b<a.length;b++){let y=a[b];if(l===0){if(y===i&&(n||a.slice(b,b+u)===e)){s.push(a.slice(c,b)),c=b+u;continue}if(y==="/"){h=b;continue}}y==="["?l++:y==="]"&&l--}const d=s.length===0?a:a.substring(c),f=d.startsWith(nl),g=f?d.substring(1):d,m=h&&h>c?h-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:o}):o},y0=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},v0=t=>({cache:g0(t.cacheSize),parseClassName:m0(t),...d0(t)}),x0=/\s+/,w0=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,u=[],o=t.trim().split(x0);let a="";for(let s=o.length-1;s>=0;s-=1){const l=o[s],{modifiers:c,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:f}=r(l);let g=!!f,m=n(g?d.substring(0,f):d);if(!m){if(!g){a=l+(a.length>0?" "+a:a);continue}if(m=n(d),!m){a=l+(a.length>0?" "+a:a);continue}g=!1}const b=y0(c).join(":"),y=h?b+nl:b,v=y+m;if(u.includes(v))continue;u.push(v);const E=i(m,g);for(let C=0;C<E.length;++C){const N=E[C];u.push(y+N)}a=l+(a.length>0?" "+a:a)}return a};function S0(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=il(e))&&(n&&(n+=" "),n+=r);return n}const il=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=il(t[n]))&&(r&&(r+=" "),r+=e);return r};function C0(t,...e){let r,n,i,u=o;function o(s){const l=e.reduce((c,h)=>h(c),t());return r=v0(l),n=r.cache.get,i=r.cache.set,u=a,a(s)}function a(s){const l=n(s);if(l)return l;const c=w0(s,r);return i(s,c),c}return function(){return u(S0.apply(null,arguments))}}const te=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},ul=/^\[(?:([a-z-]+):)?(.+)\]$/i,E0=/^\d+\/\d+$/,T0=new Set(["px","full","screen"]),A0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,O0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,j0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ue=t=>Dt(t)||T0.has(t)||E0.test(t),it=t=>Zt(t,"length",$0),Dt=t=>!!t&&!Number.isNaN(Number(t)),Oi=t=>Zt(t,"number",Dt),dr=t=>!!t&&Number.isInteger(Number(t)),P0=t=>t.endsWith("%")&&Dt(t.slice(0,-1)),H=t=>ul.test(t),ut=t=>A0.test(t),k0=new Set(["length","size","percentage"]),R0=t=>Zt(t,k0,ol),I0=t=>Zt(t,"position",ol),D0=new Set(["image","url"]),L0=t=>Zt(t,D0,q0),M0=t=>Zt(t,"",B0),fr=()=>!0,Zt=(t,e,r)=>{const n=ul.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},$0=t=>N0.test(t)&&!O0.test(t),ol=()=>!1,B0=t=>j0.test(t),q0=t=>_0.test(t),H0=()=>{const t=te("colors"),e=te("spacing"),r=te("blur"),n=te("brightness"),i=te("borderColor"),u=te("borderRadius"),o=te("borderSpacing"),a=te("borderWidth"),s=te("contrast"),l=te("grayscale"),c=te("hueRotate"),h=te("invert"),d=te("gap"),f=te("gradientColorStops"),g=te("gradientColorStopPositions"),m=te("inset"),b=te("margin"),y=te("opacity"),v=te("padding"),E=te("saturate"),C=te("scale"),N=te("sepia"),k=te("skew"),R=te("space"),D=te("translate"),M=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto",H,e],T=()=>[H,e],_=()=>["",Ue,it],I=()=>["auto",Dt,H],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",H],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Dt,H];return{cacheSize:500,separator:":",theme:{colors:[fr],spacing:[Ue,it],blur:["none","",ut,H],brightness:ce(),borderColor:[t],borderRadius:["none","","full",ut,H],borderSpacing:T(),borderWidth:_(),contrast:ce(),grayscale:B(),hueRotate:ce(),invert:B(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[P0,it],inset:S(),margin:S(),opacity:ce(),padding:T(),saturate:ce(),scale:ce(),sepia:B(),skew:ce(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",H]}],container:["container"],columns:[{columns:[ut]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...w(),H]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",dr,H]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",H]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",dr,H]}],"grid-cols":[{"grid-cols":[fr]}],"col-start-end":[{col:["auto",{span:["full",dr,H]},H]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[fr]}],"row-start-end":[{row:["auto",{span:[dr,H]},H]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",H]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",H]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",H,e]}],"min-w":[{"min-w":[H,e,"min","max","fit"]}],"max-w":[{"max-w":[H,e,"none","full","min","max","fit","prose",{screen:[ut]},ut]}],h:[{h:[H,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[H,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[H,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[H,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ut,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oi]}],"font-family":[{font:[fr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",H]}],"line-clamp":[{"line-clamp":["none",Dt,Oi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ue,H]}],"list-image":[{"list-image":["none",H]}],"list-style-type":[{list:["none","disc","decimal",H]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ue,it]}],"underline-offset":[{"underline-offset":["auto",Ue,H]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",H]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",H]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),I0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",R0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},L0]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:O()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[Ue,H]}],"outline-w":[{outline:[Ue,it]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Ue,it]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ut,M0]}],"shadow-color":[{shadow:[fr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",ut,H]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[E]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",H]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",H]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",H]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[dr,H]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",H]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",H]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",H]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Ue,it,Oi]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},al=C0(H0);function ye(...t){return al(Kt(t))}const Bu=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));Bu.displayName="Card";const F0=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("flex flex-col space-y-1.5 p-6",t),...e}));F0.displayName="CardHeader";const z0=x.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:ye("text-2xl font-semibold leading-none tracking-tight",t),...e}));z0.displayName="CardTitle";const U0=x.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:ye("text-sm text-muted-foreground",t),...e}));U0.displayName="CardDescription";const qu=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("p-6 pt-0",t),...e}));qu.displayName="CardContent";const V0=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("flex items-center p-6 pt-0",t),...e}));V0.displayName="CardFooter";function Kr({className:t,...e}){return p.jsx("div",{className:ye("animate-pulse rounded-md bg-muted",t),...e})}const sl=j.createContext(null),Hu=({children:t,value:e})=>p.jsx(sl.Provider,{value:e,children:t}),Gn=()=>j.useContext(sl),W0=j.lazy(()=>Promise.resolve().then(()=>require("./CraftEditor-DHRDnczs.cjs"))),G0=({initialData:t,onSave:e,onStateChange:r,eventData:n})=>p.jsx(Hu,{value:n,children:p.jsx(j.Suspense,{fallback:p.jsx(Bu,{children:p.jsx(qu,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Kr,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Kr,{className:"h-[500px] w-48"}),p.jsx(Kr,{className:"h-[500px] flex-1"}),p.jsx(Kr,{className:"h-[500px] w-64"})]})]})})}),children:p.jsx(W0,{initialData:t,onSave:e,onStateChange:r})})});/**
2
+ * @license lucide-react v0.462.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const X0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ll=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
7
+ * @license lucide-react v0.462.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */var Y0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
+ * @license lucide-react v0.462.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const J0=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:u,iconNode:o,...a},s)=>j.createElement("svg",{ref:s,...Y0,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:ll("lucide",i),...a},[...o.map(([l,c])=>j.createElement(l,c)),...Array.isArray(u)?u:[u]]));/**
17
+ * @license lucide-react v0.462.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const ue=(t,e)=>{const r=j.forwardRef(({className:n,...i},u)=>j.createElement(J0,{ref:u,iconNode:e,className:ll(`lucide-${X0(t)}`,n),...i}));return r.displayName=`${t}`,r};/**
22
+ * @license lucide-react v0.462.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const Fu=ue("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
27
+ * @license lucide-react v0.462.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const zu=ue("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
32
+ * @license lucide-react v0.462.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const Uu=ue("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
37
+ * @license lucide-react v0.462.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const K0=ue("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
42
+ * @license lucide-react v0.462.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const Vu=ue("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
47
+ * @license lucide-react v0.462.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const Wu=ue("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
52
+ * @license lucide-react v0.462.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const Gu=ue("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
57
+ * @license lucide-react v0.462.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const Z0=ue("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
62
+ * @license lucide-react v0.462.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const Q0=ue("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
67
+ * @license lucide-react v0.462.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const ef=ue("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
72
+ * @license lucide-react v0.462.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const cl=ue("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
77
+ * @license lucide-react v0.462.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const tf=ue("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
82
+ * @license lucide-react v0.462.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const dl=ue("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
87
+ * @license lucide-react v0.462.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const rf=ue("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
92
+ * @license lucide-react v0.462.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const nf=ue("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
97
+ * @license lucide-react v0.462.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const Xu=ue("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
102
+ * @license lucide-react v0.462.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Yu=ue("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
107
+ * @license lucide-react v0.462.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const uf=ue("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
112
+ * @license lucide-react v0.462.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const Ju=ue("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
117
+ * @license lucide-react v0.462.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Ku=ue("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
122
+ * @license lucide-react v0.462.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const of=ue("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
127
+ * @license lucide-react v0.462.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const af=ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function la(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Xn(...t){return e=>{let r=!1;const n=t.map(i=>{const u=la(i,e);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let i=0;i<n.length;i++){const u=n[i];typeof u=="function"?u():la(t[i],null)}}}}function qe(...t){return x.useCallback(Xn(...t),t)}var sf=Symbol.for("react.lazy"),xn=x[" use ".trim().toString()];function lf(t){return typeof t=="object"&&t!==null&&"then"in t}function fl(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===sf&&"_payload"in t&&lf(t._payload)}function cf(t){const e=ff(t),r=x.forwardRef((n,i)=>{let{children:u,...o}=n;fl(u)&&typeof xn=="function"&&(u=xn(u._payload));const a=x.Children.toArray(u),s=a.find(hf);if(s){const l=s.props.children,c=a.map(h=>h===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...o,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return p.jsx(e,{...o,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}var df=cf("Slot");function ff(t){const e=x.forwardRef((r,n)=>{let{children:i,...u}=r;if(fl(i)&&typeof xn=="function"&&(i=xn(i._payload)),x.isValidElement(i)){const o=gf(i),a=bf(u,i.props);return i.type!==x.Fragment&&(a.ref=n?Xn(n,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var pf=Symbol("radix.slottable");function hf(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pf}function bf(t,e){const r={...e};for(const n in e){const i=t[n],u=e[n];/^on[A-Z]/.test(n)?i&&u?r[n]=(...a)=>{const s=u(...a);return i(...a),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function gf(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const ca=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,da=Kt,pl=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return da(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:u}=e,o=Object.keys(i).map(l=>{const c=r==null?void 0:r[l],h=u==null?void 0:u[l];if(c===null)return null;const d=ca(c)||ca(h);return i[l][d]}),a=r&&Object.entries(r).reduce((l,c)=>{let[h,d]=c;return d===void 0||(l[h]=d),l},{}),s=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:d,...f}=c;return Object.entries(f).every(g=>{let[m,b]=g;return Array.isArray(b)?b.includes({...u,...a}[m]):{...u,...a}[m]===b})?[...l,h,d]:l},[]);return da(t,o,s,r==null?void 0:r.class,r==null?void 0:r.className)},mf=pl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/25",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Sr=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},u)=>{const o=n?df:"button";return p.jsx(o,{className:ye(mf({variant:e,size:r,className:t})),ref:u,...i})});Sr.displayName="Button";function yf(...t){return al(Kt(t))}function ie(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=Nf[t],u=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+t;throw Error("[Immer] "+u)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[Y]}function $e(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Of}(t)||Array.isArray(t)||!!t[vr]||!!(!((e=t.constructor)===null||e===void 0)&&e[vr])||Yn(t)||Jn(t))}function wt(t,e,r){r===void 0&&(r=!1),st(t)===0?(r?Object.keys:no)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function st(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Yn(t)?2:Jn(t)?3:0}function Cr(t,e){return st(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hn(t,e){return st(t)===2?t.get(e):t[e]}function hl(t,e,r){var n=st(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function vf(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Yn(t){return Tf&&t instanceof Map}function Jn(t){return Af&&t instanceof Set}function de(t){return t.o||t.t}function Zu(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=jf(t);delete e[Y];for(var r=no(e),n=0;n<r.length;n++){var i=r[n],u=e[i];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(e[i]={configurable:!0,writable:!0,enumerable:u.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Qu(t,e){return e===void 0&&(e=!1),eo(t)||xt(t)||!$e(t)||(st(t)>1&&(t.set=t.add=t.clear=t.delete=xf),Object.freeze(t),e&&wt(t,function(r,n){return Qu(n,!0)},!0)),t}function xf(){ie(2)}function eo(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ie(t){var e=Yi[t];return e||ie(18,t),e}function bl(t,e){Yi[t]||(Yi[t]=e)}function wn(){return process.env.NODE_ENV==="production"||Bt||ie(0),Bt}function ji(t,e){e&&(Ie("Patches"),t.u=[],t.s=[],t.v=e)}function Sn(t){Xi(t),t.p.forEach(wf),t.p=null}function Xi(t){t===Bt&&(Bt=t.l)}function fa(t){return Bt={p:[],l:Bt,h:t,m:!0,_:0}}function wf(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function _i(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ie("ES5").S(e,t,n),n?(r[Y].P&&(Sn(e),ie(4)),$e(t)&&(t=Cn(e,t),e.l||En(e,t)),e.u&&Ie("Patches").M(r[Y].t,t,e.u,e.s)):t=Cn(e,r,[]),Sn(e),e.u&&e.v(e.u,e.s),t!==ro?t:void 0}function Cn(t,e,r){if(eo(e))return e;var n=e[Y];if(!n)return wt(e,function(a,s){return pa(t,n,e,a,s,r)},!0),e;if(n.A!==t)return e;if(!n.P)return En(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Zu(n.k):n.o,u=i,o=!1;n.i===3&&(u=new Set(i),i.clear(),o=!0),wt(u,function(a,s){return pa(t,n,i,a,s,r,o)}),En(t,i,!1),r&&t.u&&Ie("Patches").N(n,r,t.u,t.s)}return n.o}function pa(t,e,r,n,i,u,o){if(process.env.NODE_ENV!=="production"&&i===r&&ie(5),xt(i)){var a=Cn(t,i,u&&e&&e.i!==3&&!Cr(e.R,n)?u.concat(n):void 0);if(hl(r,n,a),!xt(a))return;t.m=!1}else o&&r.add(i);if($e(i)&&!eo(i)){if(!t.h.D&&t._<1)return;Cn(t,i),e&&e.A.l||En(t,i)}}function En(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Qu(e,r)}function Pi(t,e){var r=t[Y];return(r?de(r):t)[e]}function ha(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Xe(t){t.P||(t.P=!0,t.l&&Xe(t.l))}function ki(t){t.o||(t.o=Zu(t.t))}function Er(t,e,r){var n=Yn(e)?Ie("MapSet").F(e,r):Jn(e)?Ie("MapSet").T(e,r):t.O?function(i,u){var o=Array.isArray(i),a={i:o?1:0,A:u?u.A:wn(),P:!1,I:!1,R:{},l:u,t:i,k:null,o:null,j:null,C:!1},s=a,l=Ji;o&&(s=[a],l=mr);var c=Proxy.revocable(s,l),h=c.revoke,d=c.proxy;return a.k=d,a.j=h,d}(e,r):Ie("ES5").J(e,r);return(r?r.A:wn()).p.push(n),n}function Sf(t){return xt(t)||ie(22,t),function e(r){if(!$e(r))return r;var n,i=r[Y],u=st(r);if(i){if(!i.P&&(i.i<4||!Ie("ES5").K(i)))return i.t;i.I=!0,n=ba(r,u),i.I=!1}else n=ba(r,u);return wt(n,function(o,a){i&&hn(i.t,o)===a||hl(n,o,e(a))}),u===3?new Set(n):n}(t)}function ba(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zu(t)}function Cf(){function t(n){if(!$e(n))return n;if(Array.isArray(n))return n.map(t);if(Yn(n))return new Map(Array.from(n.entries()).map(function(o){return[o[0],t(o[1])]}));if(Jn(n))return new Set(Array.from(n).map(t));var i=Object.create(Object.getPrototypeOf(n));for(var u in n)i[u]=t(n[u]);return Cr(n,vr)&&(i[vr]=n[vr]),i}function e(n){return xt(n)?t(n):n}var r="add";bl("Patches",{$:function(n,i){return i.forEach(function(u){for(var o=u.path,a=u.op,s=n,l=0;l<o.length-1;l++){var c=st(s),h=o[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||ie(24),typeof s=="function"&&h==="prototype"&&ie(24),typeof(s=hn(s,h))!="object"&&ie(15,o.join("/"))}var d=st(s),f=t(u.value),g=o[o.length-1];switch(a){case"replace":switch(d){case 2:return s.set(g,f);case 3:ie(16);default:return s[g]=f}case r:switch(d){case 1:return g==="-"?s.push(f):s.splice(g,0,f);case 2:return s.set(g,f);case 3:return s.add(f);default:return s[g]=f}case"remove":switch(d){case 1:return s.splice(g,1);case 2:return s.delete(g);case 3:return s.delete(u.value);default:return delete s[g]}default:ie(17,a)}}),n},N:function(n,i,u,o){switch(n.i){case 0:case 4:case 2:return function(a,s,l,c){var h=a.t,d=a.o;wt(a.R,function(f,g){var m=hn(h,f),b=hn(d,f),y=g?Cr(h,f)?"replace":r:"remove";if(m!==b||y!=="replace"){var v=s.concat(f);l.push(y==="remove"?{op:y,path:v}:{op:y,path:v,value:b}),c.push(y===r?{op:"remove",path:v}:y==="remove"?{op:r,path:v,value:e(m)}:{op:"replace",path:v,value:e(m)})}})}(n,i,u,o);case 5:case 1:return function(a,s,l,c){var h=a.t,d=a.R,f=a.o;if(f.length<h.length){var g=[f,h];h=g[0],f=g[1];var m=[c,l];l=m[0],c=m[1]}for(var b=0;b<h.length;b++)if(d[b]&&f[b]!==h[b]){var y=s.concat([b]);l.push({op:"replace",path:y,value:e(f[b])}),c.push({op:"replace",path:y,value:e(h[b])})}for(var v=h.length;v<f.length;v++){var E=s.concat([v]);l.push({op:r,path:E,value:e(f[v])})}h.length<f.length&&c.push({op:"replace",path:s.concat(["length"]),value:h.length})}(n,i,u,o);case 3:return function(a,s,l,c){var h=a.t,d=a.o,f=0;h.forEach(function(g){if(!d.has(g)){var m=s.concat([f]);l.push({op:"remove",path:m,value:g}),c.unshift({op:r,path:m,value:g})}f++}),f=0,d.forEach(function(g){if(!h.has(g)){var m=s.concat([f]);l.push({op:r,path:m,value:g}),c.unshift({op:"remove",path:m,value:g})}f++})}(n,i,u,o)}},M:function(n,i,u,o){u.push({op:"replace",path:[],value:i===ro?void 0:i}),o.push({op:"replace",path:[],value:n})}})}function Ef(){function t(a,s){function l(){this.constructor=a}i(a,s),a.prototype=(l.prototype=s.prototype,new l)}function e(a){a.o||(a.R=new Map,a.o=new Map(a.t))}function r(a){a.o||(a.o=new Set,a.t.forEach(function(s){if($e(s)){var l=Er(a.A.h,s,a);a.p.set(s,l),a.o.add(l)}else a.o.add(s)}))}function n(a){a.g&&ie(3,JSON.stringify(de(a)))}var i=function(a,s){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])})(a,s)},u=function(){function a(l,c){return this[Y]={i:2,l:c,A:c?c.A:wn(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(a,Map);var s=a.prototype;return Object.defineProperty(s,"size",{get:function(){return de(this[Y]).size}}),s.has=function(l){return de(this[Y]).has(l)},s.set=function(l,c){var h=this[Y];return n(h),de(h).has(l)&&de(h).get(l)===c||(e(h),Xe(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},s.delete=function(l){if(!this.has(l))return!1;var c=this[Y];return n(c),e(c),Xe(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},s.clear=function(){var l=this[Y];n(l),de(l).size&&(e(l),Xe(l),l.R=new Map,wt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},s.forEach=function(l,c){var h=this;de(this[Y]).forEach(function(d,f){l.call(c,h.get(f),f,h)})},s.get=function(l){var c=this[Y];n(c);var h=de(c).get(l);if(c.I||!$e(h)||h!==c.t.get(l))return h;var d=Er(c.A.h,h,c);return e(c),c.o.set(l,d),d},s.keys=function(){return de(this[Y]).keys()},s.values=function(){var l,c=this,h=this.keys();return(l={})[Zr]=function(){return c.values()},l.next=function(){var d=h.next();return d.done?d:{done:!1,value:c.get(d.value)}},l},s.entries=function(){var l,c=this,h=this.keys();return(l={})[Zr]=function(){return c.entries()},l.next=function(){var d=h.next();if(d.done)return d;var f=c.get(d.value);return{done:!1,value:[d.value,f]}},l},s[Zr]=function(){return this.entries()},a}(),o=function(){function a(l,c){return this[Y]={i:3,l:c,A:c?c.A:wn(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(a,Set);var s=a.prototype;return Object.defineProperty(s,"size",{get:function(){return de(this[Y]).size}}),s.has=function(l){var c=this[Y];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},s.add=function(l){var c=this[Y];return n(c),this.has(l)||(r(c),Xe(c),c.o.add(l)),this},s.delete=function(l){if(!this.has(l))return!1;var c=this[Y];return n(c),r(c),Xe(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},s.clear=function(){var l=this[Y];n(l),de(l).size&&(r(l),Xe(l),l.o.clear())},s.values=function(){var l=this[Y];return n(l),r(l),l.o.values()},s.entries=function(){var l=this[Y];return n(l),r(l),l.o.entries()},s.keys=function(){return this.values()},s[Zr]=function(){return this.values()},s.forEach=function(l,c){for(var h=this.values(),d=h.next();!d.done;)l.call(c,d.value,d.value,this),d=h.next()},a}();bl("MapSet",{F:function(a,s){return new u(a,s)},T:function(a,s){return new o(a,s)}})}var ga,Bt,to=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Tf=typeof Map<"u",Af=typeof Set<"u",ma=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ro=to?Symbol.for("immer-nothing"):((ga={})["immer-nothing"]=!0,ga),vr=to?Symbol.for("immer-draftable"):"__$immer_draftable",Y=to?Symbol.for("immer-state"):"__$immer_state",Zr=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Nf={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(t){return"Cannot apply patch, path doesn't resolve: "+t},16:'Sets cannot have "replace" patches.',17:function(t){return"Unsupported patch operation: "+t},18:function(t){return"The plugin for '"+t+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+t+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(t){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+t+"'"},22:function(t){return"'current' expects a draft, got: "+t},23:function(t){return"'original' expects a draft, got: "+t},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Of=""+Object.prototype.constructor,no=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,jf=Object.getOwnPropertyDescriptors||function(t){var e={};return no(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Yi={},Ji={get:function(t,e){if(e===Y)return t;var r=de(t);if(!Cr(r,e))return function(i,u,o){var a,s=ha(u,o);return s?"value"in s?s.value:(a=s.get)===null||a===void 0?void 0:a.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!$e(n)?n:n===Pi(t.t,e)?(ki(t),t.o[e]=Er(t.A.h,n,t)):n},has:function(t,e){return e in de(t)},ownKeys:function(t){return Reflect.ownKeys(de(t))},set:function(t,e,r){var n=ha(de(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Pi(de(t),e),u=i==null?void 0:i[Y];if(u&&u.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(vf(r,i)&&(r!==void 0||Cr(t.t,e)))return!0;ki(t),Xe(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Pi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ki(t),Xe(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=de(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ie(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ie(12)}},mr={};wt(Ji,function(t,e){mr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),mr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ie(13),mr.set.call(this,t,e,void 0)},mr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ie(14),Ji.set.call(this,t[0],e,r,t[0])};var _f=function(){function t(r){var n=this;this.O=ma,this.D=!0,this.produce=function(i,u,o){if(typeof i=="function"&&typeof u!="function"){var a=u;u=i;var s=n;return function(m){var b=this;m===void 0&&(m=a);for(var y=arguments.length,v=Array(y>1?y-1:0),E=1;E<y;E++)v[E-1]=arguments[E];return s.produce(m,function(C){var N;return(N=u).call.apply(N,[b,C].concat(v))})}}var l;if(typeof u!="function"&&ie(6),o!==void 0&&typeof o!="function"&&ie(7),$e(i)){var c=fa(n),h=Er(n,i,void 0),d=!0;try{l=u(h),d=!1}finally{d?Sn(c):Xi(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return ji(c,o),_i(m,c)},function(m){throw Sn(c),m}):(ji(c,o),_i(l,c))}if(!i||typeof i!="object"){if((l=u(i))===void 0&&(l=i),l===ro&&(l=void 0),n.D&&Qu(l,!0),o){var f=[],g=[];Ie("Patches").M(i,l,f,g),o(f,g)}return l}ie(21,i)},this.produceWithPatches=function(i,u){if(typeof i=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),d=1;d<c;d++)h[d-1]=arguments[d];return n.produceWithPatches(l,function(f){return i.apply(void 0,[f].concat(h))})};var o,a,s=n.produce(i,u,function(l,c){o=l,a=c});return typeof Promise<"u"&&s instanceof Promise?s.then(function(l){return[l,o,a]}):[s,o,a]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){$e(r)||ie(8),xt(r)&&(r=Sf(r));var n=fa(this),i=Er(this,r,void 0);return i[Y].C=!0,Xi(n),i},e.finishDraft=function(r,n){var i=r&&r[Y];process.env.NODE_ENV!=="production"&&(i&&i.C||ie(9),i.I&&ie(10));var u=i.A;return ji(u,n),_i(void 0,u)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ma&&ie(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var u=n[i];if(u.path.length===0&&u.op==="replace"){r=u.value;break}}i>-1&&(n=n.slice(i+1));var o=Ie("Patches").$;return xt(r)?o(r,n):this.produce(r,function(a){return o(a,n)})},t}(),ve=new _f,Pf=ve.produce,ya=ve.produceWithPatches.bind(ve);ve.setAutoFreeze.bind(ve);ve.setUseProxies.bind(ve);var va=ve.applyPatches.bind(ve);ve.createDraft.bind(ve);ve.finishDraft.bind(ve);var $=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function kf(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}function Rf(){this.__data__=[],this.size=0}var If=Rf;function Df(t,e){return t===e||t!==t&&e!==e}var gl=Df,Lf=gl;function Mf(t,e){for(var r=t.length;r--;)if(Lf(t[r][0],e))return r;return-1}var Zn=Mf,$f=Zn,Bf=Array.prototype,qf=Bf.splice;function Hf(t){var e=this.__data__,r=$f(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():qf.call(e,r,1),--this.size,!0}var Ff=Hf,zf=Zn;function Uf(t){var e=this.__data__,r=zf(e,t);return r<0?void 0:e[r][1]}var Vf=Uf,Wf=Zn;function Gf(t){return Wf(this.__data__,t)>-1}var Xf=Gf,Yf=Zn;function Jf(t,e){var r=this.__data__,n=Yf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Kf=Jf,Zf=If,Qf=Ff,ep=Vf,tp=Xf,rp=Kf;function Qt(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Qt.prototype.clear=Zf;Qt.prototype.delete=Qf;Qt.prototype.get=ep;Qt.prototype.has=tp;Qt.prototype.set=rp;var Qn=Qt,np=Qn;function ip(){this.__data__=new np,this.size=0}var up=ip;function op(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var ap=op;function sp(t){return this.__data__.get(t)}var lp=sp;function cp(t){return this.__data__.has(t)}var dp=cp,fp=typeof $=="object"&&$&&$.Object===Object&&$,ml=fp,pp=ml,hp=typeof self=="object"&&self&&self.Object===Object&&self,bp=pp||hp||Function("return this")(),He=bp,gp=He,mp=gp.Symbol,ei=mp,xa=ei,yl=Object.prototype,yp=yl.hasOwnProperty,vp=yl.toString,pr=xa?xa.toStringTag:void 0;function xp(t){var e=yp.call(t,pr),r=t[pr];try{t[pr]=void 0;var n=!0}catch{}var i=vp.call(t);return n&&(e?t[pr]=r:delete t[pr]),i}var wp=xp,Sp=Object.prototype,Cp=Sp.toString;function Ep(t){return Cp.call(t)}var Tp=Ep,wa=ei,Ap=wp,Np=Tp,Op="[object Null]",jp="[object Undefined]",Sa=wa?wa.toStringTag:void 0;function _p(t){return t==null?t===void 0?jp:Op:Sa&&Sa in Object(t)?Ap(t):Np(t)}var ti=_p;function Pp(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vl=Pp,kp=ti,Rp=vl,Ip="[object AsyncFunction]",Dp="[object Function]",Lp="[object GeneratorFunction]",Mp="[object Proxy]";function $p(t){if(!Rp(t))return!1;var e=kp(t);return e==Dp||e==Lp||e==Ip||e==Mp}var io=$p;const Bp=Kn(io);var qp=He,Hp=qp["__core-js_shared__"],Fp=Hp,Ri=Fp,Ca=function(){var t=/[^.]+$/.exec(Ri&&Ri.keys&&Ri.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function zp(t){return!!Ca&&Ca in t}var Up=zp,Vp=Function.prototype,Wp=Vp.toString;function Gp(t){if(t!=null){try{return Wp.call(t)}catch{}try{return t+""}catch{}}return""}var xl=Gp,Xp=io,Yp=Up,Jp=vl,Kp=xl,Zp=/[\\^$.*+?()[\]{}|]/g,Qp=/^\[object .+?Constructor\]$/,eh=Function.prototype,th=Object.prototype,rh=eh.toString,nh=th.hasOwnProperty,ih=RegExp("^"+rh.call(nh).replace(Zp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uh(t){if(!Jp(t)||Yp(t))return!1;var e=Xp(t)?ih:Qp;return e.test(Kp(t))}var oh=uh;function ah(t,e){return t==null?void 0:t[e]}var sh=ah,lh=oh,ch=sh;function dh(t,e){var r=ch(t,e);return lh(r)?r:void 0}var At=dh,fh=At,ph=He,hh=fh(ph,"Map"),uo=hh,bh=At,gh=bh(Object,"create"),ri=gh,Ea=ri;function mh(){this.__data__=Ea?Ea(null):{},this.size=0}var yh=mh;function vh(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var xh=vh,wh=ri,Sh="__lodash_hash_undefined__",Ch=Object.prototype,Eh=Ch.hasOwnProperty;function Th(t){var e=this.__data__;if(wh){var r=e[t];return r===Sh?void 0:r}return Eh.call(e,t)?e[t]:void 0}var Ah=Th,Nh=ri,Oh=Object.prototype,jh=Oh.hasOwnProperty;function _h(t){var e=this.__data__;return Nh?e[t]!==void 0:jh.call(e,t)}var Ph=_h,kh=ri,Rh="__lodash_hash_undefined__";function Ih(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=kh&&e===void 0?Rh:e,this}var Dh=Ih,Lh=yh,Mh=xh,$h=Ah,Bh=Ph,qh=Dh;function er(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}er.prototype.clear=Lh;er.prototype.delete=Mh;er.prototype.get=$h;er.prototype.has=Bh;er.prototype.set=qh;var Hh=er,Ta=Hh,Fh=Qn,zh=uo;function Uh(){this.size=0,this.__data__={hash:new Ta,map:new(zh||Fh),string:new Ta}}var Vh=Uh;function Wh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Gh=Wh,Xh=Gh;function Yh(t,e){var r=t.__data__;return Xh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var ni=Yh,Jh=ni;function Kh(t){var e=Jh(this,t).delete(t);return this.size-=e?1:0,e}var Zh=Kh,Qh=ni;function eb(t){return Qh(this,t).get(t)}var tb=eb,rb=ni;function nb(t){return rb(this,t).has(t)}var ib=nb,ub=ni;function ob(t,e){var r=ub(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var ab=ob,sb=Vh,lb=Zh,cb=tb,db=ib,fb=ab;function tr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}tr.prototype.clear=sb;tr.prototype.delete=lb;tr.prototype.get=cb;tr.prototype.has=db;tr.prototype.set=fb;var wl=tr,pb=Qn,hb=uo,bb=wl,gb=200;function mb(t,e){var r=this.__data__;if(r instanceof pb){var n=r.__data__;if(!hb||n.length<gb-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new bb(n)}return r.set(t,e),this.size=r.size,this}var yb=mb,vb=Qn,xb=up,wb=ap,Sb=lp,Cb=dp,Eb=yb;function rr(t){var e=this.__data__=new vb(t);this.size=e.size}rr.prototype.clear=xb;rr.prototype.delete=wb;rr.prototype.get=Sb;rr.prototype.has=Cb;rr.prototype.set=Eb;var Tb=rr,Ab="__lodash_hash_undefined__";function Nb(t){return this.__data__.set(t,Ab),this}var Ob=Nb;function jb(t){return this.__data__.has(t)}var _b=jb,Pb=wl,kb=Ob,Rb=_b;function Tn(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Pb;++e<r;)this.add(t[e])}Tn.prototype.add=Tn.prototype.push=kb;Tn.prototype.has=Rb;var Ib=Tn;function Db(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var Lb=Db;function Mb(t,e){return t.has(e)}var $b=Mb,Bb=Ib,qb=Lb,Hb=$b,Fb=1,zb=2;function Ub(t,e,r,n,i,u){var o=r&Fb,a=t.length,s=e.length;if(a!=s&&!(o&&s>a))return!1;var l=u.get(t),c=u.get(e);if(l&&c)return l==e&&c==t;var h=-1,d=!0,f=r&zb?new Bb:void 0;for(u.set(t,e),u.set(e,t);++h<a;){var g=t[h],m=e[h];if(n)var b=o?n(m,g,h,e,t,u):n(g,m,h,t,e,u);if(b!==void 0){if(b)continue;d=!1;break}if(f){if(!qb(e,function(y,v){if(!Hb(f,v)&&(g===y||i(g,y,r,n,u)))return f.push(v)})){d=!1;break}}else if(!(g===m||i(g,m,r,n,u))){d=!1;break}}return u.delete(t),u.delete(e),d}var Sl=Ub,Vb=He,Wb=Vb.Uint8Array,Gb=Wb;function Xb(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}var Yb=Xb;function Jb(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Kb=Jb,Aa=ei,Na=Gb,Zb=gl,Qb=Sl,eg=Yb,tg=Kb,rg=1,ng=2,ig="[object Boolean]",ug="[object Date]",og="[object Error]",ag="[object Map]",sg="[object Number]",lg="[object RegExp]",cg="[object Set]",dg="[object String]",fg="[object Symbol]",pg="[object ArrayBuffer]",hg="[object DataView]",Oa=Aa?Aa.prototype:void 0,Ii=Oa?Oa.valueOf:void 0;function bg(t,e,r,n,i,u,o){switch(r){case hg:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case pg:return!(t.byteLength!=e.byteLength||!u(new Na(t),new Na(e)));case ig:case ug:case sg:return Zb(+t,+e);case og:return t.name==e.name&&t.message==e.message;case lg:case dg:return t==e+"";case ag:var a=eg;case cg:var s=n&rg;if(a||(a=tg),t.size!=e.size&&!s)return!1;var l=o.get(t);if(l)return l==e;n|=ng,o.set(t,e);var c=Qb(a(t),a(e),n,i,u,o);return o.delete(t),c;case fg:if(Ii)return Ii.call(t)==Ii.call(e)}return!1}var gg=bg;function mg(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var yg=mg,vg=Array.isArray,oo=vg,xg=yg,wg=oo;function Sg(t,e,r){var n=e(t);return wg(t)?n:xg(n,r(t))}var Cg=Sg;function Eg(t,e){for(var r=-1,n=t==null?0:t.length,i=0,u=[];++r<n;){var o=t[r];e(o,r,t)&&(u[i++]=o)}return u}var Tg=Eg;function Ag(){return[]}var Ng=Ag,Og=Tg,jg=Ng,_g=Object.prototype,Pg=_g.propertyIsEnumerable,ja=Object.getOwnPropertySymbols,kg=ja?function(t){return t==null?[]:(t=Object(t),Og(ja(t),function(e){return Pg.call(t,e)}))}:jg,Rg=kg;function Ig(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Dg=Ig;function Lg(t){return t!=null&&typeof t=="object"}var ii=Lg,Mg=ti,$g=ii,Bg="[object Arguments]";function qg(t){return $g(t)&&Mg(t)==Bg}var Hg=qg,_a=Hg,Fg=ii,Cl=Object.prototype,zg=Cl.hasOwnProperty,Ug=Cl.propertyIsEnumerable,Vg=_a(function(){return arguments}())?_a:function(t){return Fg(t)&&zg.call(t,"callee")&&!Ug.call(t,"callee")},Wg=Vg,An={exports:{}};function Gg(){return!1}var Xg=Gg;An.exports;(function(t,e){var r=He,n=Xg,i=e&&!e.nodeType&&e,u=i&&!0&&t&&!t.nodeType&&t,o=u&&u.exports===i,a=o?r.Buffer:void 0,s=a?a.isBuffer:void 0,l=s||n;t.exports=l})(An,An.exports);var El=An.exports,Yg=9007199254740991,Jg=/^(?:0|[1-9]\d*)$/;function Kg(t,e){var r=typeof t;return e=e??Yg,!!e&&(r=="number"||r!="symbol"&&Jg.test(t))&&t>-1&&t%1==0&&t<e}var Zg=Kg,Qg=9007199254740991;function em(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qg}var Tl=em,tm=ti,rm=Tl,nm=ii,im="[object Arguments]",um="[object Array]",om="[object Boolean]",am="[object Date]",sm="[object Error]",lm="[object Function]",cm="[object Map]",dm="[object Number]",fm="[object Object]",pm="[object RegExp]",hm="[object Set]",bm="[object String]",gm="[object WeakMap]",mm="[object ArrayBuffer]",ym="[object DataView]",vm="[object Float32Array]",xm="[object Float64Array]",wm="[object Int8Array]",Sm="[object Int16Array]",Cm="[object Int32Array]",Em="[object Uint8Array]",Tm="[object Uint8ClampedArray]",Am="[object Uint16Array]",Nm="[object Uint32Array]",re={};re[vm]=re[xm]=re[wm]=re[Sm]=re[Cm]=re[Em]=re[Tm]=re[Am]=re[Nm]=!0;re[im]=re[um]=re[mm]=re[om]=re[ym]=re[am]=re[sm]=re[lm]=re[cm]=re[dm]=re[fm]=re[pm]=re[hm]=re[bm]=re[gm]=!1;function Om(t){return nm(t)&&rm(t.length)&&!!re[tm(t)]}var jm=Om;function _m(t){return function(e){return t(e)}}var Pm=_m,Nn={exports:{}};Nn.exports;(function(t,e){var r=ml,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,o=u&&r.process,a=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();t.exports=a})(Nn,Nn.exports);var ao=Nn.exports,km=jm,Rm=Pm,Pa=ao,ka=Pa&&Pa.isTypedArray,Im=ka?Rm(ka):km,Al=Im,Dm=Dg,Lm=Wg,Mm=oo,$m=El,Bm=Zg,qm=Al,Hm=Object.prototype,Fm=Hm.hasOwnProperty;function zm(t,e){var r=Mm(t),n=!r&&Lm(t),i=!r&&!n&&$m(t),u=!r&&!n&&!i&&qm(t),o=r||n||i||u,a=o?Dm(t.length,String):[],s=a.length;for(var l in t)(e||Fm.call(t,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||u&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Bm(l,s)))&&a.push(l);return a}var Um=zm,Vm=Object.prototype;function Wm(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Vm;return t===r}var Gm=Wm;function Xm(t,e){return function(r){return t(e(r))}}var Ym=Xm,Jm=Ym,Km=Jm(Object.keys,Object),Zm=Km,Qm=Gm,e1=Zm,t1=Object.prototype,r1=t1.hasOwnProperty;function n1(t){if(!Qm(t))return e1(t);var e=[];for(var r in Object(t))r1.call(t,r)&&r!="constructor"&&e.push(r);return e}var i1=n1,u1=io,o1=Tl;function a1(t){return t!=null&&o1(t.length)&&!u1(t)}var s1=a1,l1=Um,c1=i1,d1=s1;function f1(t){return d1(t)?l1(t):c1(t)}var p1=f1,h1=Cg,b1=Rg,g1=p1;function m1(t){return h1(t,g1,b1)}var y1=m1,Ra=y1,v1=1,x1=Object.prototype,w1=x1.hasOwnProperty;function S1(t,e,r,n,i,u){var o=r&v1,a=Ra(t),s=a.length,l=Ra(e),c=l.length;if(s!=c&&!o)return!1;for(var h=s;h--;){var d=a[h];if(!(o?d in e:w1.call(e,d)))return!1}var f=u.get(t),g=u.get(e);if(f&&g)return f==e&&g==t;var m=!0;u.set(t,e),u.set(e,t);for(var b=o;++h<s;){d=a[h];var y=t[d],v=e[d];if(n)var E=o?n(v,y,d,e,t,u):n(y,v,d,t,e,u);if(!(E===void 0?y===v||i(y,v,r,n,u):E)){m=!1;break}b||(b=d=="constructor")}if(m&&!b){var C=t.constructor,N=e.constructor;C!=N&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof N=="function"&&N instanceof N)&&(m=!1)}return u.delete(t),u.delete(e),m}var C1=S1,E1=At,T1=He,A1=E1(T1,"DataView"),N1=A1,O1=At,j1=He,_1=O1(j1,"Promise"),P1=_1,k1=At,R1=He,I1=k1(R1,"Set"),D1=I1,L1=At,M1=He,$1=L1(M1,"WeakMap"),B1=$1,Ki=N1,Zi=uo,Qi=P1,eu=D1,tu=B1,Nl=ti,nr=xl,Ia="[object Map]",q1="[object Object]",Da="[object Promise]",La="[object Set]",Ma="[object WeakMap]",$a="[object DataView]",H1=nr(Ki),F1=nr(Zi),z1=nr(Qi),U1=nr(eu),V1=nr(tu),yt=Nl;(Ki&&yt(new Ki(new ArrayBuffer(1)))!=$a||Zi&&yt(new Zi)!=Ia||Qi&&yt(Qi.resolve())!=Da||eu&&yt(new eu)!=La||tu&&yt(new tu)!=Ma)&&(yt=function(t){var e=Nl(t),r=e==q1?t.constructor:void 0,n=r?nr(r):"";if(n)switch(n){case H1:return $a;case F1:return Ia;case z1:return Da;case U1:return La;case V1:return Ma}return e});var W1=yt,Di=Tb,G1=Sl,X1=gg,Y1=C1,Ba=W1,qa=oo,Ha=El,J1=Al,K1=1,Fa="[object Arguments]",za="[object Array]",Qr="[object Object]",Z1=Object.prototype,Ua=Z1.hasOwnProperty;function Q1(t,e,r,n,i,u){var o=qa(t),a=qa(e),s=o?za:Ba(t),l=a?za:Ba(e);s=s==Fa?Qr:s,l=l==Fa?Qr:l;var c=s==Qr,h=l==Qr,d=s==l;if(d&&Ha(t)){if(!Ha(e))return!1;o=!0,c=!1}if(d&&!c)return u||(u=new Di),o||J1(t)?G1(t,e,r,n,i,u):X1(t,e,s,r,n,i,u);if(!(r&K1)){var f=c&&Ua.call(t,"__wrapped__"),g=h&&Ua.call(e,"__wrapped__");if(f||g){var m=f?t.value():t,b=g?e.value():e;return u||(u=new Di),i(m,b,r,n,u)}}return d?(u||(u=new Di),Y1(t,e,r,n,i,u)):!1}var ey=Q1,ty=ey,Va=ii;function Ol(t,e,r,n,i){return t===e?!0:t==null||e==null||!Va(t)&&!Va(e)?t!==t&&e!==e:ty(t,e,r,n,Ol,i)}var ry=Ol,ny=ry;function iy(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?ny(t,e,void 0,r):!!n}var uy=iy;const oy=Kn(uy);var ay=function(e,r,n,i){var u=n?n.call(i,e,r):void 0;if(u!==void 0)return!!u;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var o=Object.keys(e),a=Object.keys(r);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var h=e[c],d=r[c];if(u=n?n.call(i,h,d,c):void 0,u===!1||u===void 0&&h!==d)return!1}return!0};const sy=Kn(ay);let ly=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var cy=process.env.NODE_ENV==="production",Li="Invariant failed";function Q(t,e){if(!t){if(cy)throw new Error(Li);var r=typeof e=="function"?e():e,n=r?"".concat(Li,": ").concat(r):Li;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Ke="ROOT",jl="canvas-ROOT",dy="Parent id cannot be ommited",fy="Attempting to add a node with duplicated id",_l="Node does not exist, it may have been removed",py='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',hy="Node cannot be dropped into target parent",by="Target parent rejects incoming node",gy="Current parent rejects outgoing node",Wa="Cannot move node that is not a direct child of a Canvas node",my="Cannot move node into a non-Canvas parent",Ga="A top-level Node cannot be moved",yy="Cannot move node into a descendant",On="The component type specified for this node (%node_type%) does not exist in the resolver",vy="The node has specified a canDrag() rule that prevents it from being dragged",xy="Invalid parameter Node Id specified",wy="Attempting to delete a top-level Node",Sy=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
132
+
133
+ More info: https://craft.js.org/r/docs/api/editor#props`,Cy=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
134
+
135
+ Available components in resolver: %availableComponents%
136
+
137
+ More info: https://craft.js.org/r/docs/api/editor#props`,Ey=`You can only use useEditor in the context of <Editor />.
138
+
139
+ Please only use useEditor in components that are children of the <Editor /> component.`,Ty=`You can only use useNode in the context of <Editor />.
140
+
141
+ Please only use useNode in components that are children of the <Editor /> component.`;function Xa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Se(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xa(Object(r),!0).forEach(function(n){le(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xa(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ir(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ay(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Dl(n.key),n)}}function ur(t,e,r){return e&&Ay(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function le(t,e,r){return(e=Dl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lt(t)}function ru(t,e){return ru=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ru(t,e)}function Mi(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nu(){return nu=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(u,o){for(;!Object.prototype.hasOwnProperty.call(u,o)&&(u=Lt(u))!==null;);return u}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},nu.apply(this,arguments)}function Pl(t,e){return kl(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,o,a,s,l=[],c=!0,h=!1;try{if(a=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;c=!1}else for(;!(c=(u=a.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){h=!0,o=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw o}}return l}}(t,e)||so(t,e)||Il()}function fe(t){return function(e){if(Array.isArray(e))return iu(e)}(t)||Rl(t)||so(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function kl(t){if(Array.isArray(t))return t}function Rl(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function so(t,e){if(t){if(typeof t=="string")return iu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?iu(t,e):void 0}}function iu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Il(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dl(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,"string");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var oe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Ny=function(){function t(){ir(this,t),le(this,"timeline",[]),le(this,"pointer",-1)}return ur(t,[{key:"add",value:function(e,r){e.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:e,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(e.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var i=this.timeline[this.pointer],u=i.patches,o=i.inversePatches,a=i.timestamp;if(new Date().getTime()-a<n)return void(this.timeline[this.pointer]={timestamp:a,patches:[].concat(fe(u),fe(e)),inversePatches:[].concat(fe(r),fe(o))})}this.add(e,r)}}},{key:"merge",value:function(e,r){if(e.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],i=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(fe(n.patches),fe(e)),inversePatches:[].concat(fe(r),fe(i))}}else this.add(e,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(e){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,va(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,va(e,this.timeline[this.pointer].patches)}}]),t}();function Oy(t,e,r,n){var i,u=j.useMemo(function(){return new Ny},[]),o=j.useRef([]),a=j.useRef(function(){});typeof t=="function"?i=t:(i=t.methods,o.current=t.ignoreHistoryForActions,a.current=t.normalizeHistory);var s=j.useRef(n);s.current=n;var l=j.useRef(e),c=j.useMemo(function(){var b=a.current,y=o.current,v=s.current;return function(E,C){var N,k=r&&Ya(r,function(){return E},u),R=Pl(ya(E,function(S){var T,_;switch(C.type){case oe.UNDO:return u.undo(S);case oe.REDO:return u.redo(S);case oe.CLEAR:return u.clear(),Se({},S);case oe.IGNORE:case oe.MERGE:case oe.THROTTLE:var I,w=kl(_=C.payload)||Rl(_)||so(_)||Il(),O=w[0],A=w.slice(1);(I=i(S,k))[O].apply(I,fe(A));break;default:(T=i(S,k))[C.type].apply(T,fe(C.payload))}}),3),D=R[0],M=R[1],L=R[2];return N=D,v&&v(D,E,{type:C.type,params:C.payload,patches:M},k,function(S){var T=ya(D,S);N=T[0],M=[].concat(fe(M),fe(T[1])),L=[].concat(fe(T[2]),fe(L))}),[oe.UNDO,oe.REDO].includes(C.type)&&b&&(N=Pf(N,b)),[].concat(fe(y),[oe.UNDO,oe.REDO,oe.IGNORE,oe.CLEAR]).includes(C.type)||(C.type===oe.THROTTLE?u.throttleAdd(M,L,C.config&&C.config.rate):C.type===oe.MERGE?u.merge(M,L):u.add(M,L)),N}},[u,i,r]),h=j.useCallback(function(){return l.current},[]),d=j.useMemo(function(){return new jy(h)},[h]),f=j.useCallback(function(b){var y=c(l.current,b);l.current=y,d.notify()},[c,d]);j.useEffect(function(){d.notify()},[d]);var g=j.useMemo(function(){return r?Ya(r,function(){return l.current},u):[]},[u,r]),m=j.useMemo(function(){var b=Object.keys(i(null,null)),y=o.current;return Se(Se({},b.reduce(function(v,E){return v[E]=function(){for(var C=arguments.length,N=new Array(C),k=0;k<C;k++)N[k]=arguments[k];return f({type:E,payload:N})},v},{})),{},{history:{undo:function(){return f({type:oe.UNDO})},redo:function(){return f({type:oe.REDO})},clear:function(){return f({type:oe.CLEAR})},throttle:function(v){return Se({},b.filter(function(E){return!y.includes(E)}).reduce(function(E,C){return E[C]=function(){for(var N=arguments.length,k=new Array(N),R=0;R<N;R++)k[R]=arguments[R];return f({type:oe.THROTTLE,payload:[C].concat(k),config:{rate:v}})},E},{}))},ignore:function(){return Se({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,E){return v[E]=function(){for(var C=arguments.length,N=new Array(C),k=0;k<C;k++)N[k]=arguments[k];return f({type:oe.IGNORE,payload:[E].concat(N)})},v},{}))},merge:function(){return Se({},b.filter(function(v){return!y.includes(v)}).reduce(function(v,E){return v[E]=function(){for(var C=arguments.length,N=new Array(C),k=0;k<C;k++)N[k]=arguments[k];return f({type:oe.MERGE,payload:[E].concat(N)})},v},{}))}}})},[f,i]);return j.useMemo(function(){return{getState:h,subscribe:function(b,y,v){return d.subscribe(b,y,v)},actions:m,query:g,history:u}},[m,g,d,h,u])}function Ya(t,e,r){var n=Object.keys(t()).reduce(function(i,u){return Se(Se({},i),{},le({},u,function(){var o;return(o=t(e()))[u].apply(o,arguments)}))},{});return Se(Se({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}Ef(),Cf();var jy=function(){function t(e){ir(this,t),le(this,"getState",void 0),le(this,"subscribers",[]),this.getState=e}return ur(t,[{key:"subscribe",value:function(e,r,n){var i=this,u=new _y(function(){return e(i.getState())},r,n);return this.subscribers.push(u),this.unsubscribe.bind(this,u)}},{key:"unsubscribe",value:function(e){if(this.subscribers.length){var r=this.subscribers.indexOf(e);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach(function(e){return e.collect()})}}]),t}(),_y=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];ir(this,t),le(this,"collected",void 0),le(this,"collector",void 0),le(this,"onChange",void 0),le(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return ur(t,[{key:"collect",value:function(){try{var e=this.collector();oy(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),Tr=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,i=e.top,u=e.left,o=e.bottom,a=e.right,s=e.width,l=e.height,c=window.getComputedStyle(t),h={left:parseInt(c.marginLeft),right:parseInt(c.marginRight),bottom:parseInt(c.marginBottom),top:parseInt(c.marginTop)},d={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:i,left:u,bottom:o,right:a,width:s,height:l,outerWidth:Math.round(s+h.left+h.right),outerHeight:Math.round(l+h.top+h.bottom),margin:h,padding:d,inFlow:t.parentElement&&!!function(f){var g=getComputedStyle(f);if(!(c.overflow&&c.overflow!=="visible"||g.float!=="none"||g.display==="grid"||g.display==="flex"&&g["flex-direction"]!=="column")){switch(c.position){case"static":case"relative":break;default:return}switch(t.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(c.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}}(t.parentElement)}};function Py(t,e){const{subscribe:r,getState:n,actions:i,query:u}=t,o=j.useRef(!0),a=j.useRef(null),s=j.useRef(e);s.current=e;const l=j.useCallback(d=>({...d,actions:i,query:u}),[i,u]);o.current&&e&&(a.current=e(n(),u),o.current=!1);const[c,h]=j.useState(l(a.current));return j.useEffect(()=>{let d;return s.current&&(d=r(f=>s.current(f,u),f=>{h(l(f))})),()=>{d&&d()}},[l,u,r]),c}var qt,Ll=function(){return ly(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},ky=function(){function t(){ir(this,t),le(this,"isEnabled",!0),le(this,"elementIdMap",new WeakMap),le(this,"registry",new Map)}return ur(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=Ll();return this.elementIdMap.set(e,n),n}},{key:"getConnectorId",value:function(e,r){var n=this.getElementId(e);return"".concat(r,"--").concat(n)}},{key:"register",value:function(e,r){var n=this,i=this.getByElement(e,r.name);if(i){if(sy(r.required,i.required))return i;this.getByElement(e,r.name).disable()}var u=null,o=this.getConnectorId(e,r.name);return this.registry.set(o,{id:o,required:r.required,enable:function(){u&&u(),u=r.connector(e,r.required,r.options)},disable:function(){u&&u()},remove:function(){return n.remove(o)}}),this.isEnabled&&this.registry.get(o).enable(),this.registry.get(o)}},{key:"get",value:function(e){return this.registry.get(e)}},{key:"remove",value:function(e){var r=this.get(e);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach(function(e){e.enable()})}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach(function(e){e.disable()})}},{key:"getByElement",value:function(e,r){return this.get(this.getConnectorId(e,r))}},{key:"removeByElement",value:function(e,r){return this.remove(this.getConnectorId(e,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),t}();(function(t){t[t.HandlerDisabled=0]="HandlerDisabled",t[t.HandlerEnabled=1]="HandlerEnabled"})(qt||(qt={}));var Ml=function(){function t(e){ir(this,t),le(this,"options",void 0),le(this,"registry",new ky),le(this,"subscribers",new Set),this.options=e}return ur(t,[{key:"listen",value:function(e){var r=this;return this.subscribers.add(e),function(){return r.subscribers.delete(e)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach(function(e){e(qt.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(qt.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,i){var u=function(o){(function(a,s,l){a.craft||(a.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=a.craft&&a.craft.blockedEvents[s]||[],h=0;h<c.length;h++){var d=c[h];if(l!==d&&l.contains(d))return!0}return!1})(o,r,e)||(o.craft.stopPropagation=function(){o.craft.blockedEvents[r]||(o.craft.blockedEvents[r]=[]),o.craft.blockedEvents[r].push(e)},n(o))};return e.addEventListener(r,u,i),function(){return e.removeEventListener(r,u,i)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,i=!1,u=new Map;return{connectors:Object.entries(r).reduce(function(o,a){var s=Pl(a,2),l=s[0],c=s[1];return Se(Se({},o),{},le({},l,function(h,d,f){var g=function(){var m=e.registry.register(h,{required:d,name:l,options:f,connector:c});return n.add(m.id),m};return u.set(e.registry.getConnectorId(h,l),g),i&&g(),h}))},{}),register:function(){i=!0,u.forEach(function(o){o()})},cleanup:function(){i=!1,n.forEach(function(o){return e.registry.remove(o)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],i=e.handlers(),u=new Proxy(i,{get:function(o,a,s){return a in i==0?Reflect.get(o,a,s):function(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),d=1;d<c;d++)h[d-1]=arguments[d];var f=i[a].apply(i,[l].concat(h));f&&n.push(f)}}});return r(u),function(){n.forEach(function(o){o()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Ry=function(t){(function(u,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(o&&o.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),o&&ru(u,o)})(i,Ml);var e,r,n=(e=i,r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var u,o=Lt(e);if(r){var a=Lt(this).constructor;u=Reflect.construct(o,arguments,a)}else u=o.apply(this,arguments);return function(s,l){if(l&&(typeof l=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mi(s)}(this,u)});function i(u,o){var a;return ir(this,i),le(Mi(a=n.call(this,o)),"derived",void 0),le(Mi(a),"unsubscribeParentHandlerListener",void 0),a.derived=u,a.options=o,a.unsubscribeParentHandlerListener=a.derived.listen(function(s){switch(s){case qt.HandlerEnabled:return a.enable();case qt.HandlerDisabled:return a.disable();default:return}}),a}return ur(i,[{key:"inherit",value:function(u){return this.createProxyHandlers(this.derived,u)}},{key:"cleanup",value:function(){nu(Lt(i.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),i}();function Ja(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Iy(t,e){const r=t.ref;return Q(typeof r!="string","Cannot connect to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),j.cloneElement(t,r?{ref:n=>{Ja(r,n),Ja(e,n)}}:{ref:e})}function Dy(t){return(e=null,...r)=>{if(!j.isValidElement(e)){if(!e)return;const i=e;return i&&t(i,...r),i}const n=e;return function(i){if(typeof i.type!="string")throw new Error}(n),Iy(n,t)}}function $l(t){return Object.keys(t).reduce((e,r)=>(e[r]=Dy((...n)=>t[r](...n)),e),{})}const Ly=({style:t,className:e,parentDom:r})=>{const n=j.createElement("div",{className:e,style:{position:"fixed",display:"block",opacity:1,borderStyle:"solid",borderWidth:"1px",borderColor:"transparent",zIndex:99999,...t}});return r&&r.ownerDocument!==document?Zs.createPortal(n,r.ownerDocument.body):n};var lt=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,i=e.doc;n&&(r+=" Please use ".concat(n," instead.")),i&&(r+="(".concat(i,")")),console.warn(r)},Bl=function(){return typeof window<"u"},My=function(){return Bl()&&/Linux/i.test(window.navigator.userAgent)},$y=function(){return Bl()&&/Chrome/i.test(window.navigator.userAgent)},By=At;(function(){try{var t=By(Object,"defineProperty");return t({},"",{}),t}catch{}})();var jn={exports:{}};jn.exports;(function(t,e){var r=He,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,o=u?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;function s(l,c){if(c)return l.slice();var h=l.length,d=a?a(h):new l.constructor(h);return l.copy(d),d}t.exports=s})(jn,jn.exports);jn.exports;var Ka=ei,Za=Ka?Ka.prototype:void 0;Za&&Za.valueOf;var Qa=ao;Qa&&Qa.isMap;var es=ao;es&&es.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const ql=j.createContext(null),Hl=({id:t,related:e=!1,children:r})=>j.createElement(ql.Provider,{value:{id:t,related:e}},r);function ts(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ts(Object(r),!0).forEach(function(n){se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ts(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uu(t){return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uu(t)}function ui(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ul(n.key),n)}}function oi(t,e,r){return e&&qy(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function se(t,e,r){return(e=Ul(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lo(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ou(t,e)}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(t)}function ou(t,e){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ou(t,e)}function co(t,e){if(t==null)return{};var r,n,i=function(o,a){if(o==null)return{};var s,l,c={},h=Object.keys(o);for(l=0;l<h.length;l++)a.indexOf(s=h[l])>=0||(c[s]=o[s]);return c}(t,e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(n=0;n<u.length;n++)e.indexOf(r=u[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function yr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fo(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,n=_n(t);if(e){var i=_n(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(u,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yr(u)}(this,r)}}function Fl(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,o,a,s,l=[],c=!0,h=!1;try{if(a=(i=i.call(r)).next,n!==0)for(;!(c=(u=a.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){h=!0,o=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw o}}return l}}(t,e)||zl(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ar(t){return function(e){if(Array.isArray(e))return au(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||zl(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
145
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function zl(t,e){if(t){if(typeof t=="string")return au(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?au(t,e):void 0}}function au(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ul(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,"string");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const po=j.createContext(null);var Vl=j.createContext(null),Wl=function(){return j.useContext(Vl)};function Nt(t){var e=Wl(),r=j.useContext(po);Q(r,Ey);var n=Py(r,t),i=j.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);j.useEffect(function(){return i.register(),function(){i.cleanup()}},[i]);var u=j.useMemo(function(){return i&&$l(i.connectors)},[i]);return ne(ne({},n),{},{connectors:u,inContext:!!r,store:r})}var Hy=["actions","query","connectors"];function ai(t){var e=j.useContext(ql);Q(e,Ty);var r=e.id,n=e.related,i=Nt(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),u=i.actions,o=i.connectors,a=co(i,Hy),s=j.useMemo(function(){return $l({connect:function(c){return o.connect(c,r)},drag:function(c){return o.drag(c,r)}})},[o,r]),l=j.useMemo(function(){return{setProp:function(c,h){h?u.history.throttle(h).setProp(r,c):u.setProp(r,c)},setCustom:function(c,h){h?u.history.throttle(h).setCustom(r,c):u.setCustom(r,c)},setHidden:function(c){return u.setHidden(r,c)}}},[u,r]);return ne(ne({},a),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:s})}var Fy=["id","related","actions","inNodeContext","connectors"];function ee(t){var e=ai(t),r=e.id,n=e.related,i=e.actions,u=e.inNodeContext,o=e.connectors;return ne(ne({},co(e,Fy)),{},{actions:i,id:r,related:n,setProp:function(a,s){return lt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),i.setProp(a,s)},inNodeContext:u,connectors:o})}const zy=({render:t})=>{const{connectors:{connect:e,drag:r}}=ee();return typeof t.type=="string"?e(r(j.cloneElement(t))):t},Uy=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=ai(i=>({type:i.data.type,props:i.data.props,nodes:i.data.nodes,hydrationTimestamp:i._hydrationTimestamp}));return j.useMemo(()=>{let i=e.children;r&&r.length>0&&(i=j.createElement(j.Fragment,null,r.map(o=>j.createElement(ho,{id:o,key:o}))));const u=j.createElement(t,e,i);return typeof t=="string"?j.createElement(zy,{render:u}):u},[t,e,n,r])},Vy=({render:t})=>{const{hidden:e}=ai(n=>({hidden:n.data.hidden})),{onRender:r}=Nt(n=>({onRender:n.options.onRender}));return e?null:j.createElement(r,{render:t||j.createElement(Uy,null)})},ho=({id:t,render:e})=>j.createElement(Hl,{id:t},j.createElement(Vy,{render:e})),su={is:"div",canvas:!1,custom:{},hidden:!1},Wy={is:"type",canvas:"isCanvas"};function Ht({id:t,children:e,...r}){const{is:n}={...su,...r},{query:i,actions:u}=Nt(),{id:o,inNodeContext:a}=ai(),[s]=j.useState(()=>{Q(!!t,py);const l=i.node(o).get();if(a){const c=l.data.linkedNodes[t]?i.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const h=j.createElement(Ht,r,e),d=i.parseReactElement(h).toNodeTree();return u.history.ignore().addLinkedNodeFromTree(d,o,t),d.rootNodeId}return null});return s?j.createElement(ho,{id:s}):null}const Gl=()=>lt("<Canvas />",{suggest:"<Element canvas={true} />"});function lu({...t}){return j.useEffect(()=>Gl(),[]),j.createElement(Ht,{...t,canvas:!0})}const Gy=()=>{const{timestamp:t}=Nt(e=>({timestamp:e.nodes[Ke]&&e.nodes[Ke]._hydrationTimestamp}));return t?j.createElement(ho,{id:Ke,key:t}):null},Xl=({children:t,json:e,data:r})=>{const{actions:n,query:i}=Nt();e&&lt("<Frame json={...} />",{suggest:"<Frame data={...} />"});const u=j.useRef(!1);if(!u.current){const o=r||e;if(o)n.history.ignore().deserialize(o);else if(t){const a=j.Children.only(t),s=i.parseReactElement(a).toNodeTree((l,c)=>(c===a&&(l.id=Ke),l));n.history.ignore().addNodeTree(s)}u.current=!0}return j.createElement(Gy,null)};var rs;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(rs||(rs={}));const $i=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:i,reset:u,...o}=t;return o};function bo(t){const{connectors:e,actions:r,query:n,store:i,...u}=Nt(t),o=$i(r);return{connectors:e,actions:j.useMemo(()=>({...o,history:{...o.history,ignore:(...a)=>$i(o.history.ignore(...a)),throttle:(...a)=>$i(o.history.throttle(...a))}}),[o]),query:n,store:i,...u}}var Yl=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=Fl(r,2),i=n[0],u=n[1];return ne(ne({},e),{},se({},i,u))},{})},Ye=function(t,e,r){var n=Array.isArray(e)?e:[e],i=ne({existOnly:!1,idOnly:!1},r||{}),u=n.filter(function(o){return!!o}).map(function(o){return typeof o=="string"?{node:t[o],exists:!!t[o]}:uu(o)!=="object"||i.idOnly?{node:null,exists:!1}:{node:o,exists:!!t[o.id]}});return i.existOnly&&Q(u.filter(function(o){return!o.exists}).length===0,_l),u},Xy=["history"],Pt=null,Pn=function(t,e){if(typeof e=="string")return e;var r,n=function(i,u){var o=function(a){if(Pt&&Pt.resolver===a)return Pt.reversed;Pt={resolver:a,reversed:new Map};for(var s=0,l=Object.entries(a);s<l.length;s++){var c=Fl(l[s],2);Pt.reversed.set(c[1],c[0])}return Pt.reversed}(i).get(u);return o!==void 0?o:null}(t,e);return Q(n,On.replace("%node_type%",(r=e).name||r.displayName)),n};const Yy=(t,e)=>typeof t=="string"?t:{resolvedName:Pn(e,t)},cu=(t,e)=>{let{type:r,isCanvas:n,props:i}=t;return i=Object.keys(i).reduce((u,o)=>{const a=i[o];return a==null||typeof a=="function"||(u[o]=o==="children"&&typeof a!="string"?j.Children.map(a,s=>typeof s=="string"?s:cu(s,e)):typeof a.type=="function"?cu(a,e):a),u},{}),{type:Yy(r,e),isCanvas:!!n,props:i}},Jy=(t,e)=>{const{type:r,props:n,isCanvas:i,name:u,...o}=t;return{...cu({type:r,isCanvas:i,props:n},e),...o}};function du(t,e){Q(typeof e=="string",xy);var r=t.nodes[e],n=function(i){return du(t,i)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Ke},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return lt("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return t.events.selected.has(e)},isHovered:function(){return t.events.hovered.has(e)},isDragged:function(){return t.events.dragged.has(e)},get:function(){return r},ancestors:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function u(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[o];return l?(a.push(o),l.data.parent&&(i||!i&&s===0)&&(a=u(l.data.parent,a,s+1)),a):a}(r.data.parent)},descendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],u=arguments.length>1?arguments[1]:void 0;return function o(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(i||!i&&l===0)&&t.nodes[a]&&(u!=="childNodes"&&n(a).linkedNodes().forEach(function(c){s.push(c),s=o(c,s,l+1)}),u!=="linkedNodes"&&n(a).childNodes().forEach(function(c){s.push(c),s=o(c,s,l+1)})),s}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(i){try{var u=r;return Q(!this.isTopLevelNode(),Ga),Q(du(t,u.data.parent).isCanvas(),Wa),Q(u.rules.canDrag(u,n),vy),!0}catch(o){return i&&i(o),!1}},isDroppable:function(i,u){var o=Ye(t.nodes,i),a=r;try{Q(this.isCanvas(),my),Q(a.rules.canMoveIn(o.map(function(l){return l.node}),a,n),by);var s={};return o.forEach(function(l){var c=l.node,h=l.exists;if(Q(c.rules.canDrop(a,c,n),hy),h){Q(!n(c.id).isTopLevelNode(),Ga);var d=n(c.id).descendants(!0);Q(!d.includes(a.id)&&a.id!==c.id,yy);var f=c.data.parent&&t.nodes[c.data.parent];Q(f.data.isCanvas,Wa),Q(f||!f&&!t.nodes[c.id],fy),f.id!==a.id&&(s[f.id]||(s[f.id]=[]),s[f.id].push(c))}}),Object.keys(s).forEach(function(l){var c=t.nodes[l];Q(c.rules.canMoveOut(s[l],c,n),gy)}),!0}catch(l){return u&&u(l),!1}},toSerializedNode:function(){return Jy(r.data,t.options.resolver)},toNodeTree:function(i){var u=[e].concat(Ar(this.descendants(!0,i))).reduce(function(o,a){return o[a]=n(a).get(),o},{});return{rootNodeId:e,nodes:u}},decendants:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return lt("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(i)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function Jl(t,e,r,n){for(var i={parent:t,index:0,where:"before"},u=0,o=0,a=0,s=0,l=0,c=0,h=0,d=e.length;h<d;h++){var f=e[h];if(c=f.top+f.outerHeight,s=f.left+f.outerWidth/2,l=f.top+f.outerHeight/2,!(o&&f.left>o||a&&l>=a||u&&f.left+f.outerWidth<u))if(i.index=h,f.inFlow){if(n<l){i.where="before";break}i.where="after"}else n<c&&(a=c),r<s?(o=s,i.where="before"):(u=s,i.where="after")}return i}var en=function(t){return typeof t=="string"?t:t.name};function ns(t,e){var r=t.data.type,n={id:t.id||Ll(),_hydrationTimestamp:Date.now(),data:ne({type:r,name:en(r),displayName:en(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},t.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===Ht||n.data.type===lu){var i=ne(ne({},su),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(a,s){return Object.keys(su).includes(s)?n.data[Wy[s]||s]=i[s]:a[s]=n.data.props[s],a},{}),n.data.name=en(r=n.data.type),n.data.displayName=en(r),n.data.type===lu&&(n.data.isCanvas=!0,Gl())}e&&e(n);var u=r.craft;if(u){if(n.data.displayName=u.displayName||u.name||n.data.displayName,n.data.props=ne(ne({},u.props||u.defaultProps||{}),n.data.props),n.data.custom=ne(ne({},u.custom||{}),n.data.custom),u.isCanvas!=null&&(n.data.isCanvas=u.isCanvas),u.rules&&Object.keys(u.rules).forEach(function(a){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(a)&&(n.rules[a]=u.rules[a])}),u.related){var o={id:n.id,related:!0};Object.keys(u.related).forEach(function(a){n.related[a]=function(s){return j.createElement(Hl,o,j.createElement(u.related[a],s))}})}u.info&&(n.info=u.info)}return n}const fu=(t,e,r)=>{let{type:n,props:i}=t;const u=((a,s)=>typeof a=="object"&&a.resolvedName?a.resolvedName==="Canvas"?lu:s[a.resolvedName]:typeof a=="string"?a:null)(n,e);if(!u)return;i=Object.keys(i).reduce((a,s)=>{const l=i[s];return a[s]=l==null?null:typeof l=="object"&&l.resolvedName?fu(l,e):s==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:fu(c,e)):l,a},{});const o={...j.createElement(u,{...i})};return{...o,name:Pn(e,o.type)}},Ky=(t,e)=>{const{type:r,props:n,...i}=t;Q(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Cy.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:u,name:o,props:a}=fu(t,e),{parent:s,custom:l,displayName:c,isCanvas:h,nodes:d,hidden:f}=i;return{type:u,name:o,displayName:c||o,props:a,custom:l||{},isCanvas:!!h,hidden:!!f,parent:s,linkedNodes:i.linkedNodes||i._childCanvas||{},nodes:d||[]}},Zy=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:i})=>i),n={...t,data:{...t.data,nodes:r}};return e.reduce((i,u)=>{const o=u.nodes[u.rootNodeId];return{...i,...u.nodes,[o.id]:{...o,data:{...o.data,parent:t.id}}}},{[t.id]:n})},Qy=(t,e)=>({rootNodeId:t.id,nodes:Zy(t,e)});function Kl(t){const e=t&&t.options,r=()=>Kl(t);return{getDropPlaceholder:(n,i,u,o=a=>t.nodes[a.id].dom)=>{const a=t.nodes[i],s=r().node(a.id).isCanvas()?a:t.nodes[a.data.parent];if(!s)return;const l=s.data.nodes||[],c=Jl(s,l?l.reduce((f,g)=>{const m=o(t.nodes[g]);if(m){const b={id:g,...Tr(m)};f.push(b)}return f},[]):[],u.x,u.y),h=l.length&&t.nodes[l[c.index]],d={placement:{...c,currentNode:h},error:null};return Ye(t.nodes,n).forEach(({node:f,exists:g})=>{g&&r().node(f.id).isDraggable(m=>d.error=m)}),r().node(s.id).isDroppable(n,f=>d.error=f),d},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>du(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(i=>[i,this.node(i).toSerializedNode()]);return Yl(n)},getEvent:n=>function(i,u){var o=i.events[u];return{contains:function(a){return o.has(a)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var a=this.all();return a[a.length-1]},all:function(){return Array.from(o)},size:function(){return this.all().length},at:function(a){return this.all()[a]},raw:function(){return o}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(i){let u=function(a,s){let l=a;return typeof l=="string"&&(l=j.createElement(j.Fragment,{},l)),ns({data:{type:l.type,props:{...l.props}}},c=>{s&&s(c,l)})}(n,(a,s)=>{const l=Pn(t.options.resolver,a.data.type);a.data.displayName=a.data.displayName||l,a.data.name=l,i&&i(a,s)}),o=[];return n.props&&n.props.children&&(o=j.Children.toArray(n.props.children).reduce((a,s)=>(j.isValidElement(s)&&a.push(r().parseReactElement(s).toNodeTree(i)),a),[])),Qy(u,o)}}),parseSerializedNode:n=>({toNode(i){const u=Ky(n,t.options.resolver);Q(u.type,On);const o=typeof i=="string"&&i;return o&&lt("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...o?{id:o}:{},data:u}).toNode(!o&&i)}}),parseFreshNode:n=>({toNode:i=>ns(n,u=>{u.data.parent===jl&&(u.data.parent=Ke);const o=Pn(t.options.resolver,u.data.type);Q(o!==null,On),u.data.displayName=u.data.displayName||o,u.data.name=o,i&&i(u)})}),createNode(n,i){lt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const u=this.parseReactElement(n).toNodeTree(),o=u.nodes[u.rootNodeId];return i&&(i.id&&(o.id=i.id),i.data&&(o.data={...o.data,...i.data})),o},getState:()=>t}}var ev=function(t){lo(r,Ml);var e=fo(r);function r(){return ui(this,r),e.apply(this,arguments)}return oi(r,[{key:"handlers",value:function(){return{connect:function(n,i){},select:function(n,i){},hover:function(n,i){},drag:function(n,i){},drop:function(n,i){},create:function(n,i,u){}}}}]),r}();(function(t){lo(r,Ry);var e=fo(r);function r(){return ui(this,r),e.apply(this,arguments)}return oi(r)})();var is=function(t){t.preventDefault()},pu=function(){function t(e,r){ui(this,t),se(this,"store",void 0),se(this,"dragTarget",void 0),se(this,"currentDropTargetId",void 0),se(this,"currentDropTargetCanvasAncestorId",void 0),se(this,"currentIndicator",null),se(this,"currentTargetId",void 0),se(this,"currentTargetChildDimensions",void 0),se(this,"dragError",void 0),se(this,"draggedNodes",void 0),se(this,"onScrollListener",void 0),this.store=e,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",is,!1)}return oi(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",is,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(Ke).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Ye(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var e=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach(function(r){r.exists&&e.store.query.node(r.node.id).isDraggable(function(n){e.dragError=n})})}},{key:"isNearBorders",value:function(e,r,n){return e.top+t.BORDER_OFFSET>n||e.bottom-t.BORDER_OFFSET<n||e.left+t.BORDER_OFFSET>r||e.right-t.BORDER_OFFSET<r}},{key:"isDiff",value:function(e){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==e.parent.id||this.currentIndicator.placement.index!==e.index||this.currentIndicator.placement.where!==e.where}},{key:"getChildDimensions",value:function(e){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===e.id&&n?n:e.data.nodes.reduce(function(i,u){var o=r.store.query.node(u).get().dom;return o&&i.push(ne({id:u},Tr(o))),i},[])}},{key:"getCanvasAncestor",value:function(e){var r=this;if(e===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return function i(u){var o=r.store.query.node(u).get();return o&&o.data.isCanvas?o:o.data.parent?i(o.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var i=this.getCanvasAncestor(e);if(i&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=i.id,i.data.parent&&this.isNearBorders(Tr(i.dom),r,n)&&!this.store.query.node(i.id).isLinkedNode()&&(i=this.store.query.node(i.data.parent).get()),i)){this.currentTargetChildDimensions=this.getChildDimensions(i),this.currentTargetId=i.id;var u=Jl(i,this.currentTargetChildDimensions,r,n);if(this.isDiff(u)){var o=this.dragError;o||this.store.query.node(i.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){o=l});var a=i.data.nodes[u.index],s=a&&this.store.query.node(a).get();return this.currentIndicator={placement:ne(ne({},u),{},{currentNode:s}),error:o},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();se(pu,"BORDER_OFFSET",10);var us=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,i=r.height,u=e[0].cloneNode(!0);return u.style.position="absolute",u.style.left="-100%",u.style.top="-100%",u.style.width="".concat(n,"px"),u.style.height="".concat(i,"px"),u.style.pointerEvents="none",u.classList.add("drag-shadow"),document.body.appendChild(u),t.dataTransfer.setDragImage(u,0,0),u}var o=document.createElement("div");return o.style.position="absolute",o.style.left="-100%",o.style.top="-100%",o.style.width="100%",o.style.height="100%",o.style.pointerEvents="none",o.classList.add("drag-shadow-container"),e.forEach(function(a){var s=a.getBoundingClientRect(),l=s.width,c=s.height,h=s.top,d=s.left,f=a.cloneNode(!0);f.style.position="absolute",f.style.left="".concat(d,"px"),f.style.top="".concat(h,"px"),f.style.width="".concat(l,"px"),f.style.height="".concat(c,"px"),f.classList.add("drag-shadow"),o.appendChild(f)}),document.body.appendChild(o),t.dataTransfer.setDragImage(o,t.clientX,t.clientY),o},Zl=function(t){lo(r,ev);var e=fo(r);function r(){var n;ui(this,r);for(var i=arguments.length,u=new Array(i),o=0;o<i;o++)u[o]=arguments[o];return se(yr(n=e.call.apply(e,[this].concat(u))),"draggedElementShadow",void 0),se(yr(n),"dragTarget",void 0),se(yr(n),"positioner",null),se(yr(n),"currentSelectedElementIds",[]),n}return oi(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,i=this.options.store;return{connect:function(u,o){return i.actions.setDOM(o,u),n.reflect(function(a){a.select(u,o),a.hover(u,o),a.drop(u,o)})},select:function(u,o){var a=n.addCraftEventListener(u,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(o){var h=i.query,d=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||d.includes(o))&&(c=d.filter(function(f){var g=h.node(f).descendants(!0),m=h.node(f).ancestors(!0);return!g.includes(o)&&!m.includes(o)})),c.includes(o)||c.push(o)}i.actions.setNodeEvent("selected",c)}),s=n.addCraftEventListener(u,"click",function(l){l.craft.stopPropagation();var c=i.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),d=n.currentSelectedElementIds.includes(o),f=Ar(c);h&&d?(f.splice(f.indexOf(o),1),i.actions.setNodeEvent("selected",f)):!h&&c.length>1&&i.actions.setNodeEvent("selected",f=[o]),n.currentSelectedElementIds=f});return function(){a(),s()}},hover:function(u,o){var a=n.addCraftEventListener(u,"mouseover",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",o)}),s=null;return n.options.removeHoverOnMouseleave&&(s=n.addCraftEventListener(u,"mouseleave",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",null)})),function(){a(),s&&s()}},drop:function(u,o){var a=n.addCraftEventListener(u,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(o,l.clientX,l.clientY);c&&i.actions.setIndicator(c)}}),s=n.addCraftEventListener(u,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){s(),a()}},drag:function(u,o){if(!i.query.node(o).isDraggable())return function(){};u.setAttribute("draggable","true");var a=n.addCraftEventListener(u,"dragstart",function(l){l.craft.stopPropagation();var c=i.query,h=i.actions,d=c.getEvent("selected").all(),f=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(o)||(d=f?[].concat(Ar(d),[o]):[o],i.actions.setNodeEvent("selected",d)),h.setNodeEvent("dragged",d);var g=d.map(function(m){return c.node(m).get().dom});n.draggedElementShadow=us(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:d},n.positioner=new pu(n.options.store,n.dragTarget)}),s=n.addCraftEventListener(u,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,h){c.type!=="new"&&i.actions.move(c.nodes,h.placement.parent.id,h.placement.index+(h.placement.where==="after"?1:0))})});return function(){u.setAttribute("draggable","false"),a(),s()}},create:function(u,o,a){u.setAttribute("draggable","true");var s=n.addCraftEventListener(u,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof o=="function"){var d=o();h=j.isValidElement(d)?i.query.parseReactElement(d).toNodeTree():d}else h=i.query.parseReactElement(o).toNodeTree();n.draggedElementShadow=us(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new pu(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(u,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(h,d){h.type!=="existing"&&(i.actions.addNodeTree(h.tree,d.placement.parent.id,d.placement.index+(d.placement.where==="after"?1:0)),a&&Bp(a.onCreate)&&a.onCreate(h.tree))})});return function(){u.removeAttribute("draggable"),s(),l()}}}}},{key:"dropElement",value:function(n){var i=this.options.store;if(this.positioner){var u=this.draggedElementShadow,o=this.positioner.getIndicator();this.dragTarget&&o&&!o.error&&n(this.dragTarget,o),u&&(u.parentNode.removeChild(u),this.draggedElementShadow=null),this.dragTarget=null,i.actions.setIndicator(null),i.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function tv(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,i=0,u=0,o=0,a=0,s=t.where;return r?r.inFlow?(o=r.outerWidth,a=n,i=s==="before"?r.top:r.bottom,u=r.left):(o=n,a=r.outerHeight,i=r.top,u=s==="before"?r.left:r.left+r.outerWidth):e&&(i=e.top+e.padding.top,u=e.left+e.padding.left,o=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,a=n),{top:"".concat(i,"px"),left:"".concat(u,"px"),width:"".concat(o,"px"),height:"".concat(a,"px")}}se(Zl,"forceSingleDragShadow",$y()&&My());const rv=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=Nt(i=>({indicator:i.indicator,indicatorOptions:i.options.indicator,enabled:i.options.enabled})),n=Wl();return j.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?j.createElement(Ly,{className:e.className,style:{...tv(t.placement,Tr(t.placement.parent.dom),t.placement.currentNode&&Tr(t.placement.currentNode.dom),e.thickness),backgroundColor:t.error?e.error:e.success,transition:e.transition||"0.2s ease-in",...e.style??{}},parentDom:t.placement.parent.dom}):null},nv=({children:t})=>{const e=j.useContext(po),r=j.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?j.createElement(Vl.Provider,{value:r},j.createElement(rv,null),t):null},os={nodes:{},events:{dragged:new Set,selected:new Set,hovered:new Set},indicator:null,options:{onNodesChange:()=>null,onRender:({render:t})=>t,onBeforeMoveEnd:()=>null,resolver:{},enabled:!0,indicator:{error:"red",success:"rgb(98, 196, 98)"},handlers:t=>new Zl({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},iv={methods:function(t,e){return ne(ne({},function(r,n){var i=function(a,s,l){if(function d(f,g){var m=a.nodes[f];typeof m.data.type!="string"&&Q(r.options.resolver[m.data.name],On.replace("%node_type%","".concat(m.data.type.name))),r.nodes[f]=ne(ne({},m),{},{data:ne(ne({},m.data),{},{parent:g})}),m.data.nodes.length>0&&(delete r.nodes[f].data.props.children,m.data.nodes.forEach(function(b){return d(b,m.id)})),Object.values(m.data.linkedNodes).forEach(function(b){return d(b,m.id)})}(a.rootNodeId,s),s||a.rootNodeId!==Ke){var c=u(s);if(l.type!=="child")c.data.linkedNodes[l.id]=a.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,a.rootNodeId):c.data.nodes.push(a.rootNodeId)}}},u=function(a){Q(a,dy);var s=r.nodes[a];return Q(s,_l),s},o=function a(s){var l=r.nodes[s],c=r.nodes[l.data.parent];if(l.data.nodes&&Ar(l.data.nodes).forEach(function(f){return a(f)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(f){return a(f)}),c.data.nodes.includes(s)){var h=c.data.nodes;h.splice(h.indexOf(s),1)}else{var d=Object.keys(c.data.linkedNodes).find(function(f){return c.data.linkedNodes[f]===f});d&&delete c.data.linkedNodes[d]}(function(f,g){Object.keys(f.events).forEach(function(m){var b=f.events[m];b&&b.has&&b.has(g)&&(f.events[m]=new Set(Array.from(b).filter(function(y){return g!==y})))})})(r,s),delete r.nodes[s]};return{addLinkedNodeFromTree:function(a,s,l){var c=u(s).data.linkedNodes[l];c&&o(c),i(a,s,{type:"linked",id:l})},add:function(a,s,l){var c=[a];Array.isArray(a)&&(lt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=a),c.forEach(function(h){i({nodes:se({},h.id,h),rootNodeId:h.id},s,{type:"child",index:l})})},addNodeTree:function(a,s,l){i(a,s,{type:"child",index:l})},delete:function(a){Ye(r.nodes,a,{existOnly:!0,idOnly:!0}).forEach(function(s){var l=s.node;Q(!n.node(l.id).isTopLevelNode(),wy),o(l.id)})},deserialize:function(a){var s=typeof a=="string"?JSON.parse(a):a,l=Object.keys(s).map(function(c){var h=c;return c===jl&&(h=Ke),[h,n.parseSerializedNode(s[c]).toNode(function(d){return d.id=h})]});this.replaceNodes(Yl(l))},move:function(a,s,l){var c=Ye(r.nodes,a,{existOnly:!0}),h=r.nodes[s],d=new Set;c.forEach(function(f,g){var m=f.node,b=m.id,y=m.data.parent;n.node(s).isDroppable([b],function(C){throw new Error(C)}),r.options.onBeforeMoveEnd(m,h,r.nodes[y]);var v=r.nodes[y].data.nodes;d.add(v);var E=v.indexOf(b);v[E]="$$",h.data.nodes.splice(l+g,0,b),r.nodes[b].data.parent=s}),d.forEach(function(f){var g=f.length;Ar(f).reverse().forEach(function(m,b){m==="$$"&&f.splice(g-1-b,1)})})},replaceNodes:function(a){this.clearEvents(),r.nodes=a},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(a){a(r.options)},setNodeEvent:function(a,s){if(r.events[a].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[a]=!1)}),r.events[a]=new Set,s){var l=Ye(r.nodes,s,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(h){return h.node.id}));c.forEach(function(h){r.nodes[h].events[a]=!0}),r.events[a]=c}},setCustom:function(a,s){Ye(r.nodes,a,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.custom)})},setDOM:function(a,s){r.nodes[a]&&(r.nodes[a].dom=s)},setIndicator:function(a){a&&(!a.placement.parent.dom||a.placement.currentNode&&!a.placement.currentNode.dom)||(r.indicator=a)},setHidden:function(a,s){r.nodes[a].data.hidden=s},setProp:function(a,s){Ye(r.nodes,a,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.props)})},selectNode:function(a){if(a){var s=Ye(r.nodes,a,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",s.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=co(this,Xy);r(t,n)}})},ignoreHistoryForActions:["setDOM","setNodeEvent","selectNode","clearEvents","setOptions","setIndicator"],normalizeHistory:t=>{Object.keys(t.events).forEach(e=>{Array.from(t.events[e]||[]).forEach(r=>{t.nodes[r]||t.events[e].delete(r)})}),Object.keys(t.nodes).forEach(e=>{const r=t.nodes[e];Object.keys(r.events).forEach(n=>{r.events[n]&&t.events[n]&&!t.events[n].has(r.id)&&(r.events[n]=!1)})})}},uv=(t,e)=>Oy(iv,{...os,options:{...os.options,...t}},Kl,e),Ql=({children:t,...e})=>{e.resolver!==void 0&&Q(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,Sy);const r=x.useRef(e),n=uv(r.current,(i,u,o,a,s)=>{if(!o)return;const{patches:l,...c}=o;for(let h=0;h<l.length;h++){const{path:d}=l[h],f=d.length>2&&d[0]==="nodes"&&d[2]==="data";if([oe.IGNORE,oe.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||f){s(g=>{i.options.normalizeNodes&&i.options.normalizeNodes(g,u,c,a)});break}}});return x.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(i=>{i.enabled=e.enabled})},[n,e.enabled]),x.useEffect(()=>{n.subscribe(i=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?x.createElement(po.Provider,{value:n},x.createElement(nv,null,t)):null},ec=j.createContext("desktop"),tc=({value:t,children:e})=>p.jsx(ec.Provider,{value:t,children:e}),Ot=()=>j.useContext(ec),Ee=["mobile","tablet","small","desktop"],Je=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Ee.indexOf(e);for(let i=n;i<Ee.length;i++){const u=Ee[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}for(let i=n-1;i>=0;i--){const u=Ee[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}return r};function Ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function si(t,e=[]){let r=[];function n(u,o){const a=x.createContext(o),s=r.length;r=[...r,o];const l=h=>{var y;const{scope:d,children:f,...g}=h,m=((y=d==null?void 0:d[t])==null?void 0:y[s])||a,b=x.useMemo(()=>g,Object.values(g));return p.jsx(m.Provider,{value:b,children:f})};l.displayName=u+"Provider";function c(h,d){var m;const f=((m=d==null?void 0:d[t])==null?void 0:m[s])||a,g=x.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${u}\``)}return[l,c]}const i=()=>{const u=r.map(o=>x.createContext(o));return function(a){const s=(a==null?void 0:a[t])||u;return x.useMemo(()=>({[`__scope${t}`]:{...a,[t]:s}}),[a,s])}};return i.scopeName=t,[n,ov(i,...e)]}function ov(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(u){const o=n.reduce((a,{useScope:s,scopeName:l})=>{const h=s(u)[`__scope${l}`];return{...a,...h}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function av(t){const e=sv(t),r=x.forwardRef((n,i)=>{const{children:u,...o}=n,a=x.Children.toArray(u),s=a.find(cv);if(s){const l=s.props.children,c=a.map(h=>h===s?x.Children.count(l)>1?x.Children.only(null):x.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...o,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return p.jsx(e,{...o,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}function sv(t){const e=x.forwardRef((r,n)=>{const{children:i,...u}=r;if(x.isValidElement(i)){const o=fv(i),a=dv(u,i.props);return i.type!==x.Fragment&&(a.ref=n?Xn(n,o):o),x.cloneElement(i,a)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var lv=Symbol("radix.slottable");function cv(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===lv}function dv(t,e){const r={...e};for(const n in e){const i=t[n],u=e[n];/^on[A-Z]/.test(n)?i&&u?r[n]=(...a)=>{const s=u(...a);return i(...a),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function fv(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var pv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],je=pv.reduce((t,e)=>{const r=av(`Primitive.${e}`),n=x.forwardRef((i,u)=>{const{asChild:o,...a}=i,s=o?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(s,{...a,ref:u})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function hv(t,e){t&&el.flushSync(()=>t.dispatchEvent(e))}function Br(t){const e=x.useRef(t);return x.useEffect(()=>{e.current=t}),x.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function bv(t,e=globalThis==null?void 0:globalThis.document){const r=Br(t);x.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var gv="DismissableLayer",hu="dismissableLayer.update",mv="dismissableLayer.pointerDownOutside",yv="dismissableLayer.focusOutside",as,rc=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),nc=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:o,onDismiss:a,...s}=t,l=x.useContext(rc),[c,h]=x.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),g=qe(e,R=>h(R)),m=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=m.indexOf(b),v=c?m.indexOf(c):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,C=v>=y,N=wv(R=>{const D=R.target,M=[...l.branches].some(L=>L.contains(D));!C||M||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),k=Sv(R=>{const D=R.target;[...l.branches].some(L=>L.contains(D))||(u==null||u(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return bv(R=>{v===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),x.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(as=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),ss(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=as)}},[c,d,r,l]),x.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),ss())},[c,l]),x.useEffect(()=>{const R=()=>f({});return document.addEventListener(hu,R),()=>document.removeEventListener(hu,R)},[]),p.jsx(je.div,{...s,ref:g,style:{pointerEvents:E?C?"auto":"none":void 0,...t.style},onFocusCapture:Ce(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Ce(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Ce(t.onPointerDownCapture,N.onPointerDownCapture)})});nc.displayName=gv;var vv="DismissableLayerBranch",xv=x.forwardRef((t,e)=>{const r=x.useContext(rc),n=x.useRef(null),i=qe(e,n);return x.useEffect(()=>{const u=n.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),p.jsx(je.div,{...t,ref:i})});xv.displayName=vv;function wv(t,e=globalThis==null?void 0:globalThis.document){const r=Br(t),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const u=a=>{if(a.target&&!n.current){let s=function(){ic(mv,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",u),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Sv(t,e=globalThis==null?void 0:globalThis.document){const r=Br(t),n=x.useRef(!1);return x.useEffect(()=>{const i=u=>{u.target&&!n.current&&ic(yv,r,{originalEvent:u},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ss(){const t=new CustomEvent(hu);document.dispatchEvent(t)}function ic(t,e,r,{discrete:n}){const i=r.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?hv(i,u):i.dispatchEvent(u)}var ct=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Cv=x[" useId ".trim().toString()]||(()=>{}),Ev=0;function uc(t){const[e,r]=x.useState(Cv());return ct(()=>{r(n=>n??String(Ev++))},[t]),e?`radix-${e}`:""}const Tv=["top","right","bottom","left"],dt=Math.min,ge=Math.max,kn=Math.round,tn=Math.floor,De=t=>({x:t,y:t}),Av={left:"right",right:"left",bottom:"top",top:"bottom"},Nv={start:"end",end:"start"};function bu(t,e,r){return ge(t,dt(e,r))}function Ze(t,e){return typeof t=="function"?t(e):t}function Qe(t){return t.split("-")[0]}function or(t){return t.split("-")[1]}function go(t){return t==="x"?"y":"x"}function mo(t){return t==="y"?"height":"width"}const Ov=new Set(["top","bottom"]);function Re(t){return Ov.has(Qe(t))?"y":"x"}function yo(t){return go(Re(t))}function jv(t,e,r){r===void 0&&(r=!1);const n=or(t),i=yo(t),u=mo(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[u]>e.floating[u]&&(o=Rn(o)),[o,Rn(o)]}function _v(t){const e=Rn(t);return[gu(t),e,gu(e)]}function gu(t){return t.replace(/start|end/g,e=>Nv[e])}const ls=["left","right"],cs=["right","left"],Pv=["top","bottom"],kv=["bottom","top"];function Rv(t,e,r){switch(t){case"top":case"bottom":return r?e?cs:ls:e?ls:cs;case"left":case"right":return e?Pv:kv;default:return[]}}function Iv(t,e,r,n){const i=or(t);let u=Rv(Qe(t),r==="start",n);return i&&(u=u.map(o=>o+"-"+i),e&&(u=u.concat(u.map(gu)))),u}function Rn(t){return t.replace(/left|right|bottom|top/g,e=>Av[e])}function Dv(t){return{top:0,right:0,bottom:0,left:0,...t}}function oc(t){return typeof t!="number"?Dv(t):{top:t,right:t,bottom:t,left:t}}function In(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function ds(t,e,r){let{reference:n,floating:i}=t;const u=Re(e),o=yo(e),a=mo(o),s=Qe(e),l=u==="y",c=n.x+n.width/2-i.width/2,h=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let f;switch(s){case"top":f={x:c,y:n.y-i.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-i.width,y:h};break;default:f={x:n.x,y:n.y}}switch(or(e)){case"start":f[o]-=d*(r&&l?-1:1);break;case"end":f[o]+=d*(r&&l?-1:1);break}return f}const Lv=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:u=[],platform:o}=r,a=u.filter(Boolean),s=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:h}=ds(l,n,s),d=n,f={},g=0;for(let m=0;m<a.length;m++){const{name:b,fn:y}=a[m],{x:v,y:E,data:C,reset:N}=await y({x:c,y:h,initialPlacement:n,placement:d,strategy:i,middlewareData:f,rects:l,platform:o,elements:{reference:t,floating:e}});c=v??c,h=E??h,f={...f,[b]:{...f[b],...C}},N&&g<=50&&(g++,typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(l=N.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):N.rects),{x:c,y:h}=ds(l,d,s)),m=-1)}return{x:c,y:h,placement:d,strategy:i,middlewareData:f}};async function Nr(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:u,rects:o,elements:a,strategy:s}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=Ze(e,t),g=oc(f),b=a[d?h==="floating"?"reference":"floating":h],y=In(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(b)))==null||r?b:b.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(a.floating)),boundary:l,rootBoundary:c,strategy:s})),v=h==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(u.getOffsetParent==null?void 0:u.getOffsetParent(a.floating)),C=await(u.isElement==null?void 0:u.isElement(E))?await(u.getScale==null?void 0:u.getScale(E))||{x:1,y:1}:{x:1,y:1},N=In(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:E,strategy:s}):v);return{top:(y.top-N.top+g.top)/C.y,bottom:(N.bottom-y.bottom+g.bottom)/C.y,left:(y.left-N.left+g.left)/C.x,right:(N.right-y.right+g.right)/C.x}}const Mv=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:u,platform:o,elements:a,middlewareData:s}=e,{element:l,padding:c=0}=Ze(t,e)||{};if(l==null)return{};const h=oc(c),d={x:r,y:n},f=yo(i),g=mo(f),m=await o.getDimensions(l),b=f==="y",y=b?"top":"left",v=b?"bottom":"right",E=b?"clientHeight":"clientWidth",C=u.reference[g]+u.reference[f]-d[f]-u.floating[g],N=d[f]-u.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=k?k[E]:0;(!R||!await(o.isElement==null?void 0:o.isElement(k)))&&(R=a.floating[E]||u.floating[g]);const D=C/2-N/2,M=R/2-m[g]/2-1,L=dt(h[y],M),S=dt(h[v],M),T=L,_=R-m[g]-S,I=R/2-m[g]/2+D,w=bu(T,I,_),O=!s.arrow&&or(i)!=null&&I!==w&&u.reference[g]/2-(I<T?L:S)-m[g]/2<0,A=O?I<T?I-T:I-_:0;return{[f]:d[f]+A,data:{[f]:w,centerOffset:I-w-A,...O&&{alignmentOffset:A}},reset:O}}}),$v=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:u,rects:o,initialPlacement:a,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...b}=Ze(t,e);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const y=Qe(i),v=Re(a),E=Qe(a)===a,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),N=d||(E||!m?[Rn(a)]:_v(a)),k=g!=="none";!d&&k&&N.push(...Iv(a,m,g,C));const R=[a,...N],D=await Nr(e,b),M=[];let L=((n=u.flip)==null?void 0:n.overflows)||[];if(c&&M.push(D[y]),h){const I=jv(i,o,C);M.push(D[I[0]],D[I[1]])}if(L=[...L,{placement:i,overflows:M}],!M.every(I=>I<=0)){var S,T;const I=(((S=u.flip)==null?void 0:S.index)||0)+1,w=R[I];if(w&&(!(h==="alignment"?v!==Re(w):!1)||L.every(P=>Re(P.placement)===v?P.overflows[0]>0:!0)))return{data:{index:I,overflows:L},reset:{placement:w}};let O=(T=L.filter(A=>A.overflows[0]<=0).sort((A,P)=>A.overflows[1]-P.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(f){case"bestFit":{var _;const A=(_=L.filter(P=>{if(k){const B=Re(P.placement);return B===v||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,U)=>B+U,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:_[0];A&&(O=A);break}case"initialPlacement":O=a;break}if(i!==O)return{reset:{placement:O}}}return{}}}};function fs(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ps(t){return Tv.some(e=>t[e]>=0)}const Bv=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=Ze(t,e);switch(n){case"referenceHidden":{const u=await Nr(e,{...i,elementContext:"reference"}),o=fs(u,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:ps(o)}}}case"escaped":{const u=await Nr(e,{...i,altBoundary:!0}),o=fs(u,r.floating);return{data:{escapedOffsets:o,escaped:ps(o)}}}default:return{}}}}},ac=new Set(["left","top"]);async function qv(t,e){const{placement:r,platform:n,elements:i}=t,u=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Qe(r),a=or(r),s=Re(r)==="y",l=ac.has(o)?-1:1,c=u&&s?-1:1,h=Ze(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),s?{x:f*c,y:d*l}:{x:d*l,y:f*c}}const Hv=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:u,placement:o,middlewareData:a}=e,s=await qv(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+s.x,y:u+s.y,data:{...s,placement:o}}}}},Fv=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:u=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...s}=Ze(t,e),l={x:r,y:n},c=await Nr(e,s),h=Re(Qe(i)),d=go(h);let f=l[d],g=l[h];if(u){const b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=f+c[b],E=f-c[y];f=bu(v,f,E)}if(o){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=g+c[b],E=g-c[y];g=bu(v,g,E)}const m=a.fn({...e,[d]:f,[h]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[d]:u,[h]:o}}}}}},zv=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:u,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:l=!0}=Ze(t,e),c={x:r,y:n},h=Re(i),d=go(h);let f=c[d],g=c[h];const m=Ze(a,e),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const E=d==="y"?"height":"width",C=u.reference[d]-u.floating[E]+b.mainAxis,N=u.reference[d]+u.reference[E]-b.mainAxis;f<C?f=C:f>N&&(f=N)}if(l){var y,v;const E=d==="y"?"width":"height",C=ac.has(Qe(i)),N=u.reference[h]-u.floating[E]+(C&&((y=o.offset)==null?void 0:y[h])||0)+(C?0:b.crossAxis),k=u.reference[h]+u.reference[E]+(C?0:((v=o.offset)==null?void 0:v[h])||0)-(C?b.crossAxis:0);g<N?g=N:g>k&&(g=k)}return{[d]:f,[h]:g}}}},Uv=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:i,rects:u,platform:o,elements:a}=e,{apply:s=()=>{},...l}=Ze(t,e),c=await Nr(e,l),h=Qe(i),d=or(i),f=Re(i)==="y",{width:g,height:m}=u.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(y=h,b=d==="end"?"top":"bottom");const v=m-c.top-c.bottom,E=g-c.left-c.right,C=dt(m-c[b],v),N=dt(g-c[y],E),k=!e.middlewareData.shift;let R=C,D=N;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=E),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(R=v),k&&!d){const L=ge(c.left,0),S=ge(c.right,0),T=ge(c.top,0),_=ge(c.bottom,0);f?D=g-2*(L!==0||S!==0?L+S:ge(c.left,c.right)):R=m-2*(T!==0||_!==0?T+_:ge(c.top,c.bottom))}await s({...e,availableWidth:D,availableHeight:R});const M=await o.getDimensions(a.floating);return g!==M.width||m!==M.height?{reset:{rects:!0}}:{}}}};function li(){return typeof window<"u"}function ar(t){return sc(t)?(t.nodeName||"").toLowerCase():"#document"}function me(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Fe(t){var e;return(e=(sc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sc(t){return li()?t instanceof Node||t instanceof me(t).Node:!1}function Ne(t){return li()?t instanceof Element||t instanceof me(t).Element:!1}function Be(t){return li()?t instanceof HTMLElement||t instanceof me(t).HTMLElement:!1}function hs(t){return!li()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof me(t).ShadowRoot}const Vv=new Set(["inline","contents"]);function qr(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Oe(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!Vv.has(i)}const Wv=new Set(["table","td","th"]);function Gv(t){return Wv.has(ar(t))}const Xv=[":popover-open",":modal"];function ci(t){return Xv.some(e=>{try{return t.matches(e)}catch{return!1}})}const Yv=["transform","translate","scale","rotate","perspective"],Jv=["transform","translate","scale","rotate","perspective","filter"],Kv=["paint","layout","strict","content"];function vo(t){const e=xo(),r=Ne(t)?Oe(t):t;return Yv.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||Jv.some(n=>(r.willChange||"").includes(n))||Kv.some(n=>(r.contain||"").includes(n))}function Zv(t){let e=ft(t);for(;Be(e)&&!Ft(e);){if(vo(e))return e;if(ci(e))return null;e=ft(e)}return null}function xo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Qv=new Set(["html","body","#document"]);function Ft(t){return Qv.has(ar(t))}function Oe(t){return me(t).getComputedStyle(t)}function di(t){return Ne(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if(ar(t)==="html")return t;const e=t.assignedSlot||t.parentNode||hs(t)&&t.host||Fe(t);return hs(e)?e.host:e}function lc(t){const e=ft(t);return Ft(e)?t.ownerDocument?t.ownerDocument.body:t.body:Be(e)&&qr(e)?e:lc(e)}function Or(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=lc(t),u=i===((n=t.ownerDocument)==null?void 0:n.body),o=me(i);if(u){const a=mu(o);return e.concat(o,o.visualViewport||[],qr(i)?i:[],a&&r?Or(a):[])}return e.concat(i,Or(i,[],r))}function mu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function cc(t){const e=Oe(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Be(t),u=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=kn(r)!==u||kn(n)!==o;return a&&(r=u,n=o),{width:r,height:n,$:a}}function wo(t){return Ne(t)?t:t.contextElement}function Mt(t){const e=wo(t);if(!Be(e))return De(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:u}=cc(e);let o=(u?kn(r.width):r.width)/n,a=(u?kn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const e2=De(0);function dc(t){const e=me(t);return!xo()||!e.visualViewport?e2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function t2(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==me(t)?!1:e}function St(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),u=wo(t);let o=De(1);e&&(n?Ne(n)&&(o=Mt(n)):o=Mt(t));const a=t2(u,r,n)?dc(u):De(0);let s=(i.left+a.x)/o.x,l=(i.top+a.y)/o.y,c=i.width/o.x,h=i.height/o.y;if(u){const d=me(u),f=n&&Ne(n)?me(n):n;let g=d,m=mu(g);for(;m&&n&&f!==g;){const b=Mt(m),y=m.getBoundingClientRect(),v=Oe(m),E=y.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,C=y.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;s*=b.x,l*=b.y,c*=b.x,h*=b.y,s+=E,l+=C,g=me(m),m=mu(g)}}return In({width:c,height:h,x:s,y:l})}function fi(t,e){const r=di(t).scrollLeft;return e?e.left+r:St(Fe(t)).left+r}function fc(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-fi(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function r2(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const u=i==="fixed",o=Fe(n),a=e?ci(e.floating):!1;if(n===o||a&&u)return r;let s={scrollLeft:0,scrollTop:0},l=De(1);const c=De(0),h=Be(n);if((h||!h&&!u)&&((ar(n)!=="body"||qr(o))&&(s=di(n)),Be(n))){const f=St(n);l=Mt(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const d=o&&!h&&!u?fc(o,s):De(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-s.scrollLeft*l.x+c.x+d.x,y:r.y*l.y-s.scrollTop*l.y+c.y+d.y}}function n2(t){return Array.from(t.getClientRects())}function i2(t){const e=Fe(t),r=di(t),n=t.ownerDocument.body,i=ge(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),u=ge(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+fi(t);const a=-r.scrollTop;return Oe(n).direction==="rtl"&&(o+=ge(e.clientWidth,n.clientWidth)-i),{width:i,height:u,x:o,y:a}}const bs=25;function u2(t,e){const r=me(t),n=Fe(t),i=r.visualViewport;let u=n.clientWidth,o=n.clientHeight,a=0,s=0;if(i){u=i.width,o=i.height;const c=xo();(!c||c&&e==="fixed")&&(a=i.offsetLeft,s=i.offsetTop)}const l=fi(n);if(l<=0){const c=n.ownerDocument,h=c.body,d=getComputedStyle(h),f=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-f);g<=bs&&(u-=g)}else l<=bs&&(u+=l);return{width:u,height:o,x:a,y:s}}const o2=new Set(["absolute","fixed"]);function a2(t,e){const r=St(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,u=Be(t)?Mt(t):De(1),o=t.clientWidth*u.x,a=t.clientHeight*u.y,s=i*u.x,l=n*u.y;return{width:o,height:a,x:s,y:l}}function gs(t,e,r){let n;if(e==="viewport")n=u2(t,r);else if(e==="document")n=i2(Fe(t));else if(Ne(e))n=a2(e,r);else{const i=dc(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return In(n)}function pc(t,e){const r=ft(t);return r===e||!Ne(r)||Ft(r)?!1:Oe(r).position==="fixed"||pc(r,e)}function s2(t,e){const r=e.get(t);if(r)return r;let n=Or(t,[],!1).filter(a=>Ne(a)&&ar(a)!=="body"),i=null;const u=Oe(t).position==="fixed";let o=u?ft(t):t;for(;Ne(o)&&!Ft(o);){const a=Oe(o),s=vo(o);!s&&a.position==="fixed"&&(i=null),(u?!s&&!i:!s&&a.position==="static"&&!!i&&o2.has(i.position)||qr(o)&&!s&&pc(t,o))?n=n.filter(c=>c!==o):i=a,o=ft(o)}return e.set(t,n),n}function l2(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?ci(e)?[]:s2(e,this._c):[].concat(r),n],a=o[0],s=o.reduce((l,c)=>{const h=gs(e,c,i);return l.top=ge(h.top,l.top),l.right=dt(h.right,l.right),l.bottom=dt(h.bottom,l.bottom),l.left=ge(h.left,l.left),l},gs(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function c2(t){const{width:e,height:r}=cc(t);return{width:e,height:r}}function d2(t,e,r){const n=Be(e),i=Fe(e),u=r==="fixed",o=St(t,!0,u,e);let a={scrollLeft:0,scrollTop:0};const s=De(0);function l(){s.x=fi(i)}if(n||!n&&!u)if((ar(e)!=="body"||qr(i))&&(a=di(e)),n){const f=St(e,!0,u,e);s.x=f.x+e.clientLeft,s.y=f.y+e.clientTop}else i&&l();u&&!n&&i&&l();const c=i&&!n&&!u?fc(i,a):De(0),h=o.left+a.scrollLeft-s.x-c.x,d=o.top+a.scrollTop-s.y-c.y;return{x:h,y:d,width:o.width,height:o.height}}function Bi(t){return Oe(t).position==="static"}function ms(t,e){if(!Be(t)||Oe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return Fe(t)===r&&(r=r.ownerDocument.body),r}function hc(t,e){const r=me(t);if(ci(t))return r;if(!Be(t)){let i=ft(t);for(;i&&!Ft(i);){if(Ne(i)&&!Bi(i))return i;i=ft(i)}return r}let n=ms(t,e);for(;n&&Gv(n)&&Bi(n);)n=ms(n,e);return n&&Ft(n)&&Bi(n)&&!vo(n)?r:n||Zv(t)||r}const f2=async function(t){const e=this.getOffsetParent||hc,r=this.getDimensions,n=await r(t.floating);return{reference:d2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function p2(t){return Oe(t).direction==="rtl"}const h2={convertOffsetParentRelativeRectToViewportRelativeRect:r2,getDocumentElement:Fe,getClippingRect:l2,getOffsetParent:hc,getElementRects:f2,getClientRects:n2,getDimensions:c2,getScale:Mt,isElement:Ne,isRTL:p2};function bc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function b2(t,e){let r=null,n;const i=Fe(t);function u(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),u();const l=t.getBoundingClientRect(),{left:c,top:h,width:d,height:f}=l;if(a||e(),!d||!f)return;const g=tn(h),m=tn(i.clientWidth-(c+d)),b=tn(i.clientHeight-(h+f)),y=tn(c),E={rootMargin:-g+"px "+-m+"px "+-b+"px "+-y+"px",threshold:ge(0,dt(1,s))||1};let C=!0;function N(k){const R=k[0].intersectionRatio;if(R!==s){if(!C)return o();R?o(!1,R):n=setTimeout(()=>{o(!1,1e-7)},1e3)}R===1&&!bc(l,t.getBoundingClientRect())&&o(),C=!1}try{r=new IntersectionObserver(N,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(N,E)}r.observe(t)}return o(!0),u}function g2(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,l=wo(t),c=i||u?[...l?Or(l):[],...Or(e)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),u&&y.addEventListener("resize",r)});const h=l&&a?b2(l,r):null;let d=-1,f=null;o&&(f=new ResizeObserver(y=>{let[v]=y;v&&v.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(e)})),r()}),l&&!s&&f.observe(l),f.observe(e));let g,m=s?St(t):null;s&&b();function b(){const y=St(t);m&&!bc(m,y)&&r(),m=y,g=requestAnimationFrame(b)}return r(),()=>{var y;c.forEach(v=>{i&&v.removeEventListener("scroll",r),u&&v.removeEventListener("resize",r)}),h==null||h(),(y=f)==null||y.disconnect(),f=null,s&&cancelAnimationFrame(g)}}const m2=Hv,y2=Fv,v2=$v,x2=Uv,w2=Bv,ys=Mv,S2=zv,C2=(t,e,r)=>{const n=new Map,i={platform:h2,...r},u={...i.platform,_c:n};return Lv(t,e,{...i,platform:u})};var E2=typeof document<"u",T2=function(){},bn=E2?j.useLayoutEffect:T2;function Dn(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Dn(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const u=i[n];if(!(u==="_owner"&&t.$$typeof)&&!Dn(t[u],e[u]))return!1}return!0}return t!==t&&e!==e}function gc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function vs(t,e){const r=gc(t);return Math.round(e*r)/r}function qi(t){const e=x.useRef(t);return bn(()=>{e.current=t}),e}function A2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:u,floating:o}={},transform:a=!0,whileElementsMounted:s,open:l}=t,[c,h]=x.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=x.useState(n);Dn(d,n)||f(n);const[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useCallback(P=>{P!==k.current&&(k.current=P,m(P))},[]),E=x.useCallback(P=>{P!==R.current&&(R.current=P,y(P))},[]),C=u||g,N=o||b,k=x.useRef(null),R=x.useRef(null),D=x.useRef(c),M=s!=null,L=qi(s),S=qi(i),T=qi(l),_=x.useCallback(()=>{if(!k.current||!R.current)return;const P={placement:e,strategy:r,middleware:d};S.current&&(P.platform=S.current),C2(k.current,R.current,P).then(B=>{const U={...B,isPositioned:T.current!==!1};I.current&&!Dn(D.current,U)&&(D.current=U,el.flushSync(()=>{h(U)}))})},[d,e,r,S,T]);bn(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[l]);const I=x.useRef(!1);bn(()=>(I.current=!0,()=>{I.current=!1}),[]),bn(()=>{if(C&&(k.current=C),N&&(R.current=N),C&&N){if(L.current)return L.current(C,N,_);_()}},[C,N,_,L,M]);const w=x.useMemo(()=>({reference:k,floating:R,setReference:v,setFloating:E}),[v,E]),O=x.useMemo(()=>({reference:C,floating:N}),[C,N]),A=x.useMemo(()=>{const P={position:r,left:0,top:0};if(!O.floating)return P;const B=vs(O.floating,c.x),U=vs(O.floating,c.y);return a?{...P,transform:"translate("+B+"px, "+U+"px)",...gc(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:U}},[r,a,O.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:_,refs:w,elements:O,floatingStyles:A}),[c,_,w,O,A])}const N2=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?ys({element:n.current,padding:i}).fn(r):{}:n?ys({element:n,padding:i}).fn(r):{}}}},O2=(t,e)=>({...m2(t),options:[t,e]}),j2=(t,e)=>({...y2(t),options:[t,e]}),_2=(t,e)=>({...S2(t),options:[t,e]}),P2=(t,e)=>({...v2(t),options:[t,e]}),k2=(t,e)=>({...x2(t),options:[t,e]}),R2=(t,e)=>({...w2(t),options:[t,e]}),I2=(t,e)=>({...N2(t),options:[t,e]});var D2="Arrow",mc=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:i=5,...u}=t;return p.jsx(je.svg,{...u,ref:e,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});mc.displayName=D2;var L2=mc;function yc(t){const[e,r]=x.useState(void 0);return ct(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const u=i[0];let o,a;if("borderBoxSize"in u){const s=u.borderBoxSize,l=Array.isArray(s)?s[0]:s;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var So="Popper",[vc,xc]=si(So),[M2,wc]=vc(So),Sc=t=>{const{__scopePopper:e,children:r}=t,[n,i]=x.useState(null);return p.jsx(M2,{scope:e,anchor:n,onAnchorChange:i,children:r})};Sc.displayName=So;var Cc="PopperAnchor",Ec=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,u=wc(Cc,r),o=x.useRef(null),a=qe(e,o),s=x.useRef(null);return x.useEffect(()=>{const l=s.current;s.current=(n==null?void 0:n.current)||o.current,l!==s.current&&u.onAnchorChange(s.current)}),n?null:p.jsx(je.div,{...i,ref:a})});Ec.displayName=Cc;var Co="PopperContent",[$2,B2]=vc(Co),Tc=x.forwardRef((t,e)=>{var W,Pe,we,pe,Yr,cr;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:u="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:g,...m}=t,b=wc(Co,r),[y,v]=x.useState(null),E=qe(e,mt=>v(mt)),[C,N]=x.useState(null),k=yc(C),R=(k==null?void 0:k.width)??0,D=(k==null?void 0:k.height)??0,M=n+(u!=="center"?"-"+u:""),L=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},S=Array.isArray(l)?l:[l],T=S.length>0,_={padding:L,boundary:S.filter(H2),altBoundary:T},{refs:I,floatingStyles:w,placement:O,isPositioned:A,middlewareData:P}=A2({strategy:"fixed",placement:M,whileElementsMounted:(...mt)=>g2(...mt,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[O2({mainAxis:i+D,alignmentAxis:o}),s&&j2({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?_2():void 0,..._}),s&&P2({..._}),k2({..._,apply:({elements:mt,rects:oa,availableWidth:o0,availableHeight:a0})=>{const{width:s0,height:l0}=oa.reference,Jr=mt.floating.style;Jr.setProperty("--radix-popper-available-width",`${o0}px`),Jr.setProperty("--radix-popper-available-height",`${a0}px`),Jr.setProperty("--radix-popper-anchor-width",`${s0}px`),Jr.setProperty("--radix-popper-anchor-height",`${l0}px`)}}),C&&I2({element:C,padding:a}),F2({arrowWidth:R,arrowHeight:D}),d&&R2({strategy:"referenceHidden",..._})]}),[B,U]=Oc(O),ce=Br(g);ct(()=>{A&&(ce==null||ce())},[A,ce]);const ua=(W=P.arrow)==null?void 0:W.x,X=(Pe=P.arrow)==null?void 0:Pe.y,V=((we=P.arrow)==null?void 0:we.centerOffset)!==0,[lr,G]=x.useState();return ct(()=>{y&&G(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...w,transform:A?w.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lr,"--radix-popper-transform-origin":[(pe=P.transformOrigin)==null?void 0:pe.x,(Yr=P.transformOrigin)==null?void 0:Yr.y].join(" "),...((cr=P.hide)==null?void 0:cr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx($2,{scope:r,placedSide:B,onArrowChange:N,arrowX:ua,arrowY:X,shouldHideArrow:V,children:p.jsx(je.div,{"data-side":B,"data-align":U,...m,ref:E,style:{...m.style,animation:A?void 0:"none"}})})})});Tc.displayName=Co;var Ac="PopperArrow",q2={top:"bottom",right:"left",bottom:"top",left:"right"},Nc=x.forwardRef(function(e,r){const{__scopePopper:n,...i}=e,u=B2(Ac,n),o=q2[u.placedSide];return p.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:p.jsx(L2,{...i,ref:r,style:{...i.style,display:"block"}})})});Nc.displayName=Ac;function H2(t){return t!==null}var F2=t=>({name:"transformOrigin",options:t,fn(e){var b,y,v;const{placement:r,rects:n,middlewareData:i}=e,o=((b=i.arrow)==null?void 0:b.centerOffset)!==0,a=o?0:t.arrowWidth,s=o?0:t.arrowHeight,[l,c]=Oc(r),h={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+a/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+s/2;let g="",m="";return l==="bottom"?(g=o?h:`${d}px`,m=`${-s}px`):l==="top"?(g=o?h:`${d}px`,m=`${n.floating.height+s}px`):l==="right"?(g=`${-s}px`,m=o?h:`${f}px`):l==="left"&&(g=`${n.floating.width+s}px`,m=o?h:`${f}px`),{data:{x:g,y:m}}}});function Oc(t){const[e,r="center"]=t.split("-");return[e,r]}var z2=Sc,U2=Ec,V2=Tc,W2=Nc;function G2(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var pi=t=>{const{present:e,children:r}=t,n=X2(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),u=qe(n.ref,Y2(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:u}):null};pi.displayName="Presence";function X2(t){const[e,r]=x.useState(),n=x.useRef(null),i=x.useRef(t),u=x.useRef("none"),o=t?"mounted":"unmounted",[a,s]=G2(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=rn(n.current);u.current=a==="mounted"?l:"none"},[a]),ct(()=>{const l=n.current,c=i.current;if(c!==t){const d=u.current,f=rn(l);t?s("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?s("UNMOUNT"):s(c&&d!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,s]),ct(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=f=>{const m=rn(n.current).includes(CSS.escape(f.animationName));if(f.target===e&&m&&(s("ANIMATION_END"),!i.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},d=f=>{f.target===e&&(u.current=rn(n.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function rn(t){return(t==null?void 0:t.animationName)||"none"}function Y2(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var J2=Symbol("radix.slottable");function K2(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=J2,e}var Z2=x[" useInsertionEffect ".trim().toString()]||ct;function Eo({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,u,o]=Q2({defaultProp:e,onChange:r}),a=t!==void 0,s=a?t:i;{const c=x.useRef(t!==void 0);x.useEffect(()=>{const h=c.current;h!==a&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=a},[a,n])}const l=x.useCallback(c=>{var h;if(a){const d=ex(c)?c(t):c;d!==t&&((h=o.current)==null||h.call(o,d))}else u(c)},[a,t,u,o]);return[s,l]}function Q2({defaultProp:t,onChange:e}){const[r,n]=x.useState(t),i=x.useRef(r),u=x.useRef(e);return Z2(()=>{u.current=e},[e]),x.useEffect(()=>{var o;i.current!==r&&((o=u.current)==null||o.call(u,r),i.current=r)},[r,i]),[r,n,u]}function ex(t){return typeof t=="function"}var tx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rx="VisuallyHidden",jc=x.forwardRef((t,e)=>p.jsx(je.span,{...t,ref:e,style:{...tx,...t.style}}));jc.displayName=rx;var nx=jc,[hi]=si("Tooltip",[xc]),bi=xc(),_c="TooltipProvider",ix=700,yu="tooltip.open",[ux,To]=hi(_c),Pc=t=>{const{__scopeTooltip:e,delayDuration:r=ix,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:u}=t,o=x.useRef(!0),a=x.useRef(!1),s=x.useRef(0);return x.useEffect(()=>{const l=s.current;return()=>window.clearTimeout(l)},[]),p.jsx(ux,{scope:e,isOpenDelayedRef:o,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(s.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.current=!0,n)},[n]),isPointerInTransitRef:a,onPointerInTransitChange:x.useCallback(l=>{a.current=l},[]),disableHoverableContent:i,children:u})};Pc.displayName=_c;var jr="Tooltip",[ox,gi]=hi(jr),kc=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:i,onOpenChange:u,disableHoverableContent:o,delayDuration:a}=t,s=To(jr,t.__scopeTooltip),l=bi(e),[c,h]=x.useState(null),d=uc(),f=x.useRef(0),g=o??s.disableHoverableContent,m=a??s.delayDuration,b=x.useRef(!1),[y,v]=Eo({prop:n,defaultProp:i??!1,onChange:R=>{R?(s.onOpen(),document.dispatchEvent(new CustomEvent(yu))):s.onClose(),u==null||u(R)},caller:jr}),E=x.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),C=x.useCallback(()=>{window.clearTimeout(f.current),f.current=0,b.current=!1,v(!0)},[v]),N=x.useCallback(()=>{window.clearTimeout(f.current),f.current=0,v(!1)},[v]),k=x.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{b.current=!0,v(!0),f.current=0},m)},[m,v]);return x.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),p.jsx(z2,{...l,children:p.jsx(ox,{scope:e,contentId:d,open:y,stateAttribute:E,trigger:c,onTriggerChange:h,onTriggerEnter:x.useCallback(()=>{s.isOpenDelayedRef.current?k():C()},[s.isOpenDelayedRef,k,C]),onTriggerLeave:x.useCallback(()=>{g?N():(window.clearTimeout(f.current),f.current=0)},[N,g]),onOpen:C,onClose:N,disableHoverableContent:g,children:r})})};kc.displayName=jr;var vu="TooltipTrigger",Rc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=gi(vu,r),u=To(vu,r),o=bi(r),a=x.useRef(null),s=qe(e,a,i.onTriggerChange),l=x.useRef(!1),c=x.useRef(!1),h=x.useCallback(()=>l.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(U2,{asChild:!0,...o,children:p.jsx(je.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:s,onPointerMove:Ce(t.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!u.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Ce(t.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Ce(t.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ce(t.onFocus,()=>{l.current||i.onOpen()}),onBlur:Ce(t.onBlur,i.onClose),onClick:Ce(t.onClick,i.onClose)})})});Rc.displayName=vu;var ax="TooltipPortal",[P4,sx]=hi(ax,{forceMount:void 0}),zt="TooltipContent",Ic=x.forwardRef((t,e)=>{const r=sx(zt,t.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...u}=t,o=gi(zt,t.__scopeTooltip);return p.jsx(pi,{present:n||o.open,children:o.disableHoverableContent?p.jsx(Dc,{side:i,...u,ref:e}):p.jsx(lx,{side:i,...u,ref:e})})}),lx=x.forwardRef((t,e)=>{const r=gi(zt,t.__scopeTooltip),n=To(zt,t.__scopeTooltip),i=x.useRef(null),u=qe(e,i),[o,a]=x.useState(null),{trigger:s,onClose:l}=r,c=i.current,{onPointerInTransitChange:h}=n,d=x.useCallback(()=>{a(null),h(!1)},[h]),f=x.useCallback((g,m)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},v=hx(y,b.getBoundingClientRect()),E=bx(y,v),C=gx(m.getBoundingClientRect()),N=yx([...E,...C]);a(N),h(!0)},[h]);return x.useEffect(()=>()=>d(),[d]),x.useEffect(()=>{if(s&&c){const g=b=>f(b,c),m=b=>f(b,s);return s.addEventListener("pointerleave",g),c.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",m)}}},[s,c,f,d]),x.useEffect(()=>{if(o){const g=m=>{const b=m.target,y={x:m.clientX,y:m.clientY},v=(s==null?void 0:s.contains(b))||(c==null?void 0:c.contains(b)),E=!mx(y,o);v?d():E&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,c,o,l,d]),p.jsx(Dc,{...t,ref:u})}),[cx,dx]=hi(jr,{isInside:!1}),fx=K2("TooltipContent"),Dc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:u,onPointerDownOutside:o,...a}=t,s=gi(zt,r),l=bi(r),{onClose:c}=s;return x.useEffect(()=>(document.addEventListener(yu,c),()=>document.removeEventListener(yu,c)),[c]),x.useEffect(()=>{if(s.trigger){const h=d=>{const f=d.target;f!=null&&f.contains(s.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[s.trigger,c]),p.jsx(nc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(V2,{"data-state":s.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(fx,{children:n}),p.jsx(cx,{scope:r,isInside:!0,children:p.jsx(nx,{id:s.contentId,role:"tooltip",children:i||n})})]})})});Ic.displayName=zt;var Lc="TooltipArrow",px=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=bi(r);return dx(Lc,r).isInside?null:p.jsx(W2,{...i,...n,ref:e})});px.displayName=Lc;function hx(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),u=Math.abs(e.left-t.x);switch(Math.min(r,n,i,u)){case u:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function bx(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function gx(t){const{top:e,right:r,bottom:n,left:i}=t;return[{x:i,y:e},{x:r,y:e},{x:r,y:n},{x:i,y:n}]}function mx(t,e){const{x:r,y:n}=t;let i=!1;for(let u=0,o=e.length-1;u<e.length;o=u++){const a=e[u],s=e[o],l=a.x,c=a.y,h=s.x,d=s.y;c>n!=d>n&&r<(h-l)*(n-c)/(d-c)+l&&(i=!i)}return i}function yx(t){const e=t.slice();return e.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),vx(e)}function vx(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const i=t[n];for(;e.length>=2;){const u=e[e.length-1],o=e[e.length-2];if((u.x-o.x)*(i.y-o.y)>=(u.y-o.y)*(i.x-o.x))e.pop();else break}e.push(i)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const i=t[n];for(;r.length>=2;){const u=r[r.length-1],o=r[r.length-2];if((u.x-o.x)*(i.y-o.y)>=(u.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var xx=Pc,wx=kc,Sx=Rc,Mc=Ic;const _r=xx,Ut=wx,Vt=Sx,Ct=x.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Mc,{ref:n,sideOffset:e,className:ye("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Ct.displayName=Mc.displayName;const $t={mobile:{icon:Yu,label:"Mobile"},tablet:{icon:Ju,label:"Tablet"},small:{icon:Xu,label:"Small Desktop"},desktop:{icon:Ku,label:"Desktop"}},q=({title:t,children:e,defaultOpen:r=!0})=>{const[n,i]=j.useState(r);return p.jsxs("div",{className:"border-b border-border pb-3",children:[p.jsxs("button",{onClick:()=>i(!n),className:"flex items-center justify-between w-full py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",children:[t,n?p.jsx(Wu,{className:"h-3 w-3"}):p.jsx(Gu,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},ae=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u="px"})=>p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:o=>r(parseInt(o.target.value)||0),min:n,max:i,className:"w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right"}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]})]}),Ln=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="px",defaultValue:o=16})=>{const a=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??o},h=()=>c[a]??c.desktop??o,d=(m,b)=>{const y={...c,[m]:b};r(y)},f=m=>{d(a,m)},g=Ee.some(m=>m!=="desktop"&&c[m]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx(_r,{children:p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!s),className:`p-1 rounded transition-colors ${s||g?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:j.createElement($t[a].icon,{className:"h-3 w-3"})})}),p.jsx(Ct,{side:"left",children:p.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),s?p.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Ee.map(m=>{const b=$t[m].icon,y=c[m],v=y===void 0?Ee.find(E=>Ee.indexOf(E)>Ee.indexOf(m)&&c[E]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(_r,{children:p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${m===a?"bg-primary/10":""}`,children:p.jsx(b,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Ct,{side:"left",children:p.jsx("p",{children:$t[m].label})})]})}),p.jsx("input",{type:"number",value:y??"",placeholder:v?`${c[v]??o}`:"",onChange:E=>{const C=E.target.value===""?void 0:parseInt(E.target.value)||0;d(m,C)},min:n,max:i,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${y===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]},m)})}):p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:h(),onChange:m=>f(parseInt(m.target.value)||0),min:n,max:i,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-right"}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:u})]})]})},xe=({label:t,values:e,onChange:r})=>{const[n,i]=j.useState(!0),u=(o,a)=>{r(n?{top:a,right:a,bottom:a,left:a}:{...e,[o]:a})};return p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("button",{onClick:()=>i(!n),className:`text-xs px-2 py-0.5 rounded ${n?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:n?"Linked":"Individual"})]}),n?p.jsx("input",{type:"number",value:e.top,onChange:o=>u("top",parseInt(o.target.value)||0),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"grid grid-cols-4 gap-1",children:["top","right","bottom","left"].map(o=>p.jsxs("div",{className:"text-center",children:[p.jsx("input",{type:"number",value:e[o],onChange:a=>u(o,parseInt(a.target.value)||0),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"}),p.jsx("span",{className:"text-[10px] text-muted-foreground",children:o[0].toUpperCase()})]},o))})]})},J=({label:t,value:e,options:r,onChange:n})=>p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("select",{value:e,onChange:i=>n(i.target.value),className:"px-2 py-1 text-xs rounded border border-input bg-background",children:r.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))})]}),Ae=({label:t,value:e,onChange:r})=>p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{type:"color",value:e!=null&&e.startsWith("#")?e:"#000000",onChange:n=>r(n.target.value),className:"w-6 h-6 rounded border border-input cursor-pointer"}),p.jsx("input",{type:"text",value:e||"",onChange:n=>r(n.target.value),className:"w-20 px-2 py-1 text-xs rounded border border-input bg-background",placeholder:"#000000"})]})]}),Le=({label:t,value:e,options:r,onChange:n})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex gap-1",children:r.map(i=>p.jsx("button",{onClick:()=>n(i.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===i.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:i.label,children:i.icon||i.label},i.value))})]}),pt=({label:t,value:e,onChange:r,multiline:n=!1})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),n?p.jsx("textarea",{value:e||"",onChange:i=>r(i.target.value),className:"w-full p-2 text-xs rounded border border-input bg-background resize-none",rows:3}):p.jsx("input",{type:"text",value:e||"",onChange:i=>r(i.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),mi=({label:t,value:e,onChange:r,min:n=0,max:i=100,unit:u=""})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,u]})]}),p.jsx("input",{type:"range",value:e,onChange:o=>r(parseInt(o.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]}),Mn=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="",defaultValue:o=50})=>{const a=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??o},h=()=>c[a]??c.desktop??o,d=(g,m)=>{const b={...c,[g]:m};r(b)},f=Ee.some(g=>g!=="desktop"&&c[g]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("span",{className:"text-xs text-muted-foreground",children:[h(),u]}),p.jsx(_r,{children:p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!s),className:`p-1 rounded transition-colors ${s||f?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:j.createElement($t[a].icon,{className:"h-3 w-3"})})}),p.jsx(Ct,{side:"left",children:p.jsx("p",{children:s?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),s?p.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Ee.map(g=>{const m=$t[g].icon,b=c[g];return p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:`p-1 rounded ${g===a?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})}),p.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:$t[g].label}),p.jsxs("span",{className:"text-xs",children:[b??"-",b!==void 0?u:""]})]}),p.jsx("input",{type:"range",value:b??c.desktop??o,onChange:y=>d(g,parseInt(y.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]},g)})}):p.jsx("input",{type:"range",value:h(),onChange:g=>d(a,parseInt(g.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]})},Ao=()=>{const{actions:{setProp:t},props:e}=ee(i=>({props:i.data.props})),r=typeof e.padding=="object"?e.padding:{top:e.padding||16,right:e.padding||16,bottom:e.padding||16,left:e.padding||16},n=typeof e.margin=="object"?e.margin:{top:e.margin||0,right:e.margin||0,bottom:e.margin||0,left:e.margin||0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Layout",defaultOpen:!0,children:[p.jsx(J,{label:"Display",value:e.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:i=>t(u=>u.display=i)}),e.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(Le,{label:"Direction",value:e.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:i=>t(u=>u.flexDirection=i)}),p.jsx(J,{label:"Justify",value:e.justifyContent||"flex-start",options:[{value:"flex-start",label:"Start"},{value:"center",label:"Center"},{value:"flex-end",label:"End"},{value:"space-between",label:"Between"}],onChange:i=>t(u=>u.justifyContent=i)}),p.jsx(ae,{label:"Gap",value:e.gap||0,onChange:i=>t(u=>u.gap=i),max:64})]})]}),p.jsxs(q,{title:"Spacing",defaultOpen:!0,children:[p.jsx(xe,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),p.jsx(xe,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]}),p.jsxs(q,{title:"Background",defaultOpen:!1,children:[p.jsx(Ae,{label:"Color",value:e.backgroundColor||"transparent",onChange:i=>t(u=>u.backgroundColor=i)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:e.backgroundImage||"",onChange:i=>t(u=>u.backgroundImage=i.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(J,{label:"Image Size",value:e.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:i=>t(u=>u.backgroundSize=i)}),p.jsx(J,{label:"Image Repeat",value:e.backgroundRepeat||"no-repeat",options:[{value:"no-repeat",label:"No Repeat"},{value:"repeat",label:"Repeat"},{value:"repeat-x",label:"Repeat X"},{value:"repeat-y",label:"Repeat Y"}],onChange:i=>t(u=>u.backgroundRepeat=i)})]}),p.jsxs(q,{title:"Border",defaultOpen:!1,children:[p.jsx(ae,{label:"Radius",value:e.borderRadius||8,onChange:i=>t(u=>u.borderRadius=i),max:50}),p.jsx(ae,{label:"Width",value:e.borderWidth||1,onChange:i=>t(u=>u.borderWidth=i),max:10}),p.jsx(Ae,{label:"Color",value:e.borderColor||"transparent",onChange:i=>t(u=>u.borderColor=i)})]})]})},Hr=({className:t,backgroundColor:e="transparent",backgroundImage:r="",backgroundSize:n="cover",backgroundRepeat:i="no-repeat",padding:u={top:16,right:16,bottom:16,left:16},margin:o={top:0,right:0,bottom:0,left:0},width:a="auto",minHeight:s=100,maxWidth:l="none",display:c="block",flexDirection:h="column",justifyContent:d="flex-start",alignItems:f="stretch",gap:g=0,borderRadius:m=8,borderWidth:b=1,borderColor:y="transparent",borderStyle:v="dashed",boxShadow:E="none",children:C})=>{const{connectors:{connect:N,drag:k},selected:R}=ee(L=>({selected:L.events.selected})),D=typeof u=="object"?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:`${u}px`,M=typeof o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}px`;return p.jsx("div",{ref:L=>{L&&N(k(L))},style:{backgroundColor:e,backgroundImage:r?`url(${r})`:"none",backgroundSize:n,backgroundRepeat:i,padding:D,margin:M,width:a==="auto"?"100%":a,minHeight:`${s}px`,maxWidth:l==="none"?"none":`${l}px`,display:c,flexDirection:c==="flex"?h:void 0,justifyContent:c==="flex"?d:void 0,alignItems:c==="flex"?f:void 0,gap:c==="flex"?`${g}px`:void 0,borderRadius:`${m}px`,borderWidth:`${b}px`,borderColor:y,borderStyle:v,boxShadow:E==="none"?"none":E},className:Kt(`min-h-2.5 ${R?"border border-blue-500":""}`,"w-full flex justify-center",t),children:C})};Hr.craft={props:{backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:Ao}};function xs(t=12){const e="abcdefghijklmnopqrstuvwxyz",r=e+"0123456789";let n=e[Math.floor(Math.random()*e.length)];for(let i=1;i<t;i++)n+=r[Math.floor(Math.random()*r.length)];return n}const yi=({children:t,className:e})=>{const{connectors:{connect:r,drag:n},selected:i}=ee(a=>({selected:a.events.selected})),u=xs(),o=xs();return p.jsx("div",{ref:a=>{a&&r(n(a))},className:Kt(`min-h-2.5 ${i?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(Ht,{is:Hr,id:`section-wrapper-${u}`,children:p.jsx(Ht,{is:Fr,canvas:!0,id:`section-container-${o}`,children:t})})})};yi.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Fr=({className:t,backgroundColor:e="transparent",backgroundImage:r="",backgroundSize:n="cover",backgroundRepeat:i="no-repeat",padding:u={top:16,right:16,bottom:16,left:16},margin:o={top:0,right:0,bottom:0,left:0},width:a="auto",minHeight:s=100,maxWidth:l="none",display:c="block",flexDirection:h="column",justifyContent:d="flex-start",alignItems:f="stretch",gap:g=0,borderRadius:m=8,borderWidth:b=1,borderColor:y="transparent",borderStyle:v="dashed",boxShadow:E="none",children:C})=>{const{connectors:{connect:N,drag:k},selected:R}=ee(L=>({selected:L.events.selected})),D=typeof u=="object"?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:`${u}px`,M=typeof o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}px`;return p.jsx("div",{ref:L=>{L&&N(k(L))},style:{backgroundColor:e,backgroundImage:r?`url(${r})`:"none",backgroundSize:n,backgroundRepeat:i,padding:D,margin:M,width:a==="auto"?"100%":a,minHeight:`${s}px`,maxWidth:l==="none"?"none":`${l}px`,display:c,flexDirection:c==="flex"?h:void 0,justifyContent:c==="flex"?d:void 0,alignItems:c==="flex"?f:void 0,gap:c==="flex"?`${g}px`:void 0,borderRadius:`${m}px`,borderWidth:`${b}px`,borderColor:y,borderStyle:v,boxShadow:E==="none"?"none":E},className:`min-h-[50px] w-full ${R?"border border-blue-500":""}`,children:p.jsx(yi,{className:t||"",children:C})})};Fr.craft={isCanvas:!0,props:{backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},displayName:"Container",related:{settings:Ao},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const Cx=/\{\{\s*([\w.]+)\s*\}\}/g,Ex=(t,e)=>{if(!t||!e)return;const r=e.split(".");let n=t;for(const i of r){if(n==null)return;n=n[i]}return n},$n=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,i)=>{const u=Ex(e,i);return u==null?n:String(u)})},Tx=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),Ax=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(Cx.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},Nx={athlete:{name:"Full name (from API)",bibId:"Bib number",firstName:"First name",lastName:"Last name",fullName:"Full name (firstName + lastName)",raceTime:"Race finish time",email:"Email address",phone:"Phone number"},event:{name:"Event name",slug:"Event URL slug",date:"Event date"},organization:{name:"Organization name",website:"Organization website"}},Ox={athlete:{label:"Athlete",variables:[{key:"athlete.name",description:"Full name"},{key:"athlete.bibId",description:"Bib number"},{key:"athlete.firstName",description:"First name"},{key:"athlete.lastName",description:"Last name"},{key:"athlete.fullName",description:"First + Last name"},{key:"athlete.raceTime",description:"Race finish time"},{key:"athlete.email",description:"Email address"},{key:"athlete.phone",description:"Phone number"}]},event:{label:"Event",variables:[{key:"event.name",description:"Event name"},{key:"event.slug",description:"URL slug"},{key:"event.date",description:"Event date"}]},organization:{label:"Organization",variables:[{key:"organization.name",description:"Organization name"},{key:"organization.website",description:"Website URL"}]}},jx=({variable:t,onCopy:e})=>{const[r,n]=j.useState(!1),i=()=>{navigator.clipboard.writeText(`{{ ${t.key} }}`),n(!0),e==null||e(`{{ ${t.key} }}`),setTimeout(()=>n(!1),1500)};return p.jsxs("button",{onClick:i,className:"w-full flex items-center justify-between gap-2 px-2 py-1.5 text-left hover:bg-muted rounded-md transition-colors group",children:[p.jsxs("div",{className:"min-w-0 flex-1",children:[p.jsx("code",{className:"text-xs font-mono text-primary bg-primary/10 px-1 py-0.5 rounded",children:`{{ ${t.key} }}`}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:t.description})]}),p.jsx("div",{className:"shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:r?p.jsx(Vu,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(Q0,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},_x=({category:t,data:e,defaultOpen:r=!1})=>{const[n,i]=j.useState(r);return p.jsxs("div",{className:"border-b border-border last:border-0",children:[p.jsxs("button",{onClick:()=>i(!n),className:"w-full flex items-center gap-2 py-2 text-left hover:bg-muted/50 transition-colors",children:[n?p.jsx(Wu,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Gu,{className:"h-3.5 w-3.5 text-muted-foreground"}),p.jsx("span",{className:"text-xs font-medium",children:e.label}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",e.variables.length,")"]})]}),n&&p.jsx("div",{className:"pb-2 space-y-0.5",children:e.variables.map(u=>p.jsx(jx,{variable:u},u.key))})]})},$c=({className:t})=>p.jsxs("div",{className:ye("rounded-lg border border-border bg-muted/30",t),children:[p.jsxs("div",{className:"px-3 py-2 border-b border-border",children:[p.jsx("h4",{className:"text-xs font-semibold",children:"Dynamic Variables"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Click to copy, then paste in your text"})]}),p.jsx("div",{className:"px-2",children:Object.entries(Ox).map(([e,r],n)=>p.jsx(_x,{category:e,data:r,defaultOpen:n===0},e))})]});var Bc={},Pr={},No={},kr={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var jo={};Object.defineProperty(jo,"__esModule",{value:!0});jo.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var xu={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(u){var o="";return u>65535&&(u-=65536,o+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),o+=String.fromCharCode(u),o};function n(u){var o;return u>=55296&&u<=57343||u>1114111?65533:(o=r.get(u))!==null&&o!==void 0?o:u}t.replaceCodePoint=n;function i(u){return(0,t.fromCodePoint)(n(u))}t.default=i})(xu);(function(t){var e=$&&$.__createBinding||(Object.create?function(S,T,_,I){I===void 0&&(I=_);var w=Object.getOwnPropertyDescriptor(T,_);(!w||("get"in w?!T.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return T[_]}}),Object.defineProperty(S,I,w)}:function(S,T,_,I){I===void 0&&(I=_),S[I]=T[_]}),r=$&&$.__setModuleDefault||(Object.create?function(S,T){Object.defineProperty(S,"default",{enumerable:!0,value:T})}:function(S,T){S.default=T}),n=$&&$.__importStar||function(S){if(S&&S.__esModule)return S;var T={};if(S!=null)for(var _ in S)_!=="default"&&Object.prototype.hasOwnProperty.call(S,_)&&e(T,S,_);return r(T,S),T},i=$&&$.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var u=i(Oo);t.htmlDecodeTree=u.default;var o=i(jo);t.xmlDecodeTree=o.default;var a=n(xu);t.decodeCodePoint=a.default;var s=xu;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return s.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return s.fromCodePoint}});var l;(function(S){S[S.NUM=35]="NUM",S[S.SEMI=59]="SEMI",S[S.EQUALS=61]="EQUALS",S[S.ZERO=48]="ZERO",S[S.NINE=57]="NINE",S[S.LOWER_A=97]="LOWER_A",S[S.LOWER_F=102]="LOWER_F",S[S.LOWER_X=120]="LOWER_X",S[S.LOWER_Z=122]="LOWER_Z",S[S.UPPER_A=65]="UPPER_A",S[S.UPPER_F=70]="UPPER_F",S[S.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(S){S[S.VALUE_LENGTH=49152]="VALUE_LENGTH",S[S.BRANCH_LENGTH=16256]="BRANCH_LENGTH",S[S.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function d(S){return S>=l.ZERO&&S<=l.NINE}function f(S){return S>=l.UPPER_A&&S<=l.UPPER_F||S>=l.LOWER_A&&S<=l.LOWER_F}function g(S){return S>=l.UPPER_A&&S<=l.UPPER_Z||S>=l.LOWER_A&&S<=l.LOWER_Z||d(S)}function m(S){return S===l.EQUALS||g(S)}var b;(function(S){S[S.EntityStart=0]="EntityStart",S[S.NumericStart=1]="NumericStart",S[S.NumericDecimal=2]="NumericDecimal",S[S.NumericHex=3]="NumericHex",S[S.NamedEntity=4]="NamedEntity"})(b||(b={}));var y;(function(S){S[S.Legacy=0]="Legacy",S[S.Strict=1]="Strict",S[S.Attribute=2]="Attribute"})(y=t.DecodingMode||(t.DecodingMode={}));var v=function(){function S(T,_,I){this.decodeTree=T,this.emitCodePoint=_,this.errors=I,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return S.prototype.startEntity=function(T){this.decodeMode=T,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},S.prototype.write=function(T,_){switch(this.state){case b.EntityStart:return T.charCodeAt(_)===l.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart(T,_+1)):(this.state=b.NamedEntity,this.stateNamedEntity(T,_));case b.NumericStart:return this.stateNumericStart(T,_);case b.NumericDecimal:return this.stateNumericDecimal(T,_);case b.NumericHex:return this.stateNumericHex(T,_);case b.NamedEntity:return this.stateNamedEntity(T,_)}},S.prototype.stateNumericStart=function(T,_){return _>=T.length?-1:(T.charCodeAt(_)|c)===l.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex(T,_+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal(T,_))},S.prototype.addToNumericResult=function(T,_,I,w){if(_!==I){var O=I-_;this.result=this.result*Math.pow(w,O)+parseInt(T.substr(_,O),w),this.consumed+=O}},S.prototype.stateNumericHex=function(T,_){for(var I=_;_<T.length;){var w=T.charCodeAt(_);if(d(w)||f(w))_+=1;else return this.addToNumericResult(T,I,_,16),this.emitNumericEntity(w,3)}return this.addToNumericResult(T,I,_,16),-1},S.prototype.stateNumericDecimal=function(T,_){for(var I=_;_<T.length;){var w=T.charCodeAt(_);if(d(w))_+=1;else return this.addToNumericResult(T,I,_,10),this.emitNumericEntity(w,2)}return this.addToNumericResult(T,I,_,10),-1},S.prototype.emitNumericEntity=function(T,_){var I;if(this.consumed<=_)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,a.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},S.prototype.stateNamedEntity=function(T,_){for(var I=this.decodeTree,w=I[this.treeIndex],O=(w&h.VALUE_LENGTH)>>14;_<T.length;_++,this.excess++){var A=T.charCodeAt(_);if(this.treeIndex=C(I,w,this.treeIndex+Math.max(1,O),A),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(O===0||m(A))?0:this.emitNotTerminatedNamedEntity();if(w=I[this.treeIndex],O=(w&h.VALUE_LENGTH)>>14,O!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},S.prototype.emitNotTerminatedNamedEntity=function(){var T,_=this,I=_.result,w=_.decodeTree,O=(w[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},S.prototype.emitNamedEntityData=function(T,_,I){var w=this.decodeTree;return this.emitCodePoint(_===1?w[T]&~h.VALUE_LENGTH:w[T+1],I),_===3&&this.emitCodePoint(w[T+2],I),I},S.prototype.end=function(){var T;switch(this.state){case b.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}},S}();t.EntityDecoder=v;function E(S){var T="",_=new v(S,function(I){return T+=(0,a.fromCodePoint)(I)});return function(w,O){for(var A=0,P=0;(P=w.indexOf("&",P))>=0;){T+=w.slice(A,P),_.startEntity(O);var B=_.write(w,P+1);if(B<0){A=P+_.end();break}A=P+B,P=B===0?A+1:A}var U=T+w.slice(A);return T="",U}}function C(S,T,_,I){var w=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(w===0)return O!==0&&I===O?_:-1;if(O){var A=I-O;return A<0||A>=w?-1:S[_+A]-1}for(var P=_,B=P+w-1;P<=B;){var U=P+B>>>1,ce=S[U];if(ce<I)P=U+1;else if(ce>I)B=U-1;else return S[U+w]}return-1}t.determineBranch=C;var N=E(u.default),k=E(o.default);function R(S,T){return T===void 0&&(T=y.Legacy),N(S,T)}t.decodeHTML=R;function D(S){return N(S,y.Attribute)}t.decodeHTMLAttribute=D;function M(S){return N(S,y.Strict)}t.decodeHTMLStrict=M;function L(S){return k(S,y.Strict)}t.decodeXML=L})(kr);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=kr,r;(function(d){d[d.Tab=9]="Tab",d[d.NewLine=10]="NewLine",d[d.FormFeed=12]="FormFeed",d[d.CarriageReturn=13]="CarriageReturn",d[d.Space=32]="Space",d[d.ExclamationMark=33]="ExclamationMark",d[d.Number=35]="Number",d[d.Amp=38]="Amp",d[d.SingleQuote=39]="SingleQuote",d[d.DoubleQuote=34]="DoubleQuote",d[d.Dash=45]="Dash",d[d.Slash=47]="Slash",d[d.Zero=48]="Zero",d[d.Nine=57]="Nine",d[d.Semi=59]="Semi",d[d.Lt=60]="Lt",d[d.Eq=61]="Eq",d[d.Gt=62]="Gt",d[d.Questionmark=63]="Questionmark",d[d.UpperA=65]="UpperA",d[d.LowerA=97]="LowerA",d[d.UpperF=70]="UpperF",d[d.LowerF=102]="LowerF",d[d.UpperZ=90]="UpperZ",d[d.LowerZ=122]="LowerZ",d[d.LowerX=120]="LowerX",d[d.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(d){d[d.Text=1]="Text",d[d.BeforeTagName=2]="BeforeTagName",d[d.InTagName=3]="InTagName",d[d.InSelfClosingTag=4]="InSelfClosingTag",d[d.BeforeClosingTagName=5]="BeforeClosingTagName",d[d.InClosingTagName=6]="InClosingTagName",d[d.AfterClosingTagName=7]="AfterClosingTagName",d[d.BeforeAttributeName=8]="BeforeAttributeName",d[d.InAttributeName=9]="InAttributeName",d[d.AfterAttributeName=10]="AfterAttributeName",d[d.BeforeAttributeValue=11]="BeforeAttributeValue",d[d.InAttributeValueDq=12]="InAttributeValueDq",d[d.InAttributeValueSq=13]="InAttributeValueSq",d[d.InAttributeValueNq=14]="InAttributeValueNq",d[d.BeforeDeclaration=15]="BeforeDeclaration",d[d.InDeclaration=16]="InDeclaration",d[d.InProcessingInstruction=17]="InProcessingInstruction",d[d.BeforeComment=18]="BeforeComment",d[d.CDATASequence=19]="CDATASequence",d[d.InSpecialComment=20]="InSpecialComment",d[d.InCommentLike=21]="InCommentLike",d[d.BeforeSpecialS=22]="BeforeSpecialS",d[d.SpecialStartSequence=23]="SpecialStartSequence",d[d.InSpecialTag=24]="InSpecialTag",d[d.BeforeEntity=25]="BeforeEntity",d[d.BeforeNumericEntity=26]="BeforeNumericEntity",d[d.InNamedEntity=27]="InNamedEntity",d[d.InNumericEntity=28]="InNumericEntity",d[d.InHexEntity=29]="InHexEntity"})(n||(n={}));function i(d){return d===r.Space||d===r.NewLine||d===r.Tab||d===r.FormFeed||d===r.CarriageReturn}function u(d){return d===r.Slash||d===r.Gt||i(d)}function o(d){return d>=r.Zero&&d<=r.Nine}function a(d){return d>=r.LowerA&&d<=r.LowerZ||d>=r.UpperA&&d<=r.UpperZ}function s(d){return d>=r.UpperA&&d<=r.UpperF||d>=r.LowerA&&d<=r.LowerF}var l;(function(d){d[d.NoValue=0]="NoValue",d[d.Unquoted=1]="Unquoted",d[d.Single=2]="Single",d[d.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function d(f,g){var m=f.xmlMode,b=m===void 0?!1:m,y=f.decodeEntities,v=y===void 0?!0:y;this.cbs=g,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=b,this.decodeEntities=v,this.entityTrie=b?e.xmlDecodeTree:e.htmlDecodeTree}return d.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},d.prototype.write=function(f){this.offset+=this.buffer.length,this.buffer=f,this.parse()},d.prototype.end=function(){this.running&&this.finish()},d.prototype.pause=function(){this.running=!1},d.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},d.prototype.getIndex=function(){return this.index},d.prototype.getSectionStart=function(){return this.sectionStart},d.prototype.stateText=function(f){f===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&f===r.Amp&&(this.state=n.BeforeEntity)},d.prototype.stateSpecialStartSequence=function(f){var g=this.sequenceIndex===this.currentSequence.length,m=g?u(f):(f|32)===this.currentSequence[this.sequenceIndex];if(!m)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(f)},d.prototype.stateInSpecialTag=function(f){if(this.sequenceIndex===this.currentSequence.length){if(f===r.Gt||i(f)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var m=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=m}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(f);return}this.sequenceIndex=0}(f|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&f===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(f===r.Lt)},d.prototype.stateCDATASequence=function(f){f===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(f))},d.prototype.fastForwardTo=function(f){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===f)return!0;return this.index=this.buffer.length+this.offset-1,!1},d.prototype.stateInCommentLike=function(f){f===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):f!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},d.prototype.isTagStartChar=function(f){return this.xmlMode?!u(f):a(f)},d.prototype.startSpecial=function(f,g){this.isSpecial=!0,this.currentSequence=f,this.sequenceIndex=g,this.state=n.SpecialStartSequence},d.prototype.stateBeforeTagName=function(f){if(f===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(f===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(f)){var g=f|32;this.sectionStart=this.index,!this.xmlMode&&g===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&g===c.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else f===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(f))},d.prototype.stateInTagName=function(f){u(f)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f))},d.prototype.stateBeforeClosingTagName=function(f){i(f)||(f===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(f)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},d.prototype.stateInClosingTagName=function(f){(f===r.Gt||i(f))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(f))},d.prototype.stateAfterClosingTagName=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeAttributeName=function(f){f===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):f===r.Slash?this.state=n.InSelfClosingTag:i(f)||(this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateInSelfClosingTag=function(f){f===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):i(f)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f))},d.prototype.stateInAttributeName=function(f){(f===r.Eq||u(f))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(f))},d.prototype.stateAfterAttributeName=function(f){f===r.Eq?this.state=n.BeforeAttributeValue:f===r.Slash||f===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f)):i(f)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},d.prototype.stateBeforeAttributeValue=function(f){f===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):f===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):i(f)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(f))},d.prototype.handleInAttributeValue=function(f,g){f===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===r.DoubleQuote?l.Double:l.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&f===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateInAttributeValueDoubleQuotes=function(f){this.handleInAttributeValue(f,r.DoubleQuote)},d.prototype.stateInAttributeValueSingleQuotes=function(f){this.handleInAttributeValue(f,r.SingleQuote)},d.prototype.stateInAttributeValueNoQuotes=function(f){i(f)||f===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(f)):this.decodeEntities&&f===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},d.prototype.stateBeforeDeclaration=function(f){f===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=f===r.Dash?n.BeforeComment:n.InDeclaration},d.prototype.stateInDeclaration=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateInProcessingInstruction=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeComment=function(f){f===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},d.prototype.stateInSpecialComment=function(f){(f===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},d.prototype.stateBeforeSpecialS=function(f){var g=f|32;g===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):g===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(f))},d.prototype.stateBeforeEntity=function(f){this.entityExcess=1,this.entityResult=0,f===r.Number?this.state=n.BeforeNumericEntity:f===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(f))},d.prototype.stateInNamedEntity=function(f){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,f),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var g=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(g){var m=(g>>14)-1;if(!this.allowLegacyEntity()&&f!==r.Semi)this.trieIndex+=m;else{var b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.entityResult=this.trieIndex,this.trieIndex+=m,this.entityExcess=0,this.sectionStart=this.index+1,m===0&&this.emitNamedEntity()}}},d.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var f=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(f){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},d.prototype.stateBeforeNumericEntity=function(f){(f|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(f))},d.prototype.emitNumericEntity=function(f){var g=this.index-this.entityExcess-1,m=g+2+ +(this.state===n.InHexEntity);m!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(f),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},d.prototype.stateInNumericEntity=function(f){f===r.Semi?this.emitNumericEntity(!0):o(f)?(this.entityResult=this.entityResult*10+(f-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.stateInHexEntity=function(f){f===r.Semi?this.emitNumericEntity(!0):o(f)?(this.entityResult=this.entityResult*16+(f-r.Zero),this.entityExcess++):s(f)?(this.entityResult=this.entityResult*16+((f|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},d.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},d.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},d.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},d.prototype.parse=function(){for(;this.shouldContinue();){var f=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(f);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(f);break}case n.InSpecialTag:{this.stateInSpecialTag(f);break}case n.CDATASequence:{this.stateCDATASequence(f);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(f);break}case n.InAttributeName:{this.stateInAttributeName(f);break}case n.InCommentLike:{this.stateInCommentLike(f);break}case n.InSpecialComment:{this.stateInSpecialComment(f);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(f);break}case n.InTagName:{this.stateInTagName(f);break}case n.InClosingTagName:{this.stateInClosingTagName(f);break}case n.BeforeTagName:{this.stateBeforeTagName(f);break}case n.AfterAttributeName:{this.stateAfterAttributeName(f);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(f);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(f);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(f);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(f);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(f);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(f);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(f);break}case n.InDeclaration:{this.stateInDeclaration(f);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(f);break}case n.BeforeComment:{this.stateBeforeComment(f);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(f);break}case n.InNamedEntity:{this.stateInNamedEntity(f);break}case n.BeforeEntity:{this.stateBeforeEntity(f);break}case n.InHexEntity:{this.stateInHexEntity(f);break}case n.InNumericEntity:{this.stateInNumericEntity(f);break}default:this.stateBeforeNumericEntity(f)}this.index++}this.cleanup()},d.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},d.prototype.handleTrailingData=function(){var f=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,f,0):this.cbs.oncomment(this.sectionStart,f,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,f)},d.prototype.emitPartial=function(f,g){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(f,g):this.cbs.ontext(f,g)},d.prototype.emitCodePoint=function(f){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(f):this.cbs.ontextentity(f)},d}();t.default=h})(No);var Px=$&&$.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),kx=$&&$.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Rx=$&&$.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Px(e,t,r);return kx(e,t),e};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.Parser=void 0;var nn=Rx(No),ws=kr,kt=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Z=new Set(["p"]),Ss=new Set(["thead","tbody"]),Cs=new Set(["dd","dt"]),Es=new Set(["rt","rp"]),Ix=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Z],["h1",Z],["h2",Z],["h3",Z],["h4",Z],["h5",Z],["h6",Z],["select",kt],["input",kt],["output",kt],["button",kt],["datalist",kt],["textarea",kt],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Cs],["dt",Cs],["address",Z],["article",Z],["aside",Z],["blockquote",Z],["details",Z],["div",Z],["dl",Z],["fieldset",Z],["figcaption",Z],["figure",Z],["footer",Z],["form",Z],["header",Z],["hr",Z],["main",Z],["nav",Z],["ol",Z],["pre",Z],["section",Z],["table",Z],["ul",Z],["rt",Es],["rp",Es],["tbody",Ss],["tfoot",Ss]]),Dx=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Ts=new Set(["math","svg"]),As=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Lx=/\s|\//,Mx=function(){function t(e,r){r===void 0&&(r={});var n,i,u,o,a;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(i=r.lowerCaseAttributeNames)!==null&&i!==void 0?i:!r.xmlMode,this.tokenizer=new((u=r.Tokenizer)!==null&&u!==void 0?u:nn.default)(this.options,this),(a=(o=this.cbs).onparserinit)===null||a===void 0||a.call(o,this)}return t.prototype.ontext=function(e,r){var n,i,u=this.getSlice(e,r);this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,u),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,ws.fromCodePoint)(e)),this.startIndex=i},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Dx.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,i,u;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&Ix.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,a,!0)}this.isVoidElement(e)||(this.stack.push(e),Ts.has(e)?this.foreignContext.push(!0):As.has(e)&&this.foreignContext.push(!1)),(u=(i=this.cbs).onopentagname)===null||u===void 0||u.call(i,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,i,u,o,a,s;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Ts.has(l)||As.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,"br"),(o=(u=this.cbs).onopentag)===null||o===void 0||o.call(u,"br",{},!0),(s=(a=this.cbs).onclosetag)===null||s===void 0||s.call(a,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-c;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,i,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,ws.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,i;this.endIndex=r,(i=(n=this.cbs).onattribute)===null||i===void 0||i.call(n,this.attribname,this.attribvalue,e===nn.QuoteType.Double?'"':e===nn.QuoteType.Single?"'":e===nn.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},t.prototype.getInstructionName=function(e){var r=e.search(Lx),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var i,u,o,a;this.endIndex=r,(u=(i=this.cbs).oncomment)===null||u===void 0||u.call(i,this.getSlice(e,r-n)),(a=(o=this.cbs).oncommentend)===null||a===void 0||a.call(o),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var i,u,o,a,s,l,c,h,d,f;this.endIndex=r;var g=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((u=(i=this.cbs).oncdatastart)===null||u===void 0||u.call(i),(a=(o=this.cbs).ontext)===null||a===void 0||a.call(o,g),(l=(s=this.cbs).oncdataend)===null||l===void 0||l.call(s)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(g,"]]")),(f=(d=this.cbs).oncommentend)===null||f===void 0||f.call(d)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,i;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(n=this.cbs).onparserinit)===null||i===void 0||i.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();Pr.Parser=Mx;var et={},sr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(sr);var z={},ht=$&&$.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),xr=$&&$.__assign||function(){return xr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},xr.apply(this,arguments)};Object.defineProperty(z,"__esModule",{value:!0});z.cloneNode=z.hasChildren=z.isDocument=z.isDirective=z.isComment=z.isText=z.isCDATA=z.isTag=z.Element=z.Document=z.CDATA=z.NodeWithChildren=z.ProcessingInstruction=z.Comment=z.Text=z.DataNode=z.Node=void 0;var be=sr,_o=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),Po(this,e)},t}();z.Node=_o;var vi=function(t){ht(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e}(_o);z.DataNode=vi;var qc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(vi);z.Text=qc;var Hc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(vi);z.Comment=Hc;var Fc=function(t){ht(e,t);function e(r,n){var i=t.call(this,n)||this;return i.name=r,i.type=be.ElementType.Directive,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(vi);z.ProcessingInstruction=Fc;var xi=function(t){ht(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(_o);z.NodeWithChildren=xi;var zc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(xi);z.CDATA=zc;var Uc=function(t){ht(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=be.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(xi);z.Document=Uc;var Vc=function(t){ht(e,t);function e(r,n,i,u){i===void 0&&(i=[]),u===void 0&&(u=r==="script"?be.ElementType.Script:r==="style"?be.ElementType.Style:be.ElementType.Tag);var o=t.call(this,i)||this;return o.name=r,o.attribs=n,o.type=u,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var i,u;return{name:n,value:r.attribs[n],namespace:(i=r["x-attribsNamespace"])===null||i===void 0?void 0:i[n],prefix:(u=r["x-attribsPrefix"])===null||u===void 0?void 0:u[n]}})},enumerable:!1,configurable:!0}),e}(xi);z.Element=Vc;function Wc(t){return(0,be.isTag)(t)}z.isTag=Wc;function Gc(t){return t.type===be.ElementType.CDATA}z.isCDATA=Gc;function Xc(t){return t.type===be.ElementType.Text}z.isText=Xc;function Yc(t){return t.type===be.ElementType.Comment}z.isComment=Yc;function Jc(t){return t.type===be.ElementType.Directive}z.isDirective=Jc;function Kc(t){return t.type===be.ElementType.Root}z.isDocument=Kc;function $x(t){return Object.prototype.hasOwnProperty.call(t,"children")}z.hasChildren=$x;function Po(t,e){e===void 0&&(e=!1);var r;if(Xc(t))r=new qc(t.data);else if(Yc(t))r=new Hc(t.data);else if(Wc(t)){var n=e?Hi(t.children):[],i=new Vc(t.name,xr({},t.attribs),n);n.forEach(function(s){return s.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=xr({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=xr({},t["x-attribsPrefix"])),r=i}else if(Gc(t)){var n=e?Hi(t.children):[],u=new zc(n);n.forEach(function(l){return l.parent=u}),r=u}else if(Kc(t)){var n=e?Hi(t.children):[],o=new Uc(n);n.forEach(function(l){return l.parent=o}),t["x-mode"]&&(o["x-mode"]=t["x-mode"]),r=o}else if(Jc(t)){var a=new Fc(t.name,t.data);t["x-name"]!=null&&(a["x-name"]=t["x-name"],a["x-publicId"]=t["x-publicId"],a["x-systemId"]=t["x-systemId"]),r=a}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}z.cloneNode=Po;function Hi(t){for(var e=t.map(function(n){return Po(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=$&&$.__createBinding||(Object.create?function(a,s,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(s,l);(!h||("get"in h?!s.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,h)}:function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]}),r=$&&$.__exportStar||function(a,s){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&e(s,a,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=sr,i=z;r(z,t);var u={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(s,l,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=u),typeof s=="object"&&(l=s,s=void 0),this.callback=s??null,this.options=l??u,this.elementCB=c??null}return a.prototype.onparserinit=function(s){this.parser=s},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(s){this.handleCallback(s)},a.prototype.onclosetag=function(){this.lastNode=null;var s=this.tagStack.pop();this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(s)},a.prototype.onopentag=function(s,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,h=new i.Element(s,l,void 0,c);this.addNode(h),this.tagStack.push(h)},a.prototype.ontext=function(s){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=s,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new i.Text(s);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(s){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=s;return}var l=new i.Comment(s);this.addNode(l),this.lastNode=l},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var s=new i.Text(""),l=new i.CDATA([s]);this.addNode(l),s.parent=l,this.lastNode=s},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(s,l){var c=new i.ProcessingInstruction(s,l);this.addNode(c)},a.prototype.handleCallback=function(s){if(typeof this.callback=="function")this.callback(s,this.dom);else if(s)throw s},a.prototype.addNode=function(s){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(s.startIndex=this.parser.startIndex),this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),l.children.push(s),c&&(s.prev=c,c.next=s),s.parent=l,this.lastNode=null},a}();t.DomHandler=o,t.default=o})(et);var gn={},bt={},zr={},Zc={},Et={},ko={};Object.defineProperty(ko,"__esModule",{value:!0});function un(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}ko.default=new Map(un([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(un([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(un([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(un([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Bn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(i,u){return i.codePointAt(u)}:function(i,u){return(i.charCodeAt(u)&64512)===55296?(i.charCodeAt(u)-55296)*1024+i.charCodeAt(u+1)-56320+65536:i.charCodeAt(u)};function r(i){for(var u="",o=0,a;(a=t.xmlReplacer.exec(i))!==null;){var s=a.index,l=i.charCodeAt(s),c=e.get(l);c!==void 0?(u+=i.substring(o,s)+c,o=s+1):(u+="".concat(i.substring(o,s),"&#x").concat((0,t.getCodePoint)(i,s).toString(16),";"),o=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return u+i.substr(o)}t.encodeXML=r,t.escape=r;function n(i,u){return function(a){for(var s,l=0,c="";s=i.exec(a);)l!==s.index&&(c+=a.substring(l,s.index)),c+=u.get(s[0].charCodeAt(0)),l=s.index+1;return c+a.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Bn);var Bx=$&&$.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Et,"__esModule",{value:!0});Et.encodeNonAsciiHTML=Et.encodeHTML=void 0;var qx=Bx(ko),Qc=Bn,Hx=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Fx(t){return ed(Hx,t)}Et.encodeHTML=Fx;function zx(t){return ed(Qc.xmlReplacer,t)}Et.encodeNonAsciiHTML=zx;function ed(t,e){for(var r="",n=0,i;(i=t.exec(e))!==null;){var u=i.index;r+=e.substring(n,u);var o=e.charCodeAt(u),a=qx.default.get(o);if(typeof a=="object"){if(u+1<e.length){var s=e.charCodeAt(u+1),l=typeof a.n=="number"?a.n===s?a.o:void 0:a.n.get(s);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}a=a.v}if(a!==void 0)r+=a,n=u+1;else{var c=(0,Qc.getCodePoint)(e,u);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==o)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=kr,r=Et,n=Bn,i;(function(d){d[d.XML=0]="XML",d[d.HTML=1]="HTML"})(i=t.EntityLevel||(t.EntityLevel={}));var u;(function(d){d[d.UTF8=0]="UTF8",d[d.ASCII=1]="ASCII",d[d.Extensive=2]="Extensive",d[d.Attribute=3]="Attribute",d[d.Text=4]="Text"})(u=t.EncodingMode||(t.EncodingMode={}));function o(d,f){f===void 0&&(f=i.XML);var g=typeof f=="number"?f:f.level;if(g===i.HTML){var m=typeof f=="object"?f.mode:void 0;return(0,e.decodeHTML)(d,m)}return(0,e.decodeXML)(d)}t.decode=o;function a(d,f){var g;f===void 0&&(f=i.XML);var m=typeof f=="number"?{level:f}:f;return(g=m.mode)!==null&&g!==void 0||(m.mode=e.DecodingMode.Strict),o(d,m)}t.decodeStrict=a;function s(d,f){f===void 0&&(f=i.XML);var g=typeof f=="number"?{level:f}:f;return g.mode===u.UTF8?(0,n.escapeUTF8)(d):g.mode===u.Attribute?(0,n.escapeAttribute)(d):g.mode===u.Text?(0,n.escapeText)(d):g.level===i.HTML?g.mode===u.ASCII?(0,r.encodeNonAsciiHTML)(d):(0,r.encodeHTML)(d):(0,n.encodeXML)(d)}t.encode=s;var l=Bn;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=Et;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var h=kr;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(Zc);var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.attributeNames=Wt.elementNames=void 0;Wt.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Wt.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var It=$&&$.__assign||function(){return It=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},It.apply(this,arguments)},Ux=$&&$.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Vx=$&&$.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Wx=$&&$.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ux(e,t,r);return Vx(e,t),e};Object.defineProperty(zr,"__esModule",{value:!0});zr.render=void 0;var Ve=Wx(sr),qn=Zc,td=Wt,Gx=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Xx(t){return t.replace(/"/g,"&quot;")}function Yx(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?Xx:e.xmlMode||e.encodeEntities!=="utf8"?qn.encodeXML:qn.escapeAttribute;return Object.keys(t).map(function(i){var u,o,a=(u=t[i])!==null&&u!==void 0?u:"";return e.xmlMode==="foreign"&&(i=(o=td.attributeNames.get(i))!==null&&o!==void 0?o:i),!e.emptyAttrs&&!e.xmlMode&&a===""?i:"".concat(i,'="').concat(n(a),'"')}).join(" ")}}var Ns=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function wi(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",i=0;i<r.length;i++)n+=Jx(r[i],e);return n}zr.render=wi;zr.default=wi;function Jx(t,e){switch(t.type){case Ve.Root:return wi(t.children,e);case Ve.Doctype:case Ve.Directive:return e3(t);case Ve.Comment:return n3(t);case Ve.CDATA:return r3(t);case Ve.Script:case Ve.Style:case Ve.Tag:return Qx(t,e);case Ve.Text:return t3(t,e)}}var Kx=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Zx=new Set(["svg","math"]);function Qx(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=td.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&Kx.has(t.parent.name)&&(e=It(It({},e),{xmlMode:!1}))),!e.xmlMode&&Zx.has(t.name)&&(e=It(It({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),i=Yx(t.attribs,e);return i&&(n+=" ".concat(i)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Ns.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=wi(t.children,e)),(e.xmlMode||!Ns.has(t.name))&&(n+="</".concat(t.name,">"))),n}function e3(t){return"<".concat(t.data,">")}function t3(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&Gx.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,qn.encodeXML)(n):(0,qn.escapeText)(n)),n}function r3(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function n3(t){return"<!--".concat(t.data,"-->")}var i3=$&&$.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bt,"__esModule",{value:!0});bt.getOuterHTML=rd;bt.getInnerHTML=a3;bt.getText=mn;bt.textContent=wu;bt.innerText=Su;var Me=et,u3=i3(zr),o3=sr;function rd(t,e){return(0,u3.default)(t,e)}function a3(t,e){return(0,Me.hasChildren)(t)?t.children.map(function(r){return rd(r,e)}).join(""):""}function mn(t){return Array.isArray(t)?t.map(mn).join(""):(0,Me.isTag)(t)?t.name==="br"?`
146
+ `:mn(t.children):(0,Me.isCDATA)(t)?mn(t.children):(0,Me.isText)(t)?t.data:""}function wu(t){return Array.isArray(t)?t.map(wu).join(""):(0,Me.hasChildren)(t)&&!(0,Me.isComment)(t)?wu(t.children):(0,Me.isText)(t)?t.data:""}function Su(t){return Array.isArray(t)?t.map(Su).join(""):(0,Me.hasChildren)(t)&&(t.type===o3.ElementType.Tag||(0,Me.isCDATA)(t))?Su(t.children):(0,Me.isText)(t)?t.data:""}var ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.getChildren=nd;ze.getParent=id;ze.getSiblings=s3;ze.getAttributeValue=l3;ze.hasAttrib=c3;ze.getName=d3;ze.nextElementSibling=f3;ze.prevElementSibling=p3;var Ro=et;function nd(t){return(0,Ro.hasChildren)(t)?t.children:[]}function id(t){return t.parent||null}function s3(t){var e,r,n=id(t);if(n!=null)return nd(n);for(var i=[t],u=t.prev,o=t.next;u!=null;)i.unshift(u),e=u,u=e.prev;for(;o!=null;)i.push(o),r=o,o=r.next;return i}function l3(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function c3(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function d3(t){return t.name}function f3(t){for(var e,r=t.next;r!==null&&!(0,Ro.isTag)(r);)e=r,r=e.next;return r}function p3(t){for(var e,r=t.prev;r!==null&&!(0,Ro.isTag)(r);)e=r,r=e.prev;return r}var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.removeElement=Ur;gt.replaceElement=h3;gt.appendChild=b3;gt.append=g3;gt.prependChild=m3;gt.prepend=y3;function Ur(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function h3(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var i=e.parent=t.parent;if(i){var u=i.children;u[u.lastIndexOf(t)]=e,t.parent=null}}function b3(t,e){if(Ur(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function g3(t,e){Ur(e);var r=t.parent,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){var i=r.children;i.splice(i.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function m3(t,e){if(Ur(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){var r=t.children[1];r.prev=e,e.next=r}else e.next=null}function y3(t,e){Ur(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var rt={};Object.defineProperty(rt,"__esModule",{value:!0});rt.filter=v3;rt.find=ud;rt.findOneChild=x3;rt.findOne=od;rt.existsOne=ad;rt.findAll=w3;var Tt=et;function v3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),ud(t,Array.isArray(e)?e:[e],r,n)}function ud(t,e,r,n){for(var i=[],u=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=u[0].length){if(o.length===1)return i;u.shift(),o.shift();continue}var a=u[0][o[0]++];if(t(a)&&(i.push(a),--n<=0))return i;r&&(0,Tt.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),u.unshift(a.children))}}function x3(t,e){return e.find(t)}function od(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],i=0;i<n.length;i++){var u=n[i];if((0,Tt.isTag)(u)&&t(u))return u;if(r&&(0,Tt.hasChildren)(u)&&u.children.length>0){var o=od(t,u.children,!0);if(o)return o}}return null}function ad(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Tt.isTag)(r)&&t(r)||(0,Tt.hasChildren)(r)&&ad(t,r.children)})}function w3(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=n[0].length){if(n.length===1)return r;n.shift(),i.shift();continue}var u=n[0][i[0]++];(0,Tt.isTag)(u)&&t(u)&&r.push(u),(0,Tt.hasChildren)(u)&&u.children.length>0&&(i.unshift(0),n.unshift(u.children))}}var nt={};Object.defineProperty(nt,"__esModule",{value:!0});nt.testElement=C3;nt.getElements=E3;nt.getElementById=T3;nt.getElementsByTagName=A3;nt.getElementsByClassName=N3;nt.getElementsByTagType=O3;var vt=et,Vr=rt,Hn={tag_name:function(t){return typeof t=="function"?function(e){return(0,vt.isTag)(e)&&t(e.name)}:t==="*"?vt.isTag:function(e){return(0,vt.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,vt.isText)(e)&&t(e.data)}:function(e){return(0,vt.isText)(e)&&e.data===t}}};function Io(t,e){return typeof e=="function"?function(r){return(0,vt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,vt.isTag)(r)&&r.attribs[t]===e}}function S3(t,e){return function(r){return t(r)||e(r)}}function sd(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Hn,r)?Hn[r](n):Io(r,n)});return e.length===0?null:e.reduce(S3)}function C3(t,e){var r=sd(t);return r?r(e):!0}function E3(t,e,r,n){n===void 0&&(n=1/0);var i=sd(t);return i?(0,Vr.filter)(i,e,r,n):[]}function T3(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,Vr.findOne)(Io("id",t),e,r)}function A3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Vr.filter)(Hn.tag_name(t),e,r,n)}function N3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Vr.filter)(Io("class",t),e,r,n)}function O3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Vr.filter)(Hn.tag_type(t),e,r,n)}var jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.DocumentPosition=void 0;jt.removeSubsets=j3;jt.compareDocumentPosition=ld;jt.uniqueSort=_3;var Os=et;function j3(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Te;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Te||(jt.DocumentPosition=Te={}));function ld(t,e){var r=[],n=[];if(t===e)return 0;for(var i=(0,Os.hasChildren)(t)?t:t.parent;i;)r.unshift(i),i=i.parent;for(i=(0,Os.hasChildren)(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(var u=Math.min(r.length,n.length),o=0;o<u&&r[o]===n[o];)o++;if(o===0)return Te.DISCONNECTED;var a=r[o-1],s=a.children,l=r[o],c=n[o];return s.indexOf(l)>s.indexOf(c)?a===e?Te.FOLLOWING|Te.CONTAINED_BY:Te.FOLLOWING:a===t?Te.PRECEDING|Te.CONTAINS:Te.PRECEDING}function _3(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=ld(e,r);return n&Te.PRECEDING?-1:n&Te.FOLLOWING?1:0}),t}var Do={};Object.defineProperty(Do,"__esModule",{value:!0});Do.getFeed=k3;var P3=bt,Wr=nt;function k3(t){var e=Fn(M3,t);return e?e.name==="feed"?R3(e):I3(e):null}function R3(t){var e,r=t.children,n={type:"atom",items:(0,Wr.getElementsByTagName)("entry",r).map(function(o){var a,s=o.children,l={media:cd(s)};he(l,"id","id",s),he(l,"title","title",s);var c=(a=Fn("link",s))===null||a===void 0?void 0:a.attribs.href;c&&(l.link=c);var h=ot("summary",s)||ot("content",s);h&&(l.description=h);var d=ot("updated",s);return d&&(l.pubDate=new Date(d)),l})};he(n,"id","id",r),he(n,"title","title",r);var i=(e=Fn("link",r))===null||e===void 0?void 0:e.attribs.href;i&&(n.link=i),he(n,"description","subtitle",r);var u=ot("updated",r);return u&&(n.updated=new Date(u)),he(n,"author","email",r,!0),n}function I3(t){var e,r,n=(r=(e=Fn("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],i={type:t.name.substr(0,3),id:"",items:(0,Wr.getElementsByTagName)("item",t.children).map(function(o){var a=o.children,s={media:cd(a)};he(s,"id","guid",a),he(s,"title","title",a),he(s,"link","link",a),he(s,"description","description",a);var l=ot("pubDate",a)||ot("dc:date",a);return l&&(s.pubDate=new Date(l)),s})};he(i,"title","title",n),he(i,"link","link",n),he(i,"description","description",n);var u=ot("lastBuildDate",n);return u&&(i.updated=new Date(u)),he(i,"author","managingEditor",n,!0),i}var D3=["url","type","lang"],L3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function cd(t){return(0,Wr.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,u=D3;i<u.length;i++){var o=u[i];r[o]&&(n[o]=r[o])}for(var a=0,s=L3;a<s.length;a++){var o=s[a];r[o]&&(n[o]=parseInt(r[o],10))}return r.expression&&(n.expression=r.expression),n})}function Fn(t,e){return(0,Wr.getElementsByTagName)(t,e,!0,1)[0]}function ot(t,e,r){return r===void 0&&(r=!1),(0,P3.textContent)((0,Wr.getElementsByTagName)(t,e,r,1)).trim()}function he(t,e,r,n,i){i===void 0&&(i=!1);var u=ot(r,n,i);u&&(t[e]=u)}function M3(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=$&&$.__createBinding||(Object.create?function(i,u,o,a){a===void 0&&(a=o);var s=Object.getOwnPropertyDescriptor(u,o);(!s||("get"in s?!u.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return u[o]}}),Object.defineProperty(i,a,s)}:function(i,u,o,a){a===void 0&&(a=o),i[a]=u[o]}),r=$&&$.__exportStar||function(i,u){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(u,o)&&e(u,i,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(bt,t),r(ze,t),r(gt,t),r(rt,t),r(nt,t),r(jt,t),r(Do,t);var n=et;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(gn);(function(t){var e=$&&$.__createBinding||(Object.create?function(y,v,E,C){C===void 0&&(C=E);var N=Object.getOwnPropertyDescriptor(v,E);(!N||("get"in N?!v.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return v[E]}}),Object.defineProperty(y,C,N)}:function(y,v,E,C){C===void 0&&(C=E),y[C]=v[E]}),r=$&&$.__setModuleDefault||(Object.create?function(y,v){Object.defineProperty(y,"default",{enumerable:!0,value:v})}:function(y,v){y.default=v}),n=$&&$.__importStar||function(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&e(v,y,E);return r(v,y),v},i=$&&$.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var u=Pr,o=Pr;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=et,s=et;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return s.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return s.DomHandler}});function l(y,v){var E=new a.DomHandler(void 0,v);return new u.Parser(E,v).end(y),E.root}t.parseDocument=l;function c(y,v){return l(y,v).children}t.parseDOM=c;function h(y,v,E){var C=new a.DomHandler(y,v,E);return new u.Parser(C,v)}t.createDomStream=h;var d=No;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(d).default}}),t.ElementType=n(sr);var f=gn,g=gn;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var m={xmlMode:!0};function b(y,v){return v===void 0&&(v=m),(0,f.getFeed)(c(y,v))}t.parseFeed=b,t.DomUtils=n(gn)})(Bc);var $3=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Lo={};Object.defineProperty(Lo,"__esModule",{value:!0});/*!
147
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
148
+ *
149
+ * Copyright (c) 2014-2017, Jon Schlinkert.
150
+ * Released under the MIT License.
151
+ */function js(t){return Object.prototype.toString.call(t)==="[object Object]"}function B3(t){var e,r;return js(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(js(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Lo.isPlainObject=B3;var q3=function(e){return H3(e)&&!F3(e)};function H3(t){return!!t&&typeof t=="object"}function F3(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||V3(t)}var z3=typeof Symbol=="function"&&Symbol.for,U3=z3?Symbol.for("react.element"):60103;function V3(t){return t.$$typeof===U3}function W3(t){return Array.isArray(t)?[]:{}}function Rr(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Gt(W3(t),t,e):t}function G3(t,e,r){return t.concat(e).map(function(n){return Rr(n,r)})}function X3(t,e){if(!e.customMerge)return Gt;var r=e.customMerge(t);return typeof r=="function"?r:Gt}function Y3(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function _s(t){return Object.keys(t).concat(Y3(t))}function dd(t,e){try{return e in t}catch{return!1}}function J3(t,e){return dd(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function K3(t,e,r){var n={};return r.isMergeableObject(t)&&_s(t).forEach(function(i){n[i]=Rr(t[i],r)}),_s(e).forEach(function(i){J3(t,i)||(dd(t,i)&&r.isMergeableObject(e[i])?n[i]=X3(i,r)(t[i],e[i],r):n[i]=Rr(e[i],r))}),n}function Gt(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||G3,r.isMergeableObject=r.isMergeableObject||q3,r.cloneUnlessOtherwiseSpecified=Rr;var n=Array.isArray(e),i=Array.isArray(t),u=n===i;return u?n?r.arrayMerge(t,e,r):K3(t,e,r):Rr(e,r)}Gt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Gt(n,i,r)},{})};var Z3=Gt,Q3=Z3,fd={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})($,function(){return function(e){function r(C){return C===" "||C===" "||C===`
152
+ `||C==="\f"||C==="\r"}function n(C){var N,k=C.exec(e.substring(b));if(k)return N=k[0],b+=N.length,N}for(var i=e.length,u=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,a=/^[^ \t\n\r\u000c]+/,s=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,d,f,g,m,b=0,y=[];;){if(n(o),b>=i)return y;h=n(a),d=[],h.slice(-1)===","?(h=h.replace(s,""),E()):v()}function v(){for(n(u),f="",g="in descriptor";;){if(m=e.charAt(b),g==="in descriptor")if(r(m))f&&(d.push(f),f="",g="after descriptor");else if(m===","){b+=1,f&&d.push(f),E();return}else if(m==="(")f=f+m,g="in parens";else if(m===""){f&&d.push(f),E();return}else f=f+m;else if(g==="in parens")if(m===")")f=f+m,g="in descriptor";else if(m===""){d.push(f),E();return}else f=f+m;else if(g==="after descriptor"&&!r(m))if(m===""){E();return}else g="in descriptor",b-=1;b+=1}}function E(){var C=!1,N,k,R,D,M={},L,S,T,_,I;for(D=0;D<d.length;D++)L=d[D],S=L[L.length-1],T=L.substring(0,L.length-1),_=parseInt(T,10),I=parseFloat(T),l.test(T)&&S==="w"?((N||k)&&(C=!0),_===0?C=!0:N=_):c.test(T)&&S==="x"?((N||k||R)&&(C=!0),I<0?C=!0:k=I):l.test(T)&&S==="h"?((R||k)&&(C=!0),_===0?C=!0:R=_):C=!0;C?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+L+"'."):(M.url=h,N&&(M.w=N),k&&(M.d=k),R&&(M.h=R),y.push(M))}}})})(fd);var ew=fd.exports,Mo={exports:{}},F=String,pd=function(){return{isColorSupported:!1,reset:F,bold:F,dim:F,italic:F,underline:F,inverse:F,hidden:F,strikethrough:F,black:F,red:F,green:F,yellow:F,blue:F,magenta:F,cyan:F,white:F,gray:F,bgBlack:F,bgRed:F,bgGreen:F,bgYellow:F,bgBlue:F,bgMagenta:F,bgCyan:F,bgWhite:F,blackBright:F,redBright:F,greenBright:F,yellowBright:F,blueBright:F,magentaBright:F,cyanBright:F,whiteBright:F,bgBlackBright:F,bgRedBright:F,bgGreenBright:F,bgYellowBright:F,bgBlueBright:F,bgMagentaBright:F,bgCyanBright:F,bgWhiteBright:F}};Mo.exports=pd();Mo.exports.createColors=pd;var tw=Mo.exports;const rw={},nw=Object.freeze(Object.defineProperty({__proto__:null,default:rw},Symbol.toStringTag,{value:"Module"})),_e=kf(nw);let Ps=tw,ks=_e,Cu=class hd extends Error{constructor(e,r,n,i,u,o){super(e),this.name="CssSyntaxError",this.reason=e,u&&(this.file=u),i&&(this.source=i),o&&(this.plugin=o),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,hd)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Ps.isColorSupported);let n=c=>c,i=c=>c,u=c=>c;if(e){let{bold:c,gray:h,red:d}=Ps.createColors(!0);i=f=>c(d(f)),n=f=>h(f),ks&&(u=f=>ks(f))}let o=r.split(/\r?\n/),a=Math.max(this.line-3,0),s=Math.min(this.line+2,o.length),l=String(s).length;return o.slice(a,s).map((c,h)=>{let d=a+1+h,f=" "+(" "+d).slice(-l)+" | ";if(d===this.line){if(c.length>160){let m=20,b=Math.max(0,this.column-m),y=Math.max(this.column+m,this.endColumn+m),v=c.slice(b,y),E=n(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return i(">")+n(f)+u(v)+`
153
+ `+E+i("^")}let g=n(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(f)+u(c)+`
154
+ `+g+i("^")}return" "+n(f)+u(c)}).join(`
155
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
156
+
157
+ `+e+`
158
+ `),this.name+": "+this.message+e}};var $o=Cu;Cu.default=Cu;const Rs={after:`
159
+ `,beforeClose:`
160
+ `,beforeComment:`
161
+ `,beforeDecl:`
162
+ `,beforeOpen:" ",beforeRule:`
163
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function iw(t){return t[0].toUpperCase()+t.slice(1)}let Eu=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let u=(e.raws.between||"")+(r?";":"");this.builder(n+i+u,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,u=0;for(;i&&i.type!=="root";)u+=1,i=i.parent;if(n.includes(`
164
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<u;a++)n+=o}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let u=e.nodes[i],o=this.raw(u,"before");o&&this.builder(o),this.stringify(u,r!==i||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),r&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,r,n){let i;if(n||(n=r),r&&(i=e.raws[r],typeof i<"u"))return i;let u=e.parent;if(n==="before"&&(!u||u.type==="root"&&u.first===e||u&&u.type==="document"))return"";if(!u)return Rs[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]<"u")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+iw(n);this[a]?i=this[a](o,e):o.walk(s=>{if(i=s.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=Rs[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
165
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
166
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
167
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
168
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let u=n.raws.before.split(`
169
+ `);return r=u[u.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var bd=Eu;Eu.default=Eu;let uw=bd;function Tu(t,e){new uw(e).stringify(t)}var Si=Tu;Tu.default=Tu;var Gr={};Gr.isClean=Symbol("isClean");Gr.my=Symbol("my");let ow=$o,aw=bd,sw=Si,{isClean:hr,my:lw}=Gr;function Au(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],u=typeof i;n==="parent"&&u==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(o=>Au(o,r)):(u==="object"&&i!==null&&(i=Au(i)),r[n]=i)}return r}function We(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,i=0;for(let u=0;u<t.length;u++){if(n===e.line&&r===e.column){i=u;break}t[u]===`
170
+ `?(r=1,n+=1):r+=1}return i}let Nu=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[hr]=!1,this[lw]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let r in e)this[r]=e[r];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let r=Au(this);for(let n in e)r[n]=e[n];return r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}error(e,r={}){if(this.source){let{end:n,start:i}=this.rangeBy(r);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},r)}return new ow(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[hr]=!0}markDirty(){if(this[hr]){this[hr]=!1;let e=this;for(;e=e.parent;)e[hr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,u=n.slice(We(n,this.source.start),We(n,this.source.end)).indexOf(e.word);u!==-1&&(r=this.positionInside(u))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,u=We(i,this.source.start),o=u+e;for(let a=u;a<o;a++)i[a]===`
171
+ `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:We(r,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:We(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let o=r.slice(We(r,this.source.start),We(r,this.source.end)).indexOf(e.word);o!==-1&&(n=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:We(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:We(r,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<n.line||i.line===n.line&&i.column<=n.column)&&(i={column:n.column+1,line:n.line,offset:n.offset+1}),{end:i,start:n}}raw(e,r){return new aw().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},i=r==null;r=r||new Map;let u=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))n[o]=a.map(s=>typeof s=="object"&&s.toJSON?s.toJSON(null,r):s);else if(typeof a=="object"&&a.toJSON)n[o]=a.toJSON(null,r);else if(o==="source"){if(a==null)continue;let s=r.get(a.input);s==null&&(s=u,r.set(a.input,u),u++),n[o]={end:a.end,inputId:s,start:a.start}}else n[o]=a}return i&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=sw){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let i={node:this};for(let u in n)i[u]=n[u];return e.warn(r,i)}};var Ci=Nu;Nu.default=Nu;let cw=Ci,Ou=class extends cw{constructor(e){super(e),this.type="comment"}};var Ei=Ou;Ou.default=Ou;let dw=Ci,ju=class extends dw{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var Ti=ju;ju.default=ju;let gd=Ei,md=Ti,fw=Ci,{isClean:yd,my:vd}=Gr,Bo,xd,wd,qo;function Sd(t){return t.map(e=>(e.nodes&&(e.nodes=Sd(e.nodes)),delete e.source,e))}function Cd(t){if(t[yd]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Cd(e)}let tt=class Ed extends fw{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,i;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[r]+=1;return delete this.indexes[r],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(i=>typeof i=="function"?(u,o)=>i(u.toProxy(),o):i)):r==="every"||r==="some"?n=>e[r]((i,...u)=>n(i.toProxy(),...u)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),i=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let u;for(let o in this.indexes)u=this.indexes[o],n<u&&(this.indexes[o]=u+i.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),i=n===0?"prepend":!1,u=this.normalize(r,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of u)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+u.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=Sd(xd(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new md(e)]}else if(e.selector||e.selectors)e=[new qo(e)];else if(e.name)e=[new Bo(e)];else if(e.text)e=[new gd(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[vd]||Ed.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[yd]&&Cd(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(i.raws.before=r.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(i=>{r.props&&!r.props.includes(i.prop)||r.fast&&!i.value.includes(r.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let i;try{i=e(r,n)}catch(u){throw r.addToError(u)}return i!==!1&&r.walk&&(i=r.walk(e)),i})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="atrule")return r(n,i)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="decl")return r(n,i)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return r(n,i)}):(r=e,this.walk((n,i)=>{if(n.type==="rule")return r(n,i)}))}};tt.registerParse=t=>{xd=t};tt.registerRule=t=>{qo=t};tt.registerAtRule=t=>{Bo=t};tt.registerRoot=t=>{wd=t};var _t=tt;tt.default=tt;tt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Bo.prototype):t.type==="rule"?Object.setPrototypeOf(t,qo.prototype):t.type==="decl"?Object.setPrototypeOf(t,md.prototype):t.type==="comment"?Object.setPrototypeOf(t,gd.prototype):t.type==="root"&&Object.setPrototypeOf(t,wd.prototype),t[vd]=!0,t.nodes&&t.nodes.forEach(e=>{tt.rebuild(e)})};let Td=_t,zn=class extends Td{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ho=zn;zn.default=zn;Td.registerAtRule(zn);let pw=_t,Ad,Nd,Ir=class extends pw{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ad(new Nd,this,e).stringify()}};Ir.registerLazyResult=t=>{Ad=t};Ir.registerProcessor=t=>{Nd=t};var Fo=Ir;Ir.default=Ir;let hw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",bw=(t=21)=>{let e="",r=t|0;for(;r--;)e+=hw[Math.random()*64|0];return e};var gw={nanoid:bw};let{existsSync:mw,readFileSync:yw}=_e,{dirname:Fi,join:vw}=_e,{SourceMapConsumer:Is,SourceMapGenerator:Ds}=_e;function xw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let _u=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Fi(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Is(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,u=/^data:application\/json,/,o=e.match(i)||e.match(u);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(r)||e.match(n);if(a)return xw(e.substr(a[0].length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=Fi(e),mw(e))return this.mapFile=e,yw(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof Is)return Ds.fromSourceMap(r).toString();if(r instanceof Ds)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=vw(Fi(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Od=_u;_u.default=_u;let{nanoid:ww}=gw,{isAbsolute:Pu,resolve:ku}=_e,{SourceMapConsumer:Sw,SourceMapGenerator:Cw}=_e,{fileURLToPath:Ls,pathToFileURL:on}=_e,Ms=$o,Ew=Od,zi=_e,Ui=Symbol("lineToIndexCache"),Tw=!!(Sw&&Cw),$s=!!(ku&&Pu);function Bs(t){if(t[Ui])return t[Ui];let e=t.css.split(`
172
+ `),r=new Array(e.length),n=0;for(let i=0,u=e.length;i<u;i++)r[i]=n,n+=e[i].length+1;return t[Ui]=r,r}let Un=class{get from(){return this.file||this.id}constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,r.document&&(this.document=r.document.toString()),r.from&&(!$s||/^\w+:\/\//.test(r.from)||Pu(r.from)?this.file=r.from:this.file=ku(r.from)),$s&&Tw){let n=new Ew(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+ww(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let u,o,a,s,l;if(r&&typeof r=="object"){let h=r,d=n;if(typeof h.offset=="number"){s=h.offset;let f=this.fromOffset(s);r=f.line,n=f.col}else r=h.line,n=h.column,s=this.fromLineAndColumn(r,n);if(typeof d.offset=="number"){a=d.offset;let f=this.fromOffset(a);o=f.line,u=f.col}else o=d.line,u=d.column,a=this.fromLineAndColumn(d.line,d.column)}else if(n)s=this.fromLineAndColumn(r,n);else{s=r;let h=this.fromOffset(s);r=h.line,n=h.col}let c=this.origin(r,n,o,u);return c?l=new Ms(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,i.plugin):l=new Ms(e,o===void 0?r:{column:n,line:r},o===void 0?n:{column:u,line:o},this.css,this.file,i.plugin),l.input={column:n,endColumn:u,endLine:o,endOffset:a,line:r,offset:s,source:this.css},this.file&&(on&&(l.input.url=on(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Bs(this)[e-1]+r-1}fromOffset(e){let r=Bs(this),n=r[r.length-1],i=0;if(e>=n)i=r.length-1;else{let u=r.length-2,o;for(;i<u;)if(o=i+(u-i>>1),e<r[o])u=o-1;else if(e>=r[o+1])i=o+1;else{i=o;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ku(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let u=this.map.consumer(),o=u.originalPositionFor({column:r,line:e});if(!o.source)return!1;let a;typeof n=="number"&&(a=u.originalPositionFor({column:i,line:n}));let s;Pu(o.source)?s=on(o.source):s=new URL(o.source,this.map.consumer().sourceRoot||on(this.map.mapFile));let l={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:s.toString()};if(s.protocol==="file:")if(Ls)l.file=Ls(s);else throw new Error("file: protocol is not available in this PostCSS build");let c=u.sourceContentFor(o.source);return c&&(l.source=c),l}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Ai=Un;Un.default=Un;zi&&zi.registerInput&&zi.registerInput(Un);let jd=_t,_d,Pd,Xt=class extends jd{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let i=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let u of i)u.raws.before=r.raws.before}return i}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new _d(new Pd,this,e).stringify()}};Xt.registerLazyResult=t=>{_d=t};Xt.registerProcessor=t=>{Pd=t};var Xr=Xt;Xt.default=Xt;jd.registerRoot(Xt);let Dr={comma(t){return Dr.split(t,[","],!0)},space(t){let e=[" ",`
173
+ `," "];return Dr.split(t,e)},split(t,e,r){let n=[],i="",u=!1,o=0,a=!1,s="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:a?c===s&&(a=!1):c==='"'||c==="'"?(a=!0,s=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(u=!0),u?(i!==""&&n.push(i.trim()),i="",u=!1):i+=c;return(r||i!=="")&&n.push(i.trim()),n}};var kd=Dr;Dr.default=Dr;let Rd=_t,Aw=kd,Vn=class extends Rd{get selectors(){return Aw.comma(this.selector)}set selectors(e){let r=this.selector?this.selector.match(/,\s*/):null,n=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var zo=Vn;Vn.default=Vn;Rd.registerRule(Vn);let Nw=Ho,Ow=Ei,jw=Ti,_w=Ai,Pw=Od,kw=Xr,Rw=zo;function Lr(t,e){if(Array.isArray(t))return t.map(i=>Lr(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let u={...i,__proto__:_w.prototype};u.map&&(u.map={...u.map,__proto__:Pw.prototype}),e.push(u)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>Lr(i,e))),n.source){let{inputId:i,...u}=n.source;n.source=u,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new kw(n);if(n.type==="decl")return new jw(n);if(n.type==="rule")return new Rw(n);if(n.type==="comment")return new Ow(n);if(n.type==="atrule")return new Nw(n);throw new Error("Unknown node type: "+t.type)}var Iw=Lr;Lr.default=Lr;let{dirname:yn,relative:Id,resolve:Dd,sep:Ld}=_e,{SourceMapConsumer:Md,SourceMapGenerator:vn}=_e,{pathToFileURL:qs}=_e,Dw=Ai,Lw=!!(Md&&vn),Mw=!!(yn&&Dd&&Id&&Ld),$w=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
174
+ `;this.css.includes(`\r
175
+ `)&&(r=`\r
176
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||yn(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Md(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Mw&&Lw&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,r=>{e+=r}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=vn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new vn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new vn({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,o;this.stringify(this.root,(a,s,l)=>{if(this.css+=a,s&&l!=="end"&&(i.generated.line=e,i.generated.column=r-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,u=a.lastIndexOf(`
177
+ `),r=a.length-u):r+=a.length,s&&l!=="start"){let c=s.parent||{raws:{}};(!(s.type==="decl"||s.type==="atrule"&&!s.nodes)||s!==c.last||c.raws.semicolon)&&(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=e,i.generated.column=r-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=r-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?yn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=yn(Dd(n,this.mapOpts.annotation)));let i=Id(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new Dw(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let r=this.memoizedFileURLs.get(e);if(r)return r;if(qs){let n=qs(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Ld==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var $d=$w;const Vi=39,Hs=34,an=92,Fs=47,sn=10,br=32,ln=12,cn=9,dn=13,Bw=91,qw=93,Hw=40,Fw=41,zw=123,Uw=125,Vw=59,Ww=42,Gw=58,Xw=64,fn=/[\t\n\f\r "#'()/;[\\\]{}]/g,pn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Yw=/.[\r\n"'(/\\]/,zs=/[\da-f]/i;var Jw=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,u,o,a,s,l,c,h,d,f,g,m=n.length,b=0,y=[],v=[];function E(){return b}function C(D){throw e.error("Unclosed "+D,b)}function N(){return v.length===0&&b>=m}function k(D){if(v.length)return v.pop();if(b>=m)return;let M=D?D.ignoreUnclosed:!1;switch(u=n.charCodeAt(b),u){case sn:case br:case cn:case dn:case ln:{s=b;do s+=1,u=n.charCodeAt(s);while(u===br||u===sn||u===cn||u===dn||u===ln);c=["space",n.slice(b,s)],b=s-1;break}case Bw:case qw:case zw:case Uw:case Gw:case Vw:case Fw:{let L=String.fromCharCode(u);c=[L,L,b];break}case Hw:{if(g=y.length?y.pop()[1]:"",f=n.charCodeAt(b+1),g==="url"&&f!==Vi&&f!==Hs&&f!==br&&f!==sn&&f!==cn&&f!==ln&&f!==dn){s=b;do{if(h=!1,s=n.indexOf(")",s+1),s===-1)if(i||M){s=b;break}else C("bracket");for(d=s;n.charCodeAt(d-1)===an;)d-=1,h=!h}while(h);c=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),o=n.slice(b,s+1),s===-1||Yw.test(o)?c=["(","(",b]:(c=["brackets",o,b,s],b=s);break}case Vi:case Hs:{l=u===Vi?"'":'"',s=b;do{if(h=!1,s=n.indexOf(l,s+1),s===-1)if(i||M){s=b+1;break}else C("string");for(d=s;n.charCodeAt(d-1)===an;)d-=1,h=!h}while(h);c=["string",n.slice(b,s+1),b,s],b=s;break}case Xw:{fn.lastIndex=b+1,fn.test(n),fn.lastIndex===0?s=n.length-1:s=fn.lastIndex-2,c=["at-word",n.slice(b,s+1),b,s],b=s;break}case an:{for(s=b,a=!0;n.charCodeAt(s+1)===an;)s+=1,a=!a;if(u=n.charCodeAt(s+1),a&&u!==Fs&&u!==br&&u!==sn&&u!==cn&&u!==dn&&u!==ln&&(s+=1,zs.test(n.charAt(s)))){for(;zs.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===br&&(s+=1)}c=["word",n.slice(b,s+1),b,s],b=s;break}default:{u===Fs&&n.charCodeAt(b+1)===Ww?(s=n.indexOf("*/",b+2)+1,s===0&&(i||M?s=n.length:C("comment")),c=["comment",n.slice(b,s+1),b,s],b=s):(pn.lastIndex=b+1,pn.test(n),pn.lastIndex===0?s=n.length-1:s=pn.lastIndex-2,c=["word",n.slice(b,s+1),b,s],y.push(c),b=s);break}}return b++,c}function R(D){v.push(D)}return{back:R,endOfFile:N,nextToken:k,position:E}};let Kw=Ho,Zw=Ei,Qw=Ti,e6=Xr,Us=zo,t6=Jw;const Vs={empty:!0,space:!0};function r6(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let n6=class{constructor(e){this.input=e,this.root=new e6,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let r=new Kw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,u,o=!1,a=!1,s=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(s.length>0){for(u=s.length-1,i=s[u];i&&i[0]==="space";)i=s[--u];i&&(r.source.end=this.getPosition(i[3]||i[2]),r.source.end.offset++)}this.end(e);break}else s.push(e);else s.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),o&&(e=s[s.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),a&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,i;for(let u=r-1;u>=0&&(i=e[u],!(i[0]!=="space"&&(n+=1,n===2)));u--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let r=0,n,i,u;for(let[o,a]of e.entries()){if(i=a,u=i[0],u==="("&&(r+=1),u===")"&&(r-=1),r===0&&u===":")if(!n)this.doubleColon(i);else{if(n[0]==="word"&&n[1]==="progid")continue;return o}n=i}return!1}comment(e){let r=new Zw;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))r.text="",r.raws.left=n,r.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=i[2],r.raws.left=i[1],r.raws.right=i[3]}}createTokenizer(){this.tokenizer=t6(this.input)}decl(e,r){let n=new Qw;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||r6(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(u=e[l],u[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(u[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let d=l;d>0;d--){let f=c[d][0];if(h.trim().startsWith("!")&&f!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Us;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,i=!1,u=null,o=[],a=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),n==="("||n==="[")u||(u=l),o.push(n==="("?")":"]");else if(a&&i&&n==="{")u||(u=l),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(s,a);return}else break;else if(n==="{"){this.rule(s);return}else if(n==="}"){this.tokenizer.back(s.pop()),r=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(u=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),o.length>0&&this.unclosedBracket(u),r&&i){if(!a)for(;s.length&&(l=s[s.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,i){let u,o,a=n.length,s="",l=!0,c,h;for(let d=0;d<a;d+=1)u=n[d],o=u[0],o==="space"&&d===a-1&&!i?l=!1:o==="comment"?(h=n[d-1]?n[d-1][0]:"empty",c=n[d+1]?n[d+1][0]:"empty",!Vs[h]&&!Vs[c]?s.slice(-1)===","?l=!1:s+=u[1]:l=!1):s+=u[1];if(!l){let d=n.reduce((f,g)=>f+g[1],"");e.raws[r]={raw:d,value:s}}e[r]=s}rule(e){e.pop();let r=new Us;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r}spacesAndCommentsFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let r,n="";for(;e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let r,n="";for(;e.length&&(r=e[e.length-1][0],r==="space");)n=e.pop()[1]+n;return n}stringFrom(e,r){let n="";for(let i=r;i<e.length;i++)n+=e[i][1];return e.splice(r,e.length-r),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})}};var i6=n6;let u6=_t,o6=Ai,a6=i6;function Wn(t,e){let r=new o6(t,e),n=new a6(r);try{n.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
178
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
179
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(i.message+=`
180
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return n.root}var Uo=Wn;Wn.default=Wn;u6.registerParse(Wn);let Ru=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Bd=Ru;Ru.default=Ru;let s6=Bd,Iu=class{get content(){return this.css}constructor(e,r,n){this.processor=e,this.messages=[],this.root=r,this.opts=n,this.css="",this.map=void 0}toString(){return this.css}warn(e,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let n=new s6(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Vo=Iu;Iu.default=Iu;let Ws={};var qd=function(e){Ws[e]||(Ws[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let l6=_t,c6=Fo,d6=$d,f6=Uo,Gs=Vo,p6=Xr,h6=Si,{isClean:ke,my:b6}=Gr,g6=qd;const m6={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},y6={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},v6={Once:!0,postcssPlugin:!0,prepare:!0},Yt=0;function gr(t){return typeof t=="object"&&typeof t.then=="function"}function Hd(t){let e=!1,r=m6[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Yt,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Yt,r+"Exit"]:[r,r+"Exit"]}function Xs(t){let e;return t.type==="document"?e=["Document",Yt,"DocumentExit"]:t.type==="root"?e=["Root",Yt,"RootExit"]:e=Hd(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Du(t){return t[ke]=!1,t.nodes&&t.nodes.forEach(e=>Du(e)),t}let Lu={},Jt=class Fd{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let i;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))i=Du(r);else if(r instanceof Fd||r instanceof Gs)i=Du(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let u=f6;n.syntax&&(u=n.syntax.parse),n.parser&&(u=n.parser),u.parse&&(u=u.parse);try{i=u(r,n)}catch(o){this.processed=!0,this.error=o}i&&!i[b6]&&l6.rebuild(i)}this.result=new Gs(e,i,n),this.helpers={...Lu,postcss:Lu,result:this.result},this.plugins=this.processor.plugins.map(u=>typeof u=="object"&&u.prepare?{...u,...u.prepare(this.result)}:u)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let i=n.postcssPlugin,u=n.postcssVersion,o=this.result.processor.version,a=u.split("."),s=o.split(".");(a[0]!==s[0]||parseInt(a[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+u+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(r,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,i])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!y6[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!v6[n])if(typeof r[n]=="object")for(let i in r[n])i==="*"?e(r,n,r[n][i]):e(r,n+"-"+i.toLowerCase(),r[n][i]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(gr(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ke];){e[ke]=!0;let r=[Xs(e)];for(;r.length>0;){let n=this.visitTick(r);if(gr(n))try{await n}catch(i){let u=r[r.length-1].node;throw this.handleError(i,u)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let i=e.nodes.map(u=>n(u,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return gr(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=h6;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new d6(r,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(gr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ke];)e[ke]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||g6("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,i]of e){this.result.lastPlugin=n;let u;try{u=i(r,this.helpers)}catch(o){throw this.handleError(o,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(gr(u))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:i}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&r.visitorIndex<i.length){let[o,a]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(s){throw this.handleError(s,n)}}if(r.iterator!==0){let o=r.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[ke]){a[ke]=!0,e.push(Xs(a));return}r.iterator=0,delete n.indexes[o]}let u=r.events;for(;r.eventIndex<u.length;){let o=u[r.eventIndex];if(r.eventIndex+=1,o===Yt){n.nodes&&n.nodes.length&&(n[ke]=!0,r.iterator=n.getIterator());return}else if(this.listeners[o]){r.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[ke]=!0;let r=Hd(e);for(let n of r)if(n===Yt)e.nodes&&e.each(i=>{i[ke]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Jt.registerPostcss=t=>{Lu=t};var zd=Jt;Jt.default=Jt;p6.registerLazyResult(Jt);c6.registerLazyResult(Jt);let x6=$d,w6=Uo;const S6=Vo;let C6=Si,E6=qd,Mu=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,r=w6;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let i,u=C6;this.result=new S6(this._processor,i,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new x6(u,i,this._opts,r);if(a.isMap()){let[s,l]=a.generate();s&&(this.result.css=s),l&&(this.result.map=l)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||E6("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this._css}warnings(){return[]}};var T6=Mu;Mu.default=Mu;let A6=Fo,N6=zd,O6=T6,j6=Xr,Mr=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new O6(this,e,r):new N6(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var _6=Mr;Mr.default=Mr;j6.registerProcessor(Mr);A6.registerProcessor(Mr);let Ud=Ho,Vd=Ei,P6=_t,k6=$o,Wd=Ti,Gd=Fo,R6=Iw,I6=Ai,D6=zd,L6=kd,M6=Ci,$6=Uo,Wo=_6,B6=Vo,Xd=Xr,Yd=zo,q6=Si,H6=Bd;function K(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Wo(t)}K.plugin=function(e,r){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
181
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
182
+ https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new Wo().version,a}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(o,a,s){return K([i(s)]).process(o,a)},i};K.stringify=q6;K.parse=$6;K.fromJSON=R6;K.list=L6;K.comment=t=>new Vd(t);K.atRule=t=>new Ud(t);K.decl=t=>new Wd(t);K.rule=t=>new Yd(t);K.root=t=>new Xd(t);K.document=t=>new Gd(t);K.CssSyntaxError=k6;K.Declaration=Wd;K.Container=P6;K.Processor=Wo;K.Document=Gd;K.Comment=Vd;K.Warning=H6;K.AtRule=Ud;K.Result=B6;K.Input=I6;K.Rule=Yd;K.Root=Xd;K.Node=M6;D6.registerPostcss(K);var F6=K;K.default=K;const z6=Bc,Ys=$3,{isPlainObject:U6}=Lo,Js=Q3,V6=ew,{parse:W6}=F6,G6=["img","audio","video","picture","svg","object","map","iframe","embed"],X6=["script","style"];function Rt(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function Ge(t,e){return{}.hasOwnProperty.call(t,e)}function Ks(t,e){const r=[];return Rt(t,function(n){e(n)&&r.push(n)}),r}function Y6(t){for(const e in t)if(Ge(t,e))return!1;return!0}function J6(t){return t.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var K6=$r;const Z6=/^[^\0\t\n\f\r /<=>]+$/;function $r(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",i="";function u(w,O){const A=this;this.tag=w,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(b.length){const P=b[b.length-1];P.text+=A.text}},this.updateParentNodeMediaChildren=function(){b.length&&G6.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},$r.defaults,e),e.parser=Object.assign({},Q6,e.parser);const o=function(w){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(w)>-1};X6.forEach(function(w){o(w)&&!e.allowVulnerableTags&&console.warn(`
183
+
184
+ ⚠️ Your \`allowedTags\` option includes, \`${w}\`, which is inherently
185
+ vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
186
+ Or, to disable this warning, add the \`allowVulnerableTags\` option
187
+ and ensure you are accounting for this risk.
188
+
189
+ `)});const a=e.nonTextTags||["script","style","textarea","option"];let s,l;e.allowedAttributes&&(s={},l={},Rt(e.allowedAttributes,function(w,O){s[O]=[];const A=[];w.forEach(function(P){typeof P=="string"&&P.indexOf("*")>=0?A.push(Ys(P).replace(/\\\*/g,".*")):s[O].push(P)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},d={};Rt(e.allowedClasses,function(w,O){if(s&&(Ge(s,O)||(s[O]=[]),s[O].push("class")),c[O]=w,Array.isArray(w)){const A=[];c[O]=[],d[O]=[],w.forEach(function(P){typeof P=="string"&&P.indexOf("*")>=0?A.push(Ys(P).replace(/\\\*/g,".*")):P instanceof RegExp?d[O].push(P):c[O].push(P)}),A.length&&(h[O]=new RegExp("^("+A.join("|")+")$"))}});const f={};let g;Rt(e.transformTags,function(w,O){let A;typeof w=="function"?A=w:typeof w=="string"&&(A=$r.simpleTransform(w)),O==="*"?g=A:f[O]=A});let m,b,y,v,E,C,N=!1;R();const k=new z6.Parser({onopentag:function(w,O){if(e.onOpenTag&&e.onOpenTag(w,O),e.enforceHtmlBoundary&&w==="html"&&R(),E){C++;return}const A=new u(w,O);b.push(A);let P=!1;const B=!!A.text;let U;if(Ge(f,w)&&(U=f[w](w,O),A.attribs=O=U.attribs,U.text!==void 0&&(A.innerText=U.text),w!==U.tagName&&(A.name=w=U.tagName,v[m]=U.tagName)),g&&(U=g(w,O),A.attribs=O=U.attribs,w!==U.tagName&&(A.name=w=U.tagName,v[m]=U.tagName)),(!o(w)||e.disallowedTagsMode==="recursiveEscape"&&!Y6(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(P=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&a.indexOf(w)!==-1&&(E=!0,C=1)),m++,P){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!B){const X=D(A.innerText);e.textFilter?n+=e.textFilter(X,w):n+=X,N=!0}return}i=n,n=""}n+="<"+w,w==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),P&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Rt(O,function(X,V){n+=" "+V+'="'+D(X||"",!0)+'"'}):(!s||Ge(s,w)||s["*"])&&Rt(O,function(X,V){if(!Z6.test(V)){delete A.attribs[V];return}if(X===""&&!e.allowedEmptyAttributes.includes(V)&&(e.nonBooleanAttributes.includes(V)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[V];return}let lr=!1;if(!s||Ge(s,w)&&s[w].indexOf(V)!==-1||s["*"]&&s["*"].indexOf(V)!==-1||Ge(l,w)&&l[w].test(V)||l["*"]&&l["*"].test(V))lr=!0;else if(s&&s[w]){for(const G of s[w])if(U6(G)&&G.name&&G.name===V){lr=!0;let W="";if(G.multiple===!0){const Pe=X.split(" ");for(const we of Pe)G.values.indexOf(we)!==-1&&(W===""?W=we:W+=" "+we)}else G.values.indexOf(X)>=0&&(W=X);X=W}}if(lr){if(e.allowedSchemesAppliedToAttributes.indexOf(V)!==-1&&M(w,X)){delete A.attribs[V];return}if(w==="script"&&V==="src"){let G=!0;try{const W=L(X);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Pe=(e.allowedScriptHostnames||[]).find(function(pe){return pe===W.url.hostname}),we=(e.allowedScriptDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=Pe||we}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(w==="iframe"&&V==="src"){let G=!0;try{const W=L(X);if(W.isRelativeUrl)G=Ge(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Pe=(e.allowedIframeHostnames||[]).find(function(pe){return pe===W.url.hostname}),we=(e.allowedIframeDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=Pe||we}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(V==="srcset")try{let G=V6(X);if(G.forEach(function(W){M("srcset",W.url)&&(W.evil=!0)}),G=Ks(G,function(W){return!W.evil}),G.length)X=J6(Ks(G,function(W){return!W.evil})),A.attribs[V]=X;else{delete A.attribs[V];return}}catch{delete A.attribs[V];return}if(V==="class"){const G=c[w],W=c["*"],Pe=h[w],we=d[w],pe=d["*"],Yr=h["*"],cr=[Pe,Yr].concat(we,pe).filter(function(mt){return mt});if(G&&W?X=I(X,Js(G,W),cr):X=I(X,G||W,cr),!X.length){delete A.attribs[V];return}}if(V==="style"){if(e.parseStyleAttributes)try{const G=W6(w+" {"+X+"}",{map:!1}),W=S(G,e.allowedStyles);if(X=T(W),X.length===0){delete A.attribs[V];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+w+" {"+X+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete A.attribs[V];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+V,X&&X.length?n+='="'+D(X,!0)+'"':e.allowedEmptyAttributes.includes(V)&&(n+='=""')}else delete A.attribs[V]}),e.selfClosing.indexOf(w)!==-1?n+=" />":(n+=">",A.innerText&&!B&&!e.textFilter&&(n+=D(A.innerText),N=!0)),P&&(n=i+D(n),i=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(w){if(E)return;const O=b[b.length-1];let A;if(O&&(A=O.tag,w=O.innerText!==void 0?O.innerText:w),e.disallowedTagsMode==="completelyDiscard"&&!o(A))w="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=w;else if(!N){const P=D(w,!1);e.textFilter?n+=e.textFilter(P,A):n+=P}if(b.length){const P=b[b.length-1];P.text+=w}},onclosetag:function(w,O){if(e.onCloseTag&&e.onCloseTag(w,O),E)if(C--,!C)E=!1;else return;const A=b.pop();if(!A)return;if(A.tag!==w){b.push(A);return}E=e.enforceHtmlBoundary?w==="html":!1,m--;const P=y[m];if(P){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}i=n,n=""}if(v[m]&&(w=v[m],delete v[m]),e.exclusiveFilter){const B=e.exclusiveFilter(A);if(B==="excludeTag"){P&&(n=i,i=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(B){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(w)!==-1||O&&!o(w)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){P&&(n=i,i="");return}n+="</"+w+">",P&&(n=i+D(n),i=""),N=!1}},e.parser);return k.write(t),k.end(),n;function R(){n="",m=0,b=[],y={},v={},E=!1,C=0}function D(w,O){return typeof w!="string"&&(w=w+""),e.parser.decodeEntities&&(w=w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(w=w.replace(/"/g,"&quot;"))),w=w.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(w=w.replace(/"/g,"&quot;")),w}function M(w,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const B=O.indexOf("<!--");if(B===-1)break;const U=O.indexOf("-->",B+4);if(U===-1)break;O=O.substring(0,B)+O.substring(U+3)}const A=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const P=A[1].toLowerCase();return Ge(e.allowedSchemesByTag,w)?e.allowedSchemesByTag[w].indexOf(P)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(P)===-1}function L(w){if(w=w.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),w.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let B=0;B<100;B++)O+=`/${B}`;const A=new URL(w,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function S(w,O){if(!O)return w;const A=w.nodes[0];let P;return O[A.selector]&&O["*"]?P=Js(O[A.selector],O["*"]):P=O[A.selector]||O["*"],P&&(w.nodes[0].nodes=A.nodes.reduce(_(P),[])),w}function T(w){return w.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function _(w){return function(O,A){return Ge(w,A.prop)&&w[A.prop].some(function(B){return B.test(A.value)})&&O.push(A),O}}function I(w,O,A){return O?(w=w.split(/\s+/),w.filter(function(P){return O.indexOf(P)!==-1||A.some(function(B){return B.test(P)})}).join(" ")):w}}const Q6={decodeEntities:!0};$r.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};$r.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,i){let u;if(r)for(u in e)i[u]=e[u];else i=e;return{tagName:t,attribs:i}}};const Jd=Kn(K6),e4=[{command:"bold",icon:K0,label:"Bold"},{command:"italic",icon:tf,label:"Italic"},{command:"underline",icon:of,label:"Underline"},{command:"strikeThrough",icon:uf,label:"Strikethrough"},{command:"insertUnorderedList",icon:nf,label:"Bullet List"},{command:"insertOrderedList",icon:rf,label:"Numbered List"}],t4={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},r4=({label:t,value:e,onChange:r})=>{const n=j.useRef(null),[i,u]=j.useState(!1),[o,a]=j.useState(""),s=j.useRef(null);j.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=b=>{var y;document.execCommand(b,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const b=n.current.innerHTML,y=Jd(b,t4);r(y)}},h=()=>{const b=window.getSelection();b&&b.rangeCount>0&&(s.current=b.getRangeAt(0))},d=()=>{if(s.current){const b=window.getSelection();b==null||b.removeAllRanges(),b==null||b.addRange(s.current)}},f=()=>{h(),u(!0)},g=()=>{var b;if(o){d();let y=o.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}u(!1),a(""),(b=n.current)==null||b.focus()},m=b=>{try{return document.queryCommandState(b)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(_r,{children:[e4.map(({command:b,icon:y,label:v})=>p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:E=>{E.preventDefault(),l(b)},className:`p-1.5 rounded hover:bg-background transition-colors ${m(b)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(y,{className:"h-3.5 w-3.5"})})}),p.jsx(Ct,{side:"top",children:p.jsx("p",{children:v})})]},b)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Ut,{children:[p.jsx(Vt,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:b=>{b.preventDefault(),f()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(dl,{className:"h-3.5 w-3.5"})})}),p.jsx(Ct,{side:"top",children:p.jsx("p",{children:"Insert Link"})})]})]})}),p.jsx("div",{ref:n,contentEditable:!0,onInput:c,onBlur:c,className:"min-h-[80px] max-h-[200px] overflow-y-auto p-2 text-xs rounded-b border border-input bg-background focus:outline-none focus:ring-1 focus:ring-ring prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline",style:{wordBreak:"break-word"}}),i&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:p.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[p.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),p.jsx("input",{type:"url",value:o,onChange:b=>a(b.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),g()),b.key==="Escape"&&(u(!1),a(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{u(!1),a("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:g,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},n4={allowedTags:["b","i","u","s","strong","em","ul","ol","li","br","p","a","span"],allowedAttributes:{a:["href","target"],span:["style"]},allowedStyles:{span:{"text-decoration":[/^line-through$/]}}},Go=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:i="inherit",lineHeight:u={desktop:150},letterSpacing:o={desktop:0},textAlign:a="left",color:s="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:d=100})=>{const f=Ot(),g=Gn(),{connectors:{connect:m,drag:b},isActive:y}=ee(D=>({isActive:D.events.selected})),v=$n(t,g),E=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`,C=Je(r,f,16),N=Je(u,f,150)/100,k=Je(o,f,0),R=/<[^>]+>/.test(v);return p.jsx("div",{ref:D=>D&&m(b(D)),className:`cursor-move ${y?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${C}px`,fontWeight:n,fontFamily:i,lineHeight:N,letterSpacing:`${k}px`,textAlign:a,color:s,margin:E,textDecoration:c,textTransform:h,opacity:d/100},children:e||R?p.jsx("div",{dangerouslySetInnerHTML:{__html:Jd($n(e||v,g),n4)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):p.jsx("p",{children:v})})},i4=()=>{const{actions:{setProp:t},props:e}=ee(n=>({props:n.data.props})),r=typeof e.margin=="object"&&!("desktop"in e.margin)?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(q,{title:"Content",defaultOpen:!0,children:p.jsx(r4,{label:"Text",value:e.html??e.text,onChange:n=>t(i=>{i.html=null,i.text=n})})}),p.jsxs(q,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(i=>i.fontFamily=n)}),p.jsx(Ln,{label:"Size",values:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(i=>i.fontWeight=n)}),p.jsx(Mn,{label:"Line Height",values:e.lineHeight,onChange:n=>t(i=>i.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Ln,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(i=>i.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(Le,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Fu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Uu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)}),p.jsx(J,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(i=>i.textTransform=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(i=>i.textDecoration=n)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(Ae,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(i=>i.color=n)}),p.jsx(Mn,{label:"Opacity",values:e.opacity,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(xe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})}),p.jsx(q,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx($c,{})})]})};Go.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{top:0,right:0,bottom:0,left:0},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:i4}};const Xo=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:i="#ffffff",borderColor:u="#FF6B35",borderWidth:o=0,borderRadius:a=8,fontWeight:s="500",fontSize:l="auto",width:c="auto",paddingX:h=16,paddingY:d=10,margin:f={top:0,right:0,bottom:0,left:0},boxShadow:g="none",opacity:m=100})=>{const{connectors:{connect:b,drag:y},isActive:v}=ee(_=>({isActive:_.events.selected})),E={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},C=E[r]||E.md,N=h==="auto"?C.px:h,k=d==="auto"?C.py:d,R=l==="auto"?C.fs:l,D=typeof f=="object"?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:`${f}px`,M=e==="outline"?"transparent":n,L=e==="outline"?n:i,S=e==="outline"?2:o,T=e==="outline"?n:u;return p.jsx("button",{ref:_=>_&&b(y(_)),className:`cursor-move transition-all hover:opacity-90 ${v?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:M,color:L,borderWidth:`${S}px`,borderColor:T,borderStyle:"solid",borderRadius:`${a}px`,fontWeight:s,fontSize:`${R}px`,padding:`${k}px ${N}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:g==="none"?"none":g,opacity:m/100},children:t})},u4=()=>{const{actions:{setProp:t},props:e}=ee(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(q,{title:"Content",defaultOpen:!0,children:p.jsx(pt,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)})}),p.jsxs(q,{title:"Style",defaultOpen:!0,children:[p.jsx(Le,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(i=>i.variant=n)}),p.jsx(Le,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(i=>i.size=n)}),p.jsx(Le,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(i=>i.width=n)})]}),p.jsxs(q,{title:"Colors",defaultOpen:!0,children:[p.jsx(Ae,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(i=>i.backgroundColor=n)}),p.jsx(Ae,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(i=>i.textColor=n)}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(q,{title:"Typography",defaultOpen:!1,children:[p.jsx(ae,{label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:10,max:32}),p.jsx(J,{label:"Weight",value:e.fontWeight||"500",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(i=>i.fontWeight=n)})]}),p.jsxs(q,{title:"Padding",defaultOpen:!1,children:[p.jsx(ae,{label:"Horizontal",value:e.paddingX||16,onChange:n=>t(i=>i.paddingX=n),max:64}),p.jsx(ae,{label:"Vertical",value:e.paddingY||10,onChange:n=>t(i=>i.paddingY=n),max:48})]}),p.jsxs(q,{title:"Border",defaultOpen:!1,children:[p.jsx(ae,{label:"Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:50}),p.jsx(ae,{label:"Width",value:e.borderWidth||0,onChange:n=>t(i=>i.borderWidth=n),max:10}),p.jsx(Ae,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(i=>i.borderColor=n)})]}),p.jsx(q,{title:"Effects",defaultOpen:!1,children:p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 2px 4px rgba(0,0,0,0.1)",label:"Small"},{value:"0 4px 12px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 8px 24px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(i=>i.boxShadow=n)})}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(xe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Xo.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{top:0,right:0,bottom:0,left:0},boxShadow:"none",opacity:100},related:{settings:u4}};const wr={1:{desktop:48,small:42,tablet:36,mobile:28},2:{desktop:36,small:32,tablet:28,mobile:24},3:{desktop:28,small:26,tablet:24,mobile:20},4:{desktop:22,small:20,tablet:18,mobile:16}},Yo=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:i="700",fontFamily:u="inherit",fontSize:o="auto",lineHeight:a={desktop:120},letterSpacing:s={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var D,M,L;const d=Ot(),f=Gn(),{connectors:{connect:g,drag:m},isActive:b}=ee(S=>({isActive:S.events.selected})),y=$n(t,f),v=`h${e}`;let E;o==="auto"?E=((D=wr[e])==null?void 0:D[d])||((M=wr[e])==null?void 0:M.desktop)||36:E=Je(o,d,((L=wr[e])==null?void 0:L.desktop)||36);const C=Je(a,d,120)/100,N=Je(s,d,-.5),k=Je(h,d,100),R=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx(v,{ref:S=>S&&g(m(S)),className:`cursor-move ${b?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:i,fontFamily:u,fontSize:`${E}px`,lineHeight:C,letterSpacing:`${N}px`,margin:R,textTransform:c,opacity:k/100},children:y})},o4=()=>{var u;const t=Ot(),{actions:{setProp:e},props:r}=ee(o=>({props:o.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},i=()=>{var o;return r.fontSize==="auto"?((o=wr[r.level||2])==null?void 0:o[t])||36:Je(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Content",defaultOpen:!0,children:[p.jsx(pt,{label:"Text",value:r.text,onChange:o=>e(a=>a.text=o)}),p.jsx(Le,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:o=>e(a=>{a.level=o,a.fontSize})})]}),p.jsxs(q,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:o=>e(a=>a.fontFamily=o)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(o=>o.fontSize=o.fontSize==="auto"?{desktop:i()}:"auto"),className:`text-xs px-2 py-0.5 rounded ${r.fontSize==="auto"?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:r.fontSize==="auto"?"Auto (Responsive)":"Custom"})]}),r.fontSize!=="auto"&&p.jsx(Ln,{label:"Size",values:r.fontSize,onChange:o=>e(a=>a.fontSize=o),min:12,max:120,defaultValue:((u=wr[r.level||2])==null?void 0:u.desktop)||36})]}),p.jsx(J,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:o=>e(a=>a.fontWeight=o)}),p.jsx(Mn,{label:"Line Height",values:r.lineHeight,onChange:o=>e(a=>a.lineHeight=o),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Ln,{label:"Letter Spacing",values:r.letterSpacing,onChange:o=>e(a=>a.letterSpacing=o),min:-5,max:20,defaultValue:-.5}),p.jsx(Le,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(zu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Fu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Uu,{className:"h-3 w-3"})}],onChange:o=>e(a=>a.textAlign=o)}),p.jsx(J,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:o=>e(a=>a.textTransform=o)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(Ae,{label:"Text Color",value:r.color||"#000000",onChange:o=>e(a=>a.color=o)}),p.jsx(Mn,{label:"Opacity",values:r.opacity,onChange:o=>e(a=>a.opacity=o),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(xe,{label:"Margin",values:n,onChange:o=>e(a=>a.margin=o)})}),p.jsx(q,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx($c,{})})]})};Yo.craft={displayName:"Heading",props:{text:"Heading",level:2,textAlign:"left",color:"#000000",fontWeight:"700",fontFamily:"inherit",fontSize:"auto",lineHeight:{desktop:120},letterSpacing:{desktop:-.5},margin:{top:0,right:0,bottom:16,left:0},textTransform:"none",opacity:{desktop:100}},related:{settings:o4}};const Jo=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:i="none",objectFit:u="cover",borderRadius:o=8,margin:a={top:0,right:0,bottom:0,left:0},opacity:s=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:h},isActive:d}=ee(g=>({isActive:g.events.selected})),f=typeof a=="object"?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:`${a}px`;return p.jsx("img",{ref:g=>g&&c(h(g)),src:t,alt:e,className:`cursor-move ${d?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:i==="none"?"none":`${i}px`,objectFit:u,borderRadius:`${o}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},a4=()=>{const{actions:{setProp:t},props:e}=ee(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Source",defaultOpen:!0,children:[p.jsx(pt,{label:"Image URL",value:e.src,onChange:n=>t(i=>i.src=n)}),p.jsx(pt,{label:"Alt Text",value:e.alt,onChange:n=>t(i=>i.alt=n)})]}),p.jsxs(q,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(i=>i.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(ae,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(i=>i.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(ae,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(i=>i.objectFit=n)})]}),p.jsxs(q,{title:"Style",defaultOpen:!1,children:[p.jsx(ae,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(i=>i.boxShadow=n)})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(xe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Jo.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:a4}};const Ko=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:i={top:16,right:0,bottom:16,left:0},opacity:u=100})=>{const{connectors:{connect:o,drag:a},isActive:s}=ee(c=>({isActive:c.events.selected})),l=typeof i=="object"?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:`${i}px`;return p.jsx("hr",{ref:c=>c&&o(a(c)),className:`cursor-move border-0 ${s?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:l,opacity:u/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},s4=()=>{const{actions:{setProp:t},props:e}=ee(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Style",defaultOpen:!0,children:[p.jsx(J,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(i=>i.style=n)}),p.jsx(Ae,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(i=>i.color=n)}),p.jsx(ae,{label:"Thickness",value:e.height||1,onChange:n=>t(i=>i.height=n),min:1,max:20}),p.jsx(J,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(i=>i.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(ae,{label:"Width %",value:e.width,onChange:n=>t(i=>i.width=n),min:10,max:100,unit:"%"})]}),p.jsx(q,{title:"Spacing",defaultOpen:!0,children:p.jsx(xe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Ko.craft={displayName:"Divider",props:{color:"#e5e5e5",height:1,width:"full",style:"solid",margin:{top:16,right:0,bottom:16,left:0},opacity:100},related:{settings:s4}};const Zo=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{const{connectors:{connect:n,drag:i},isActive:u}=ee(o=>({isActive:o.events.selected}));return p.jsxs("div",{ref:o=>o&&n(i(o)),className:`cursor-move w-full relative group ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[p.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[p.jsx("span",{children:"↕"}),p.jsxs("span",{children:[t,"px"]})]})}),p.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),p.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},l4=()=>{const{actions:{setProp:t},props:e}=ee(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(q,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(i=>i.height=n[r])}}),p.jsx(ae,{label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Zo.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:l4}};const c4=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function d4(){const t=localStorage.getItem("tokens");if(t){const{accessToken:e}=JSON.parse(t);return{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}return{"Content-Type":"application/json"}}async function f4(t,e={}){const r=await fetch(`${c4}${t}`,{...e,headers:{...d4(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function p4(t,e){return(await f4(`/videos/${t}/${e||""}`)).data}function h4(t){const e=x.useRef({value:t,previous:t});return x.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Ni="Checkbox",[b4]=si(Ni),[g4,Qo]=b4(Ni);function m4(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:i,disabled:u,form:o,name:a,onCheckedChange:s,required:l,value:c="on",internal_do_not_use_render:h}=t,[d,f]=Eo({prop:r,defaultProp:i??!1,onChange:s,caller:Ni}),[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useRef(!1),E=g?!!o||!!g.closest("form"):!0,C={checked:d,disabled:u,setChecked:f,control:g,setControl:m,name:a,form:o,value:c,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:at(i)?!1:i,isFormControl:E,bubbleInput:b,setBubbleInput:y};return p.jsx(g4,{scope:e,...C,children:y4(h)?h(C):n})}var Kd="CheckboxTrigger",Zd=x.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},i)=>{const{control:u,value:o,disabled:a,checked:s,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:d,isFormControl:f,bubbleInput:g}=Qo(Kd,t),m=qe(i,c),b=x.useRef(s);return x.useEffect(()=>{const y=u==null?void 0:u.form;if(y){const v=()=>h(b.current);return y.addEventListener("reset",v),()=>y.removeEventListener("reset",v)}},[u,h]),p.jsx(je.button,{type:"button",role:"checkbox","aria-checked":at(s)?"mixed":s,"aria-required":l,"data-state":n0(s),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:m,onKeyDown:Ce(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Ce(r,y=>{h(v=>at(v)?!0:!v),g&&f&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});Zd.displayName=Kd;var ea=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:u,required:o,disabled:a,value:s,onCheckedChange:l,form:c,...h}=t;return p.jsx(m4,{__scopeCheckbox:r,checked:i,defaultChecked:u,disabled:a,required:o,onCheckedChange:l,name:n,form:c,value:s,internal_do_not_use_render:({isFormControl:d})=>p.jsxs(p.Fragment,{children:[p.jsx(Zd,{...h,ref:e,__scopeCheckbox:r}),d&&p.jsx(r0,{__scopeCheckbox:r})]})})});ea.displayName=Ni;var Qd="CheckboxIndicator",e0=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,u=Qo(Qd,r);return p.jsx(pi,{present:n||at(u.checked)||u.checked===!0,children:p.jsx(je.span,{"data-state":n0(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});e0.displayName=Qd;var t0="CheckboxBubbleInput",r0=x.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:u,defaultChecked:o,required:a,disabled:s,name:l,value:c,form:h,bubbleInput:d,setBubbleInput:f}=Qo(t0,t),g=qe(r,f),m=h4(u),b=yc(n);x.useEffect(()=>{const v=d;if(!v)return;const E=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(E,"checked").set,k=!i.current;if(m!==u&&N){const R=new Event("click",{bubbles:k});v.indeterminate=at(u),N.call(v,at(u)?!1:u),v.dispatchEvent(R)}},[d,m,u,i]);const y=x.useRef(at(u)?!1:u);return p.jsx(je.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:a,disabled:s,name:l,value:c,form:h,...e,tabIndex:-1,ref:g,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});r0.displayName=t0;function y4(t){return typeof t=="function"}function at(t){return t==="indeterminate"}function n0(t){return at(t)?"indeterminate":t?"checked":"unchecked"}const i0=x.forwardRef(({className:t,...e},r)=>p.jsx(ea,{ref:r,className:ye("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(e0,{className:ye("flex items-center justify-center text-current"),children:p.jsx(Vu,{className:"h-4 w-4"})})}));i0.displayName=ea.displayName;const v4=({onDownload:t,disabled:e=!1})=>{const[r,n]=j.useState(!0),[i,u]=j.useState(!1),o=()=>{r&&t&&!i&&(t(),u(!0))};return p.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[p.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:p.jsx(Sr,{disabled:!r||i||e,onClick:o,className:"w-full",children:i?p.jsxs(p.Fragment,{children:[p.jsx(Vu,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(ef,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-start space-x-2 cursor-pointer mt-4",children:[p.jsx(i0,{checked:r,onCheckedChange:a=>n(a===!0),className:"mt-0.5"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",p.jsx("a",{href:"https://myracereel.com/terms-of-service",className:"underline hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})]})]})},x4=(t,e)=>{if(typeof t!="object"||t===null)return t;const r=["mobile","tablet","small","desktop"],n=r.indexOf(e);for(let i=n;i>=0;i--)if(t[r[i]]!==void 0)return t[r[i]];return t.desktop??t.mobile??0},w4=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const i=j.useRef(null),{data:u,isLoading:o,error:a}=c0.useQuery({queryKey:["video",t,e],queryFn:()=>p4(t,e),enabled:!!t});if(o)return p.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:p.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(a||!u)return r?p.jsxs("div",{className:"flex flex-col items-center gap-1 justify-center py-6 px-4 bg-muted/50 rounded-lg border border-dashed border-muted-foreground/30",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(Z0,{className:"h-5 w-5 text-muted-foreground"}),p.jsx("p",{className:"text-muted-foreground text-sm font-medium",children:"Video not found (404)"})]}),p.jsx("p",{className:"text-muted-foreground/70 text-xs",children:"This will be hidden on the live page"})]}):null;const{videoFromIrewind:s}=u,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=s.mp4_hr_url,c.download=`${s.name||e}-video`,c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c)}catch(c){console.error("Download failed:",c)}};return p.jsx(Hr,{children:p.jsx(Fr,{children:p.jsx("div",{className:"w-full",children:p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:n}),p.jsxs("h3",{className:"text-lg font-semibold text-foreground mb-3",children:[s.name," (",s.start_no,")"]}),p.jsxs("video",{ref:i,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[p.jsx("source",{src:s.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(v4,{onDownload:l,disabled:r})]})})})})},ta=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:i="none"})=>{const u=Ot(),o=Gn(),{connectors:{connect:a,drag:s},selected:l}=ee(b=>({selected:b.events.selected})),{enabled:c}=bo(b=>({enabled:b.options.enabled})),h=x4(t,u),d={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1)"},f={padding:`${h}px`,marginTop:`${e.top}px`,marginRight:`${e.right}px`,marginBottom:`${e.bottom}px`,marginLeft:`${e.left}px`,background:r,borderRadius:`${n}px`,boxShadow:d[i]||"none"},g=(o==null?void 0:o.videos)||[],m=g.length>0;return p.jsx("div",{ref:b=>b&&a(s(b)),style:f,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:m?p.jsx("div",{className:"space-y-6",children:g.map(b=>p.jsx(w4,{locationId:b.locationId,bibId:o==null?void 0:o.bibId,editorEnabled:c,videoTitle:b.name||b.locationId},b.locationId))}):p.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30",children:[p.jsx(cl,{className:"h-10 w-10 text-muted-foreground mb-2"}),p.jsxs("p",{className:"text-muted-foreground text-sm text-center",children:["No video locations available.",p.jsx("br",{}),p.jsx("span",{className:"text-xs",children:"Add videos to your event first."})]})]})})},S4=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:i,boxShadow:u}=ee(a=>({padding:a.data.props.padding,margin:a.data.props.margin,background:a.data.props.background,borderRadius:a.data.props.borderRadius,boxShadow:a.data.props.boxShadow})),o=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return p.jsxs("div",{className:"space-y-1",children:[p.jsx(q,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(q,{title:"Style",children:[p.jsx(ae,{label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:a=>t(s=>s.padding={...s.padding,desktop:a,mobile:a}),min:0,max:100}),p.jsx(ae,{label:"Border Radius",value:i,onChange:a=>t(s=>s.borderRadius=a),min:0,max:50}),p.jsx(Ae,{label:"Background",value:n,onChange:a=>t(s=>s.background=a)}),p.jsx(J,{label:"Shadow",value:u,options:o,onChange:a=>t(s=>s.boxShadow=a)})]}),p.jsx(q,{title:"Spacing",children:p.jsx(xe,{label:"Margin",values:r,onChange:a=>t(s=>s.margin=a)})})]})};ta.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{top:0,right:0,bottom:0,left:0},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:S4}};const ra=({columns:t=2,gap:e=16,padding:r={top:0,right:0,bottom:0,left:0},margin:n={top:0,right:0,bottom:0,left:0},alignItems:i="stretch",children:u})=>{const{connectors:{connect:o,drag:a},isActive:s}=ee(h=>({isActive:h.events.selected})),l=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`,c=typeof n=="object"?`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`:`${n}px`;return p.jsx("div",{ref:h=>h&&o(a(h)),className:`cursor-move w-full ${s?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:l,margin:c,alignItems:i},children:u})},C4=()=>{const{actions:{setProp:t},props:e}=ee(i=>({props:i.data.props})),r=typeof e.padding=="object"?e.padding:{top:0,right:0,bottom:0,left:0},n=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Layout",defaultOpen:!0,children:[p.jsx(Le,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:i=>t(u=>u.columns=i)}),p.jsx(ae,{label:"Gap",value:e.gap||16,onChange:i=>t(u=>u.gap=i),max:64}),p.jsx(J,{label:"Align Items",value:e.alignItems||"stretch",options:[{value:"stretch",label:"Stretch"},{value:"start",label:"Top"},{value:"center",label:"Center"},{value:"end",label:"Bottom"}],onChange:i=>t(u=>u.alignItems=i)})]}),p.jsxs(q,{title:"Spacing",defaultOpen:!1,children:[p.jsx(xe,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),p.jsx(xe,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]})]})};ra.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},alignItems:"stretch"},related:{settings:C4}};const na=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:i="400",color:u="#0066cc",hoverColor:o="#0052a3",textDecoration:a="underline",textAlign:s="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const{connectors:{connect:h,drag:d},isActive:f}=ee(m=>({isActive:m.events.selected})),g=typeof l=="object"?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx("a",{ref:m=>m&&h(d(m)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:m=>m.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${f?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:i,color:u,textDecoration:a,textAlign:s,margin:g,opacity:c/100,display:"block"},children:t})},E4=()=>{const{actions:{setProp:t},props:e}=ee(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Content",defaultOpen:!0,children:[p.jsx(pt,{label:"Text",value:e.text,onChange:n=>t(i=>i.text=n)}),p.jsx(pt,{label:"URL",value:e.url,onChange:n=>t(i=>i.url=n)}),p.jsx(J,{label:"Open in",value:e.target||"_self",options:[{value:"_self",label:"Same Tab"},{value:"_blank",label:"New Tab"}],onChange:n=>t(i=>i.target=n)})]}),p.jsxs(q,{title:"Typography",defaultOpen:!0,children:[p.jsx(ae,{label:"Font Size",value:e.fontSize||16,onChange:n=>t(i=>i.fontSize=n),min:10,max:48}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(i=>i.fontWeight=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(i=>i.textDecoration=n)}),p.jsx(Le,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Fu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Uu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(Ae,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(i=>i.color=n)}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(xe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};na.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{top:0,right:0,bottom:0,left:0},opacity:100},related:{settings:E4}};const ia=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:i="none",objectFit:u="cover",borderRadius:o=8,margin:a={top:0,right:0,bottom:0,left:0},opacity:s=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:h},isActive:d}=ee(g=>({isActive:g.events.selected})),f=typeof a=="object"?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:`${a}px`;return p.jsx("img",{ref:g=>g&&c(h(g)),src:t,alt:e,className:`cursor-move ${d?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:i==="none"?"none":`${i}px`,objectFit:u,borderRadius:`${o}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},T4=()=>{const{actions:{setProp:t},props:e}=ee(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Source",defaultOpen:!0,children:[p.jsx(pt,{label:"Image URL",value:e.src,onChange:n=>t(i=>i.src=n)}),p.jsx(pt,{label:"Alt Text",value:e.alt,onChange:n=>t(i=>i.alt=n)})]}),p.jsxs(q,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(i=>i.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(ae,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(i=>i.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(ae,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(i=>i.objectFit=n)})]}),p.jsxs(q,{title:"Style",defaultOpen:!1,children:[p.jsx(ae,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),p.jsx(mi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(i=>i.boxShadow=n)})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(xe,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};ia.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:T4}};const Wi={mobile:{width:375,label:"Mobile",icon:Yu},tablet:{width:768,label:"Tablet",icon:Ju},small:{width:1024,label:"Small",icon:Xu},desktop:{width:1440,label:"Desktop",icon:Ku}},A4=({editorState:t,deviceSize:e})=>p.jsx(Ql,{resolver:{Body,Wrapper:Hr,Section:yi,Container:Fr,Text:Go,ButtonComponent:Xo,Heading:Yo,Image:Jo,Img:ia,Divider:Ko,Spacer:Zo,Video:ta,Columns:ra,Link:na},enabled:!1,children:p.jsx(tc,{value:e,children:p.jsx(N4,{editorState:t})})}),N4=({editorState:t})=>{const{actions:e}=bo();return j.useEffect(()=>{if(t&&(e!=null&&e.deserialize))try{e.deserialize(t)}catch(r){console.error("Failed to deserialize editor state:",r)}},[t,e]),p.jsx(Xl,{})},O4=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var a,s;const[i,u]=j.useState("desktop");if(j.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t,e]),!t)return null;const o=((a=Wi[i])==null?void 0:a.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col",children:[p.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(s=Wi[i])==null?void 0:s.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Wi).map(([l,{label:c,icon:h}])=>p.jsxs(Sr,{variant:"ghost",size:"sm",onClick:()=>u(l),className:yf("h-8 px-3 gap-2",i===l&&"bg-background shadow-sm"),children:[p.jsx(h,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:c})]},l))}),p.jsx(Sr,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(af,{className:"h-5 w-5"})})]}),p.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${o}px`,maxWidth:"100%"},children:p.jsx(Hu,{value:r,children:n?p.jsx(A4,{editorState:n,deviceSize:i}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},u0=j.createContext({fetchVideoByLocation:null}),j4=({children:t,fetchVideoByLocation:e})=>p.jsx(u0.Provider,{value:{fetchVideoByLocation:e},children:t}),_4=()=>j.useContext(u0);exports.ApiConfigProvider=j4;exports.Button=Sr;exports.ButtonComponent=Xo;exports.ButtonGroup=Le;exports.Card=Bu;exports.CardContent=qu;exports.ChevronDown=Wu;exports.ChevronRight=Gu;exports.ColorInput=Ae;exports.Columns=ra;exports.Container=Fr;exports.ContainerSettings=Ao;exports.DEVICE_ORDER=Ee;exports.De=Xl;exports.DeviceSizeProvider=tc;exports.Divider=Ko;exports.EventDataProvider=Hu;exports.Film=cl;exports.Heading=Yo;exports.Image=Jo;exports.Img=ia;exports.Link=dl;exports.Link$1=na;exports.Monitor=Xu;exports.Ne=ee;exports.NumberInput=ae;exports.PageBuilder=G0;exports.Pe=bo;exports.Presence=pi;exports.PreviewModal=O4;exports.Primitive=je;exports.Section=yi;exports.SelectInput=J;exports.SettingsSection=q;exports.Smartphone=Yu;exports.Spacer=Zo;exports.SpacingControl=xe;exports.TEMPLATE_VARIABLES=Nx;exports.Tablet=Ju;exports.Text=Go;exports.Tooltip=Ut;exports.TooltipContent=Ct;exports.TooltipProvider=_r;exports.TooltipTrigger=Vt;exports.Tv=Ku;exports.Video=ta;exports.Wrapper=Hr;exports.clsx=Kt;exports.cn=ye;exports.composeEventHandlers=Ce;exports.composeRefs=Xn;exports.createContextScope=si;exports.createLucideIcon=ue;exports.cva=pl;exports.getPlaceholderPaths=Ax;exports.getResponsiveValue=Je;exports.hasTemplatePlaceholders=Tx;exports.ke=Ht;exports.processTemplate=$n;exports.useApiConfig=_4;exports.useCallbackRef=Br;exports.useComposedRefs=qe;exports.useControllableState=Eo;exports.useDeviceSize=Ot;exports.useEventData=Gn;exports.useId=uc;exports.useLayoutEffect2=ct;exports.ut=Ql;