@tech_carthagos/page-builder 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CraftEditor-D2EBrpQi.js → CraftEditor-DSeEURkG.js} +1 -1
- package/dist/{CraftEditor-bE3h6p8p.cjs → CraftEditor-Do2rCE7b.cjs} +1 -1
- package/dist/{index-C_JmCif3.js → index-CDGYhfT7.js} +2551 -2500
- package/dist/index-Co66TNSy.cjs +189 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist-types/user/Container.d.ts +20 -6
- package/dist-types/user/Container.d.ts.map +1 -1
- package/dist-types/user/ContainerOld.d.ts +53 -12
- package/dist-types/user/ContainerOld.d.ts.map +1 -1
- package/dist-types/user/Div.d.ts +20 -6
- package/dist-types/user/Div.d.ts.map +1 -1
- package/dist-types/user/Wrapper.d.ts +20 -6
- package/dist-types/user/Wrapper.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-Bq79BZ9n.cjs +0 -189
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),j=require("react"),rl=require("react-dom"),h0=require("@tanstack/react-query");function nl(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=nl(j),il=nl(rl);function ul(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=ul(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Qt(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=ul(t))&&(n&&(n+=" "),n+=e);return n}const Bu="-",b0=t=>{const e=m0(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{const o=a.split(Bu);return o[0]===""&&o.length!==1&&o.shift(),al(o,e)||g0(a)},getConflictingClassGroupIds:(a,o)=>{const s=r[a]||[];return o&&n[a]?[...s,...n[a]]:s}}},al=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?al(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const u=t.join(Bu);return(a=e.validators.find(({validator:o})=>o(u)))==null?void 0:a.classGroupId},co=/^\[(.+)\]$/,g0=t=>{if(co.test(t)){const e=co.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},m0=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return v0(Object.entries(t.classGroups),r).forEach(([u,a])=>{Xi(a,n,u,e)}),n},Xi=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const u=i===""?e:fo(e,i);u.classGroupId=r;return}if(typeof i=="function"){if(y0(i)){Xi(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,a])=>{Xi(a,fo(e,u),r,n)})})},fo=(t,e)=>{let r=t;return e.split(Bu).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},y0=t=>t.isThemeGetter,v0=(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(([a,o])=>[e+a,o])):u);return[r,i]}):t,x0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(u,a)=>{r.set(u,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(u){let a=r.get(u);if(a!==void 0)return a;if((a=n.get(u))!==void 0)return i(u,a),a},set(u,a){r.has(u)?r.set(u,a):i(u,a)}}},ol="!",w0=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],u=e.length,a=o=>{const s=[];let l=0,c=0,h;for(let b=0;b<o.length;b++){let y=o[b];if(l===0){if(y===i&&(n||o.slice(b,b+u)===e)){s.push(o.slice(c,b)),c=b+u;continue}if(y==="/"){h=b;continue}}y==="["?l++:y==="]"&&l--}const d=s.length===0?o:o.substring(c),f=d.startsWith(ol),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?o=>r({className:o,parseClassName:a}):a},S0=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},C0=t=>({cache:x0(t.cacheSize),parseClassName:w0(t),...b0(t)}),E0=/\s+/,T0=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,u=[],a=t.trim().split(E0);let o="";for(let s=a.length-1;s>=0;s-=1){const l=a[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){o=l+(o.length>0?" "+o:o);continue}if(m=n(d),!m){o=l+(o.length>0?" "+o:o);continue}g=!1}const b=S0(c).join(":"),y=h?b+ol: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)}o=l+(o.length>0?" "+o:o)}return o};function A0(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=sl(e))&&(n&&(n+=" "),n+=r);return n}const sl=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=sl(t[n]))&&(r&&(r+=" "),r+=e);return r};function N0(t,...e){let r,n,i,u=a;function a(s){const l=e.reduce((c,h)=>h(c),t());return r=C0(l),n=r.cache.get,i=r.cache.set,u=o,o(s)}function o(s){const l=n(s);if(l)return l;const c=T0(s,r);return i(s,c),c}return function(){return u(A0.apply(null,arguments))}}const te=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},ll=/^\[(?:([a-z-]+):)?(.+)\]$/i,O0=/^\d+\/\d+$/,j0=new Set(["px","full","screen"]),_0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P0=/\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$/,k0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,R0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=t=>Mt(t)||j0.has(t)||O0.test(t),it=t=>er(t,"length",F0),Mt=t=>!!t&&!Number.isNaN(Number(t)),ji=t=>er(t,"number",Mt),pr=t=>!!t&&Number.isInteger(Number(t)),D0=t=>t.endsWith("%")&&Mt(t.slice(0,-1)),H=t=>ll.test(t),ut=t=>_0.test(t),L0=new Set(["length","size","percentage"]),M0=t=>er(t,L0,cl),$0=t=>er(t,"position",cl),B0=new Set(["image","url"]),q0=t=>er(t,B0,U0),H0=t=>er(t,"",z0),hr=()=>!0,er=(t,e,r)=>{const n=ll.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},F0=t=>P0.test(t)&&!k0.test(t),cl=()=>!1,z0=t=>R0.test(t),U0=t=>I0.test(t),V0=()=>{const t=te("colors"),e=te("spacing"),r=te("blur"),n=te("brightness"),i=te("borderColor"),u=te("borderRadius"),a=te("borderSpacing"),o=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"),$=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto",H,e],T=()=>[H,e],_=()=>["",ze,it],I=()=>["auto",Mt,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=()=>[Mt,H];return{cacheSize:500,separator:":",theme:{colors:[hr],spacing:[ze,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:[D0,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:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],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",pr,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",pr,H]}],"grid-cols":[{"grid-cols":[hr]}],"col-start-end":[{col:["auto",{span:["full",pr,H]},H]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[hr]}],"row-start-end":[{row:["auto",{span:[pr,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",ji]}],"font-family":[{font:[hr]}],"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",Mt,ji]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,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",ze,it]}],"underline-offset":[{"underline-offset":["auto",ze,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(),$0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",M0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q0]}],"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:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"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":[ze,H]}],"outline-w":[{outline:[ze,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":[ze,it]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ut,H0]}],"shadow-color":[{shadow:[hr]}],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":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"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:[pr,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:[ze,it,ji]}],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"]}}},dl=N0(V0);function ye(...t){return dl(Qt(t))}const qu=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}));qu.displayName="Card";const W0=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("flex flex-col space-y-1.5 p-6",t),...e}));W0.displayName="CardHeader";const G0=x.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:ye("text-2xl font-semibold leading-none tracking-tight",t),...e}));G0.displayName="CardTitle";const X0=x.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:ye("text-sm text-muted-foreground",t),...e}));X0.displayName="CardDescription";const Hu=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("p-6 pt-0",t),...e}));Hu.displayName="CardContent";const Y0=x.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:ye("flex items-center p-6 pt-0",t),...e}));Y0.displayName="CardFooter";function Qr({className:t,...e}){return p.jsx("div",{className:ye("animate-pulse rounded-md bg-muted",t),...e})}const fl=j.createContext(null),Fu=({children:t,value:e})=>p.jsx(fl.Provider,{value:e,children:t}),Yn=()=>j.useContext(fl),J0=j.lazy(()=>Promise.resolve().then(()=>require("./CraftEditor-Do2rCE7b.cjs"))),K0=({initialData:t,onSave:e,onStateChange:r,eventData:n})=>p.jsx(Fu,{value:n,children:p.jsx(j.Suspense,{fallback:p.jsx(qu,{children:p.jsx(Hu,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Qr,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Qr,{className:"h-[500px] w-48"}),p.jsx(Qr,{className:"h-[500px] flex-1"}),p.jsx(Qr,{className:"h-[500px] w-64"})]})]})})}),children:p.jsx(J0,{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 Z0=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pl=(...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 Q0={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 ef=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:u,iconNode:a,...o},s)=>j.createElement("svg",{ref:s,...Q0,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:pl("lucide",i),...o},[...a.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(ef,{ref:u,iconNode:e,className:pl(`lucide-${Z0(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 zu=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 Uu=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 Vu=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 tf=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 Wu=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 Gu=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 Xu=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 rf=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 nf=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 uf=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 hl=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 af=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 bl=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 of=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 sf=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 Yu=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 Ju=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 lf=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 Ku=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 Zu=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 cf=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 df=ue("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function po(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Jn(...t){return e=>{let r=!1;const n=t.map(i=>{const u=po(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():po(t[i],null)}}}}function Be(...t){return x.useCallback(Jn(...t),t)}var ff=Symbol.for("react.lazy"),Sn=x[" use ".trim().toString()];function pf(t){return typeof t=="object"&&t!==null&&"then"in t}function gl(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===ff&&"_payload"in t&&pf(t._payload)}function hf(t){const e=gf(t),r=x.forwardRef((n,i)=>{let{children:u,...a}=n;gl(u)&&typeof Sn=="function"&&(u=Sn(u._payload));const o=x.Children.toArray(u),s=o.find(yf);if(s){const l=s.props.children,c=o.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,{...a,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}var bf=hf("Slot");function gf(t){const e=x.forwardRef((r,n)=>{let{children:i,...u}=r;if(gl(i)&&typeof Sn=="function"&&(i=Sn(i._payload)),x.isValidElement(i)){const a=xf(i),o=vf(u,i.props);return i.type!==x.Fragment&&(o.ref=n?Jn(n,a):a),x.cloneElement(i,o)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var mf=Symbol("radix.slottable");function yf(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===mf}function vf(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]=(...o)=>{const s=u(...o);return i(...o),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function xf(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 ho=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,bo=Qt,ml=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return bo(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:u}=e,a=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=ho(c)||ho(h);return i[l][d]}),o=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,...o}[m]):{...u,...o}[m]===b})?[...l,h,d]:l},[]);return bo(t,a,s,r==null?void 0:r.class,r==null?void 0:r.className)},wf=ml("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"}}),Er=x.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},u)=>{const a=n?bf:"button";return p.jsx(a,{className:ye(wf({variant:e,size:r,className:t})),ref:u,...i})});Er.displayName="Button";function Sf(...t){return dl(Qt(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=Pf[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(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[J]}function Me(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)===kf}(t)||Array.isArray(t)||!!t[wr]||!!(!((e=t.constructor)===null||e===void 0)&&e[wr])||Kn(t)||Zn(t))}function wt(t,e,r){r===void 0&&(r=!1),st(t)===0?(r?Object.keys:ia)(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[J];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Kn(t)?2:Zn(t)?3:0}function Tr(t,e){return st(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function gn(t,e){return st(t)===2?t.get(e):t[e]}function yl(t,e,r){var n=st(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Cf(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Kn(t){return jf&&t instanceof Map}function Zn(t){return _f&&t instanceof Set}function de(t){return t.o||t.t}function Qu(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Rf(t);delete e[J];for(var r=ia(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 ea(t,e){return e===void 0&&(e=!1),ta(t)||xt(t)||!Me(t)||(st(t)>1&&(t.set=t.add=t.clear=t.delete=Ef),Object.freeze(t),e&&wt(t,function(r,n){return ea(n,!0)},!0)),t}function Ef(){ie(2)}function ta(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Re(t){var e=Ji[t];return e||ie(18,t),e}function vl(t,e){Ji[t]||(Ji[t]=e)}function Cn(){return process.env.NODE_ENV==="production"||Ht||ie(0),Ht}function _i(t,e){e&&(Re("Patches"),t.u=[],t.s=[],t.v=e)}function En(t){Yi(t),t.p.forEach(Tf),t.p=null}function Yi(t){t===Ht&&(Ht=t.l)}function go(t){return Ht={p:[],l:Ht,h:t,m:!0,_:0}}function Tf(t){var e=t[J];e.i===0||e.i===1?e.j():e.g=!0}function Pi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Re("ES5").S(e,t,n),n?(r[J].P&&(En(e),ie(4)),Me(t)&&(t=Tn(e,t),e.l||An(e,t)),e.u&&Re("Patches").M(r[J].t,t,e.u,e.s)):t=Tn(e,r,[]),En(e),e.u&&e.v(e.u,e.s),t!==na?t:void 0}function Tn(t,e,r){if(ta(e))return e;var n=e[J];if(!n)return wt(e,function(o,s){return mo(t,n,e,o,s,r)},!0),e;if(n.A!==t)return e;if(!n.P)return An(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Qu(n.k):n.o,u=i,a=!1;n.i===3&&(u=new Set(i),i.clear(),a=!0),wt(u,function(o,s){return mo(t,n,i,o,s,r,a)}),An(t,i,!1),r&&t.u&&Re("Patches").N(n,r,t.u,t.s)}return n.o}function mo(t,e,r,n,i,u,a){if(process.env.NODE_ENV!=="production"&&i===r&&ie(5),xt(i)){var o=Tn(t,i,u&&e&&e.i!==3&&!Tr(e.R,n)?u.concat(n):void 0);if(yl(r,n,o),!xt(o))return;t.m=!1}else a&&r.add(i);if(Me(i)&&!ta(i)){if(!t.h.D&&t._<1)return;Tn(t,i),e&&e.A.l||An(t,i)}}function An(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&ea(e,r)}function ki(t,e){var r=t[J];return(r?de(r):t)[e]}function yo(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 Ge(t){t.P||(t.P=!0,t.l&&Ge(t.l))}function Ri(t){t.o||(t.o=Qu(t.t))}function Ar(t,e,r){var n=Kn(e)?Re("MapSet").F(e,r):Zn(e)?Re("MapSet").T(e,r):t.O?function(i,u){var a=Array.isArray(i),o={i:a?1:0,A:u?u.A:Cn(),P:!1,I:!1,R:{},l:u,t:i,k:null,o:null,j:null,C:!1},s=o,l=Ki;a&&(s=[o],l=vr);var c=Proxy.revocable(s,l),h=c.revoke,d=c.proxy;return o.k=d,o.j=h,d}(e,r):Re("ES5").J(e,r);return(r?r.A:Cn()).p.push(n),n}function Af(t){return xt(t)||ie(22,t),function e(r){if(!Me(r))return r;var n,i=r[J],u=st(r);if(i){if(!i.P&&(i.i<4||!Re("ES5").K(i)))return i.t;i.I=!0,n=vo(r,u),i.I=!1}else n=vo(r,u);return wt(n,function(a,o){i&&gn(i.t,a)===o||yl(n,a,e(o))}),u===3?new Set(n):n}(t)}function vo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qu(t)}function Nf(){function t(n){if(!Me(n))return n;if(Array.isArray(n))return n.map(t);if(Kn(n))return new Map(Array.from(n.entries()).map(function(a){return[a[0],t(a[1])]}));if(Zn(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 Tr(n,wr)&&(i[wr]=n[wr]),i}function e(n){return xt(n)?t(n):n}var r="add";vl("Patches",{$:function(n,i){return i.forEach(function(u){for(var a=u.path,o=u.op,s=n,l=0;l<a.length-1;l++){var c=st(s),h=a[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=gn(s,h))!="object"&&ie(15,a.join("/"))}var d=st(s),f=t(u.value),g=a[a.length-1];switch(o){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,o)}}),n},N:function(n,i,u,a){switch(n.i){case 0:case 4:case 2:return function(o,s,l,c){var h=o.t,d=o.o;wt(o.R,function(f,g){var m=gn(h,f),b=gn(d,f),y=g?Tr(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,a);case 5:case 1:return function(o,s,l,c){var h=o.t,d=o.R,f=o.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,a);case 3:return function(o,s,l,c){var h=o.t,d=o.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,a)}},M:function(n,i,u,a){u.push({op:"replace",path:[],value:i===na?void 0:i}),a.push({op:"replace",path:[],value:n})}})}function Of(){function t(o,s){function l(){this.constructor=o}i(o,s),o.prototype=(l.prototype=s.prototype,new l)}function e(o){o.o||(o.R=new Map,o.o=new Map(o.t))}function r(o){o.o||(o.o=new Set,o.t.forEach(function(s){if(Me(s)){var l=Ar(o.A.h,s,o);o.p.set(s,l),o.o.add(l)}else o.o.add(s)}))}function n(o){o.g&&ie(3,JSON.stringify(de(o)))}var i=function(o,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])})(o,s)},u=function(){function o(l,c){return this[J]={i:2,l:c,A:c?c.A:Cn(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(o,Map);var s=o.prototype;return Object.defineProperty(s,"size",{get:function(){return de(this[J]).size}}),s.has=function(l){return de(this[J]).has(l)},s.set=function(l,c){var h=this[J];return n(h),de(h).has(l)&&de(h).get(l)===c||(e(h),Ge(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[J];return n(c),e(c),Ge(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[J];n(l),de(l).size&&(e(l),Ge(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[J]).forEach(function(d,f){l.call(c,h.get(f),f,h)})},s.get=function(l){var c=this[J];n(c);var h=de(c).get(l);if(c.I||!Me(h)||h!==c.t.get(l))return h;var d=Ar(c.A.h,h,c);return e(c),c.o.set(l,d),d},s.keys=function(){return de(this[J]).keys()},s.values=function(){var l,c=this,h=this.keys();return(l={})[en]=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={})[en]=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[en]=function(){return this.entries()},o}(),a=function(){function o(l,c){return this[J]={i:3,l:c,A:c?c.A:Cn(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(o,Set);var s=o.prototype;return Object.defineProperty(s,"size",{get:function(){return de(this[J]).size}}),s.has=function(l){var c=this[J];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[J];return n(c),this.has(l)||(r(c),Ge(c),c.o.add(l)),this},s.delete=function(l){if(!this.has(l))return!1;var c=this[J];return n(c),r(c),Ge(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},s.clear=function(){var l=this[J];n(l),de(l).size&&(r(l),Ge(l),l.o.clear())},s.values=function(){var l=this[J];return n(l),r(l),l.o.values()},s.entries=function(){var l=this[J];return n(l),r(l),l.o.entries()},s.keys=function(){return this.values()},s[en]=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()},o}();vl("MapSet",{F:function(o,s){return new u(o,s)},T:function(o,s){return new a(o,s)}})}var xo,Ht,ra=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",jf=typeof Map<"u",_f=typeof Set<"u",wo=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",na=ra?Symbol.for("immer-nothing"):((xo={})["immer-nothing"]=!0,xo),wr=ra?Symbol.for("immer-draftable"):"__$immer_draftable",J=ra?Symbol.for("immer-state"):"__$immer_state",en=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Pf={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"},kf=""+Object.prototype.constructor,ia=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Rf=Object.getOwnPropertyDescriptors||function(t){var e={};return ia(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ji={},Ki={get:function(t,e){if(e===J)return t;var r=de(t);if(!Tr(r,e))return function(i,u,a){var o,s=yo(u,a);return s?"value"in s?s.value:(o=s.get)===null||o===void 0?void 0:o.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Me(n)?n:n===ki(t.t,e)?(Ri(t),t.o[e]=Ar(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=yo(de(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var i=ki(de(t),e),u=i==null?void 0:i[J];if(u&&u.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Cf(r,i)&&(r!==void 0||Tr(t.t,e)))return!0;Ri(t),Ge(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 ki(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ri(t),Ge(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)}},vr={};wt(Ki,function(t,e){vr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),vr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ie(13),vr.set.call(this,t,e,void 0)},vr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ie(14),Ki.set.call(this,t[0],e,r,t[0])};var If=function(){function t(r){var n=this;this.O=wo,this.D=!0,this.produce=function(i,u,a){if(typeof i=="function"&&typeof u!="function"){var o=u;u=i;var s=n;return function(m){var b=this;m===void 0&&(m=o);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),a!==void 0&&typeof a!="function"&&ie(7),Me(i)){var c=go(n),h=Ar(n,i,void 0),d=!0;try{l=u(h),d=!1}finally{d?En(c):Yi(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(m){return _i(c,a),Pi(m,c)},function(m){throw En(c),m}):(_i(c,a),Pi(l,c))}if(!i||typeof i!="object"){if((l=u(i))===void 0&&(l=i),l===na&&(l=void 0),n.D&&ea(l,!0),a){var f=[],g=[];Re("Patches").M(i,l,f,g),a(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 a,o,s=n.produce(i,u,function(l,c){a=l,o=c});return typeof Promise<"u"&&s instanceof Promise?s.then(function(l){return[l,a,o]}):[s,a,o]},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){Me(r)||ie(8),xt(r)&&(r=Af(r));var n=go(this),i=Ar(this,r,void 0);return i[J].C=!0,Yi(n),i},e.finishDraft=function(r,n){var i=r&&r[J];process.env.NODE_ENV!=="production"&&(i&&i.C||ie(9),i.I&&ie(10));var u=i.A;return _i(u,n),Pi(void 0,u)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!wo&&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 a=Re("Patches").$;return xt(r)?a(r,n):this.produce(r,function(o){return a(o,n)})},t}(),ve=new If,Df=ve.produce,So=ve.produceWithPatches.bind(ve);ve.setAutoFreeze.bind(ve);ve.setUseProxies.bind(ve);var Co=ve.applyPatches.bind(ve);ve.createDraft.bind(ve);ve.finishDraft.bind(ve);var M=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Lf(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 Mf(){this.__data__=[],this.size=0}var $f=Mf;function Bf(t,e){return t===e||t!==t&&e!==e}var xl=Bf,qf=xl;function Hf(t,e){for(var r=t.length;r--;)if(qf(t[r][0],e))return r;return-1}var ei=Hf,Ff=ei,zf=Array.prototype,Uf=zf.splice;function Vf(t){var e=this.__data__,r=Ff(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Uf.call(e,r,1),--this.size,!0}var Wf=Vf,Gf=ei;function Xf(t){var e=this.__data__,r=Gf(e,t);return r<0?void 0:e[r][1]}var Yf=Xf,Jf=ei;function Kf(t){return Jf(this.__data__,t)>-1}var Zf=Kf,Qf=ei;function ep(t,e){var r=this.__data__,n=Qf(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var tp=ep,rp=$f,np=Wf,ip=Yf,up=Zf,ap=tp;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=rp;tr.prototype.delete=np;tr.prototype.get=ip;tr.prototype.has=up;tr.prototype.set=ap;var ti=tr,op=ti;function sp(){this.__data__=new op,this.size=0}var lp=sp;function cp(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var dp=cp;function fp(t){return this.__data__.get(t)}var pp=fp;function hp(t){return this.__data__.has(t)}var bp=hp,gp=typeof M=="object"&&M&&M.Object===Object&&M,wl=gp,mp=wl,yp=typeof self=="object"&&self&&self.Object===Object&&self,vp=mp||yp||Function("return this")(),qe=vp,xp=qe,wp=xp.Symbol,ri=wp,Eo=ri,Sl=Object.prototype,Sp=Sl.hasOwnProperty,Cp=Sl.toString,br=Eo?Eo.toStringTag:void 0;function Ep(t){var e=Sp.call(t,br),r=t[br];try{t[br]=void 0;var n=!0}catch{}var i=Cp.call(t);return n&&(e?t[br]=r:delete t[br]),i}var Tp=Ep,Ap=Object.prototype,Np=Ap.toString;function Op(t){return Np.call(t)}var jp=Op,To=ri,_p=Tp,Pp=jp,kp="[object Null]",Rp="[object Undefined]",Ao=To?To.toStringTag:void 0;function Ip(t){return t==null?t===void 0?Rp:kp:Ao&&Ao in Object(t)?_p(t):Pp(t)}var ni=Ip;function Dp(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Cl=Dp,Lp=ni,Mp=Cl,$p="[object AsyncFunction]",Bp="[object Function]",qp="[object GeneratorFunction]",Hp="[object Proxy]";function Fp(t){if(!Mp(t))return!1;var e=Lp(t);return e==Bp||e==qp||e==$p||e==Hp}var ua=Fp;const zp=Qn(ua);var Up=qe,Vp=Up["__core-js_shared__"],Wp=Vp,Ii=Wp,No=function(){var t=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Gp(t){return!!No&&No in t}var Xp=Gp,Yp=Function.prototype,Jp=Yp.toString;function Kp(t){if(t!=null){try{return Jp.call(t)}catch{}try{return t+""}catch{}}return""}var El=Kp,Zp=ua,Qp=Xp,eh=Cl,th=El,rh=/[\\^$.*+?()[\]{}|]/g,nh=/^\[object .+?Constructor\]$/,ih=Function.prototype,uh=Object.prototype,ah=ih.toString,oh=uh.hasOwnProperty,sh=RegExp("^"+ah.call(oh).replace(rh,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lh(t){if(!eh(t)||Qp(t))return!1;var e=Zp(t)?sh:nh;return e.test(th(t))}var ch=lh;function dh(t,e){return t==null?void 0:t[e]}var fh=dh,ph=ch,hh=fh;function bh(t,e){var r=hh(t,e);return ph(r)?r:void 0}var At=bh,gh=At,mh=qe,yh=gh(mh,"Map"),aa=yh,vh=At,xh=vh(Object,"create"),ii=xh,Oo=ii;function wh(){this.__data__=Oo?Oo(null):{},this.size=0}var Sh=wh;function Ch(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Eh=Ch,Th=ii,Ah="__lodash_hash_undefined__",Nh=Object.prototype,Oh=Nh.hasOwnProperty;function jh(t){var e=this.__data__;if(Th){var r=e[t];return r===Ah?void 0:r}return Oh.call(e,t)?e[t]:void 0}var _h=jh,Ph=ii,kh=Object.prototype,Rh=kh.hasOwnProperty;function Ih(t){var e=this.__data__;return Ph?e[t]!==void 0:Rh.call(e,t)}var Dh=Ih,Lh=ii,Mh="__lodash_hash_undefined__";function $h(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Lh&&e===void 0?Mh:e,this}var Bh=$h,qh=Sh,Hh=Eh,Fh=_h,zh=Dh,Uh=Bh;function rr(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])}}rr.prototype.clear=qh;rr.prototype.delete=Hh;rr.prototype.get=Fh;rr.prototype.has=zh;rr.prototype.set=Uh;var Vh=rr,jo=Vh,Wh=ti,Gh=aa;function Xh(){this.size=0,this.__data__={hash:new jo,map:new(Gh||Wh),string:new jo}}var Yh=Xh;function Jh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var Kh=Jh,Zh=Kh;function Qh(t,e){var r=t.__data__;return Zh(e)?r[typeof e=="string"?"string":"hash"]:r.map}var ui=Qh,eb=ui;function tb(t){var e=eb(this,t).delete(t);return this.size-=e?1:0,e}var rb=tb,nb=ui;function ib(t){return nb(this,t).get(t)}var ub=ib,ab=ui;function ob(t){return ab(this,t).has(t)}var sb=ob,lb=ui;function cb(t,e){var r=lb(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var db=cb,fb=Yh,pb=rb,hb=ub,bb=sb,gb=db;function nr(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])}}nr.prototype.clear=fb;nr.prototype.delete=pb;nr.prototype.get=hb;nr.prototype.has=bb;nr.prototype.set=gb;var Tl=nr,mb=ti,yb=aa,vb=Tl,xb=200;function wb(t,e){var r=this.__data__;if(r instanceof mb){var n=r.__data__;if(!yb||n.length<xb-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new vb(n)}return r.set(t,e),this.size=r.size,this}var Sb=wb,Cb=ti,Eb=lp,Tb=dp,Ab=pp,Nb=bp,Ob=Sb;function ir(t){var e=this.__data__=new Cb(t);this.size=e.size}ir.prototype.clear=Eb;ir.prototype.delete=Tb;ir.prototype.get=Ab;ir.prototype.has=Nb;ir.prototype.set=Ob;var jb=ir,_b="__lodash_hash_undefined__";function Pb(t){return this.__data__.set(t,_b),this}var kb=Pb;function Rb(t){return this.__data__.has(t)}var Ib=Rb,Db=Tl,Lb=kb,Mb=Ib;function Nn(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Db;++e<r;)this.add(t[e])}Nn.prototype.add=Nn.prototype.push=Lb;Nn.prototype.has=Mb;var $b=Nn;function Bb(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 qb=Bb;function Hb(t,e){return t.has(e)}var Fb=Hb,zb=$b,Ub=qb,Vb=Fb,Wb=1,Gb=2;function Xb(t,e,r,n,i,u){var a=r&Wb,o=t.length,s=e.length;if(o!=s&&!(a&&s>o))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&Gb?new zb:void 0;for(u.set(t,e),u.set(e,t);++h<o;){var g=t[h],m=e[h];if(n)var b=a?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(!Ub(e,function(y,v){if(!Vb(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 Al=Xb,Yb=qe,Jb=Yb.Uint8Array,Kb=Jb;function Zb(t){var e=-1,r=Array(t.size);return t.forEach(function(n,i){r[++e]=[i,n]}),r}var Qb=Zb;function eg(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var tg=eg,_o=ri,Po=Kb,rg=xl,ng=Al,ig=Qb,ug=tg,ag=1,og=2,sg="[object Boolean]",lg="[object Date]",cg="[object Error]",dg="[object Map]",fg="[object Number]",pg="[object RegExp]",hg="[object Set]",bg="[object String]",gg="[object Symbol]",mg="[object ArrayBuffer]",yg="[object DataView]",ko=_o?_o.prototype:void 0,Di=ko?ko.valueOf:void 0;function vg(t,e,r,n,i,u,a){switch(r){case yg:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case mg:return!(t.byteLength!=e.byteLength||!u(new Po(t),new Po(e)));case sg:case lg:case fg:return rg(+t,+e);case cg:return t.name==e.name&&t.message==e.message;case pg:case bg:return t==e+"";case dg:var o=ig;case hg:var s=n&ag;if(o||(o=ug),t.size!=e.size&&!s)return!1;var l=a.get(t);if(l)return l==e;n|=og,a.set(t,e);var c=ng(o(t),o(e),n,i,u,a);return a.delete(t),c;case gg:if(Di)return Di.call(t)==Di.call(e)}return!1}var xg=vg;function wg(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}var Sg=wg,Cg=Array.isArray,oa=Cg,Eg=Sg,Tg=oa;function Ag(t,e,r){var n=e(t);return Tg(t)?n:Eg(n,r(t))}var Ng=Ag;function Og(t,e){for(var r=-1,n=t==null?0:t.length,i=0,u=[];++r<n;){var a=t[r];e(a,r,t)&&(u[i++]=a)}return u}var jg=Og;function _g(){return[]}var Pg=_g,kg=jg,Rg=Pg,Ig=Object.prototype,Dg=Ig.propertyIsEnumerable,Ro=Object.getOwnPropertySymbols,Lg=Ro?function(t){return t==null?[]:(t=Object(t),kg(Ro(t),function(e){return Dg.call(t,e)}))}:Rg,Mg=Lg;function $g(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Bg=$g;function qg(t){return t!=null&&typeof t=="object"}var ai=qg,Hg=ni,Fg=ai,zg="[object Arguments]";function Ug(t){return Fg(t)&&Hg(t)==zg}var Vg=Ug,Io=Vg,Wg=ai,Nl=Object.prototype,Gg=Nl.hasOwnProperty,Xg=Nl.propertyIsEnumerable,Yg=Io(function(){return arguments}())?Io:function(t){return Wg(t)&&Gg.call(t,"callee")&&!Xg.call(t,"callee")},Jg=Yg,On={exports:{}};function Kg(){return!1}var Zg=Kg;On.exports;(function(t,e){var r=qe,n=Zg,i=e&&!e.nodeType&&e,u=i&&!0&&t&&!t.nodeType&&t,a=u&&u.exports===i,o=a?r.Buffer:void 0,s=o?o.isBuffer:void 0,l=s||n;t.exports=l})(On,On.exports);var Ol=On.exports,Qg=9007199254740991,em=/^(?:0|[1-9]\d*)$/;function tm(t,e){var r=typeof t;return e=e??Qg,!!e&&(r=="number"||r!="symbol"&&em.test(t))&&t>-1&&t%1==0&&t<e}var rm=tm,nm=9007199254740991;function im(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=nm}var jl=im,um=ni,am=jl,om=ai,sm="[object Arguments]",lm="[object Array]",cm="[object Boolean]",dm="[object Date]",fm="[object Error]",pm="[object Function]",hm="[object Map]",bm="[object Number]",gm="[object Object]",mm="[object RegExp]",ym="[object Set]",vm="[object String]",xm="[object WeakMap]",wm="[object ArrayBuffer]",Sm="[object DataView]",Cm="[object Float32Array]",Em="[object Float64Array]",Tm="[object Int8Array]",Am="[object Int16Array]",Nm="[object Int32Array]",Om="[object Uint8Array]",jm="[object Uint8ClampedArray]",_m="[object Uint16Array]",Pm="[object Uint32Array]",re={};re[Cm]=re[Em]=re[Tm]=re[Am]=re[Nm]=re[Om]=re[jm]=re[_m]=re[Pm]=!0;re[sm]=re[lm]=re[wm]=re[cm]=re[Sm]=re[dm]=re[fm]=re[pm]=re[hm]=re[bm]=re[gm]=re[mm]=re[ym]=re[vm]=re[xm]=!1;function km(t){return om(t)&&am(t.length)&&!!re[um(t)]}var Rm=km;function Im(t){return function(e){return t(e)}}var Dm=Im,jn={exports:{}};jn.exports;(function(t,e){var r=wl,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,a=u&&r.process,o=function(){try{var s=i&&i.require&&i.require("util").types;return s||a&&a.binding&&a.binding("util")}catch{}}();t.exports=o})(jn,jn.exports);var sa=jn.exports,Lm=Rm,Mm=Dm,Do=sa,Lo=Do&&Do.isTypedArray,$m=Lo?Mm(Lo):Lm,_l=$m,Bm=Bg,qm=Jg,Hm=oa,Fm=Ol,zm=rm,Um=_l,Vm=Object.prototype,Wm=Vm.hasOwnProperty;function Gm(t,e){var r=Hm(t),n=!r&&qm(t),i=!r&&!n&&Fm(t),u=!r&&!n&&!i&&Um(t),a=r||n||i||u,o=a?Bm(t.length,String):[],s=o.length;for(var l in t)(e||Wm.call(t,l))&&!(a&&(l=="length"||i&&(l=="offset"||l=="parent")||u&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||zm(l,s)))&&o.push(l);return o}var Xm=Gm,Ym=Object.prototype;function Jm(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Ym;return t===r}var Km=Jm;function Zm(t,e){return function(r){return t(e(r))}}var Qm=Zm,e1=Qm,t1=e1(Object.keys,Object),r1=t1,n1=Km,i1=r1,u1=Object.prototype,a1=u1.hasOwnProperty;function o1(t){if(!n1(t))return i1(t);var e=[];for(var r in Object(t))a1.call(t,r)&&r!="constructor"&&e.push(r);return e}var s1=o1,l1=ua,c1=jl;function d1(t){return t!=null&&c1(t.length)&&!l1(t)}var f1=d1,p1=Xm,h1=s1,b1=f1;function g1(t){return b1(t)?p1(t):h1(t)}var m1=g1,y1=Ng,v1=Mg,x1=m1;function w1(t){return y1(t,x1,v1)}var S1=w1,Mo=S1,C1=1,E1=Object.prototype,T1=E1.hasOwnProperty;function A1(t,e,r,n,i,u){var a=r&C1,o=Mo(t),s=o.length,l=Mo(e),c=l.length;if(s!=c&&!a)return!1;for(var h=s;h--;){var d=o[h];if(!(a?d in e:T1.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=a;++h<s;){d=o[h];var y=t[d],v=e[d];if(n)var E=a?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 N1=A1,O1=At,j1=qe,_1=O1(j1,"DataView"),P1=_1,k1=At,R1=qe,I1=k1(R1,"Promise"),D1=I1,L1=At,M1=qe,$1=L1(M1,"Set"),B1=$1,q1=At,H1=qe,F1=q1(H1,"WeakMap"),z1=F1,Zi=P1,Qi=aa,eu=D1,tu=B1,ru=z1,Pl=ni,ur=El,$o="[object Map]",U1="[object Object]",Bo="[object Promise]",qo="[object Set]",Ho="[object WeakMap]",Fo="[object DataView]",V1=ur(Zi),W1=ur(Qi),G1=ur(eu),X1=ur(tu),Y1=ur(ru),yt=Pl;(Zi&&yt(new Zi(new ArrayBuffer(1)))!=Fo||Qi&&yt(new Qi)!=$o||eu&&yt(eu.resolve())!=Bo||tu&&yt(new tu)!=qo||ru&&yt(new ru)!=Ho)&&(yt=function(t){var e=Pl(t),r=e==U1?t.constructor:void 0,n=r?ur(r):"";if(n)switch(n){case V1:return Fo;case W1:return $o;case G1:return Bo;case X1:return qo;case Y1:return Ho}return e});var J1=yt,Li=jb,K1=Al,Z1=xg,Q1=N1,zo=J1,Uo=oa,Vo=Ol,ey=_l,ty=1,Wo="[object Arguments]",Go="[object Array]",tn="[object Object]",ry=Object.prototype,Xo=ry.hasOwnProperty;function ny(t,e,r,n,i,u){var a=Uo(t),o=Uo(e),s=a?Go:zo(t),l=o?Go:zo(e);s=s==Wo?tn:s,l=l==Wo?tn:l;var c=s==tn,h=l==tn,d=s==l;if(d&&Vo(t)){if(!Vo(e))return!1;a=!0,c=!1}if(d&&!c)return u||(u=new Li),a||ey(t)?K1(t,e,r,n,i,u):Z1(t,e,s,r,n,i,u);if(!(r&ty)){var f=c&&Xo.call(t,"__wrapped__"),g=h&&Xo.call(e,"__wrapped__");if(f||g){var m=f?t.value():t,b=g?e.value():e;return u||(u=new Li),i(m,b,r,n,u)}}return d?(u||(u=new Li),Q1(t,e,r,n,i,u)):!1}var iy=ny,uy=iy,Yo=ai;function kl(t,e,r,n,i){return t===e?!0:t==null||e==null||!Yo(t)&&!Yo(e)?t!==t&&e!==e:uy(t,e,r,n,kl,i)}var ay=kl,oy=ay;function sy(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?oy(t,e,void 0,r):!!n}var ly=sy;const cy=Qn(ly);var dy=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 a=Object.keys(e),o=Object.keys(r);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),l=0;l<a.length;l++){var c=a[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 fy=Qn(dy);let py=(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 hy=process.env.NODE_ENV==="production",Mi="Invariant failed";function Q(t,e){if(!t){if(hy)throw new Error(Mi);var r=typeof e=="function"?e():e,n=r?"".concat(Mi,": ").concat(r):Mi;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Je="ROOT",Rl="canvas-ROOT",by="Parent id cannot be ommited",gy="Attempting to add a node with duplicated id",Il="Node does not exist, it may have been removed",my='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',yy="Node cannot be dropped into target parent",vy="Target parent rejects incoming node",xy="Current parent rejects outgoing node",Jo="Cannot move node that is not a direct child of a Canvas node",wy="Cannot move node into a non-Canvas parent",Ko="A top-level Node cannot be moved",Sy="Cannot move node into a descendant",_n="The component type specified for this node (%node_type%) does not exist in the resolver",Cy="The node has specified a canDrag() rule that prevents it from being dragged",Ey="Invalid parameter Node Id specified",Ty="Attempting to delete a top-level Node",Ay=`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`,Ny=`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`,Oy=`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.`,jy=`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 Zo(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 we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zo(Object(r),!0).forEach(function(n){le(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ar(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _y(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,Bl(n.key),n)}}function or(t,e,r){return e&&_y(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function le(t,e,r){return(e=Bl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $t(t){return $t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$t(t)}function nu(t,e){return nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},nu(t,e)}function $i(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iu(){return iu=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(u,a){for(;!Object.prototype.hasOwnProperty.call(u,a)&&(u=$t(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}},iu.apply(this,arguments)}function Dl(t,e){return Ll(t)||function(r,n){var i=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(i!=null){var u,a,o,s,l=[],c=!0,h=!1;try{if(o=(i=i.call(r)).next,n===0){if(Object(i)!==i)return;c=!1}else for(;!(c=(u=o.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){h=!0,a=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw a}}return l}}(t,e)||la(t,e)||$l()}function fe(t){return function(e){if(Array.isArray(e))return uu(e)}(t)||Ml(t)||la(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 Ll(t){if(Array.isArray(t))return t}function Ml(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function la(t,e){if(t){if(typeof t=="string")return uu(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)?uu(t,e):void 0}}function uu(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 $l(){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 Bl(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 ae={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Py=function(){function t(){ar(this,t),le(this,"timeline",[]),le(this,"pointer",-1)}return or(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,a=i.inversePatches,o=i.timestamp;if(new Date().getTime()-o<n)return void(this.timeline[this.pointer]={timestamp:o,patches:[].concat(fe(u),fe(e)),inversePatches:[].concat(fe(r),fe(a))})}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,Co(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,Co(e,this.timeline[this.pointer].patches)}}]),t}();function ky(t,e,r,n){var i,u=j.useMemo(function(){return new Py},[]),a=j.useRef([]),o=j.useRef(function(){});typeof t=="function"?i=t:(i=t.methods,a.current=t.ignoreHistoryForActions,o.current=t.normalizeHistory);var s=j.useRef(n);s.current=n;var l=j.useRef(e),c=j.useMemo(function(){var b=o.current,y=a.current,v=s.current;return function(E,C){var N,k=r&&Qo(r,function(){return E},u),R=Dl(So(E,function(S){var T,_;switch(C.type){case ae.UNDO:return u.undo(S);case ae.REDO:return u.redo(S);case ae.CLEAR:return u.clear(),we({},S);case ae.IGNORE:case ae.MERGE:case ae.THROTTLE:var I,w=Ll(_=C.payload)||Ml(_)||la(_)||$l(),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],$=R[1],L=R[2];return N=D,v&&v(D,E,{type:C.type,params:C.payload,patches:$},k,function(S){var T=So(D,S);N=T[0],$=[].concat(fe($),fe(T[1])),L=[].concat(fe(T[2]),fe(L))}),[ae.UNDO,ae.REDO].includes(C.type)&&b&&(N=Df(N,b)),[].concat(fe(y),[ae.UNDO,ae.REDO,ae.IGNORE,ae.CLEAR]).includes(C.type)||(C.type===ae.THROTTLE?u.throttleAdd($,L,C.config&&C.config.rate):C.type===ae.MERGE?u.merge($,L):u.add($,L)),N}},[u,i,r]),h=j.useCallback(function(){return l.current},[]),d=j.useMemo(function(){return new Ry(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?Qo(r,function(){return l.current},u):[]},[u,r]),m=j.useMemo(function(){var b=Object.keys(i(null,null)),y=a.current;return we(we({},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:ae.UNDO})},redo:function(){return f({type:ae.REDO})},clear:function(){return f({type:ae.CLEAR})},throttle:function(v){return we({},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:ae.THROTTLE,payload:[C].concat(k),config:{rate:v}})},E},{}))},ignore:function(){return we({},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:ae.IGNORE,payload:[E].concat(N)})},v},{}))},merge:function(){return we({},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:ae.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 Qo(t,e,r){var n=Object.keys(t()).reduce(function(i,u){return we(we({},i),{},le({},u,function(){var a;return(a=t(e()))[u].apply(a,arguments)}))},{});return we(we({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}Of(),Nf();var Ry=function(){function t(e){ar(this,t),le(this,"getState",void 0),le(this,"subscribers",[]),this.getState=e}return or(t,[{key:"subscribe",value:function(e,r,n){var i=this,u=new Iy(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}(),Iy=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];ar(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 or(t,[{key:"collect",value:function(){try{var e=this.collector();cy(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),Nr=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,i=e.top,u=e.left,a=e.bottom,o=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:a,right:o,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 Dy(t,e){const{subscribe:r,getState:n,actions:i,query:u}=t,a=j.useRef(!0),o=j.useRef(null),s=j.useRef(e);s.current=e;const l=j.useCallback(d=>({...d,actions:i,query:u}),[i,u]);a.current&&e&&(o.current=e(n(),u),a.current=!1);const[c,h]=j.useState(l(o.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 Ft,ql=function(){return py(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Ly=function(){function t(){ar(this,t),le(this,"isEnabled",!0),le(this,"elementIdMap",new WeakMap),le(this,"registry",new Map)}return or(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=ql();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(fy(r.required,i.required))return i;this.getByElement(e,r.name).disable()}var u=null,a=this.getConnectorId(e,r.name);return this.registry.set(a,{id:a,required:r.required,enable:function(){u&&u(),u=r.connector(e,r.required,r.options)},disable:function(){u&&u()},remove:function(){return n.remove(a)}}),this.isEnabled&&this.registry.get(a).enable(),this.registry.get(a)}},{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"})(Ft||(Ft={}));var Hl=function(){function t(e){ar(this,t),le(this,"options",void 0),le(this,"registry",new Ly),le(this,"subscribers",new Set),this.options=e}return or(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(Ft.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(Ft.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,i){var u=function(a){(function(o,s,l){o.craft||(o.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=o.craft&&o.craft.blockedEvents[s]||[],h=0;h<c.length;h++){var d=c[h];if(l!==d&&l.contains(d))return!0}return!1})(a,r,e)||(a.craft.stopPropagation=function(){a.craft.blockedEvents[r]||(a.craft.blockedEvents[r]=[]),a.craft.blockedEvents[r].push(e)},n(a))};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(a,o){var s=Dl(o,2),l=s[0],c=s[1];return we(we({},a),{},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(a){a()})},cleanup:function(){i=!1,n.forEach(function(a){return e.registry.remove(a)})}}}},{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(a,o,s){return o in i==0?Reflect.get(a,o,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[o].apply(i,[l].concat(h));f&&n.push(f)}}});return r(u),function(){n.forEach(function(a){a()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),My=function(t){(function(u,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");u.prototype=Object.create(a&&a.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),a&&nu(u,a)})(i,Hl);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,a=$t(e);if(r){var o=$t(this).constructor;u=Reflect.construct(a,arguments,o)}else u=a.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 $i(s)}(this,u)});function i(u,a){var o;return ar(this,i),le($i(o=n.call(this,a)),"derived",void 0),le($i(o),"unsubscribeParentHandlerListener",void 0),o.derived=u,o.options=a,o.unsubscribeParentHandlerListener=o.derived.listen(function(s){switch(s){case Ft.HandlerEnabled:return o.enable();case Ft.HandlerDisabled:return o.disable();default:return}}),o}return or(i,[{key:"inherit",value:function(u){return this.createProxyHandlers(this.derived,u)}},{key:"cleanup",value:function(){iu($t(i.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),i}();function es(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function $y(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=>{es(r,n),es(e,n)}}:{ref:e})}function By(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),$y(n,t)}}function Fl(t){return Object.keys(t).reduce((e,r)=>(e[r]=By((...n)=>t[r](...n)),e),{})}const qy=({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?rl.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)},zl=function(){return typeof window<"u"},Hy=function(){return zl()&&/Linux/i.test(window.navigator.userAgent)},Fy=function(){return zl()&&/Chrome/i.test(window.navigator.userAgent)},zy=At;(function(){try{var t=zy(Object,"defineProperty");return t({},"",{}),t}catch{}})();var Pn={exports:{}};Pn.exports;(function(t,e){var r=qe,n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,u=i&&i.exports===n,a=u?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(l,c){if(c)return l.slice();var h=l.length,d=o?o(h):new l.constructor(h);return l.copy(d),d}t.exports=s})(Pn,Pn.exports);Pn.exports;var ts=ri,rs=ts?ts.prototype:void 0;rs&&rs.valueOf;var ns=sa;ns&&ns.isMap;var is=sa;is&&is.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const Ul=j.createContext(null),Vl=({id:t,related:e=!1,children:r})=>j.createElement(Ul.Provider,{value:{id:t,related:e}},r);function us(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?us(Object(r),!0).forEach(function(n){se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):us(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function au(t){return au=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},au(t)}function oi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uy(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,Xl(n.key),n)}}function si(t,e,r){return e&&Uy(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function se(t,e,r){return(e=Xl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ca(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 kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kn(t)}function ou(t,e){return ou=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ou(t,e)}function da(t,e){if(t==null)return{};var r,n,i=function(a,o){if(a==null)return{};var s,l,c={},h=Object.keys(a);for(l=0;l<h.length;l++)o.indexOf(s=h[l])>=0||(c[s]=a[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 xr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fa(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=kn(t);if(e){var i=kn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(u,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xr(u)}(this,r)}}function Wl(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,a,o,s,l=[],c=!0,h=!1;try{if(o=(i=i.call(r)).next,n!==0)for(;!(c=(u=o.call(i)).done)&&(l.push(u.value),l.length!==n);c=!0);}catch(d){h=!0,a=d}finally{try{if(!c&&i.return!=null&&(s=i.return(),Object(s)!==s))return}finally{if(h)throw a}}return l}}(t,e)||Gl(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 Or(t){return function(e){if(Array.isArray(e))return su(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Gl(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 Gl(t,e){if(t){if(typeof t=="string")return su(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)?su(t,e):void 0}}function su(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 Xl(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 pa=j.createContext(null);var Yl=j.createContext(null),Jl=function(){return j.useContext(Yl)};function Nt(t){var e=Jl(),r=j.useContext(pa);Q(r,Oy);var n=Dy(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&&Fl(i.connectors)},[i]);return ne(ne({},n),{},{connectors:u,inContext:!!r,store:r})}var Vy=["actions","query","connectors"];function li(t){var e=j.useContext(Ul);Q(e,jy);var r=e.id,n=e.related,i=Nt(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),u=i.actions,a=i.connectors,o=da(i,Vy),s=j.useMemo(function(){return Fl({connect:function(c){return a.connect(c,r)},drag:function(c){return a.drag(c,r)}})},[a,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({},o),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:s})}var Wy=["id","related","actions","inNodeContext","connectors"];function ee(t){var e=li(t),r=e.id,n=e.related,i=e.actions,u=e.inNodeContext,a=e.connectors;return ne(ne({},da(e,Wy)),{},{actions:i,id:r,related:n,setProp:function(o,s){return lt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),i.setProp(o,s)},inNodeContext:u,connectors:a})}const Gy=({render:t})=>{const{connectors:{connect:e,drag:r}}=ee();return typeof t.type=="string"?e(r(j.cloneElement(t))):t},Xy=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=li(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(a=>j.createElement(ha,{id:a,key:a}))));const u=j.createElement(t,e,i);return typeof t=="string"?j.createElement(Gy,{render:u}):u},[t,e,n,r])},Yy=({render:t})=>{const{hidden:e}=li(n=>({hidden:n.data.hidden})),{onRender:r}=Nt(n=>({onRender:n.options.onRender}));return e?null:j.createElement(r,{render:t||j.createElement(Xy,null)})},ha=({id:t,render:e})=>j.createElement(Vl,{id:t},j.createElement(Yy,{render:e})),lu={is:"div",canvas:!1,custom:{},hidden:!1},Jy={is:"type",canvas:"isCanvas"};function zt({id:t,children:e,...r}){const{is:n}={...lu,...r},{query:i,actions:u}=Nt(),{id:a,inNodeContext:o}=li(),[s]=j.useState(()=>{Q(!!t,my);const l=i.node(a).get();if(o){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(zt,r,e),d=i.parseReactElement(h).toNodeTree();return u.history.ignore().addLinkedNodeFromTree(d,a,t),d.rootNodeId}return null});return s?j.createElement(ha,{id:s}):null}const Kl=()=>lt("<Canvas />",{suggest:"<Element canvas={true} />"});function cu({...t}){return j.useEffect(()=>Kl(),[]),j.createElement(zt,{...t,canvas:!0})}const Ky=()=>{const{timestamp:t}=Nt(e=>({timestamp:e.nodes[Je]&&e.nodes[Je]._hydrationTimestamp}));return t?j.createElement(ha,{id:Je,key:t}):null},Zl=({children:t,json:e,data:r})=>{const{actions:n,query:i}=Nt();e&<("<Frame json={...} />",{suggest:"<Frame data={...} />"});const u=j.useRef(!1);if(!u.current){const a=r||e;if(a)n.history.ignore().deserialize(a);else if(t){const o=j.Children.only(t),s=i.parseReactElement(o).toNodeTree((l,c)=>(c===o&&(l.id=Je),l));n.history.ignore().addNodeTree(s)}u.current=!0}return j.createElement(Ky,null)};var as;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(as||(as={}));const Bi=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:i,reset:u,...a}=t;return a};function ba(t){const{connectors:e,actions:r,query:n,store:i,...u}=Nt(t),a=Bi(r);return{connectors:e,actions:j.useMemo(()=>({...a,history:{...a.history,ignore:(...o)=>Bi(a.history.ignore(...o)),throttle:(...o)=>Bi(a.history.throttle(...o))}}),[a]),query:n,store:i,...u}}var Ql=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=Wl(r,2),i=n[0],u=n[1];return ne(ne({},e),{},se({},i,u))},{})},Xe=function(t,e,r){var n=Array.isArray(e)?e:[e],i=ne({existOnly:!1,idOnly:!1},r||{}),u=n.filter(function(a){return!!a}).map(function(a){return typeof a=="string"?{node:t[a],exists:!!t[a]}:au(a)!=="object"||i.idOnly?{node:null,exists:!1}:{node:a,exists:!!t[a.id]}});return i.existOnly&&Q(u.filter(function(a){return!a.exists}).length===0,Il),u},Zy=["history"],Pt=null,Rn=function(t,e){if(typeof e=="string")return e;var r,n=function(i,u){var a=function(o){if(Pt&&Pt.resolver===o)return Pt.reversed;Pt={resolver:o,reversed:new Map};for(var s=0,l=Object.entries(o);s<l.length;s++){var c=Wl(l[s],2);Pt.reversed.set(c[1],c[0])}return Pt.reversed}(i).get(u);return a!==void 0?a:null}(t,e);return Q(n,_n.replace("%node_type%",(r=e).name||r.displayName)),n};const Qy=(t,e)=>typeof t=="string"?t:{resolvedName:Rn(e,t)},du=(t,e)=>{let{type:r,isCanvas:n,props:i}=t;return i=Object.keys(i).reduce((u,a)=>{const o=i[a];return o==null||typeof o=="function"||(u[a]=a==="children"&&typeof o!="string"?j.Children.map(o,s=>typeof s=="string"?s:du(s,e)):typeof o.type=="function"?du(o,e):o),u},{}),{type:Qy(r,e),isCanvas:!!n,props:i}},ev=(t,e)=>{const{type:r,props:n,isCanvas:i,name:u,...a}=t;return{...du({type:r,isCanvas:i,props:n},e),...a}};function fu(t,e){Q(typeof e=="string",Ey);var r=t.nodes[e],n=function(i){return fu(t,i)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Je},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(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[a];return l?(o.push(a),l.data.parent&&(i||!i&&s===0)&&(o=u(l.data.parent,o,s+1)),o):o}(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 a(o){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[o]&&(u!=="childNodes"&&n(o).linkedNodes().forEach(function(c){s.push(c),s=a(c,s,l+1)}),u!=="linkedNodes"&&n(o).childNodes().forEach(function(c){s.push(c),s=a(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(),Ko),Q(fu(t,u.data.parent).isCanvas(),Jo),Q(u.rules.canDrag(u,n),Cy),!0}catch(a){return i&&i(a),!1}},isDroppable:function(i,u){var a=Xe(t.nodes,i),o=r;try{Q(this.isCanvas(),wy),Q(o.rules.canMoveIn(a.map(function(l){return l.node}),o,n),vy);var s={};return a.forEach(function(l){var c=l.node,h=l.exists;if(Q(c.rules.canDrop(o,c,n),yy),h){Q(!n(c.id).isTopLevelNode(),Ko);var d=n(c.id).descendants(!0);Q(!d.includes(o.id)&&o.id!==c.id,Sy);var f=c.data.parent&&t.nodes[c.data.parent];Q(f.data.isCanvas,Jo),Q(f||!f&&!t.nodes[c.id],gy),f.id!==o.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),xy)}),!0}catch(l){return u&&u(l),!1}},toSerializedNode:function(){return ev(r.data,t.options.resolver)},toNodeTree:function(i){var u=[e].concat(Or(this.descendants(!0,i))).reduce(function(a,o){return a[o]=n(o).get(),a},{});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 ec(t,e,r,n){for(var i={parent:t,index:0,where:"before"},u=0,a=0,o=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,!(a&&f.left>a||o&&l>=o||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&&(o=c),r<s?(a=s,i.where="before"):(u=s,i.where="after")}return i}var rn=function(t){return typeof t=="string"?t:t.name};function os(t,e){var r=t.data.type,n={id:t.id||ql(),_hydrationTimestamp:Date.now(),data:ne({type:r,name:rn(r),displayName:rn(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===zt||n.data.type===cu){var i=ne(ne({},lu),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(o,s){return Object.keys(lu).includes(s)?n.data[Jy[s]||s]=i[s]:o[s]=n.data.props[s],o},{}),n.data.name=rn(r=n.data.type),n.data.displayName=rn(r),n.data.type===cu&&(n.data.isCanvas=!0,Kl())}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(o){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(o)&&(n.rules[o]=u.rules[o])}),u.related){var a={id:n.id,related:!0};Object.keys(u.related).forEach(function(o){n.related[o]=function(s){return j.createElement(Vl,a,j.createElement(u.related[o],s))}})}u.info&&(n.info=u.info)}return n}const pu=(t,e,r)=>{let{type:n,props:i}=t;const u=((o,s)=>typeof o=="object"&&o.resolvedName?o.resolvedName==="Canvas"?cu:s[o.resolvedName]:typeof o=="string"?o:null)(n,e);if(!u)return;i=Object.keys(i).reduce((o,s)=>{const l=i[s];return o[s]=l==null?null:typeof l=="object"&&l.resolvedName?pu(l,e):s==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:pu(c,e)):l,o},{});const a={...j.createElement(u,{...i})};return{...a,name:Rn(e,a.type)}},tv=(t,e)=>{const{type:r,props:n,...i}=t;Q(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Ny.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:u,name:a,props:o}=pu(t,e),{parent:s,custom:l,displayName:c,isCanvas:h,nodes:d,hidden:f}=i;return{type:u,name:a,displayName:c||a,props:o,custom:l||{},isCanvas:!!h,hidden:!!f,parent:s,linkedNodes:i.linkedNodes||i._childCanvas||{},nodes:d||[]}},rv=(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 a=u.nodes[u.rootNodeId];return{...i,...u.nodes,[a.id]:{...a,data:{...a.data,parent:t.id}}}},{[t.id]:n})},nv=(t,e)=>({rootNodeId:t.id,nodes:rv(t,e)});function tc(t){const e=t&&t.options,r=()=>tc(t);return{getDropPlaceholder:(n,i,u,a=o=>t.nodes[o.id].dom)=>{const o=t.nodes[i],s=r().node(o.id).isCanvas()?o:t.nodes[o.data.parent];if(!s)return;const l=s.data.nodes||[],c=ec(s,l?l.reduce((f,g)=>{const m=a(t.nodes[g]);if(m){const b={id:g,...Nr(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 Xe(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=>fu(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(i=>[i,this.node(i).toSerializedNode()]);return Ql(n)},getEvent:n=>function(i,u){var a=i.events[u];return{contains:function(o){return a.has(o)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var o=this.all();return o[o.length-1]},all:function(){return Array.from(a)},size:function(){return this.all().length},at:function(o){return this.all()[o]},raw:function(){return a}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(i){let u=function(o,s){let l=o;return typeof l=="string"&&(l=j.createElement(j.Fragment,{},l)),os({data:{type:l.type,props:{...l.props}}},c=>{s&&s(c,l)})}(n,(o,s)=>{const l=Rn(t.options.resolver,o.data.type);o.data.displayName=o.data.displayName||l,o.data.name=l,i&&i(o,s)}),a=[];return n.props&&n.props.children&&(a=j.Children.toArray(n.props.children).reduce((o,s)=>(j.isValidElement(s)&&o.push(r().parseReactElement(s).toNodeTree(i)),o),[])),nv(u,a)}}),parseSerializedNode:n=>({toNode(i){const u=tv(n,t.options.resolver);Q(u.type,_n);const a=typeof i=="string"&&i;return a&<("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...a?{id:a}:{},data:u}).toNode(!a&&i)}}),parseFreshNode:n=>({toNode:i=>os(n,u=>{u.data.parent===Rl&&(u.data.parent=Je);const a=Rn(t.options.resolver,u.data.type);Q(a!==null,_n),u.data.displayName=u.data.displayName||a,u.data.name=a,i&&i(u)})}),createNode(n,i){lt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const u=this.parseReactElement(n).toNodeTree(),a=u.nodes[u.rootNodeId];return i&&(i.id&&(a.id=i.id),i.data&&(a.data={...a.data,...i.data})),a},getState:()=>t}}var iv=function(t){ca(r,Hl);var e=fa(r);function r(){return oi(this,r),e.apply(this,arguments)}return si(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){ca(r,My);var e=fa(r);function r(){return oi(this,r),e.apply(this,arguments)}return si(r)})();var ss=function(t){t.preventDefault()},hu=function(){function t(e,r){oi(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",ss,!1)}return si(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",ss,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(Je).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Xe(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 a=r.store.query.node(u).get().dom;return a&&i.push(ne({id:u},Nr(a))),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 a=r.store.query.node(u).get();return a&&a.data.isCanvas?a:a.data.parent?i(a.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(Nr(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=ec(i,this.currentTargetChildDimensions,r,n);if(this.isDiff(u)){var a=this.dragError;a||this.store.query.node(i.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){a=l});var o=i.data.nodes[u.index],s=o&&this.store.query.node(o).get();return this.currentIndicator={placement:ne(ne({},u),{},{currentNode:s}),error:a},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();se(hu,"BORDER_OFFSET",10);var ls=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 a=document.createElement("div");return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="100%",a.style.height="100%",a.style.pointerEvents="none",a.classList.add("drag-shadow-container"),e.forEach(function(o){var s=o.getBoundingClientRect(),l=s.width,c=s.height,h=s.top,d=s.left,f=o.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"),a.appendChild(f)}),document.body.appendChild(a),t.dataTransfer.setDragImage(a,t.clientX,t.clientY),a},rc=function(t){ca(r,iv);var e=fa(r);function r(){var n;oi(this,r);for(var i=arguments.length,u=new Array(i),a=0;a<i;a++)u[a]=arguments[a];return se(xr(n=e.call.apply(e,[this].concat(u))),"draggedElementShadow",void 0),se(xr(n),"dragTarget",void 0),se(xr(n),"positioner",null),se(xr(n),"currentSelectedElementIds",[]),n}return si(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,a){return i.actions.setDOM(a,u),n.reflect(function(o){o.select(u,a),o.hover(u,a),o.drop(u,a)})},select:function(u,a){var o=n.addCraftEventListener(u,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(a){var h=i.query,d=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||d.includes(a))&&(c=d.filter(function(f){var g=h.node(f).descendants(!0),m=h.node(f).ancestors(!0);return!g.includes(a)&&!m.includes(a)})),c.includes(a)||c.push(a)}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(a),f=Or(c);h&&d?(f.splice(f.indexOf(a),1),i.actions.setNodeEvent("selected",f)):!h&&c.length>1&&i.actions.setNodeEvent("selected",f=[a]),n.currentSelectedElementIds=f});return function(){o(),s()}},hover:function(u,a){var o=n.addCraftEventListener(u,"mouseover",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",a)}),s=null;return n.options.removeHoverOnMouseleave&&(s=n.addCraftEventListener(u,"mouseleave",function(l){l.craft.stopPropagation(),i.actions.setNodeEvent("hovered",null)})),function(){o(),s&&s()}},drop:function(u,a){var o=n.addCraftEventListener(u,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(a,l.clientX,l.clientY);c&&i.actions.setIndicator(c)}}),s=n.addCraftEventListener(u,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){s(),o()}},drag:function(u,a){if(!i.query.node(a).isDraggable())return function(){};u.setAttribute("draggable","true");var o=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(a)||(d=f?[].concat(Or(d),[a]):[a],i.actions.setNodeEvent("selected",d)),h.setNodeEvent("dragged",d);var g=d.map(function(m){return c.node(m).get().dom});n.draggedElementShadow=ls(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:d},n.positioner=new hu(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"),o(),s()}},create:function(u,a,o){u.setAttribute("draggable","true");var s=n.addCraftEventListener(u,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof a=="function"){var d=a();h=j.isValidElement(d)?i.query.parseReactElement(d).toNodeTree():d}else h=i.query.parseReactElement(a).toNodeTree();n.draggedElementShadow=ls(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new hu(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)),o&&zp(o.onCreate)&&o.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,a=this.positioner.getIndicator();this.dragTarget&&a&&!a.error&&n(this.dragTarget,a),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 uv(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,i=0,u=0,a=0,o=0,s=t.where;return r?r.inFlow?(a=r.outerWidth,o=n,i=s==="before"?r.top:r.bottom,u=r.left):(a=n,o=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,a=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,o=n),{top:"".concat(i,"px"),left:"".concat(u,"px"),width:"".concat(a,"px"),height:"".concat(o,"px")}}se(rc,"forceSingleDragShadow",Fy()&&Hy());const av=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=Nt(i=>({indicator:i.indicator,indicatorOptions:i.options.indicator,enabled:i.options.enabled})),n=Jl();return j.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?j.createElement(qy,{className:e.className,style:{...uv(t.placement,Nr(t.placement.parent.dom),t.placement.currentNode&&Nr(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},ov=({children:t})=>{const e=j.useContext(pa),r=j.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?j.createElement(Yl.Provider,{value:r},j.createElement(av,null),t):null},cs={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 rc({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},sv={methods:function(t,e){return ne(ne({},function(r,n){var i=function(o,s,l){if(function d(f,g){var m=o.nodes[f];typeof m.data.type!="string"&&Q(r.options.resolver[m.data.name],_n.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)})}(o.rootNodeId,s),s||o.rootNodeId!==Je){var c=u(s);if(l.type!=="child")c.data.linkedNodes[l.id]=o.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,o.rootNodeId):c.data.nodes.push(o.rootNodeId)}}},u=function(o){Q(o,by);var s=r.nodes[o];return Q(s,Il),s},a=function o(s){var l=r.nodes[s],c=r.nodes[l.data.parent];if(l.data.nodes&&Or(l.data.nodes).forEach(function(f){return o(f)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(f){return o(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(o,s,l){var c=u(s).data.linkedNodes[l];c&&a(c),i(o,s,{type:"linked",id:l})},add:function(o,s,l){var c=[o];Array.isArray(o)&&(lt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=o),c.forEach(function(h){i({nodes:se({},h.id,h),rootNodeId:h.id},s,{type:"child",index:l})})},addNodeTree:function(o,s,l){i(o,s,{type:"child",index:l})},delete:function(o){Xe(r.nodes,o,{existOnly:!0,idOnly:!0}).forEach(function(s){var l=s.node;Q(!n.node(l.id).isTopLevelNode(),Ty),a(l.id)})},deserialize:function(o){var s=typeof o=="string"?JSON.parse(o):o,l=Object.keys(s).map(function(c){var h=c;return c===Rl&&(h=Je),[h,n.parseSerializedNode(s[c]).toNode(function(d){return d.id=h})]});this.replaceNodes(Ql(l))},move:function(o,s,l){var c=Xe(r.nodes,o,{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;Or(f).reverse().forEach(function(m,b){m==="$$"&&f.splice(g-1-b,1)})})},replaceNodes:function(o){this.clearEvents(),r.nodes=o},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(o){o(r.options)},setNodeEvent:function(o,s){if(r.events[o].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[o]=!1)}),r.events[o]=new Set,s){var l=Xe(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[o]=!0}),r.events[o]=c}},setCustom:function(o,s){Xe(r.nodes,o,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.custom)})},setDOM:function(o,s){r.nodes[o]&&(r.nodes[o].dom=s)},setIndicator:function(o){o&&(!o.placement.parent.dom||o.placement.currentNode&&!o.placement.currentNode.dom)||(r.indicator=o)},setHidden:function(o,s){r.nodes[o].data.hidden=s},setProp:function(o,s){Xe(r.nodes,o,{idOnly:!0,existOnly:!0}).forEach(function(l){return s(r.nodes[l.node.id].data.props)})},selectNode:function(o){if(o){var s=Xe(r.nodes,o,{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=da(this,Zy);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)})})}},lv=(t,e)=>ky(sv,{...cs,options:{...cs.options,...t}},tc,e),nc=({children:t,...e})=>{e.resolver!==void 0&&Q(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,Ay);const r=x.useRef(e),n=lv(r.current,(i,u,a,o,s)=>{if(!a)return;const{patches:l,...c}=a;for(let h=0;h<l.length;h++){const{path:d}=l[h],f=d.length>2&&d[0]==="nodes"&&d[2]==="data";if([ae.IGNORE,ae.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,o)});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(pa.Provider,{value:n},x.createElement(ov,null,t)):null},ic=j.createContext("desktop"),uc=({value:t,children:e})=>p.jsx(ic.Provider,{value:t,children:e}),Ot=()=>j.useContext(ic),Ce=["mobile","tablet","small","desktop"],Ye=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Ce.indexOf(e);for(let i=n;i<Ce.length;i++){const u=Ce[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}for(let i=n-1;i>=0;i--){const u=Ce[i];if(t[u]!==void 0&&t[u]!==null)return t[u]}return r};function Se(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 ci(t,e=[]){let r=[];function n(u,a){const o=x.createContext(a),s=r.length;r=[...r,a];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])||o,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])||o,g=x.useContext(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${u}\``)}return[l,c]}const i=()=>{const u=r.map(a=>x.createContext(a));return function(o){const s=(o==null?void 0:o[t])||u;return x.useMemo(()=>({[`__scope${t}`]:{...o,[t]:s}}),[o,s])}};return i.scopeName=t,[n,cv(i,...e)]}function cv(...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 a=n.reduce((o,{useScope:s,scopeName:l})=>{const h=s(u)[`__scope${l}`];return{...o,...h}},{});return x.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return r.scopeName=e.scopeName,r}function dv(t){const e=fv(t),r=x.forwardRef((n,i)=>{const{children:u,...a}=n,o=x.Children.toArray(u),s=o.find(hv);if(s){const l=s.props.children,c=o.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,{...a,ref:i,children:x.isValidElement(l)?x.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:i,children:u})});return r.displayName=`${t}.Slot`,r}function fv(t){const e=x.forwardRef((r,n)=>{const{children:i,...u}=r;if(x.isValidElement(i)){const a=gv(i),o=bv(u,i.props);return i.type!==x.Fragment&&(o.ref=n?Jn(n,a):a),x.cloneElement(i,o)}return x.Children.count(i)>1?x.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var pv=Symbol("radix.slottable");function hv(t){return x.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pv}function bv(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]=(...o)=>{const s=u(...o);return i(...o),s}:i&&(r[n]=i):n==="style"?r[n]={...i,...u}:n==="className"&&(r[n]=[i,u].filter(Boolean).join(" "))}return{...t,...r}}function gv(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 mv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Oe=mv.reduce((t,e)=>{const r=dv(`Primitive.${e}`),n=x.forwardRef((i,u)=>{const{asChild:a,...o}=i,s=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(s,{...o,ref:u})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function yv(t,e){t&&il.flushSync(()=>t.dispatchEvent(e))}function Hr(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 vv(t,e=globalThis==null?void 0:globalThis.document){const r=Hr(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 xv="DismissableLayer",bu="dismissableLayer.update",wv="dismissableLayer.pointerDownOutside",Sv="dismissableLayer.focusOutside",ds,ac=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),oc=x.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:u,onInteractOutside:a,onDismiss:o,...s}=t,l=x.useContext(ac),[c,h]=x.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=x.useState({}),g=Be(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=Tv(R=>{const D=R.target,$=[...l.branches].some(L=>L.contains(D));!C||$||(i==null||i(R),a==null||a(R),R.defaultPrevented||o==null||o())},d),k=Av(R=>{const D=R.target;[...l.branches].some(L=>L.contains(D))||(u==null||u(R),a==null||a(R),R.defaultPrevented||o==null||o())},d);return vv(R=>{v===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&o&&(R.preventDefault(),o()))},d),x.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ds=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),fs(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=ds)}},[c,d,r,l]),x.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),fs())},[c,l]),x.useEffect(()=>{const R=()=>f({});return document.addEventListener(bu,R),()=>document.removeEventListener(bu,R)},[]),p.jsx(Oe.div,{...s,ref:g,style:{pointerEvents:E?C?"auto":"none":void 0,...t.style},onFocusCapture:Se(t.onFocusCapture,k.onFocusCapture),onBlurCapture:Se(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Se(t.onPointerDownCapture,N.onPointerDownCapture)})});oc.displayName=xv;var Cv="DismissableLayerBranch",Ev=x.forwardRef((t,e)=>{const r=x.useContext(ac),n=x.useRef(null),i=Be(e,n);return x.useEffect(()=>{const u=n.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),p.jsx(Oe.div,{...t,ref:i})});Ev.displayName=Cv;function Tv(t,e=globalThis==null?void 0:globalThis.document){const r=Hr(t),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const u=o=>{if(o.target&&!n.current){let s=function(){sc(wv,r,l,{discrete:!0})};const l={originalEvent:o};o.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},a=window.setTimeout(()=>{e.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",u),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Av(t,e=globalThis==null?void 0:globalThis.document){const r=Hr(t),n=x.useRef(!1);return x.useEffect(()=>{const i=u=>{u.target&&!n.current&&sc(Sv,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 fs(){const t=new CustomEvent(bu);document.dispatchEvent(t)}function sc(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?yv(i,u):i.dispatchEvent(u)}var ct=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},Nv=x[" useId ".trim().toString()]||(()=>{}),Ov=0;function lc(t){const[e,r]=x.useState(Nv());return ct(()=>{r(n=>n??String(Ov++))},[t]),e?`radix-${e}`:""}const jv=["top","right","bottom","left"],dt=Math.min,ge=Math.max,In=Math.round,nn=Math.floor,Ie=t=>({x:t,y:t}),_v={left:"right",right:"left",bottom:"top",top:"bottom"},Pv={start:"end",end:"start"};function gu(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 sr(t){return t.split("-")[1]}function ga(t){return t==="x"?"y":"x"}function ma(t){return t==="y"?"height":"width"}const kv=new Set(["top","bottom"]);function ke(t){return kv.has(Qe(t))?"y":"x"}function ya(t){return ga(ke(t))}function Rv(t,e,r){r===void 0&&(r=!1);const n=sr(t),i=ya(t),u=ma(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[u]>e.floating[u]&&(a=Dn(a)),[a,Dn(a)]}function Iv(t){const e=Dn(t);return[mu(t),e,mu(e)]}function mu(t){return t.replace(/start|end/g,e=>Pv[e])}const ps=["left","right"],hs=["right","left"],Dv=["top","bottom"],Lv=["bottom","top"];function Mv(t,e,r){switch(t){case"top":case"bottom":return r?e?hs:ps:e?ps:hs;case"left":case"right":return e?Dv:Lv;default:return[]}}function $v(t,e,r,n){const i=sr(t);let u=Mv(Qe(t),r==="start",n);return i&&(u=u.map(a=>a+"-"+i),e&&(u=u.concat(u.map(mu)))),u}function Dn(t){return t.replace(/left|right|bottom|top/g,e=>_v[e])}function Bv(t){return{top:0,right:0,bottom:0,left:0,...t}}function cc(t){return typeof t!="number"?Bv(t):{top:t,right:t,bottom:t,left:t}}function Ln(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 bs(t,e,r){let{reference:n,floating:i}=t;const u=ke(e),a=ya(e),o=ma(a),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[o]/2-i[o]/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(sr(e)){case"start":f[a]-=d*(r&&l?-1:1);break;case"end":f[a]+=d*(r&&l?-1:1);break}return f}const qv=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:u=[],platform:a}=r,o=u.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:h}=bs(l,n,s),d=n,f={},g=0;for(let m=0;m<o.length;m++){const{name:b,fn:y}=o[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:a,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 a.getElementRects({reference:t,floating:e,strategy:i}):N.rects),{x:c,y:h}=bs(l,d,s)),m=-1)}return{x:c,y:h,placement:d,strategy:i,middlewareData:f}};async function jr(t,e){var r;e===void 0&&(e={});const{x:n,y:i,platform:u,rects:a,elements:o,strategy:s}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=Ze(e,t),g=cc(f),b=o[d?h==="floating"?"reference":"floating":h],y=Ln(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(o.floating)),boundary:l,rootBoundary:c,strategy:s})),v=h==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,E=await(u.getOffsetParent==null?void 0:u.getOffsetParent(o.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=Ln(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,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 Hv=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:u,platform:a,elements:o,middlewareData:s}=e,{element:l,padding:c=0}=Ze(t,e)||{};if(l==null)return{};const h=cc(c),d={x:r,y:n},f=ya(i),g=ma(f),m=await a.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(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let R=k?k[E]:0;(!R||!await(a.isElement==null?void 0:a.isElement(k)))&&(R=o.floating[E]||u.floating[g]);const D=C/2-N/2,$=R/2-m[g]/2-1,L=dt(h[y],$),S=dt(h[v],$),T=L,_=R-m[g]-S,I=R/2-m[g]/2+D,w=gu(T,I,_),O=!s.arrow&&sr(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}}}),Fv=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:i,middlewareData:u,rects:a,initialPlacement:o,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=ke(o),E=Qe(o)===o,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),N=d||(E||!m?[Dn(o)]:Iv(o)),k=g!=="none";!d&&k&&N.push(...$v(o,m,g,C));const R=[o,...N],D=await jr(e,b),$=[];let L=((n=u.flip)==null?void 0:n.overflows)||[];if(c&&$.push(D[y]),h){const I=Rv(i,a,C);$.push(D[I[0]],D[I[1]])}if(L=[...L,{placement:i,overflows:$}],!$.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!==ke(w):!1)||L.every(P=>ke(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=ke(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=o;break}if(i!==O)return{reset:{placement:O}}}return{}}}};function gs(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ms(t){return jv.some(e=>t[e]>=0)}const zv=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 jr(e,{...i,elementContext:"reference"}),a=gs(u,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ms(a)}}}case"escaped":{const u=await jr(e,{...i,altBoundary:!0}),a=gs(u,r.floating);return{data:{escapedOffsets:a,escaped:ms(a)}}}default:return{}}}}},dc=new Set(["left","top"]);async function Uv(t,e){const{placement:r,platform:n,elements:i}=t,u=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=Qe(r),o=sr(r),s=ke(r)==="y",l=dc.has(a)?-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 o&&typeof g=="number"&&(f=o==="end"?g*-1:g),s?{x:f*c,y:d*l}:{x:d*l,y:f*c}}const Vv=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:i,y:u,placement:a,middlewareData:o}=e,s=await Uv(e,t);return a===((r=o.offset)==null?void 0:r.placement)&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:i+s.x,y:u+s.y,data:{...s,placement:a}}}}},Wv=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:a=!1,limiter:o={fn:b=>{let{x:y,y:v}=b;return{x:y,y:v}}},...s}=Ze(t,e),l={x:r,y:n},c=await jr(e,s),h=ke(Qe(i)),d=ga(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=gu(v,f,E)}if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",v=g+c[b],E=g-c[y];g=gu(v,g,E)}const m=o.fn({...e,[d]:f,[h]:g});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[d]:u,[h]:a}}}}}},Gv=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:u,middlewareData:a}=e,{offset:o=0,mainAxis:s=!0,crossAxis:l=!0}=Ze(t,e),c={x:r,y:n},h=ke(i),d=ga(h);let f=c[d],g=c[h];const m=Ze(o,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=dc.has(Qe(i)),N=u.reference[h]-u.floating[E]+(C&&((y=a.offset)==null?void 0:y[h])||0)+(C?0:b.crossAxis),k=u.reference[h]+u.reference[E]+(C?0:((v=a.offset)==null?void 0:v[h])||0)-(C?b.crossAxis:0);g<N?g=N:g>k&&(g=k)}return{[d]:f,[h]:g}}}},Xv=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:i,rects:u,platform:a,elements:o}=e,{apply:s=()=>{},...l}=Ze(t,e),c=await jr(e,l),h=Qe(i),d=sr(i),f=ke(i)==="y",{width:g,height:m}=u.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=d===(await(a.isRTL==null?void 0:a.isRTL(o.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 $=await a.getDimensions(o.floating);return g!==$.width||m!==$.height?{reset:{rects:!0}}:{}}}};function di(){return typeof window<"u"}function lr(t){return fc(t)?(t.nodeName||"").toLowerCase():"#document"}function me(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function He(t){var e;return(e=(fc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fc(t){return di()?t instanceof Node||t instanceof me(t).Node:!1}function Ae(t){return di()?t instanceof Element||t instanceof me(t).Element:!1}function $e(t){return di()?t instanceof HTMLElement||t instanceof me(t).HTMLElement:!1}function ys(t){return!di()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof me(t).ShadowRoot}const Yv=new Set(["inline","contents"]);function Fr(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Ne(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!Yv.has(i)}const Jv=new Set(["table","td","th"]);function Kv(t){return Jv.has(lr(t))}const Zv=[":popover-open",":modal"];function fi(t){return Zv.some(e=>{try{return t.matches(e)}catch{return!1}})}const Qv=["transform","translate","scale","rotate","perspective"],e2=["transform","translate","scale","rotate","perspective","filter"],t2=["paint","layout","strict","content"];function va(t){const e=xa(),r=Ae(t)?Ne(t):t;return Qv.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)||e2.some(n=>(r.willChange||"").includes(n))||t2.some(n=>(r.contain||"").includes(n))}function r2(t){let e=ft(t);for(;$e(e)&&!Ut(e);){if(va(e))return e;if(fi(e))return null;e=ft(e)}return null}function xa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const n2=new Set(["html","body","#document"]);function Ut(t){return n2.has(lr(t))}function Ne(t){return me(t).getComputedStyle(t)}function pi(t){return Ae(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ft(t){if(lr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ys(t)&&t.host||He(t);return ys(e)?e.host:e}function pc(t){const e=ft(t);return Ut(e)?t.ownerDocument?t.ownerDocument.body:t.body:$e(e)&&Fr(e)?e:pc(e)}function _r(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=pc(t),u=i===((n=t.ownerDocument)==null?void 0:n.body),a=me(i);if(u){const o=yu(a);return e.concat(a,a.visualViewport||[],Fr(i)?i:[],o&&r?_r(o):[])}return e.concat(i,_r(i,[],r))}function yu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function hc(t){const e=Ne(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=$e(t),u=i?t.offsetWidth:r,a=i?t.offsetHeight:n,o=In(r)!==u||In(n)!==a;return o&&(r=u,n=a),{width:r,height:n,$:o}}function wa(t){return Ae(t)?t:t.contextElement}function Bt(t){const e=wa(t);if(!$e(e))return Ie(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:u}=hc(e);let a=(u?In(r.width):r.width)/n,o=(u?In(r.height):r.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const i2=Ie(0);function bc(t){const e=me(t);return!xa()||!e.visualViewport?i2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function u2(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=wa(t);let a=Ie(1);e&&(n?Ae(n)&&(a=Bt(n)):a=Bt(t));const o=u2(u,r,n)?bc(u):Ie(0);let s=(i.left+o.x)/a.x,l=(i.top+o.y)/a.y,c=i.width/a.x,h=i.height/a.y;if(u){const d=me(u),f=n&&Ae(n)?me(n):n;let g=d,m=yu(g);for(;m&&n&&f!==g;){const b=Bt(m),y=m.getBoundingClientRect(),v=Ne(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=yu(g)}}return Ln({width:c,height:h,x:s,y:l})}function hi(t,e){const r=pi(t).scrollLeft;return e?e.left+r:St(He(t)).left+r}function gc(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-hi(t,r),i=r.top+e.scrollTop;return{x:n,y:i}}function a2(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const u=i==="fixed",a=He(n),o=e?fi(e.floating):!1;if(n===a||o&&u)return r;let s={scrollLeft:0,scrollTop:0},l=Ie(1);const c=Ie(0),h=$e(n);if((h||!h&&!u)&&((lr(n)!=="body"||Fr(a))&&(s=pi(n)),$e(n))){const f=St(n);l=Bt(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const d=a&&!h&&!u?gc(a,s):Ie(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 o2(t){return Array.from(t.getClientRects())}function s2(t){const e=He(t),r=pi(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 a=-r.scrollLeft+hi(t);const o=-r.scrollTop;return Ne(n).direction==="rtl"&&(a+=ge(e.clientWidth,n.clientWidth)-i),{width:i,height:u,x:a,y:o}}const vs=25;function l2(t,e){const r=me(t),n=He(t),i=r.visualViewport;let u=n.clientWidth,a=n.clientHeight,o=0,s=0;if(i){u=i.width,a=i.height;const c=xa();(!c||c&&e==="fixed")&&(o=i.offsetLeft,s=i.offsetTop)}const l=hi(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<=vs&&(u-=g)}else l<=vs&&(u+=l);return{width:u,height:a,x:o,y:s}}const c2=new Set(["absolute","fixed"]);function d2(t,e){const r=St(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,u=$e(t)?Bt(t):Ie(1),a=t.clientWidth*u.x,o=t.clientHeight*u.y,s=i*u.x,l=n*u.y;return{width:a,height:o,x:s,y:l}}function xs(t,e,r){let n;if(e==="viewport")n=l2(t,r);else if(e==="document")n=s2(He(t));else if(Ae(e))n=d2(e,r);else{const i=bc(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ln(n)}function mc(t,e){const r=ft(t);return r===e||!Ae(r)||Ut(r)?!1:Ne(r).position==="fixed"||mc(r,e)}function f2(t,e){const r=e.get(t);if(r)return r;let n=_r(t,[],!1).filter(o=>Ae(o)&&lr(o)!=="body"),i=null;const u=Ne(t).position==="fixed";let a=u?ft(t):t;for(;Ae(a)&&!Ut(a);){const o=Ne(a),s=va(a);!s&&o.position==="fixed"&&(i=null),(u?!s&&!i:!s&&o.position==="static"&&!!i&&c2.has(i.position)||Fr(a)&&!s&&mc(t,a))?n=n.filter(c=>c!==a):i=o,a=ft(a)}return e.set(t,n),n}function p2(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const a=[...r==="clippingAncestors"?fi(e)?[]:f2(e,this._c):[].concat(r),n],o=a[0],s=a.reduce((l,c)=>{const h=xs(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},xs(e,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function h2(t){const{width:e,height:r}=hc(t);return{width:e,height:r}}function b2(t,e,r){const n=$e(e),i=He(e),u=r==="fixed",a=St(t,!0,u,e);let o={scrollLeft:0,scrollTop:0};const s=Ie(0);function l(){s.x=hi(i)}if(n||!n&&!u)if((lr(e)!=="body"||Fr(i))&&(o=pi(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?gc(i,o):Ie(0),h=a.left+o.scrollLeft-s.x-c.x,d=a.top+o.scrollTop-s.y-c.y;return{x:h,y:d,width:a.width,height:a.height}}function qi(t){return Ne(t).position==="static"}function ws(t,e){if(!$e(t)||Ne(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return He(t)===r&&(r=r.ownerDocument.body),r}function yc(t,e){const r=me(t);if(fi(t))return r;if(!$e(t)){let i=ft(t);for(;i&&!Ut(i);){if(Ae(i)&&!qi(i))return i;i=ft(i)}return r}let n=ws(t,e);for(;n&&Kv(n)&&qi(n);)n=ws(n,e);return n&&Ut(n)&&qi(n)&&!va(n)?r:n||r2(t)||r}const g2=async function(t){const e=this.getOffsetParent||yc,r=this.getDimensions,n=await r(t.floating);return{reference:b2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function m2(t){return Ne(t).direction==="rtl"}const y2={convertOffsetParentRelativeRectToViewportRelativeRect:a2,getDocumentElement:He,getClippingRect:p2,getOffsetParent:yc,getElementRects:g2,getClientRects:o2,getDimensions:h2,getScale:Bt,isElement:Ae,isRTL:m2};function vc(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function v2(t,e){let r=null,n;const i=He(t);function u(){var o;clearTimeout(n),(o=r)==null||o.disconnect(),r=null}function a(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),u();const l=t.getBoundingClientRect(),{left:c,top:h,width:d,height:f}=l;if(o||e(),!d||!f)return;const g=nn(h),m=nn(i.clientWidth-(c+d)),b=nn(i.clientHeight-(h+f)),y=nn(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 a();R?a(!1,R):n=setTimeout(()=>{a(!1,1e-7)},1e3)}R===1&&!vc(l,t.getBoundingClientRect())&&a(),C=!1}try{r=new IntersectionObserver(N,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(N,E)}r.observe(t)}return a(!0),u}function x2(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=n,l=wa(t),c=i||u?[...l?_r(l):[],..._r(e)]:[];c.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),u&&y.addEventListener("resize",r)});const h=l&&o?v2(l,r):null;let d=-1,f=null;a&&(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&&!vc(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 w2=Vv,S2=Wv,C2=Fv,E2=Xv,T2=zv,Ss=Hv,A2=Gv,N2=(t,e,r)=>{const n=new Map,i={platform:y2,...r},u={...i.platform,_c:n};return qv(t,e,{...i,platform:u})};var O2=typeof document<"u",j2=function(){},mn=O2?j.useLayoutEffect:j2;function Mn(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(!Mn(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)&&!Mn(t[u],e[u]))return!1}return!0}return t!==t&&e!==e}function xc(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Cs(t,e){const r=xc(t);return Math.round(e*r)/r}function Hi(t){const e=x.useRef(t);return mn(()=>{e.current=t}),e}function _2(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:u,floating:a}={},transform:o=!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);Mn(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=a||b,k=x.useRef(null),R=x.useRef(null),D=x.useRef(c),$=s!=null,L=Hi(s),S=Hi(i),T=Hi(l),_=x.useCallback(()=>{if(!k.current||!R.current)return;const P={placement:e,strategy:r,middleware:d};S.current&&(P.platform=S.current),N2(k.current,R.current,P).then(B=>{const U={...B,isPositioned:T.current!==!1};I.current&&!Mn(D.current,U)&&(D.current=U,il.flushSync(()=>{h(U)}))})},[d,e,r,S,T]);mn(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(P=>({...P,isPositioned:!1})))},[l]);const I=x.useRef(!1);mn(()=>(I.current=!0,()=>{I.current=!1}),[]),mn(()=>{if(C&&(k.current=C),N&&(R.current=N),C&&N){if(L.current)return L.current(C,N,_);_()}},[C,N,_,L,$]);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=Cs(O.floating,c.x),U=Cs(O.floating,c.y);return o?{...P,transform:"translate("+B+"px, "+U+"px)",...xc(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:B,top:U}},[r,o,O.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:_,refs:w,elements:O,floatingStyles:A}),[c,_,w,O,A])}const P2=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?Ss({element:n.current,padding:i}).fn(r):{}:n?Ss({element:n,padding:i}).fn(r):{}}}},k2=(t,e)=>({...w2(t),options:[t,e]}),R2=(t,e)=>({...S2(t),options:[t,e]}),I2=(t,e)=>({...A2(t),options:[t,e]}),D2=(t,e)=>({...C2(t),options:[t,e]}),L2=(t,e)=>({...E2(t),options:[t,e]}),M2=(t,e)=>({...T2(t),options:[t,e]}),$2=(t,e)=>({...P2(t),options:[t,e]});var B2="Arrow",wc=x.forwardRef((t,e)=>{const{children:r,width:n=10,height:i=5,...u}=t;return p.jsx(Oe.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"})})});wc.displayName=B2;var q2=wc;function Sc(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 a,o;if("borderBoxSize"in u){const s=u.borderBoxSize,l=Array.isArray(s)?s[0]:s;a=l.inlineSize,o=l.blockSize}else a=t.offsetWidth,o=t.offsetHeight;r({width:a,height:o})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var Sa="Popper",[Cc,Ec]=ci(Sa),[H2,Tc]=Cc(Sa),Ac=t=>{const{__scopePopper:e,children:r}=t,[n,i]=x.useState(null);return p.jsx(H2,{scope:e,anchor:n,onAnchorChange:i,children:r})};Ac.displayName=Sa;var Nc="PopperAnchor",Oc=x.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,u=Tc(Nc,r),a=x.useRef(null),o=Be(e,a),s=x.useRef(null);return x.useEffect(()=>{const l=s.current;s.current=(n==null?void 0:n.current)||a.current,l!==s.current&&u.onAnchorChange(s.current)}),n?null:p.jsx(Oe.div,{...i,ref:o})});Oc.displayName=Nc;var Ca="PopperContent",[F2,z2]=Cc(Ca),jc=x.forwardRef((t,e)=>{var W,_e,xe,pe,Kr,fr;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:u="center",alignOffset:a=0,arrowPadding:o=0,avoidCollisions:s=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:d=!1,updatePositionStrategy:f="optimized",onPlaced:g,...m}=t,b=Tc(Ca,r),[y,v]=x.useState(null),E=Be(e,mt=>v(mt)),[C,N]=x.useState(null),k=Sc(C),R=(k==null?void 0:k.width)??0,D=(k==null?void 0:k.height)??0,$=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(V2),altBoundary:T},{refs:I,floatingStyles:w,placement:O,isPositioned:A,middlewareData:P}=_2({strategy:"fixed",placement:$,whileElementsMounted:(...mt)=>x2(...mt,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[k2({mainAxis:i+D,alignmentAxis:a}),s&&R2({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?I2():void 0,..._}),s&&D2({..._}),L2({..._,apply:({elements:mt,rects:lo,availableWidth:c0,availableHeight:d0})=>{const{width:f0,height:p0}=lo.reference,Zr=mt.floating.style;Zr.setProperty("--radix-popper-available-width",`${c0}px`),Zr.setProperty("--radix-popper-available-height",`${d0}px`),Zr.setProperty("--radix-popper-anchor-width",`${f0}px`),Zr.setProperty("--radix-popper-anchor-height",`${p0}px`)}}),C&&$2({element:C,padding:o}),W2({arrowWidth:R,arrowHeight:D}),d&&M2({strategy:"referenceHidden",..._})]}),[B,U]=kc(O),ce=Hr(g);ct(()=>{A&&(ce==null||ce())},[A,ce]);const so=(W=P.arrow)==null?void 0:W.x,Y=(_e=P.arrow)==null?void 0:_e.y,V=((xe=P.arrow)==null?void 0:xe.centerOffset)!==0,[dr,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:dr,"--radix-popper-transform-origin":[(pe=P.transformOrigin)==null?void 0:pe.x,(Kr=P.transformOrigin)==null?void 0:Kr.y].join(" "),...((fr=P.hide)==null?void 0:fr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(F2,{scope:r,placedSide:B,onArrowChange:N,arrowX:so,arrowY:Y,shouldHideArrow:V,children:p.jsx(Oe.div,{"data-side":B,"data-align":U,...m,ref:E,style:{...m.style,animation:A?void 0:"none"}})})})});jc.displayName=Ca;var _c="PopperArrow",U2={top:"bottom",right:"left",bottom:"top",left:"right"},Pc=x.forwardRef(function(e,r){const{__scopePopper:n,...i}=e,u=z2(_c,n),a=U2[u.placedSide];return p.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[a]: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(q2,{...i,ref:r,style:{...i.style,display:"block"}})})});Pc.displayName=_c;function V2(t){return t!==null}var W2=t=>({name:"transformOrigin",options:t,fn(e){var b,y,v;const{placement:r,rects:n,middlewareData:i}=e,a=((b=i.arrow)==null?void 0:b.centerOffset)!==0,o=a?0:t.arrowWidth,s=a?0:t.arrowHeight,[l,c]=kc(r),h={start:"0%",center:"50%",end:"100%"}[c],d=(((y=i.arrow)==null?void 0:y.x)??0)+o/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+s/2;let g="",m="";return l==="bottom"?(g=a?h:`${d}px`,m=`${-s}px`):l==="top"?(g=a?h:`${d}px`,m=`${n.floating.height+s}px`):l==="right"?(g=`${-s}px`,m=a?h:`${f}px`):l==="left"&&(g=`${n.floating.width+s}px`,m=a?h:`${f}px`),{data:{x:g,y:m}}}});function kc(t){const[e,r="center"]=t.split("-");return[e,r]}var G2=Ac,X2=Oc,Y2=jc,J2=Pc;function K2(t,e){return x.useReducer((r,n)=>e[r][n]??r,t)}var bi=t=>{const{present:e,children:r}=t,n=Z2(e),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),u=Be(n.ref,Q2(i));return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:u}):null};bi.displayName="Presence";function Z2(t){const[e,r]=x.useState(),n=x.useRef(null),i=x.useRef(t),u=x.useRef("none"),a=t?"mounted":"unmounted",[o,s]=K2(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=un(n.current);u.current=o==="mounted"?l:"none"},[o]),ct(()=>{const l=n.current,c=i.current;if(c!==t){const d=u.current,f=un(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=un(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=un(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(o),ref:x.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function un(t){return(t==null?void 0:t.animationName)||"none"}function Q2(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 ex=Symbol("radix.slottable");function tx(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=ex,e}var rx=x[" useInsertionEffect ".trim().toString()]||ct;function Ea({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[i,u,a]=nx({defaultProp:e,onChange:r}),o=t!==void 0,s=o?t:i;{const c=x.useRef(t!==void 0);x.useEffect(()=>{const h=c.current;h!==o&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${o?"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=o},[o,n])}const l=x.useCallback(c=>{var h;if(o){const d=ix(c)?c(t):c;d!==t&&((h=a.current)==null||h.call(a,d))}else u(c)},[o,t,u,a]);return[s,l]}function nx({defaultProp:t,onChange:e}){const[r,n]=x.useState(t),i=x.useRef(r),u=x.useRef(e);return rx(()=>{u.current=e},[e]),x.useEffect(()=>{var a;i.current!==r&&((a=u.current)==null||a.call(u,r),i.current=r)},[r,i]),[r,n,u]}function ix(t){return typeof t=="function"}var ux=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"}),ax="VisuallyHidden",Rc=x.forwardRef((t,e)=>p.jsx(Oe.span,{...t,ref:e,style:{...ux,...t.style}}));Rc.displayName=ax;var ox=Rc,[gi]=ci("Tooltip",[Ec]),mi=Ec(),Ic="TooltipProvider",sx=700,vu="tooltip.open",[lx,Ta]=gi(Ic),Dc=t=>{const{__scopeTooltip:e,delayDuration:r=sx,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:u}=t,a=x.useRef(!0),o=x.useRef(!1),s=x.useRef(0);return x.useEffect(()=>{const l=s.current;return()=>window.clearTimeout(l)},[]),p.jsx(lx,{scope:e,isOpenDelayedRef:a,delayDuration:r,onOpen:x.useCallback(()=>{window.clearTimeout(s.current),a.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:o,onPointerInTransitChange:x.useCallback(l=>{o.current=l},[]),disableHoverableContent:i,children:u})};Dc.displayName=Ic;var Pr="Tooltip",[cx,yi]=gi(Pr),Lc=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:i,onOpenChange:u,disableHoverableContent:a,delayDuration:o}=t,s=Ta(Pr,t.__scopeTooltip),l=mi(e),[c,h]=x.useState(null),d=lc(),f=x.useRef(0),g=a??s.disableHoverableContent,m=o??s.delayDuration,b=x.useRef(!1),[y,v]=Ea({prop:n,defaultProp:i??!1,onChange:R=>{R?(s.onOpen(),document.dispatchEvent(new CustomEvent(vu))):s.onClose(),u==null||u(R)},caller:Pr}),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(G2,{...l,children:p.jsx(cx,{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})})};Lc.displayName=Pr;var xu="TooltipTrigger",Mc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=yi(xu,r),u=Ta(xu,r),a=mi(r),o=x.useRef(null),s=Be(e,o,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(X2,{asChild:!0,...a,children:p.jsx(Oe.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:s,onPointerMove:Se(t.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!u.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Se(t.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Se(t.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Se(t.onFocus,()=>{l.current||i.onOpen()}),onBlur:Se(t.onBlur,i.onClose),onClick:Se(t.onClick,i.onClose)})})});Mc.displayName=xu;var dx="TooltipPortal",[D4,fx]=gi(dx,{forceMount:void 0}),Vt="TooltipContent",$c=x.forwardRef((t,e)=>{const r=fx(Vt,t.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...u}=t,a=yi(Vt,t.__scopeTooltip);return p.jsx(bi,{present:n||a.open,children:a.disableHoverableContent?p.jsx(Bc,{side:i,...u,ref:e}):p.jsx(px,{side:i,...u,ref:e})})}),px=x.forwardRef((t,e)=>{const r=yi(Vt,t.__scopeTooltip),n=Ta(Vt,t.__scopeTooltip),i=x.useRef(null),u=Be(e,i),[a,o]=x.useState(null),{trigger:s,onClose:l}=r,c=i.current,{onPointerInTransitChange:h}=n,d=x.useCallback(()=>{o(null),h(!1)},[h]),f=x.useCallback((g,m)=>{const b=g.currentTarget,y={x:g.clientX,y:g.clientY},v=yx(y,b.getBoundingClientRect()),E=vx(y,v),C=xx(m.getBoundingClientRect()),N=Sx([...E,...C]);o(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(a){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=!wx(y,a);v?d():E&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[s,c,a,l,d]),p.jsx(Bc,{...t,ref:u})}),[hx,bx]=gi(Pr,{isInside:!1}),gx=tx("TooltipContent"),Bc=x.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:u,onPointerDownOutside:a,...o}=t,s=yi(Vt,r),l=mi(r),{onClose:c}=s;return x.useEffect(()=>(document.addEventListener(vu,c),()=>document.removeEventListener(vu,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(oc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(Y2,{"data-state":s.stateAttribute,...l,...o,ref:e,style:{...o.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(gx,{children:n}),p.jsx(hx,{scope:r,isInside:!0,children:p.jsx(ox,{id:s.contentId,role:"tooltip",children:i||n})})]})})});$c.displayName=Vt;var qc="TooltipArrow",mx=x.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,i=mi(r);return bx(qc,r).isInside?null:p.jsx(J2,{...i,...n,ref:e})});mx.displayName=qc;function yx(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 vx(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 xx(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 wx(t,e){const{x:r,y:n}=t;let i=!1;for(let u=0,a=e.length-1;u<e.length;a=u++){const o=e[u],s=e[a],l=o.x,c=o.y,h=s.x,d=s.y;c>n!=d>n&&r<(h-l)*(n-c)/(d-c)+l&&(i=!i)}return i}function Sx(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),Cx(e)}function Cx(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],a=e[e.length-2];if((u.x-a.x)*(i.y-a.y)>=(u.y-a.y)*(i.x-a.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],a=r[r.length-2];if((u.x-a.x)*(i.y-a.y)>=(u.y-a.y)*(i.x-a.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 Ex=Dc,Tx=Lc,Ax=Mc,Hc=$c;const kr=Ex,Wt=Tx,Gt=Ax,Ct=x.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Hc,{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=Hc.displayName;const qt={mobile:{icon:Ju,label:"Mobile"},tablet:{icon:Ku,label:"Tablet"},small:{icon:Yu,label:"Small Desktop"},desktop:{icon:Zu,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(Gu,{className:"h-3 w-3"}):p.jsx(Xu,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},oe=({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:a=>r(parseInt(a.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})]})]}),$n=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="px",defaultValue:a=16})=>{const o=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[o]??c.desktop??a,d=(m,b)=>{const y={...c,[m]:b};r(y)},f=m=>{d(o,m)},g=Ce.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(kr,{children:p.jsxs(Wt,{children:[p.jsx(Gt,{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(qt[o].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:Ce.map(m=>{const b=qt[m].icon,y=c[m],v=y===void 0?Ce.find(E=>Ce.indexOf(E)>Ce.indexOf(m)&&c[E]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(kr,{children:p.jsxs(Wt,{children:[p.jsx(Gt,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${m===o?"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:qt[m].label})})]})}),p.jsx("input",{type:"number",value:y??"",placeholder:v?`${c[v]??a}`:"",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})]})]})},Ee=({label:t,values:e,onChange:r})=>{const[n,i]=j.useState(!0),u=(a,o)=>{r(n?{top:o,right:o,bottom:o,left:o}:{...e,[a]:o})};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:a=>u("top",parseInt(a.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(a=>p.jsxs("div",{className:"text-center",children:[p.jsx("input",{type:"number",value:e[a],onChange:o=>u(a,parseInt(o.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:a[0].toUpperCase()})]},a))})]})},X=({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))})]}),De=({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"})]})]}),Ke=({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"})]}),vi=({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:a=>r(parseInt(a.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]}),Bn=({label:t,values:e,onChange:r,min:n=0,max:i=100,unit:u="",defaultValue:a=50})=>{const o=Ot(),[s,l]=j.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[o]??c.desktop??a,d=(g,m)=>{const b={...c,[g]:m};r(b)},f=Ce.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(kr,{children:p.jsxs(Wt,{children:[p.jsx(Gt,{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(qt[o].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:Ce.map(g=>{const m=qt[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===o?"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:qt[g].label}),p.jsxs("span",{className:"text-xs",children:[b??"-",b!==void 0?u:""]})]}),p.jsx("input",{type:"range",value:b??c.desktop??a,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(o,parseInt(g.target.value)),min:n,max:i,className:"w-full h-1.5 accent-primary"})]})},kt=({label:t,value:e,onChange:r,max:n=1e4})=>{const i=(e==null?void 0:e.type)||"custom",u=(e==null?void 0:e.value)||0,a=(e==null?void 0:e.unit)||"px",o=c=>{r(c==="none"?{type:"none"}:c==="auto"?{type:"auto"}:{type:"custom",value:u,unit:a})},s=c=>{r({type:"custom",value:c,unit:a})},l=c=>{r({type:"custom",value:u,unit:c})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-sm font-medium",children:t}),p.jsx(X,{label:"Type",value:i,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:o}),i==="custom"&&p.jsxs("div",{className:"flex gap-2",children:[p.jsx("div",{className:"flex-1",children:p.jsx(oe,{label:"Value",value:u,onChange:s,max:n})}),p.jsx("div",{className:"flex-1",children:p.jsx(X,{label:"Unit",value:a,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:l})})]})]})},Rt=t=>t?typeof t=="string"?t:typeof t=="number"?`${t}px`:t.type==="none"?"none":t.type==="auto"?"auto":t.type==="custom"?`${t.value}${t.unit||"px"}`:"auto":"auto",Aa=t=>{const e=typeof t.padding=="object"?`${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`:`${t.padding}px`,r=typeof t.margin=="object"?`${t.margin.top}px ${t.margin.right}px ${t.margin.bottom}px ${t.margin.left}px`:`${t.margin}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:e,margin:r,width:Rt(t.width),height:Rt(t.height),minHeight:Rt(t.minHeight),maxHeight:Rt(t.maxHeight),minWidth:Rt(t.minWidth),maxWidth:Rt(t.maxWidth),display:t.display,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow}},Na={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:{type:"auto"},height:{type:"auto"},minHeight:{type:"custom",value:100,unit:"px"},maxHeight:{type:"none"},minWidth:{type:"none"},maxWidth:{type:"auto"},display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},Oa=t=>{const{actions:{setProp:e},props:r}=ee(u=>({props:u.data.props})),n=typeof r.padding=="object"?r.padding:{top:r.padding||16,right:r.padding||16,bottom:r.padding||16,left:r.padding||16},i=typeof r.margin=="object"?r.margin:{top:r.margin||0,right:r.margin||0,bottom:r.margin||0,left:r.margin||0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(q,{title:"Layout",defaultOpen:!0,children:[p.jsx(X,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:u=>e(a=>a.display=u)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(Ke,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:u=>e(a=>a.flexDirection=u)}),p.jsx(X,{label:"Justify",value:r.justifyContent||"flex-start",options:[{value:"flex-start",label:"Start"},{value:"center",label:"Center"},{value:"flex-end",label:"End"},{value:"space-between",label:"Between"}],onChange:u=>e(a=>a.justifyContent=u)}),p.jsx(oe,{label:"Gap",value:r.gap||0,onChange:u=>e(a=>a.gap=u),max:64})]})]}),p.jsxs(q,{title:"Sizing",defaultOpen:!1,children:[p.jsx(kt,{label:"Width",value:r.width,onChange:u=>e(a=>a.width=u),max:1e4}),p.jsx(kt,{label:"Height",value:r.height,onChange:u=>e(a=>a.height=u),max:1e4}),p.jsx(kt,{label:"Min Height",value:r.minHeight,onChange:u=>e(a=>a.minHeight=u),max:1e4}),p.jsx(kt,{label:"Max Height",value:r.maxHeight,onChange:u=>e(a=>a.maxHeight=u),max:1e4}),p.jsx(kt,{label:"Min Width",value:r.minWidth,onChange:u=>e(a=>a.minWidth=u),max:1e4}),p.jsx(kt,{label:"Max Width",value:r.maxWidth,onChange:u=>e(a=>a.maxWidth=u),max:1e4})]}),p.jsxs(q,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Ee,{label:"Padding",values:n,onChange:u=>e(a=>a.padding=u)}),p.jsx(Ee,{label:"Margin",values:i,onChange:u=>e(a=>a.margin=u)})]}),p.jsxs(q,{title:"Background",defaultOpen:!1,children:[p.jsx(De,{label:"Color",value:r.backgroundColor||"transparent",onChange:u=>e(a=>a.backgroundColor=u)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:u=>e(a=>a.backgroundImage=u.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(X,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:u=>e(a=>a.backgroundSize=u)}),p.jsx(X,{label:"Image Repeat",value:r.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:u=>e(a=>a.backgroundRepeat=u)})]}),p.jsxs(q,{title:"Border",defaultOpen:!1,children:[p.jsx(oe,{label:"Radius",value:r.borderRadius,onChange:u=>e(a=>a.borderRadius=u),max:5e3}),p.jsx(oe,{label:"Width",value:r.borderWidth||1,onChange:u=>e(a=>a.borderWidth=u),max:10}),p.jsx(De,{label:"Color",value:r.borderColor||"transparent",onChange:u=>e(a=>a.borderColor=u)})]})]})},zr=t=>{const{connectors:{connect:e,drag:r},selected:n}=ee(i=>({selected:i.events.selected}));return p.jsx("div",{ref:i=>{i&&e(r(i))},style:Aa(t),className:`min-h-[50px] w-full ${n?"outline outline-blue-500":""}`,children:t.children})};zr.craft={isCanvas:!0,props:Na,displayName:"Container",related:{settings:Oa},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const Nx=/\{\{\s*([\w.]+)\s*\}\}/g,Ox=(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},qn=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,i)=>{const u=Ox(e,i);return u==null?n:String(u)})},jx=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),_x=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(Nx.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},Px={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"}},kx={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"}]}},Rx=({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(Wu,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(nf,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},Ix=({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(Gu,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Xu,{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(Rx,{variable:u},u.key))})]})},Fc=({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(kx).map(([e,r],n)=>p.jsx(Ix,{category:e,data:r,defaultOpen:n===0},e))})]});var zc={},Rr={},ja={},Ir={},_a={};Object.defineProperty(_a,"__esModule",{value:!0});_a.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var wu={};(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 a="";return u>65535&&(u-=65536,a+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),a+=String.fromCharCode(u),a};function n(u){var a;return u>=55296&&u<=57343||u>1114111?65533:(a=r.get(u))!==null&&a!==void 0?a:u}t.replaceCodePoint=n;function i(u){return(0,t.fromCodePoint)(n(u))}t.default=i})(wu);(function(t){var e=M&&M.__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=M&&M.__setModuleDefault||(Object.create?function(S,T){Object.defineProperty(S,"default",{enumerable:!0,value:T})}:function(S,T){S.default=T}),n=M&&M.__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=M&&M.__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(_a);t.htmlDecodeTree=u.default;var a=i(Pa);t.xmlDecodeTree=a.default;var o=n(wu);t.decodeCodePoint=o.default;var s=wu;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,o.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,o.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(a.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 $(S){return N(S,y.Strict)}t.decodeHTMLStrict=$;function L(S){return k(S,y.Strict)}t.decodeXML=L})(Ir);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Ir,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 a(d){return d>=r.Zero&&d<=r.Nine}function o(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):o(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):a(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):a(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})(ja);var Dx=M&&M.__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]}),Lx=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Mx=M&&M.__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)&&Dx(e,t,r);return Lx(e,t),e};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Parser=void 0;var an=Mx(ja),Es=Ir,It=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Z=new Set(["p"]),Ts=new Set(["thead","tbody"]),As=new Set(["dd","dt"]),Ns=new Set(["rt","rp"]),$x=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",It],["input",It],["output",It],["button",It],["datalist",It],["textarea",It],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",As],["dt",As],["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",Ns],["rp",Ns],["tbody",Ts],["tfoot",Ts]]),Bx=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Os=new Set(["math","svg"]),js=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),qx=/\s|\//,Hx=function(){function t(e,r){r===void 0&&(r={});var n,i,u,a,o;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:an.default)(this.options,this),(o=(a=this.cbs).onparserinit)===null||o===void 0||o.call(a,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,Es.fromCodePoint)(e)),this.startIndex=i},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Bx.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 a=!this.options.xmlMode&&$x.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var o=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!0)}this.isVoidElement(e)||(this.stack.push(e),Os.has(e)?this.foreignContext.push(!0):js.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,a,o,s;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Os.has(l)||js.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"),(a=(u=this.cbs).onopentag)===null||a===void 0||a.call(u,"br",{},!0),(s=(o=this.cbs).onclosetag)===null||s===void 0||s.call(o,"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,Es.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===an.QuoteType.Double?'"':e===an.QuoteType.Single?"'":e===an.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(qx),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,a,o;this.endIndex=r,(u=(i=this.cbs).oncomment)===null||u===void 0||u.call(i,this.getSlice(e,r-n)),(o=(a=this.cbs).oncommentend)===null||o===void 0||o.call(a),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var i,u,a,o,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),(o=(a=this.cbs).ontext)===null||o===void 0||o.call(a,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}();Rr.Parser=Hx;var et={},cr={};(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})(cr);var z={},ht=M&&M.__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)}}(),Sr=M&&M.__assign||function(){return Sr=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},Sr.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=cr,ka=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),Ra(this,e)},t}();z.Node=ka;var xi=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}(ka);z.DataNode=xi;var Uc=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}(xi);z.Text=Uc;var Vc=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}(xi);z.Comment=Vc;var Wc=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}(xi);z.ProcessingInstruction=Wc;var wi=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}(ka);z.NodeWithChildren=wi;var Gc=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}(wi);z.CDATA=Gc;var Xc=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}(wi);z.Document=Xc;var Yc=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 a=t.call(this,i)||this;return a.name=r,a.attribs=n,a.type=u,a}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}(wi);z.Element=Yc;function Jc(t){return(0,be.isTag)(t)}z.isTag=Jc;function Kc(t){return t.type===be.ElementType.CDATA}z.isCDATA=Kc;function Zc(t){return t.type===be.ElementType.Text}z.isText=Zc;function Qc(t){return t.type===be.ElementType.Comment}z.isComment=Qc;function ed(t){return t.type===be.ElementType.Directive}z.isDirective=ed;function td(t){return t.type===be.ElementType.Root}z.isDocument=td;function Fx(t){return Object.prototype.hasOwnProperty.call(t,"children")}z.hasChildren=Fx;function Ra(t,e){e===void 0&&(e=!1);var r;if(Zc(t))r=new Uc(t.data);else if(Qc(t))r=new Vc(t.data);else if(Jc(t)){var n=e?Fi(t.children):[],i=new Yc(t.name,Sr({},t.attribs),n);n.forEach(function(s){return s.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Sr({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Sr({},t["x-attribsPrefix"])),r=i}else if(Kc(t)){var n=e?Fi(t.children):[],u=new Gc(n);n.forEach(function(l){return l.parent=u}),r=u}else if(td(t)){var n=e?Fi(t.children):[],a=new Xc(n);n.forEach(function(l){return l.parent=a}),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),r=a}else if(ed(t)){var o=new Wc(t.name,t.data);t["x-name"]!=null&&(o["x-name"]=t["x-name"],o["x-publicId"]=t["x-publicId"],o["x-systemId"]=t["x-systemId"]),r=o}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=Ra;function Fi(t){for(var e=t.map(function(n){return Ra(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=M&&M.__createBinding||(Object.create?function(o,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(o,c,h)}:function(o,s,l,c){c===void 0&&(c=l),o[c]=s[l]}),r=M&&M.__exportStar||function(o,s){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&e(s,o,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=cr,i=z;r(z,t);var u={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function o(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 o.prototype.onparserinit=function(s){this.parser=s},o.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},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(s){this.handleCallback(s)},o.prototype.onclosetag=function(){this.lastNode=null;var s=this.tagStack.pop();this.options.withEndIndices&&(s.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(s)},o.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)},o.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}},o.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},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var s=new i.Text(""),l=new i.CDATA([s]);this.addNode(l),s.parent=l,this.lastNode=s},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(s,l){var c=new i.ProcessingInstruction(s,l);this.addNode(c)},o.prototype.handleCallback=function(s){if(typeof this.callback=="function")this.callback(s,this.dom);else if(s)throw s},o.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},o}();t.DomHandler=a,t.default=a})(et);var yn={},bt={},Ur={},rd={},Et={},Ia={};Object.defineProperty(Ia,"__esModule",{value:!0});function on(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Ia.default=new Map(on([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(on([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(on([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(on([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Hn={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(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="",a=0,o;(o=t.xmlReplacer.exec(i))!==null;){var s=o.index,l=i.charCodeAt(s),c=e.get(l);c!==void 0?(u+=i.substring(a,s)+c,a=s+1):(u+="".concat(i.substring(a,s),"&#x").concat((0,t.getCodePoint)(i,s).toString(16),";"),a=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return u+i.substr(a)}t.encodeXML=r,t.escape=r;function n(i,u){return function(o){for(var s,l=0,c="";s=i.exec(o);)l!==s.index&&(c+=o.substring(l,s.index)),c+=u.get(s[0].charCodeAt(0)),l=s.index+1;return c+o.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Hn);var zx=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Et,"__esModule",{value:!0});Et.encodeNonAsciiHTML=Et.encodeHTML=void 0;var Ux=zx(Ia),nd=Hn,Vx=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Wx(t){return id(Vx,t)}Et.encodeHTML=Wx;function Gx(t){return id(nd.xmlReplacer,t)}Et.encodeNonAsciiHTML=Gx;function id(t,e){for(var r="",n=0,i;(i=t.exec(e))!==null;){var u=i.index;r+=e.substring(n,u);var a=e.charCodeAt(u),o=Ux.default.get(a);if(typeof o=="object"){if(u+1<e.length){var s=e.charCodeAt(u+1),l=typeof o.n=="number"?o.n===s?o.o:void 0:o.n.get(s);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}o=o.v}if(o!==void 0)r+=o,n=u+1;else{var c=(0,nd.getCodePoint)(e,u);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==a)}}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=Ir,r=Et,n=Hn,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 a(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=a;function o(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),a(d,m)}t.decodeStrict=o;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=Hn;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=Ir;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}})})(rd);var Xt={};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.attributeNames=Xt.elementNames=void 0;Xt.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]}));Xt.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 Lt=M&&M.__assign||function(){return Lt=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},Lt.apply(this,arguments)},Xx=M&&M.__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]}),Yx=M&&M.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Jx=M&&M.__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)&&Xx(e,t,r);return Yx(e,t),e};Object.defineProperty(Ur,"__esModule",{value:!0});Ur.render=void 0;var Ue=Jx(cr),Fn=rd,ud=Xt,Kx=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Zx(t){return t.replace(/"/g,""")}function Qx(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?Zx:e.xmlMode||e.encodeEntities!=="utf8"?Fn.encodeXML:Fn.escapeAttribute;return Object.keys(t).map(function(i){var u,a,o=(u=t[i])!==null&&u!==void 0?u:"";return e.xmlMode==="foreign"&&(i=(a=ud.attributeNames.get(i))!==null&&a!==void 0?a:i),!e.emptyAttrs&&!e.xmlMode&&o===""?i:"".concat(i,'="').concat(n(o),'"')}).join(" ")}}var _s=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Si(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",i=0;i<r.length;i++)n+=e3(r[i],e);return n}Ur.render=Si;Ur.default=Si;function e3(t,e){switch(t.type){case Ue.Root:return Si(t.children,e);case Ue.Doctype:case Ue.Directive:return i3(t);case Ue.Comment:return o3(t);case Ue.CDATA:return a3(t);case Ue.Script:case Ue.Style:case Ue.Tag:return n3(t,e);case Ue.Text:return u3(t,e)}}var t3=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),r3=new Set(["svg","math"]);function n3(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=ud.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&t3.has(t.parent.name)&&(e=Lt(Lt({},e),{xmlMode:!1}))),!e.xmlMode&&r3.has(t.name)&&(e=Lt(Lt({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),i=Qx(t.attribs,e);return i&&(n+=" ".concat(i)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&_s.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=Si(t.children,e)),(e.xmlMode||!_s.has(t.name))&&(n+="</".concat(t.name,">"))),n}function i3(t){return"<".concat(t.data,">")}function u3(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&Kx.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Fn.encodeXML)(n):(0,Fn.escapeText)(n)),n}function a3(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function o3(t){return"<!--".concat(t.data,"-->")}var s3=M&&M.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bt,"__esModule",{value:!0});bt.getOuterHTML=ad;bt.getInnerHTML=d3;bt.getText=vn;bt.textContent=Su;bt.innerText=Cu;var Le=et,l3=s3(Ur),c3=cr;function ad(t,e){return(0,l3.default)(t,e)}function d3(t,e){return(0,Le.hasChildren)(t)?t.children.map(function(r){return ad(r,e)}).join(""):""}function vn(t){return Array.isArray(t)?t.map(vn).join(""):(0,Le.isTag)(t)?t.name==="br"?`
|
|
146
|
+
`:vn(t.children):(0,Le.isCDATA)(t)?vn(t.children):(0,Le.isText)(t)?t.data:""}function Su(t){return Array.isArray(t)?t.map(Su).join(""):(0,Le.hasChildren)(t)&&!(0,Le.isComment)(t)?Su(t.children):(0,Le.isText)(t)?t.data:""}function Cu(t){return Array.isArray(t)?t.map(Cu).join(""):(0,Le.hasChildren)(t)&&(t.type===c3.ElementType.Tag||(0,Le.isCDATA)(t))?Cu(t.children):(0,Le.isText)(t)?t.data:""}var Fe={};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getChildren=od;Fe.getParent=sd;Fe.getSiblings=f3;Fe.getAttributeValue=p3;Fe.hasAttrib=h3;Fe.getName=b3;Fe.nextElementSibling=g3;Fe.prevElementSibling=m3;var Da=et;function od(t){return(0,Da.hasChildren)(t)?t.children:[]}function sd(t){return t.parent||null}function f3(t){var e,r,n=sd(t);if(n!=null)return od(n);for(var i=[t],u=t.prev,a=t.next;u!=null;)i.unshift(u),e=u,u=e.prev;for(;a!=null;)i.push(a),r=a,a=r.next;return i}function p3(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function h3(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function b3(t){return t.name}function g3(t){for(var e,r=t.next;r!==null&&!(0,Da.isTag)(r);)e=r,r=e.next;return r}function m3(t){for(var e,r=t.prev;r!==null&&!(0,Da.isTag)(r);)e=r,r=e.prev;return r}var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.removeElement=Vr;gt.replaceElement=y3;gt.appendChild=v3;gt.append=x3;gt.prependChild=w3;gt.prepend=S3;function Vr(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 y3(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 v3(t,e){if(Vr(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 x3(t,e){Vr(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 w3(t,e){if(Vr(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 S3(t,e){Vr(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=C3;rt.find=ld;rt.findOneChild=E3;rt.findOne=cd;rt.existsOne=dd;rt.findAll=T3;var Tt=et;function C3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),ld(t,Array.isArray(e)?e:[e],r,n)}function ld(t,e,r,n){for(var i=[],u=[Array.isArray(e)?e:[e]],a=[0];;){if(a[0]>=u[0].length){if(a.length===1)return i;u.shift(),a.shift();continue}var o=u[0][a[0]++];if(t(o)&&(i.push(o),--n<=0))return i;r&&(0,Tt.hasChildren)(o)&&o.children.length>0&&(a.unshift(0),u.unshift(o.children))}}function E3(t,e){return e.find(t)}function cd(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 a=cd(t,u.children,!0);if(a)return a}}return null}function dd(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Tt.isTag)(r)&&t(r)||(0,Tt.hasChildren)(r)&&dd(t,r.children)})}function T3(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=N3;nt.getElements=O3;nt.getElementById=j3;nt.getElementsByTagName=_3;nt.getElementsByClassName=P3;nt.getElementsByTagType=k3;var vt=et,Wr=rt,zn={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 La(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 A3(t,e){return function(r){return t(r)||e(r)}}function fd(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(zn,r)?zn[r](n):La(r,n)});return e.length===0?null:e.reduce(A3)}function N3(t,e){var r=fd(t);return r?r(e):!0}function O3(t,e,r,n){n===void 0&&(n=1/0);var i=fd(t);return i?(0,Wr.filter)(i,e,r,n):[]}function j3(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,Wr.findOne)(La("id",t),e,r)}function _3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Wr.filter)(zn.tag_name(t),e,r,n)}function P3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Wr.filter)(La("class",t),e,r,n)}function k3(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Wr.filter)(zn.tag_type(t),e,r,n)}var jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.DocumentPosition=void 0;jt.removeSubsets=R3;jt.compareDocumentPosition=pd;jt.uniqueSort=I3;var Ps=et;function R3(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 pd(t,e){var r=[],n=[];if(t===e)return 0;for(var i=(0,Ps.hasChildren)(t)?t:t.parent;i;)r.unshift(i),i=i.parent;for(i=(0,Ps.hasChildren)(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(var u=Math.min(r.length,n.length),a=0;a<u&&r[a]===n[a];)a++;if(a===0)return Te.DISCONNECTED;var o=r[a-1],s=o.children,l=r[a],c=n[a];return s.indexOf(l)>s.indexOf(c)?o===e?Te.FOLLOWING|Te.CONTAINED_BY:Te.FOLLOWING:o===t?Te.PRECEDING|Te.CONTAINS:Te.PRECEDING}function I3(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=pd(e,r);return n&Te.PRECEDING?-1:n&Te.FOLLOWING?1:0}),t}var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.getFeed=L3;var D3=bt,Gr=nt;function L3(t){var e=Un(H3,t);return e?e.name==="feed"?M3(e):$3(e):null}function M3(t){var e,r=t.children,n={type:"atom",items:(0,Gr.getElementsByTagName)("entry",r).map(function(a){var o,s=a.children,l={media:hd(s)};he(l,"id","id",s),he(l,"title","title",s);var c=(o=Un("link",s))===null||o===void 0?void 0:o.attribs.href;c&&(l.link=c);var h=at("summary",s)||at("content",s);h&&(l.description=h);var d=at("updated",s);return d&&(l.pubDate=new Date(d)),l})};he(n,"id","id",r),he(n,"title","title",r);var i=(e=Un("link",r))===null||e===void 0?void 0:e.attribs.href;i&&(n.link=i),he(n,"description","subtitle",r);var u=at("updated",r);return u&&(n.updated=new Date(u)),he(n,"author","email",r,!0),n}function $3(t){var e,r,n=(r=(e=Un("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,Gr.getElementsByTagName)("item",t.children).map(function(a){var o=a.children,s={media:hd(o)};he(s,"id","guid",o),he(s,"title","title",o),he(s,"link","link",o),he(s,"description","description",o);var l=at("pubDate",o)||at("dc:date",o);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=at("lastBuildDate",n);return u&&(i.updated=new Date(u)),he(i,"author","managingEditor",n,!0),i}var B3=["url","type","lang"],q3=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function hd(t){return(0,Gr.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},i=0,u=B3;i<u.length;i++){var a=u[i];r[a]&&(n[a]=r[a])}for(var o=0,s=q3;o<s.length;o++){var a=s[o];r[a]&&(n[a]=parseInt(r[a],10))}return r.expression&&(n.expression=r.expression),n})}function Un(t,e){return(0,Gr.getElementsByTagName)(t,e,!0,1)[0]}function at(t,e,r){return r===void 0&&(r=!1),(0,D3.textContent)((0,Gr.getElementsByTagName)(t,e,r,1)).trim()}function he(t,e,r,n,i){i===void 0&&(i=!1);var u=at(r,n,i);u&&(t[e]=u)}function H3(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=M&&M.__createBinding||(Object.create?function(i,u,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(u,a);(!s||("get"in s?!u.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return u[a]}}),Object.defineProperty(i,o,s)}:function(i,u,a,o){o===void 0&&(o=a),i[o]=u[a]}),r=M&&M.__exportStar||function(i,u){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(u,a)&&e(u,i,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(bt,t),r(Fe,t),r(gt,t),r(rt,t),r(nt,t),r(jt,t),r(Ma,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}})})(yn);(function(t){var e=M&&M.__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=M&&M.__setModuleDefault||(Object.create?function(y,v){Object.defineProperty(y,"default",{enumerable:!0,value:v})}:function(y,v){y.default=v}),n=M&&M.__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=M&&M.__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=Rr,a=Rr;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return a.Parser}});var o=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 o.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 o.DomHandler(y,v,E);return new u.Parser(C,v)}t.createDomStream=h;var d=ja;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return i(d).default}}),t.ElementType=n(cr);var f=yn,g=yn;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(yn)})(zc);var F3=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},$a={};Object.defineProperty($a,"__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 ks(t){return Object.prototype.toString.call(t)==="[object Object]"}function z3(t){var e,r;return ks(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(ks(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}$a.isPlainObject=z3;var U3=function(e){return V3(e)&&!W3(e)};function V3(t){return!!t&&typeof t=="object"}function W3(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Y3(t)}var G3=typeof Symbol=="function"&&Symbol.for,X3=G3?Symbol.for("react.element"):60103;function Y3(t){return t.$$typeof===X3}function J3(t){return Array.isArray(t)?[]:{}}function Dr(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Yt(J3(t),t,e):t}function K3(t,e,r){return t.concat(e).map(function(n){return Dr(n,r)})}function Z3(t,e){if(!e.customMerge)return Yt;var r=e.customMerge(t);return typeof r=="function"?r:Yt}function Q3(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Rs(t){return Object.keys(t).concat(Q3(t))}function bd(t,e){try{return e in t}catch{return!1}}function ew(t,e){return bd(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function tw(t,e,r){var n={};return r.isMergeableObject(t)&&Rs(t).forEach(function(i){n[i]=Dr(t[i],r)}),Rs(e).forEach(function(i){ew(t,i)||(bd(t,i)&&r.isMergeableObject(e[i])?n[i]=Z3(i,r)(t[i],e[i],r):n[i]=Dr(e[i],r))}),n}function Yt(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||K3,r.isMergeableObject=r.isMergeableObject||U3,r.cloneUnlessOtherwiseSpecified=Dr;var n=Array.isArray(e),i=Array.isArray(t),u=n===i;return u?n?r.arrayMerge(t,e,r):tw(t,e,r):Dr(e,r)}Yt.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Yt(n,i,r)},{})};var rw=Yt,nw=rw,gd={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(M,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]+/,a=/^[, \t\n\r\u000c]+/,o=/^[^ \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(a),b>=i)return y;h=n(o),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,$={},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+"'."):($.url=h,N&&($.w=N),k&&($.d=k),R&&($.h=R),y.push($))}}})})(gd);var iw=gd.exports,Ba={exports:{}},F=String,md=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}};Ba.exports=md();Ba.exports.createColors=md;var uw=Ba.exports;const aw={},ow=Object.freeze(Object.defineProperty({__proto__:null,default:aw},Symbol.toStringTag,{value:"Module"})),je=Lf(ow);let Is=uw,Ds=je,Eu=class yd extends Error{constructor(e,r,n,i,u,a){super(e),this.name="CssSyntaxError",this.reason=e,u&&(this.file=u),i&&(this.source=i),a&&(this.plugin=a),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,yd)}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=Is.isColorSupported);let n=c=>c,i=c=>c,u=c=>c;if(e){let{bold:c,gray:h,red:d}=Is.createColors(!0);i=f=>c(d(f)),n=f=>h(f),Ds&&(u=f=>Ds(f))}let a=r.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,a.length),l=String(s).length;return a.slice(o,s).map((c,h)=>{let d=o+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 qa=Eu;Eu.default=Eu;const Ls={after:`
|
|
159
|
+
`,beforeClose:`
|
|
160
|
+
`,beforeComment:`
|
|
161
|
+
`,beforeDecl:`
|
|
162
|
+
`,beforeOpen:" ",beforeRule:`
|
|
163
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function sw(t){return t[0].toUpperCase()+t.slice(1)}let Tu=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 a=this.raw(e,null,"indent");if(a.length)for(let o=0;o<u;o++)n+=a}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],a=this.raw(u,"before");a&&this.builder(a),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 Ls[n];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[n]<"u")return a.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let o="raw"+sw(n);this[o]?i=this[o](a,e):a.walk(s=>{if(i=s.raws[r],typeof i<"u")return!1})}return typeof i>"u"&&(i=Ls[n]),a.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 vd=Tu;Tu.default=Tu;let lw=vd;function Au(t,e){new lw(e).stringify(t)}var Ci=Au;Au.default=Au;var Xr={};Xr.isClean=Symbol("isClean");Xr.my=Symbol("my");let cw=qa,dw=vd,fw=Ci,{isClean:gr,my:pw}=Xr;function Nu(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(a=>Nu(a,r)):(u==="object"&&i!==null&&(i=Nu(i)),r[n]=i)}return r}function Ve(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 Ou=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[gr]=!1,this[pw]=!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=Nu(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 cw(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[gr]=!0}markDirty(){if(this[gr]){this[gr]=!1;let e=this;for(;e=e.parent;)e[gr]=!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(Ve(n,this.source.start),Ve(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=Ve(i,this.source.start),a=u+e;for(let o=u;o<a;o++)i[o]===`
|
|
171
|
+
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:a}}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:Ve(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:Ve(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let a=r.slice(Ve(r,this.source.start),Ve(r,this.source.end)).indexOf(e.word);a!==-1&&(n=this.positionInside(a),i=this.positionInside(a+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:Ve(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Ve(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 dw().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 a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let o=this[a];if(Array.isArray(o))n[a]=o.map(s=>typeof s=="object"&&s.toJSON?s.toJSON(null,r):s);else if(typeof o=="object"&&o.toJSON)n[a]=o.toJSON(null,r);else if(a==="source"){if(o==null)continue;let s=r.get(o.input);s==null&&(s=u,r.set(o.input,u),u++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return i&&(n.inputs=[...r.keys()].map(a=>a.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=fw){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 Ei=Ou;Ou.default=Ou;let hw=Ei,ju=class extends hw{constructor(e){super(e),this.type="comment"}};var Ti=ju;ju.default=ju;let bw=Ei,_u=class extends bw{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 Ai=_u;_u.default=_u;let xd=Ti,wd=Ai,gw=Ei,{isClean:Sd,my:Cd}=Xr,Ha,Ed,Td,Fa;function Ad(t){return t.map(e=>(e.nodes&&(e.nodes=Ad(e.nodes)),delete e.source,e))}function Nd(t){if(t[Sd]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Nd(e)}let tt=class Od extends gw{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,a)=>i(u.toProxy(),a):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 a of i)this.proxyOf.nodes.splice(n+1,0,a);let u;for(let a in this.indexes)u=this.indexes[a],n<u&&(this.indexes[a]=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 o of u)this.proxyOf.nodes.splice(n,0,o);let a;for(let o in this.indexes)a=this.indexes[o],n<=a&&(this.indexes[o]=a+u.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=Ad(Ed(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 wd(e)]}else if(e.selector||e.selectors)e=[new Fa(e)];else if(e.name)e=[new Ha(e)];else if(e.text)e=[new xd(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Cd]||Od.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Sd]&&Nd(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=>{Ed=t};tt.registerRule=t=>{Fa=t};tt.registerAtRule=t=>{Ha=t};tt.registerRoot=t=>{Td=t};var _t=tt;tt.default=tt;tt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ha.prototype):t.type==="rule"?Object.setPrototypeOf(t,Fa.prototype):t.type==="decl"?Object.setPrototypeOf(t,wd.prototype):t.type==="comment"?Object.setPrototypeOf(t,xd.prototype):t.type==="root"&&Object.setPrototypeOf(t,Td.prototype),t[Cd]=!0,t.nodes&&t.nodes.forEach(e=>{tt.rebuild(e)})};let jd=_t,Vn=class extends jd{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 za=Vn;Vn.default=Vn;jd.registerAtRule(Vn);let mw=_t,_d,Pd,Lr=class extends mw{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new _d(new Pd,this,e).stringify()}};Lr.registerLazyResult=t=>{_d=t};Lr.registerProcessor=t=>{Pd=t};var Ua=Lr;Lr.default=Lr;let yw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",vw=(t=21)=>{let e="",r=t|0;for(;r--;)e+=yw[Math.random()*64|0];return e};var xw={nanoid:vw};let{existsSync:ww,readFileSync:Sw}=je,{dirname:zi,join:Cw}=je,{SourceMapConsumer:Ms,SourceMapGenerator:$s}=je;function Ew(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Pu=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=zi(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Ms(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,/,a=e.match(i)||e.match(u);if(a)return decodeURIComponent(e.substr(a[0].length));let o=e.match(r)||e.match(n);if(o)return Ew(e.substr(o[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=zi(e),ww(e))return this.mapFile=e,Sw(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 Ms)return $s.fromSourceMap(r).toString();if(r instanceof $s)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=Cw(zi(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 kd=Pu;Pu.default=Pu;let{nanoid:Tw}=xw,{isAbsolute:ku,resolve:Ru}=je,{SourceMapConsumer:Aw,SourceMapGenerator:Nw}=je,{fileURLToPath:Bs,pathToFileURL:sn}=je,qs=qa,Ow=kd,Ui=je,Vi=Symbol("lineToIndexCache"),jw=!!(Aw&&Nw),Hs=!!(Ru&&ku);function Fs(t){if(t[Vi])return t[Vi];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[Vi]=r,r}let Wn=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&&(!Hs||/^\w+:\/\//.test(r.from)||ku(r.from)?this.file=r.from:this.file=Ru(r.from)),Hs&&jw){let n=new Ow(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 "+Tw(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,i={}){let u,a,o,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"){o=d.offset;let f=this.fromOffset(o);a=f.line,u=f.col}else a=d.line,u=d.column,o=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,a,u);return c?l=new qs(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 qs(e,a===void 0?r:{column:n,line:r},a===void 0?n:{column:u,line:a},this.css,this.file,i.plugin),l.input={column:n,endColumn:u,endLine:a,endOffset:o,line:r,offset:s,source:this.css},this.file&&(sn&&(l.input.url=sn(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Fs(this)[e-1]+r-1}fromOffset(e){let r=Fs(this),n=r[r.length-1],i=0;if(e>=n)i=r.length-1;else{let u=r.length-2,a;for(;i<u;)if(a=i+(u-i>>1),e<r[a])u=a-1;else if(e>=r[a+1])i=a+1;else{i=a;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ru(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,i){if(!this.map)return!1;let u=this.map.consumer(),a=u.originalPositionFor({column:r,line:e});if(!a.source)return!1;let o;typeof n=="number"&&(o=u.originalPositionFor({column:i,line:n}));let s;ku(a.source)?s=sn(a.source):s=new URL(a.source,this.map.consumer().sourceRoot||sn(this.map.mapFile));let l={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol==="file:")if(Bs)l.file=Bs(s);else throw new Error("file: protocol is not available in this PostCSS build");let c=u.sourceContentFor(a.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 Ni=Wn;Wn.default=Wn;Ui&&Ui.registerInput&&Ui.registerInput(Wn);let Rd=_t,Id,Dd,Jt=class extends Rd{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 Id(new Dd,this,e).stringify()}};Jt.registerLazyResult=t=>{Id=t};Jt.registerProcessor=t=>{Dd=t};var Yr=Jt;Jt.default=Jt;Rd.registerRoot(Jt);let Mr={comma(t){return Mr.split(t,[","],!0)},space(t){let e=[" ",`
|
|
173
|
+
`," "];return Mr.split(t,e)},split(t,e,r){let n=[],i="",u=!1,a=0,o=!1,s="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:o?c===s&&(o=!1):c==='"'||c==="'"?(o=!0,s=c):c==="("?a+=1:c===")"?a>0&&(a-=1):a===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 Ld=Mr;Mr.default=Mr;let Md=_t,_w=Ld,Gn=class extends Md{get selectors(){return _w.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 Va=Gn;Gn.default=Gn;Md.registerRule(Gn);let Pw=za,kw=Ti,Rw=Ai,Iw=Ni,Dw=kd,Lw=Yr,Mw=Va;function $r(t,e){if(Array.isArray(t))return t.map(i=>$r(i));let{inputs:r,...n}=t;if(r){e=[];for(let i of r){let u={...i,__proto__:Iw.prototype};u.map&&(u.map={...u.map,__proto__:Dw.prototype}),e.push(u)}}if(n.nodes&&(n.nodes=t.nodes.map(i=>$r(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 Lw(n);if(n.type==="decl")return new Rw(n);if(n.type==="rule")return new Mw(n);if(n.type==="comment")return new kw(n);if(n.type==="atrule")return new Pw(n);throw new Error("Unknown node type: "+t.type)}var $w=$r;$r.default=$r;let{dirname:xn,relative:$d,resolve:Bd,sep:qd}=je,{SourceMapConsumer:Hd,SourceMapGenerator:wn}=je,{pathToFileURL:zs}=je,Bw=Ni,qw=!!(Hd&&wn),Hw=!!(xn&&Bd&&$d&&qd),Fw=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||xn(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Hd(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(),Hw&&qw&&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=wn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new wn({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 wn({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,a;this.stringify(this.root,(o,s,l)=>{if(this.css+=o,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))),a=o.match(/\n/g),a?(e+=a.length,u=o.lastIndexOf(`
|
|
177
|
+
`),r=o.length-u):r+=o.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?xn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=xn(Bd(n,this.mapOpts.annotation)));let i=$d(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 Bw(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(zs){let n=zs(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;qd==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Fd=Fw;const Wi=39,Us=34,ln=92,Vs=47,cn=10,mr=32,dn=12,fn=9,pn=13,zw=91,Uw=93,Vw=40,Ww=41,Gw=123,Xw=125,Yw=59,Jw=42,Kw=58,Zw=64,hn=/[\t\n\f\r "#'()/;[\\\]{}]/g,bn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qw=/.[\r\n"'(/\\]/,Ws=/[\da-f]/i;var e6=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,u,a,o,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 $=D?D.ignoreUnclosed:!1;switch(u=n.charCodeAt(b),u){case cn:case mr:case fn:case pn:case dn:{s=b;do s+=1,u=n.charCodeAt(s);while(u===mr||u===cn||u===fn||u===pn||u===dn);c=["space",n.slice(b,s)],b=s-1;break}case zw:case Uw:case Gw:case Xw:case Kw:case Yw:case Ww:{let L=String.fromCharCode(u);c=[L,L,b];break}case Vw:{if(g=y.length?y.pop()[1]:"",f=n.charCodeAt(b+1),g==="url"&&f!==Wi&&f!==Us&&f!==mr&&f!==cn&&f!==fn&&f!==dn&&f!==pn){s=b;do{if(h=!1,s=n.indexOf(")",s+1),s===-1)if(i||$){s=b;break}else C("bracket");for(d=s;n.charCodeAt(d-1)===ln;)d-=1,h=!h}while(h);c=["brackets",n.slice(b,s+1),b,s],b=s}else s=n.indexOf(")",b+1),a=n.slice(b,s+1),s===-1||Qw.test(a)?c=["(","(",b]:(c=["brackets",a,b,s],b=s);break}case Wi:case Us:{l=u===Wi?"'":'"',s=b;do{if(h=!1,s=n.indexOf(l,s+1),s===-1)if(i||$){s=b+1;break}else C("string");for(d=s;n.charCodeAt(d-1)===ln;)d-=1,h=!h}while(h);c=["string",n.slice(b,s+1),b,s],b=s;break}case Zw:{hn.lastIndex=b+1,hn.test(n),hn.lastIndex===0?s=n.length-1:s=hn.lastIndex-2,c=["at-word",n.slice(b,s+1),b,s],b=s;break}case ln:{for(s=b,o=!0;n.charCodeAt(s+1)===ln;)s+=1,o=!o;if(u=n.charCodeAt(s+1),o&&u!==Vs&&u!==mr&&u!==cn&&u!==fn&&u!==pn&&u!==dn&&(s+=1,Ws.test(n.charAt(s)))){for(;Ws.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===mr&&(s+=1)}c=["word",n.slice(b,s+1),b,s],b=s;break}default:{u===Vs&&n.charCodeAt(b+1)===Jw?(s=n.indexOf("*/",b+2)+1,s===0&&(i||$?s=n.length:C("comment")),c=["comment",n.slice(b,s+1),b,s],b=s):(bn.lastIndex=b+1,bn.test(n),bn.lastIndex===0?s=n.length-1:s=bn.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 t6=za,r6=Ti,n6=Ai,i6=Yr,Gs=Va,u6=e6;const Xs={empty:!0,space:!0};function a6(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let o6=class{constructor(e){this.input=e,this.root=new i6,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 t6;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,i,u,a=!1,o=!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==="{"){o=!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()){a=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(r.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(r,"params",s),a&&(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=""),o&&(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[a,o]of e.entries()){if(i=o,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 a}n=i}return!1}comment(e){let r=new r6;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=u6(this.input)}decl(e,r){let n=new n6;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]||a6(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 a=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)a.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+=a.map(l=>l[1]).join(""),a=[]),this.raw(n,"value",a.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 Gs;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,a=[],o=e[1].startsWith("--"),s=[],l=e;for(;l;){if(n=l[0],s.push(l),n==="("||n==="[")u||(u=l),a.push(n==="("?")":"]");else if(o&&i&&n==="{")u||(u=l),a.push("}");else if(a.length===0)if(n===";")if(i){this.decl(s,o);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===a[a.length-1]&&(a.pop(),a.length===0&&(u=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),a.length>0&&this.unclosedBracket(u),r&&i){if(!o)for(;s.length&&(l=s[s.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(s.pop());this.decl(s,o)}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,a,o=n.length,s="",l=!0,c,h;for(let d=0;d<o;d+=1)u=n[d],a=u[0],a==="space"&&d===o-1&&!i?l=!1:a==="comment"?(h=n[d-1]?n[d-1][0]:"empty",c=n[d+1]?n[d+1][0]:"empty",!Xs[h]&&!Xs[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 Gs;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 s6=o6;let l6=_t,c6=Ni,d6=s6;function Xn(t,e){let r=new c6(t,e),n=new d6(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 Wa=Xn;Xn.default=Xn;l6.registerParse(Xn);let Iu=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 zd=Iu;Iu.default=Iu;let f6=zd,Du=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 f6(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Ga=Du;Du.default=Du;let Ys={};var Ud=function(e){Ys[e]||(Ys[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let p6=_t,h6=Ua,b6=Fd,g6=Wa,Js=Ga,m6=Yr,y6=Ci,{isClean:Pe,my:v6}=Xr,x6=Ud;const w6={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},S6={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},C6={Once:!0,postcssPlugin:!0,prepare:!0},Kt=0;function yr(t){return typeof t=="object"&&typeof t.then=="function"}function Vd(t){let e=!1,r=w6[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Kt,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Kt,r+"Exit"]:[r,r+"Exit"]}function Ks(t){let e;return t.type==="document"?e=["Document",Kt,"DocumentExit"]:t.type==="root"?e=["Root",Kt,"RootExit"]:e=Vd(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Lu(t){return t[Pe]=!1,t.nodes&&t.nodes.forEach(e=>Lu(e)),t}let Mu={},Zt=class Wd{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=Lu(r);else if(r instanceof Wd||r instanceof Js)i=Lu(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=g6;n.syntax&&(u=n.syntax.parse),n.parser&&(u=n.parser),u.parse&&(u=u.parse);try{i=u(r,n)}catch(a){this.processed=!0,this.error=a}i&&!i[v6]&&p6.rebuild(i)}this.result=new Js(e,i,n),this.helpers={...Mu,postcss:Mu,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,a=this.result.processor.version,o=u.split("."),s=a.split(".");(o[0]!==s[0]||parseInt(o[1])>parseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+a+", 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(!S6[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!C6[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(yr(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Pe];){e[Pe]=!0;let r=[Ks(e)];for(;r.length>0;){let n=this.visitTick(r);if(yr(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 yr(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=y6;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let i=new b6(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(yr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Pe];)e[Pe]=!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||x6("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(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(yr(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[a,o]=i[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===i.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(s){throw this.handleError(s,n)}}if(r.iterator!==0){let a=r.iterator,o;for(;o=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!o[Pe]){o[Pe]=!0,e.push(Ks(o));return}r.iterator=0,delete n.indexes[a]}let u=r.events;for(;r.eventIndex<u.length;){let a=u[r.eventIndex];if(r.eventIndex+=1,a===Kt){n.nodes&&n.nodes.length&&(n[Pe]=!0,r.iterator=n.getIterator());return}else if(this.listeners[a]){r.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[Pe]=!0;let r=Vd(e);for(let n of r)if(n===Kt)e.nodes&&e.each(i=>{i[Pe]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Zt.registerPostcss=t=>{Mu=t};var Gd=Zt;Zt.default=Zt;m6.registerLazyResult(Zt);h6.registerLazyResult(Zt);let E6=Fd,T6=Wa;const A6=Ga;let N6=Ci,O6=Ud,$u=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=T6;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=N6;this.result=new A6(this._processor,i,this._opts),this.result.css=r;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let o=new E6(u,i,this._opts,r);if(o.isMap()){let[s,l]=o.generate();s&&(this.result.css=s),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.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||O6("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 j6=$u;$u.default=$u;let _6=Ua,P6=Gd,k6=j6,R6=Yr,Br=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 k6(this,e,r):new P6(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var I6=Br;Br.default=Br;R6.registerProcessor(Br);_6.registerProcessor(Br);let Xd=za,Yd=Ti,D6=_t,L6=qa,Jd=Ai,Kd=Ua,M6=$w,$6=Ni,B6=Gd,q6=Ld,H6=Ei,F6=Wa,Xa=I6,z6=Ga,Zd=Yr,Qd=Va,U6=Ci,V6=zd;function K(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Xa(t)}K.plugin=function(e,r){let n=!1;function i(...a){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 o=r(...a);return o.postcssPlugin=e,o.postcssVersion=new Xa().version,o}let u;return Object.defineProperty(i,"postcss",{get(){return u||(u=i()),u}}),i.process=function(a,o,s){return K([i(s)]).process(a,o)},i};K.stringify=U6;K.parse=F6;K.fromJSON=M6;K.list=q6;K.comment=t=>new Yd(t);K.atRule=t=>new Xd(t);K.decl=t=>new Jd(t);K.rule=t=>new Qd(t);K.root=t=>new Zd(t);K.document=t=>new Kd(t);K.CssSyntaxError=L6;K.Declaration=Jd;K.Container=D6;K.Processor=Xa;K.Document=Kd;K.Comment=Yd;K.Warning=V6;K.AtRule=Xd;K.Result=z6;K.Input=$6;K.Rule=Qd;K.Root=Zd;K.Node=H6;B6.registerPostcss(K);var W6=K;K.default=K;const G6=zc,Zs=F3,{isPlainObject:X6}=$a,Qs=nw,Y6=iw,{parse:J6}=W6,K6=["img","audio","video","picture","svg","object","map","iframe","embed"],Z6=["script","style"];function Dt(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function We(t,e){return{}.hasOwnProperty.call(t,e)}function el(t,e){const r=[];return Dt(t,function(n){e(n)&&r.push(n)}),r}function Q6(t){for(const e in t)if(We(t,e))return!1;return!0}function e4(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 t4=qr;const r4=/^[^\0\t\n\f\r /<=>]+$/;function qr(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&&K6.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},qr.defaults,e),e.parser=Object.assign({},n4,e.parser);const a=function(w){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(w)>-1};Z6.forEach(function(w){a(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 o=e.nonTextTags||["script","style","textarea","option"];let s,l;e.allowedAttributes&&(s={},l={},Dt(e.allowedAttributes,function(w,O){s[O]=[];const A=[];w.forEach(function(P){typeof P=="string"&&P.indexOf("*")>=0?A.push(Zs(P).replace(/\\\*/g,".*")):s[O].push(P)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},d={};Dt(e.allowedClasses,function(w,O){if(s&&(We(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(Zs(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;Dt(e.transformTags,function(w,O){let A;typeof w=="function"?A=w:typeof w=="string"&&(A=qr.simpleTransform(w)),O==="*"?g=A:f[O]=A});let m,b,y,v,E,C,N=!1;R();const k=new G6.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(We(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)),(!a(w)||e.disallowedTagsMode==="recursiveEscape"&&!Q6(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(P=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(w)!==-1&&(E=!0,C=1)),m++,P){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!B){const Y=D(A.innerText);e.textFilter?n+=e.textFilter(Y,w):n+=Y,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?Dt(O,function(Y,V){n+=" "+V+'="'+D(Y||"",!0)+'"'}):(!s||We(s,w)||s["*"])&&Dt(O,function(Y,V){if(!r4.test(V)){delete A.attribs[V];return}if(Y===""&&!e.allowedEmptyAttributes.includes(V)&&(e.nonBooleanAttributes.includes(V)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[V];return}let dr=!1;if(!s||We(s,w)&&s[w].indexOf(V)!==-1||s["*"]&&s["*"].indexOf(V)!==-1||We(l,w)&&l[w].test(V)||l["*"]&&l["*"].test(V))dr=!0;else if(s&&s[w]){for(const G of s[w])if(X6(G)&&G.name&&G.name===V){dr=!0;let W="";if(G.multiple===!0){const _e=Y.split(" ");for(const xe of _e)G.values.indexOf(xe)!==-1&&(W===""?W=xe:W+=" "+xe)}else G.values.indexOf(Y)>=0&&(W=Y);Y=W}}if(dr){if(e.allowedSchemesAppliedToAttributes.indexOf(V)!==-1&&$(w,Y)){delete A.attribs[V];return}if(w==="script"&&V==="src"){let G=!0;try{const W=L(Y);if(e.allowedScriptHostnames||e.allowedScriptDomains){const _e=(e.allowedScriptHostnames||[]).find(function(pe){return pe===W.url.hostname}),xe=(e.allowedScriptDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=_e||xe}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(w==="iframe"&&V==="src"){let G=!0;try{const W=L(Y);if(W.isRelativeUrl)G=We(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const _e=(e.allowedIframeHostnames||[]).find(function(pe){return pe===W.url.hostname}),xe=(e.allowedIframeDomains||[]).find(function(pe){return W.url.hostname===pe||W.url.hostname.endsWith(`.${pe}`)});G=_e||xe}}catch{G=!1}if(!G){delete A.attribs[V];return}}if(V==="srcset")try{let G=Y6(Y);if(G.forEach(function(W){$("srcset",W.url)&&(W.evil=!0)}),G=el(G,function(W){return!W.evil}),G.length)Y=e4(el(G,function(W){return!W.evil})),A.attribs[V]=Y;else{delete A.attribs[V];return}}catch{delete A.attribs[V];return}if(V==="class"){const G=c[w],W=c["*"],_e=h[w],xe=d[w],pe=d["*"],Kr=h["*"],fr=[_e,Kr].concat(xe,pe).filter(function(mt){return mt});if(G&&W?Y=I(Y,Qs(G,W),fr):Y=I(Y,G||W,fr),!Y.length){delete A.attribs[V];return}}if(V==="style"){if(e.parseStyleAttributes)try{const G=J6(w+" {"+Y+"}",{map:!1}),W=S(G,e.allowedStyles);if(Y=T(W),Y.length===0){delete A.attribs[V];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+w+" {"+Y+`}", 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,Y&&Y.length?n+='="'+D(Y,!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"&&!a(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&&!a(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,"&").replace(/</g,"<").replace(/>/g,">"),O&&(w=w.replace(/"/g,"""))),w=w.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(w=w.replace(/"/g,""")),w}function $(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 We(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=Qs(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 We(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 n4={decodeEntities:!0};qr.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};qr.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 e0=Qn(t4),i4=[{command:"bold",icon:tf,label:"Bold"},{command:"italic",icon:af,label:"Italic"},{command:"underline",icon:cf,label:"Underline"},{command:"strikeThrough",icon:lf,label:"Strikethrough"},{command:"insertUnorderedList",icon:sf,label:"Bullet List"},{command:"insertOrderedList",icon:of,label:"Numbered List"}],u4={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$/]}}},a4=({label:t,value:e,onChange:r})=>{const n=j.useRef(null),[i,u]=j.useState(!1),[a,o]=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=e0(b,u4);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(a){d();let y=a.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}u(!1),o(""),(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(kr,{children:[i4.map(({command:b,icon:y,label:v})=>p.jsxs(Wt,{children:[p.jsx(Gt,{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(Wt,{children:[p.jsx(Gt,{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(bl,{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:a,onChange:b=>o(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),o(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{u(!1),o("")},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"})]})]})})]})},o4={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$/]}}},Ya=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:i="inherit",lineHeight:u={desktop:150},letterSpacing:a={desktop:0},textAlign:o="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=Yn(),{connectors:{connect:m,drag:b},isActive:y}=ee(D=>({isActive:D.events.selected})),v=qn(t,g),E=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`,C=Ye(r,f,16),N=Ye(u,f,150)/100,k=Ye(a,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:o,color:s,margin:E,textDecoration:c,textTransform:h,opacity:d/100},children:e||R?p.jsx("div",{dangerouslySetInnerHTML:{__html:e0(qn(e||v,g),o4)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):p.jsx("p",{children:v})})},s4=()=>{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(a4,{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(X,{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($n,{label:"Size",values:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(X,{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(Bn,{label:"Line Height",values:e.lineHeight,onChange:n=>t(i=>i.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx($n,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(i=>i.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Uu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(zu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Vu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)}),p.jsx(X,{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(X,{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(De,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(i=>i.color=n)}),p.jsx(Bn,{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(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})}),p.jsx(q,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Fc,{})})]})};Ya.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:s4}};const Ja=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:i="#ffffff",borderColor:u="#FF6B35",borderWidth:a=0,borderRadius:o=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`,$=e==="outline"?"transparent":n,L=e==="outline"?n:i,S=e==="outline"?2:a,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:$,color:L,borderWidth:`${S}px`,borderColor:T,borderStyle:"solid",borderRadius:`${o}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})},l4=()=>{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(Ke,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(i=>i.variant=n)}),p.jsx(Ke,{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(Ke,{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(De,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(i=>i.backgroundColor=n)}),p.jsx(De,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(i=>i.textColor=n)}),p.jsx(vi,{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(oe,{label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(i=>i.fontSize=n),min:10,max:32}),p.jsx(X,{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(oe,{label:"Horizontal",value:e.paddingX||16,onChange:n=>t(i=>i.paddingX=n),max:64}),p.jsx(oe,{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(oe,{label:"Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:50}),p.jsx(oe,{label:"Width",value:e.borderWidth||0,onChange:n=>t(i=>i.borderWidth=n),max:10}),p.jsx(De,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(i=>i.borderColor=n)})]}),p.jsx(q,{title:"Effects",defaultOpen:!1,children:p.jsx(X,{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(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Ja.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:l4}};const Cr={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}},Ka=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:i="700",fontFamily:u="inherit",fontSize:a="auto",lineHeight:o={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,$,L;const d=Ot(),f=Yn(),{connectors:{connect:g,drag:m},isActive:b}=ee(S=>({isActive:S.events.selected})),y=qn(t,f),v=`h${e}`;let E;a==="auto"?E=((D=Cr[e])==null?void 0:D[d])||(($=Cr[e])==null?void 0:$.desktop)||36:E=Ye(a,d,((L=Cr[e])==null?void 0:L.desktop)||36);const C=Ye(o,d,120)/100,N=Ye(s,d,-.5),k=Ye(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})},c4=()=>{var u;const t=Ot(),{actions:{setProp:e},props:r}=ee(a=>({props:a.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},i=()=>{var a;return r.fontSize==="auto"?((a=Cr[r.level||2])==null?void 0:a[t])||36:Ye(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:a=>e(o=>o.text=a)}),p.jsx(Ke,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:a=>e(o=>{o.level=a,o.fontSize})})]}),p.jsxs(q,{title:"Typography",defaultOpen:!0,children:[p.jsx(X,{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:a=>e(o=>o.fontFamily=a)}),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(a=>a.fontSize=a.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($n,{label:"Size",values:r.fontSize,onChange:a=>e(o=>o.fontSize=a),min:12,max:120,defaultValue:((u=Cr[r.level||2])==null?void 0:u.desktop)||36})]}),p.jsx(X,{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:a=>e(o=>o.fontWeight=a)}),p.jsx(Bn,{label:"Line Height",values:r.lineHeight,onChange:a=>e(o=>o.lineHeight=a),min:80,max:200,unit:"%",defaultValue:120}),p.jsx($n,{label:"Letter Spacing",values:r.letterSpacing,onChange:a=>e(o=>o.letterSpacing=a),min:-5,max:20,defaultValue:-.5}),p.jsx(Ke,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Uu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(zu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Vu,{className:"h-3 w-3"})}],onChange:a=>e(o=>o.textAlign=a)}),p.jsx(X,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:a=>e(o=>o.textTransform=a)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(De,{label:"Text Color",value:r.color||"#000000",onChange:a=>e(o=>o.color=a)}),p.jsx(Bn,{label:"Opacity",values:r.opacity,onChange:a=>e(o=>o.opacity=a),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(q,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ee,{label:"Margin",values:n,onChange:a=>e(o=>o.margin=a)})}),p.jsx(q,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Fc,{})})]})};Ka.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:c4}};const Za=({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:a=8,margin:o={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 o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}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:`${a}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},d4=()=>{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(X,{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(oe,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.width=n),max:1200}),p.jsx(X,{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(oe,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.height=n),max:800}),p.jsx(X,{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(oe,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),p.jsx(vi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"}),p.jsx(X,{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(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Za.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:d4}};const Qa=({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:a,drag:o},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&&a(o(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}})},f4=()=>{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(X,{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(De,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(i=>i.color=n)}),p.jsx(oe,{label:"Thickness",value:e.height||1,onChange:n=>t(i=>i.height=n),min:1,max:20}),p.jsx(X,{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(oe,{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(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};Qa.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:f4}};const eo=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{const{connectors:{connect:n,drag:i},isActive:u}=ee(a=>({isActive:a.events.selected}));return p.jsxs("div",{ref:a=>a&&n(i(a)),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"})]})},p4=()=>{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(X,{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(oe,{label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};eo.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:p4}};const h4=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function b4(){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 g4(t,e={}){const r=await fetch(`${h4}${t}`,{...e,headers:{...b4(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function m4(t,e){return(await g4(`/videos/${t}/${e||""}`)).data}function y4(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 Oi="Checkbox",[v4]=ci(Oi),[x4,to]=v4(Oi);function w4(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:i,disabled:u,form:a,name:o,onCheckedChange:s,required:l,value:c="on",internal_do_not_use_render:h}=t,[d,f]=Ea({prop:r,defaultProp:i??!1,onChange:s,caller:Oi}),[g,m]=x.useState(null),[b,y]=x.useState(null),v=x.useRef(!1),E=g?!!a||!!g.closest("form"):!0,C={checked:d,disabled:u,setChecked:f,control:g,setControl:m,name:o,form:a,value:c,hasConsumerStoppedPropagationRef:v,required:l,defaultChecked:ot(i)?!1:i,isFormControl:E,bubbleInput:b,setBubbleInput:y};return p.jsx(x4,{scope:e,...C,children:S4(h)?h(C):n})}var t0="CheckboxTrigger",r0=x.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},i)=>{const{control:u,value:a,disabled:o,checked:s,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:d,isFormControl:f,bubbleInput:g}=to(t0,t),m=Be(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(Oe.button,{type:"button",role:"checkbox","aria-checked":ot(s)?"mixed":s,"aria-required":l,"data-state":o0(s),"data-disabled":o?"":void 0,disabled:o,value:a,...n,ref:m,onKeyDown:Se(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:Se(r,y=>{h(v=>ot(v)?!0:!v),g&&f&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});r0.displayName=t0;var ro=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:u,required:a,disabled:o,value:s,onCheckedChange:l,form:c,...h}=t;return p.jsx(w4,{__scopeCheckbox:r,checked:i,defaultChecked:u,disabled:o,required:a,onCheckedChange:l,name:n,form:c,value:s,internal_do_not_use_render:({isFormControl:d})=>p.jsxs(p.Fragment,{children:[p.jsx(r0,{...h,ref:e,__scopeCheckbox:r}),d&&p.jsx(a0,{__scopeCheckbox:r})]})})});ro.displayName=Oi;var n0="CheckboxIndicator",i0=x.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,u=to(n0,r);return p.jsx(bi,{present:n||ot(u.checked)||u.checked===!0,children:p.jsx(Oe.span,{"data-state":o0(u.checked),"data-disabled":u.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...t.style}})})});i0.displayName=n0;var u0="CheckboxBubbleInput",a0=x.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:u,defaultChecked:a,required:o,disabled:s,name:l,value:c,form:h,bubbleInput:d,setBubbleInput:f}=to(u0,t),g=Be(r,f),m=y4(u),b=Sc(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=ot(u),N.call(v,ot(u)?!1:u),v.dispatchEvent(R)}},[d,m,u,i]);const y=x.useRef(ot(u)?!1:u);return p.jsx(Oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:o,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%)"}})});a0.displayName=u0;function S4(t){return typeof t=="function"}function ot(t){return t==="indeterminate"}function o0(t){return ot(t)?"indeterminate":t?"checked":"unchecked"}const s0=x.forwardRef(({className:t,...e},r)=>p.jsx(ro,{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(i0,{className:ye("flex items-center justify-center text-current"),children:p.jsx(Wu,{className:"h-4 w-4"})})}));s0.displayName=ro.displayName;const C4=({onDownload:t,disabled:e=!1})=>{const[r,n]=j.useState(!0),[i,u]=j.useState(!1),a=()=>{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(Er,{disabled:!r||i||e,onClick:a,className:"w-full",children:i?p.jsxs(p.Fragment,{children:[p.jsx(Wu,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(uf,{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(s0,{checked:r,onCheckedChange:o=>n(o===!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"}),"."]})]})]})},Jr=t=>{const{connectors:{connect:e,drag:r},selected:n}=ee(i=>({selected:i.events.selected}));return p.jsx("div",{ref:i=>i&&e(r(i)),style:Aa(t),className:Qt(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),children:t.children})};Jr.craft={props:Na,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:Oa}};const E4=(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},T4=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const i=j.useRef(null),{data:u,isLoading:a,error:o}=h0.useQuery({queryKey:["video",t,e],queryFn:()=>m4(t,e),enabled:!!t});if(a)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(o||!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(rf,{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(Jr,{children:p.jsx(zr,{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(C4,{onDownload:l,disabled:r})]})})})})},no=({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(),a=Yn(),{connectors:{connect:o,drag:s},selected:l}=ee(b=>({selected:b.events.selected})),{enabled:c}=ba(b=>({enabled:b.options.enabled})),h=E4(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=(a==null?void 0:a.videos)||[],m=g.length>0;return p.jsx("div",{ref:b=>b&&o(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(T4,{locationId:b.locationId,bibId:a==null?void 0:a.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(hl,{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."})]})]})})},A4=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:i,boxShadow:u}=ee(o=>({padding:o.data.props.padding,margin:o.data.props.margin,background:o.data.props.background,borderRadius:o.data.props.borderRadius,boxShadow:o.data.props.boxShadow})),a=[{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(oe,{label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:o=>t(s=>s.padding={...s.padding,desktop:o,mobile:o}),min:0,max:100}),p.jsx(oe,{label:"Border Radius",value:i,onChange:o=>t(s=>s.borderRadius=o),min:0,max:50}),p.jsx(De,{label:"Background",value:n,onChange:o=>t(s=>s.background=o)}),p.jsx(X,{label:"Shadow",value:u,options:a,onChange:o=>t(s=>s.boxShadow=o)})]}),p.jsx(q,{title:"Spacing",children:p.jsx(Ee,{label:"Margin",values:r,onChange:o=>t(s=>s.margin=o)})})]})};no.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:A4}};const io=({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:a,drag:o},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&&a(o(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})},N4=()=>{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(Ke,{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(oe,{label:"Gap",value:e.gap||16,onChange:i=>t(u=>u.gap=i),max:64}),p.jsx(X,{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(Ee,{label:"Padding",values:r,onChange:i=>t(u=>u.padding=i)}),p.jsx(Ee,{label:"Margin",values:n,onChange:i=>t(u=>u.margin=i)})]})]})};io.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:N4}};const uo=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:i="400",color:u="#0066cc",hoverColor:a="#0052a3",textDecoration:o="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:o,textAlign:s,margin:g,opacity:c/100,display:"block"},children:t})},O4=()=>{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(X,{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(oe,{label:"Font Size",value:e.fontSize||16,onChange:n=>t(i=>i.fontSize=n),min:10,max:48}),p.jsx(X,{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(X,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(i=>i.textDecoration=n)}),p.jsx(Ke,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Uu,{className:"h-3 w-3"})},{value:"center",label:p.jsx(zu,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Vu,{className:"h-3 w-3"})}],onChange:n=>t(i=>i.textAlign=n)})]}),p.jsxs(q,{title:"Color",defaultOpen:!1,children:[p.jsx(De,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(i=>i.color=n)}),p.jsx(vi,{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(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};uo.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:O4}};const ao=({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:a=8,margin:o={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 o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}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:`${a}px`,margin:f,opacity:s/100,boxShadow:l==="none"?"none":l,display:"block"}})},j4=()=>{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(X,{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(oe,{label:"Width (px)",value:e.width,onChange:n=>t(i=>i.width=n),max:1200}),p.jsx(X,{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(oe,{label:"Height (px)",value:e.height,onChange:n=>t(i=>i.height=n),max:800}),p.jsx(X,{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(oe,{label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(i=>i.borderRadius=n),max:100}),p.jsx(vi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(i=>i.opacity=n),min:0,max:100,unit:"%"}),p.jsx(X,{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(Ee,{label:"Margin",values:r,onChange:n=>t(i=>i.margin=n)})})]})};ao.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:j4}};function tl(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 oo=({children:t,className:e})=>{const{connectors:{connect:r,drag:n},selected:i}=ee(o=>({selected:o.events.selected})),u=tl(),a=tl();return p.jsx("div",{ref:o=>{o&&r(n(o))},className:Qt(`min-h-2.5 ${i?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(zt,{is:Jr,id:`section-wrapper-${u}`,children:p.jsx(zt,{is:zr,canvas:!0,id:`section-container-${a}`,children:t})})})};oo.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Gi={mobile:{width:375,label:"Mobile",icon:Ju},tablet:{width:768,label:"Tablet",icon:Ku},small:{width:1024,label:"Small",icon:Yu},desktop:{width:1440,label:"Desktop",icon:Zu}},_4=({editorState:t,deviceSize:e})=>p.jsx(nc,{resolver:{Body,Wrapper:Jr,Section:oo,Container:zr,Text:Ya,ButtonComponent:Ja,Heading:Ka,Image:Za,Img:ao,Divider:Qa,Spacer:eo,Video:no,Columns:io,Link:uo},enabled:!1,children:p.jsx(uc,{value:e,children:p.jsx(P4,{editorState:t})})}),P4=({editorState:t})=>{const{actions:e}=ba();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(Zl,{})},k4=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var o,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 a=((o=Gi[i])==null?void 0:o.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=Gi[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(Gi).map(([l,{label:c,icon:h}])=>p.jsxs(Er,{variant:"ghost",size:"sm",onClick:()=>u(l),className:Sf("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(Er,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(df,{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:`${a}px`,maxWidth:"100%"},children:p.jsx(Fu,{value:r,children:n?p.jsx(_4,{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."})})})})})]})},l0=j.createContext({fetchVideoByLocation:null}),R4=({children:t,fetchVideoByLocation:e})=>p.jsx(l0.Provider,{value:{fetchVideoByLocation:e},children:t}),I4=()=>j.useContext(l0);exports.ApiConfigProvider=R4;exports.Button=Er;exports.ButtonComponent=Ja;exports.Card=qu;exports.CardContent=Hu;exports.ChevronDown=Gu;exports.ChevronRight=Xu;exports.Columns=io;exports.Container=zr;exports.ContainerSettings=Oa;exports.DEVICE_ORDER=Ce;exports.De=Zl;exports.DeviceSizeProvider=uc;exports.Divider=Qa;exports.EventDataProvider=Fu;exports.Film=hl;exports.Heading=Ka;exports.Image=Za;exports.Img=ao;exports.Link=bl;exports.Link$1=uo;exports.Monitor=Yu;exports.Ne=ee;exports.PageBuilder=K0;exports.Pe=ba;exports.Presence=bi;exports.PreviewModal=k4;exports.Primitive=Oe;exports.Section=oo;exports.Smartphone=Ju;exports.Spacer=eo;exports.TEMPLATE_VARIABLES=Px;exports.Tablet=Ku;exports.Text=Ya;exports.Tooltip=Wt;exports.TooltipContent=Ct;exports.TooltipProvider=kr;exports.TooltipTrigger=Gt;exports.Tv=Zu;exports.Video=no;exports.Wrapper=Jr;exports.clsx=Qt;exports.cn=ye;exports.composeEventHandlers=Se;exports.composeRefs=Jn;exports.createContextScope=ci;exports.createLucideIcon=ue;exports.cva=ml;exports.divDefaultProps=Na;exports.divStyle=Aa;exports.getPlaceholderPaths=_x;exports.getResponsiveValue=Ye;exports.hasTemplatePlaceholders=jx;exports.ke=zt;exports.processTemplate=qn;exports.useApiConfig=I4;exports.useCallbackRef=Hr;exports.useComposedRefs=Be;exports.useControllableState=Ea;exports.useDeviceSize=Ot;exports.useEventData=Yn;exports.useId=lc;exports.useLayoutEffect2=ct;exports.ut=nc;
|