@tech_carthagos/page-builder 1.0.50 → 1.0.51
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/index.cjs.js +71 -71
- package/dist/index.es.js +3765 -3750
- package/dist/style.css +1 -1
- package/dist-types/CraftEditor.d.ts.map +1 -1
- package/dist-types/contexts/DeviceSizeContext.d.ts.map +1 -1
- package/dist-types/examples/App.d.ts.map +1 -1
- package/dist-types/user/Columns.d.ts.map +1 -1
- package/dist-types/user/Container.d.ts +1 -0
- package/dist-types/user/Container.d.ts.map +1 -1
- package/dist-types/user/ContainerOld.d.ts +2 -0
- package/dist-types/user/ContainerOld.d.ts.map +1 -1
- package/dist-types/user/Div.d.ts +1 -0
- package/dist-types/user/Div.d.ts.map +1 -1
- package/dist-types/user/Footer.d.ts.map +1 -1
- package/dist-types/user/Heading.d.ts.map +1 -1
- package/dist-types/user/Text.d.ts.map +1 -1
- package/dist-types/user/Wrapper.d.ts +1 -0
- package/dist-types/user/Wrapper.d.ts.map +1 -1
- package/dist-types/utils/valueBasedOnDevice.d.ts +2 -0
- package/dist-types/utils/valueBasedOnDevice.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Li=require("react-dom"),vp=require("@tanstack/react-query");function fc(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 y=fc(w),pc=fc(Li);function hc(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=hc(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function tt(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=hc(t))&&(n&&(n+=" "),n+=e);return n}const $i="-",yp=t=>{const e=wp(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const s=i.split($i);return s[0]===""&&s.length!==1&&s.shift(),mc(s,e)||xp(i)},getConflictingClassGroupIds:(i,s)=>{const u=r[i]||[];return s&&n[i]?[...u,...n[i]]:u}}},mc=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?mc(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=t.join($i);return(i=e.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},mu=/^\[(.+)\]$/,xp=t=>{if(mu.test(t)){const e=mu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},wp=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Cp(Object.entries(t.classGroups),r).forEach(([a,i])=>{Fa(i,n,a,e)}),n},Fa=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:gu(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(Sp(o)){Fa(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{Fa(i,gu(e,a),r,n)})})},gu=(t,e)=>{let r=t;return e.split($i).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Sp=t=>t.isThemeGetter,Cp=(t,e)=>e?t.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[e+i,s])):a);return[r,o]}):t,Ep=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},gc="!",Np=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,o=e[0],a=e.length,i=s=>{const u=[];let l=0,c=0,h;for(let m=0;m<s.length;m++){let v=s[m];if(l===0){if(v===o&&(n||s.slice(m,m+a)===e)){u.push(s.slice(c,m)),c=m+a;continue}if(v==="/"){h=m;continue}}v==="["?l++:v==="]"&&l--}const f=u.length===0?s:s.substring(c),d=f.startsWith(gc),g=d?f.substring(1):f,b=h&&h>c?h-c:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:b}};return r?s=>r({className:s,parseClassName:i}):i},Tp=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},jp=t=>({cache:Ep(t.cacheSize),parseClassName:Np(t),...yp(t)}),Ap=/\s+/,Op=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,a=[],i=t.trim().split(Ap);let s="";for(let u=i.length-1;u>=0;u-=1){const l=i[u],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(l);let g=!!d,b=n(g?f.substring(0,d):f);if(!b){if(!g){s=l+(s.length>0?" "+s:s);continue}if(b=n(f),!b){s=l+(s.length>0?" "+s:s);continue}g=!1}const m=Tp(c).join(":"),v=h?m+gc:m,x=v+b;if(a.includes(x))continue;a.push(x);const S=o(b,g);for(let C=0;C<S.length;++C){const j=S[C];a.push(v+j)}s=l+(s.length>0?" "+s:s)}return s};function kp(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=bc(e))&&(n&&(n+=" "),n+=r);return n}const bc=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=bc(t[n]))&&(r&&(r+=" "),r+=e);return r};function Pp(t,...e){let r,n,o,a=i;function i(u){const l=e.reduce((c,h)=>h(c),t());return r=jp(l),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const l=n(u);if(l)return l;const c=Op(u,r);return o(u,c),c}return function(){return a(kp.apply(null,arguments))}}const ae=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},vc=/^\[(?:([a-z-]+):)?(.+)\]$/i,_p=/^\d+\/\d+$/,Rp=new Set(["px","full","screen"]),Ip=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dp=/\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$/,Mp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$p=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ct=t=>mr(t)||Rp.has(t)||_p.test(t),At=t=>Pr(t,"length",Wp),mr=t=>!!t&&!Number.isNaN(Number(t)),Sa=t=>Pr(t,"number",mr),Wr=t=>!!t&&Number.isInteger(Number(t)),Bp=t=>t.endsWith("%")&&mr(t.slice(0,-1)),W=t=>vc.test(t),Ot=t=>Ip.test(t),zp=new Set(["length","size","percentage"]),Hp=t=>Pr(t,zp,yc),Fp=t=>Pr(t,"position",yc),qp=new Set(["image","url"]),Up=t=>Pr(t,qp,Yp),Vp=t=>Pr(t,"",Gp),Gr=()=>!0,Pr=(t,e,r)=>{const n=vc.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},Wp=t=>Dp.test(t)&&!Mp.test(t),yc=()=>!1,Gp=t=>Lp.test(t),Yp=t=>$p.test(t),Xp=()=>{const t=ae("colors"),e=ae("spacing"),r=ae("blur"),n=ae("brightness"),o=ae("borderColor"),a=ae("borderRadius"),i=ae("borderSpacing"),s=ae("borderWidth"),u=ae("contrast"),l=ae("grayscale"),c=ae("hueRotate"),h=ae("invert"),f=ae("gap"),d=ae("gradientColorStops"),g=ae("gradientColorStopPositions"),b=ae("inset"),m=ae("margin"),v=ae("opacity"),x=ae("padding"),S=ae("saturate"),C=ae("scale"),j=ae("sepia"),k=ae("skew"),R=ae("space"),M=ae("translate"),D=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",W,e],T=()=>[W,e],P=()=>["",ct,At],I=()=>["auto",mr,W],N=()=>["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"],_=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",W],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[mr,W];return{cacheSize:500,separator:":",theme:{colors:[Gr],spacing:[ct,At],blur:["none","",Ot,W],brightness:de(),borderColor:[t],borderRadius:["none","","full",Ot,W],borderSpacing:T(),borderWidth:P(),contrast:de(),grayscale:L(),hueRotate:de(),invert:L(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[Bp,At],inset:E(),margin:E(),opacity:de(),padding:T(),saturate:de(),scale:de(),sepia:L(),skew:de(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:[...N(),W]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wr,W]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Wr,W]}],"grid-cols":[{"grid-cols":[Gr]}],"col-start-end":[{col:["auto",{span:["full",Wr,W]},W]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Gr]}],"row-start-end":[{row:["auto",{span:[Wr,W]},W]}],"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",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"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",W,e]}],"min-w":[{"min-w":[W,e,"min","max","fit"]}],"max-w":[{"max-w":[W,e,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[W,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,At]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Sa]}],"font-family":[{font:[Gr]}],"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",W]}],"line-clamp":[{"line-clamp":["none",mr,Sa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ct,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ct,At]}],"underline-offset":[{"underline-offset":["auto",ct,W]}],"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",W]}],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",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),Fp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Hp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Up]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[ct,W]}],"outline-w":[{outline:[ct,At]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[ct,At]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ot,Vp]}],"shadow-color":[{shadow:[Gr]}],opacity:[{opacity:[v]}],"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:[u]}],"drop-shadow":[{"drop-shadow":["","none",Ot,W]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Wr,W]}],"translate-x":[{"translate-x":[M]}],"translate-y":[{"translate-y":[M]}],"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",W]}],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",W]}],"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",W]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ct,At,Sa]}],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"]}}},xc=Pp(Xp);function Se(...t){return xc(tt(t))}const en=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));en.displayName="Card";const Kp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex flex-col space-y-1.5 p-6",t),...e}));Kp.displayName="CardHeader";const Jp=y.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:Se("text-2xl font-semibold leading-none tracking-tight",t),...e}));Jp.displayName="CardTitle";const Zp=y.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:Se("text-sm text-muted-foreground",t),...e}));Zp.displayName="CardDescription";const tn=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("p-6 pt-0",t),...e}));tn.displayName="CardContent";const Qp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex items-center p-6 pt-0",t),...e}));Qp.displayName="CardFooter";function Mn({className:t,...e}){return p.jsx("div",{className:Se("animate-pulse rounded-md bg-muted",t),...e})}const wc=w.createContext(null),Lo=({children:t,value:e})=>p.jsx(wc.Provider,{value:e,children:t}),Cn=()=>w.useContext(wc);/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Bi=require("react-dom"),yp=require("@tanstack/react-query");function pc(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 y=pc(w),hc=pc(Bi);function mc(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=mc(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function rt(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=mc(t))&&(n&&(n+=" "),n+=e);return n}const zi="-",xp=t=>{const e=Sp(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const s=i.split(zi);return s[0]===""&&s.length!==1&&s.shift(),bc(s,e)||wp(i)},getConflictingClassGroupIds:(i,s)=>{const u=r[i]||[];return s&&n[i]?[...u,...n[i]]:u}}},bc=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?bc(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=t.join(zi);return(i=e.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},bu=/^\[(.+)\]$/,wp=t=>{if(bu.test(t)){const e=bu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Sp=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Ep(Object.entries(t.classGroups),r).forEach(([a,i])=>{qa(i,n,a,e)}),n},qa=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:gu(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(Cp(o)){qa(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{qa(i,gu(e,a),r,n)})})},gu=(t,e)=>{let r=t;return e.split(zi).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Cp=t=>t.isThemeGetter,Ep=(t,e)=>e?t.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[e+i,s])):a);return[r,o]}):t,Np=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},gc="!",Tp=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,o=e[0],a=e.length,i=s=>{const u=[];let l=0,c=0,h;for(let m=0;m<s.length;m++){let v=s[m];if(l===0){if(v===o&&(n||s.slice(m,m+a)===e)){u.push(s.slice(c,m)),c=m+a;continue}if(v==="/"){h=m;continue}}v==="["?l++:v==="]"&&l--}const f=u.length===0?s:s.substring(c),d=f.startsWith(gc),b=d?f.substring(1):f,g=h&&h>c?h-c:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:i}):i},jp=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},Ap=t=>({cache:Np(t.cacheSize),parseClassName:Tp(t),...xp(t)}),Op=/\s+/,kp=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,a=[],i=t.trim().split(Op);let s="";for(let u=i.length-1;u>=0;u-=1){const l=i[u],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(l);let b=!!d,g=n(b?f.substring(0,d):f);if(!g){if(!b){s=l+(s.length>0?" "+s:s);continue}if(g=n(f),!g){s=l+(s.length>0?" "+s:s);continue}b=!1}const m=jp(c).join(":"),v=h?m+gc:m,x=v+g;if(a.includes(x))continue;a.push(x);const C=o(g,b);for(let S=0;S<C.length;++S){const j=C[S];a.push(v+j)}s=l+(s.length>0?" "+s:s)}return s};function Pp(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=vc(e))&&(n&&(n+=" "),n+=r);return n}const vc=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=vc(t[n]))&&(r&&(r+=" "),r+=e);return r};function _p(t,...e){let r,n,o,a=i;function i(u){const l=e.reduce((c,h)=>h(c),t());return r=Ap(l),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const l=n(u);if(l)return l;const c=kp(u,r);return o(u,c),c}return function(){return a(Pp.apply(null,arguments))}}const ie=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},yc=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rp=/^\d+\/\d+$/,Ip=new Set(["px","full","screen"]),Dp=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mp=/\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$/,Lp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$p=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,dt=t=>mr(t)||Ip.has(t)||Rp.test(t),Ot=t=>Pr(t,"length",Gp),mr=t=>!!t&&!Number.isNaN(Number(t)),Ca=t=>Pr(t,"number",mr),Wr=t=>!!t&&Number.isInteger(Number(t)),zp=t=>t.endsWith("%")&&mr(t.slice(0,-1)),W=t=>yc.test(t),kt=t=>Dp.test(t),Hp=new Set(["length","size","percentage"]),Fp=t=>Pr(t,Hp,xc),qp=t=>Pr(t,"position",xc),Up=new Set(["image","url"]),Vp=t=>Pr(t,Up,Xp),Wp=t=>Pr(t,"",Yp),Gr=()=>!0,Pr=(t,e,r)=>{const n=yc.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},Gp=t=>Mp.test(t)&&!Lp.test(t),xc=()=>!1,Yp=t=>$p.test(t),Xp=t=>Bp.test(t),Kp=()=>{const t=ie("colors"),e=ie("spacing"),r=ie("blur"),n=ie("brightness"),o=ie("borderColor"),a=ie("borderRadius"),i=ie("borderSpacing"),s=ie("borderWidth"),u=ie("contrast"),l=ie("grayscale"),c=ie("hueRotate"),h=ie("invert"),f=ie("gap"),d=ie("gradientColorStops"),b=ie("gradientColorStopPositions"),g=ie("inset"),m=ie("margin"),v=ie("opacity"),x=ie("padding"),C=ie("saturate"),S=ie("scale"),j=ie("sepia"),k=ie("skew"),_=ie("space"),D=ie("translate"),L=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",W,e],T=()=>[W,e],P=()=>["",dt,Ot],I=()=>["auto",mr,W],N=()=>["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"],R=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",W],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],fe=()=>[mr,W];return{cacheSize:500,separator:":",theme:{colors:[Gr],spacing:[dt,Ot],blur:["none","",kt,W],brightness:fe(),borderColor:[t],borderRadius:["none","","full",kt,W],borderSpacing:T(),borderWidth:P(),contrast:fe(),grayscale:M(),hueRotate:fe(),invert:M(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[zp,Ot],inset:E(),margin:E(),opacity:fe(),padding:T(),saturate:fe(),scale:fe(),sepia:M(),skew:fe(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[kt]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"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:[...N(),W]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wr,W]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Wr,W]}],"grid-cols":[{"grid-cols":[Gr]}],"col-start-end":[{col:["auto",{span:["full",Wr,W]},W]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Gr]}],"row-start-end":[{row:["auto",{span:[Wr,W]},W]}],"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",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,e]}],"min-w":[{"min-w":[W,e,"min","max","fit"]}],"max-w":[{"max-w":[W,e,"none","full","min","max","fit","prose",{screen:[kt]},kt]}],h:[{h:[W,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,e,"auto","min","max","fit"]}],"font-size":[{text:["base",kt,Ot]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ca]}],"font-family":[{font:[Gr]}],"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",W]}],"line-clamp":[{"line-clamp":["none",mr,Ca]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",dt,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",dt,Ot]}],"underline-offset":[{"underline-offset":["auto",dt,W]}],"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",W]}],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",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),qp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Vp]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...O(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:O()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...O()]}],"outline-offset":[{"outline-offset":[dt,W]}],"outline-w":[{outline:[dt,Ot]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[dt,Ot]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",kt,Wp]}],"shadow-color":[{shadow:[Gr]}],opacity:[{opacity:[v]}],"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:[u]}],"drop-shadow":[{"drop-shadow":["","none",kt,W]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[C]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:fe()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:fe()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Wr,W]}],"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",W]}],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",W]}],"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",W]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[dt,Ot,Ca]}],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"]}}},wc=_p(Kp);function Ce(...t){return wc(rt(t))}const en=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ce("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));en.displayName="Card";const Jp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ce("flex flex-col space-y-1.5 p-6",t),...e}));Jp.displayName="CardHeader";const Zp=y.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:Ce("text-2xl font-semibold leading-none tracking-tight",t),...e}));Zp.displayName="CardTitle";const Qp=y.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:Ce("text-sm text-muted-foreground",t),...e}));Qp.displayName="CardDescription";const tn=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ce("p-6 pt-0",t),...e}));tn.displayName="CardContent";const eh=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ce("flex items-center p-6 pt-0",t),...e}));eh.displayName="CardFooter";function Ln({className:t,...e}){return p.jsx("div",{className:Ce("animate-pulse rounded-md bg-muted",t),...e})}const Sc=w.createContext(null),an=({children:t,value:e})=>p.jsx(Sc.Provider,{value:e,children:t}),En=()=>w.useContext(Sc);/**
|
|
2
2
|
* @license lucide-react v0.462.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const th=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cc=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
|
|
7
7
|
* @license lucide-react v0.462.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
11
|
+
*/var rh={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
12
|
* @license lucide-react v0.462.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const nh=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>w.createElement("svg",{ref:u,...rh,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:Cc("lucide",o),...s},[...i.map(([l,c])=>w.createElement(l,c)),...Array.isArray(a)?a:[a]]));/**
|
|
17
17
|
* @license lucide-react v0.462.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const Y=(t,e)=>{const r=w.forwardRef(({className:n,...o},a)=>w.createElement(
|
|
21
|
+
*/const Y=(t,e)=>{const r=w.forwardRef(({className:n,...o},a)=>w.createElement(nh,{ref:a,iconNode:e,className:Cc(`lucide-${th(t)}`,n),...o}));return r.displayName=`${t}`,r};/**
|
|
22
22
|
* @license lucide-react v0.462.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const Hi=Y("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
27
27
|
* @license lucide-react v0.462.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const Fi=Y("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
32
32
|
* @license lucide-react v0.462.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const qi=Y("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
37
37
|
* @license lucide-react v0.462.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const oh=Y("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
42
|
* @license lucide-react v0.462.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const Ui=Y("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
47
47
|
* @license lucide-react v0.462.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const
|
|
51
|
+
*/const Vi=Y("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
52
52
|
* @license lucide-react v0.462.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const
|
|
56
|
+
*/const Wi=Y("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
57
57
|
* @license lucide-react v0.462.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const ah=Y("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
62
|
* @license lucide-react v0.462.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const
|
|
66
|
+
*/const ih=Y("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
|
|
67
67
|
* @license lucide-react v0.462.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const sh=Y("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"}]]);/**
|
|
72
72
|
* @license lucide-react v0.462.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const
|
|
76
|
+
*/const uh=Y("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"}]]);/**
|
|
77
77
|
* @license lucide-react v0.462.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const lh=Y("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
82
82
|
* @license lucide-react v0.462.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
86
|
+
*/const Ec=Y("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"}]]);/**
|
|
87
87
|
* @license lucide-react v0.462.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const
|
|
91
|
+
*/const ch=Y("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|
92
92
|
* @license lucide-react v0.462.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const
|
|
96
|
+
*/const Nc=Y("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);/**
|
|
97
97
|
* @license lucide-react v0.462.0 - ISC
|
|
98
98
|
*
|
|
99
99
|
* This source code is licensed under the ISC license.
|
|
100
100
|
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const
|
|
101
|
+
*/const Tc=Y("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
102
102
|
* @license lucide-react v0.462.0 - ISC
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const
|
|
106
|
+
*/const dh=Y("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"}]]);/**
|
|
107
107
|
* @license lucide-react v0.462.0 - ISC
|
|
108
108
|
*
|
|
109
109
|
* This source code is licensed under the ISC license.
|
|
110
110
|
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const
|
|
111
|
+
*/const Gi=Y("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"}]]);/**
|
|
112
112
|
* @license lucide-react v0.462.0 - ISC
|
|
113
113
|
*
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const
|
|
116
|
+
*/const fh=Y("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"}]]);/**
|
|
117
117
|
* @license lucide-react v0.462.0 - ISC
|
|
118
118
|
*
|
|
119
119
|
* This source code is licensed under the ISC license.
|
|
120
120
|
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const
|
|
121
|
+
*/const ph=Y("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"}]]);/**
|
|
122
122
|
* @license lucide-react v0.462.0 - ISC
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the ISC license.
|
|
125
125
|
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const
|
|
126
|
+
*/const jc=Y("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
127
127
|
* @license lucide-react v0.462.0 - ISC
|
|
128
128
|
*
|
|
129
129
|
* This source code is licensed under the ISC license.
|
|
130
130
|
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const
|
|
131
|
+
*/const Yi=Y("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"}]]);/**
|
|
132
132
|
* @license lucide-react v0.462.0 - ISC
|
|
133
133
|
*
|
|
134
134
|
* This source code is licensed under the ISC license.
|
|
135
135
|
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const
|
|
136
|
+
*/const Ac=Y("MousePointer",[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]);/**
|
|
137
137
|
* @license lucide-react v0.462.0 - ISC
|
|
138
138
|
*
|
|
139
139
|
* This source code is licensed under the ISC license.
|
|
140
140
|
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const
|
|
141
|
+
*/const Oc=Y("MoveVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]);/**
|
|
142
142
|
* @license lucide-react v0.462.0 - ISC
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the ISC license.
|
|
145
145
|
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const
|
|
146
|
+
*/const hh=Y("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
|
|
147
147
|
* @license lucide-react v0.462.0 - ISC
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the ISC license.
|
|
150
150
|
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const
|
|
151
|
+
*/const mh=Y("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
152
152
|
* @license lucide-react v0.462.0 - ISC
|
|
153
153
|
*
|
|
154
154
|
* This source code is licensed under the ISC license.
|
|
155
155
|
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const
|
|
156
|
+
*/const Xi=Y("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
157
157
|
* @license lucide-react v0.462.0 - ISC
|
|
158
158
|
*
|
|
159
159
|
* This source code is licensed under the ISC license.
|
|
160
160
|
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const
|
|
161
|
+
*/const bh=Y("SquareDashed",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]);/**
|
|
162
162
|
* @license lucide-react v0.462.0 - ISC
|
|
163
163
|
*
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
@@ -168,113 +168,113 @@
|
|
|
168
168
|
*
|
|
169
169
|
* This source code is licensed under the ISC license.
|
|
170
170
|
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const
|
|
171
|
+
*/const vh=Y("SquareSquare",[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);/**
|
|
172
172
|
* @license lucide-react v0.462.0 - ISC
|
|
173
173
|
*
|
|
174
174
|
* This source code is licensed under the ISC license.
|
|
175
175
|
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const
|
|
176
|
+
*/const Ua=Y("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
177
177
|
* @license lucide-react v0.462.0 - ISC
|
|
178
178
|
*
|
|
179
179
|
* This source code is licensed under the ISC license.
|
|
180
180
|
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const
|
|
181
|
+
*/const yh=Y("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"}]]);/**
|
|
182
182
|
* @license lucide-react v0.462.0 - ISC
|
|
183
183
|
*
|
|
184
184
|
* This source code is licensed under the ISC license.
|
|
185
185
|
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const
|
|
186
|
+
*/const Ki=Y("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"}]]);/**
|
|
187
187
|
* @license lucide-react v0.462.0 - ISC
|
|
188
188
|
*
|
|
189
189
|
* This source code is licensed under the ISC license.
|
|
190
190
|
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const
|
|
191
|
+
*/const xh=Y("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
192
192
|
* @license lucide-react v0.462.0 - ISC
|
|
193
193
|
*
|
|
194
194
|
* This source code is licensed under the ISC license.
|
|
195
195
|
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const
|
|
196
|
+
*/const Ji=Y("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"}]]);/**
|
|
197
197
|
* @license lucide-react v0.462.0 - ISC
|
|
198
198
|
*
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
200
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const
|
|
201
|
+
*/const kc=Y("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
202
202
|
* @license lucide-react v0.462.0 - ISC
|
|
203
203
|
*
|
|
204
204
|
* This source code is licensed under the ISC license.
|
|
205
205
|
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const
|
|
206
|
+
*/const wh=Y("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
|
|
207
207
|
* @license lucide-react v0.462.0 - ISC
|
|
208
208
|
*
|
|
209
209
|
* This source code is licensed under the ISC license.
|
|
210
210
|
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const
|
|
211
|
+
*/const Sh=Y("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|
212
212
|
* @license lucide-react v0.462.0 - ISC
|
|
213
213
|
*
|
|
214
214
|
* This source code is licensed under the ISC license.
|
|
215
215
|
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const
|
|
216
|
+
*/const Ch=Y("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
217
217
|
* @license lucide-react v0.462.0 - ISC
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the ISC license.
|
|
220
220
|
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const Ch=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function bu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function $o(...t){return e=>{let r=!1;const n=t.map(o=>{const a=bu(o,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():bu(t[o],null)}}}}function we(...t){return y.useCallback($o(...t),t)}var Eh=Symbol.for("react.lazy"),ao=y[" use ".trim().toString()];function Nh(t){return typeof t=="object"&&t!==null&&"then"in t}function kc(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Eh&&"_payload"in t&&Nh(t._payload)}function Th(t){const e=Ah(t),r=y.forwardRef((n,o)=>{let{children:a,...i}=n;kc(a)&&typeof ao=="function"&&(a=ao(a._payload));const s=y.Children.toArray(a),u=s.find(kh);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}var jh=Th("Slot");function Ah(t){const e=y.forwardRef((r,n)=>{let{children:o,...a}=r;if(kc(o)&&typeof ao=="function"&&(o=ao(o._payload)),y.isValidElement(o)){const i=_h(o),s=Ph(a,o.props);return o.type!==y.Fragment&&(s.ref=n?$o(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Oh=Symbol("radix.slottable");function kh(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Oh}function Ph(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function _h(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const vu=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,yu=tt,Pc=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return yu(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=e,i=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=a==null?void 0:a[l];if(c===null)return null;const f=vu(c)||vu(h);return o[l][f]}),s=r&&Object.entries(r).reduce((l,c)=>{let[h,f]=c;return f===void 0||(l[h]=f),l},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(g=>{let[b,m]=g;return Array.isArray(m)?m.includes({...a,...s}[b]):{...a,...s}[b]===m})?[...l,h,f]:l},[]);return yu(t,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},Rh=Pc("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"}}),Xe=y.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const i=n?jh:"button";return p.jsx(i,{className:Se(Rh({variant:e,size:r,className:t})),ref:a,...o})});Xe.displayName="Button";function Ih(...t){return xc(tt(t))}function ce(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 o=qh[t],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Gt(t){return!!t&&!!t[Q]}function rt(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 o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Uh}(t)||Array.isArray(t)||!!t[rn]||!!(!((e=t.constructor)===null||e===void 0)&&e[rn])||Bo(t)||zo(t))}function Yt(t,e,r){r===void 0&&(r=!1),Rt(t)===0?(r?Object.keys:ts)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function Rt(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bo(t)?2:zo(t)?3:0}function an(t,e){return Rt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qn(t,e){return Rt(t)===2?t.get(e):t[e]}function _c(t,e,r){var n=Rt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Dh(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Bo(t){return Hh&&t instanceof Map}function zo(t){return Fh&&t instanceof Set}function xe(t){return t.o||t.t}function Ki(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vh(t);delete e[Q];for(var r=ts(e),n=0;n<r.length;n++){var o=r[n],a=e[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ji(t,e){return e===void 0&&(e=!1),Zi(t)||Gt(t)||!rt(t)||(Rt(t)>1&&(t.set=t.add=t.clear=t.delete=Mh),Object.freeze(t),e&&Yt(t,function(r,n){return Ji(n,!0)},!0)),t}function Mh(){ce(2)}function Zi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Je(t){var e=Va[t];return e||ce(18,t),e}function Rc(t,e){Va[t]||(Va[t]=e)}function io(){return process.env.NODE_ENV==="production"||yr||ce(0),yr}function Ca(t,e){e&&(Je("Patches"),t.u=[],t.s=[],t.v=e)}function so(t){Ua(t),t.p.forEach(Lh),t.p=null}function Ua(t){t===yr&&(yr=t.l)}function xu(t){return yr={p:[],l:yr,h:t,m:!0,_:0}}function Lh(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Ea(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Je("ES5").S(e,t,n),n?(r[Q].P&&(so(e),ce(4)),rt(t)&&(t=uo(e,t),e.l||lo(e,t)),e.u&&Je("Patches").M(r[Q].t,t,e.u,e.s)):t=uo(e,r,[]),so(e),e.u&&e.v(e.u,e.s),t!==es?t:void 0}function uo(t,e,r){if(Zi(e))return e;var n=e[Q];if(!n)return Yt(e,function(s,u){return wu(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return lo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ki(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Yt(a,function(s,u){return wu(t,n,o,s,u,r,i)}),lo(t,o,!1),r&&t.u&&Je("Patches").N(n,r,t.u,t.s)}return n.o}function wu(t,e,r,n,o,a,i){if(process.env.NODE_ENV!=="production"&&o===r&&ce(5),Gt(o)){var s=uo(t,o,a&&e&&e.i!==3&&!an(e.R,n)?a.concat(n):void 0);if(_c(r,n,s),!Gt(s))return;t.m=!1}else i&&r.add(o);if(rt(o)&&!Zi(o)){if(!t.h.D&&t._<1)return;uo(t,o),e&&e.A.l||lo(t,o)}}function lo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ji(e,r)}function Na(t,e){var r=t[Q];return(r?xe(r):t)[e]}function Su(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 ht(t){t.P||(t.P=!0,t.l&&ht(t.l))}function Ta(t){t.o||(t.o=Ki(t.t))}function sn(t,e,r){var n=Bo(e)?Je("MapSet").F(e,r):zo(e)?Je("MapSet").T(e,r):t.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:io(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,l=Wa;i&&(u=[s],l=Zr);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):Je("ES5").J(e,r);return(r?r.A:io()).p.push(n),n}function $h(t){return Gt(t)||ce(22,t),function e(r){if(!rt(r))return r;var n,o=r[Q],a=Rt(r);if(o){if(!o.P&&(o.i<4||!Je("ES5").K(o)))return o.t;o.I=!0,n=Cu(r,a),o.I=!1}else n=Cu(r,a);return Yt(n,function(i,s){o&&Qn(o.t,i)===s||_c(n,i,e(s))}),a===3?new Set(n):n}(t)}function Cu(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ki(t)}function Bh(){function t(n){if(!rt(n))return n;if(Array.isArray(n))return n.map(t);if(Bo(n))return new Map(Array.from(n.entries()).map(function(i){return[i[0],t(i[1])]}));if(zo(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var a in n)o[a]=t(n[a]);return an(n,rn)&&(o[rn]=n[rn]),o}function e(n){return Gt(n)?t(n):n}var r="add";Rc("Patches",{$:function(n,o){return o.forEach(function(a){for(var i=a.path,s=a.op,u=n,l=0;l<i.length-1;l++){var c=Rt(u),h=i[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||ce(24),typeof u=="function"&&h==="prototype"&&ce(24),typeof(u=Qn(u,h))!="object"&&ce(15,i.join("/"))}var f=Rt(u),d=t(a.value),g=i[i.length-1];switch(s){case"replace":switch(f){case 2:return u.set(g,d);case 3:ce(16);default:return u[g]=d}case r:switch(f){case 1:return g==="-"?u.push(d):u.splice(g,0,d);case 2:return u.set(g,d);case 3:return u.add(d);default:return u[g]=d}case"remove":switch(f){case 1:return u.splice(g,1);case 2:return u.delete(g);case 3:return u.delete(a.value);default:return delete u[g]}default:ce(17,s)}}),n},N:function(n,o,a,i){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;Yt(s.R,function(d,g){var b=Qn(h,d),m=Qn(f,d),v=g?an(h,d)?"replace":r:"remove";if(b!==m||v!=="replace"){var x=u.concat(d);l.push(v==="remove"?{op:v,path:x}:{op:v,path:x,value:m}),c.push(v===r?{op:"remove",path:x}:v==="remove"?{op:r,path:x,value:e(b)}:{op:"replace",path:x,value:e(b)})}})}(n,o,a,i);case 5:case 1:return function(s,u,l,c){var h=s.t,f=s.R,d=s.o;if(d.length<h.length){var g=[d,h];h=g[0],d=g[1];var b=[c,l];l=b[0],c=b[1]}for(var m=0;m<h.length;m++)if(f[m]&&d[m]!==h[m]){var v=u.concat([m]);l.push({op:"replace",path:v,value:e(d[m])}),c.push({op:"replace",path:v,value:e(h[m])})}for(var x=h.length;x<d.length;x++){var S=u.concat([x]);l.push({op:r,path:S,value:e(d[x])})}h.length<d.length&&c.push({op:"replace",path:u.concat(["length"]),value:h.length})}(n,o,a,i);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(g){if(!f.has(g)){var b=u.concat([d]);l.push({op:"remove",path:b,value:g}),c.unshift({op:r,path:b,value:g})}d++}),d=0,f.forEach(function(g){if(!h.has(g)){var b=u.concat([d]);l.push({op:r,path:b,value:g}),c.unshift({op:"remove",path:b,value:g})}d++})}(n,o,a,i)}},M:function(n,o,a,i){a.push({op:"replace",path:[],value:o===es?void 0:o}),i.push({op:"replace",path:[],value:n})}})}function zh(){function t(s,u){function l(){this.constructor=s}o(s,u),s.prototype=(l.prototype=u.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function r(s){s.o||(s.o=new Set,s.t.forEach(function(u){if(rt(u)){var l=sn(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&ce(3,JSON.stringify(xe(s)))}var o=function(s,u){return(o=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])})(s,u)},a=function(){function s(l,c){return this[Q]={i:2,l:c,A:c?c.A:io(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(s,Map);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){return xe(this[Q]).has(l)},u.set=function(l,c){var h=this[Q];return n(h),xe(h).has(l)&&xe(h).get(l)===c||(e(h),ht(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),e(c),ht(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(e(l),ht(l),l.R=new Map,Yt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;xe(this[Q]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[Q];n(c);var h=xe(c).get(l);if(c.I||!rt(h)||h!==c.t.get(l))return h;var f=sn(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return xe(this[Q]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[Ln]=function(){return c.values()},l.next=function(){var f=h.next();return f.done?f:{done:!1,value:c.get(f.value)}},l},u.entries=function(){var l,c=this,h=this.keys();return(l={})[Ln]=function(){return c.entries()},l.next=function(){var f=h.next();if(f.done)return f;var d=c.get(f.value);return{done:!1,value:[f.value,d]}},l},u[Ln]=function(){return this.entries()},s}(),i=function(){function s(l,c){return this[Q]={i:3,l:c,A:c?c.A:io(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(s,Set);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){var c=this[Q];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},u.add=function(l){var c=this[Q];return n(c),this.has(l)||(r(c),ht(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),r(c),ht(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(r(l),ht(l),l.o.clear())},u.values=function(){var l=this[Q];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[Q];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[Ln]=function(){return this.values()},u.forEach=function(l,c){for(var h=this.values(),f=h.next();!f.done;)l.call(c,f.value,f.value,this),f=h.next()},s}();Rc("MapSet",{F:function(s,u){return new a(s,u)},T:function(s,u){return new i(s,u)}})}var Eu,yr,Qi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hh=typeof Map<"u",Fh=typeof Set<"u",Nu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",es=Qi?Symbol.for("immer-nothing"):((Eu={})["immer-nothing"]=!0,Eu),rn=Qi?Symbol.for("immer-draftable"):"__$immer_draftable",Q=Qi?Symbol.for("immer-state"):"__$immer_state",Ln=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",qh={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"},Uh=""+Object.prototype.constructor,ts=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vh=Object.getOwnPropertyDescriptors||function(t){var e={};return ts(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Va={},Wa={get:function(t,e){if(e===Q)return t;var r=xe(t);if(!an(r,e))return function(o,a,i){var s,u=Su(a,i);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!rt(n)?n:n===Na(t.t,e)?(Ta(t),t.o[e]=sn(t.A.h,n,t)):n},has:function(t,e){return e in xe(t)},ownKeys:function(t){return Reflect.ownKeys(xe(t))},set:function(t,e,r){var n=Su(xe(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Na(xe(t),e),a=o==null?void 0:o[Q];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Dh(r,o)&&(r!==void 0||an(t.t,e)))return!0;Ta(t),ht(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 Na(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ta(t),ht(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=xe(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ce(12)}},Zr={};Yt(Wa,function(t,e){Zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ce(13),Zr.set.call(this,t,e,void 0)},Zr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ce(14),Wa.set.call(this,t[0],e,r,t[0])};var Wh=function(){function t(r){var n=this;this.O=Nu,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=n;return function(b){var m=this;b===void 0&&(b=s);for(var v=arguments.length,x=Array(v>1?v-1:0),S=1;S<v;S++)x[S-1]=arguments[S];return u.produce(b,function(C){var j;return(j=a).call.apply(j,[m,C].concat(x))})}}var l;if(typeof a!="function"&&ce(6),i!==void 0&&typeof i!="function"&&ce(7),rt(o)){var c=xu(n),h=sn(n,o,void 0),f=!0;try{l=a(h),f=!1}finally{f?so(c):Ua(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(b){return Ca(c,i),Ea(b,c)},function(b){throw so(c),b}):(Ca(c,i),Ea(l,c))}if(!o||typeof o!="object"){if((l=a(o))===void 0&&(l=o),l===es&&(l=void 0),n.D&&Ji(l,!0),i){var d=[],g=[];Je("Patches").M(o,l,d,g),i(d,g)}return l}ce(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];return n.produceWithPatches(l,function(d){return o.apply(void 0,[d].concat(h))})};var i,s,u=n.produce(o,a,function(l,c){i=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,i,s]}):[u,i,s]},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){rt(r)||ce(8),Gt(r)&&(r=$h(r));var n=xu(this),o=sn(this,r,void 0);return o[Q].C=!0,Ua(n),o},e.finishDraft=function(r,n){var o=r&&r[Q];process.env.NODE_ENV!=="production"&&(o&&o.C||ce(9),o.I&&ce(10));var a=o.A;return Ca(a,n),Ea(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Nu&&ce(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=Je("Patches").$;return Gt(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},t}(),Pe=new Wh,Gh=Pe.produce,Tu=Pe.produceWithPatches.bind(Pe);Pe.setAutoFreeze.bind(Pe);Pe.setUseProxies.bind(Pe);var ju=Pe.applyPatches.bind(Pe);Pe.createDraft.bind(Pe);Pe.finishDraft.bind(Pe);var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ho(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Yh(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 o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function Xh(){this.__data__=[],this.size=0}var Kh=Xh;function Jh(t,e){return t===e||t!==t&&e!==e}var Ic=Jh,Zh=Ic;function Qh(t,e){for(var r=t.length;r--;)if(Zh(t[r][0],e))return r;return-1}var Fo=Qh,em=Fo,tm=Array.prototype,rm=tm.splice;function nm(t){var e=this.__data__,r=em(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():rm.call(e,r,1),--this.size,!0}var om=nm,am=Fo;function im(t){var e=this.__data__,r=am(e,t);return r<0?void 0:e[r][1]}var sm=im,um=Fo;function lm(t){return um(this.__data__,t)>-1}var cm=lm,dm=Fo;function fm(t,e){var r=this.__data__,n=dm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var pm=fm,hm=Kh,mm=om,gm=sm,bm=cm,vm=pm;function _r(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])}}_r.prototype.clear=hm;_r.prototype.delete=mm;_r.prototype.get=gm;_r.prototype.has=bm;_r.prototype.set=vm;var qo=_r,ym=qo;function xm(){this.__data__=new ym,this.size=0}var wm=xm;function Sm(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Cm=Sm;function Em(t){return this.__data__.get(t)}var Nm=Em;function Tm(t){return this.__data__.has(t)}var jm=Tm,Am=typeof F=="object"&&F&&F.Object===Object&&F,Dc=Am,Om=Dc,km=typeof self=="object"&&self&&self.Object===Object&&self,Pm=Om||km||Function("return this")(),ot=Pm,_m=ot,Rm=_m.Symbol,Uo=Rm,Au=Uo,Mc=Object.prototype,Im=Mc.hasOwnProperty,Dm=Mc.toString,Yr=Au?Au.toStringTag:void 0;function Mm(t){var e=Im.call(t,Yr),r=t[Yr];try{t[Yr]=void 0;var n=!0}catch{}var o=Dm.call(t);return n&&(e?t[Yr]=r:delete t[Yr]),o}var Lm=Mm,$m=Object.prototype,Bm=$m.toString;function zm(t){return Bm.call(t)}var Hm=zm,Ou=Uo,Fm=Lm,qm=Hm,Um="[object Null]",Vm="[object Undefined]",ku=Ou?Ou.toStringTag:void 0;function Wm(t){return t==null?t===void 0?Vm:Um:ku&&ku in Object(t)?Fm(t):qm(t)}var Vo=Wm;function Gm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Lc=Gm,Ym=Vo,Xm=Lc,Km="[object AsyncFunction]",Jm="[object Function]",Zm="[object GeneratorFunction]",Qm="[object Proxy]";function eg(t){if(!Xm(t))return!1;var e=Ym(t);return e==Jm||e==Zm||e==Km||e==Qm}var rs=eg;const tg=Ho(rs);var rg=ot,ng=rg["__core-js_shared__"],og=ng,ja=og,Pu=function(){var t=/[^.]+$/.exec(ja&&ja.keys&&ja.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ag(t){return!!Pu&&Pu in t}var ig=ag,sg=Function.prototype,ug=sg.toString;function lg(t){if(t!=null){try{return ug.call(t)}catch{}try{return t+""}catch{}}return""}var $c=lg,cg=rs,dg=ig,fg=Lc,pg=$c,hg=/[\\^$.*+?()[\]{}|]/g,mg=/^\[object .+?Constructor\]$/,gg=Function.prototype,bg=Object.prototype,vg=gg.toString,yg=bg.hasOwnProperty,xg=RegExp("^"+vg.call(yg).replace(hg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wg(t){if(!fg(t)||dg(t))return!1;var e=cg(t)?xg:mg;return e.test(pg(t))}var Sg=wg;function Cg(t,e){return t==null?void 0:t[e]}var Eg=Cg,Ng=Sg,Tg=Eg;function jg(t,e){var r=Tg(t,e);return Ng(r)?r:void 0}var Qt=jg,Ag=Qt,Og=ot,kg=Ag(Og,"Map"),ns=kg,Pg=Qt,_g=Pg(Object,"create"),Wo=_g,_u=Wo;function Rg(){this.__data__=_u?_u(null):{},this.size=0}var Ig=Rg;function Dg(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Mg=Dg,Lg=Wo,$g="__lodash_hash_undefined__",Bg=Object.prototype,zg=Bg.hasOwnProperty;function Hg(t){var e=this.__data__;if(Lg){var r=e[t];return r===$g?void 0:r}return zg.call(e,t)?e[t]:void 0}var Fg=Hg,qg=Wo,Ug=Object.prototype,Vg=Ug.hasOwnProperty;function Wg(t){var e=this.__data__;return qg?e[t]!==void 0:Vg.call(e,t)}var Gg=Wg,Yg=Wo,Xg="__lodash_hash_undefined__";function Kg(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yg&&e===void 0?Xg:e,this}var Jg=Kg,Zg=Ig,Qg=Mg,eb=Fg,tb=Gg,rb=Jg;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=Zg;Rr.prototype.delete=Qg;Rr.prototype.get=eb;Rr.prototype.has=tb;Rr.prototype.set=rb;var nb=Rr,Ru=nb,ob=qo,ab=ns;function ib(){this.size=0,this.__data__={hash:new Ru,map:new(ab||ob),string:new Ru}}var sb=ib;function ub(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var lb=ub,cb=lb;function db(t,e){var r=t.__data__;return cb(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Go=db,fb=Go;function pb(t){var e=fb(this,t).delete(t);return this.size-=e?1:0,e}var hb=pb,mb=Go;function gb(t){return mb(this,t).get(t)}var bb=gb,vb=Go;function yb(t){return vb(this,t).has(t)}var xb=yb,wb=Go;function Sb(t,e){var r=wb(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Cb=Sb,Eb=sb,Nb=hb,Tb=bb,jb=xb,Ab=Cb;function Ir(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])}}Ir.prototype.clear=Eb;Ir.prototype.delete=Nb;Ir.prototype.get=Tb;Ir.prototype.has=jb;Ir.prototype.set=Ab;var Bc=Ir,Ob=qo,kb=ns,Pb=Bc,_b=200;function Rb(t,e){var r=this.__data__;if(r instanceof Ob){var n=r.__data__;if(!kb||n.length<_b-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pb(n)}return r.set(t,e),this.size=r.size,this}var Ib=Rb,Db=qo,Mb=wm,Lb=Cm,$b=Nm,Bb=jm,zb=Ib;function Dr(t){var e=this.__data__=new Db(t);this.size=e.size}Dr.prototype.clear=Mb;Dr.prototype.delete=Lb;Dr.prototype.get=$b;Dr.prototype.has=Bb;Dr.prototype.set=zb;var Hb=Dr,Fb="__lodash_hash_undefined__";function qb(t){return this.__data__.set(t,Fb),this}var Ub=qb;function Vb(t){return this.__data__.has(t)}var Wb=Vb,Gb=Bc,Yb=Ub,Xb=Wb;function co(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Gb;++e<r;)this.add(t[e])}co.prototype.add=co.prototype.push=Yb;co.prototype.has=Xb;var Kb=co;function Jb(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 Zb=Jb;function Qb(t,e){return t.has(e)}var e1=Qb,t1=Kb,r1=Zb,n1=e1,o1=1,a1=2;function i1(t,e,r,n,o,a){var i=r&o1,s=t.length,u=e.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(t),c=a.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&a1?new t1:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var g=t[h],b=e[h];if(n)var m=i?n(b,g,h,e,t,a):n(g,b,h,t,e,a);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!r1(e,function(v,x){if(!n1(d,x)&&(g===v||o(g,v,r,n,a)))return d.push(x)})){f=!1;break}}else if(!(g===b||o(g,b,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}var zc=i1,s1=ot,u1=s1.Uint8Array,l1=u1;function c1(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var d1=c1;function f1(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var p1=f1,Iu=Uo,Du=l1,h1=Ic,m1=zc,g1=d1,b1=p1,v1=1,y1=2,x1="[object Boolean]",w1="[object Date]",S1="[object Error]",C1="[object Map]",E1="[object Number]",N1="[object RegExp]",T1="[object Set]",j1="[object String]",A1="[object Symbol]",O1="[object ArrayBuffer]",k1="[object DataView]",Mu=Iu?Iu.prototype:void 0,Aa=Mu?Mu.valueOf:void 0;function P1(t,e,r,n,o,a,i){switch(r){case k1:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O1:return!(t.byteLength!=e.byteLength||!a(new Du(t),new Du(e)));case x1:case w1:case E1:return h1(+t,+e);case S1:return t.name==e.name&&t.message==e.message;case N1:case j1:return t==e+"";case C1:var s=g1;case T1:var u=n&v1;if(s||(s=b1),t.size!=e.size&&!u)return!1;var l=i.get(t);if(l)return l==e;n|=y1,i.set(t,e);var c=m1(s(t),s(e),n,o,a,i);return i.delete(t),c;case A1:if(Aa)return Aa.call(t)==Aa.call(e)}return!1}var _1=P1;function R1(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var I1=R1,D1=Array.isArray,os=D1,M1=I1,L1=os;function $1(t,e,r){var n=e(t);return L1(t)?n:M1(n,r(t))}var B1=$1;function z1(t,e){for(var r=-1,n=t==null?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}var H1=z1;function F1(){return[]}var q1=F1,U1=H1,V1=q1,W1=Object.prototype,G1=W1.propertyIsEnumerable,Lu=Object.getOwnPropertySymbols,Y1=Lu?function(t){return t==null?[]:(t=Object(t),U1(Lu(t),function(e){return G1.call(t,e)}))}:V1,X1=Y1;function K1(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var J1=K1;function Z1(t){return t!=null&&typeof t=="object"}var Yo=Z1,Q1=Vo,ev=Yo,tv="[object Arguments]";function rv(t){return ev(t)&&Q1(t)==tv}var nv=rv,$u=nv,ov=Yo,Hc=Object.prototype,av=Hc.hasOwnProperty,iv=Hc.propertyIsEnumerable,sv=$u(function(){return arguments}())?$u:function(t){return ov(t)&&av.call(t,"callee")&&!iv.call(t,"callee")},uv=sv,fo={exports:{}};function lv(){return!1}var cv=lv;fo.exports;(function(t,e){var r=ot,n=cv,o=e&&!e.nodeType&&e,a=o&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(fo,fo.exports);var Fc=fo.exports,dv=9007199254740991,fv=/^(?:0|[1-9]\d*)$/;function pv(t,e){var r=typeof t;return e=e??dv,!!e&&(r=="number"||r!="symbol"&&fv.test(t))&&t>-1&&t%1==0&&t<e}var hv=pv,mv=9007199254740991;function gv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=mv}var qc=gv,bv=Vo,vv=qc,yv=Yo,xv="[object Arguments]",wv="[object Array]",Sv="[object Boolean]",Cv="[object Date]",Ev="[object Error]",Nv="[object Function]",Tv="[object Map]",jv="[object Number]",Av="[object Object]",Ov="[object RegExp]",kv="[object Set]",Pv="[object String]",_v="[object WeakMap]",Rv="[object ArrayBuffer]",Iv="[object DataView]",Dv="[object Float32Array]",Mv="[object Float64Array]",Lv="[object Int8Array]",$v="[object Int16Array]",Bv="[object Int32Array]",zv="[object Uint8Array]",Hv="[object Uint8ClampedArray]",Fv="[object Uint16Array]",qv="[object Uint32Array]",ie={};ie[Dv]=ie[Mv]=ie[Lv]=ie[$v]=ie[Bv]=ie[zv]=ie[Hv]=ie[Fv]=ie[qv]=!0;ie[xv]=ie[wv]=ie[Rv]=ie[Sv]=ie[Iv]=ie[Cv]=ie[Ev]=ie[Nv]=ie[Tv]=ie[jv]=ie[Av]=ie[Ov]=ie[kv]=ie[Pv]=ie[_v]=!1;function Uv(t){return yv(t)&&vv(t.length)&&!!ie[bv(t)]}var Vv=Uv;function Wv(t){return function(e){return t(e)}}var Gv=Wv,po={exports:{}};po.exports;(function(t,e){var r=Dc,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s})(po,po.exports);var as=po.exports,Yv=Vv,Xv=Gv,Bu=as,zu=Bu&&Bu.isTypedArray,Kv=zu?Xv(zu):Yv,Uc=Kv,Jv=J1,Zv=uv,Qv=os,ey=Fc,ty=hv,ry=Uc,ny=Object.prototype,oy=ny.hasOwnProperty;function ay(t,e){var r=Qv(t),n=!r&&Zv(t),o=!r&&!n&&ey(t),a=!r&&!n&&!o&&ry(t),i=r||n||o||a,s=i?Jv(t.length,String):[],u=s.length;for(var l in t)(e||oy.call(t,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ty(l,u)))&&s.push(l);return s}var iy=ay,sy=Object.prototype;function uy(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||sy;return t===r}var ly=uy;function cy(t,e){return function(r){return t(e(r))}}var dy=cy,fy=dy,py=fy(Object.keys,Object),hy=py,my=ly,gy=hy,by=Object.prototype,vy=by.hasOwnProperty;function yy(t){if(!my(t))return gy(t);var e=[];for(var r in Object(t))vy.call(t,r)&&r!="constructor"&&e.push(r);return e}var xy=yy,wy=rs,Sy=qc;function Cy(t){return t!=null&&Sy(t.length)&&!wy(t)}var Ey=Cy,Ny=iy,Ty=xy,jy=Ey;function Ay(t){return jy(t)?Ny(t):Ty(t)}var Oy=Ay,ky=B1,Py=X1,_y=Oy;function Ry(t){return ky(t,_y,Py)}var Iy=Ry,Hu=Iy,Dy=1,My=Object.prototype,Ly=My.hasOwnProperty;function $y(t,e,r,n,o,a){var i=r&Dy,s=Hu(t),u=s.length,l=Hu(e),c=l.length;if(u!=c&&!i)return!1;for(var h=u;h--;){var f=s[h];if(!(i?f in e:Ly.call(e,f)))return!1}var d=a.get(t),g=a.get(e);if(d&&g)return d==e&&g==t;var b=!0;a.set(t,e),a.set(e,t);for(var m=i;++h<u;){f=s[h];var v=t[f],x=e[f];if(n)var S=i?n(x,v,f,e,t,a):n(v,x,f,t,e,a);if(!(S===void 0?v===x||o(v,x,r,n,a):S)){b=!1;break}m||(m=f=="constructor")}if(b&&!m){var C=t.constructor,j=e.constructor;C!=j&&"constructor"in t&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof j=="function"&&j instanceof j)&&(b=!1)}return a.delete(t),a.delete(e),b}var By=$y,zy=Qt,Hy=ot,Fy=zy(Hy,"DataView"),qy=Fy,Uy=Qt,Vy=ot,Wy=Uy(Vy,"Promise"),Gy=Wy,Yy=Qt,Xy=ot,Ky=Yy(Xy,"Set"),Jy=Ky,Zy=Qt,Qy=ot,ex=Zy(Qy,"WeakMap"),tx=ex,Ga=qy,Ya=ns,Xa=Gy,Ka=Jy,Ja=tx,Vc=Vo,Mr=$c,Fu="[object Map]",rx="[object Object]",qu="[object Promise]",Uu="[object Set]",Vu="[object WeakMap]",Wu="[object DataView]",nx=Mr(Ga),ox=Mr(Ya),ax=Mr(Xa),ix=Mr(Ka),sx=Mr(Ja),Vt=Vc;(Ga&&Vt(new Ga(new ArrayBuffer(1)))!=Wu||Ya&&Vt(new Ya)!=Fu||Xa&&Vt(Xa.resolve())!=qu||Ka&&Vt(new Ka)!=Uu||Ja&&Vt(new Ja)!=Vu)&&(Vt=function(t){var e=Vc(t),r=e==rx?t.constructor:void 0,n=r?Mr(r):"";if(n)switch(n){case nx:return Wu;case ox:return Fu;case ax:return qu;case ix:return Uu;case sx:return Vu}return e});var ux=Vt,Oa=Hb,lx=zc,cx=_1,dx=By,Gu=ux,Yu=os,Xu=Fc,fx=Uc,px=1,Ku="[object Arguments]",Ju="[object Array]",$n="[object Object]",hx=Object.prototype,Zu=hx.hasOwnProperty;function mx(t,e,r,n,o,a){var i=Yu(t),s=Yu(e),u=i?Ju:Gu(t),l=s?Ju:Gu(e);u=u==Ku?$n:u,l=l==Ku?$n:l;var c=u==$n,h=l==$n,f=u==l;if(f&&Xu(t)){if(!Xu(e))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Oa),i||fx(t)?lx(t,e,r,n,o,a):cx(t,e,u,r,n,o,a);if(!(r&px)){var d=c&&Zu.call(t,"__wrapped__"),g=h&&Zu.call(e,"__wrapped__");if(d||g){var b=d?t.value():t,m=g?e.value():e;return a||(a=new Oa),o(b,m,r,n,a)}}return f?(a||(a=new Oa),dx(t,e,r,n,o,a)):!1}var gx=mx,bx=gx,Qu=Yo;function Wc(t,e,r,n,o){return t===e?!0:t==null||e==null||!Qu(t)&&!Qu(e)?t!==t&&e!==e:bx(t,e,r,n,Wc,o)}var vx=Wc,yx=vx;function xx(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?yx(t,e,void 0,r):!!n}var wx=xx;const Sx=Ho(wx);var Cx=function(e,r,n,o){var a=n?n.call(o,e,r):void 0;if(a!==void 0)return!!a;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<i.length;l++){var c=i[l];if(!u(c))return!1;var h=e[c],f=r[c];if(a=n?n.call(o,h,f,c):void 0,a===!1||a===void 0&&h!==f)return!1}return!0};const Ex=Ho(Cx);let Nx=(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 Tx=process.env.NODE_ENV==="production",ka="Invariant failed";function oe(t,e){if(!t){if(Tx)throw new Error(ka);var r=typeof e=="function"?e():e,n=r?"".concat(ka,": ").concat(r):ka;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var bt="ROOT",Gc="canvas-ROOT",jx="Parent id cannot be ommited",Ax="Attempting to add a node with duplicated id",Yc="Node does not exist, it may have been removed",Ox='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',kx="Node cannot be dropped into target parent",Px="Target parent rejects incoming node",_x="Current parent rejects outgoing node",el="Cannot move node that is not a direct child of a Canvas node",Rx="Cannot move node into a non-Canvas parent",tl="A top-level Node cannot be moved",Ix="Cannot move node into a descendant",ho="The component type specified for this node (%node_type%) does not exist in the resolver",Dx="The node has specified a canDrag() rule that prevents it from being dragged",Mx="Invalid parameter Node Id specified",Lx="Attempting to delete a top-level Node",$x=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
|
|
221
|
+
*/const Eh=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function vu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Bo(...t){return e=>{let r=!1;const n=t.map(o=>{const a=vu(o,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():vu(t[o],null)}}}}function Se(...t){return y.useCallback(Bo(...t),t)}var Nh=Symbol.for("react.lazy"),io=y[" use ".trim().toString()];function Th(t){return typeof t=="object"&&t!==null&&"then"in t}function Pc(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Nh&&"_payload"in t&&Th(t._payload)}function jh(t){const e=Oh(t),r=y.forwardRef((n,o)=>{let{children:a,...i}=n;Pc(a)&&typeof io=="function"&&(a=io(a._payload));const s=y.Children.toArray(a),u=s.find(Ph);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}var Ah=jh("Slot");function Oh(t){const e=y.forwardRef((r,n)=>{let{children:o,...a}=r;if(Pc(o)&&typeof io=="function"&&(o=io(o._payload)),y.isValidElement(o)){const i=Rh(o),s=_h(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Bo(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var kh=Symbol("radix.slottable");function Ph(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===kh}function _h(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function Rh(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}const yu=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,xu=rt,_c=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return xu(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=e,i=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=a==null?void 0:a[l];if(c===null)return null;const f=yu(c)||yu(h);return o[l][f]}),s=r&&Object.entries(r).reduce((l,c)=>{let[h,f]=c;return f===void 0||(l[h]=f),l},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...a,...s}[g]):{...a,...s}[g]===m})?[...l,h,f]:l},[]);return xu(t,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},Ih=_c("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"}}),Ke=y.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const i=n?Ah:"button";return p.jsx(i,{className:Ce(Ih({variant:e,size:r,className:t})),ref:a,...o})});Ke.displayName="Button";function Dh(...t){return wc(rt(t))}function de(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 o=Uh[t],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Yt(t){return!!t&&!!t[ee]}function nt(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 o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===Vh}(t)||Array.isArray(t)||!!t[rn]||!!(!((e=t.constructor)===null||e===void 0)&&e[rn])||zo(t)||Ho(t))}function Xt(t,e,r){r===void 0&&(r=!1),It(t)===0?(r?Object.keys:ns)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function It(t){var e=t[ee];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:zo(t)?2:Ho(t)?3:0}function sn(t,e){return It(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function eo(t,e){return It(t)===2?t.get(e):t[e]}function Rc(t,e,r){var n=It(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Mh(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function zo(t){return Fh&&t instanceof Map}function Ho(t){return qh&&t instanceof Set}function we(t){return t.o||t.t}function Zi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Wh(t);delete e[ee];for(var r=ns(e),n=0;n<r.length;n++){var o=r[n],a=e[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Qi(t,e){return e===void 0&&(e=!1),es(t)||Yt(t)||!nt(t)||(It(t)>1&&(t.set=t.add=t.clear=t.delete=Lh),Object.freeze(t),e&&Xt(t,function(r,n){return Qi(n,!0)},!0)),t}function Lh(){de(2)}function es(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Ze(t){var e=Wa[t];return e||de(18,t),e}function Ic(t,e){Wa[t]||(Wa[t]=e)}function so(){return process.env.NODE_ENV==="production"||yr||de(0),yr}function Ea(t,e){e&&(Ze("Patches"),t.u=[],t.s=[],t.v=e)}function uo(t){Va(t),t.p.forEach($h),t.p=null}function Va(t){t===yr&&(yr=t.l)}function wu(t){return yr={p:[],l:yr,h:t,m:!0,_:0}}function $h(t){var e=t[ee];e.i===0||e.i===1?e.j():e.g=!0}function Na(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Ze("ES5").S(e,t,n),n?(r[ee].P&&(uo(e),de(4)),nt(t)&&(t=lo(e,t),e.l||co(e,t)),e.u&&Ze("Patches").M(r[ee].t,t,e.u,e.s)):t=lo(e,r,[]),uo(e),e.u&&e.v(e.u,e.s),t!==rs?t:void 0}function lo(t,e,r){if(es(e))return e;var n=e[ee];if(!n)return Xt(e,function(s,u){return Su(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return co(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Zi(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Xt(a,function(s,u){return Su(t,n,o,s,u,r,i)}),co(t,o,!1),r&&t.u&&Ze("Patches").N(n,r,t.u,t.s)}return n.o}function Su(t,e,r,n,o,a,i){if(process.env.NODE_ENV!=="production"&&o===r&&de(5),Yt(o)){var s=lo(t,o,a&&e&&e.i!==3&&!sn(e.R,n)?a.concat(n):void 0);if(Rc(r,n,s),!Yt(s))return;t.m=!1}else i&&r.add(o);if(nt(o)&&!es(o)){if(!t.h.D&&t._<1)return;lo(t,o),e&&e.A.l||co(t,o)}}function co(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Qi(e,r)}function Ta(t,e){var r=t[ee];return(r?we(r):t)[e]}function Cu(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 mt(t){t.P||(t.P=!0,t.l&&mt(t.l))}function ja(t){t.o||(t.o=Zi(t.t))}function un(t,e,r){var n=zo(e)?Ze("MapSet").F(e,r):Ho(e)?Ze("MapSet").T(e,r):t.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:so(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,l=Ga;i&&(u=[s],l=Zr);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):Ze("ES5").J(e,r);return(r?r.A:so()).p.push(n),n}function Bh(t){return Yt(t)||de(22,t),function e(r){if(!nt(r))return r;var n,o=r[ee],a=It(r);if(o){if(!o.P&&(o.i<4||!Ze("ES5").K(o)))return o.t;o.I=!0,n=Eu(r,a),o.I=!1}else n=Eu(r,a);return Xt(n,function(i,s){o&&eo(o.t,i)===s||Rc(n,i,e(s))}),a===3?new Set(n):n}(t)}function Eu(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Zi(t)}function zh(){function t(n){if(!nt(n))return n;if(Array.isArray(n))return n.map(t);if(zo(n))return new Map(Array.from(n.entries()).map(function(i){return[i[0],t(i[1])]}));if(Ho(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var a in n)o[a]=t(n[a]);return sn(n,rn)&&(o[rn]=n[rn]),o}function e(n){return Yt(n)?t(n):n}var r="add";Ic("Patches",{$:function(n,o){return o.forEach(function(a){for(var i=a.path,s=a.op,u=n,l=0;l<i.length-1;l++){var c=It(u),h=i[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||de(24),typeof u=="function"&&h==="prototype"&&de(24),typeof(u=eo(u,h))!="object"&&de(15,i.join("/"))}var f=It(u),d=t(a.value),b=i[i.length-1];switch(s){case"replace":switch(f){case 2:return u.set(b,d);case 3:de(16);default:return u[b]=d}case r:switch(f){case 1:return b==="-"?u.push(d):u.splice(b,0,d);case 2:return u.set(b,d);case 3:return u.add(d);default:return u[b]=d}case"remove":switch(f){case 1:return u.splice(b,1);case 2:return u.delete(b);case 3:return u.delete(a.value);default:return delete u[b]}default:de(17,s)}}),n},N:function(n,o,a,i){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;Xt(s.R,function(d,b){var g=eo(h,d),m=eo(f,d),v=b?sn(h,d)?"replace":r:"remove";if(g!==m||v!=="replace"){var x=u.concat(d);l.push(v==="remove"?{op:v,path:x}:{op:v,path:x,value:m}),c.push(v===r?{op:"remove",path:x}:v==="remove"?{op:r,path:x,value:e(g)}:{op:"replace",path:x,value:e(g)})}})}(n,o,a,i);case 5:case 1:return function(s,u,l,c){var h=s.t,f=s.R,d=s.o;if(d.length<h.length){var b=[d,h];h=b[0],d=b[1];var g=[c,l];l=g[0],c=g[1]}for(var m=0;m<h.length;m++)if(f[m]&&d[m]!==h[m]){var v=u.concat([m]);l.push({op:"replace",path:v,value:e(d[m])}),c.push({op:"replace",path:v,value:e(h[m])})}for(var x=h.length;x<d.length;x++){var C=u.concat([x]);l.push({op:r,path:C,value:e(d[x])})}h.length<d.length&&c.push({op:"replace",path:u.concat(["length"]),value:h.length})}(n,o,a,i);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(b){if(!f.has(b)){var g=u.concat([d]);l.push({op:"remove",path:g,value:b}),c.unshift({op:r,path:g,value:b})}d++}),d=0,f.forEach(function(b){if(!h.has(b)){var g=u.concat([d]);l.push({op:r,path:g,value:b}),c.unshift({op:"remove",path:g,value:b})}d++})}(n,o,a,i)}},M:function(n,o,a,i){a.push({op:"replace",path:[],value:o===rs?void 0:o}),i.push({op:"replace",path:[],value:n})}})}function Hh(){function t(s,u){function l(){this.constructor=s}o(s,u),s.prototype=(l.prototype=u.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function r(s){s.o||(s.o=new Set,s.t.forEach(function(u){if(nt(u)){var l=un(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&de(3,JSON.stringify(we(s)))}var o=function(s,u){return(o=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])})(s,u)},a=function(){function s(l,c){return this[ee]={i:2,l:c,A:c?c.A:so(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(s,Map);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return we(this[ee]).size}}),u.has=function(l){return we(this[ee]).has(l)},u.set=function(l,c){var h=this[ee];return n(h),we(h).has(l)&&we(h).get(l)===c||(e(h),mt(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ee];return n(c),e(c),mt(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},u.clear=function(){var l=this[ee];n(l),we(l).size&&(e(l),mt(l),l.R=new Map,Xt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;we(this[ee]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[ee];n(c);var h=we(c).get(l);if(c.I||!nt(h)||h!==c.t.get(l))return h;var f=un(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return we(this[ee]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[$n]=function(){return c.values()},l.next=function(){var f=h.next();return f.done?f:{done:!1,value:c.get(f.value)}},l},u.entries=function(){var l,c=this,h=this.keys();return(l={})[$n]=function(){return c.entries()},l.next=function(){var f=h.next();if(f.done)return f;var d=c.get(f.value);return{done:!1,value:[f.value,d]}},l},u[$n]=function(){return this.entries()},s}(),i=function(){function s(l,c){return this[ee]={i:3,l:c,A:c?c.A:so(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(s,Set);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return we(this[ee]).size}}),u.has=function(l){var c=this[ee];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},u.add=function(l){var c=this[ee];return n(c),this.has(l)||(r(c),mt(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ee];return n(c),r(c),mt(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[ee];n(l),we(l).size&&(r(l),mt(l),l.o.clear())},u.values=function(){var l=this[ee];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[ee];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[$n]=function(){return this.values()},u.forEach=function(l,c){for(var h=this.values(),f=h.next();!f.done;)l.call(c,f.value,f.value,this),f=h.next()},s}();Ic("MapSet",{F:function(s,u){return new a(s,u)},T:function(s,u){return new i(s,u)}})}var Nu,yr,ts=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fh=typeof Map<"u",qh=typeof Set<"u",Tu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",rs=ts?Symbol.for("immer-nothing"):((Nu={})["immer-nothing"]=!0,Nu),rn=ts?Symbol.for("immer-draftable"):"__$immer_draftable",ee=ts?Symbol.for("immer-state"):"__$immer_state",$n=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Uh={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"},Vh=""+Object.prototype.constructor,ns=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Wh=Object.getOwnPropertyDescriptors||function(t){var e={};return ns(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Wa={},Ga={get:function(t,e){if(e===ee)return t;var r=we(t);if(!sn(r,e))return function(o,a,i){var s,u=Cu(a,i);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!nt(n)?n:n===Ta(t.t,e)?(ja(t),t.o[e]=un(t.A.h,n,t)):n},has:function(t,e){return e in we(t)},ownKeys:function(t){return Reflect.ownKeys(we(t))},set:function(t,e,r){var n=Cu(we(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Ta(we(t),e),a=o==null?void 0:o[ee];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Mh(r,o)&&(r!==void 0||sn(t.t,e)))return!0;ja(t),mt(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 Ta(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ja(t),mt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=we(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){de(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){de(12)}},Zr={};Xt(Ga,function(t,e){Zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&de(13),Zr.set.call(this,t,e,void 0)},Zr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&de(14),Ga.set.call(this,t[0],e,r,t[0])};var Gh=function(){function t(r){var n=this;this.O=Tu,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=n;return function(g){var m=this;g===void 0&&(g=s);for(var v=arguments.length,x=Array(v>1?v-1:0),C=1;C<v;C++)x[C-1]=arguments[C];return u.produce(g,function(S){var j;return(j=a).call.apply(j,[m,S].concat(x))})}}var l;if(typeof a!="function"&&de(6),i!==void 0&&typeof i!="function"&&de(7),nt(o)){var c=wu(n),h=un(n,o,void 0),f=!0;try{l=a(h),f=!1}finally{f?uo(c):Va(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return Ea(c,i),Na(g,c)},function(g){throw uo(c),g}):(Ea(c,i),Na(l,c))}if(!o||typeof o!="object"){if((l=a(o))===void 0&&(l=o),l===rs&&(l=void 0),n.D&&Qi(l,!0),i){var d=[],b=[];Ze("Patches").M(o,l,d,b),i(d,b)}return l}de(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];return n.produceWithPatches(l,function(d){return o.apply(void 0,[d].concat(h))})};var i,s,u=n.produce(o,a,function(l,c){i=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,i,s]}):[u,i,s]},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){nt(r)||de(8),Yt(r)&&(r=Bh(r));var n=wu(this),o=un(this,r,void 0);return o[ee].C=!0,Va(n),o},e.finishDraft=function(r,n){var o=r&&r[ee];process.env.NODE_ENV!=="production"&&(o&&o.C||de(9),o.I&&de(10));var a=o.A;return Ea(a,n),Na(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Tu&&de(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=Ze("Patches").$;return Yt(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},t}(),_e=new Gh,Yh=_e.produce,ju=_e.produceWithPatches.bind(_e);_e.setAutoFreeze.bind(_e);_e.setUseProxies.bind(_e);var Au=_e.applyPatches.bind(_e);_e.createDraft.bind(_e);_e.finishDraft.bind(_e);var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xh(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 o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function Kh(){this.__data__=[],this.size=0}var Jh=Kh;function Zh(t,e){return t===e||t!==t&&e!==e}var Dc=Zh,Qh=Dc;function em(t,e){for(var r=t.length;r--;)if(Qh(t[r][0],e))return r;return-1}var qo=em,tm=qo,rm=Array.prototype,nm=rm.splice;function om(t){var e=this.__data__,r=tm(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():nm.call(e,r,1),--this.size,!0}var am=om,im=qo;function sm(t){var e=this.__data__,r=im(e,t);return r<0?void 0:e[r][1]}var um=sm,lm=qo;function cm(t){return lm(this.__data__,t)>-1}var dm=cm,fm=qo;function pm(t,e){var r=this.__data__,n=fm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var hm=pm,mm=Jh,bm=am,gm=um,vm=dm,ym=hm;function _r(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])}}_r.prototype.clear=mm;_r.prototype.delete=bm;_r.prototype.get=gm;_r.prototype.has=vm;_r.prototype.set=ym;var Uo=_r,xm=Uo;function wm(){this.__data__=new xm,this.size=0}var Sm=wm;function Cm(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Em=Cm;function Nm(t){return this.__data__.get(t)}var Tm=Nm;function jm(t){return this.__data__.has(t)}var Am=jm,Om=typeof F=="object"&&F&&F.Object===Object&&F,Mc=Om,km=Mc,Pm=typeof self=="object"&&self&&self.Object===Object&&self,_m=km||Pm||Function("return this")(),at=_m,Rm=at,Im=Rm.Symbol,Vo=Im,Ou=Vo,Lc=Object.prototype,Dm=Lc.hasOwnProperty,Mm=Lc.toString,Yr=Ou?Ou.toStringTag:void 0;function Lm(t){var e=Dm.call(t,Yr),r=t[Yr];try{t[Yr]=void 0;var n=!0}catch{}var o=Mm.call(t);return n&&(e?t[Yr]=r:delete t[Yr]),o}var $m=Lm,Bm=Object.prototype,zm=Bm.toString;function Hm(t){return zm.call(t)}var Fm=Hm,ku=Vo,qm=$m,Um=Fm,Vm="[object Null]",Wm="[object Undefined]",Pu=ku?ku.toStringTag:void 0;function Gm(t){return t==null?t===void 0?Wm:Vm:Pu&&Pu in Object(t)?qm(t):Um(t)}var Wo=Gm;function Ym(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var $c=Ym,Xm=Wo,Km=$c,Jm="[object AsyncFunction]",Zm="[object Function]",Qm="[object GeneratorFunction]",eb="[object Proxy]";function tb(t){if(!Km(t))return!1;var e=Xm(t);return e==Zm||e==Qm||e==Jm||e==eb}var os=tb;const rb=Fo(os);var nb=at,ob=nb["__core-js_shared__"],ab=ob,Aa=ab,_u=function(){var t=/[^.]+$/.exec(Aa&&Aa.keys&&Aa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ib(t){return!!_u&&_u in t}var sb=ib,ub=Function.prototype,lb=ub.toString;function cb(t){if(t!=null){try{return lb.call(t)}catch{}try{return t+""}catch{}}return""}var Bc=cb,db=os,fb=sb,pb=$c,hb=Bc,mb=/[\\^$.*+?()[\]{}|]/g,bb=/^\[object .+?Constructor\]$/,gb=Function.prototype,vb=Object.prototype,yb=gb.toString,xb=vb.hasOwnProperty,wb=RegExp("^"+yb.call(xb).replace(mb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Sb(t){if(!pb(t)||fb(t))return!1;var e=db(t)?wb:bb;return e.test(hb(t))}var Cb=Sb;function Eb(t,e){return t==null?void 0:t[e]}var Nb=Eb,Tb=Cb,jb=Nb;function Ab(t,e){var r=jb(t,e);return Tb(r)?r:void 0}var er=Ab,Ob=er,kb=at,Pb=Ob(kb,"Map"),as=Pb,_b=er,Rb=_b(Object,"create"),Go=Rb,Ru=Go;function Ib(){this.__data__=Ru?Ru(null):{},this.size=0}var Db=Ib;function Mb(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Lb=Mb,$b=Go,Bb="__lodash_hash_undefined__",zb=Object.prototype,Hb=zb.hasOwnProperty;function Fb(t){var e=this.__data__;if($b){var r=e[t];return r===Bb?void 0:r}return Hb.call(e,t)?e[t]:void 0}var qb=Fb,Ub=Go,Vb=Object.prototype,Wb=Vb.hasOwnProperty;function Gb(t){var e=this.__data__;return Ub?e[t]!==void 0:Wb.call(e,t)}var Yb=Gb,Xb=Go,Kb="__lodash_hash_undefined__";function Jb(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Xb&&e===void 0?Kb:e,this}var Zb=Jb,Qb=Db,eg=Lb,tg=qb,rg=Yb,ng=Zb;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=Qb;Rr.prototype.delete=eg;Rr.prototype.get=tg;Rr.prototype.has=rg;Rr.prototype.set=ng;var og=Rr,Iu=og,ag=Uo,ig=as;function sg(){this.size=0,this.__data__={hash:new Iu,map:new(ig||ag),string:new Iu}}var ug=sg;function lg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var cg=lg,dg=cg;function fg(t,e){var r=t.__data__;return dg(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Yo=fg,pg=Yo;function hg(t){var e=pg(this,t).delete(t);return this.size-=e?1:0,e}var mg=hg,bg=Yo;function gg(t){return bg(this,t).get(t)}var vg=gg,yg=Yo;function xg(t){return yg(this,t).has(t)}var wg=xg,Sg=Yo;function Cg(t,e){var r=Sg(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Eg=Cg,Ng=ug,Tg=mg,jg=vg,Ag=wg,Og=Eg;function Ir(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])}}Ir.prototype.clear=Ng;Ir.prototype.delete=Tg;Ir.prototype.get=jg;Ir.prototype.has=Ag;Ir.prototype.set=Og;var zc=Ir,kg=Uo,Pg=as,_g=zc,Rg=200;function Ig(t,e){var r=this.__data__;if(r instanceof kg){var n=r.__data__;if(!Pg||n.length<Rg-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new _g(n)}return r.set(t,e),this.size=r.size,this}var Dg=Ig,Mg=Uo,Lg=Sm,$g=Em,Bg=Tm,zg=Am,Hg=Dg;function Dr(t){var e=this.__data__=new Mg(t);this.size=e.size}Dr.prototype.clear=Lg;Dr.prototype.delete=$g;Dr.prototype.get=Bg;Dr.prototype.has=zg;Dr.prototype.set=Hg;var Fg=Dr,qg="__lodash_hash_undefined__";function Ug(t){return this.__data__.set(t,qg),this}var Vg=Ug;function Wg(t){return this.__data__.has(t)}var Gg=Wg,Yg=zc,Xg=Vg,Kg=Gg;function fo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Yg;++e<r;)this.add(t[e])}fo.prototype.add=fo.prototype.push=Xg;fo.prototype.has=Kg;var Jg=fo;function Zg(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 Qg=Zg;function e1(t,e){return t.has(e)}var t1=e1,r1=Jg,n1=Qg,o1=t1,a1=1,i1=2;function s1(t,e,r,n,o,a){var i=r&a1,s=t.length,u=e.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(t),c=a.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&i1?new r1:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var b=t[h],g=e[h];if(n)var m=i?n(g,b,h,e,t,a):n(b,g,h,t,e,a);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!n1(e,function(v,x){if(!o1(d,x)&&(b===v||o(b,v,r,n,a)))return d.push(x)})){f=!1;break}}else if(!(b===g||o(b,g,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}var Hc=s1,u1=at,l1=u1.Uint8Array,c1=l1;function d1(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var f1=d1;function p1(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var h1=p1,Du=Vo,Mu=c1,m1=Dc,b1=Hc,g1=f1,v1=h1,y1=1,x1=2,w1="[object Boolean]",S1="[object Date]",C1="[object Error]",E1="[object Map]",N1="[object Number]",T1="[object RegExp]",j1="[object Set]",A1="[object String]",O1="[object Symbol]",k1="[object ArrayBuffer]",P1="[object DataView]",Lu=Du?Du.prototype:void 0,Oa=Lu?Lu.valueOf:void 0;function _1(t,e,r,n,o,a,i){switch(r){case P1:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case k1:return!(t.byteLength!=e.byteLength||!a(new Mu(t),new Mu(e)));case w1:case S1:case N1:return m1(+t,+e);case C1:return t.name==e.name&&t.message==e.message;case T1:case A1:return t==e+"";case E1:var s=g1;case j1:var u=n&y1;if(s||(s=v1),t.size!=e.size&&!u)return!1;var l=i.get(t);if(l)return l==e;n|=x1,i.set(t,e);var c=b1(s(t),s(e),n,o,a,i);return i.delete(t),c;case O1:if(Oa)return Oa.call(t)==Oa.call(e)}return!1}var R1=_1;function I1(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var D1=I1,M1=Array.isArray,is=M1,L1=D1,$1=is;function B1(t,e,r){var n=e(t);return $1(t)?n:L1(n,r(t))}var z1=B1;function H1(t,e){for(var r=-1,n=t==null?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}var F1=H1;function q1(){return[]}var U1=q1,V1=F1,W1=U1,G1=Object.prototype,Y1=G1.propertyIsEnumerable,$u=Object.getOwnPropertySymbols,X1=$u?function(t){return t==null?[]:(t=Object(t),V1($u(t),function(e){return Y1.call(t,e)}))}:W1,K1=X1;function J1(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Z1=J1;function Q1(t){return t!=null&&typeof t=="object"}var Xo=Q1,ev=Wo,tv=Xo,rv="[object Arguments]";function nv(t){return tv(t)&&ev(t)==rv}var ov=nv,Bu=ov,av=Xo,Fc=Object.prototype,iv=Fc.hasOwnProperty,sv=Fc.propertyIsEnumerable,uv=Bu(function(){return arguments}())?Bu:function(t){return av(t)&&iv.call(t,"callee")&&!sv.call(t,"callee")},lv=uv,po={exports:{}};function cv(){return!1}var dv=cv;po.exports;(function(t,e){var r=at,n=dv,o=e&&!e.nodeType&&e,a=o&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(po,po.exports);var qc=po.exports,fv=9007199254740991,pv=/^(?:0|[1-9]\d*)$/;function hv(t,e){var r=typeof t;return e=e??fv,!!e&&(r=="number"||r!="symbol"&&pv.test(t))&&t>-1&&t%1==0&&t<e}var mv=hv,bv=9007199254740991;function gv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=bv}var Uc=gv,vv=Wo,yv=Uc,xv=Xo,wv="[object Arguments]",Sv="[object Array]",Cv="[object Boolean]",Ev="[object Date]",Nv="[object Error]",Tv="[object Function]",jv="[object Map]",Av="[object Number]",Ov="[object Object]",kv="[object RegExp]",Pv="[object Set]",_v="[object String]",Rv="[object WeakMap]",Iv="[object ArrayBuffer]",Dv="[object DataView]",Mv="[object Float32Array]",Lv="[object Float64Array]",$v="[object Int8Array]",Bv="[object Int16Array]",zv="[object Int32Array]",Hv="[object Uint8Array]",Fv="[object Uint8ClampedArray]",qv="[object Uint16Array]",Uv="[object Uint32Array]",se={};se[Mv]=se[Lv]=se[$v]=se[Bv]=se[zv]=se[Hv]=se[Fv]=se[qv]=se[Uv]=!0;se[wv]=se[Sv]=se[Iv]=se[Cv]=se[Dv]=se[Ev]=se[Nv]=se[Tv]=se[jv]=se[Av]=se[Ov]=se[kv]=se[Pv]=se[_v]=se[Rv]=!1;function Vv(t){return xv(t)&&yv(t.length)&&!!se[vv(t)]}var Wv=Vv;function Gv(t){return function(e){return t(e)}}var Yv=Gv,ho={exports:{}};ho.exports;(function(t,e){var r=Mc,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s})(ho,ho.exports);var ss=ho.exports,Xv=Wv,Kv=Yv,zu=ss,Hu=zu&&zu.isTypedArray,Jv=Hu?Kv(Hu):Xv,Vc=Jv,Zv=Z1,Qv=lv,ey=is,ty=qc,ry=mv,ny=Vc,oy=Object.prototype,ay=oy.hasOwnProperty;function iy(t,e){var r=ey(t),n=!r&&Qv(t),o=!r&&!n&&ty(t),a=!r&&!n&&!o&&ny(t),i=r||n||o||a,s=i?Zv(t.length,String):[],u=s.length;for(var l in t)(e||ay.call(t,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ry(l,u)))&&s.push(l);return s}var sy=iy,uy=Object.prototype;function ly(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||uy;return t===r}var cy=ly;function dy(t,e){return function(r){return t(e(r))}}var fy=dy,py=fy,hy=py(Object.keys,Object),my=hy,by=cy,gy=my,vy=Object.prototype,yy=vy.hasOwnProperty;function xy(t){if(!by(t))return gy(t);var e=[];for(var r in Object(t))yy.call(t,r)&&r!="constructor"&&e.push(r);return e}var wy=xy,Sy=os,Cy=Uc;function Ey(t){return t!=null&&Cy(t.length)&&!Sy(t)}var Ny=Ey,Ty=sy,jy=wy,Ay=Ny;function Oy(t){return Ay(t)?Ty(t):jy(t)}var ky=Oy,Py=z1,_y=K1,Ry=ky;function Iy(t){return Py(t,Ry,_y)}var Dy=Iy,Fu=Dy,My=1,Ly=Object.prototype,$y=Ly.hasOwnProperty;function By(t,e,r,n,o,a){var i=r&My,s=Fu(t),u=s.length,l=Fu(e),c=l.length;if(u!=c&&!i)return!1;for(var h=u;h--;){var f=s[h];if(!(i?f in e:$y.call(e,f)))return!1}var d=a.get(t),b=a.get(e);if(d&&b)return d==e&&b==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=i;++h<u;){f=s[h];var v=t[f],x=e[f];if(n)var C=i?n(x,v,f,e,t,a):n(v,x,f,t,e,a);if(!(C===void 0?v===x||o(v,x,r,n,a):C)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var S=t.constructor,j=e.constructor;S!=j&&"constructor"in t&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof j=="function"&&j instanceof j)&&(g=!1)}return a.delete(t),a.delete(e),g}var zy=By,Hy=er,Fy=at,qy=Hy(Fy,"DataView"),Uy=qy,Vy=er,Wy=at,Gy=Vy(Wy,"Promise"),Yy=Gy,Xy=er,Ky=at,Jy=Xy(Ky,"Set"),Zy=Jy,Qy=er,ex=at,tx=Qy(ex,"WeakMap"),rx=tx,Ya=Uy,Xa=as,Ka=Yy,Ja=Zy,Za=rx,Wc=Wo,Mr=Bc,qu="[object Map]",nx="[object Object]",Uu="[object Promise]",Vu="[object Set]",Wu="[object WeakMap]",Gu="[object DataView]",ox=Mr(Ya),ax=Mr(Xa),ix=Mr(Ka),sx=Mr(Ja),ux=Mr(Za),Wt=Wc;(Ya&&Wt(new Ya(new ArrayBuffer(1)))!=Gu||Xa&&Wt(new Xa)!=qu||Ka&&Wt(Ka.resolve())!=Uu||Ja&&Wt(new Ja)!=Vu||Za&&Wt(new Za)!=Wu)&&(Wt=function(t){var e=Wc(t),r=e==nx?t.constructor:void 0,n=r?Mr(r):"";if(n)switch(n){case ox:return Gu;case ax:return qu;case ix:return Uu;case sx:return Vu;case ux:return Wu}return e});var lx=Wt,ka=Fg,cx=Hc,dx=R1,fx=zy,Yu=lx,Xu=is,Ku=qc,px=Vc,hx=1,Ju="[object Arguments]",Zu="[object Array]",Bn="[object Object]",mx=Object.prototype,Qu=mx.hasOwnProperty;function bx(t,e,r,n,o,a){var i=Xu(t),s=Xu(e),u=i?Zu:Yu(t),l=s?Zu:Yu(e);u=u==Ju?Bn:u,l=l==Ju?Bn:l;var c=u==Bn,h=l==Bn,f=u==l;if(f&&Ku(t)){if(!Ku(e))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new ka),i||px(t)?cx(t,e,r,n,o,a):dx(t,e,u,r,n,o,a);if(!(r&hx)){var d=c&&Qu.call(t,"__wrapped__"),b=h&&Qu.call(e,"__wrapped__");if(d||b){var g=d?t.value():t,m=b?e.value():e;return a||(a=new ka),o(g,m,r,n,a)}}return f?(a||(a=new ka),fx(t,e,r,n,o,a)):!1}var gx=bx,vx=gx,el=Xo;function Gc(t,e,r,n,o){return t===e?!0:t==null||e==null||!el(t)&&!el(e)?t!==t&&e!==e:vx(t,e,r,n,Gc,o)}var yx=Gc,xx=yx;function wx(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?xx(t,e,void 0,r):!!n}var Sx=wx;const Cx=Fo(Sx);var Ex=function(e,r,n,o){var a=n?n.call(o,e,r):void 0;if(a!==void 0)return!!a;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<i.length;l++){var c=i[l];if(!u(c))return!1;var h=e[c],f=r[c];if(a=n?n.call(o,h,f,c):void 0,a===!1||a===void 0&&h!==f)return!1}return!0};const Nx=Fo(Ex);let Tx=(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 jx=process.env.NODE_ENV==="production",Pa="Invariant failed";function ae(t,e){if(!t){if(jx)throw new Error(Pa);var r=typeof e=="function"?e():e,n=r?"".concat(Pa,": ").concat(r):Pa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var vt="ROOT",Yc="canvas-ROOT",Ax="Parent id cannot be ommited",Ox="Attempting to add a node with duplicated id",Xc="Node does not exist, it may have been removed",kx='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',Px="Node cannot be dropped into target parent",_x="Target parent rejects incoming node",Rx="Current parent rejects outgoing node",tl="Cannot move node that is not a direct child of a Canvas node",Ix="Cannot move node into a non-Canvas parent",rl="A top-level Node cannot be moved",Dx="Cannot move node into a descendant",mo="The component type specified for this node (%node_type%) does not exist in the resolver",Mx="The node has specified a canDrag() rule that prevents it from being dragged",Lx="Invalid parameter Node Id specified",$x="Attempting to delete a top-level Node",Bx=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
|
|
222
222
|
|
|
223
|
-
More info: https://craft.js.org/r/docs/api/editor#props`,
|
|
223
|
+
More info: https://craft.js.org/r/docs/api/editor#props`,zx=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
224
224
|
|
|
225
225
|
Available components in resolver: %availableComponents%
|
|
226
226
|
|
|
227
|
-
More info: https://craft.js.org/r/docs/api/editor#props`,
|
|
227
|
+
More info: https://craft.js.org/r/docs/api/editor#props`,Hx=`You can only use useEditor in the context of <Editor />.
|
|
228
228
|
|
|
229
|
-
Please only use useEditor in components that are children of the <Editor /> component.`,
|
|
229
|
+
Please only use useEditor in components that are children of the <Editor /> component.`,Fx=`You can only use useNode in the context of <Editor />.
|
|
230
230
|
|
|
231
|
-
Please only use useNode in components that are children of the <Editor /> component.`;function
|
|
232
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
233
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qc(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var fe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},qx=function(){function t(){Lr(this,t),ve(this,"timeline",[]),ve(this,"pointer",-1)}return $r(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 o=this.timeline[this.pointer],a=o.patches,i=o.inversePatches,s=o.timestamp;if(new Date().getTime()-s<n)return void(this.timeline[this.pointer]={timestamp:s,patches:[].concat(Ee(a),Ee(e)),inversePatches:[].concat(Ee(r),Ee(i))})}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],o=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(Ee(n.patches),Ee(e)),inversePatches:[].concat(Ee(r),Ee(o))}}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,ju(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,ju(e,this.timeline[this.pointer].patches)}}]),t}();function Ux(t,e,r,n){var o,a=w.useMemo(function(){return new qx},[]),i=w.useRef([]),s=w.useRef(function(){});typeof t=="function"?o=t:(o=t.methods,i.current=t.ignoreHistoryForActions,s.current=t.normalizeHistory);var u=w.useRef(n);u.current=n;var l=w.useRef(e),c=w.useMemo(function(){var m=s.current,v=i.current,x=u.current;return function(S,C){var j,k=r&&nl(r,function(){return S},a),R=Xc(Tu(S,function(E){var T,P;switch(C.type){case fe.UNDO:return a.undo(E);case fe.REDO:return a.redo(E);case fe.CLEAR:return a.clear(),Re({},E);case fe.IGNORE:case fe.MERGE:case fe.THROTTLE:var I,N=Kc(P=C.payload)||Jc(P)||is(P)||Zc(),O=N[0],A=N.slice(1);(I=o(E,k))[O].apply(I,Ee(A));break;default:(T=o(E,k))[C.type].apply(T,Ee(C.payload))}}),3),M=R[0],D=R[1],$=R[2];return j=M,x&&x(M,S,{type:C.type,params:C.payload,patches:D},k,function(E){var T=Tu(M,E);j=T[0],D=[].concat(Ee(D),Ee(T[1])),$=[].concat(Ee(T[2]),Ee($))}),[fe.UNDO,fe.REDO].includes(C.type)&&m&&(j=Gh(j,m)),[].concat(Ee(v),[fe.UNDO,fe.REDO,fe.IGNORE,fe.CLEAR]).includes(C.type)||(C.type===fe.THROTTLE?a.throttleAdd(D,$,C.config&&C.config.rate):C.type===fe.MERGE?a.merge(D,$):a.add(D,$)),j}},[a,o,r]),h=w.useCallback(function(){return l.current},[]),f=w.useMemo(function(){return new Vx(h)},[h]),d=w.useCallback(function(m){var v=c(l.current,m);l.current=v,f.notify()},[c,f]);w.useEffect(function(){f.notify()},[f]);var g=w.useMemo(function(){return r?nl(r,function(){return l.current},a):[]},[a,r]),b=w.useMemo(function(){var m=Object.keys(o(null,null)),v=i.current;return Re(Re({},m.reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:S,payload:j})},x},{})),{},{history:{undo:function(){return d({type:fe.UNDO})},redo:function(){return d({type:fe.REDO})},clear:function(){return d({type:fe.CLEAR})},throttle:function(x){return Re({},m.filter(function(S){return!v.includes(S)}).reduce(function(S,C){return S[C]=function(){for(var j=arguments.length,k=new Array(j),R=0;R<j;R++)k[R]=arguments[R];return d({type:fe.THROTTLE,payload:[C].concat(k),config:{rate:x}})},S},{}))},ignore:function(){return Re({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:fe.IGNORE,payload:[S].concat(j)})},x},{}))},merge:function(){return Re({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var C=arguments.length,j=new Array(C),k=0;k<C;k++)j[k]=arguments[k];return d({type:fe.MERGE,payload:[S].concat(j)})},x},{}))}}})},[d,o]);return w.useMemo(function(){return{getState:h,subscribe:function(m,v,x){return f.subscribe(m,v,x)},actions:b,query:g,history:a}},[b,g,f,h,a])}function nl(t,e,r){var n=Object.keys(t()).reduce(function(o,a){return Re(Re({},o),{},ve({},a,function(){var i;return(i=t(e()))[a].apply(i,arguments)}))},{});return Re(Re({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}zh(),Bh();var Vx=function(){function t(e){Lr(this,t),ve(this,"getState",void 0),ve(this,"subscribers",[]),this.getState=e}return $r(t,[{key:"subscribe",value:function(e,r,n){var o=this,a=new Wx(function(){return e(o.getState())},r,n);return this.subscribers.push(a),this.unsubscribe.bind(this,a)}},{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}(),Wx=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Lr(this,t),ve(this,"collected",void 0),ve(this,"collector",void 0),ve(this,"onChange",void 0),ve(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return $r(t,[{key:"collect",value:function(){try{var e=this.collector();Sx(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),un=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,o=e.top,a=e.left,i=e.bottom,s=e.right,u=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)},f={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:o,left:a,bottom:i,right:s,width:u,height:l,outerWidth:Math.round(u+h.left+h.right),outerHeight:Math.round(l+h.top+h.bottom),margin:h,padding:f,inFlow:t.parentElement&&!!function(d){var g=getComputedStyle(d);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 Gx(t,e){const{subscribe:r,getState:n,actions:o,query:a}=t,i=w.useRef(!0),s=w.useRef(null),u=w.useRef(e);u.current=e;const l=w.useCallback(f=>({...f,actions:o,query:a}),[o,a]);i.current&&e&&(s.current=e(n(),a),i.current=!1);const[c,h]=w.useState(l(s.current));return w.useEffect(()=>{let f;return u.current&&(f=r(d=>u.current(d,a),d=>{h(l(d))})),()=>{f&&f()}},[l,a,r]),c}var xr,ed=function(){return Nx(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Yx=function(){function t(){Lr(this,t),ve(this,"isEnabled",!0),ve(this,"elementIdMap",new WeakMap),ve(this,"registry",new Map)}return $r(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=ed();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,o=this.getByElement(e,r.name);if(o){if(Ex(r.required,o.required))return o;this.getByElement(e,r.name).disable()}var a=null,i=this.getConnectorId(e,r.name);return this.registry.set(i,{id:i,required:r.required,enable:function(){a&&a(),a=r.connector(e,r.required,r.options)},disable:function(){a&&a()},remove:function(){return n.remove(i)}}),this.isEnabled&&this.registry.get(i).enable(),this.registry.get(i)}},{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"})(xr||(xr={}));var td=function(){function t(e){Lr(this,t),ve(this,"options",void 0),ve(this,"registry",new Yx),ve(this,"subscribers",new Set),this.options=e}return $r(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(xr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(xr.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,o){var a=function(i){(function(s,u,l){s.craft||(s.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=s.craft&&s.craft.blockedEvents[u]||[],h=0;h<c.length;h++){var f=c[h];if(l!==f&&l.contains(f))return!0}return!1})(i,r,e)||(i.craft.stopPropagation=function(){i.craft.blockedEvents[r]||(i.craft.blockedEvents[r]=[]),i.craft.blockedEvents[r].push(e)},n(i))};return e.addEventListener(r,a,o),function(){return e.removeEventListener(r,a,o)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,o=!1,a=new Map;return{connectors:Object.entries(r).reduce(function(i,s){var u=Xc(s,2),l=u[0],c=u[1];return Re(Re({},i),{},ve({},l,function(h,f,d){var g=function(){var b=e.registry.register(h,{required:f,name:l,options:d,connector:c});return n.add(b.id),b};return a.set(e.registry.getConnectorId(h,l),g),o&&g(),h}))},{}),register:function(){o=!0,a.forEach(function(i){i()})},cleanup:function(){o=!1,n.forEach(function(i){return e.registry.remove(i)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],o=e.handlers(),a=new Proxy(o,{get:function(i,s,u){return s in o==0?Reflect.get(i,s,u):function(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];var d=o[s].apply(o,[l].concat(h));d&&n.push(d)}}});return r(a),function(){n.forEach(function(i){i()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Xx=function(t){(function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&Za(a,i)})(o,td);var e,r,n=(e=o,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 a,i=gr(e);if(r){var s=gr(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return function(u,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 Pa(u)}(this,a)});function o(a,i){var s;return Lr(this,o),ve(Pa(s=n.call(this,i)),"derived",void 0),ve(Pa(s),"unsubscribeParentHandlerListener",void 0),s.derived=a,s.options=i,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case xr.HandlerEnabled:return s.enable();case xr.HandlerDisabled:return s.disable();default:return}}),s}return $r(o,[{key:"inherit",value:function(a){return this.createProxyHandlers(this.derived,a)}},{key:"cleanup",value:function(){Qa(gr(o.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),o}();function ol(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Kx(t,e){const r=t.ref;return oe(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"),w.cloneElement(t,r?{ref:n=>{ol(r,n),ol(e,n)}}:{ref:e})}function Jx(t){return(e=null,...r)=>{if(!w.isValidElement(e)){if(!e)return;const o=e;return o&&t(o,...r),o}const n=e;return function(o){if(typeof o.type!="string")throw new Error}(n),Kx(n,t)}}function rd(t){return Object.keys(t).reduce((e,r)=>(e[r]=Jx((...n)=>t[r](...n)),e),{})}const Zx=({style:t,className:e,parentDom:r})=>{const n=w.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?Li.createPortal(n,r.ownerDocument.body):n};var It=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,o=e.doc;n&&(r+=" Please use ".concat(n," instead.")),o&&(r+="(".concat(o,")")),console.warn(r)},nd=function(){return typeof window<"u"},Qx=function(){return nd()&&/Linux/i.test(window.navigator.userAgent)},e2=function(){return nd()&&/Chrome/i.test(window.navigator.userAgent)},t2=Qt;(function(){try{var t=t2(Object,"defineProperty");return t({},"",{}),t}catch{}})();var mo={exports:{}};mo.exports;(function(t,e){var r=ot,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var h=l.length,f=s?s(h):new l.constructor(h);return l.copy(f),f}t.exports=u})(mo,mo.exports);mo.exports;var al=Uo,il=al?al.prototype:void 0;il&&il.valueOf;var sl=as;sl&&sl.isMap;var ul=as;ul&&ul.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const od=w.createContext(null),ad=({id:t,related:e=!1,children:r})=>w.createElement(od.Provider,{value:{id:t,related:e}},r);function ll(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function se(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ll(Object(r),!0).forEach(function(n){be(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ll(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ti(t){return ti=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},ti(t)}function Xo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r2(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,ud(n.key),n)}}function Ko(t,e,r){return e&&r2(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function be(t,e,r){return(e=ud(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ss(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&&ri(t,e)}function go(t){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},go(t)}function ri(t,e){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ri(t,e)}function us(t,e){if(t==null)return{};var r,n,o=function(i,s){if(i==null)return{};var u,l,c={},h=Object.keys(i);for(l=0;l<h.length;l++)s.indexOf(u=h[l])>=0||(c[u]=i[u]);return c}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e.indexOf(r=a[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Qr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ls(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=go(t);if(e){var o=go(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(a,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qr(a)}(this,r)}}function id(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n!==0)for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||sd(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
234
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
235
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function sd(t,e){if(t){if(typeof t=="string")return ni(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)?ni(t,e):void 0}}function ni(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 ud(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const cs=w.createContext(null);var ld=w.createContext(null),cd=function(){return w.useContext(ld)};function er(t){var e=cd(),r=w.useContext(cs);oe(r,zx);var n=Gx(r,t),o=w.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);w.useEffect(function(){return o.register(),function(){o.cleanup()}},[o]);var a=w.useMemo(function(){return o&&rd(o.connectors)},[o]);return se(se({},n),{},{connectors:a,inContext:!!r,store:r})}var n2=["actions","query","connectors"];function Jo(t){var e=w.useContext(od);oe(e,Hx);var r=e.id,n=e.related,o=er(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),a=o.actions,i=o.connectors,s=us(o,n2),u=w.useMemo(function(){return rd({connect:function(c){return i.connect(c,r)},drag:function(c){return i.drag(c,r)}})},[i,r]),l=w.useMemo(function(){return{setProp:function(c,h){h?a.history.throttle(h).setProp(r,c):a.setProp(r,c)},setCustom:function(c,h){h?a.history.throttle(h).setCustom(r,c):a.setCustom(r,c)},setHidden:function(c){return a.setHidden(r,c)}}},[a,r]);return se(se({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var o2=["id","related","actions","inNodeContext","connectors"];function ne(t){var e=Jo(t),r=e.id,n=e.related,o=e.actions,a=e.inNodeContext,i=e.connectors;return se(se({},us(e,o2)),{},{actions:o,id:r,related:n,setProp:function(s,u){return It("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:a,connectors:i})}const a2=({render:t})=>{const{connectors:{connect:e,drag:r}}=ne();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},i2=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=Jo(o=>({type:o.data.type,props:o.data.props,nodes:o.data.nodes,hydrationTimestamp:o._hydrationTimestamp}));return w.useMemo(()=>{let o=e.children;r&&r.length>0&&(o=w.createElement(w.Fragment,null,r.map(i=>w.createElement(ds,{id:i,key:i}))));const a=w.createElement(t,e,o);return typeof t=="string"?w.createElement(a2,{render:a}):a},[t,e,n,r])},s2=({render:t})=>{const{hidden:e}=Jo(n=>({hidden:n.data.hidden})),{onRender:r}=er(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(i2,null)})},ds=({id:t,render:e})=>w.createElement(ad,{id:t},w.createElement(s2,{render:e})),oi={is:"div",canvas:!1,custom:{},hidden:!1},u2={is:"type",canvas:"isCanvas"};function Pt({id:t,children:e,...r}){const{is:n}={...oi,...r},{query:o,actions:a}=er(),{id:i,inNodeContext:s}=Jo(),[u]=w.useState(()=>{oe(!!t,Ox);const l=o.node(i).get();if(s){const c=l.data.linkedNodes[t]?o.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const h=w.createElement(Pt,r,e),f=o.parseReactElement(h).toNodeTree();return a.history.ignore().addLinkedNodeFromTree(f,i,t),f.rootNodeId}return null});return u?w.createElement(ds,{id:u}):null}const dd=()=>It("<Canvas />",{suggest:"<Element canvas={true} />"});function ai({...t}){return w.useEffect(()=>dd(),[]),w.createElement(Pt,{...t,canvas:!0})}const l2=()=>{const{timestamp:t}=er(e=>({timestamp:e.nodes[bt]&&e.nodes[bt]._hydrationTimestamp}));return t?w.createElement(ds,{id:bt,key:t}):null},fs=({children:t,json:e,data:r})=>{const{actions:n,query:o}=er();e&&It("<Frame json={...} />",{suggest:"<Frame data={...} />"});const a=w.useRef(!1);if(!a.current){const i=r||e;if(i)n.history.ignore().deserialize(i);else if(t){const s=w.Children.only(t),u=o.parseReactElement(s).toNodeTree((l,c)=>(c===s&&(l.id=bt),l));n.history.ignore().addNodeTree(u)}a.current=!0}return w.createElement(l2,null)};var cl;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(cl||(cl={}));const _a=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:a,...i}=t;return i};function at(t){const{connectors:e,actions:r,query:n,store:o,...a}=er(t),i=_a(r);return{connectors:e,actions:w.useMemo(()=>({...i,history:{...i.history,ignore:(...s)=>_a(i.history.ignore(...s)),throttle:(...s)=>_a(i.history.throttle(...s))}}),[i]),query:n,store:o,...a}}var fd=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=id(r,2),o=n[0],a=n[1];return se(se({},e),{},be({},o,a))},{})},mt=function(t,e,r){var n=Array.isArray(e)?e:[e],o=se({existOnly:!1,idOnly:!1},r||{}),a=n.filter(function(i){return!!i}).map(function(i){return typeof i=="string"?{node:t[i],exists:!!t[i]}:ti(i)!=="object"||o.idOnly?{node:null,exists:!1}:{node:i,exists:!!t[i.id]}});return o.existOnly&&oe(a.filter(function(i){return!i.exists}).length===0,Yc),a},c2=["history"],lr=null,bo=function(t,e){if(typeof e=="string")return e;var r,n=function(o,a){var i=function(s){if(lr&&lr.resolver===s)return lr.reversed;lr={resolver:s,reversed:new Map};for(var u=0,l=Object.entries(s);u<l.length;u++){var c=id(l[u],2);lr.reversed.set(c[1],c[0])}return lr.reversed}(o).get(a);return i!==void 0?i:null}(t,e);return oe(n,ho.replace("%node_type%",(r=e).name||r.displayName)),n};const d2=(t,e)=>typeof t=="string"?t:{resolvedName:bo(e,t)},ii=(t,e)=>{let{type:r,isCanvas:n,props:o}=t;return o=Object.keys(o).reduce((a,i)=>{const s=o[i];return s==null||typeof s=="function"||(a[i]=i==="children"&&typeof s!="string"?w.Children.map(s,u=>typeof u=="string"?u:ii(u,e)):typeof s.type=="function"?ii(s,e):s),a},{}),{type:d2(r,e),isCanvas:!!n,props:o}},f2=(t,e)=>{const{type:r,props:n,isCanvas:o,name:a,...i}=t;return{...ii({type:r,isCanvas:o,props:n},e),...i}};function si(t,e){oe(typeof e=="string",Mx);var r=t.nodes[e],n=function(o){return si(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===bt},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 It("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 o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[i];return l?(s.push(i),l.data.parent&&(o||!o&&u===0)&&(s=a(l.data.parent,s,u+1)),s):s}(r.data.parent)},descendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=arguments.length>1?arguments[1]:void 0;return function i(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(o||!o&&l===0)&&t.nodes[s]&&(a!=="childNodes"&&n(s).linkedNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)}),a!=="linkedNodes"&&n(s).childNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)})),u}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(o){try{var a=r;return oe(!this.isTopLevelNode(),tl),oe(si(t,a.data.parent).isCanvas(),el),oe(a.rules.canDrag(a,n),Dx),!0}catch(i){return o&&o(i),!1}},isDroppable:function(o,a){var i=mt(t.nodes,o),s=r;try{oe(this.isCanvas(),Rx),oe(s.rules.canMoveIn(i.map(function(l){return l.node}),s,n),Px);var u={};return i.forEach(function(l){var c=l.node,h=l.exists;if(oe(c.rules.canDrop(s,c,n),kx),h){oe(!n(c.id).isTopLevelNode(),tl);var f=n(c.id).descendants(!0);oe(!f.includes(s.id)&&s.id!==c.id,Ix);var d=c.data.parent&&t.nodes[c.data.parent];oe(d.data.isCanvas,el),oe(d||!d&&!t.nodes[c.id],Ax),d.id!==s.id&&(u[d.id]||(u[d.id]=[]),u[d.id].push(c))}}),Object.keys(u).forEach(function(l){var c=t.nodes[l];oe(c.rules.canMoveOut(u[l],c,n),_x)}),!0}catch(l){return a&&a(l),!1}},toSerializedNode:function(){return f2(r.data,t.options.resolver)},toNodeTree:function(o){var a=[e].concat(ln(this.descendants(!0,o))).reduce(function(i,s){return i[s]=n(s).get(),i},{});return{rootNodeId:e,nodes:a}},decendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return It("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(o)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function pd(t,e,r,n){for(var o={parent:t,index:0,where:"before"},a=0,i=0,s=0,u=0,l=0,c=0,h=0,f=e.length;h<f;h++){var d=e[h];if(c=d.top+d.outerHeight,u=d.left+d.outerWidth/2,l=d.top+d.outerHeight/2,!(i&&d.left>i||s&&l>=s||a&&d.left+d.outerWidth<a))if(o.index=h,d.inFlow){if(n<l){o.where="before";break}o.where="after"}else n<c&&(s=c),r<u?(i=u,o.where="before"):(a=u,o.where="after")}return o}var Bn=function(t){return typeof t=="string"?t:t.name};function dl(t,e){var r=t.data.type,n={id:t.id||ed(),_hydrationTimestamp:Date.now(),data:se({type:r,name:Bn(r),displayName:Bn(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===Pt||n.data.type===ai){var o=se(se({},oi),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys(oi).includes(u)?n.data[u2[u]||u]=o[u]:s[u]=n.data.props[u],s},{}),n.data.name=Bn(r=n.data.type),n.data.displayName=Bn(r),n.data.type===ai&&(n.data.isCanvas=!0,dd())}e&&e(n);var a=r.craft;if(a){if(n.data.displayName=a.displayName||a.name||n.data.displayName,n.data.props=se(se({},a.props||a.defaultProps||{}),n.data.props),n.data.custom=se(se({},a.custom||{}),n.data.custom),a.isCanvas!=null&&(n.data.isCanvas=a.isCanvas),a.rules&&Object.keys(a.rules).forEach(function(s){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(s)&&(n.rules[s]=a.rules[s])}),a.related){var i={id:n.id,related:!0};Object.keys(a.related).forEach(function(s){n.related[s]=function(u){return w.createElement(ad,i,w.createElement(a.related[s],u))}})}a.info&&(n.info=a.info)}return n}const ui=(t,e,r)=>{let{type:n,props:o}=t;const a=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?ai:u[s.resolvedName]:typeof s=="string"?s:null)(n,e);if(!a)return;o=Object.keys(o).reduce((s,u)=>{const l=o[u];return s[u]=l==null?null:typeof l=="object"&&l.resolvedName?ui(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:ui(c,e)):l,s},{});const i={...w.createElement(a,{...o})};return{...i,name:bo(e,i.type)}},p2=(t,e)=>{const{type:r,props:n,...o}=t;oe(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Bx.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:a,name:i,props:s}=ui(t,e),{parent:u,custom:l,displayName:c,isCanvas:h,nodes:f,hidden:d}=o;return{type:a,name:i,displayName:c||i,props:s,custom:l||{},isCanvas:!!h,hidden:!!d,parent:u,linkedNodes:o.linkedNodes||o._childCanvas||{},nodes:f||[]}},h2=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:o})=>o),n={...t,data:{...t.data,nodes:r}};return e.reduce((o,a)=>{const i=a.nodes[a.rootNodeId];return{...o,...a.nodes,[i.id]:{...i,data:{...i.data,parent:t.id}}}},{[t.id]:n})},m2=(t,e)=>({rootNodeId:t.id,nodes:h2(t,e)});function hd(t){const e=t&&t.options,r=()=>hd(t);return{getDropPlaceholder:(n,o,a,i=s=>t.nodes[s.id].dom)=>{const s=t.nodes[o],u=r().node(s.id).isCanvas()?s:t.nodes[s.data.parent];if(!u)return;const l=u.data.nodes||[],c=pd(u,l?l.reduce((d,g)=>{const b=i(t.nodes[g]);if(b){const m={id:g,...un(b)};d.push(m)}return d},[]):[],a.x,a.y),h=l.length&&t.nodes[l[c.index]],f={placement:{...c,currentNode:h},error:null};return mt(t.nodes,n).forEach(({node:d,exists:g})=>{g&&r().node(d.id).isDraggable(b=>f.error=b)}),r().node(u.id).isDroppable(n,d=>f.error=d),f},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>si(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(o=>[o,this.node(o).toSerializedNode()]);return fd(n)},getEvent:n=>function(o,a){var i=o.events[a];return{contains:function(s){return i.has(s)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var s=this.all();return s[s.length-1]},all:function(){return Array.from(i)},size:function(){return this.all().length},at:function(s){return this.all()[s]},raw:function(){return i}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(o){let a=function(s,u){let l=s;return typeof l=="string"&&(l=w.createElement(w.Fragment,{},l)),dl({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=bo(t.options.resolver,s.data.type);s.data.displayName=s.data.displayName||l,s.data.name=l,o&&o(s,u)}),i=[];return n.props&&n.props.children&&(i=w.Children.toArray(n.props.children).reduce((s,u)=>(w.isValidElement(u)&&s.push(r().parseReactElement(u).toNodeTree(o)),s),[])),m2(a,i)}}),parseSerializedNode:n=>({toNode(o){const a=p2(n,t.options.resolver);oe(a.type,ho);const i=typeof o=="string"&&o;return i&&It("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...i?{id:i}:{},data:a}).toNode(!i&&o)}}),parseFreshNode:n=>({toNode:o=>dl(n,a=>{a.data.parent===Gc&&(a.data.parent=bt);const i=bo(t.options.resolver,a.data.type);oe(i!==null,ho),a.data.displayName=a.data.displayName||i,a.data.name=i,o&&o(a)})}),createNode(n,o){It(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const a=this.parseReactElement(n).toNodeTree(),i=a.nodes[a.rootNodeId];return o&&(o.id&&(i.id=o.id),o.data&&(i.data={...i.data,...o.data})),i},getState:()=>t}}var g2=function(t){ss(r,td);var e=ls(r);function r(){return Xo(this,r),e.apply(this,arguments)}return Ko(r,[{key:"handlers",value:function(){return{connect:function(n,o){},select:function(n,o){},hover:function(n,o){},drag:function(n,o){},drop:function(n,o){},create:function(n,o,a){}}}}]),r}();(function(t){ss(r,Xx);var e=ls(r);function r(){return Xo(this,r),e.apply(this,arguments)}return Ko(r)})();var fl=function(t){t.preventDefault()},li=function(){function t(e,r){Xo(this,t),be(this,"store",void 0),be(this,"dragTarget",void 0),be(this,"currentDropTargetId",void 0),be(this,"currentDropTargetCanvasAncestorId",void 0),be(this,"currentIndicator",null),be(this,"currentTargetId",void 0),be(this,"currentTargetChildDimensions",void 0),be(this,"dragError",void 0),be(this,"draggedNodes",void 0),be(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",fl,!1)}return Ko(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",fl,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(bt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return mt(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(o,a){var i=r.store.query.node(a).get().dom;return i&&o.push(se({id:a},un(i))),o},[])}},{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 o(a){var i=r.store.query.node(a).get();return i&&i.data.isCanvas?i:i.data.parent?o(i.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var o=this.getCanvasAncestor(e);if(o&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=o.id,o.data.parent&&this.isNearBorders(un(o.dom),r,n)&&!this.store.query.node(o.id).isLinkedNode()&&(o=this.store.query.node(o.data.parent).get()),o)){this.currentTargetChildDimensions=this.getChildDimensions(o),this.currentTargetId=o.id;var a=pd(o,this.currentTargetChildDimensions,r,n);if(this.isDiff(a)){var i=this.dragError;i||this.store.query.node(o.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){i=l});var s=o.data.nodes[a.index],u=s&&this.store.query.node(s).get();return this.currentIndicator={placement:se(se({},a),{},{currentNode:u}),error:i},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();be(li,"BORDER_OFFSET",10);var pl=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,o=r.height,a=e[0].cloneNode(!0);return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="".concat(n,"px"),a.style.height="".concat(o,"px"),a.style.pointerEvents="none",a.classList.add("drag-shadow"),document.body.appendChild(a),t.dataTransfer.setDragImage(a,0,0),a}var i=document.createElement("div");return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="100%",i.style.height="100%",i.style.pointerEvents="none",i.classList.add("drag-shadow-container"),e.forEach(function(s){var u=s.getBoundingClientRect(),l=u.width,c=u.height,h=u.top,f=u.left,d=s.cloneNode(!0);d.style.position="absolute",d.style.left="".concat(f,"px"),d.style.top="".concat(h,"px"),d.style.width="".concat(l,"px"),d.style.height="".concat(c,"px"),d.classList.add("drag-shadow"),i.appendChild(d)}),document.body.appendChild(i),t.dataTransfer.setDragImage(i,t.clientX,t.clientY),i},md=function(t){ss(r,g2);var e=ls(r);function r(){var n;Xo(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return be(Qr(n=e.call.apply(e,[this].concat(a))),"draggedElementShadow",void 0),be(Qr(n),"dragTarget",void 0),be(Qr(n),"positioner",null),be(Qr(n),"currentSelectedElementIds",[]),n}return Ko(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,o=this.options.store;return{connect:function(a,i){return o.actions.setDOM(i,a),n.reflect(function(s){s.select(a,i),s.hover(a,i),s.drop(a,i)})},select:function(a,i){var s=n.addCraftEventListener(a,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(i){var h=o.query,f=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||f.includes(i))&&(c=f.filter(function(d){var g=h.node(d).descendants(!0),b=h.node(d).ancestors(!0);return!g.includes(i)&&!b.includes(i)})),c.includes(i)||c.push(i)}o.actions.setNodeEvent("selected",c)}),u=n.addCraftEventListener(a,"click",function(l){l.craft.stopPropagation();var c=o.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),f=n.currentSelectedElementIds.includes(i),d=ln(c);h&&f?(d.splice(d.indexOf(i),1),o.actions.setNodeEvent("selected",d)):!h&&c.length>1&&o.actions.setNodeEvent("selected",d=[i]),n.currentSelectedElementIds=d});return function(){s(),u()}},hover:function(a,i){var s=n.addCraftEventListener(a,"mouseover",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",i)}),u=null;return n.options.removeHoverOnMouseleave&&(u=n.addCraftEventListener(a,"mouseleave",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",null)})),function(){s(),u&&u()}},drop:function(a,i){var s=n.addCraftEventListener(a,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(i,l.clientX,l.clientY);c&&o.actions.setIndicator(c)}}),u=n.addCraftEventListener(a,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){u(),s()}},drag:function(a,i){if(!o.query.node(i).isDraggable())return function(){};a.setAttribute("draggable","true");var s=n.addCraftEventListener(a,"dragstart",function(l){l.craft.stopPropagation();var c=o.query,h=o.actions,f=c.getEvent("selected").all(),d=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(i)||(f=d?[].concat(ln(f),[i]):[i],o.actions.setNodeEvent("selected",f)),h.setNodeEvent("dragged",f);var g=f.map(function(b){return c.node(b).get().dom});n.draggedElementShadow=pl(l,g,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new li(n.options.store,n.dragTarget)}),u=n.addCraftEventListener(a,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,h){c.type!=="new"&&o.actions.move(c.nodes,h.placement.parent.id,h.placement.index+(h.placement.where==="after"?1:0))})});return function(){a.setAttribute("draggable","false"),s(),u()}},create:function(a,i,s){a.setAttribute("draggable","true");var u=n.addCraftEventListener(a,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof i=="function"){var f=i();h=w.isValidElement(f)?o.query.parseReactElement(f).toNodeTree():f}else h=o.query.parseReactElement(i).toNodeTree();n.draggedElementShadow=pl(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new li(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(a,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(h,f){h.type!=="existing"&&(o.actions.addNodeTree(h.tree,f.placement.parent.id,f.placement.index+(f.placement.where==="after"?1:0)),s&&tg(s.onCreate)&&s.onCreate(h.tree))})});return function(){a.removeAttribute("draggable"),u(),l()}}}}},{key:"dropElement",value:function(n){var o=this.options.store;if(this.positioner){var a=this.draggedElementShadow,i=this.positioner.getIndicator();this.dragTarget&&i&&!i.error&&n(this.dragTarget,i),a&&(a.parentNode.removeChild(a),this.draggedElementShadow=null),this.dragTarget=null,o.actions.setIndicator(null),o.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function b2(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,o=0,a=0,i=0,s=0,u=t.where;return r?r.inFlow?(i=r.outerWidth,s=n,o=u==="before"?r.top:r.bottom,a=r.left):(i=n,s=r.outerHeight,o=r.top,a=u==="before"?r.left:r.left+r.outerWidth):e&&(o=e.top+e.padding.top,a=e.left+e.padding.left,i=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,s=n),{top:"".concat(o,"px"),left:"".concat(a,"px"),width:"".concat(i,"px"),height:"".concat(s,"px")}}be(md,"forceSingleDragShadow",e2()&&Qx());const v2=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=er(o=>({indicator:o.indicator,indicatorOptions:o.options.indicator,enabled:o.options.enabled})),n=cd();return w.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?w.createElement(Zx,{className:e.className,style:{...b2(t.placement,un(t.placement.parent.dom),t.placement.currentNode&&un(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},y2=({children:t})=>{const e=w.useContext(cs),r=w.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?w.createElement(ld.Provider,{value:r},w.createElement(v2,null),t):null},hl={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 md({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},x2={methods:function(t,e){return se(se({},function(r,n){var o=function(s,u,l){if(function f(d,g){var b=s.nodes[d];typeof b.data.type!="string"&&oe(r.options.resolver[b.data.name],ho.replace("%node_type%","".concat(b.data.type.name))),r.nodes[d]=se(se({},b),{},{data:se(se({},b.data),{},{parent:g})}),b.data.nodes.length>0&&(delete r.nodes[d].data.props.children,b.data.nodes.forEach(function(m){return f(m,b.id)})),Object.values(b.data.linkedNodes).forEach(function(m){return f(m,b.id)})}(s.rootNodeId,u),u||s.rootNodeId!==bt){var c=a(u);if(l.type!=="child")c.data.linkedNodes[l.id]=s.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,s.rootNodeId):c.data.nodes.push(s.rootNodeId)}}},a=function(s){oe(s,jx);var u=r.nodes[s];return oe(u,Yc),u},i=function s(u){var l=r.nodes[u],c=r.nodes[l.data.parent];if(l.data.nodes&&ln(l.data.nodes).forEach(function(d){return s(d)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(d){return s(d)}),c.data.nodes.includes(u)){var h=c.data.nodes;h.splice(h.indexOf(u),1)}else{var f=Object.keys(c.data.linkedNodes).find(function(d){return c.data.linkedNodes[d]===d});f&&delete c.data.linkedNodes[f]}(function(d,g){Object.keys(d.events).forEach(function(b){var m=d.events[b];m&&m.has&&m.has(g)&&(d.events[b]=new Set(Array.from(m).filter(function(v){return g!==v})))})})(r,u),delete r.nodes[u]};return{addLinkedNodeFromTree:function(s,u,l){var c=a(u).data.linkedNodes[l];c&&i(c),o(s,u,{type:"linked",id:l})},add:function(s,u,l){var c=[s];Array.isArray(s)&&(It("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:be({},h.id,h),rootNodeId:h.id},u,{type:"child",index:l})})},addNodeTree:function(s,u,l){o(s,u,{type:"child",index:l})},delete:function(s){mt(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;oe(!n.node(l.id).isTopLevelNode(),Lx),i(l.id)})},deserialize:function(s){var u=typeof s=="string"?JSON.parse(s):s,l=Object.keys(u).map(function(c){var h=c;return c===Gc&&(h=bt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(fd(l))},move:function(s,u,l){var c=mt(r.nodes,s,{existOnly:!0}),h=r.nodes[u],f=new Set;c.forEach(function(d,g){var b=d.node,m=b.id,v=b.data.parent;n.node(u).isDroppable([m],function(C){throw new Error(C)}),r.options.onBeforeMoveEnd(b,h,r.nodes[v]);var x=r.nodes[v].data.nodes;f.add(x);var S=x.indexOf(m);x[S]="$$",h.data.nodes.splice(l+g,0,m),r.nodes[m].data.parent=u}),f.forEach(function(d){var g=d.length;ln(d).reverse().forEach(function(b,m){b==="$$"&&d.splice(g-1-m,1)})})},replaceNodes:function(s){this.clearEvents(),r.nodes=s},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(s){s(r.options)},setNodeEvent:function(s,u){if(r.events[s].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[s]=!1)}),r.events[s]=new Set,u){var l=mt(r.nodes,u,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(h){return h.node.id}));c.forEach(function(h){r.nodes[h].events[s]=!0}),r.events[s]=c}},setCustom:function(s,u){mt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.custom)})},setDOM:function(s,u){r.nodes[s]&&(r.nodes[s].dom=u)},setIndicator:function(s){s&&(!s.placement.parent.dom||s.placement.currentNode&&!s.placement.currentNode.dom)||(r.indicator=s)},setHidden:function(s,u){r.nodes[s].data.hidden=u},setProp:function(s,u){mt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.props)})},selectNode:function(s){if(s){var u=mt(r.nodes,s,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",u.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=us(this,c2);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)})})}},w2=(t,e)=>Ux(x2,{...hl,options:{...hl.options,...t}},hd,e),ci=({children:t,...e})=>{e.resolver!==void 0&&oe(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,$x);const r=y.useRef(e),n=w2(r.current,(o,a,i,s,u)=>{if(!i)return;const{patches:l,...c}=i;for(let h=0;h<l.length;h++){const{path:f}=l[h],d=f.length>2&&f[0]==="nodes"&&f[2]==="data";if([fe.IGNORE,fe.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||d){u(g=>{o.options.normalizeNodes&&o.options.normalizeNodes(g,a,c,s)});break}}});return y.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(o=>{o.enabled=e.enabled})},[n,e.enabled]),y.useEffect(()=>{n.subscribe(o=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?y.createElement(cs.Provider,{value:n},y.createElement(y2,null,t)):null},gd=w.createContext("desktop"),ps=({value:t,children:e})=>p.jsx(gd.Provider,{value:t,children:e}),Ce=()=>w.useContext(gd),Ie=["mobile","tablet","small","desktop"],gt=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Ie.indexOf(e);for(let o=n;o<Ie.length;o++){const a=Ie[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}for(let o=n-1;o>=0;o--){const a=Ie[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}return r};function ue(t,e,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function tr(t,e=[]){let r=[];function n(a,i){const s=y.createContext(i),u=r.length;r=[...r,i];const l=h=>{var v;const{scope:f,children:d,...g}=h,b=((v=f==null?void 0:f[t])==null?void 0:v[u])||s,m=y.useMemo(()=>g,Object.values(g));return p.jsx(b.Provider,{value:m,children:d})};l.displayName=a+"Provider";function c(h,f){var b;const d=((b=f==null?void 0:f[t])==null?void 0:b[u])||s,g=y.useContext(d);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,c]}const o=()=>{const a=r.map(i=>y.createContext(i));return function(s){const u=(s==null?void 0:s[t])||a;return y.useMemo(()=>({[`__scope${t}`]:{...s,[t]:u}}),[s,u])}};return o.scopeName=t,[n,S2(o,...e)]}function S2(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...s,...h}},{});return y.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}function C2(t){const e=E2(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(T2);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function E2(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=A2(o),s=j2(a,o.props);return o.type!==y.Fragment&&(s.ref=n?$o(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var N2=Symbol("radix.slottable");function T2(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===N2}function j2(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function A2(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var O2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=O2.reduce((t,e)=>{const r=C2(`Primitive.${e}`),n=y.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function k2(t,e){t&&pc.flushSync(()=>t.dispatchEvent(e))}function De(t){const e=y.useRef(t);return y.useEffect(()=>{e.current=t}),y.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function P2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t);y.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var _2="DismissableLayer",di="dismissableLayer.update",R2="dismissableLayer.pointerDownOutside",I2="dismissableLayer.focusOutside",ml,bd=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vd=y.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=t,l=y.useContext(bd),[c,h]=y.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=y.useState({}),g=we(e,R=>h(R)),b=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=b.indexOf(m),x=c?b.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,C=x>=v,j=L2(R=>{const M=R.target,D=[...l.branches].some($=>$.contains(M));!C||D||(o==null||o(R),i==null||i(R),R.defaultPrevented||s==null||s())},f),k=$2(R=>{const M=R.target;[...l.branches].some($=>$.contains(M))||(a==null||a(R),i==null||i(R),R.defaultPrevented||s==null||s())},f);return P2(R=>{x===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&s&&(R.preventDefault(),s()))},f),y.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ml=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),gl(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ml)}},[c,f,r,l]),y.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),gl())},[c,l]),y.useEffect(()=>{const R=()=>d({});return document.addEventListener(di,R),()=>document.removeEventListener(di,R)},[]),p.jsx(me.div,{...u,ref:g,style:{pointerEvents:S?C?"auto":"none":void 0,...t.style},onFocusCapture:ue(t.onFocusCapture,k.onFocusCapture),onBlurCapture:ue(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ue(t.onPointerDownCapture,j.onPointerDownCapture)})});vd.displayName=_2;var D2="DismissableLayerBranch",M2=y.forwardRef((t,e)=>{const r=y.useContext(bd),n=y.useRef(null),o=we(e,n);return y.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(me.div,{...t,ref:o})});M2.displayName=D2;function L2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t),n=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){yd(R2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=u,e.addEventListener("click",o.current,{once:!0})):u()}else e.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",a),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function $2(t,e=globalThis==null?void 0:globalThis.document){const r=De(t),n=y.useRef(!1);return y.useEffect(()=>{const o=a=>{a.target&&!n.current&&yd(I2,r,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function gl(){const t=new CustomEvent(di);document.dispatchEvent(t)}function yd(t,e,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?k2(o,a):o.dispatchEvent(a)}var Dt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},B2=y[" useId ".trim().toString()]||(()=>{}),z2=0;function xd(t){const[e,r]=y.useState(B2());return Dt(()=>{r(n=>n??String(z2++))},[t]),e?`radix-${e}`:""}const H2=["top","right","bottom","left"],Mt=Math.min,Oe=Math.max,vo=Math.round,zn=Math.floor,Ze=t=>({x:t,y:t}),F2={left:"right",right:"left",bottom:"top",top:"bottom"},q2={start:"end",end:"start"};function fi(t,e,r){return Oe(t,Mt(e,r))}function yt(t,e){return typeof t=="function"?t(e):t}function xt(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function hs(t){return t==="x"?"y":"x"}function ms(t){return t==="y"?"height":"width"}const U2=new Set(["top","bottom"]);function Ke(t){return U2.has(xt(t))?"y":"x"}function gs(t){return hs(Ke(t))}function V2(t,e,r){r===void 0&&(r=!1);const n=Br(t),o=gs(t),a=ms(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=yo(i)),[i,yo(i)]}function W2(t){const e=yo(t);return[pi(t),e,pi(e)]}function pi(t){return t.replace(/start|end/g,e=>q2[e])}const bl=["left","right"],vl=["right","left"],G2=["top","bottom"],Y2=["bottom","top"];function X2(t,e,r){switch(t){case"top":case"bottom":return r?e?vl:bl:e?bl:vl;case"left":case"right":return e?G2:Y2;default:return[]}}function K2(t,e,r,n){const o=Br(t);let a=X2(xt(t),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),e&&(a=a.concat(a.map(pi)))),a}function yo(t){return t.replace(/left|right|bottom|top/g,e=>F2[e])}function J2(t){return{top:0,right:0,bottom:0,left:0,...t}}function wd(t){return typeof t!="number"?J2(t):{top:t,right:t,bottom:t,left:t}}function xo(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function yl(t,e,r){let{reference:n,floating:o}=t;const a=Ke(e),i=gs(e),s=ms(i),u=xt(e),l=a==="y",c=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let d;switch(u){case"top":d={x:c,y:n.y-o.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-o.width,y:h};break;default:d={x:n.x,y:n.y}}switch(Br(e)){case"start":d[i]-=f*(r&&l?-1:1);break;case"end":d[i]+=f*(r&&l?-1:1);break}return d}const Z2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=yl(l,n,u),f=n,d={},g=0;for(let b=0;b<s.length;b++){const{name:m,fn:v}=s[b],{x,y:S,data:C,reset:j}=await v({x:c,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:d,rects:l,platform:i,elements:{reference:t,floating:e}});c=x??c,h=S??h,d={...d,[m]:{...d[m],...C}},j&&g<=50&&(g++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(l=j.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):j.rects),{x:c,y:h}=yl(l,f,u)),b=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:d}};async function cn(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:u}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=yt(e,t),g=wd(d),m=s[f?h==="floating"?"reference":"floating":h],v=xo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),C=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},j=xo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:u}):x);return{top:(v.top-j.top+g.top)/C.y,bottom:(j.bottom-v.bottom+g.bottom)/C.y,left:(v.left-j.left+g.left)/C.x,right:(j.right-v.right+g.right)/C.x}}const Q2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=e,{element:l,padding:c=0}=yt(t,e)||{};if(l==null)return{};const h=wd(c),f={x:r,y:n},d=gs(o),g=ms(d),b=await i.getDimensions(l),m=d==="y",v=m?"top":"left",x=m?"bottom":"right",S=m?"clientHeight":"clientWidth",C=a.reference[g]+a.reference[d]-f[d]-a.floating[g],j=f[d]-a.reference[d],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let R=k?k[S]:0;(!R||!await(i.isElement==null?void 0:i.isElement(k)))&&(R=s.floating[S]||a.floating[g]);const M=C/2-j/2,D=R/2-b[g]/2-1,$=Mt(h[v],D),E=Mt(h[x],D),T=$,P=R-b[g]-E,I=R/2-b[g]/2+M,N=fi(T,I,P),O=!u.arrow&&Br(o)!=null&&I!==N&&a.reference[g]/2-(I<T?$:E)-b[g]/2<0,A=O?I<T?I-T:I-P:0;return{[d]:f[d]+A,data:{[d]:N,centerOffset:I-N-A,...O&&{alignmentOffset:A}},reset:O}}}),ew=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...m}=yt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=xt(o),x=Ke(s),S=xt(s)===s,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),j=f||(S||!b?[yo(s)]:W2(s)),k=g!=="none";!f&&k&&j.push(...K2(s,b,g,C));const R=[s,...j],M=await cn(e,m),D=[];let $=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&D.push(M[v]),h){const I=V2(o,i,C);D.push(M[I[0]],M[I[1]])}if($=[...$,{placement:o,overflows:D}],!D.every(I=>I<=0)){var E,T;const I=(((E=a.flip)==null?void 0:E.index)||0)+1,N=R[I];if(N&&(!(h==="alignment"?x!==Ke(N):!1)||$.every(_=>Ke(_.placement)===x?_.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:N}};let O=(T=$.filter(A=>A.overflows[0]<=0).sort((A,_)=>A.overflows[1]-_.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(d){case"bestFit":{var P;const A=(P=$.filter(_=>{if(k){const L=Ke(_.placement);return L===x||L==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(L=>L>0).reduce((L,q)=>L+q,0)]).sort((_,L)=>_[1]-L[1])[0])==null?void 0:P[0];A&&(O=A);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function xl(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function wl(t){return H2.some(e=>t[e]>=0)}const tw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=yt(t,e);switch(n){case"referenceHidden":{const a=await cn(e,{...o,elementContext:"reference"}),i=xl(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:wl(i)}}}case"escaped":{const a=await cn(e,{...o,altBoundary:!0}),i=xl(a,r.floating);return{data:{escapedOffsets:i,escaped:wl(i)}}}default:return{}}}}},Sd=new Set(["left","top"]);async function rw(t,e){const{placement:r,platform:n,elements:o}=t,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=xt(r),s=Br(r),u=Ke(r)==="y",l=Sd.has(i)?-1:1,c=a&&u?-1:1,h=yt(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof g=="number"&&(d=s==="end"?g*-1:g),u?{x:d*c,y:f*l}:{x:f*l,y:d*c}}const nw=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=e,u=await rw(e,t);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},ow=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:m=>{let{x:v,y:x}=m;return{x:v,y:x}}},...u}=yt(t,e),l={x:r,y:n},c=await cn(e,u),h=Ke(xt(o)),f=hs(h);let d=l[f],g=l[h];if(a){const m=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=d+c[m],S=d-c[v];d=fi(x,d,S)}if(i){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",x=g+c[m],S=g-c[v];g=fi(x,g,S)}const b=s.fn({...e,[f]:d,[h]:g});return{...b,data:{x:b.x-r,y:b.y-n,enabled:{[f]:a,[h]:i}}}}}},aw=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=e,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=yt(t,e),c={x:r,y:n},h=Ke(o),f=hs(h);let d=c[f],g=c[h];const b=yt(s,e),m=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(u){const S=f==="y"?"height":"width",C=a.reference[f]-a.floating[S]+m.mainAxis,j=a.reference[f]+a.reference[S]-m.mainAxis;d<C?d=C:d>j&&(d=j)}if(l){var v,x;const S=f==="y"?"width":"height",C=Sd.has(xt(o)),j=a.reference[h]-a.floating[S]+(C&&((v=i.offset)==null?void 0:v[h])||0)+(C?0:m.crossAxis),k=a.reference[h]+a.reference[S]+(C?0:((x=i.offset)==null?void 0:x[h])||0)-(C?m.crossAxis:0);g<j?g=j:g>k&&(g=k)}return{[f]:d,[h]:g}}}},iw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:a,platform:i,elements:s}=e,{apply:u=()=>{},...l}=yt(t,e),c=await cn(e,l),h=xt(o),f=Br(o),d=Ke(o)==="y",{width:g,height:b}=a.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=h,m=f==="end"?"top":"bottom");const x=b-c.top-c.bottom,S=g-c.left-c.right,C=Mt(b-c[m],x),j=Mt(g-c[v],S),k=!e.middlewareData.shift;let R=C,M=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(M=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(R=x),k&&!f){const $=Oe(c.left,0),E=Oe(c.right,0),T=Oe(c.top,0),P=Oe(c.bottom,0);d?M=g-2*($!==0||E!==0?$+E:Oe(c.left,c.right)):R=b-2*(T!==0||P!==0?T+P:Oe(c.top,c.bottom))}await u({...e,availableWidth:M,availableHeight:R});const D=await i.getDimensions(s.floating);return g!==D.width||b!==D.height?{reset:{rects:!0}}:{}}}};function Zo(){return typeof window<"u"}function zr(t){return Cd(t)?(t.nodeName||"").toLowerCase():"#document"}function ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function it(t){var e;return(e=(Cd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Cd(t){return Zo()?t instanceof Node||t instanceof ke(t).Node:!1}function qe(t){return Zo()?t instanceof Element||t instanceof ke(t).Element:!1}function nt(t){return Zo()?t instanceof HTMLElement||t instanceof ke(t).HTMLElement:!1}function Sl(t){return!Zo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ke(t).ShadowRoot}const sw=new Set(["inline","contents"]);function En(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!sw.has(o)}const uw=new Set(["table","td","th"]);function lw(t){return uw.has(zr(t))}const cw=[":popover-open",":modal"];function Qo(t){return cw.some(e=>{try{return t.matches(e)}catch{return!1}})}const dw=["transform","translate","scale","rotate","perspective"],fw=["transform","translate","scale","rotate","perspective","filter"],pw=["paint","layout","strict","content"];function bs(t){const e=vs(),r=qe(t)?Ue(t):t;return dw.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)||fw.some(n=>(r.willChange||"").includes(n))||pw.some(n=>(r.contain||"").includes(n))}function hw(t){let e=Lt(t);for(;nt(e)&&!wr(e);){if(bs(e))return e;if(Qo(e))return null;e=Lt(e)}return null}function vs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mw=new Set(["html","body","#document"]);function wr(t){return mw.has(zr(t))}function Ue(t){return ke(t).getComputedStyle(t)}function ea(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(zr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sl(t)&&t.host||it(t);return Sl(e)?e.host:e}function Ed(t){const e=Lt(t);return wr(e)?t.ownerDocument?t.ownerDocument.body:t.body:nt(e)&&En(e)?e:Ed(e)}function dn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Ed(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),i=ke(o);if(a){const s=hi(i);return e.concat(i,i.visualViewport||[],En(o)?o:[],s&&r?dn(s):[])}return e.concat(o,dn(o,[],r))}function hi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Nd(t){const e=Ue(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=nt(t),a=o?t.offsetWidth:r,i=o?t.offsetHeight:n,s=vo(r)!==a||vo(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function ys(t){return qe(t)?t:t.contextElement}function br(t){const e=ys(t);if(!nt(e))return Ze(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:a}=Nd(e);let i=(a?vo(r.width):r.width)/n,s=(a?vo(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const gw=Ze(0);function Td(t){const e=ke(t);return!vs()||!e.visualViewport?gw:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bw(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ke(t)?!1:e}function Xt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=ys(t);let i=Ze(1);e&&(n?qe(n)&&(i=br(n)):i=br(t));const s=bw(a,r,n)?Td(a):Ze(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,c=o.width/i.x,h=o.height/i.y;if(a){const f=ke(a),d=n&&qe(n)?ke(n):n;let g=f,b=hi(g);for(;b&&n&&d!==g;){const m=br(b),v=b.getBoundingClientRect(),x=Ue(b),S=v.left+(b.clientLeft+parseFloat(x.paddingLeft))*m.x,C=v.top+(b.clientTop+parseFloat(x.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,h*=m.y,u+=S,l+=C,g=ke(b),b=hi(g)}}return xo({width:c,height:h,x:u,y:l})}function ta(t,e){const r=ea(t).scrollLeft;return e?e.left+r:Xt(it(t)).left+r}function jd(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-ta(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function vw(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const a=o==="fixed",i=it(n),s=e?Qo(e.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=Ze(1);const c=Ze(0),h=nt(n);if((h||!h&&!a)&&((zr(n)!=="body"||En(i))&&(u=ea(n)),nt(n))){const d=Xt(n);l=br(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!a?jd(i,u):Ze(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+f.x,y:r.y*l.y-u.scrollTop*l.y+c.y+f.y}}function yw(t){return Array.from(t.getClientRects())}function xw(t){const e=it(t),r=ea(t),n=t.ownerDocument.body,o=Oe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Oe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+ta(t);const s=-r.scrollTop;return Ue(n).direction==="rtl"&&(i+=Oe(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Cl=25;function ww(t,e){const r=ke(t),n=it(t),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const c=vs();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=ta(n);if(l<=0){const c=n.ownerDocument,h=c.body,f=getComputedStyle(h),d=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(n.clientWidth-h.clientWidth-d);g<=Cl&&(a-=g)}else l<=Cl&&(a+=l);return{width:a,height:i,x:s,y:u}}const Sw=new Set(["absolute","fixed"]);function Cw(t,e){const r=Xt(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=nt(t)?br(t):Ze(1),i=t.clientWidth*a.x,s=t.clientHeight*a.y,u=o*a.x,l=n*a.y;return{width:i,height:s,x:u,y:l}}function El(t,e,r){let n;if(e==="viewport")n=ww(t,r);else if(e==="document")n=xw(it(t));else if(qe(e))n=Cw(e,r);else{const o=Td(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return xo(n)}function Ad(t,e){const r=Lt(t);return r===e||!qe(r)||wr(r)?!1:Ue(r).position==="fixed"||Ad(r,e)}function Ew(t,e){const r=e.get(t);if(r)return r;let n=dn(t,[],!1).filter(s=>qe(s)&&zr(s)!=="body"),o=null;const a=Ue(t).position==="fixed";let i=a?Lt(t):t;for(;qe(i)&&!wr(i);){const s=Ue(i),u=bs(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&Sw.has(o.position)||En(i)&&!u&&Ad(t,i))?n=n.filter(c=>c!==i):o=s,i=Lt(i)}return e.set(t,n),n}function Nw(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?Qo(e)?[]:Ew(e,this._c):[].concat(r),n],s=i[0],u=i.reduce((l,c)=>{const h=El(e,c,o);return l.top=Oe(h.top,l.top),l.right=Mt(h.right,l.right),l.bottom=Mt(h.bottom,l.bottom),l.left=Oe(h.left,l.left),l},El(e,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Tw(t){const{width:e,height:r}=Nd(t);return{width:e,height:r}}function jw(t,e,r){const n=nt(e),o=it(e),a=r==="fixed",i=Xt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=Ze(0);function l(){u.x=ta(o)}if(n||!n&&!a)if((zr(e)!=="body"||En(o))&&(s=ea(e)),n){const d=Xt(e,!0,a,e);u.x=d.x+e.clientLeft,u.y=d.y+e.clientTop}else o&&l();a&&!n&&o&&l();const c=o&&!n&&!a?jd(o,s):Ze(0),h=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:h,y:f,width:i.width,height:i.height}}function Ra(t){return Ue(t).position==="static"}function Nl(t,e){if(!nt(t)||Ue(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return it(t)===r&&(r=r.ownerDocument.body),r}function Od(t,e){const r=ke(t);if(Qo(t))return r;if(!nt(t)){let o=Lt(t);for(;o&&!wr(o);){if(qe(o)&&!Ra(o))return o;o=Lt(o)}return r}let n=Nl(t,e);for(;n&&lw(n)&&Ra(n);)n=Nl(n,e);return n&&wr(n)&&Ra(n)&&!bs(n)?r:n||hw(t)||r}const Aw=async function(t){const e=this.getOffsetParent||Od,r=this.getDimensions,n=await r(t.floating);return{reference:jw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ow(t){return Ue(t).direction==="rtl"}const kw={convertOffsetParentRelativeRectToViewportRelativeRect:vw,getDocumentElement:it,getClippingRect:Nw,getOffsetParent:Od,getElementRects:Aw,getClientRects:yw,getDimensions:Tw,getScale:br,isElement:qe,isRTL:Ow};function kd(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pw(t,e){let r=null,n;const o=it(t);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=l;if(s||e(),!f||!d)return;const g=zn(h),b=zn(o.clientWidth-(c+f)),m=zn(o.clientHeight-(h+d)),v=zn(c),S={rootMargin:-g+"px "+-b+"px "+-m+"px "+-v+"px",threshold:Oe(0,Mt(1,u))||1};let C=!0;function j(k){const R=k[0].intersectionRatio;if(R!==u){if(!C)return i();R?i(!1,R):n=setTimeout(()=>{i(!1,1e-7)},1e3)}R===1&&!kd(l,t.getBoundingClientRect())&&i(),C=!1}try{r=new IntersectionObserver(j,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,S)}r.observe(t)}return i(!0),a}function _w(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=ys(t),c=o||a?[...l?dn(l):[],...dn(e)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),a&&v.addEventListener("resize",r)});const h=l&&s?Pw(l,r):null;let f=-1,d=null;i&&(d=new ResizeObserver(v=>{let[x]=v;x&&x.target===l&&d&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=d)==null||S.observe(e)})),r()}),l&&!u&&d.observe(l),d.observe(e));let g,b=u?Xt(t):null;u&&m();function m(){const v=Xt(t);b&&!kd(b,v)&&r(),b=v,g=requestAnimationFrame(m)}return r(),()=>{var v;c.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),h==null||h(),(v=d)==null||v.disconnect(),d=null,u&&cancelAnimationFrame(g)}}const Rw=nw,Iw=ow,Dw=ew,Mw=iw,Lw=tw,Tl=Q2,$w=aw,Bw=(t,e,r)=>{const n=new Map,o={platform:kw,...r},a={...o.platform,_c:n};return Z2(t,e,{...o,platform:a})};var zw=typeof document<"u",Hw=function(){},eo=zw?w.useLayoutEffect:Hw;function wo(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,o;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(!wo(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&t.$$typeof)&&!wo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Pd(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function jl(t,e){const r=Pd(t);return Math.round(e*r)/r}function Ia(t){const e=y.useRef(t);return eo(()=>{e.current=t}),e}function Fw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=t,[c,h]=y.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=y.useState(n);wo(f,n)||d(n);const[g,b]=y.useState(null),[m,v]=y.useState(null),x=y.useCallback(_=>{_!==k.current&&(k.current=_,b(_))},[]),S=y.useCallback(_=>{_!==R.current&&(R.current=_,v(_))},[]),C=a||g,j=i||m,k=y.useRef(null),R=y.useRef(null),M=y.useRef(c),D=u!=null,$=Ia(u),E=Ia(o),T=Ia(l),P=y.useCallback(()=>{if(!k.current||!R.current)return;const _={placement:e,strategy:r,middleware:f};E.current&&(_.platform=E.current),Bw(k.current,R.current,_).then(L=>{const q={...L,isPositioned:T.current!==!1};I.current&&!wo(M.current,q)&&(M.current=q,pc.flushSync(()=>{h(q)}))})},[f,e,r,E,T]);eo(()=>{l===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(_=>({..._,isPositioned:!1})))},[l]);const I=y.useRef(!1);eo(()=>(I.current=!0,()=>{I.current=!1}),[]),eo(()=>{if(C&&(k.current=C),j&&(R.current=j),C&&j){if($.current)return $.current(C,j,P);P()}},[C,j,P,$,D]);const N=y.useMemo(()=>({reference:k,floating:R,setReference:x,setFloating:S}),[x,S]),O=y.useMemo(()=>({reference:C,floating:j}),[C,j]),A=y.useMemo(()=>{const _={position:r,left:0,top:0};if(!O.floating)return _;const L=jl(O.floating,c.x),q=jl(O.floating,c.y);return s?{..._,transform:"translate("+L+"px, "+q+"px)",...Pd(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:L,top:q}},[r,s,O.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:P,refs:N,elements:O,floatingStyles:A}),[c,P,N,O,A])}const qw=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Tl({element:n.current,padding:o}).fn(r):{}:n?Tl({element:n,padding:o}).fn(r):{}}}},Uw=(t,e)=>({...Rw(t),options:[t,e]}),Vw=(t,e)=>({...Iw(t),options:[t,e]}),Ww=(t,e)=>({...$w(t),options:[t,e]}),Gw=(t,e)=>({...Dw(t),options:[t,e]}),Yw=(t,e)=>({...Mw(t),options:[t,e]}),Xw=(t,e)=>({...Lw(t),options:[t,e]}),Kw=(t,e)=>({...qw(t),options:[t,e]});var Jw="Arrow",_d=y.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...a}=t;return p.jsx(me.svg,{...a,ref:e,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});_d.displayName=Jw;var Zw=_d;function Rd(t){const[e,r]=y.useState(void 0);return Dt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=t.offsetWidth,s=t.offsetHeight;r({width:i,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var xs="Popper",[Id,Dd]=tr(xs),[Qw,Md]=Id(xs),Ld=t=>{const{__scopePopper:e,children:r}=t,[n,o]=y.useState(null);return p.jsx(Qw,{scope:e,anchor:n,onAnchorChange:o,children:r})};Ld.displayName=xs;var $d="PopperAnchor",Bd=y.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=Md($d,r),i=y.useRef(null),s=we(e,i),u=y.useRef(null);return y.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:p.jsx(me.div,{...o,ref:s})});Bd.displayName=$d;var ws="PopperContent",[e3,t3]=Id(ws),zd=y.forwardRef((t,e)=>{var H,Ne,ye,ge,We,lt;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:g,...b}=t,m=Md(ws,r),[v,x]=y.useState(null),S=we(e,Ge=>x(Ge)),[C,j]=y.useState(null),k=Rd(C),R=(k==null?void 0:k.width)??0,M=(k==null?void 0:k.height)??0,D=n+(a!=="center"?"-"+a:""),$=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},E=Array.isArray(l)?l:[l],T=E.length>0,P={padding:$,boundary:E.filter(n3),altBoundary:T},{refs:I,floatingStyles:N,placement:O,isPositioned:A,middlewareData:_}=Fw({strategy:"fixed",placement:D,whileElementsMounted:(...Ge)=>_w(...Ge,{animationFrame:d==="always"}),elements:{reference:m.anchor},middleware:[Uw({mainAxis:o+M,alignmentAxis:i}),u&&Vw({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Ww():void 0,...P}),u&&Gw({...P}),Yw({...P,apply:({elements:Ge,rects:Rn,availableWidth:va,availableHeight:In})=>{const{width:ya,height:Ur}=Rn.reference,ar=Ge.floating.style;ar.setProperty("--radix-popper-available-width",`${va}px`),ar.setProperty("--radix-popper-available-height",`${In}px`),ar.setProperty("--radix-popper-anchor-width",`${ya}px`),ar.setProperty("--radix-popper-anchor-height",`${Ur}px`)}}),C&&Kw({element:C,padding:s}),o3({arrowWidth:R,arrowHeight:M}),f&&Xw({strategy:"referenceHidden",...P})]}),[L,q]=qd(O),de=De(g);Dt(()=>{A&&(de==null||de())},[A,de]);const Z=(H=_.arrow)==null?void 0:H.x,B=(Ne=_.arrow)==null?void 0:Ne.y,z=((ye=_.arrow)==null?void 0:ye.centerOffset)!==0,[he,X]=y.useState();return Dt(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:A?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(ge=_.transformOrigin)==null?void 0:ge.x,(We=_.transformOrigin)==null?void 0:We.y].join(" "),...((lt=_.hide)==null?void 0:lt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(e3,{scope:r,placedSide:L,onArrowChange:j,arrowX:Z,arrowY:B,shouldHideArrow:z,children:p.jsx(me.div,{"data-side":L,"data-align":q,...b,ref:S,style:{...b.style,animation:A?void 0:"none"}})})})});zd.displayName=ws;var Hd="PopperArrow",r3={top:"bottom",right:"left",bottom:"top",left:"right"},Fd=y.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,a=t3(Hd,n),i=r3[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(Zw,{...o,ref:r,style:{...o.style,display:"block"}})})});Fd.displayName=Hd;function n3(t){return t!==null}var o3=t=>({name:"transformOrigin",options:t,fn(e){var m,v,x;const{placement:r,rects:n,middlewareData:o}=e,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=i?0:t.arrowWidth,u=i?0:t.arrowHeight,[l,c]=qd(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((v=o.arrow)==null?void 0:v.x)??0)+s/2,d=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let g="",b="";return l==="bottom"?(g=i?h:`${f}px`,b=`${-u}px`):l==="top"?(g=i?h:`${f}px`,b=`${n.floating.height+u}px`):l==="right"?(g=`${-u}px`,b=i?h:`${d}px`):l==="left"&&(g=`${n.floating.width+u}px`,b=i?h:`${d}px`),{data:{x:g,y:b}}}});function qd(t){const[e,r="center"]=t.split("-");return[e,r]}var a3=Ld,i3=Bd,s3=zd,u3=Fd;function l3(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var rr=t=>{const{present:e,children:r}=t,n=c3(e),o=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),a=we(n.ref,d3(o));return typeof r=="function"||n.isPresent?y.cloneElement(o,{ref:a}):null};rr.displayName="Presence";function c3(t){const[e,r]=y.useState(),n=y.useRef(null),o=y.useRef(t),a=y.useRef("none"),i=t?"mounted":"unmounted",[s,u]=l3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=Hn(n.current);a.current=s==="mounted"?l:"none"},[s]),Dt(()=>{const l=n.current,c=o.current;if(c!==t){const f=a.current,d=Hn(l);t?u("MOUNT"):d==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,u]),Dt(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const b=Hn(n.current).includes(CSS.escape(d.animationName));if(d.target===e&&b&&(u("ANIMATION_END"),!o.current)){const m=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=m)})}},f=d=>{d.target===e&&(a.current=Hn(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Hn(t){return(t==null?void 0:t.animationName)||"none"}function d3(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var f3=Symbol("radix.slottable");function p3(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=f3,e}var h3=y[" useInsertionEffect ".trim().toString()]||Dt;function Hr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,a,i]=m3({defaultProp:e,onChange:r}),s=t!==void 0,u=s?t:o;{const c=y.useRef(t!==void 0);y.useEffect(()=>{const h=c.current;h!==s&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${s?"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=s},[s,n])}const l=y.useCallback(c=>{var h;if(s){const f=g3(c)?c(t):c;f!==t&&((h=i.current)==null||h.call(i,f))}else a(c)},[s,t,a,i]);return[u,l]}function m3({defaultProp:t,onChange:e}){const[r,n]=y.useState(t),o=y.useRef(r),a=y.useRef(e);return h3(()=>{a.current=e},[e]),y.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function g3(t){return typeof t=="function"}var b3=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"}),v3="VisuallyHidden",Ud=y.forwardRef((t,e)=>p.jsx(me.span,{...t,ref:e,style:{...b3,...t.style}}));Ud.displayName=v3;var y3=Ud,[ra]=tr("Tooltip",[Dd]),na=Dd(),Vd="TooltipProvider",x3=700,mi="tooltip.open",[w3,Ss]=ra(Vd),Wd=t=>{const{__scopeTooltip:e,delayDuration:r=x3,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=t,i=y.useRef(!0),s=y.useRef(!1),u=y.useRef(0);return y.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(w3,{scope:e,isOpenDelayedRef:i,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:a})};Wd.displayName=Vd;var fn="Tooltip",[S3,oa]=ra(fn),Gd=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=t,u=Ss(fn,t.__scopeTooltip),l=na(e),[c,h]=y.useState(null),f=xd(),d=y.useRef(0),g=i??u.disableHoverableContent,b=s??u.delayDuration,m=y.useRef(!1),[v,x]=Hr({prop:n,defaultProp:o??!1,onChange:R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(mi))):u.onClose(),a==null||a(R)},caller:fn}),S=y.useMemo(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),C=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,m.current=!1,x(!0)},[x]),j=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),k=y.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{m.current=!0,x(!0),d.current=0},b)},[b,x]);return y.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),p.jsx(a3,{...l,children:p.jsx(S3,{scope:e,contentId:f,open:v,stateAttribute:S,trigger:c,onTriggerChange:h,onTriggerEnter:y.useCallback(()=>{u.isOpenDelayedRef.current?k():C()},[u.isOpenDelayedRef,k,C]),onTriggerLeave:y.useCallback(()=>{g?j():(window.clearTimeout(d.current),d.current=0)},[j,g]),onOpen:C,onClose:j,disableHoverableContent:g,children:r})})};Gd.displayName=fn;var gi="TooltipTrigger",Yd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=oa(gi,r),a=Ss(gi,r),i=na(r),s=y.useRef(null),u=we(e,s,o.onTriggerChange),l=y.useRef(!1),c=y.useRef(!1),h=y.useCallback(()=>l.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(i3,{asChild:!0,...i,children:p.jsx(me.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:ue(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ue(t.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ue(t.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ue(t.onFocus,()=>{l.current||o.onOpen()}),onBlur:ue(t.onBlur,o.onClose),onClick:ue(t.onClick,o.onClose)})})});Yd.displayName=gi;var C3="TooltipPortal",[hC,E3]=ra(C3,{forceMount:void 0}),Sr="TooltipContent",Xd=y.forwardRef((t,e)=>{const r=E3(Sr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=t,i=oa(Sr,t.__scopeTooltip);return p.jsx(rr,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Kd,{side:o,...a,ref:e}):p.jsx(N3,{side:o,...a,ref:e})})}),N3=y.forwardRef((t,e)=>{const r=oa(Sr,t.__scopeTooltip),n=Ss(Sr,t.__scopeTooltip),o=y.useRef(null),a=we(e,o),[i,s]=y.useState(null),{trigger:u,onClose:l}=r,c=o.current,{onPointerInTransitChange:h}=n,f=y.useCallback(()=>{s(null),h(!1)},[h]),d=y.useCallback((g,b)=>{const m=g.currentTarget,v={x:g.clientX,y:g.clientY},x=k3(v,m.getBoundingClientRect()),S=P3(v,x),C=_3(b.getBoundingClientRect()),j=I3([...S,...C]);s(j),h(!0)},[h]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(u&&c){const g=m=>d(m,c),b=m=>d(m,u);return u.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{u.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[u,c,d,f]),y.useEffect(()=>{if(i){const g=b=>{const m=b.target,v={x:b.clientX,y:b.clientY},x=(u==null?void 0:u.contains(m))||(c==null?void 0:c.contains(m)),S=!R3(v,i);x?f():S&&(f(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[u,c,i,l,f]),p.jsx(Kd,{...t,ref:a})}),[T3,j3]=ra(fn,{isInside:!1}),A3=p3("TooltipContent"),Kd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=t,u=oa(Sr,r),l=na(r),{onClose:c}=u;return y.useEffect(()=>(document.addEventListener(mi,c),()=>document.removeEventListener(mi,c)),[c]),y.useEffect(()=>{if(u.trigger){const h=f=>{const d=f.target;d!=null&&d.contains(u.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,c]),p.jsx(vd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(s3,{"data-state":u.stateAttribute,...l,...s,ref:e,style:{...s.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(A3,{children:n}),p.jsx(T3,{scope:r,isInside:!0,children:p.jsx(y3,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Xd.displayName=Sr;var Jd="TooltipArrow",O3=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=na(r);return j3(Jd,r).isInside?null:p.jsx(u3,{...o,...n,ref:e})});O3.displayName=Jd;function k3(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function P3(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 _3(t){const{top:e,right:r,bottom:n,left:o}=t;return[{x:o,y:e},{x:r,y:e},{x:r,y:n},{x:o,y:n}]}function R3(t,e){const{x:r,y:n}=t;let o=!1;for(let a=0,i=e.length-1;a<e.length;i=a++){const s=e[a],u=e[i],l=s.x,c=s.y,h=u.x,f=u.y;c>n!=f>n&&r<(h-l)*(n-c)/(f-c)+l&&(o=!o)}return o}function I3(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),D3(e)}function D3(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const o=t[n];for(;e.length>=2;){const a=e[e.length-1],i=e[e.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))e.pop();else break}e.push(o)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const o=t[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}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 M3=Wd,L3=Gd,$3=Yd,Zd=Xd;const pn=M3,Cr=L3,Er=$3,Kt=y.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Zd,{ref:n,sideOffset:e,className:Se("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}));Kt.displayName=Zd.displayName;const vr={mobile:{icon:Gi,label:"Mobile"},tablet:{icon:Yi,label:"Tablet"},small:{icon:Wi,label:"Small Desktop"},desktop:{icon:Xi,label:"Desktop"}},V=({title:t,children:e,defaultOpen:r=!0})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border pb-3",children:[p.jsxs("button",{onClick:()=>o(!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(qi,{className:"h-3 w-3"}):p.jsx(Ui,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},pe=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a,inputClassName:i=""})=>p.jsxs("div",{className:"flex items-center justify-between",children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:s=>r(parseInt(s.target.value)),min:n,max:o,className:tt("w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",i)}),a?p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a}):null]})]}),So=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="px",defaultValue:i=16})=>{const s=Ce(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(b,m)=>{const v={...c,[b]:m};r(v)},d=b=>{f(s,b)},g=Ie.some(b=>b!=="desktop"&&c[b]!==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(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||g?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),u?p.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Ie.map(b=>{const m=vr[b].icon,v=c[b],x=v===void 0?Ie.find(S=>Ie.indexOf(S)>Ie.indexOf(b)&&c[S]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${b===s?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:vr[b].label})})]})}),p.jsx("input",{type:"number",value:v??"",placeholder:x?`${c[x]??i}`:"",onChange:S=>{const C=S.target.value===""?void 0:parseInt(S.target.value)||0;f(b,C)},min:n,max:o,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${v===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]},b)})}):p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:h(),onChange:b=>d(parseInt(b.target.value)||0),min:n,max:o,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:a})]})]})},Me=({label:t,values:e,onChange:r})=>{var s;const n=Ce(),[o,a]=w.useState(!0),i=(u,l)=>{r(o?{[n]:{top:l,right:l,bottom:l,left:l}}:{[n]:{...e[n],[u]:l}})};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:()=>a(!o),className:`text-xs px-2 py-0.5 rounded ${o?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:o?"Linked":"Individual"})]}),o?p.jsx("input",{type:"number",value:(s=e==null?void 0:e[n])==null?void 0:s.top,onChange:u=>i("top",parseInt(u.target.value)),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"flex gap-1",children:["top","right","bottom","left"].map(u=>{var l;return p.jsxs("div",{className:"text-center",children:[p.jsx("span",{className:"text-[10px] text-muted-foreground",children:u[0].toUpperCase()}),p.jsx("input",{type:"number",value:(l=e==null?void 0:e[n])==null?void 0:l[u],onChange:c=>i(u,parseInt(c.target.value)),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"})]},u)})})]})},J=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:a=""})=>p.jsxs("div",{className:tt("flex items-center justify-between",o,a),children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsx("select",{value:e,onChange:i=>n(i.target.value),className:tt("px-2 py-1 text-xs rounded border border-input bg-background ",a),children:r.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))})]}),Qe=({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"})]})]}),vt=({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(o=>p.jsx("button",{onClick:()=>n(o.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===o.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:o.label,children:o.icon||o.label},o.value))})]}),$t=({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:o=>r(o.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:o=>r(o.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),aa=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit: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:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,a]})]}),p.jsx("input",{type:"range",value:e,onChange:i=>r(parseInt(i.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]}),Co=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="",defaultValue:i=50})=>{const s=Ce(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(g,b)=>{const m={...c,[g]:b};r(m)},d=Ie.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(),a]}),p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||d?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Kt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),u?p.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Ie.map(g=>{const b=vr[g].icon,m=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===s?"bg-primary/10":""}`,children:p.jsx(b,{className:"h-3 w-3 text-muted-foreground"})}),p.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:vr[g].label}),p.jsxs("span",{className:"text-xs",children:[m??"-",m!==void 0?a:""]})]}),p.jsx("input",{type:"range",value:m??c.desktop??i,onChange:v=>f(g,parseInt(v.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]},g)})}):p.jsx("input",{type:"range",value:h(),onChange:g=>f(s,parseInt(g.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]})},Cs=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:o="#ffffff",borderColor:a="#FF6B35",borderWidth:i=0,borderRadius:s=8,fontWeight:u="500",fontSize:l="auto",width:c="auto",paddingX:h=16,paddingY:f=10,margin:d={top:0,right:0,bottom:0,left:0},boxShadow:g="none",opacity:b=100})=>{const m=Ce();let v,x,S;try{const{connectors:I,events:N}=ne(O=>({events:O.events}));v=I.connect,x=I.drag,S=N.selected}catch{}const C={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},j=C[r]||C.md,k=h==="auto"?j.px:h,R=f==="auto"?j.py:f,M=l==="auto"?j.fs:l,D=typeof d[m]=="object"?`${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px`:`${d[m]}px`,$=e==="outline"?"transparent":n,E=e==="outline"?n:o,T=e==="outline"?2:i,P=e==="outline"?n:a;return p.jsx("button",{ref:I=>I&&v&&x&&(v==null?void 0:v(x==null?void 0:x(I))),className:`cursor-move transition-all hover:opacity-90 ${S?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:$,color:E,borderWidth:`${T}px`,borderColor:P,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${M}px`,padding:`${R}px ${k}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:g==="none"?"none":g,opacity:b/100},children:t})},B3=()=>{const{actions:{setProp:t},props:e}=ne(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(V,{title:"Content",defaultOpen:!0,children:p.jsx($t,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(vt,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(vt,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(o=>o.size=n)}),p.jsx(vt,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(o=>o.width=n)})]}),p.jsxs(V,{title:"Colors",defaultOpen:!0,children:[p.jsx(Qe,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(Qe,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(V,{title:"Typography",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:10,max:32}),p.jsx(J,{label:"Weight",value:e.fontWeight||"500",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)})]}),p.jsxs(V,{title:"Padding",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Horizontal",value:e.paddingX||16,onChange:n=>t(o=>o.paddingX=n),max:64}),p.jsx(pe,{unit:"px",label:"Vertical",value:e.paddingY||10,onChange:n=>t(o=>o.paddingY=n),max:48})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:50}),p.jsx(pe,{unit:"px",label:"Width",value:e.borderWidth||0,onChange:n=>t(o=>o.borderWidth=n),max:10}),p.jsx(Qe,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(o=>o.borderColor=n)})]}),p.jsx(V,{title:"Effects",defaultOpen:!1,children:p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 2px 4px rgba(0,0,0,0.1)",label:"Small"},{value:"0 4px 12px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 8px 24px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Cs.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:{desktop:{top:0,right:0,bottom:0,left:0}},boxShadow:"none",opacity:100},related:{settings:B3}};const cr=({label:t,value:e,onChange:r,max:n=1e4})=>{var h,f,d;const o=Ce(),a=((h=e==null?void 0:e[o])==null?void 0:h.type)||"custom",i=(f=e==null?void 0:e[o])==null?void 0:f.value,s=((d=e==null?void 0:e[o])==null?void 0:d.unit)||"%",u=g=>{r(g==="none"?{[o]:{type:"none"}}:g==="auto"?{[o]:{type:"auto"}}:{[o]:{type:"custom",value:i,unit:s}})},l=g=>{r({[o]:{type:"custom",value:g,unit:s}})},c=g=>{r({[o]:{type:"custom",value:i,unit:g}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-xs font-medium",children:t}),p.jsx(J,{selectClassName:"w-full",value:a,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:u}),a==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(pe,{inputClassName:"w-full h-8 rounded-l-lg",value:i,onChange:l,max:n})}),p.jsx("div",{className:"",children:p.jsx(J,{selectClassName:" h-8",value:s,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:c})})]})]})},z3=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",Es=t=>{const e=Ce(),r=i=>{var u,l;console.log(e);const s=((u=t==null?void 0:t[i])==null?void 0:u[e])||((l=t==null?void 0:t[i])==null?void 0:l.desktop);return z3(s)},n=i=>{var s,u;return((s=t==null?void 0:t[i])==null?void 0:s[e])||((u=t==null?void 0:t[i])==null?void 0:u.desktop)},o=typeof n("padding")=="object"?`${n("padding").top}px ${n("padding").right}px ${n("padding").bottom}px ${n("padding").left}px`:`${n("padding")}px`,a=typeof n("margin")=="object"?`${n("margin").top}px ${n("margin").right}px ${n("margin").bottom}px ${n("margin").left}px`:`${n("margin")}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:o,margin:a,width:r("width"),height:r("height"),minHeight:r("minHeight"),maxHeight:r("maxHeight"),minWidth:r("minWidth"),maxWidth:r("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,position:t.position||"relative",top:t.top||0,left:t.left||0}},hn={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:{desktop:{type:"custom",value:50,unit:"%"}},height:{desktop:{type:"none"}},minHeight:{desktop:{type:"custom",value:50,unit:"px"}},maxHeight:{desktop:{type:"none"}},minWidth:{desktop:{type:"none"}},maxWidth:{desktop:{type:"none"}},display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"solid",boxShadow:"none",position:"relative",top:0,left:0},ia=t=>{const{actions:{setProp:e},props:r}=ne(a=>({props:a.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},o=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(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(J,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:a=>e(i=>i.display=a)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(vt,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:a=>e(i=>i.flexDirection=a)}),p.jsx(J,{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:a=>e(i=>i.justifyContent=a)}),p.jsx(pe,{unit:"px",label:"Gap",value:r.gap||0,onChange:a=>e(i=>i.gap=a),max:64})]})]}),p.jsxs(V,{title:"Sizing",defaultOpen:!0,children:[p.jsx(cr,{label:"Width",value:r.width,onChange:a=>e(i=>i.width={...i.width,...a}),max:1e4}),p.jsx(cr,{label:"Min Width",value:r.minWidth,onChange:a=>e(i=>i.minWidth={...i.minWidth,...a}),max:1e4}),p.jsx(cr,{label:"Max Width",value:r.maxWidth,onChange:a=>e(i=>i.maxWidth={...i.maxWidth,...a}),max:1e4}),p.jsx(cr,{label:"Height",value:r.height,onChange:a=>e(i=>i.height={...i.height,...a}),max:1e4}),p.jsx(cr,{label:"Min Height",value:r.minHeight,onChange:a=>e(i=>i.minHeight={...i.minHeight,...a}),max:1e4}),p.jsx(cr,{label:"Max Height",value:r.maxHeight,onChange:a=>e(i=>i.maxHeight={...i.maxHeight,...a}),max:1e4})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Me,{label:"Padding",values:n,onChange:a=>e(i=>i.padding={...i.padding,...a})}),p.jsx(Me,{label:"Margin",values:o,onChange:a=>e(i=>i.margin={...i.margin,...a})})]}),p.jsxs(V,{title:"Background",defaultOpen:!1,children:[p.jsx(Qe,{label:"Color",value:r.backgroundColor||"transparent",onChange:a=>e(i=>i.backgroundColor=a)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:a=>e(i=>i.backgroundImage=a.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(J,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:a=>e(i=>i.backgroundSize=a)}),p.jsx(J,{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:a=>e(i=>i.backgroundRepeat=a)})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:r.borderRadius,onChange:a=>e(i=>i.borderRadius=a),max:5e3}),p.jsx(pe,{unit:"px",label:"Width",value:r.borderWidth||1,onChange:a=>e(i=>i.borderWidth=a),max:10}),p.jsx(Qe,{label:"Color",value:r.borderColor||"transparent",onChange:a=>e(i=>i.borderColor=a)})]})]})},Nn=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=ne(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{ref:o=>{o&&e&&r&&e(r(o))},style:Es(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})},H3={...hn,maxWidth:{desktop:{type:"custom",value:"1024",unit:"px"}},padding:{desktop:{top:0,right:15,bottom:0,left:15}}};Nn.craft={isCanvas:!0,props:H3,displayName:"Container",related:{settings:ia},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const F3=/\{\{\s*([\w.]+)\s*\}\}/g,q3=(t,e)=>{if(!t||!e)return;const r=e.split(".");let n=t;for(const o of r){if(n==null)return;n=n[o]}return n},Eo=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,o)=>{const a=q3(e,o);return a==null?n:String(a)})},U3=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),V3=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(F3.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},W3={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"}},G3={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"}]}},Y3=({variable:t,onCopy:e})=>{const[r,n]=w.useState(!1),o=()=>{navigator.clipboard.writeText(`{{ ${t.key} }}`),n(!0),e==null||e(`{{ ${t.key} }}`),setTimeout(()=>n(!1),1500)};return p.jsxs("button",{onClick:o,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(Fi,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(ih,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},X3=({category:t,data:e,defaultOpen:r=!1})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border last:border-0",children:[p.jsxs("button",{onClick:()=>o(!n),className:"w-full flex items-center gap-2 py-2 text-left hover:bg-muted/50 transition-colors",children:[n?p.jsx(qi,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Ui,{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(a=>p.jsx(Y3,{variable:a},a.key))})]})},Qd=({className:t})=>p.jsxs("div",{className:Se("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(G3).map(([e,r],n)=>p.jsx(X3,{category:e,data:r,defaultOpen:n===0},e))})]});var ef={},mn={},Ns={},gn={},Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.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 js={};Object.defineProperty(js,"__esModule",{value:!0});js.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var bi={};(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(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function n(a){var i;return a>=55296&&a<=57343||a>1114111?65533:(i=r.get(a))!==null&&i!==void 0?i:a}t.replaceCodePoint=n;function o(a){return(0,t.fromCodePoint)(n(a))}t.default=o})(bi);(function(t){var e=F&&F.__createBinding||(Object.create?function(E,T,P,I){I===void 0&&(I=P);var N=Object.getOwnPropertyDescriptor(T,P);(!N||("get"in N?!T.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return T[P]}}),Object.defineProperty(E,I,N)}:function(E,T,P,I){I===void 0&&(I=P),E[I]=T[P]}),r=F&&F.__setModuleDefault||(Object.create?function(E,T){Object.defineProperty(E,"default",{enumerable:!0,value:T})}:function(E,T){E.default=T}),n=F&&F.__importStar||function(E){if(E&&E.__esModule)return E;var T={};if(E!=null)for(var P in E)P!=="default"&&Object.prototype.hasOwnProperty.call(E,P)&&e(T,E,P);return r(T,E),T},o=F&&F.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};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 a=o(Ts);t.htmlDecodeTree=a.default;var i=o(js);t.xmlDecodeTree=i.default;var s=n(bi);t.decodeCodePoint=s.default;var u=bi;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(E){E[E.NUM=35]="NUM",E[E.SEMI=59]="SEMI",E[E.EQUALS=61]="EQUALS",E[E.ZERO=48]="ZERO",E[E.NINE=57]="NINE",E[E.LOWER_A=97]="LOWER_A",E[E.LOWER_F=102]="LOWER_F",E[E.LOWER_X=120]="LOWER_X",E[E.LOWER_Z=122]="LOWER_Z",E[E.UPPER_A=65]="UPPER_A",E[E.UPPER_F=70]="UPPER_F",E[E.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(E){E[E.VALUE_LENGTH=49152]="VALUE_LENGTH",E[E.BRANCH_LENGTH=16256]="BRANCH_LENGTH",E[E.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(E){return E>=l.ZERO&&E<=l.NINE}function d(E){return E>=l.UPPER_A&&E<=l.UPPER_F||E>=l.LOWER_A&&E<=l.LOWER_F}function g(E){return E>=l.UPPER_A&&E<=l.UPPER_Z||E>=l.LOWER_A&&E<=l.LOWER_Z||f(E)}function b(E){return E===l.EQUALS||g(E)}var m;(function(E){E[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity"})(m||(m={}));var v;(function(E){E[E.Legacy=0]="Legacy",E[E.Strict=1]="Strict",E[E.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function E(T,P,I){this.decodeTree=T,this.emitCodePoint=P,this.errors=I,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=v.Strict}return E.prototype.startEntity=function(T){this.decodeMode=T,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},E.prototype.write=function(T,P){switch(this.state){case m.EntityStart:return T.charCodeAt(P)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(T,P+1)):(this.state=m.NamedEntity,this.stateNamedEntity(T,P));case m.NumericStart:return this.stateNumericStart(T,P);case m.NumericDecimal:return this.stateNumericDecimal(T,P);case m.NumericHex:return this.stateNumericHex(T,P);case m.NamedEntity:return this.stateNamedEntity(T,P)}},E.prototype.stateNumericStart=function(T,P){return P>=T.length?-1:(T.charCodeAt(P)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(T,P+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(T,P))},E.prototype.addToNumericResult=function(T,P,I,N){if(P!==I){var O=I-P;this.result=this.result*Math.pow(N,O)+parseInt(T.substr(P,O),N),this.consumed+=O}},E.prototype.stateNumericHex=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N)||d(N))P+=1;else return this.addToNumericResult(T,I,P,16),this.emitNumericEntity(N,3)}return this.addToNumericResult(T,I,P,16),-1},E.prototype.stateNumericDecimal=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N))P+=1;else return this.addToNumericResult(T,I,P,10),this.emitNumericEntity(N,2)}return this.addToNumericResult(T,I,P,10),-1},E.prototype.emitNumericEntity=function(T,P){var I;if(this.consumed<=P)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===v.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},E.prototype.stateNamedEntity=function(T,P){for(var I=this.decodeTree,N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14;P<T.length;P++,this.excess++){var A=T.charCodeAt(P);if(this.treeIndex=C(I,N,this.treeIndex+Math.max(1,O),A),this.treeIndex<0)return this.result===0||this.decodeMode===v.Attribute&&(O===0||b(A))?0:this.emitNotTerminatedNamedEntity();if(N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14,O!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==v.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},E.prototype.emitNotTerminatedNamedEntity=function(){var T,P=this,I=P.result,N=P.decodeTree,O=(N[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},E.prototype.emitNamedEntityData=function(T,P,I){var N=this.decodeTree;return this.emitCodePoint(P===1?N[T]&~h.VALUE_LENGTH:N[T+1],I),P===3&&this.emitCodePoint(N[T+2],I),I},E.prototype.end=function(){var T;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==v.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},E}();t.EntityDecoder=x;function S(E){var T="",P=new x(E,function(I){return T+=(0,s.fromCodePoint)(I)});return function(N,O){for(var A=0,_=0;(_=N.indexOf("&",_))>=0;){T+=N.slice(A,_),P.startEntity(O);var L=P.write(N,_+1);if(L<0){A=_+P.end();break}A=_+L,_=L===0?A+1:A}var q=T+N.slice(A);return T="",q}}function C(E,T,P,I){var N=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(N===0)return O!==0&&I===O?P:-1;if(O){var A=I-O;return A<0||A>=N?-1:E[P+A]-1}for(var _=P,L=_+N-1;_<=L;){var q=_+L>>>1,de=E[q];if(de<I)_=q+1;else if(de>I)L=q-1;else return E[q+N]}return-1}t.determineBranch=C;var j=S(a.default),k=S(i.default);function R(E,T){return T===void 0&&(T=v.Legacy),j(E,T)}t.decodeHTML=R;function M(E){return j(E,v.Attribute)}t.decodeHTMLAttribute=M;function D(E){return j(E,v.Strict)}t.decodeHTMLStrict=D;function $(E){return k(E,v.Strict)}t.decodeXML=$})(gn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=gn,r;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(f){return f===r.Space||f===r.NewLine||f===r.Tab||f===r.FormFeed||f===r.CarriageReturn}function a(f){return f===r.Slash||f===r.Gt||o(f)}function i(f){return f>=r.Zero&&f<=r.Nine}function s(f){return f>=r.LowerA&&f<=r.LowerZ||f>=r.UpperA&&f<=r.UpperZ}function u(f){return f>=r.UpperA&&f<=r.UpperF||f>=r.LowerA&&f<=r.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.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 f(d,g){var b=d.xmlMode,m=b===void 0?!1:b,v=d.decodeEntities,x=v===void 0?!0:v;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=m,this.decodeEntities=x,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.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},f.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},f.prototype.getIndex=function(){return this.index},f.prototype.getSectionStart=function(){return this.sectionStart},f.prototype.stateText=function(d){d===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&&d===r.Amp&&(this.state=n.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(d){var g=this.sequenceIndex===this.currentSequence.length,b=g?a(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(d)},f.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===r.Gt||o(d)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var b=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=b}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===r.Lt)},f.prototype.stateCDATASequence=function(d){d===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(d))},f.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},f.prototype.stateInCommentLike=function(d){d===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):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},f.prototype.isTagStartChar=function(d){return this.xmlMode?!a(d):s(d)},f.prototype.startSpecial=function(d,g){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=g,this.state=n.SpecialStartSequence},f.prototype.stateBeforeTagName=function(d){if(d===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var g=d|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 d===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(d))},f.prototype.stateInTagName=function(d){a(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateBeforeClosingTagName=function(d){o(d)||(d===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(d)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},f.prototype.stateInClosingTagName=function(d){(d===r.Gt||o(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(d))},f.prototype.stateAfterClosingTagName=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeAttributeName=function(d){d===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):d===r.Slash?this.state=n.InSelfClosingTag:o(d)||(this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateInSelfClosingTag=function(d){d===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(d)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateInAttributeName=function(d){(d===r.Eq||a(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(d))},f.prototype.stateAfterAttributeName=function(d){d===r.Eq?this.state=n.BeforeAttributeValue:d===r.Slash||d===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):o(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateBeforeAttributeValue=function(d){d===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):d===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(d)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},f.prototype.handleInAttributeValue=function(d,g){d===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&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,r.DoubleQuote)},f.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,r.SingleQuote)},f.prototype.stateInAttributeValueNoQuotes=function(d){o(d)||d===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(d)):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateBeforeDeclaration=function(d){d===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=d===r.Dash?n.BeforeComment:n.InDeclaration},f.prototype.stateInDeclaration=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateInProcessingInstruction=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeComment=function(d){d===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},f.prototype.stateInSpecialComment=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeSpecialS=function(d){var g=d|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(d))},f.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===r.Number?this.state=n.BeforeNumericEntity:d===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(d))},f.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),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 b=(g>>14)-1;if(!this.allowLegacyEntity()&&d!==r.Semi)this.trieIndex+=b;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){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])}}},f.prototype.stateBeforeNumericEntity=function(d){(d|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(d))},f.prototype.emitNumericEntity=function(d){var g=this.index-this.entityExcess-1,b=g+2+ +(this.state===n.InHexEntity);b!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*10+(d-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*16+(d-r.Zero),this.entityExcess++):u(d)?(this.entityResult=this.entityResult*16+((d|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},f.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))},f.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},f.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(d);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case n.InSpecialTag:{this.stateInSpecialTag(d);break}case n.CDATASequence:{this.stateCDATASequence(d);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case n.InAttributeName:{this.stateInAttributeName(d);break}case n.InCommentLike:{this.stateInCommentLike(d);break}case n.InSpecialComment:{this.stateInSpecialComment(d);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case n.InTagName:{this.stateInTagName(d);break}case n.InClosingTagName:{this.stateInClosingTagName(d);break}case n.BeforeTagName:{this.stateBeforeTagName(d);break}case n.AfterAttributeName:{this.stateAfterAttributeName(d);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case n.InDeclaration:{this.stateInDeclaration(d);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case n.BeforeComment:{this.stateBeforeComment(d);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case n.InNamedEntity:{this.stateInNamedEntity(d);break}case n.BeforeEntity:{this.stateBeforeEntity(d);break}case n.InHexEntity:{this.stateInHexEntity(d);break}case n.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},f.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},f.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,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,d)},f.prototype.emitPartial=function(d,g){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(d,g):this.cbs.ontext(d,g)},f.prototype.emitCodePoint=function(d){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},f}();t.default=h})(Ns);var K3=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),J3=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Z3=F&&F.__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)&&K3(e,t,r);return J3(e,t),e};Object.defineProperty(mn,"__esModule",{value:!0});mn.Parser=void 0;var Fn=Z3(Ns),Al=gn,dr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),re=new Set(["p"]),Ol=new Set(["thead","tbody"]),kl=new Set(["dd","dt"]),Pl=new Set(["rt","rp"]),Q3=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",re],["h1",re],["h2",re],["h3",re],["h4",re],["h5",re],["h6",re],["select",dr],["input",dr],["output",dr],["button",dr],["datalist",dr],["textarea",dr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",kl],["dt",kl],["address",re],["article",re],["aside",re],["blockquote",re],["details",re],["div",re],["dl",re],["fieldset",re],["figcaption",re],["figure",re],["footer",re],["form",re],["header",re],["hr",re],["main",re],["nav",re],["ol",re],["pre",re],["section",re],["table",re],["ul",re],["rt",Pl],["rp",Pl],["tbody",Ol],["tfoot",Ol]]),e6=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_l=new Set(["math","svg"]),Rl=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),t6=/\s|\//,r6=function(){function t(e,r){r===void 0&&(r={});var n,o,a,i,s;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=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:Fn.default)(this.options,this),(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this)}return t.prototype.ontext=function(e,r){var n,o,a=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,a),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,Al.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&e6.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,o,a;this.openTagStart=this.startIndex,this.tagname=e;var i=!this.options.xmlMode&&Q3.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){var s=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,s,!0)}this.isVoidElement(e)||(this.stack.push(e),_l.has(e)?this.foreignContext.push(!0):Rl.has(e)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,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,o,a,i,s,u;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(_l.has(l)||Rl.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(i=(a=this.cbs).onopentag)===null||i===void 0||i.call(a,"br",{},!0),(u=(s=this.cbs).onclosetag)===null||u===void 0||u.call(s,"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,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!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,Al.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===Fn.QuoteType.Double?'"':e===Fn.QuoteType.Single?"'":e===Fn.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(t6),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 o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".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 o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,a,i,s;this.endIndex=r,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(e,r-n)),(s=(i=this.cbs).oncommentend)===null||s===void 0||s.call(i),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,a,i,s,u,l,c,h,f,d;this.endIndex=r;var g=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,g),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(g,"]]")),(d=(f=this.cbs).oncommentend)===null||d===void 0||d.call(f)),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,o;(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,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.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}();mn.Parser=r6;var wt={},Fr={};(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})(Fr);var K={},Bt=F&&F.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},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)}}(),nn=F&&F.__assign||function(){return nn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nn.apply(this,arguments)};Object.defineProperty(K,"__esModule",{value:!0});K.cloneNode=K.hasChildren=K.isDocument=K.isDirective=K.isComment=K.isText=K.isCDATA=K.isTag=K.Element=K.Document=K.CDATA=K.NodeWithChildren=K.ProcessingInstruction=K.Comment=K.Text=K.DataNode=K.Node=void 0;var Ae=Fr,As=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),Os(this,e)},t}();K.Node=As;var sa=function(t){Bt(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}(As);K.DataNode=sa;var tf=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(sa);K.Text=tf;var rf=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(sa);K.Comment=rf;var nf=function(t){Bt(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=Ae.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(sa);K.ProcessingInstruction=nf;var ua=function(t){Bt(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}(As);K.NodeWithChildren=ua;var of=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(ua);K.CDATA=of;var af=function(t){Bt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Ae.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(ua);K.Document=af;var sf=function(t){Bt(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?Ae.ElementType.Script:r==="style"?Ae.ElementType.Style:Ae.ElementType.Tag);var i=t.call(this,o)||this;return i.name=r,i.attribs=n,i.type=a,i}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 o,a;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),e}(ua);K.Element=sf;function uf(t){return(0,Ae.isTag)(t)}K.isTag=uf;function lf(t){return t.type===Ae.ElementType.CDATA}K.isCDATA=lf;function cf(t){return t.type===Ae.ElementType.Text}K.isText=cf;function df(t){return t.type===Ae.ElementType.Comment}K.isComment=df;function ff(t){return t.type===Ae.ElementType.Directive}K.isDirective=ff;function pf(t){return t.type===Ae.ElementType.Root}K.isDocument=pf;function n6(t){return Object.prototype.hasOwnProperty.call(t,"children")}K.hasChildren=n6;function Os(t,e){e===void 0&&(e=!1);var r;if(cf(t))r=new tf(t.data);else if(df(t))r=new rf(t.data);else if(uf(t)){var n=e?Da(t.children):[],o=new sf(t.name,nn({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=nn({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=nn({},t["x-attribsPrefix"])),r=o}else if(lf(t)){var n=e?Da(t.children):[],a=new of(n);n.forEach(function(l){return l.parent=a}),r=a}else if(pf(t)){var n=e?Da(t.children):[],i=new af(n);n.forEach(function(l){return l.parent=i}),t["x-mode"]&&(i["x-mode"]=t["x-mode"]),r=i}else if(ff(t)){var s=new nf(t.name,t.data);t["x-name"]!=null&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),r=s}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}K.cloneNode=Os;function Da(t){for(var e=t.map(function(n){return Os(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=F&&F.__createBinding||(Object.create?function(s,u,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(u,l);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(s,c,h)}:function(s,u,l,c){c===void 0&&(c=l),s[c]=u[l]}),r=F&&F.__exportStar||function(s,u){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&e(u,s,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=Fr,o=K;r(K,t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function s(u,l,c){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=a),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??a,this.elementCB=c??null}return s.prototype.onparserinit=function(u){this.parser=u},s.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(u){this.handleCallback(u)},s.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},s.prototype.onopentag=function(u,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,h=new o.Element(u,l,void 0,c);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(u){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=u,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new o.Text(u);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var l=new o.Comment(u);this.addNode(l),this.lastNode=l},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var u=new o.Text(""),l=new o.CDATA([u]);this.addNode(l),u.parent=l,this.lastNode=u},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(u,l){var c=new o.ProcessingInstruction(u,l);this.addNode(c)},s.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},s.prototype.addNode=function(u){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),l.children.push(u),c&&(u.prev=c,c.next=u),u.parent=l,this.lastNode=null},s}();t.DomHandler=i,t.default=i})(wt);var to={},zt={},Tn={},hf={},Jt={},ks={};Object.defineProperty(ks,"__esModule",{value:!0});function qn(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}ks.default=new Map(qn([[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(qn([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(qn([[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(qn([[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 No={};(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(o,a){return o.codePointAt(a)}:function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)};function r(o){for(var a="",i=0,s;(s=t.xmlReplacer.exec(o))!==null;){var u=s.index,l=o.charCodeAt(u),c=e.get(l);c!==void 0?(a+=o.substring(i,u)+c,i=u+1):(a+="".concat(o.substring(i,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),i=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return a+o.substr(i)}t.encodeXML=r,t.escape=r;function n(o,a){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=a.get(u[0].charCodeAt(0)),l=u.index+1;return c+s.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," "]]))})(No);var o6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.encodeNonAsciiHTML=Jt.encodeHTML=void 0;var a6=o6(ks),mf=No,i6=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s6(t){return gf(i6,t)}Jt.encodeHTML=s6;function u6(t){return gf(mf.xmlReplacer,t)}Jt.encodeNonAsciiHTML=u6;function gf(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var a=o.index;r+=e.substring(n,a);var i=e.charCodeAt(a),s=a6.default.get(i);if(typeof s=="object"){if(a+1<e.length){var u=e.charCodeAt(a+1),l=typeof s.n=="number"?s.n===u?s.o:void 0:s.n.get(u);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}s=s.v}if(s!==void 0)r+=s,n=a+1;else{var c=(0,mf.getCodePoint)(e,a);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==i)}}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=gn,r=Jt,n=No,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(f){f[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function i(f,d){d===void 0&&(d=o.XML);var g=typeof d=="number"?d:d.level;if(g===o.HTML){var b=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,b)}return(0,e.decodeXML)(f)}t.decode=i;function s(f,d){var g;d===void 0&&(d=o.XML);var b=typeof d=="number"?{level:d}:d;return(g=b.mode)!==null&&g!==void 0||(b.mode=e.DecodingMode.Strict),i(f,b)}t.decodeStrict=s;function u(f,d){d===void 0&&(d=o.XML);var g=typeof d=="number"?{level:d}:d;return g.mode===a.UTF8?(0,n.escapeUTF8)(f):g.mode===a.Attribute?(0,n.escapeAttribute)(f):g.mode===a.Text?(0,n.escapeText)(f):g.level===o.HTML?g.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(f):(0,r.encodeHTML)(f):(0,n.encodeXML)(f)}t.encode=u;var l=No;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=Jt;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=gn;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}})})(hf);var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.attributeNames=Nr.elementNames=void 0;Nr.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]}));Nr.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 hr=F&&F.__assign||function(){return hr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},hr.apply(this,arguments)},l6=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),c6=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),d6=F&&F.__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)&&l6(e,t,r);return c6(e,t),e};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.render=void 0;var dt=d6(Fr),To=hf,bf=Nr,f6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function p6(t){return t.replace(/"/g,""")}function h6(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?p6:e.xmlMode||e.encodeEntities!=="utf8"?To.encodeXML:To.escapeAttribute;return Object.keys(t).map(function(o){var a,i,s=(a=t[o])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(o=(i=bf.attributeNames.get(o))!==null&&i!==void 0?i:o),!e.emptyAttrs&&!e.xmlMode&&s===""?o:"".concat(o,'="').concat(n(s),'"')}).join(" ")}}var Il=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function la(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=m6(r[o],e);return n}Tn.render=la;Tn.default=la;function m6(t,e){switch(t.type){case dt.Root:return la(t.children,e);case dt.Doctype:case dt.Directive:return y6(t);case dt.Comment:return S6(t);case dt.CDATA:return w6(t);case dt.Script:case dt.Style:case dt.Tag:return v6(t,e);case dt.Text:return x6(t,e)}}var g6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),b6=new Set(["svg","math"]);function v6(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=bf.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&g6.has(t.parent.name)&&(e=hr(hr({},e),{xmlMode:!1}))),!e.xmlMode&&b6.has(t.name)&&(e=hr(hr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=h6(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Il.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=la(t.children,e)),(e.xmlMode||!Il.has(t.name))&&(n+="</".concat(t.name,">"))),n}function y6(t){return"<".concat(t.data,">")}function x6(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&f6.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,To.encodeXML)(n):(0,To.escapeText)(n)),n}function w6(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function S6(t){return"<!--".concat(t.data,"-->")}var C6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zt,"__esModule",{value:!0});zt.getOuterHTML=vf;zt.getInnerHTML=T6;zt.getText=ro;zt.textContent=vi;zt.innerText=yi;var et=wt,E6=C6(Tn),N6=Fr;function vf(t,e){return(0,E6.default)(t,e)}function T6(t,e){return(0,et.hasChildren)(t)?t.children.map(function(r){return vf(r,e)}).join(""):""}function ro(t){return Array.isArray(t)?t.map(ro).join(""):(0,et.isTag)(t)?t.name==="br"?`
|
|
236
|
-
`:ro(t.children):(0,et.isCDATA)(t)?ro(t.children):(0,et.isText)(t)?t.data:""}function vi(t){return Array.isArray(t)?t.map(vi).join(""):(0,et.hasChildren)(t)&&!(0,et.isComment)(t)?vi(t.children):(0,et.isText)(t)?t.data:""}function yi(t){return Array.isArray(t)?t.map(yi).join(""):(0,et.hasChildren)(t)&&(t.type===N6.ElementType.Tag||(0,et.isCDATA)(t))?yi(t.children):(0,et.isText)(t)?t.data:""}var st={};Object.defineProperty(st,"__esModule",{value:!0});st.getChildren=yf;st.getParent=xf;st.getSiblings=j6;st.getAttributeValue=A6;st.hasAttrib=O6;st.getName=k6;st.nextElementSibling=P6;st.prevElementSibling=_6;var Ps=wt;function yf(t){return(0,Ps.hasChildren)(t)?t.children:[]}function xf(t){return t.parent||null}function j6(t){var e,r,n=xf(t);if(n!=null)return yf(n);for(var o=[t],a=t.prev,i=t.next;a!=null;)o.unshift(a),e=a,a=e.prev;for(;i!=null;)o.push(i),r=i,i=r.next;return o}function A6(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function O6(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function k6(t){return t.name}function P6(t){for(var e,r=t.next;r!==null&&!(0,Ps.isTag)(r);)e=r,r=e.next;return r}function _6(t){for(var e,r=t.prev;r!==null&&!(0,Ps.isTag)(r);)e=r,r=e.prev;return r}var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.removeElement=jn;Ht.replaceElement=R6;Ht.appendChild=I6;Ht.append=D6;Ht.prependChild=M6;Ht.prepend=L6;function jn(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 R6(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var a=o.children;a[a.lastIndexOf(t)]=e,t.parent=null}}function I6(t,e){if(jn(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 D6(t,e){jn(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 o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function M6(t,e){if(jn(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 L6(t,e){jn(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 Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.filter=$6;Ct.find=wf;Ct.findOneChild=B6;Ct.findOne=Sf;Ct.existsOne=Cf;Ct.findAll=z6;var Zt=wt;function $6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),wf(t,Array.isArray(e)?e:[e],r,n)}function wf(t,e,r,n){for(var o=[],a=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=a[0].length){if(i.length===1)return o;a.shift(),i.shift();continue}var s=a[0][i[0]++];if(t(s)&&(o.push(s),--n<=0))return o;r&&(0,Zt.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function B6(t,e){return e.find(t)}function Sf(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var a=n[o];if((0,Zt.isTag)(a)&&t(a))return a;if(r&&(0,Zt.hasChildren)(a)&&a.children.length>0){var i=Sf(t,a.children,!0);if(i)return i}}return null}function Cf(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Zt.isTag)(r)&&t(r)||(0,Zt.hasChildren)(r)&&Cf(t,r.children)})}function z6(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var a=n[0][o[0]++];(0,Zt.isTag)(a)&&t(a)&&r.push(a),(0,Zt.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.testElement=F6;Et.getElements=q6;Et.getElementById=U6;Et.getElementsByTagName=V6;Et.getElementsByClassName=W6;Et.getElementsByTagType=G6;var Wt=wt,An=Ct,jo={tag_name:function(t){return typeof t=="function"?function(e){return(0,Wt.isTag)(e)&&t(e.name)}:t==="*"?Wt.isTag:function(e){return(0,Wt.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,Wt.isText)(e)&&t(e.data)}:function(e){return(0,Wt.isText)(e)&&e.data===t}}};function _s(t,e){return typeof e=="function"?function(r){return(0,Wt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Wt.isTag)(r)&&r.attribs[t]===e}}function H6(t,e){return function(r){return t(r)||e(r)}}function Ef(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(jo,r)?jo[r](n):_s(r,n)});return e.length===0?null:e.reduce(H6)}function F6(t,e){var r=Ef(t);return r?r(e):!0}function q6(t,e,r,n){n===void 0&&(n=1/0);var o=Ef(t);return o?(0,An.filter)(o,e,r,n):[]}function U6(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,An.findOne)(_s("id",t),e,r)}function V6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,An.filter)(jo.tag_name(t),e,r,n)}function W6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,An.filter)(_s("class",t),e,r,n)}function G6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,An.filter)(jo.tag_type(t),e,r,n)}var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.DocumentPosition=void 0;nr.removeSubsets=Y6;nr.compareDocumentPosition=Nf;nr.uniqueSort=X6;var Dl=wt;function Y6(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 Fe;(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"})(Fe||(nr.DocumentPosition=Fe={}));function Nf(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,Dl.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,Dl.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var a=Math.min(r.length,n.length),i=0;i<a&&r[i]===n[i];)i++;if(i===0)return Fe.DISCONNECTED;var s=r[i-1],u=s.children,l=r[i],c=n[i];return u.indexOf(l)>u.indexOf(c)?s===e?Fe.FOLLOWING|Fe.CONTAINED_BY:Fe.FOLLOWING:s===t?Fe.PRECEDING|Fe.CONTAINS:Fe.PRECEDING}function X6(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=Nf(e,r);return n&Fe.PRECEDING?-1:n&Fe.FOLLOWING?1:0}),t}var Rs={};Object.defineProperty(Rs,"__esModule",{value:!0});Rs.getFeed=J6;var K6=zt,On=Et;function J6(t){var e=Ao(r4,t);return e?e.name==="feed"?Z6(e):Q6(e):null}function Z6(t){var e,r=t.children,n={type:"atom",items:(0,On.getElementsByTagName)("entry",r).map(function(i){var s,u=i.children,l={media:Tf(u)};je(l,"id","id",u),je(l,"title","title",u);var c=(s=Ao("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);var h=kt("summary",u)||kt("content",u);h&&(l.description=h);var f=kt("updated",u);return f&&(l.pubDate=new Date(f)),l})};je(n,"id","id",r),je(n,"title","title",r);var o=(e=Ao("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),je(n,"description","subtitle",r);var a=kt("updated",r);return a&&(n.updated=new Date(a)),je(n,"author","email",r,!0),n}function Q6(t){var e,r,n=(r=(e=Ao("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,On.getElementsByTagName)("item",t.children).map(function(i){var s=i.children,u={media:Tf(s)};je(u,"id","guid",s),je(u,"title","title",s),je(u,"link","link",s),je(u,"description","description",s);var l=kt("pubDate",s)||kt("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};je(o,"title","title",n),je(o,"link","link",n),je(o,"description","description",n);var a=kt("lastBuildDate",n);return a&&(o.updated=new Date(a)),je(o,"author","managingEditor",n,!0),o}var e4=["url","type","lang"],t4=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Tf(t){return(0,On.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,a=e4;o<a.length;o++){var i=a[o];r[i]&&(n[i]=r[i])}for(var s=0,u=t4;s<u.length;s++){var i=u[s];r[i]&&(n[i]=parseInt(r[i],10))}return r.expression&&(n.expression=r.expression),n})}function Ao(t,e){return(0,On.getElementsByTagName)(t,e,!0,1)[0]}function kt(t,e,r){return r===void 0&&(r=!1),(0,K6.textContent)((0,On.getElementsByTagName)(t,e,r,1)).trim()}function je(t,e,r,n,o){o===void 0&&(o=!1);var a=kt(r,n,o);a&&(t[e]=a)}function r4(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=F&&F.__createBinding||(Object.create?function(o,a,i,s){s===void 0&&(s=i);var u=Object.getOwnPropertyDescriptor(a,i);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,u)}:function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]}),r=F&&F.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(zt,t),r(st,t),r(Ht,t),r(Ct,t),r(Et,t),r(nr,t),r(Rs,t);var n=wt;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}})})(to);(function(t){var e=F&&F.__createBinding||(Object.create?function(v,x,S,C){C===void 0&&(C=S);var j=Object.getOwnPropertyDescriptor(x,S);(!j||("get"in j?!x.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return x[S]}}),Object.defineProperty(v,C,j)}:function(v,x,S,C){C===void 0&&(C=S),v[C]=x[S]}),r=F&&F.__setModuleDefault||(Object.create?function(v,x){Object.defineProperty(v,"default",{enumerable:!0,value:x})}:function(v,x){v.default=x}),n=F&&F.__importStar||function(v){if(v&&v.__esModule)return v;var x={};if(v!=null)for(var S in v)S!=="default"&&Object.prototype.hasOwnProperty.call(v,S)&&e(x,v,S);return r(x,v),x},o=F&&F.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};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 a=mn,i=mn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return i.Parser}});var s=wt,u=wt;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(v,x){var S=new s.DomHandler(void 0,x);return new a.Parser(S,x).end(v),S.root}t.parseDocument=l;function c(v,x){return l(v,x).children}t.parseDOM=c;function h(v,x,S){var C=new s.DomHandler(v,x,S);return new a.Parser(C,x)}t.createDomStream=h;var f=Ns;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(Fr);var d=to,g=to;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var b={xmlMode:!0};function m(v,x){return x===void 0&&(x=b),(0,d.getFeed)(c(v,x))}t.parseFeed=m,t.DomUtils=n(to)})(ef);var n4=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Is={};Object.defineProperty(Is,"__esModule",{value:!0});/*!
|
|
231
|
+
Please only use useNode in components that are children of the <Editor /> component.`;function nl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function Ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nl(Object(r),!0).forEach(function(n){ye(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qx(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,ed(n.key),n)}}function $r(t,e,r){return e&&qx(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ye(t,e,r){return(e=ed(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t){return br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},br(t)}function Qa(t,e){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qa(t,e)}function _a(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ei(){return ei=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(a,i){for(;!Object.prototype.hasOwnProperty.call(a,i)&&(a=br(a))!==null;);return a}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},ei.apply(this,arguments)}function Kc(t,e){return Jc(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||us(t,e)||Qc()}function Ne(t){return function(e){if(Array.isArray(e))return ti(e)}(t)||Zc(t)||us(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
232
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Jc(t){if(Array.isArray(t))return t}function Zc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function us(t,e){if(t){if(typeof t=="string")return ti(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)?ti(t,e):void 0}}function ti(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 Qc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
233
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ed(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var pe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Ux=function(){function t(){Lr(this,t),ye(this,"timeline",[]),ye(this,"pointer",-1)}return $r(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 o=this.timeline[this.pointer],a=o.patches,i=o.inversePatches,s=o.timestamp;if(new Date().getTime()-s<n)return void(this.timeline[this.pointer]={timestamp:s,patches:[].concat(Ne(a),Ne(e)),inversePatches:[].concat(Ne(r),Ne(i))})}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],o=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(Ne(n.patches),Ne(e)),inversePatches:[].concat(Ne(r),Ne(o))}}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,Au(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,Au(e,this.timeline[this.pointer].patches)}}]),t}();function Vx(t,e,r,n){var o,a=w.useMemo(function(){return new Ux},[]),i=w.useRef([]),s=w.useRef(function(){});typeof t=="function"?o=t:(o=t.methods,i.current=t.ignoreHistoryForActions,s.current=t.normalizeHistory);var u=w.useRef(n);u.current=n;var l=w.useRef(e),c=w.useMemo(function(){var m=s.current,v=i.current,x=u.current;return function(C,S){var j,k=r&&ol(r,function(){return C},a),_=Kc(ju(C,function(E){var T,P;switch(S.type){case pe.UNDO:return a.undo(E);case pe.REDO:return a.redo(E);case pe.CLEAR:return a.clear(),Ie({},E);case pe.IGNORE:case pe.MERGE:case pe.THROTTLE:var I,N=Jc(P=S.payload)||Zc(P)||us(P)||Qc(),O=N[0],A=N.slice(1);(I=o(E,k))[O].apply(I,Ne(A));break;default:(T=o(E,k))[S.type].apply(T,Ne(S.payload))}}),3),D=_[0],L=_[1],$=_[2];return j=D,x&&x(D,C,{type:S.type,params:S.payload,patches:L},k,function(E){var T=ju(D,E);j=T[0],L=[].concat(Ne(L),Ne(T[1])),$=[].concat(Ne(T[2]),Ne($))}),[pe.UNDO,pe.REDO].includes(S.type)&&m&&(j=Yh(j,m)),[].concat(Ne(v),[pe.UNDO,pe.REDO,pe.IGNORE,pe.CLEAR]).includes(S.type)||(S.type===pe.THROTTLE?a.throttleAdd(L,$,S.config&&S.config.rate):S.type===pe.MERGE?a.merge(L,$):a.add(L,$)),j}},[a,o,r]),h=w.useCallback(function(){return l.current},[]),f=w.useMemo(function(){return new Wx(h)},[h]),d=w.useCallback(function(m){var v=c(l.current,m);l.current=v,f.notify()},[c,f]);w.useEffect(function(){f.notify()},[f]);var b=w.useMemo(function(){return r?ol(r,function(){return l.current},a):[]},[a,r]),g=w.useMemo(function(){var m=Object.keys(o(null,null)),v=i.current;return Ie(Ie({},m.reduce(function(x,C){return x[C]=function(){for(var S=arguments.length,j=new Array(S),k=0;k<S;k++)j[k]=arguments[k];return d({type:C,payload:j})},x},{})),{},{history:{undo:function(){return d({type:pe.UNDO})},redo:function(){return d({type:pe.REDO})},clear:function(){return d({type:pe.CLEAR})},throttle:function(x){return Ie({},m.filter(function(C){return!v.includes(C)}).reduce(function(C,S){return C[S]=function(){for(var j=arguments.length,k=new Array(j),_=0;_<j;_++)k[_]=arguments[_];return d({type:pe.THROTTLE,payload:[S].concat(k),config:{rate:x}})},C},{}))},ignore:function(){return Ie({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,C){return x[C]=function(){for(var S=arguments.length,j=new Array(S),k=0;k<S;k++)j[k]=arguments[k];return d({type:pe.IGNORE,payload:[C].concat(j)})},x},{}))},merge:function(){return Ie({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,C){return x[C]=function(){for(var S=arguments.length,j=new Array(S),k=0;k<S;k++)j[k]=arguments[k];return d({type:pe.MERGE,payload:[C].concat(j)})},x},{}))}}})},[d,o]);return w.useMemo(function(){return{getState:h,subscribe:function(m,v,x){return f.subscribe(m,v,x)},actions:g,query:b,history:a}},[g,b,f,h,a])}function ol(t,e,r){var n=Object.keys(t()).reduce(function(o,a){return Ie(Ie({},o),{},ye({},a,function(){var i;return(i=t(e()))[a].apply(i,arguments)}))},{});return Ie(Ie({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}Hh(),zh();var Wx=function(){function t(e){Lr(this,t),ye(this,"getState",void 0),ye(this,"subscribers",[]),this.getState=e}return $r(t,[{key:"subscribe",value:function(e,r,n){var o=this,a=new Gx(function(){return e(o.getState())},r,n);return this.subscribers.push(a),this.unsubscribe.bind(this,a)}},{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}(),Gx=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Lr(this,t),ye(this,"collected",void 0),ye(this,"collector",void 0),ye(this,"onChange",void 0),ye(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return $r(t,[{key:"collect",value:function(){try{var e=this.collector();Cx(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),ln=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,o=e.top,a=e.left,i=e.bottom,s=e.right,u=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)},f={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:o,left:a,bottom:i,right:s,width:u,height:l,outerWidth:Math.round(u+h.left+h.right),outerHeight:Math.round(l+h.top+h.bottom),margin:h,padding:f,inFlow:t.parentElement&&!!function(d){var b=getComputedStyle(d);if(!(c.overflow&&c.overflow!=="visible"||b.float!=="none"||b.display==="grid"||b.display==="flex"&&b["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 Yx(t,e){const{subscribe:r,getState:n,actions:o,query:a}=t,i=w.useRef(!0),s=w.useRef(null),u=w.useRef(e);u.current=e;const l=w.useCallback(f=>({...f,actions:o,query:a}),[o,a]);i.current&&e&&(s.current=e(n(),a),i.current=!1);const[c,h]=w.useState(l(s.current));return w.useEffect(()=>{let f;return u.current&&(f=r(d=>u.current(d,a),d=>{h(l(d))})),()=>{f&&f()}},[l,a,r]),c}var xr,td=function(){return Tx(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Xx=function(){function t(){Lr(this,t),ye(this,"isEnabled",!0),ye(this,"elementIdMap",new WeakMap),ye(this,"registry",new Map)}return $r(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=td();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,o=this.getByElement(e,r.name);if(o){if(Nx(r.required,o.required))return o;this.getByElement(e,r.name).disable()}var a=null,i=this.getConnectorId(e,r.name);return this.registry.set(i,{id:i,required:r.required,enable:function(){a&&a(),a=r.connector(e,r.required,r.options)},disable:function(){a&&a()},remove:function(){return n.remove(i)}}),this.isEnabled&&this.registry.get(i).enable(),this.registry.get(i)}},{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"})(xr||(xr={}));var rd=function(){function t(e){Lr(this,t),ye(this,"options",void 0),ye(this,"registry",new Xx),ye(this,"subscribers",new Set),this.options=e}return $r(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(xr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(xr.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,o){var a=function(i){(function(s,u,l){s.craft||(s.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=s.craft&&s.craft.blockedEvents[u]||[],h=0;h<c.length;h++){var f=c[h];if(l!==f&&l.contains(f))return!0}return!1})(i,r,e)||(i.craft.stopPropagation=function(){i.craft.blockedEvents[r]||(i.craft.blockedEvents[r]=[]),i.craft.blockedEvents[r].push(e)},n(i))};return e.addEventListener(r,a,o),function(){return e.removeEventListener(r,a,o)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,o=!1,a=new Map;return{connectors:Object.entries(r).reduce(function(i,s){var u=Kc(s,2),l=u[0],c=u[1];return Ie(Ie({},i),{},ye({},l,function(h,f,d){var b=function(){var g=e.registry.register(h,{required:f,name:l,options:d,connector:c});return n.add(g.id),g};return a.set(e.registry.getConnectorId(h,l),b),o&&b(),h}))},{}),register:function(){o=!0,a.forEach(function(i){i()})},cleanup:function(){o=!1,n.forEach(function(i){return e.registry.remove(i)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],o=e.handlers(),a=new Proxy(o,{get:function(i,s,u){return s in o==0?Reflect.get(i,s,u):function(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];var d=o[s].apply(o,[l].concat(h));d&&n.push(d)}}});return r(a),function(){n.forEach(function(i){i()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Kx=function(t){(function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&Qa(a,i)})(o,rd);var e,r,n=(e=o,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 a,i=br(e);if(r){var s=br(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return function(u,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 _a(u)}(this,a)});function o(a,i){var s;return Lr(this,o),ye(_a(s=n.call(this,i)),"derived",void 0),ye(_a(s),"unsubscribeParentHandlerListener",void 0),s.derived=a,s.options=i,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case xr.HandlerEnabled:return s.enable();case xr.HandlerDisabled:return s.disable();default:return}}),s}return $r(o,[{key:"inherit",value:function(a){return this.createProxyHandlers(this.derived,a)}},{key:"cleanup",value:function(){ei(br(o.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),o}();function al(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Jx(t,e){const r=t.ref;return ae(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"),w.cloneElement(t,r?{ref:n=>{al(r,n),al(e,n)}}:{ref:e})}function Zx(t){return(e=null,...r)=>{if(!w.isValidElement(e)){if(!e)return;const o=e;return o&&t(o,...r),o}const n=e;return function(o){if(typeof o.type!="string")throw new Error}(n),Jx(n,t)}}function nd(t){return Object.keys(t).reduce((e,r)=>(e[r]=Zx((...n)=>t[r](...n)),e),{})}const Qx=({style:t,className:e,parentDom:r})=>{const n=w.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?Bi.createPortal(n,r.ownerDocument.body):n};var Dt=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,o=e.doc;n&&(r+=" Please use ".concat(n," instead.")),o&&(r+="(".concat(o,")")),console.warn(r)},od=function(){return typeof window<"u"},e2=function(){return od()&&/Linux/i.test(window.navigator.userAgent)},t2=function(){return od()&&/Chrome/i.test(window.navigator.userAgent)},r2=er;(function(){try{var t=r2(Object,"defineProperty");return t({},"",{}),t}catch{}})();var bo={exports:{}};bo.exports;(function(t,e){var r=at,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var h=l.length,f=s?s(h):new l.constructor(h);return l.copy(f),f}t.exports=u})(bo,bo.exports);bo.exports;var il=Vo,sl=il?il.prototype:void 0;sl&&sl.valueOf;var ul=ss;ul&&ul.isMap;var ll=ss;ll&&ll.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const ad=w.createContext(null),id=({id:t,related:e=!1,children:r})=>w.createElement(ad.Provider,{value:{id:t,related:e}},r);function cl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?cl(Object(r),!0).forEach(function(n){ve(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ri(t){return ri=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},ri(t)}function Ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n2(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,ld(n.key),n)}}function Jo(t,e,r){return e&&n2(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(t,e,r){return(e=ld(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ls(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&&ni(t,e)}function go(t){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},go(t)}function ni(t,e){return ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ni(t,e)}function cs(t,e){if(t==null)return{};var r,n,o=function(i,s){if(i==null)return{};var u,l,c={},h=Object.keys(i);for(l=0;l<h.length;l++)s.indexOf(u=h[l])>=0||(c[u]=i[u]);return c}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e.indexOf(r=a[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Qr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ds(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=go(t);if(e){var o=go(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(a,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qr(a)}(this,r)}}function sd(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n!==0)for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||ud(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
234
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function cn(t){return function(e){if(Array.isArray(e))return oi(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||ud(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
235
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ud(t,e){if(t){if(typeof t=="string")return oi(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)?oi(t,e):void 0}}function oi(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 ld(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const fs=w.createContext(null);var cd=w.createContext(null),dd=function(){return w.useContext(cd)};function tr(t){var e=dd(),r=w.useContext(fs);ae(r,Hx);var n=Yx(r,t),o=w.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);w.useEffect(function(){return o.register(),function(){o.cleanup()}},[o]);var a=w.useMemo(function(){return o&&nd(o.connectors)},[o]);return ue(ue({},n),{},{connectors:a,inContext:!!r,store:r})}var o2=["actions","query","connectors"];function Zo(t){var e=w.useContext(ad);ae(e,Fx);var r=e.id,n=e.related,o=tr(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),a=o.actions,i=o.connectors,s=cs(o,o2),u=w.useMemo(function(){return nd({connect:function(c){return i.connect(c,r)},drag:function(c){return i.drag(c,r)}})},[i,r]),l=w.useMemo(function(){return{setProp:function(c,h){h?a.history.throttle(h).setProp(r,c):a.setProp(r,c)},setCustom:function(c,h){h?a.history.throttle(h).setCustom(r,c):a.setCustom(r,c)},setHidden:function(c){return a.setHidden(r,c)}}},[a,r]);return ue(ue({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var a2=["id","related","actions","inNodeContext","connectors"];function oe(t){var e=Zo(t),r=e.id,n=e.related,o=e.actions,a=e.inNodeContext,i=e.connectors;return ue(ue({},cs(e,a2)),{},{actions:o,id:r,related:n,setProp:function(s,u){return Dt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:a,connectors:i})}const i2=({render:t})=>{const{connectors:{connect:e,drag:r}}=oe();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},s2=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=Zo(o=>({type:o.data.type,props:o.data.props,nodes:o.data.nodes,hydrationTimestamp:o._hydrationTimestamp}));return w.useMemo(()=>{let o=e.children;r&&r.length>0&&(o=w.createElement(w.Fragment,null,r.map(i=>w.createElement(ps,{id:i,key:i}))));const a=w.createElement(t,e,o);return typeof t=="string"?w.createElement(i2,{render:a}):a},[t,e,n,r])},u2=({render:t})=>{const{hidden:e}=Zo(n=>({hidden:n.data.hidden})),{onRender:r}=tr(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(s2,null)})},ps=({id:t,render:e})=>w.createElement(id,{id:t},w.createElement(u2,{render:e})),ai={is:"div",canvas:!1,custom:{},hidden:!1},l2={is:"type",canvas:"isCanvas"};function _t({id:t,children:e,...r}){const{is:n}={...ai,...r},{query:o,actions:a}=tr(),{id:i,inNodeContext:s}=Zo(),[u]=w.useState(()=>{ae(!!t,kx);const l=o.node(i).get();if(s){const c=l.data.linkedNodes[t]?o.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const h=w.createElement(_t,r,e),f=o.parseReactElement(h).toNodeTree();return a.history.ignore().addLinkedNodeFromTree(f,i,t),f.rootNodeId}return null});return u?w.createElement(ps,{id:u}):null}const fd=()=>Dt("<Canvas />",{suggest:"<Element canvas={true} />"});function ii({...t}){return w.useEffect(()=>fd(),[]),w.createElement(_t,{...t,canvas:!0})}const c2=()=>{const{timestamp:t}=tr(e=>({timestamp:e.nodes[vt]&&e.nodes[vt]._hydrationTimestamp}));return t?w.createElement(ps,{id:vt,key:t}):null},hs=({children:t,json:e,data:r})=>{const{actions:n,query:o}=tr();e&&Dt("<Frame json={...} />",{suggest:"<Frame data={...} />"});const a=w.useRef(!1);if(!a.current){const i=r||e;if(i)n.history.ignore().deserialize(i);else if(t){const s=w.Children.only(t),u=o.parseReactElement(s).toNodeTree((l,c)=>(c===s&&(l.id=vt),l));n.history.ignore().addNodeTree(u)}a.current=!0}return w.createElement(c2,null)};var dl;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(dl||(dl={}));const Ra=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:a,...i}=t;return i};function it(t){const{connectors:e,actions:r,query:n,store:o,...a}=tr(t),i=Ra(r);return{connectors:e,actions:w.useMemo(()=>({...i,history:{...i.history,ignore:(...s)=>Ra(i.history.ignore(...s)),throttle:(...s)=>Ra(i.history.throttle(...s))}}),[i]),query:n,store:o,...a}}var pd=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=sd(r,2),o=n[0],a=n[1];return ue(ue({},e),{},ve({},o,a))},{})},bt=function(t,e,r){var n=Array.isArray(e)?e:[e],o=ue({existOnly:!1,idOnly:!1},r||{}),a=n.filter(function(i){return!!i}).map(function(i){return typeof i=="string"?{node:t[i],exists:!!t[i]}:ri(i)!=="object"||o.idOnly?{node:null,exists:!1}:{node:i,exists:!!t[i.id]}});return o.existOnly&&ae(a.filter(function(i){return!i.exists}).length===0,Xc),a},d2=["history"],cr=null,vo=function(t,e){if(typeof e=="string")return e;var r,n=function(o,a){var i=function(s){if(cr&&cr.resolver===s)return cr.reversed;cr={resolver:s,reversed:new Map};for(var u=0,l=Object.entries(s);u<l.length;u++){var c=sd(l[u],2);cr.reversed.set(c[1],c[0])}return cr.reversed}(o).get(a);return i!==void 0?i:null}(t,e);return ae(n,mo.replace("%node_type%",(r=e).name||r.displayName)),n};const f2=(t,e)=>typeof t=="string"?t:{resolvedName:vo(e,t)},si=(t,e)=>{let{type:r,isCanvas:n,props:o}=t;return o=Object.keys(o).reduce((a,i)=>{const s=o[i];return s==null||typeof s=="function"||(a[i]=i==="children"&&typeof s!="string"?w.Children.map(s,u=>typeof u=="string"?u:si(u,e)):typeof s.type=="function"?si(s,e):s),a},{}),{type:f2(r,e),isCanvas:!!n,props:o}},p2=(t,e)=>{const{type:r,props:n,isCanvas:o,name:a,...i}=t;return{...si({type:r,isCanvas:o,props:n},e),...i}};function ui(t,e){ae(typeof e=="string",Lx);var r=t.nodes[e],n=function(o){return ui(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===vt},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 Dt("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 o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[i];return l?(s.push(i),l.data.parent&&(o||!o&&u===0)&&(s=a(l.data.parent,s,u+1)),s):s}(r.data.parent)},descendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=arguments.length>1?arguments[1]:void 0;return function i(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(o||!o&&l===0)&&t.nodes[s]&&(a!=="childNodes"&&n(s).linkedNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)}),a!=="linkedNodes"&&n(s).childNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)})),u}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(o){try{var a=r;return ae(!this.isTopLevelNode(),rl),ae(ui(t,a.data.parent).isCanvas(),tl),ae(a.rules.canDrag(a,n),Mx),!0}catch(i){return o&&o(i),!1}},isDroppable:function(o,a){var i=bt(t.nodes,o),s=r;try{ae(this.isCanvas(),Ix),ae(s.rules.canMoveIn(i.map(function(l){return l.node}),s,n),_x);var u={};return i.forEach(function(l){var c=l.node,h=l.exists;if(ae(c.rules.canDrop(s,c,n),Px),h){ae(!n(c.id).isTopLevelNode(),rl);var f=n(c.id).descendants(!0);ae(!f.includes(s.id)&&s.id!==c.id,Dx);var d=c.data.parent&&t.nodes[c.data.parent];ae(d.data.isCanvas,tl),ae(d||!d&&!t.nodes[c.id],Ox),d.id!==s.id&&(u[d.id]||(u[d.id]=[]),u[d.id].push(c))}}),Object.keys(u).forEach(function(l){var c=t.nodes[l];ae(c.rules.canMoveOut(u[l],c,n),Rx)}),!0}catch(l){return a&&a(l),!1}},toSerializedNode:function(){return p2(r.data,t.options.resolver)},toNodeTree:function(o){var a=[e].concat(cn(this.descendants(!0,o))).reduce(function(i,s){return i[s]=n(s).get(),i},{});return{rootNodeId:e,nodes:a}},decendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return Dt("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(o)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function hd(t,e,r,n){for(var o={parent:t,index:0,where:"before"},a=0,i=0,s=0,u=0,l=0,c=0,h=0,f=e.length;h<f;h++){var d=e[h];if(c=d.top+d.outerHeight,u=d.left+d.outerWidth/2,l=d.top+d.outerHeight/2,!(i&&d.left>i||s&&l>=s||a&&d.left+d.outerWidth<a))if(o.index=h,d.inFlow){if(n<l){o.where="before";break}o.where="after"}else n<c&&(s=c),r<u?(i=u,o.where="before"):(a=u,o.where="after")}return o}var zn=function(t){return typeof t=="string"?t:t.name};function fl(t,e){var r=t.data.type,n={id:t.id||td(),_hydrationTimestamp:Date.now(),data:ue({type:r,name:zn(r),displayName:zn(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===_t||n.data.type===ii){var o=ue(ue({},ai),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys(ai).includes(u)?n.data[l2[u]||u]=o[u]:s[u]=n.data.props[u],s},{}),n.data.name=zn(r=n.data.type),n.data.displayName=zn(r),n.data.type===ii&&(n.data.isCanvas=!0,fd())}e&&e(n);var a=r.craft;if(a){if(n.data.displayName=a.displayName||a.name||n.data.displayName,n.data.props=ue(ue({},a.props||a.defaultProps||{}),n.data.props),n.data.custom=ue(ue({},a.custom||{}),n.data.custom),a.isCanvas!=null&&(n.data.isCanvas=a.isCanvas),a.rules&&Object.keys(a.rules).forEach(function(s){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(s)&&(n.rules[s]=a.rules[s])}),a.related){var i={id:n.id,related:!0};Object.keys(a.related).forEach(function(s){n.related[s]=function(u){return w.createElement(id,i,w.createElement(a.related[s],u))}})}a.info&&(n.info=a.info)}return n}const li=(t,e,r)=>{let{type:n,props:o}=t;const a=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?ii:u[s.resolvedName]:typeof s=="string"?s:null)(n,e);if(!a)return;o=Object.keys(o).reduce((s,u)=>{const l=o[u];return s[u]=l==null?null:typeof l=="object"&&l.resolvedName?li(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:li(c,e)):l,s},{});const i={...w.createElement(a,{...o})};return{...i,name:vo(e,i.type)}},h2=(t,e)=>{const{type:r,props:n,...o}=t;ae(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,zx.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:a,name:i,props:s}=li(t,e),{parent:u,custom:l,displayName:c,isCanvas:h,nodes:f,hidden:d}=o;return{type:a,name:i,displayName:c||i,props:s,custom:l||{},isCanvas:!!h,hidden:!!d,parent:u,linkedNodes:o.linkedNodes||o._childCanvas||{},nodes:f||[]}},m2=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:o})=>o),n={...t,data:{...t.data,nodes:r}};return e.reduce((o,a)=>{const i=a.nodes[a.rootNodeId];return{...o,...a.nodes,[i.id]:{...i,data:{...i.data,parent:t.id}}}},{[t.id]:n})},b2=(t,e)=>({rootNodeId:t.id,nodes:m2(t,e)});function md(t){const e=t&&t.options,r=()=>md(t);return{getDropPlaceholder:(n,o,a,i=s=>t.nodes[s.id].dom)=>{const s=t.nodes[o],u=r().node(s.id).isCanvas()?s:t.nodes[s.data.parent];if(!u)return;const l=u.data.nodes||[],c=hd(u,l?l.reduce((d,b)=>{const g=i(t.nodes[b]);if(g){const m={id:b,...ln(g)};d.push(m)}return d},[]):[],a.x,a.y),h=l.length&&t.nodes[l[c.index]],f={placement:{...c,currentNode:h},error:null};return bt(t.nodes,n).forEach(({node:d,exists:b})=>{b&&r().node(d.id).isDraggable(g=>f.error=g)}),r().node(u.id).isDroppable(n,d=>f.error=d),f},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>ui(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(o=>[o,this.node(o).toSerializedNode()]);return pd(n)},getEvent:n=>function(o,a){var i=o.events[a];return{contains:function(s){return i.has(s)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var s=this.all();return s[s.length-1]},all:function(){return Array.from(i)},size:function(){return this.all().length},at:function(s){return this.all()[s]},raw:function(){return i}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(o){let a=function(s,u){let l=s;return typeof l=="string"&&(l=w.createElement(w.Fragment,{},l)),fl({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=vo(t.options.resolver,s.data.type);s.data.displayName=s.data.displayName||l,s.data.name=l,o&&o(s,u)}),i=[];return n.props&&n.props.children&&(i=w.Children.toArray(n.props.children).reduce((s,u)=>(w.isValidElement(u)&&s.push(r().parseReactElement(u).toNodeTree(o)),s),[])),b2(a,i)}}),parseSerializedNode:n=>({toNode(o){const a=h2(n,t.options.resolver);ae(a.type,mo);const i=typeof o=="string"&&o;return i&&Dt("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...i?{id:i}:{},data:a}).toNode(!i&&o)}}),parseFreshNode:n=>({toNode:o=>fl(n,a=>{a.data.parent===Yc&&(a.data.parent=vt);const i=vo(t.options.resolver,a.data.type);ae(i!==null,mo),a.data.displayName=a.data.displayName||i,a.data.name=i,o&&o(a)})}),createNode(n,o){Dt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const a=this.parseReactElement(n).toNodeTree(),i=a.nodes[a.rootNodeId];return o&&(o.id&&(i.id=o.id),o.data&&(i.data={...i.data,...o.data})),i},getState:()=>t}}var g2=function(t){ls(r,rd);var e=ds(r);function r(){return Ko(this,r),e.apply(this,arguments)}return Jo(r,[{key:"handlers",value:function(){return{connect:function(n,o){},select:function(n,o){},hover:function(n,o){},drag:function(n,o){},drop:function(n,o){},create:function(n,o,a){}}}}]),r}();(function(t){ls(r,Kx);var e=ds(r);function r(){return Ko(this,r),e.apply(this,arguments)}return Jo(r)})();var pl=function(t){t.preventDefault()},ci=function(){function t(e,r){Ko(this,t),ve(this,"store",void 0),ve(this,"dragTarget",void 0),ve(this,"currentDropTargetId",void 0),ve(this,"currentDropTargetCanvasAncestorId",void 0),ve(this,"currentIndicator",null),ve(this,"currentTargetId",void 0),ve(this,"currentTargetChildDimensions",void 0),ve(this,"dragError",void 0),ve(this,"draggedNodes",void 0),ve(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",pl,!1)}return Jo(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",pl,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(vt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return bt(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(o,a){var i=r.store.query.node(a).get().dom;return i&&o.push(ue({id:a},ln(i))),o},[])}},{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 o(a){var i=r.store.query.node(a).get();return i&&i.data.isCanvas?i:i.data.parent?o(i.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var o=this.getCanvasAncestor(e);if(o&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=o.id,o.data.parent&&this.isNearBorders(ln(o.dom),r,n)&&!this.store.query.node(o.id).isLinkedNode()&&(o=this.store.query.node(o.data.parent).get()),o)){this.currentTargetChildDimensions=this.getChildDimensions(o),this.currentTargetId=o.id;var a=hd(o,this.currentTargetChildDimensions,r,n);if(this.isDiff(a)){var i=this.dragError;i||this.store.query.node(o.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){i=l});var s=o.data.nodes[a.index],u=s&&this.store.query.node(s).get();return this.currentIndicator={placement:ue(ue({},a),{},{currentNode:u}),error:i},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();ve(ci,"BORDER_OFFSET",10);var hl=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,o=r.height,a=e[0].cloneNode(!0);return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="".concat(n,"px"),a.style.height="".concat(o,"px"),a.style.pointerEvents="none",a.classList.add("drag-shadow"),document.body.appendChild(a),t.dataTransfer.setDragImage(a,0,0),a}var i=document.createElement("div");return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="100%",i.style.height="100%",i.style.pointerEvents="none",i.classList.add("drag-shadow-container"),e.forEach(function(s){var u=s.getBoundingClientRect(),l=u.width,c=u.height,h=u.top,f=u.left,d=s.cloneNode(!0);d.style.position="absolute",d.style.left="".concat(f,"px"),d.style.top="".concat(h,"px"),d.style.width="".concat(l,"px"),d.style.height="".concat(c,"px"),d.classList.add("drag-shadow"),i.appendChild(d)}),document.body.appendChild(i),t.dataTransfer.setDragImage(i,t.clientX,t.clientY),i},bd=function(t){ls(r,g2);var e=ds(r);function r(){var n;Ko(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return ve(Qr(n=e.call.apply(e,[this].concat(a))),"draggedElementShadow",void 0),ve(Qr(n),"dragTarget",void 0),ve(Qr(n),"positioner",null),ve(Qr(n),"currentSelectedElementIds",[]),n}return Jo(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,o=this.options.store;return{connect:function(a,i){return o.actions.setDOM(i,a),n.reflect(function(s){s.select(a,i),s.hover(a,i),s.drop(a,i)})},select:function(a,i){var s=n.addCraftEventListener(a,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(i){var h=o.query,f=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||f.includes(i))&&(c=f.filter(function(d){var b=h.node(d).descendants(!0),g=h.node(d).ancestors(!0);return!b.includes(i)&&!g.includes(i)})),c.includes(i)||c.push(i)}o.actions.setNodeEvent("selected",c)}),u=n.addCraftEventListener(a,"click",function(l){l.craft.stopPropagation();var c=o.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),f=n.currentSelectedElementIds.includes(i),d=cn(c);h&&f?(d.splice(d.indexOf(i),1),o.actions.setNodeEvent("selected",d)):!h&&c.length>1&&o.actions.setNodeEvent("selected",d=[i]),n.currentSelectedElementIds=d});return function(){s(),u()}},hover:function(a,i){var s=n.addCraftEventListener(a,"mouseover",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",i)}),u=null;return n.options.removeHoverOnMouseleave&&(u=n.addCraftEventListener(a,"mouseleave",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",null)})),function(){s(),u&&u()}},drop:function(a,i){var s=n.addCraftEventListener(a,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(i,l.clientX,l.clientY);c&&o.actions.setIndicator(c)}}),u=n.addCraftEventListener(a,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){u(),s()}},drag:function(a,i){if(!o.query.node(i).isDraggable())return function(){};a.setAttribute("draggable","true");var s=n.addCraftEventListener(a,"dragstart",function(l){l.craft.stopPropagation();var c=o.query,h=o.actions,f=c.getEvent("selected").all(),d=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(i)||(f=d?[].concat(cn(f),[i]):[i],o.actions.setNodeEvent("selected",f)),h.setNodeEvent("dragged",f);var b=f.map(function(g){return c.node(g).get().dom});n.draggedElementShadow=hl(l,b,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new ci(n.options.store,n.dragTarget)}),u=n.addCraftEventListener(a,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,h){c.type!=="new"&&o.actions.move(c.nodes,h.placement.parent.id,h.placement.index+(h.placement.where==="after"?1:0))})});return function(){a.setAttribute("draggable","false"),s(),u()}},create:function(a,i,s){a.setAttribute("draggable","true");var u=n.addCraftEventListener(a,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof i=="function"){var f=i();h=w.isValidElement(f)?o.query.parseReactElement(f).toNodeTree():f}else h=o.query.parseReactElement(i).toNodeTree();n.draggedElementShadow=hl(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new ci(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(a,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(h,f){h.type!=="existing"&&(o.actions.addNodeTree(h.tree,f.placement.parent.id,f.placement.index+(f.placement.where==="after"?1:0)),s&&rb(s.onCreate)&&s.onCreate(h.tree))})});return function(){a.removeAttribute("draggable"),u(),l()}}}}},{key:"dropElement",value:function(n){var o=this.options.store;if(this.positioner){var a=this.draggedElementShadow,i=this.positioner.getIndicator();this.dragTarget&&i&&!i.error&&n(this.dragTarget,i),a&&(a.parentNode.removeChild(a),this.draggedElementShadow=null),this.dragTarget=null,o.actions.setIndicator(null),o.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function v2(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,o=0,a=0,i=0,s=0,u=t.where;return r?r.inFlow?(i=r.outerWidth,s=n,o=u==="before"?r.top:r.bottom,a=r.left):(i=n,s=r.outerHeight,o=r.top,a=u==="before"?r.left:r.left+r.outerWidth):e&&(o=e.top+e.padding.top,a=e.left+e.padding.left,i=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,s=n),{top:"".concat(o,"px"),left:"".concat(a,"px"),width:"".concat(i,"px"),height:"".concat(s,"px")}}ve(bd,"forceSingleDragShadow",t2()&&e2());const y2=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=tr(o=>({indicator:o.indicator,indicatorOptions:o.options.indicator,enabled:o.options.enabled})),n=dd();return w.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?w.createElement(Qx,{className:e.className,style:{...v2(t.placement,ln(t.placement.parent.dom),t.placement.currentNode&&ln(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},x2=({children:t})=>{const e=w.useContext(fs),r=w.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?w.createElement(cd.Provider,{value:r},w.createElement(y2,null),t):null},ml={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 bd({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},w2={methods:function(t,e){return ue(ue({},function(r,n){var o=function(s,u,l){if(function f(d,b){var g=s.nodes[d];typeof g.data.type!="string"&&ae(r.options.resolver[g.data.name],mo.replace("%node_type%","".concat(g.data.type.name))),r.nodes[d]=ue(ue({},g),{},{data:ue(ue({},g.data),{},{parent:b})}),g.data.nodes.length>0&&(delete r.nodes[d].data.props.children,g.data.nodes.forEach(function(m){return f(m,g.id)})),Object.values(g.data.linkedNodes).forEach(function(m){return f(m,g.id)})}(s.rootNodeId,u),u||s.rootNodeId!==vt){var c=a(u);if(l.type!=="child")c.data.linkedNodes[l.id]=s.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,s.rootNodeId):c.data.nodes.push(s.rootNodeId)}}},a=function(s){ae(s,Ax);var u=r.nodes[s];return ae(u,Xc),u},i=function s(u){var l=r.nodes[u],c=r.nodes[l.data.parent];if(l.data.nodes&&cn(l.data.nodes).forEach(function(d){return s(d)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(d){return s(d)}),c.data.nodes.includes(u)){var h=c.data.nodes;h.splice(h.indexOf(u),1)}else{var f=Object.keys(c.data.linkedNodes).find(function(d){return c.data.linkedNodes[d]===d});f&&delete c.data.linkedNodes[f]}(function(d,b){Object.keys(d.events).forEach(function(g){var m=d.events[g];m&&m.has&&m.has(b)&&(d.events[g]=new Set(Array.from(m).filter(function(v){return b!==v})))})})(r,u),delete r.nodes[u]};return{addLinkedNodeFromTree:function(s,u,l){var c=a(u).data.linkedNodes[l];c&&i(c),o(s,u,{type:"linked",id:l})},add:function(s,u,l){var c=[s];Array.isArray(s)&&(Dt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:ve({},h.id,h),rootNodeId:h.id},u,{type:"child",index:l})})},addNodeTree:function(s,u,l){o(s,u,{type:"child",index:l})},delete:function(s){bt(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;ae(!n.node(l.id).isTopLevelNode(),$x),i(l.id)})},deserialize:function(s){var u=typeof s=="string"?JSON.parse(s):s,l=Object.keys(u).map(function(c){var h=c;return c===Yc&&(h=vt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(pd(l))},move:function(s,u,l){var c=bt(r.nodes,s,{existOnly:!0}),h=r.nodes[u],f=new Set;c.forEach(function(d,b){var g=d.node,m=g.id,v=g.data.parent;n.node(u).isDroppable([m],function(S){throw new Error(S)}),r.options.onBeforeMoveEnd(g,h,r.nodes[v]);var x=r.nodes[v].data.nodes;f.add(x);var C=x.indexOf(m);x[C]="$$",h.data.nodes.splice(l+b,0,m),r.nodes[m].data.parent=u}),f.forEach(function(d){var b=d.length;cn(d).reverse().forEach(function(g,m){g==="$$"&&d.splice(b-1-m,1)})})},replaceNodes:function(s){this.clearEvents(),r.nodes=s},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(s){s(r.options)},setNodeEvent:function(s,u){if(r.events[s].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[s]=!1)}),r.events[s]=new Set,u){var l=bt(r.nodes,u,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(h){return h.node.id}));c.forEach(function(h){r.nodes[h].events[s]=!0}),r.events[s]=c}},setCustom:function(s,u){bt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.custom)})},setDOM:function(s,u){r.nodes[s]&&(r.nodes[s].dom=u)},setIndicator:function(s){s&&(!s.placement.parent.dom||s.placement.currentNode&&!s.placement.currentNode.dom)||(r.indicator=s)},setHidden:function(s,u){r.nodes[s].data.hidden=u},setProp:function(s,u){bt(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.props)})},selectNode:function(s){if(s){var u=bt(r.nodes,s,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",u.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=cs(this,d2);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)})})}},S2=(t,e)=>Vx(w2,{...ml,options:{...ml.options,...t}},md,e),di=({children:t,...e})=>{e.resolver!==void 0&&ae(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,Bx);const r=y.useRef(e),n=S2(r.current,(o,a,i,s,u)=>{if(!i)return;const{patches:l,...c}=i;for(let h=0;h<l.length;h++){const{path:f}=l[h],d=f.length>2&&f[0]==="nodes"&&f[2]==="data";if([pe.IGNORE,pe.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||d){u(b=>{o.options.normalizeNodes&&o.options.normalizeNodes(b,a,c,s)});break}}});return y.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(o=>{o.enabled=e.enabled})},[n,e.enabled]),y.useEffect(()=>{n.subscribe(o=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?y.createElement(fs.Provider,{value:n},y.createElement(x2,null,t)):null},gd=w.createContext("desktop"),yo=({value:t,children:e})=>p.jsx(gd.Provider,{value:t,children:e}),Ee=()=>w.useContext(gd),De=["mobile","tablet","small","desktop"],gt=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=De.indexOf(e);for(let o=n;o<De.length;o++){const a=De[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}for(let o=n-1;o>=0;o--){const a=De[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}return r};function le(t,e,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function rr(t,e=[]){let r=[];function n(a,i){const s=y.createContext(i),u=r.length;r=[...r,i];const l=h=>{var v;const{scope:f,children:d,...b}=h,g=((v=f==null?void 0:f[t])==null?void 0:v[u])||s,m=y.useMemo(()=>b,Object.values(b));return p.jsx(g.Provider,{value:m,children:d})};l.displayName=a+"Provider";function c(h,f){var g;const d=((g=f==null?void 0:f[t])==null?void 0:g[u])||s,b=y.useContext(d);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,c]}const o=()=>{const a=r.map(i=>y.createContext(i));return function(s){const u=(s==null?void 0:s[t])||a;return y.useMemo(()=>({[`__scope${t}`]:{...s,[t]:u}}),[s,u])}};return o.scopeName=t,[n,C2(o,...e)]}function C2(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...s,...h}},{});return y.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}function E2(t){const e=N2(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(j2);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function N2(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=O2(o),s=A2(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Bo(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var T2=Symbol("radix.slottable");function j2(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===T2}function A2(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function O2(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var k2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],be=k2.reduce((t,e)=>{const r=E2(`Primitive.${e}`),n=y.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function P2(t,e){t&&hc.flushSync(()=>t.dispatchEvent(e))}function Me(t){const e=y.useRef(t);return y.useEffect(()=>{e.current=t}),y.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function _2(t,e=globalThis==null?void 0:globalThis.document){const r=Me(t);y.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var R2="DismissableLayer",fi="dismissableLayer.update",I2="dismissableLayer.pointerDownOutside",D2="dismissableLayer.focusOutside",bl,vd=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yd=y.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=t,l=y.useContext(vd),[c,h]=y.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=y.useState({}),b=Se(e,_=>h(_)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),x=c?g.indexOf(c):-1,C=l.layersWithOutsidePointerEventsDisabled.size>0,S=x>=v,j=$2(_=>{const D=_.target,L=[...l.branches].some($=>$.contains(D));!S||L||(o==null||o(_),i==null||i(_),_.defaultPrevented||s==null||s())},f),k=B2(_=>{const D=_.target;[...l.branches].some($=>$.contains(D))||(a==null||a(_),i==null||i(_),_.defaultPrevented||s==null||s())},f);return _2(_=>{x===l.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},f),y.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(bl=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),gl(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=bl)}},[c,f,r,l]),y.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),gl())},[c,l]),y.useEffect(()=>{const _=()=>d({});return document.addEventListener(fi,_),()=>document.removeEventListener(fi,_)},[]),p.jsx(be.div,{...u,ref:b,style:{pointerEvents:C?S?"auto":"none":void 0,...t.style},onFocusCapture:le(t.onFocusCapture,k.onFocusCapture),onBlurCapture:le(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:le(t.onPointerDownCapture,j.onPointerDownCapture)})});yd.displayName=R2;var M2="DismissableLayerBranch",L2=y.forwardRef((t,e)=>{const r=y.useContext(vd),n=y.useRef(null),o=Se(e,n);return y.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(be.div,{...t,ref:o})});L2.displayName=M2;function $2(t,e=globalThis==null?void 0:globalThis.document){const r=Me(t),n=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){xd(I2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=u,e.addEventListener("click",o.current,{once:!0})):u()}else e.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",a),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function B2(t,e=globalThis==null?void 0:globalThis.document){const r=Me(t),n=y.useRef(!1);return y.useEffect(()=>{const o=a=>{a.target&&!n.current&&xd(D2,r,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function gl(){const t=new CustomEvent(fi);document.dispatchEvent(t)}function xd(t,e,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?P2(o,a):o.dispatchEvent(a)}var Mt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},z2=y[" useId ".trim().toString()]||(()=>{}),H2=0;function wd(t){const[e,r]=y.useState(z2());return Mt(()=>{r(n=>n??String(H2++))},[t]),e?`radix-${e}`:""}const F2=["top","right","bottom","left"],Lt=Math.min,ke=Math.max,xo=Math.round,Hn=Math.floor,Qe=t=>({x:t,y:t}),q2={left:"right",right:"left",bottom:"top",top:"bottom"},U2={start:"end",end:"start"};function pi(t,e,r){return ke(t,Lt(e,r))}function xt(t,e){return typeof t=="function"?t(e):t}function wt(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function ms(t){return t==="x"?"y":"x"}function bs(t){return t==="y"?"height":"width"}const V2=new Set(["top","bottom"]);function Je(t){return V2.has(wt(t))?"y":"x"}function gs(t){return ms(Je(t))}function W2(t,e,r){r===void 0&&(r=!1);const n=Br(t),o=gs(t),a=bs(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=wo(i)),[i,wo(i)]}function G2(t){const e=wo(t);return[hi(t),e,hi(e)]}function hi(t){return t.replace(/start|end/g,e=>U2[e])}const vl=["left","right"],yl=["right","left"],Y2=["top","bottom"],X2=["bottom","top"];function K2(t,e,r){switch(t){case"top":case"bottom":return r?e?yl:vl:e?vl:yl;case"left":case"right":return e?Y2:X2;default:return[]}}function J2(t,e,r,n){const o=Br(t);let a=K2(wt(t),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),e&&(a=a.concat(a.map(hi)))),a}function wo(t){return t.replace(/left|right|bottom|top/g,e=>q2[e])}function Z2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Sd(t){return typeof t!="number"?Z2(t):{top:t,right:t,bottom:t,left:t}}function So(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function xl(t,e,r){let{reference:n,floating:o}=t;const a=Je(e),i=gs(e),s=bs(i),u=wt(e),l=a==="y",c=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let d;switch(u){case"top":d={x:c,y:n.y-o.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-o.width,y:h};break;default:d={x:n.x,y:n.y}}switch(Br(e)){case"start":d[i]-=f*(r&&l?-1:1);break;case"end":d[i]+=f*(r&&l?-1:1);break}return d}const Q2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=xl(l,n,u),f=n,d={},b=0;for(let g=0;g<s.length;g++){const{name:m,fn:v}=s[g],{x,y:C,data:S,reset:j}=await v({x:c,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:d,rects:l,platform:i,elements:{reference:t,floating:e}});c=x??c,h=C??h,d={...d,[m]:{...d[m],...S}},j&&b<=50&&(b++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(l=j.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):j.rects),{x:c,y:h}=xl(l,f,u)),g=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:d}};async function dn(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:u}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=xt(e,t),b=Sd(d),m=s[f?h==="floating"?"reference":"floating":h],v=So(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(C))?await(a.getScale==null?void 0:a.getScale(C))||{x:1,y:1}:{x:1,y:1},j=So(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:C,strategy:u}):x);return{top:(v.top-j.top+b.top)/S.y,bottom:(j.bottom-v.bottom+b.bottom)/S.y,left:(v.left-j.left+b.left)/S.x,right:(j.right-v.right+b.right)/S.x}}const ew=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=e,{element:l,padding:c=0}=xt(t,e)||{};if(l==null)return{};const h=Sd(c),f={x:r,y:n},d=gs(o),b=bs(d),g=await i.getDimensions(l),m=d==="y",v=m?"top":"left",x=m?"bottom":"right",C=m?"clientHeight":"clientWidth",S=a.reference[b]+a.reference[d]-f[d]-a.floating[b],j=f[d]-a.reference[d],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let _=k?k[C]:0;(!_||!await(i.isElement==null?void 0:i.isElement(k)))&&(_=s.floating[C]||a.floating[b]);const D=S/2-j/2,L=_/2-g[b]/2-1,$=Lt(h[v],L),E=Lt(h[x],L),T=$,P=_-g[b]-E,I=_/2-g[b]/2+D,N=pi(T,I,P),O=!u.arrow&&Br(o)!=null&&I!==N&&a.reference[b]/2-(I<T?$:E)-g[b]/2<0,A=O?I<T?I-T:I-P:0;return{[d]:f[d]+A,data:{[d]:N,centerOffset:I-N-A,...O&&{alignmentOffset:A}},reset:O}}}),tw=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...m}=xt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=wt(o),x=Je(s),C=wt(s)===s,S=await(u.isRTL==null?void 0:u.isRTL(l.floating)),j=f||(C||!g?[wo(s)]:G2(s)),k=b!=="none";!f&&k&&j.push(...J2(s,g,b,S));const _=[s,...j],D=await dn(e,m),L=[];let $=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&L.push(D[v]),h){const I=W2(o,i,S);L.push(D[I[0]],D[I[1]])}if($=[...$,{placement:o,overflows:L}],!L.every(I=>I<=0)){var E,T;const I=(((E=a.flip)==null?void 0:E.index)||0)+1,N=_[I];if(N&&(!(h==="alignment"?x!==Je(N):!1)||$.every(R=>Je(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:N}};let O=(T=$.filter(A=>A.overflows[0]<=0).sort((A,R)=>A.overflows[1]-R.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(d){case"bestFit":{var P;const A=(P=$.filter(R=>{if(k){const M=Je(R.placement);return M===x||M==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(M=>M>0).reduce((M,q)=>M+q,0)]).sort((R,M)=>R[1]-M[1])[0])==null?void 0:P[0];A&&(O=A);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function wl(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Sl(t){return F2.some(e=>t[e]>=0)}const rw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=xt(t,e);switch(n){case"referenceHidden":{const a=await dn(e,{...o,elementContext:"reference"}),i=wl(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Sl(i)}}}case"escaped":{const a=await dn(e,{...o,altBoundary:!0}),i=wl(a,r.floating);return{data:{escapedOffsets:i,escaped:Sl(i)}}}default:return{}}}}},Cd=new Set(["left","top"]);async function nw(t,e){const{placement:r,platform:n,elements:o}=t,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=wt(r),s=Br(r),u=Je(r)==="y",l=Cd.has(i)?-1:1,c=a&&u?-1:1,h=xt(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof b=="number"&&(d=s==="end"?b*-1:b),u?{x:d*c,y:f*l}:{x:f*l,y:d*c}}const ow=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=e,u=await nw(e,t);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},aw=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:m=>{let{x:v,y:x}=m;return{x:v,y:x}}},...u}=xt(t,e),l={x:r,y:n},c=await dn(e,u),h=Je(wt(o)),f=ms(h);let d=l[f],b=l[h];if(a){const m=f==="y"?"top":"left",v=f==="y"?"bottom":"right",x=d+c[m],C=d-c[v];d=pi(x,d,C)}if(i){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",x=b+c[m],C=b-c[v];b=pi(x,b,C)}const g=s.fn({...e,[f]:d,[h]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[f]:a,[h]:i}}}}}},iw=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=e,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=xt(t,e),c={x:r,y:n},h=Je(o),f=ms(h);let d=c[f],b=c[h];const g=xt(s,e),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const C=f==="y"?"height":"width",S=a.reference[f]-a.floating[C]+m.mainAxis,j=a.reference[f]+a.reference[C]-m.mainAxis;d<S?d=S:d>j&&(d=j)}if(l){var v,x;const C=f==="y"?"width":"height",S=Cd.has(wt(o)),j=a.reference[h]-a.floating[C]+(S&&((v=i.offset)==null?void 0:v[h])||0)+(S?0:m.crossAxis),k=a.reference[h]+a.reference[C]+(S?0:((x=i.offset)==null?void 0:x[h])||0)-(S?m.crossAxis:0);b<j?b=j:b>k&&(b=k)}return{[f]:d,[h]:b}}}},sw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:a,platform:i,elements:s}=e,{apply:u=()=>{},...l}=xt(t,e),c=await dn(e,l),h=wt(o),f=Br(o),d=Je(o)==="y",{width:b,height:g}=a.floating;let m,v;h==="top"||h==="bottom"?(m=h,v=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(v=h,m=f==="end"?"top":"bottom");const x=g-c.top-c.bottom,C=b-c.left-c.right,S=Lt(g-c[m],x),j=Lt(b-c[v],C),k=!e.middlewareData.shift;let _=S,D=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=C),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=x),k&&!f){const $=ke(c.left,0),E=ke(c.right,0),T=ke(c.top,0),P=ke(c.bottom,0);d?D=b-2*($!==0||E!==0?$+E:ke(c.left,c.right)):_=g-2*(T!==0||P!==0?T+P:ke(c.top,c.bottom))}await u({...e,availableWidth:D,availableHeight:_});const L=await i.getDimensions(s.floating);return b!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Qo(){return typeof window<"u"}function zr(t){return Ed(t)?(t.nodeName||"").toLowerCase():"#document"}function Pe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function st(t){var e;return(e=(Ed(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ed(t){return Qo()?t instanceof Node||t instanceof Pe(t).Node:!1}function Ue(t){return Qo()?t instanceof Element||t instanceof Pe(t).Element:!1}function ot(t){return Qo()?t instanceof HTMLElement||t instanceof Pe(t).HTMLElement:!1}function Cl(t){return!Qo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pe(t).ShadowRoot}const uw=new Set(["inline","contents"]);function Nn(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ve(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!uw.has(o)}const lw=new Set(["table","td","th"]);function cw(t){return lw.has(zr(t))}const dw=[":popover-open",":modal"];function ea(t){return dw.some(e=>{try{return t.matches(e)}catch{return!1}})}const fw=["transform","translate","scale","rotate","perspective"],pw=["transform","translate","scale","rotate","perspective","filter"],hw=["paint","layout","strict","content"];function vs(t){const e=ys(),r=Ue(t)?Ve(t):t;return fw.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)||pw.some(n=>(r.willChange||"").includes(n))||hw.some(n=>(r.contain||"").includes(n))}function mw(t){let e=$t(t);for(;ot(e)&&!wr(e);){if(vs(e))return e;if(ea(e))return null;e=$t(e)}return null}function ys(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bw=new Set(["html","body","#document"]);function wr(t){return bw.has(zr(t))}function Ve(t){return Pe(t).getComputedStyle(t)}function ta(t){return Ue(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function $t(t){if(zr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Cl(t)&&t.host||st(t);return Cl(e)?e.host:e}function Nd(t){const e=$t(t);return wr(e)?t.ownerDocument?t.ownerDocument.body:t.body:ot(e)&&Nn(e)?e:Nd(e)}function fn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Nd(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),i=Pe(o);if(a){const s=mi(i);return e.concat(i,i.visualViewport||[],Nn(o)?o:[],s&&r?fn(s):[])}return e.concat(o,fn(o,[],r))}function mi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Td(t){const e=Ve(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=ot(t),a=o?t.offsetWidth:r,i=o?t.offsetHeight:n,s=xo(r)!==a||xo(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function xs(t){return Ue(t)?t:t.contextElement}function gr(t){const e=xs(t);if(!ot(e))return Qe(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:a}=Td(e);let i=(a?xo(r.width):r.width)/n,s=(a?xo(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const gw=Qe(0);function jd(t){const e=Pe(t);return!ys()||!e.visualViewport?gw:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function vw(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Pe(t)?!1:e}function Kt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=xs(t);let i=Qe(1);e&&(n?Ue(n)&&(i=gr(n)):i=gr(t));const s=vw(a,r,n)?jd(a):Qe(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,c=o.width/i.x,h=o.height/i.y;if(a){const f=Pe(a),d=n&&Ue(n)?Pe(n):n;let b=f,g=mi(b);for(;g&&n&&d!==b;){const m=gr(g),v=g.getBoundingClientRect(),x=Ve(g),C=v.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,S=v.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,h*=m.y,u+=C,l+=S,b=Pe(g),g=mi(b)}}return So({width:c,height:h,x:u,y:l})}function ra(t,e){const r=ta(t).scrollLeft;return e?e.left+r:Kt(st(t)).left+r}function Ad(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-ra(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function yw(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const a=o==="fixed",i=st(n),s=e?ea(e.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=Qe(1);const c=Qe(0),h=ot(n);if((h||!h&&!a)&&((zr(n)!=="body"||Nn(i))&&(u=ta(n)),ot(n))){const d=Kt(n);l=gr(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!a?Ad(i,u):Qe(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+f.x,y:r.y*l.y-u.scrollTop*l.y+c.y+f.y}}function xw(t){return Array.from(t.getClientRects())}function ww(t){const e=st(t),r=ta(t),n=t.ownerDocument.body,o=ke(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=ke(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+ra(t);const s=-r.scrollTop;return Ve(n).direction==="rtl"&&(i+=ke(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const El=25;function Sw(t,e){const r=Pe(t),n=st(t),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const c=ys();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=ra(n);if(l<=0){const c=n.ownerDocument,h=c.body,f=getComputedStyle(h),d=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(n.clientWidth-h.clientWidth-d);b<=El&&(a-=b)}else l<=El&&(a+=l);return{width:a,height:i,x:s,y:u}}const Cw=new Set(["absolute","fixed"]);function Ew(t,e){const r=Kt(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=ot(t)?gr(t):Qe(1),i=t.clientWidth*a.x,s=t.clientHeight*a.y,u=o*a.x,l=n*a.y;return{width:i,height:s,x:u,y:l}}function Nl(t,e,r){let n;if(e==="viewport")n=Sw(t,r);else if(e==="document")n=ww(st(t));else if(Ue(e))n=Ew(e,r);else{const o=jd(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return So(n)}function Od(t,e){const r=$t(t);return r===e||!Ue(r)||wr(r)?!1:Ve(r).position==="fixed"||Od(r,e)}function Nw(t,e){const r=e.get(t);if(r)return r;let n=fn(t,[],!1).filter(s=>Ue(s)&&zr(s)!=="body"),o=null;const a=Ve(t).position==="fixed";let i=a?$t(t):t;for(;Ue(i)&&!wr(i);){const s=Ve(i),u=vs(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&Cw.has(o.position)||Nn(i)&&!u&&Od(t,i))?n=n.filter(c=>c!==i):o=s,i=$t(i)}return e.set(t,n),n}function Tw(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?ea(e)?[]:Nw(e,this._c):[].concat(r),n],s=i[0],u=i.reduce((l,c)=>{const h=Nl(e,c,o);return l.top=ke(h.top,l.top),l.right=Lt(h.right,l.right),l.bottom=Lt(h.bottom,l.bottom),l.left=ke(h.left,l.left),l},Nl(e,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function jw(t){const{width:e,height:r}=Td(t);return{width:e,height:r}}function Aw(t,e,r){const n=ot(e),o=st(e),a=r==="fixed",i=Kt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=Qe(0);function l(){u.x=ra(o)}if(n||!n&&!a)if((zr(e)!=="body"||Nn(o))&&(s=ta(e)),n){const d=Kt(e,!0,a,e);u.x=d.x+e.clientLeft,u.y=d.y+e.clientTop}else o&&l();a&&!n&&o&&l();const c=o&&!n&&!a?Ad(o,s):Qe(0),h=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:h,y:f,width:i.width,height:i.height}}function Ia(t){return Ve(t).position==="static"}function Tl(t,e){if(!ot(t)||Ve(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return st(t)===r&&(r=r.ownerDocument.body),r}function kd(t,e){const r=Pe(t);if(ea(t))return r;if(!ot(t)){let o=$t(t);for(;o&&!wr(o);){if(Ue(o)&&!Ia(o))return o;o=$t(o)}return r}let n=Tl(t,e);for(;n&&cw(n)&&Ia(n);)n=Tl(n,e);return n&&wr(n)&&Ia(n)&&!vs(n)?r:n||mw(t)||r}const Ow=async function(t){const e=this.getOffsetParent||kd,r=this.getDimensions,n=await r(t.floating);return{reference:Aw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function kw(t){return Ve(t).direction==="rtl"}const Pw={convertOffsetParentRelativeRectToViewportRelativeRect:yw,getDocumentElement:st,getClippingRect:Tw,getOffsetParent:kd,getElementRects:Ow,getClientRects:xw,getDimensions:jw,getScale:gr,isElement:Ue,isRTL:kw};function Pd(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function _w(t,e){let r=null,n;const o=st(t);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=l;if(s||e(),!f||!d)return;const b=Hn(h),g=Hn(o.clientWidth-(c+f)),m=Hn(o.clientHeight-(h+d)),v=Hn(c),C={rootMargin:-b+"px "+-g+"px "+-m+"px "+-v+"px",threshold:ke(0,Lt(1,u))||1};let S=!0;function j(k){const _=k[0].intersectionRatio;if(_!==u){if(!S)return i();_?i(!1,_):n=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!Pd(l,t.getBoundingClientRect())&&i(),S=!1}try{r=new IntersectionObserver(j,{...C,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,C)}r.observe(t)}return i(!0),a}function Rw(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=xs(t),c=o||a?[...l?fn(l):[],...fn(e)]:[];c.forEach(v=>{o&&v.addEventListener("scroll",r,{passive:!0}),a&&v.addEventListener("resize",r)});const h=l&&s?_w(l,r):null;let f=-1,d=null;i&&(d=new ResizeObserver(v=>{let[x]=v;x&&x.target===l&&d&&(d.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=d)==null||C.observe(e)})),r()}),l&&!u&&d.observe(l),d.observe(e));let b,g=u?Kt(t):null;u&&m();function m(){const v=Kt(t);g&&!Pd(g,v)&&r(),g=v,b=requestAnimationFrame(m)}return r(),()=>{var v;c.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),h==null||h(),(v=d)==null||v.disconnect(),d=null,u&&cancelAnimationFrame(b)}}const Iw=ow,Dw=aw,Mw=tw,Lw=sw,$w=rw,jl=ew,Bw=iw,zw=(t,e,r)=>{const n=new Map,o={platform:Pw,...r},a={...o.platform,_c:n};return Q2(t,e,{...o,platform:a})};var Hw=typeof document<"u",Fw=function(){},to=Hw?w.useLayoutEffect:Fw;function Co(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,o;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(!Co(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&t.$$typeof)&&!Co(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function _d(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Al(t,e){const r=_d(t);return Math.round(e*r)/r}function Da(t){const e=y.useRef(t);return to(()=>{e.current=t}),e}function qw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=t,[c,h]=y.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=y.useState(n);Co(f,n)||d(n);const[b,g]=y.useState(null),[m,v]=y.useState(null),x=y.useCallback(R=>{R!==k.current&&(k.current=R,g(R))},[]),C=y.useCallback(R=>{R!==_.current&&(_.current=R,v(R))},[]),S=a||b,j=i||m,k=y.useRef(null),_=y.useRef(null),D=y.useRef(c),L=u!=null,$=Da(u),E=Da(o),T=Da(l),P=y.useCallback(()=>{if(!k.current||!_.current)return;const R={placement:e,strategy:r,middleware:f};E.current&&(R.platform=E.current),zw(k.current,_.current,R).then(M=>{const q={...M,isPositioned:T.current!==!1};I.current&&!Co(D.current,q)&&(D.current=q,hc.flushSync(()=>{h(q)}))})},[f,e,r,E,T]);to(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[l]);const I=y.useRef(!1);to(()=>(I.current=!0,()=>{I.current=!1}),[]),to(()=>{if(S&&(k.current=S),j&&(_.current=j),S&&j){if($.current)return $.current(S,j,P);P()}},[S,j,P,$,L]);const N=y.useMemo(()=>({reference:k,floating:_,setReference:x,setFloating:C}),[x,C]),O=y.useMemo(()=>({reference:S,floating:j}),[S,j]),A=y.useMemo(()=>{const R={position:r,left:0,top:0};if(!O.floating)return R;const M=Al(O.floating,c.x),q=Al(O.floating,c.y);return s?{...R,transform:"translate("+M+"px, "+q+"px)",..._d(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:q}},[r,s,O.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:P,refs:N,elements:O,floatingStyles:A}),[c,P,N,O,A])}const Uw=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?jl({element:n.current,padding:o}).fn(r):{}:n?jl({element:n,padding:o}).fn(r):{}}}},Vw=(t,e)=>({...Iw(t),options:[t,e]}),Ww=(t,e)=>({...Dw(t),options:[t,e]}),Gw=(t,e)=>({...Bw(t),options:[t,e]}),Yw=(t,e)=>({...Mw(t),options:[t,e]}),Xw=(t,e)=>({...Lw(t),options:[t,e]}),Kw=(t,e)=>({...$w(t),options:[t,e]}),Jw=(t,e)=>({...Uw(t),options:[t,e]});var Zw="Arrow",Rd=y.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...a}=t;return p.jsx(be.svg,{...a,ref:e,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Rd.displayName=Zw;var Qw=Rd;function Id(t){const[e,r]=y.useState(void 0);return Mt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=t.offsetWidth,s=t.offsetHeight;r({width:i,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var ws="Popper",[Dd,Md]=rr(ws),[e3,Ld]=Dd(ws),$d=t=>{const{__scopePopper:e,children:r}=t,[n,o]=y.useState(null);return p.jsx(e3,{scope:e,anchor:n,onAnchorChange:o,children:r})};$d.displayName=ws;var Bd="PopperAnchor",zd=y.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=Ld(Bd,r),i=y.useRef(null),s=Se(e,i),u=y.useRef(null);return y.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:p.jsx(be.div,{...o,ref:s})});zd.displayName=Bd;var Ss="PopperContent",[t3,r3]=Dd(Ss),Hd=y.forwardRef((t,e)=>{var H,Te,xe,ge,Ge,ct;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:b,...g}=t,m=Ld(Ss,r),[v,x]=y.useState(null),C=Se(e,Ye=>x(Ye)),[S,j]=y.useState(null),k=Id(S),_=(k==null?void 0:k.width)??0,D=(k==null?void 0:k.height)??0,L=n+(a!=="center"?"-"+a:""),$=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},E=Array.isArray(l)?l:[l],T=E.length>0,P={padding:$,boundary:E.filter(o3),altBoundary:T},{refs:I,floatingStyles:N,placement:O,isPositioned:A,middlewareData:R}=qw({strategy:"fixed",placement:L,whileElementsMounted:(...Ye)=>Rw(...Ye,{animationFrame:d==="always"}),elements:{reference:m.anchor},middleware:[Vw({mainAxis:o+D,alignmentAxis:i}),u&&Ww({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Gw():void 0,...P}),u&&Yw({...P}),Xw({...P,apply:({elements:Ye,rects:In,availableWidth:ya,availableHeight:Dn})=>{const{width:xa,height:Ur}=In.reference,ir=Ye.floating.style;ir.setProperty("--radix-popper-available-width",`${ya}px`),ir.setProperty("--radix-popper-available-height",`${Dn}px`),ir.setProperty("--radix-popper-anchor-width",`${xa}px`),ir.setProperty("--radix-popper-anchor-height",`${Ur}px`)}}),S&&Jw({element:S,padding:s}),a3({arrowWidth:_,arrowHeight:D}),f&&Kw({strategy:"referenceHidden",...P})]}),[M,q]=Ud(O),fe=Me(b);Mt(()=>{A&&(fe==null||fe())},[A,fe]);const Q=(H=R.arrow)==null?void 0:H.x,B=(Te=R.arrow)==null?void 0:Te.y,z=((xe=R.arrow)==null?void 0:xe.centerOffset)!==0,[me,X]=y.useState();return Mt(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:A?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(ge=R.transformOrigin)==null?void 0:ge.x,(Ge=R.transformOrigin)==null?void 0:Ge.y].join(" "),...((ct=R.hide)==null?void 0:ct.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(t3,{scope:r,placedSide:M,onArrowChange:j,arrowX:Q,arrowY:B,shouldHideArrow:z,children:p.jsx(be.div,{"data-side":M,"data-align":q,...g,ref:C,style:{...g.style,animation:A?void 0:"none"}})})})});Hd.displayName=Ss;var Fd="PopperArrow",n3={top:"bottom",right:"left",bottom:"top",left:"right"},qd=y.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,a=r3(Fd,n),i=n3[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(Qw,{...o,ref:r,style:{...o.style,display:"block"}})})});qd.displayName=Fd;function o3(t){return t!==null}var a3=t=>({name:"transformOrigin",options:t,fn(e){var m,v,x;const{placement:r,rects:n,middlewareData:o}=e,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=i?0:t.arrowWidth,u=i?0:t.arrowHeight,[l,c]=Ud(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((v=o.arrow)==null?void 0:v.x)??0)+s/2,d=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let b="",g="";return l==="bottom"?(b=i?h:`${f}px`,g=`${-u}px`):l==="top"?(b=i?h:`${f}px`,g=`${n.floating.height+u}px`):l==="right"?(b=`${-u}px`,g=i?h:`${d}px`):l==="left"&&(b=`${n.floating.width+u}px`,g=i?h:`${d}px`),{data:{x:b,y:g}}}});function Ud(t){const[e,r="center"]=t.split("-");return[e,r]}var i3=$d,s3=zd,u3=Hd,l3=qd;function c3(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var nr=t=>{const{present:e,children:r}=t,n=d3(e),o=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),a=Se(n.ref,f3(o));return typeof r=="function"||n.isPresent?y.cloneElement(o,{ref:a}):null};nr.displayName="Presence";function d3(t){const[e,r]=y.useState(),n=y.useRef(null),o=y.useRef(t),a=y.useRef("none"),i=t?"mounted":"unmounted",[s,u]=c3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const l=Fn(n.current);a.current=s==="mounted"?l:"none"},[s]),Mt(()=>{const l=n.current,c=o.current;if(c!==t){const f=a.current,d=Fn(l);t?u("MOUNT"):d==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,u]),Mt(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const g=Fn(n.current).includes(CSS.escape(d.animationName));if(d.target===e&&g&&(u("ANIMATION_END"),!o.current)){const m=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=m)})}},f=d=>{d.target===e&&(a.current=Fn(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:y.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Fn(t){return(t==null?void 0:t.animationName)||"none"}function f3(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}var p3=Symbol("radix.slottable");function h3(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=p3,e}var m3=y[" useInsertionEffect ".trim().toString()]||Mt;function Hr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,a,i]=b3({defaultProp:e,onChange:r}),s=t!==void 0,u=s?t:o;{const c=y.useRef(t!==void 0);y.useEffect(()=>{const h=c.current;h!==s&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${s?"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=s},[s,n])}const l=y.useCallback(c=>{var h;if(s){const f=g3(c)?c(t):c;f!==t&&((h=i.current)==null||h.call(i,f))}else a(c)},[s,t,a,i]);return[u,l]}function b3({defaultProp:t,onChange:e}){const[r,n]=y.useState(t),o=y.useRef(r),a=y.useRef(e);return m3(()=>{a.current=e},[e]),y.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function g3(t){return typeof t=="function"}var v3=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"}),y3="VisuallyHidden",Vd=y.forwardRef((t,e)=>p.jsx(be.span,{...t,ref:e,style:{...v3,...t.style}}));Vd.displayName=y3;var x3=Vd,[na]=rr("Tooltip",[Md]),oa=Md(),Wd="TooltipProvider",w3=700,bi="tooltip.open",[S3,Cs]=na(Wd),Gd=t=>{const{__scopeTooltip:e,delayDuration:r=w3,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=t,i=y.useRef(!0),s=y.useRef(!1),u=y.useRef(0);return y.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(S3,{scope:e,isOpenDelayedRef:i,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:y.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:a})};Gd.displayName=Wd;var pn="Tooltip",[C3,aa]=na(pn),Yd=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=t,u=Cs(pn,t.__scopeTooltip),l=oa(e),[c,h]=y.useState(null),f=wd(),d=y.useRef(0),b=i??u.disableHoverableContent,g=s??u.delayDuration,m=y.useRef(!1),[v,x]=Hr({prop:n,defaultProp:o??!1,onChange:_=>{_?(u.onOpen(),document.dispatchEvent(new CustomEvent(bi))):u.onClose(),a==null||a(_)},caller:pn}),C=y.useMemo(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),S=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,m.current=!1,x(!0)},[x]),j=y.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),k=y.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{m.current=!0,x(!0),d.current=0},g)},[g,x]);return y.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),p.jsx(i3,{...l,children:p.jsx(C3,{scope:e,contentId:f,open:v,stateAttribute:C,trigger:c,onTriggerChange:h,onTriggerEnter:y.useCallback(()=>{u.isOpenDelayedRef.current?k():S()},[u.isOpenDelayedRef,k,S]),onTriggerLeave:y.useCallback(()=>{b?j():(window.clearTimeout(d.current),d.current=0)},[j,b]),onOpen:S,onClose:j,disableHoverableContent:b,children:r})})};Yd.displayName=pn;var gi="TooltipTrigger",Xd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=aa(gi,r),a=Cs(gi,r),i=oa(r),s=y.useRef(null),u=Se(e,s,o.onTriggerChange),l=y.useRef(!1),c=y.useRef(!1),h=y.useCallback(()=>l.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(s3,{asChild:!0,...i,children:p.jsx(be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:le(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:le(t.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:le(t.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:le(t.onFocus,()=>{l.current||o.onOpen()}),onBlur:le(t.onBlur,o.onClose),onClick:le(t.onClick,o.onClose)})})});Xd.displayName=gi;var E3="TooltipPortal",[mC,N3]=na(E3,{forceMount:void 0}),Sr="TooltipContent",Kd=y.forwardRef((t,e)=>{const r=N3(Sr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=t,i=aa(Sr,t.__scopeTooltip);return p.jsx(nr,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Jd,{side:o,...a,ref:e}):p.jsx(T3,{side:o,...a,ref:e})})}),T3=y.forwardRef((t,e)=>{const r=aa(Sr,t.__scopeTooltip),n=Cs(Sr,t.__scopeTooltip),o=y.useRef(null),a=Se(e,o),[i,s]=y.useState(null),{trigger:u,onClose:l}=r,c=o.current,{onPointerInTransitChange:h}=n,f=y.useCallback(()=>{s(null),h(!1)},[h]),d=y.useCallback((b,g)=>{const m=b.currentTarget,v={x:b.clientX,y:b.clientY},x=P3(v,m.getBoundingClientRect()),C=_3(v,x),S=R3(g.getBoundingClientRect()),j=D3([...C,...S]);s(j),h(!0)},[h]);return y.useEffect(()=>()=>f(),[f]),y.useEffect(()=>{if(u&&c){const b=m=>d(m,c),g=m=>d(m,u);return u.addEventListener("pointerleave",b),c.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",g)}}},[u,c,d,f]),y.useEffect(()=>{if(i){const b=g=>{const m=g.target,v={x:g.clientX,y:g.clientY},x=(u==null?void 0:u.contains(m))||(c==null?void 0:c.contains(m)),C=!I3(v,i);x?f():C&&(f(),l())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[u,c,i,l,f]),p.jsx(Jd,{...t,ref:a})}),[j3,A3]=na(pn,{isInside:!1}),O3=h3("TooltipContent"),Jd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=t,u=aa(Sr,r),l=oa(r),{onClose:c}=u;return y.useEffect(()=>(document.addEventListener(bi,c),()=>document.removeEventListener(bi,c)),[c]),y.useEffect(()=>{if(u.trigger){const h=f=>{const d=f.target;d!=null&&d.contains(u.trigger)&&c()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[u.trigger,c]),p.jsx(yd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(u3,{"data-state":u.stateAttribute,...l,...s,ref:e,style:{...s.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(O3,{children:n}),p.jsx(j3,{scope:r,isInside:!0,children:p.jsx(x3,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Kd.displayName=Sr;var Zd="TooltipArrow",k3=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=oa(r);return A3(Zd,r).isInside?null:p.jsx(l3,{...o,...n,ref:e})});k3.displayName=Zd;function P3(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function _3(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 R3(t){const{top:e,right:r,bottom:n,left:o}=t;return[{x:o,y:e},{x:r,y:e},{x:r,y:n},{x:o,y:n}]}function I3(t,e){const{x:r,y:n}=t;let o=!1;for(let a=0,i=e.length-1;a<e.length;i=a++){const s=e[a],u=e[i],l=s.x,c=s.y,h=u.x,f=u.y;c>n!=f>n&&r<(h-l)*(n-c)/(f-c)+l&&(o=!o)}return o}function D3(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),M3(e)}function M3(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const o=t[n];for(;e.length>=2;){const a=e[e.length-1],i=e[e.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))e.pop();else break}e.push(o)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const o=t[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}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 L3=Gd,$3=Yd,B3=Xd,Qd=Kd;const hn=L3,Cr=$3,Er=B3,Jt=y.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Qd,{ref:n,sideOffset:e,className:Ce("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}));Jt.displayName=Qd.displayName;const vr={mobile:{icon:Xi,label:"Mobile"},tablet:{icon:Ki,label:"Tablet"},small:{icon:Yi,label:"Small Desktop"},desktop:{icon:Ji,label:"Desktop"}},V=({title:t,children:e,defaultOpen:r=!0})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border pb-3",children:[p.jsxs("button",{onClick:()=>o(!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(Vi,{className:"h-3 w-3"}):p.jsx(Wi,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},he=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a,inputClassName:i=""})=>p.jsxs("div",{className:"flex items-center justify-between",children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:s=>r(parseInt(s.target.value)),min:n,max:o,className:rt("w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",i)}),a?p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a}):null]})]}),Eo=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="px",defaultValue:i=16})=>{const s=Ee(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(g,m)=>{const v={...c,[g]:m};r(v)},d=g=>{f(s,g)},b=De.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.jsx(hn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||b?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Jt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),u?p.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:De.map(g=>{const m=vr[g].icon,v=c[g],x=v===void 0?De.find(C=>De.indexOf(C)>De.indexOf(g)&&c[C]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(hn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${g===s?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Jt,{side:"left",children:p.jsx("p",{children:vr[g].label})})]})}),p.jsx("input",{type:"number",value:v??"",placeholder:x?`${c[x]??i}`:"",onChange:C=>{const S=C.target.value===""?void 0:parseInt(C.target.value)||0;f(g,S)},min:n,max:o,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${v===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]},g)})}):p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:h(),onChange:g=>d(parseInt(g.target.value)||0),min:n,max:o,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:a})]})]})},Le=({label:t,values:e,onChange:r})=>{var s;const n=Ee(),[o,a]=w.useState(!0),i=(u,l)=>{r(o?{[n]:{top:l,right:l,bottom:l,left:l}}:{[n]:{...e[n],[u]:l}})};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:()=>a(!o),className:`text-xs px-2 py-0.5 rounded ${o?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:o?"Linked":"Individual"})]}),o?p.jsx("input",{type:"number",value:(s=e==null?void 0:e[n])==null?void 0:s.top,onChange:u=>i("top",parseInt(u.target.value)),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"flex gap-1",children:["top","right","bottom","left"].map(u=>{var l;return p.jsxs("div",{className:"text-center",children:[p.jsx("span",{className:"text-[10px] text-muted-foreground",children:u[0].toUpperCase()}),p.jsx("input",{type:"number",value:(l=e==null?void 0:e[n])==null?void 0:l[u],onChange:c=>i(u,parseInt(c.target.value)),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"})]},u)})})]})},J=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:a=""})=>p.jsxs("div",{className:rt("flex items-center justify-between",o,a),children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsx("select",{value:e,onChange:i=>n(i.target.value),className:rt("px-2 py-1 text-xs rounded border border-input bg-background ",a),children:r.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))})]}),et=({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"})]})]}),yt=({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(o=>p.jsx("button",{onClick:()=>n(o.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===o.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:o.label,children:o.icon||o.label},o.value))})]}),Bt=({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:o=>r(o.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:o=>r(o.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),ia=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit: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:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,a]})]}),p.jsx("input",{type:"range",value:e,onChange:i=>r(parseInt(i.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]}),No=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="",defaultValue:i=50})=>{const s=Ee(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(b,g)=>{const m={...c,[b]:g};r(m)},d=De.some(b=>b!=="desktop"&&c[b]!==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(),a]}),p.jsx(hn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||d?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Jt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),u?p.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:De.map(b=>{const g=vr[b].icon,m=c[b];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 ${b===s?"bg-primary/10":""}`,children:p.jsx(g,{className:"h-3 w-3 text-muted-foreground"})}),p.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:vr[b].label}),p.jsxs("span",{className:"text-xs",children:[m??"-",m!==void 0?a:""]})]}),p.jsx("input",{type:"range",value:m??c.desktop??i,onChange:v=>f(b,parseInt(v.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]},b)})}):p.jsx("input",{type:"range",value:h(),onChange:b=>f(s,parseInt(b.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]})},Es=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:o="#ffffff",borderColor:a="#FF6B35",borderWidth:i=0,borderRadius:s=8,fontWeight:u="500",fontSize:l="auto",width:c="auto",paddingX:h=16,paddingY:f=10,margin:d={top:0,right:0,bottom:0,left:0},boxShadow:b="none",opacity:g=100})=>{const m=Ee();let v,x,C;try{const{connectors:I,events:N}=oe(O=>({events:O.events}));v=I.connect,x=I.drag,C=N.selected}catch{}const S={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},j=S[r]||S.md,k=h==="auto"?j.px:h,_=f==="auto"?j.py:f,D=l==="auto"?j.fs:l,L=typeof d[m]=="object"?`${d[m].top}px ${d[m].right}px ${d[m].bottom}px ${d[m].left}px`:`${d[m]}px`,$=e==="outline"?"transparent":n,E=e==="outline"?n:o,T=e==="outline"?2:i,P=e==="outline"?n:a;return p.jsx("button",{ref:I=>I&&v&&x&&(v==null?void 0:v(x==null?void 0:x(I))),className:`cursor-move transition-all hover:opacity-90 ${C?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:$,color:E,borderWidth:`${T}px`,borderColor:P,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${D}px`,padding:`${_}px ${k}px`,margin:L,width:c==="full"?"100%":"auto",boxShadow:b==="none"?"none":b,opacity:g/100},children:t})},z3=()=>{const{actions:{setProp:t},props:e}=oe(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(V,{title:"Content",defaultOpen:!0,children:p.jsx(Bt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(yt,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(yt,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(o=>o.size=n)}),p.jsx(yt,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(o=>o.width=n)})]}),p.jsxs(V,{title:"Colors",defaultOpen:!0,children:[p.jsx(et,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(et,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(ia,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(V,{title:"Typography",defaultOpen:!1,children:[p.jsx(he,{unit:"px",label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:10,max:32}),p.jsx(J,{label:"Weight",value:e.fontWeight||"500",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)})]}),p.jsxs(V,{title:"Padding",defaultOpen:!1,children:[p.jsx(he,{unit:"px",label:"Horizontal",value:e.paddingX||16,onChange:n=>t(o=>o.paddingX=n),max:64}),p.jsx(he,{unit:"px",label:"Vertical",value:e.paddingY||10,onChange:n=>t(o=>o.paddingY=n),max:48})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(he,{unit:"px",label:"Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:50}),p.jsx(he,{unit:"px",label:"Width",value:e.borderWidth||0,onChange:n=>t(o=>o.borderWidth=n),max:10}),p.jsx(et,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(o=>o.borderColor=n)})]}),p.jsx(V,{title:"Effects",defaultOpen:!1,children:p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 2px 4px rgba(0,0,0,0.1)",label:"Small"},{value:"0 4px 12px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 8px 24px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Le,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Es.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:{desktop:{top:0,right:0,bottom:0,left:0}},boxShadow:"none",opacity:100},related:{settings:z3}};const Z=(t,e)=>t[e]||t.desktop||t.small||t.tablet||t.mobile||t||"",dr=({label:t,value:e,onChange:r,max:n=1e4})=>{var h,f,d;const o=Ee(),a=((h=e==null?void 0:e[o])==null?void 0:h.type)||"custom",i=(f=e==null?void 0:e[o])==null?void 0:f.value,s=((d=e==null?void 0:e[o])==null?void 0:d.unit)||"%",u=b=>{r(b==="none"?{[o]:{type:"none"}}:b==="auto"?{[o]:{type:"auto"}}:{[o]:{type:"custom",value:i,unit:s}})},l=b=>{r({[o]:{type:"custom",value:b,unit:s}})},c=b=>{r({[o]:{type:"custom",value:i,unit:b}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-xs font-medium",children:t}),p.jsx(J,{selectClassName:"w-full",value:a,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:u}),a==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(he,{inputClassName:"w-full h-8 rounded-l-lg",value:i,onChange:l,max:n})}),p.jsx("div",{className:"",children:p.jsx(J,{selectClassName:" h-8",value:s,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:c})})]})]})},H3=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",Ns=t=>{const e=Ee(),r=i=>{var u,l;const s=((u=t==null?void 0:t[i])==null?void 0:u[e])||((l=t==null?void 0:t[i])==null?void 0:l.desktop);return H3(s)},n=i=>Z(t==null?void 0:t[i],e),o=typeof n("padding")=="object"?`${n("padding").top}px ${n("padding").right}px ${n("padding").bottom}px ${n("padding").left}px`:`${n("padding")}px`,a=typeof n("margin")=="object"?`${n("margin").top}px ${n("margin").right}px ${n("margin").bottom}px ${n("margin").left}px`:`${n("margin")}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:o,margin:a,width:r("width"),height:r("height"),minHeight:r("minHeight"),maxHeight:r("maxHeight"),minWidth:r("minWidth"),maxWidth:r("maxWidth"),display:t.display,flexWrap:t.flexWrap,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,position:t.position||"relative",top:t.top||0,left:t.left||0}},mn={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:{desktop:{type:"custom",value:50,unit:"%"}},height:{desktop:{type:"none"}},minHeight:{desktop:{type:"custom",value:50,unit:"px"}},maxHeight:{desktop:{type:"none"}},minWidth:{desktop:{type:"none"}},maxWidth:{desktop:{type:"none"}},display:"block",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"solid",boxShadow:"none",position:"relative",top:0,left:0},sa=t=>{const{actions:{setProp:e},props:r}=oe(a=>({props:a.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},o=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(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(J,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:a=>e(i=>i.display=a)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(J,{label:"Wrap",value:r.flexWrap||"nowrap",options:[{value:"nowrap",label:"No Wrap"},{value:"wrap",label:"Wrap"},{value:"wrap-reverse",label:"Wrap Reverse"}],onChange:a=>e(i=>i.flexWrap=a)}),p.jsx(yt,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:a=>e(i=>i.flexDirection=a)}),p.jsx(J,{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:a=>e(i=>i.justifyContent=a)}),p.jsx(he,{unit:"px",label:"Gap",value:r.gap||0,onChange:a=>e(i=>i.gap=a),max:64})]})]}),p.jsxs(V,{title:"Sizing",defaultOpen:!0,children:[p.jsx(dr,{label:"Width",value:r.width,onChange:a=>e(i=>i.width={...i.width,...a}),max:1e4}),p.jsx(dr,{label:"Min Width",value:r.minWidth,onChange:a=>e(i=>i.minWidth={...i.minWidth,...a}),max:1e4}),p.jsx(dr,{label:"Max Width",value:r.maxWidth,onChange:a=>e(i=>i.maxWidth={...i.maxWidth,...a}),max:1e4}),p.jsx(dr,{label:"Height",value:r.height,onChange:a=>e(i=>i.height={...i.height,...a}),max:1e4}),p.jsx(dr,{label:"Min Height",value:r.minHeight,onChange:a=>e(i=>i.minHeight={...i.minHeight,...a}),max:1e4}),p.jsx(dr,{label:"Max Height",value:r.maxHeight,onChange:a=>e(i=>i.maxHeight={...i.maxHeight,...a}),max:1e4})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Le,{label:"Padding",values:n,onChange:a=>e(i=>i.padding={...i.padding,...a})}),p.jsx(Le,{label:"Margin",values:o,onChange:a=>e(i=>i.margin={...i.margin,...a})})]}),p.jsxs(V,{title:"Background",defaultOpen:!1,children:[p.jsx(et,{label:"Color",value:r.backgroundColor||"transparent",onChange:a=>e(i=>i.backgroundColor=a)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:a=>e(i=>i.backgroundImage=a.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(J,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:a=>e(i=>i.backgroundSize=a)}),p.jsx(J,{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:a=>e(i=>i.backgroundRepeat=a)})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(he,{unit:"px",label:"Radius",value:r.borderRadius,onChange:a=>e(i=>i.borderRadius=a),max:5e3}),p.jsx(he,{unit:"px",label:"Width",value:r.borderWidth||1,onChange:a=>e(i=>i.borderWidth=a),max:10}),p.jsx(et,{label:"Color",value:r.borderColor||"transparent",onChange:a=>e(i=>i.borderColor=a)})]})]})},Tn=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=oe(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{ref:o=>{o&&e&&r&&e(r(o))},style:Ns(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})},F3={...mn,maxWidth:{desktop:{type:"custom",value:"1024",unit:"px"}},padding:{desktop:{top:0,right:15,bottom:0,left:15}}};Tn.craft={isCanvas:!0,props:F3,displayName:"Container",related:{settings:sa},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const q3=/\{\{\s*([\w.]+)\s*\}\}/g,U3=(t,e)=>{if(!t||!e)return;const r=e.split(".");let n=t;for(const o of r){if(n==null)return;n=n[o]}return n},To=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,o)=>{const a=U3(e,o);return a==null?n:String(a)})},V3=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),W3=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(q3.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},G3={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"}},Y3={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"}]}},X3=({variable:t,onCopy:e})=>{const[r,n]=w.useState(!1),o=()=>{navigator.clipboard.writeText(`{{ ${t.key} }}`),n(!0),e==null||e(`{{ ${t.key} }}`),setTimeout(()=>n(!1),1500)};return p.jsxs("button",{onClick:o,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(Ui,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(sh,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},K3=({category:t,data:e,defaultOpen:r=!1})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border last:border-0",children:[p.jsxs("button",{onClick:()=>o(!n),className:"w-full flex items-center gap-2 py-2 text-left hover:bg-muted/50 transition-colors",children:[n?p.jsx(Vi,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Wi,{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(a=>p.jsx(X3,{variable:a},a.key))})]})},ef=({className:t})=>p.jsxs("div",{className:Ce("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(Y3).map(([e,r],n)=>p.jsx(K3,{category:e,data:r,defaultOpen:n===0},e))})]});var tf={},bn={},Ts={},gn={},js={};Object.defineProperty(js,"__esModule",{value:!0});js.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 As={};Object.defineProperty(As,"__esModule",{value:!0});As.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var vi={};(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(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function n(a){var i;return a>=55296&&a<=57343||a>1114111?65533:(i=r.get(a))!==null&&i!==void 0?i:a}t.replaceCodePoint=n;function o(a){return(0,t.fromCodePoint)(n(a))}t.default=o})(vi);(function(t){var e=F&&F.__createBinding||(Object.create?function(E,T,P,I){I===void 0&&(I=P);var N=Object.getOwnPropertyDescriptor(T,P);(!N||("get"in N?!T.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return T[P]}}),Object.defineProperty(E,I,N)}:function(E,T,P,I){I===void 0&&(I=P),E[I]=T[P]}),r=F&&F.__setModuleDefault||(Object.create?function(E,T){Object.defineProperty(E,"default",{enumerable:!0,value:T})}:function(E,T){E.default=T}),n=F&&F.__importStar||function(E){if(E&&E.__esModule)return E;var T={};if(E!=null)for(var P in E)P!=="default"&&Object.prototype.hasOwnProperty.call(E,P)&&e(T,E,P);return r(T,E),T},o=F&&F.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};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 a=o(js);t.htmlDecodeTree=a.default;var i=o(As);t.xmlDecodeTree=i.default;var s=n(vi);t.decodeCodePoint=s.default;var u=vi;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(E){E[E.NUM=35]="NUM",E[E.SEMI=59]="SEMI",E[E.EQUALS=61]="EQUALS",E[E.ZERO=48]="ZERO",E[E.NINE=57]="NINE",E[E.LOWER_A=97]="LOWER_A",E[E.LOWER_F=102]="LOWER_F",E[E.LOWER_X=120]="LOWER_X",E[E.LOWER_Z=122]="LOWER_Z",E[E.UPPER_A=65]="UPPER_A",E[E.UPPER_F=70]="UPPER_F",E[E.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(E){E[E.VALUE_LENGTH=49152]="VALUE_LENGTH",E[E.BRANCH_LENGTH=16256]="BRANCH_LENGTH",E[E.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(E){return E>=l.ZERO&&E<=l.NINE}function d(E){return E>=l.UPPER_A&&E<=l.UPPER_F||E>=l.LOWER_A&&E<=l.LOWER_F}function b(E){return E>=l.UPPER_A&&E<=l.UPPER_Z||E>=l.LOWER_A&&E<=l.LOWER_Z||f(E)}function g(E){return E===l.EQUALS||b(E)}var m;(function(E){E[E.EntityStart=0]="EntityStart",E[E.NumericStart=1]="NumericStart",E[E.NumericDecimal=2]="NumericDecimal",E[E.NumericHex=3]="NumericHex",E[E.NamedEntity=4]="NamedEntity"})(m||(m={}));var v;(function(E){E[E.Legacy=0]="Legacy",E[E.Strict=1]="Strict",E[E.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function E(T,P,I){this.decodeTree=T,this.emitCodePoint=P,this.errors=I,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=v.Strict}return E.prototype.startEntity=function(T){this.decodeMode=T,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},E.prototype.write=function(T,P){switch(this.state){case m.EntityStart:return T.charCodeAt(P)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(T,P+1)):(this.state=m.NamedEntity,this.stateNamedEntity(T,P));case m.NumericStart:return this.stateNumericStart(T,P);case m.NumericDecimal:return this.stateNumericDecimal(T,P);case m.NumericHex:return this.stateNumericHex(T,P);case m.NamedEntity:return this.stateNamedEntity(T,P)}},E.prototype.stateNumericStart=function(T,P){return P>=T.length?-1:(T.charCodeAt(P)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(T,P+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(T,P))},E.prototype.addToNumericResult=function(T,P,I,N){if(P!==I){var O=I-P;this.result=this.result*Math.pow(N,O)+parseInt(T.substr(P,O),N),this.consumed+=O}},E.prototype.stateNumericHex=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N)||d(N))P+=1;else return this.addToNumericResult(T,I,P,16),this.emitNumericEntity(N,3)}return this.addToNumericResult(T,I,P,16),-1},E.prototype.stateNumericDecimal=function(T,P){for(var I=P;P<T.length;){var N=T.charCodeAt(P);if(f(N))P+=1;else return this.addToNumericResult(T,I,P,10),this.emitNumericEntity(N,2)}return this.addToNumericResult(T,I,P,10),-1},E.prototype.emitNumericEntity=function(T,P){var I;if(this.consumed<=P)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===v.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},E.prototype.stateNamedEntity=function(T,P){for(var I=this.decodeTree,N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14;P<T.length;P++,this.excess++){var A=T.charCodeAt(P);if(this.treeIndex=S(I,N,this.treeIndex+Math.max(1,O),A),this.treeIndex<0)return this.result===0||this.decodeMode===v.Attribute&&(O===0||g(A))?0:this.emitNotTerminatedNamedEntity();if(N=I[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14,O!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==v.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},E.prototype.emitNotTerminatedNamedEntity=function(){var T,P=this,I=P.result,N=P.decodeTree,O=(N[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},E.prototype.emitNamedEntityData=function(T,P,I){var N=this.decodeTree;return this.emitCodePoint(P===1?N[T]&~h.VALUE_LENGTH:N[T+1],I),P===3&&this.emitCodePoint(N[T+2],I),I},E.prototype.end=function(){var T;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==v.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},E}();t.EntityDecoder=x;function C(E){var T="",P=new x(E,function(I){return T+=(0,s.fromCodePoint)(I)});return function(N,O){for(var A=0,R=0;(R=N.indexOf("&",R))>=0;){T+=N.slice(A,R),P.startEntity(O);var M=P.write(N,R+1);if(M<0){A=R+P.end();break}A=R+M,R=M===0?A+1:A}var q=T+N.slice(A);return T="",q}}function S(E,T,P,I){var N=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(N===0)return O!==0&&I===O?P:-1;if(O){var A=I-O;return A<0||A>=N?-1:E[P+A]-1}for(var R=P,M=R+N-1;R<=M;){var q=R+M>>>1,fe=E[q];if(fe<I)R=q+1;else if(fe>I)M=q-1;else return E[q+N]}return-1}t.determineBranch=S;var j=C(a.default),k=C(i.default);function _(E,T){return T===void 0&&(T=v.Legacy),j(E,T)}t.decodeHTML=_;function D(E){return j(E,v.Attribute)}t.decodeHTMLAttribute=D;function L(E){return j(E,v.Strict)}t.decodeHTMLStrict=L;function $(E){return k(E,v.Strict)}t.decodeXML=$})(gn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=gn,r;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(f){return f===r.Space||f===r.NewLine||f===r.Tab||f===r.FormFeed||f===r.CarriageReturn}function a(f){return f===r.Slash||f===r.Gt||o(f)}function i(f){return f>=r.Zero&&f<=r.Nine}function s(f){return f>=r.LowerA&&f<=r.LowerZ||f>=r.UpperA&&f<=r.UpperZ}function u(f){return f>=r.UpperA&&f<=r.UpperF||f>=r.LowerA&&f<=r.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.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 f(d,b){var g=d.xmlMode,m=g===void 0?!1:g,v=d.decodeEntities,x=v===void 0?!0:v;this.cbs=b,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=m,this.decodeEntities=x,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.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},f.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},f.prototype.getIndex=function(){return this.index},f.prototype.getSectionStart=function(){return this.sectionStart},f.prototype.stateText=function(d){d===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&&d===r.Amp&&(this.state=n.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(d){var b=this.sequenceIndex===this.currentSequence.length,g=b?a(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!g)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(d)},f.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===r.Gt||o(d)){var b=this.index-this.currentSequence.length;if(this.sectionStart<b){var g=this.index;this.index=b,this.cbs.ontext(this.sectionStart,b),this.index=g}this.isSpecial=!1,this.sectionStart=b+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===r.Lt)},f.prototype.stateCDATASequence=function(d){d===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(d))},f.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},f.prototype.stateInCommentLike=function(d){d===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):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},f.prototype.isTagStartChar=function(d){return this.xmlMode?!a(d):s(d)},f.prototype.startSpecial=function(d,b){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=b,this.state=n.SpecialStartSequence},f.prototype.stateBeforeTagName=function(d){if(d===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var b=d|32;this.sectionStart=this.index,!this.xmlMode&&b===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&b===c.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else d===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(d))},f.prototype.stateInTagName=function(d){a(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateBeforeClosingTagName=function(d){o(d)||(d===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(d)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},f.prototype.stateInClosingTagName=function(d){(d===r.Gt||o(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(d))},f.prototype.stateAfterClosingTagName=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeAttributeName=function(d){d===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):d===r.Slash?this.state=n.InSelfClosingTag:o(d)||(this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateInSelfClosingTag=function(d){d===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(d)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateInAttributeName=function(d){(d===r.Eq||a(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(d))},f.prototype.stateAfterAttributeName=function(d){d===r.Eq?this.state=n.BeforeAttributeValue:d===r.Slash||d===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):o(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateBeforeAttributeValue=function(d){d===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):d===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(d)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},f.prototype.handleInAttributeValue=function(d,b){d===b||!this.decodeEntities&&this.fastForwardTo(b)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(b===r.DoubleQuote?l.Double:l.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,r.DoubleQuote)},f.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,r.SingleQuote)},f.prototype.stateInAttributeValueNoQuotes=function(d){o(d)||d===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(d)):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateBeforeDeclaration=function(d){d===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=d===r.Dash?n.BeforeComment:n.InDeclaration},f.prototype.stateInDeclaration=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateInProcessingInstruction=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeComment=function(d){d===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},f.prototype.stateInSpecialComment=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeSpecialS=function(d){var b=d|32;b===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):b===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(d))},f.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===r.Number?this.state=n.BeforeNumericEntity:d===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(d))},f.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var b=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(b){var g=(b>>14)-1;if(!this.allowLegacyEntity()&&d!==r.Semi)this.trieIndex+=g;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=g,this.entityExcess=0,this.sectionStart=this.index+1,g===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){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])}}},f.prototype.stateBeforeNumericEntity=function(d){(d|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(d))},f.prototype.emitNumericEntity=function(d){var b=this.index-this.entityExcess-1,g=b+2+ +(this.state===n.InHexEntity);g!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*10+(d-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*16+(d-r.Zero),this.entityExcess++):u(d)?(this.entityResult=this.entityResult*16+((d|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},f.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))},f.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},f.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(d);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case n.InSpecialTag:{this.stateInSpecialTag(d);break}case n.CDATASequence:{this.stateCDATASequence(d);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case n.InAttributeName:{this.stateInAttributeName(d);break}case n.InCommentLike:{this.stateInCommentLike(d);break}case n.InSpecialComment:{this.stateInSpecialComment(d);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case n.InTagName:{this.stateInTagName(d);break}case n.InClosingTagName:{this.stateInClosingTagName(d);break}case n.BeforeTagName:{this.stateBeforeTagName(d);break}case n.AfterAttributeName:{this.stateAfterAttributeName(d);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case n.InDeclaration:{this.stateInDeclaration(d);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case n.BeforeComment:{this.stateBeforeComment(d);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case n.InNamedEntity:{this.stateInNamedEntity(d);break}case n.BeforeEntity:{this.stateBeforeEntity(d);break}case n.InHexEntity:{this.stateInHexEntity(d);break}case n.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},f.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},f.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,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,d)},f.prototype.emitPartial=function(d,b){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(d,b):this.cbs.ontext(d,b)},f.prototype.emitCodePoint=function(d){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},f}();t.default=h})(Ts);var J3=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Z3=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Q3=F&&F.__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)&&J3(e,t,r);return Z3(e,t),e};Object.defineProperty(bn,"__esModule",{value:!0});bn.Parser=void 0;var qn=Q3(Ts),Ol=gn,fr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),ne=new Set(["p"]),kl=new Set(["thead","tbody"]),Pl=new Set(["dd","dt"]),_l=new Set(["rt","rp"]),e6=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",ne],["h1",ne],["h2",ne],["h3",ne],["h4",ne],["h5",ne],["h6",ne],["select",fr],["input",fr],["output",fr],["button",fr],["datalist",fr],["textarea",fr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Pl],["dt",Pl],["address",ne],["article",ne],["aside",ne],["blockquote",ne],["details",ne],["div",ne],["dl",ne],["fieldset",ne],["figcaption",ne],["figure",ne],["footer",ne],["form",ne],["header",ne],["hr",ne],["main",ne],["nav",ne],["ol",ne],["pre",ne],["section",ne],["table",ne],["ul",ne],["rt",_l],["rp",_l],["tbody",kl],["tfoot",kl]]),t6=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Rl=new Set(["math","svg"]),Il=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),r6=/\s|\//,n6=function(){function t(e,r){r===void 0&&(r={});var n,o,a,i,s;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=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:qn.default)(this.options,this),(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this)}return t.prototype.ontext=function(e,r){var n,o,a=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,a),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,Ol.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&t6.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,o,a;this.openTagStart=this.startIndex,this.tagname=e;var i=!this.options.xmlMode&&e6.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){var s=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,s,!0)}this.isVoidElement(e)||(this.stack.push(e),Rl.has(e)?this.foreignContext.push(!0):Il.has(e)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,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,o,a,i,s,u;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Rl.has(l)||Il.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(i=(a=this.cbs).onopentag)===null||i===void 0||i.call(a,"br",{},!0),(u=(s=this.cbs).onclosetag)===null||u===void 0||u.call(s,"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,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!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,Ol.fromCodePoint)(e)},t.prototype.onattribend=function(e,r){var n,o;this.endIndex=r,(o=(n=this.cbs).onattribute)===null||o===void 0||o.call(n,this.attribname,this.attribvalue,e===qn.QuoteType.Double?'"':e===qn.QuoteType.Single?"'":e===qn.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(r6),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 o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".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 o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,a,i,s;this.endIndex=r,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(e,r-n)),(s=(i=this.cbs).oncommentend)===null||s===void 0||s.call(i),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,a,i,s,u,l,c,h,f,d;this.endIndex=r;var b=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,b),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(b,"]]")),(d=(f=this.cbs).oncommentend)===null||d===void 0||d.call(f)),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,o;(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,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.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}();bn.Parser=n6;var St={},Fr={};(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})(Fr);var K={},zt=F&&F.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},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)}}(),nn=F&&F.__assign||function(){return nn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nn.apply(this,arguments)};Object.defineProperty(K,"__esModule",{value:!0});K.cloneNode=K.hasChildren=K.isDocument=K.isDirective=K.isComment=K.isText=K.isCDATA=K.isTag=K.Element=K.Document=K.CDATA=K.NodeWithChildren=K.ProcessingInstruction=K.Comment=K.Text=K.DataNode=K.Node=void 0;var Oe=Fr,Os=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),ks(this,e)},t}();K.Node=Os;var ua=function(t){zt(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}(Os);K.DataNode=ua;var rf=function(t){zt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Oe.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(ua);K.Text=rf;var nf=function(t){zt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Oe.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(ua);K.Comment=nf;var of=function(t){zt(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=Oe.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(ua);K.ProcessingInstruction=of;var la=function(t){zt(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}(Os);K.NodeWithChildren=la;var af=function(t){zt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Oe.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(la);K.CDATA=af;var sf=function(t){zt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=Oe.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(la);K.Document=sf;var uf=function(t){zt(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?Oe.ElementType.Script:r==="style"?Oe.ElementType.Style:Oe.ElementType.Tag);var i=t.call(this,o)||this;return i.name=r,i.attribs=n,i.type=a,i}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 o,a;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),e}(la);K.Element=uf;function lf(t){return(0,Oe.isTag)(t)}K.isTag=lf;function cf(t){return t.type===Oe.ElementType.CDATA}K.isCDATA=cf;function df(t){return t.type===Oe.ElementType.Text}K.isText=df;function ff(t){return t.type===Oe.ElementType.Comment}K.isComment=ff;function pf(t){return t.type===Oe.ElementType.Directive}K.isDirective=pf;function hf(t){return t.type===Oe.ElementType.Root}K.isDocument=hf;function o6(t){return Object.prototype.hasOwnProperty.call(t,"children")}K.hasChildren=o6;function ks(t,e){e===void 0&&(e=!1);var r;if(df(t))r=new rf(t.data);else if(ff(t))r=new nf(t.data);else if(lf(t)){var n=e?Ma(t.children):[],o=new uf(t.name,nn({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=nn({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=nn({},t["x-attribsPrefix"])),r=o}else if(cf(t)){var n=e?Ma(t.children):[],a=new af(n);n.forEach(function(l){return l.parent=a}),r=a}else if(hf(t)){var n=e?Ma(t.children):[],i=new sf(n);n.forEach(function(l){return l.parent=i}),t["x-mode"]&&(i["x-mode"]=t["x-mode"]),r=i}else if(pf(t)){var s=new of(t.name,t.data);t["x-name"]!=null&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),r=s}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}K.cloneNode=ks;function Ma(t){for(var e=t.map(function(n){return ks(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=F&&F.__createBinding||(Object.create?function(s,u,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(u,l);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(s,c,h)}:function(s,u,l,c){c===void 0&&(c=l),s[c]=u[l]}),r=F&&F.__exportStar||function(s,u){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&e(u,s,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=Fr,o=K;r(K,t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function s(u,l,c){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=a),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??a,this.elementCB=c??null}return s.prototype.onparserinit=function(u){this.parser=u},s.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(u){this.handleCallback(u)},s.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},s.prototype.onopentag=function(u,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,h=new o.Element(u,l,void 0,c);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(u){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=u,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new o.Text(u);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var l=new o.Comment(u);this.addNode(l),this.lastNode=l},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var u=new o.Text(""),l=new o.CDATA([u]);this.addNode(l),u.parent=l,this.lastNode=u},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(u,l){var c=new o.ProcessingInstruction(u,l);this.addNode(c)},s.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},s.prototype.addNode=function(u){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),l.children.push(u),c&&(u.prev=c,c.next=u),u.parent=l,this.lastNode=null},s}();t.DomHandler=i,t.default=i})(St);var ro={},Ht={},jn={},mf={},Zt={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});function Un(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Ps.default=new Map(Un([[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(Un([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Un([[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(Un([[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 jo={};(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(o,a){return o.codePointAt(a)}:function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)};function r(o){for(var a="",i=0,s;(s=t.xmlReplacer.exec(o))!==null;){var u=s.index,l=o.charCodeAt(u),c=e.get(l);c!==void 0?(a+=o.substring(i,u)+c,i=u+1):(a+="".concat(o.substring(i,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),i=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return a+o.substr(i)}t.encodeXML=r,t.escape=r;function n(o,a){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=a.get(u[0].charCodeAt(0)),l=u.index+1;return c+s.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," "]]))})(jo);var a6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.encodeNonAsciiHTML=Zt.encodeHTML=void 0;var i6=a6(Ps),bf=jo,s6=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function u6(t){return gf(s6,t)}Zt.encodeHTML=u6;function l6(t){return gf(bf.xmlReplacer,t)}Zt.encodeNonAsciiHTML=l6;function gf(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var a=o.index;r+=e.substring(n,a);var i=e.charCodeAt(a),s=i6.default.get(i);if(typeof s=="object"){if(a+1<e.length){var u=e.charCodeAt(a+1),l=typeof s.n=="number"?s.n===u?s.o:void 0:s.n.get(u);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}s=s.v}if(s!==void 0)r+=s,n=a+1;else{var c=(0,bf.getCodePoint)(e,a);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==i)}}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=gn,r=Zt,n=jo,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(f){f[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function i(f,d){d===void 0&&(d=o.XML);var b=typeof d=="number"?d:d.level;if(b===o.HTML){var g=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,g)}return(0,e.decodeXML)(f)}t.decode=i;function s(f,d){var b;d===void 0&&(d=o.XML);var g=typeof d=="number"?{level:d}:d;return(b=g.mode)!==null&&b!==void 0||(g.mode=e.DecodingMode.Strict),i(f,g)}t.decodeStrict=s;function u(f,d){d===void 0&&(d=o.XML);var b=typeof d=="number"?{level:d}:d;return b.mode===a.UTF8?(0,n.escapeUTF8)(f):b.mode===a.Attribute?(0,n.escapeAttribute)(f):b.mode===a.Text?(0,n.escapeText)(f):b.level===o.HTML?b.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(f):(0,r.encodeHTML)(f):(0,n.encodeXML)(f)}t.encode=u;var l=jo;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=Zt;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=gn;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}})})(mf);var Nr={};Object.defineProperty(Nr,"__esModule",{value:!0});Nr.attributeNames=Nr.elementNames=void 0;Nr.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]}));Nr.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 hr=F&&F.__assign||function(){return hr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},hr.apply(this,arguments)},c6=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),d6=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),f6=F&&F.__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)&&c6(e,t,r);return d6(e,t),e};Object.defineProperty(jn,"__esModule",{value:!0});jn.render=void 0;var ft=f6(Fr),Ao=mf,vf=Nr,p6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function h6(t){return t.replace(/"/g,""")}function m6(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?h6:e.xmlMode||e.encodeEntities!=="utf8"?Ao.encodeXML:Ao.escapeAttribute;return Object.keys(t).map(function(o){var a,i,s=(a=t[o])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(o=(i=vf.attributeNames.get(o))!==null&&i!==void 0?i:o),!e.emptyAttrs&&!e.xmlMode&&s===""?o:"".concat(o,'="').concat(n(s),'"')}).join(" ")}}var Dl=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ca(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=b6(r[o],e);return n}jn.render=ca;jn.default=ca;function b6(t,e){switch(t.type){case ft.Root:return ca(t.children,e);case ft.Doctype:case ft.Directive:return x6(t);case ft.Comment:return C6(t);case ft.CDATA:return S6(t);case ft.Script:case ft.Style:case ft.Tag:return y6(t,e);case ft.Text:return w6(t,e)}}var g6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),v6=new Set(["svg","math"]);function y6(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=vf.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&g6.has(t.parent.name)&&(e=hr(hr({},e),{xmlMode:!1}))),!e.xmlMode&&v6.has(t.name)&&(e=hr(hr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=m6(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Dl.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=ca(t.children,e)),(e.xmlMode||!Dl.has(t.name))&&(n+="</".concat(t.name,">"))),n}function x6(t){return"<".concat(t.data,">")}function w6(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&p6.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Ao.encodeXML)(n):(0,Ao.escapeText)(n)),n}function S6(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function C6(t){return"<!--".concat(t.data,"-->")}var E6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getOuterHTML=yf;Ht.getInnerHTML=j6;Ht.getText=no;Ht.textContent=yi;Ht.innerText=xi;var tt=St,N6=E6(jn),T6=Fr;function yf(t,e){return(0,N6.default)(t,e)}function j6(t,e){return(0,tt.hasChildren)(t)?t.children.map(function(r){return yf(r,e)}).join(""):""}function no(t){return Array.isArray(t)?t.map(no).join(""):(0,tt.isTag)(t)?t.name==="br"?`
|
|
236
|
+
`:no(t.children):(0,tt.isCDATA)(t)?no(t.children):(0,tt.isText)(t)?t.data:""}function yi(t){return Array.isArray(t)?t.map(yi).join(""):(0,tt.hasChildren)(t)&&!(0,tt.isComment)(t)?yi(t.children):(0,tt.isText)(t)?t.data:""}function xi(t){return Array.isArray(t)?t.map(xi).join(""):(0,tt.hasChildren)(t)&&(t.type===T6.ElementType.Tag||(0,tt.isCDATA)(t))?xi(t.children):(0,tt.isText)(t)?t.data:""}var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.getChildren=xf;ut.getParent=wf;ut.getSiblings=A6;ut.getAttributeValue=O6;ut.hasAttrib=k6;ut.getName=P6;ut.nextElementSibling=_6;ut.prevElementSibling=R6;var _s=St;function xf(t){return(0,_s.hasChildren)(t)?t.children:[]}function wf(t){return t.parent||null}function A6(t){var e,r,n=wf(t);if(n!=null)return xf(n);for(var o=[t],a=t.prev,i=t.next;a!=null;)o.unshift(a),e=a,a=e.prev;for(;i!=null;)o.push(i),r=i,i=r.next;return o}function O6(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function k6(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function P6(t){return t.name}function _6(t){for(var e,r=t.next;r!==null&&!(0,_s.isTag)(r);)e=r,r=e.next;return r}function R6(t){for(var e,r=t.prev;r!==null&&!(0,_s.isTag)(r);)e=r,r=e.prev;return r}var Ft={};Object.defineProperty(Ft,"__esModule",{value:!0});Ft.removeElement=An;Ft.replaceElement=I6;Ft.appendChild=D6;Ft.append=M6;Ft.prependChild=L6;Ft.prepend=$6;function An(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 I6(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var a=o.children;a[a.lastIndexOf(t)]=e,t.parent=null}}function D6(t,e){if(An(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 M6(t,e){An(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 o=r.children;o.splice(o.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function L6(t,e){if(An(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 $6(t,e){An(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 Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.filter=B6;Et.find=Sf;Et.findOneChild=z6;Et.findOne=Cf;Et.existsOne=Ef;Et.findAll=H6;var Qt=St;function B6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),Sf(t,Array.isArray(e)?e:[e],r,n)}function Sf(t,e,r,n){for(var o=[],a=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=a[0].length){if(i.length===1)return o;a.shift(),i.shift();continue}var s=a[0][i[0]++];if(t(s)&&(o.push(s),--n<=0))return o;r&&(0,Qt.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function z6(t,e){return e.find(t)}function Cf(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var a=n[o];if((0,Qt.isTag)(a)&&t(a))return a;if(r&&(0,Qt.hasChildren)(a)&&a.children.length>0){var i=Cf(t,a.children,!0);if(i)return i}}return null}function Ef(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Qt.isTag)(r)&&t(r)||(0,Qt.hasChildren)(r)&&Ef(t,r.children)})}function H6(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var a=n[0][o[0]++];(0,Qt.isTag)(a)&&t(a)&&r.push(a),(0,Qt.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});Nt.testElement=q6;Nt.getElements=U6;Nt.getElementById=V6;Nt.getElementsByTagName=W6;Nt.getElementsByClassName=G6;Nt.getElementsByTagType=Y6;var Gt=St,On=Et,Oo={tag_name:function(t){return typeof t=="function"?function(e){return(0,Gt.isTag)(e)&&t(e.name)}:t==="*"?Gt.isTag:function(e){return(0,Gt.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,Gt.isText)(e)&&t(e.data)}:function(e){return(0,Gt.isText)(e)&&e.data===t}}};function Rs(t,e){return typeof e=="function"?function(r){return(0,Gt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Gt.isTag)(r)&&r.attribs[t]===e}}function F6(t,e){return function(r){return t(r)||e(r)}}function Nf(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Oo,r)?Oo[r](n):Rs(r,n)});return e.length===0?null:e.reduce(F6)}function q6(t,e){var r=Nf(t);return r?r(e):!0}function U6(t,e,r,n){n===void 0&&(n=1/0);var o=Nf(t);return o?(0,On.filter)(o,e,r,n):[]}function V6(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,On.findOne)(Rs("id",t),e,r)}function W6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,On.filter)(Oo.tag_name(t),e,r,n)}function G6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,On.filter)(Rs("class",t),e,r,n)}function Y6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,On.filter)(Oo.tag_type(t),e,r,n)}var or={};Object.defineProperty(or,"__esModule",{value:!0});or.DocumentPosition=void 0;or.removeSubsets=X6;or.compareDocumentPosition=Tf;or.uniqueSort=K6;var Ml=St;function X6(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 qe;(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"})(qe||(or.DocumentPosition=qe={}));function Tf(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,Ml.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,Ml.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var a=Math.min(r.length,n.length),i=0;i<a&&r[i]===n[i];)i++;if(i===0)return qe.DISCONNECTED;var s=r[i-1],u=s.children,l=r[i],c=n[i];return u.indexOf(l)>u.indexOf(c)?s===e?qe.FOLLOWING|qe.CONTAINED_BY:qe.FOLLOWING:s===t?qe.PRECEDING|qe.CONTAINS:qe.PRECEDING}function K6(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=Tf(e,r);return n&qe.PRECEDING?-1:n&qe.FOLLOWING?1:0}),t}var Is={};Object.defineProperty(Is,"__esModule",{value:!0});Is.getFeed=Z6;var J6=Ht,kn=Nt;function Z6(t){var e=ko(n4,t);return e?e.name==="feed"?Q6(e):e4(e):null}function Q6(t){var e,r=t.children,n={type:"atom",items:(0,kn.getElementsByTagName)("entry",r).map(function(i){var s,u=i.children,l={media:jf(u)};Ae(l,"id","id",u),Ae(l,"title","title",u);var c=(s=ko("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);var h=Pt("summary",u)||Pt("content",u);h&&(l.description=h);var f=Pt("updated",u);return f&&(l.pubDate=new Date(f)),l})};Ae(n,"id","id",r),Ae(n,"title","title",r);var o=(e=ko("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Ae(n,"description","subtitle",r);var a=Pt("updated",r);return a&&(n.updated=new Date(a)),Ae(n,"author","email",r,!0),n}function e4(t){var e,r,n=(r=(e=ko("channel",t.children))===null||e===void 0?void 0:e.children)!==null&&r!==void 0?r:[],o={type:t.name.substr(0,3),id:"",items:(0,kn.getElementsByTagName)("item",t.children).map(function(i){var s=i.children,u={media:jf(s)};Ae(u,"id","guid",s),Ae(u,"title","title",s),Ae(u,"link","link",s),Ae(u,"description","description",s);var l=Pt("pubDate",s)||Pt("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};Ae(o,"title","title",n),Ae(o,"link","link",n),Ae(o,"description","description",n);var a=Pt("lastBuildDate",n);return a&&(o.updated=new Date(a)),Ae(o,"author","managingEditor",n,!0),o}var t4=["url","type","lang"],r4=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function jf(t){return(0,kn.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,a=t4;o<a.length;o++){var i=a[o];r[i]&&(n[i]=r[i])}for(var s=0,u=r4;s<u.length;s++){var i=u[s];r[i]&&(n[i]=parseInt(r[i],10))}return r.expression&&(n.expression=r.expression),n})}function ko(t,e){return(0,kn.getElementsByTagName)(t,e,!0,1)[0]}function Pt(t,e,r){return r===void 0&&(r=!1),(0,J6.textContent)((0,kn.getElementsByTagName)(t,e,r,1)).trim()}function Ae(t,e,r,n,o){o===void 0&&(o=!1);var a=Pt(r,n,o);a&&(t[e]=a)}function n4(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=F&&F.__createBinding||(Object.create?function(o,a,i,s){s===void 0&&(s=i);var u=Object.getOwnPropertyDescriptor(a,i);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,u)}:function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]}),r=F&&F.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(Ht,t),r(ut,t),r(Ft,t),r(Et,t),r(Nt,t),r(or,t),r(Is,t);var n=St;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}})})(ro);(function(t){var e=F&&F.__createBinding||(Object.create?function(v,x,C,S){S===void 0&&(S=C);var j=Object.getOwnPropertyDescriptor(x,C);(!j||("get"in j?!x.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return x[C]}}),Object.defineProperty(v,S,j)}:function(v,x,C,S){S===void 0&&(S=C),v[S]=x[C]}),r=F&&F.__setModuleDefault||(Object.create?function(v,x){Object.defineProperty(v,"default",{enumerable:!0,value:x})}:function(v,x){v.default=x}),n=F&&F.__importStar||function(v){if(v&&v.__esModule)return v;var x={};if(v!=null)for(var C in v)C!=="default"&&Object.prototype.hasOwnProperty.call(v,C)&&e(x,v,C);return r(x,v),x},o=F&&F.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};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 a=bn,i=bn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return i.Parser}});var s=St,u=St;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(v,x){var C=new s.DomHandler(void 0,x);return new a.Parser(C,x).end(v),C.root}t.parseDocument=l;function c(v,x){return l(v,x).children}t.parseDOM=c;function h(v,x,C){var S=new s.DomHandler(v,x,C);return new a.Parser(S,x)}t.createDomStream=h;var f=Ts;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(Fr);var d=ro,b=ro;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return b.getFeed}});var g={xmlMode:!0};function m(v,x){return x===void 0&&(x=g),(0,d.getFeed)(c(v,x))}t.parseFeed=m,t.DomUtils=n(ro)})(tf);var o4=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});/*!
|
|
237
237
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
238
238
|
*
|
|
239
239
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
240
240
|
* Released under the MIT License.
|
|
241
|
-
*/function
|
|
242
|
-
`||
|
|
243
|
-
`+
|
|
244
|
-
`+
|
|
241
|
+
*/function Ll(t){return Object.prototype.toString.call(t)==="[object Object]"}function a4(t){var e,r;return Ll(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Ll(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}Ds.isPlainObject=a4;var i4=function(e){return s4(e)&&!u4(e)};function s4(t){return!!t&&typeof t=="object"}function u4(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||d4(t)}var l4=typeof Symbol=="function"&&Symbol.for,c4=l4?Symbol.for("react.element"):60103;function d4(t){return t.$$typeof===c4}function f4(t){return Array.isArray(t)?[]:{}}function vn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Tr(f4(t),t,e):t}function p4(t,e,r){return t.concat(e).map(function(n){return vn(n,r)})}function h4(t,e){if(!e.customMerge)return Tr;var r=e.customMerge(t);return typeof r=="function"?r:Tr}function m4(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function $l(t){return Object.keys(t).concat(m4(t))}function Af(t,e){try{return e in t}catch{return!1}}function b4(t,e){return Af(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function g4(t,e,r){var n={};return r.isMergeableObject(t)&&$l(t).forEach(function(o){n[o]=vn(t[o],r)}),$l(e).forEach(function(o){b4(t,o)||(Af(t,o)&&r.isMergeableObject(e[o])?n[o]=h4(o,r)(t[o],e[o],r):n[o]=vn(e[o],r))}),n}function Tr(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||p4,r.isMergeableObject=r.isMergeableObject||i4,r.cloneUnlessOtherwiseSpecified=vn;var n=Array.isArray(e),o=Array.isArray(t),a=n===o;return a?n?r.arrayMerge(t,e,r):g4(t,e,r):vn(e,r)}Tr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Tr(n,o,r)},{})};var v4=Tr,y4=v4,Of={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(F,function(){return function(e){function r(S){return S===" "||S===" "||S===`
|
|
242
|
+
`||S==="\f"||S==="\r"}function n(S){var j,k=S.exec(e.substring(m));if(k)return j=k[0],m+=j.length,j}for(var o=e.length,a=/^[ \t\n\r\u000c]+/,i=/^[, \t\n\r\u000c]+/,s=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,f,d,b,g,m=0,v=[];;){if(n(i),m>=o)return v;h=n(s),f=[],h.slice(-1)===","?(h=h.replace(u,""),C()):x()}function x(){for(n(a),d="",b="in descriptor";;){if(g=e.charAt(m),b==="in descriptor")if(r(g))d&&(f.push(d),d="",b="after descriptor");else if(g===","){m+=1,d&&f.push(d),C();return}else if(g==="(")d=d+g,b="in parens";else if(g===""){d&&f.push(d),C();return}else d=d+g;else if(b==="in parens")if(g===")")d=d+g,b="in descriptor";else if(g===""){f.push(d),C();return}else d=d+g;else if(b==="after descriptor"&&!r(g))if(g===""){C();return}else b="in descriptor",m-=1;m+=1}}function C(){var S=!1,j,k,_,D,L={},$,E,T,P,I;for(D=0;D<f.length;D++)$=f[D],E=$[$.length-1],T=$.substring(0,$.length-1),P=parseInt(T,10),I=parseFloat(T),l.test(T)&&E==="w"?((j||k)&&(S=!0),P===0?S=!0:j=P):c.test(T)&&E==="x"?((j||k||_)&&(S=!0),I<0?S=!0:k=I):l.test(T)&&E==="h"?((_||k)&&(S=!0),P===0?S=!0:_=P):S=!0;S?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+$+"'."):(L.url=h,j&&(L.w=j),k&&(L.d=k),_&&(L.h=_),v.push(L))}}})})(Of);var x4=Of.exports,Ms={exports:{}},G=String,kf=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G,blackBright:G,redBright:G,greenBright:G,yellowBright:G,blueBright:G,magentaBright:G,cyanBright:G,whiteBright:G,bgBlackBright:G,bgRedBright:G,bgGreenBright:G,bgYellowBright:G,bgBlueBright:G,bgMagentaBright:G,bgCyanBright:G,bgWhiteBright:G}};Ms.exports=kf();Ms.exports.createColors=kf;var w4=Ms.exports;const S4={},C4=Object.freeze(Object.defineProperty({__proto__:null,default:S4},Symbol.toStringTag,{value:"Module"})),We=Xh(C4);let Bl=w4,zl=We,wi=class Pf extends Error{constructor(e,r,n,o,a,i){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),o&&(this.source=o),i&&(this.plugin=i),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,Pf)}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=Bl.isColorSupported);let n=c=>c,o=c=>c,a=c=>c;if(e){let{bold:c,gray:h,red:f}=Bl.createColors(!0);o=d=>c(f(d)),n=d=>h(d),zl&&(a=d=>zl(d))}let i=r.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,i.length),l=String(u).length;return i.slice(s,u).map((c,h)=>{let f=s+1+h,d=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(c.length>160){let g=20,m=Math.max(0,this.column-g),v=Math.max(this.column+g,this.endColumn+g),x=c.slice(m,v),C=n(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return o(">")+n(d)+a(x)+`
|
|
243
|
+
`+C+o("^")}let b=n(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(d)+a(c)+`
|
|
244
|
+
`+b+o("^")}return" "+n(d)+a(c)}).join(`
|
|
245
245
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
246
246
|
|
|
247
247
|
`+e+`
|
|
248
|
-
`),this.name+": "+this.message+e}};var
|
|
248
|
+
`),this.name+": "+this.message+e}};var Ls=wi;wi.default=wi;const Hl={after:`
|
|
249
249
|
`,beforeClose:`
|
|
250
250
|
`,beforeComment:`
|
|
251
251
|
`,beforeDecl:`
|
|
252
252
|
`,beforeOpen:" ",beforeRule:`
|
|
253
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
254
|
-
`)){let i=this.raw(e,null,"indent");if(i.length)for(let s=0;s<a;s++)n+=i}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),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 o=0;o<e.nodes.length;o++){let a=e.nodes[o],i=this.raw(a,"before");i&&this.builder(i),this.stringify(a,r!==o||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"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return
|
|
253
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function E4(t){return t[0].toUpperCase()+t.slice(1)}let Si=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let a=(e.raws.between||"")+(r?";":"");this.builder(n+o+a,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 o=e.parent,a=0;for(;o&&o.type!=="root";)a+=1,o=o.parent;if(n.includes(`
|
|
254
|
+
`)){let i=this.raw(e,null,"indent");if(i.length)for(let s=0;s<a;s++)n+=i}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),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 o=0;o<e.nodes.length;o++){let a=e.nodes[o],i=this.raw(a,"before");i&&this.builder(i),this.stringify(a,r!==o||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"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Hl[n];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[n]<"u")return i.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let s="raw"+E4(n);this[s]?o=this[s](i,e):i.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=Hl[n]),i.rawCache[n]=o,o}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(`
|
|
255
255
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
256
256
|
`)&&(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(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
257
257
|
`)&&(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(`
|
|
258
258
|
`)&&(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 o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let a=n.raws.before.split(`
|
|
259
|
-
`);return r=a[a.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],o=e.raws[r];return o&&o.value===n?o.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
|
|
260
|
-
`?(r=1,n+=1):r+=1}return o}let
|
|
261
|
-
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:i}}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:ft(r,this.source.start)},o=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:ft(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=r.slice(ft(r,this.source.start),ft(r,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),o=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:ft(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:ft(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new T4().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 o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);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={},o=r==null;r=r||new Map;let a=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let s=this[i];if(Array.isArray(s))n[i]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof s=="object"&&s.toJSON)n[i]=s.toJSON(null,r);else if(i==="source"){if(s==null)continue;let u=r.get(s.input);u==null&&(u=a,r.set(s.input,a),a++),n[i]={end:s.end,inputId:u,start:s.start}}else n[i]=s}return o&&(n.inputs=[...r.keys()].map(i=>i.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=j4){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let a in n)o[a]=n[a];return e.warn(r,o)}};var da=Ei;Ei.default=Ei;let O4=da,Ni=class extends O4{constructor(e){super(e),this.type="comment"}};var fa=Ni;Ni.default=Ni;let k4=da,Ti=class extends k4{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 pa=Ti;Ti.default=Ti;let _f=fa,Rf=pa,P4=da,{isClean:If,my:Df}=kn,Ls,Mf,Lf,$s;function $f(t){return t.map(e=>(e.nodes&&(e.nodes=$f(e.nodes)),delete e.source,e))}function Bf(t){if(t[If]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Bf(e)}let St=class zf extends P4{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 o of n)this.proxyOf.nodes.push(o)}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,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}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(o=>typeof o=="function"?(a,i)=>o(a.toProxy(),i):o)):r==="every"||r==="some"?n=>e[r]((o,...a)=>n(o.toProxy(),...a)):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),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of o)this.proxyOf.nodes.splice(n+1,0,i);let a;for(let i in this.indexes)a=this.indexes[i],n<a&&(this.indexes[i]=a+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let s of a)this.proxyOf.nodes.splice(n,0,s);let i;for(let s in this.indexes)i=this.indexes[s],n<=i&&(this.indexes[s]=i+a.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=$f(Mf(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"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 Rf(e)]}else if(e.selector||e.selectors)e=[new $s(e)];else if(e.name)e=[new Ls(e)];else if(e.text)e=[new _f(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[Df]||zf.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[If]&&Bf(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+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(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(a){throw r.addToError(a)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}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,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};St.registerParse=t=>{Mf=t};St.registerRule=t=>{$s=t};St.registerAtRule=t=>{Ls=t};St.registerRoot=t=>{Lf=t};var or=St;St.default=St;St.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ls.prototype):t.type==="rule"?Object.setPrototypeOf(t,$s.prototype):t.type==="decl"?Object.setPrototypeOf(t,Rf.prototype):t.type==="comment"?Object.setPrototypeOf(t,_f.prototype):t.type==="root"&&Object.setPrototypeOf(t,Lf.prototype),t[Df]=!0,t.nodes&&t.nodes.forEach(e=>{St.rebuild(e)})};let Hf=or,Oo=class extends Hf{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 Bs=Oo;Oo.default=Oo;Hf.registerAtRule(Oo);let _4=or,Ff,qf,vn=class extends _4{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ff(new qf,this,e).stringify()}};vn.registerLazyResult=t=>{Ff=t};vn.registerProcessor=t=>{qf=t};var zs=vn;vn.default=vn;let R4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",I4=(t=21)=>{let e="",r=t|0;for(;r--;)e+=R4[Math.random()*64|0];return e};var D4={nanoid:I4};let{existsSync:M4,readFileSync:L4}=Ve,{dirname:Ma,join:$4}=Ve,{SourceMapConsumer:Hl,SourceMapGenerator:Fl}=Ve;function B4(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let ji=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,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Ma(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Hl(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,i=e.match(o)||e.match(a);if(i)return decodeURIComponent(e.substr(i[0].length));let s=e.match(r)||e.match(n);if(s)return B4(e.substr(s[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}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()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=Ma(e),M4(e))return this.mapFile=e,L4(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 o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof Hl)return Fl.fromSourceMap(r).toString();if(r instanceof Fl)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=$4(Ma(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 Uf=ji;ji.default=ji;let{nanoid:z4}=D4,{isAbsolute:Ai,resolve:Oi}=Ve,{SourceMapConsumer:H4,SourceMapGenerator:F4}=Ve,{fileURLToPath:ql,pathToFileURL:Un}=Ve,Ul=Ms,q4=Uf,La=Ve,$a=Symbol("lineToIndexCache"),U4=!!(H4&&F4),Vl=!!(Oi&&Ai);function Wl(t){if(t[$a])return t[$a];let e=t.css.split(`
|
|
262
|
-
`),r=new Array(e.length),n=0;for(let o=0,a=e.length;o<a;o++)r[o]=n,n+=e[o].length+1;return t[
|
|
263
|
-
`," "];return
|
|
259
|
+
`);return r=a[a.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],o=e.raws[r];return o&&o.value===n?o.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 _f=Si;Si.default=Si;let N4=_f;function Ci(t,e){new N4(e).stringify(t)}var da=Ci;Ci.default=Ci;var Pn={};Pn.isClean=Symbol("isClean");Pn.my=Symbol("my");let T4=Ls,j4=_f,A4=da,{isClean:Xr,my:O4}=Pn;function Ei(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],a=typeof o;n==="parent"&&a==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(i=>Ei(i,r)):(a==="object"&&o!==null&&(o=Ei(o)),r[n]=o)}return r}function pt(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let a=0;a<t.length;a++){if(n===e.line&&r===e.column){o=a;break}t[a]===`
|
|
260
|
+
`?(r=1,n+=1):r+=1}return o}let Ni=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Xr]=!1,this[O4]=!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=Ei(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:o}=this.rangeBy(r);return this.source.input.error(e,{column:o.column,line:o.line},{column:n.column,line:n.line},r)}return new T4(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[Xr]=!0}markDirty(){if(this[Xr]){this[Xr]=!1;let e=this;for(;e=e.parent;)e[Xr]=!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,a=n.slice(pt(n,this.source.start),pt(n,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=pt(o,this.source.start),i=a+e;for(let s=a;s<i;s++)o[s]===`
|
|
261
|
+
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:i}}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:pt(r,this.source.start)},o=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:pt(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=r.slice(pt(r,this.source.start),pt(r,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),o=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:pt(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:pt(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new j4().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 o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);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={},o=r==null;r=r||new Map;let a=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let s=this[i];if(Array.isArray(s))n[i]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof s=="object"&&s.toJSON)n[i]=s.toJSON(null,r);else if(i==="source"){if(s==null)continue;let u=r.get(s.input);u==null&&(u=a,r.set(s.input,a),a++),n[i]={end:s.end,inputId:u,start:s.start}}else n[i]=s}return o&&(n.inputs=[...r.keys()].map(i=>i.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=A4){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let a in n)o[a]=n[a];return e.warn(r,o)}};var fa=Ni;Ni.default=Ni;let k4=fa,Ti=class extends k4{constructor(e){super(e),this.type="comment"}};var pa=Ti;Ti.default=Ti;let P4=fa,ji=class extends P4{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 ha=ji;ji.default=ji;let Rf=pa,If=ha,_4=fa,{isClean:Df,my:Mf}=Pn,$s,Lf,$f,Bs;function Bf(t){return t.map(e=>(e.nodes&&(e.nodes=Bf(e.nodes)),delete e.source,e))}function zf(t){if(t[Df]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)zf(e)}let Ct=class Hf extends _4{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 o of n)this.proxyOf.nodes.push(o)}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,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}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(o=>typeof o=="function"?(a,i)=>o(a.toProxy(),i):o)):r==="every"||r==="some"?n=>e[r]((o,...a)=>n(o.toProxy(),...a)):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),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of o)this.proxyOf.nodes.splice(n+1,0,i);let a;for(let i in this.indexes)a=this.indexes[i],n<a&&(this.indexes[i]=a+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let s of a)this.proxyOf.nodes.splice(n,0,s);let i;for(let s in this.indexes)i=this.indexes[s],n<=i&&(this.indexes[s]=i+a.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=Bf(Lf(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"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 If(e)]}else if(e.selector||e.selectors)e=[new Bs(e)];else if(e.name)e=[new $s(e)];else if(e.text)e=[new Rf(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[Mf]||Hf.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[Df]&&zf(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+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(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(a){throw r.addToError(a)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}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,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};Ct.registerParse=t=>{Lf=t};Ct.registerRule=t=>{Bs=t};Ct.registerAtRule=t=>{$s=t};Ct.registerRoot=t=>{$f=t};var ar=Ct;Ct.default=Ct;Ct.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,$s.prototype):t.type==="rule"?Object.setPrototypeOf(t,Bs.prototype):t.type==="decl"?Object.setPrototypeOf(t,If.prototype):t.type==="comment"?Object.setPrototypeOf(t,Rf.prototype):t.type==="root"&&Object.setPrototypeOf(t,$f.prototype),t[Mf]=!0,t.nodes&&t.nodes.forEach(e=>{Ct.rebuild(e)})};let Ff=ar,Po=class extends Ff{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 zs=Po;Po.default=Po;Ff.registerAtRule(Po);let R4=ar,qf,Uf,yn=class extends R4{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new qf(new Uf,this,e).stringify()}};yn.registerLazyResult=t=>{qf=t};yn.registerProcessor=t=>{Uf=t};var Hs=yn;yn.default=yn;let I4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",D4=(t=21)=>{let e="",r=t|0;for(;r--;)e+=I4[Math.random()*64|0];return e};var M4={nanoid:D4};let{existsSync:L4,readFileSync:$4}=We,{dirname:La,join:B4}=We,{SourceMapConsumer:Fl,SourceMapGenerator:ql}=We;function z4(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Ai=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,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=La(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Fl(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,i=e.match(o)||e.match(a);if(i)return decodeURIComponent(e.substr(i[0].length));let s=e.match(r)||e.match(n);if(s)return z4(e.substr(s[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}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()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=La(e),L4(e))return this.mapFile=e,$4(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 o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof Fl)return ql.fromSourceMap(r).toString();if(r instanceof ql)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=B4(La(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 Vf=Ai;Ai.default=Ai;let{nanoid:H4}=M4,{isAbsolute:Oi,resolve:ki}=We,{SourceMapConsumer:F4,SourceMapGenerator:q4}=We,{fileURLToPath:Ul,pathToFileURL:Vn}=We,Vl=Ls,U4=Vf,$a=We,Ba=Symbol("lineToIndexCache"),V4=!!(F4&&q4),Wl=!!(ki&&Oi);function Gl(t){if(t[Ba])return t[Ba];let e=t.css.split(`
|
|
262
|
+
`),r=new Array(e.length),n=0;for(let o=0,a=e.length;o<a;o++)r[o]=n,n+=e[o].length+1;return t[Ba]=r,r}let _o=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&&(!Wl||/^\w+:\/\//.test(r.from)||Oi(r.from)?this.file=r.from:this.file=ki(r.from)),Wl&&V4){let n=new U4(this.css,r);if(n.text){this.map=n;let o=n.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+H4(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let a,i,s,u,l;if(r&&typeof r=="object"){let h=r,f=n;if(typeof h.offset=="number"){u=h.offset;let d=this.fromOffset(u);r=d.line,n=d.col}else r=h.line,n=h.column,u=this.fromLineAndColumn(r,n);if(typeof f.offset=="number"){s=f.offset;let d=this.fromOffset(s);i=d.line,a=d.col}else i=f.line,a=f.column,s=this.fromLineAndColumn(f.line,f.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let h=this.fromOffset(u);r=h.line,n=h.col}let c=this.origin(r,n,i,a);return c?l=new Vl(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,o.plugin):l=new Vl(e,i===void 0?r:{column:n,line:r},i===void 0?n:{column:a,line:i},this.css,this.file,o.plugin),l.input={column:n,endColumn:a,endLine:i,endOffset:s,line:r,offset:u,source:this.css},this.file&&(Vn&&(l.input.url=Vn(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Gl(this)[e-1]+r-1}fromOffset(e){let r=Gl(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let a=r.length-2,i;for(;o<a;)if(i=o+(a-o>>1),e<r[i])a=i-1;else if(e>=r[i+1])o=i+1;else{o=i;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ki(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let a=this.map.consumer(),i=a.originalPositionFor({column:r,line:e});if(!i.source)return!1;let s;typeof n=="number"&&(s=a.originalPositionFor({column:o,line:n}));let u;Oi(i.source)?u=Vn(i.source):u=new URL(i.source,this.map.consumer().sourceRoot||Vn(this.map.mapFile));let l={column:i.column,endColumn:s&&s.column,endLine:s&&s.line,line:i.line,url:u.toString()};if(u.protocol==="file:")if(Ul)l.file=Ul(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=a.sourceContentFor(i.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 ma=_o;_o.default=_o;$a&&$a.registerInput&&$a.registerInput(_o);let Wf=ar,Gf,Yf,jr=class extends Wf{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=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 a of o)a.raws.before=r.raws.before}return o}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 Gf(new Yf,this,e).stringify()}};jr.registerLazyResult=t=>{Gf=t};jr.registerProcessor=t=>{Yf=t};var _n=jr;jr.default=jr;Wf.registerRoot(jr);let xn={comma(t){return xn.split(t,[","],!0)},space(t){let e=[" ",`
|
|
263
|
+
`," "];return xn.split(t,e)},split(t,e,r){let n=[],o="",a=!1,i=0,s=!1,u="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:s?c===u&&(s=!1):c==='"'||c==="'"?(s=!0,u=c):c==="("?i+=1:c===")"?i>0&&(i-=1):i===0&&e.includes(c)&&(a=!0),a?(o!==""&&n.push(o.trim()),o="",a=!1):o+=c;return(r||o!=="")&&n.push(o.trim()),n}};var Xf=xn;xn.default=xn;let Kf=ar,W4=Xf,Ro=class extends Kf{get selectors(){return W4.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 Fs=Ro;Ro.default=Ro;Kf.registerRule(Ro);let G4=zs,Y4=pa,X4=ha,K4=ma,J4=Vf,Z4=_n,Q4=Fs;function wn(t,e){if(Array.isArray(t))return t.map(o=>wn(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let a={...o,__proto__:K4.prototype};a.map&&(a.map={...a.map,__proto__:J4.prototype}),e.push(a)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>wn(o,e))),n.source){let{inputId:o,...a}=n.source;n.source=a,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new Z4(n);if(n.type==="decl")return new X4(n);if(n.type==="rule")return new Q4(n);if(n.type==="comment")return new Y4(n);if(n.type==="atrule")return new G4(n);throw new Error("Unknown node type: "+t.type)}var e8=wn;wn.default=wn;let{dirname:oo,relative:Jf,resolve:Zf,sep:Qf}=We,{SourceMapConsumer:e0,SourceMapGenerator:ao}=We,{pathToFileURL:Yl}=We,t8=ma,r8=!!(e0&&ao),n8=!!(oo&&Zf&&Jf&&Qf),o8=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,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=`
|
|
264
264
|
`;this.css.includes(`\r
|
|
265
265
|
`)&&(r=`\r
|
|
266
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||
|
|
267
|
-
`),r=s.length-a):r+=s.length,u&&l!=="start"){let c=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}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?no(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=no(Jf(n,this.mapOpts.annotation)));let o=Kf(n,e);return this.memoizedPaths.set(e,o),o}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 e8(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 o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,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(Gl){let n=Gl(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;Zf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var e0=n8;const Ba=39,Yl=34,Vn=92,Xl=47,Wn=10,Kr=32,Gn=12,Yn=9,Xn=13,o8=91,a8=93,i8=40,s8=41,u8=123,l8=125,c8=59,d8=42,f8=58,p8=64,Kn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Jn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,h8=/.[\r\n"'(/\\]/,Kl=/[\da-f]/i;var m8=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,a,i,s,u,l,c,h,f,d,g,b=n.length,m=0,v=[],x=[];function S(){return m}function C(M){throw e.error("Unclosed "+M,m)}function j(){return x.length===0&&m>=b}function k(M){if(x.length)return x.pop();if(m>=b)return;let D=M?M.ignoreUnclosed:!1;switch(a=n.charCodeAt(m),a){case Wn:case Kr:case Yn:case Xn:case Gn:{u=m;do u+=1,a=n.charCodeAt(u);while(a===Kr||a===Wn||a===Yn||a===Xn||a===Gn);c=["space",n.slice(m,u)],m=u-1;break}case o8:case a8:case u8:case l8:case f8:case c8:case s8:{let $=String.fromCharCode(a);c=[$,$,m];break}case i8:{if(g=v.length?v.pop()[1]:"",d=n.charCodeAt(m+1),g==="url"&&d!==Ba&&d!==Yl&&d!==Kr&&d!==Wn&&d!==Yn&&d!==Gn&&d!==Xn){u=m;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(o||D){u=m;break}else C("bracket");for(f=u;n.charCodeAt(f-1)===Vn;)f-=1,h=!h}while(h);c=["brackets",n.slice(m,u+1),m,u],m=u}else u=n.indexOf(")",m+1),i=n.slice(m,u+1),u===-1||h8.test(i)?c=["(","(",m]:(c=["brackets",i,m,u],m=u);break}case Ba:case Yl:{l=a===Ba?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||D){u=m+1;break}else C("string");for(f=u;n.charCodeAt(f-1)===Vn;)f-=1,h=!h}while(h);c=["string",n.slice(m,u+1),m,u],m=u;break}case p8:{Kn.lastIndex=m+1,Kn.test(n),Kn.lastIndex===0?u=n.length-1:u=Kn.lastIndex-2,c=["at-word",n.slice(m,u+1),m,u],m=u;break}case Vn:{for(u=m,s=!0;n.charCodeAt(u+1)===Vn;)u+=1,s=!s;if(a=n.charCodeAt(u+1),s&&a!==Xl&&a!==Kr&&a!==Wn&&a!==Yn&&a!==Xn&&a!==Gn&&(u+=1,Kl.test(n.charAt(u)))){for(;Kl.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===Kr&&(u+=1)}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{a===Xl&&n.charCodeAt(m+1)===d8?(u=n.indexOf("*/",m+2)+1,u===0&&(o||D?u=n.length:C("comment")),c=["comment",n.slice(m,u+1),m,u],m=u):(Jn.lastIndex=m+1,Jn.test(n),Jn.lastIndex===0?u=n.length-1:u=Jn.lastIndex-2,c=["word",n.slice(m,u+1),m,u],v.push(c),m=u);break}}return m++,c}function R(M){x.push(M)}return{back:R,endOfFile:j,nextToken:k,position:S}};let g8=Bs,b8=fa,v8=pa,y8=Pn,Jl=Hs,x8=m8;const Zl={empty:!0,space:!0};function w8(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let S8=class{constructor(e){this.input=e,this.root=new y8,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 g8;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,a,i=!1,s=!1,u=[],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==="{"){s=!0;break}else if(n==="}"){if(u.length>0){for(a=u.length-1,o=u[a];o&&o[0]==="space";)o=u[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),i&&(e=u[u.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=""),s&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,a;for(let[i,s]of e.entries()){if(o=s,a=o[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return i}n=o}return!1}comment(e){let r=new b8;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 o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=x8(this.input)}decl(e,r){let n=new v8;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||w8(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 a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(a=e[l],a[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(a[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=l;f>0;f--){let d=c[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=i.map(l=>l[1]).join(""),i=[]),this.raw(n,"value",i.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 Jl;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,o=!1,a=null,i=[],s=e[1].startsWith("--"),u=[],l=e;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")a||(a=l),i.push(n==="("?")":"]");else if(s&&o&&n==="{")a||(a=l),i.push("}");else if(i.length===0)if(n===";")if(o){this.decl(u,s);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(o=!0);else n===i[i.length-1]&&(i.pop(),i.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),i.length>0&&this.unclosedBracket(a),r&&o){if(!s)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,s)}else this.unknownWord(u)}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,o){let a,i,s=n.length,u="",l=!0,c,h;for(let f=0;f<s;f+=1)a=n[f],i=a[0],i==="space"&&f===s-1&&!o?l=!1:i==="comment"?(h=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!Zl[h]&&!Zl[c]?u.slice(-1)===","?l=!1:u+=a[1]:l=!1):u+=a[1];if(!l){let f=n.reduce((d,g)=>d+g[1],"");e.raws[r]={raw:f,value:u}}e[r]=u}rule(e){e.pop();let r=new Jl;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 o=r;o<e.length;o++)n+=e[o][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 C8=S8;let E8=or,N8=ha,T8=C8;function _o(t,e){let r=new N8(t,e),n=new T8(r);try{n.parse()}catch(o){throw process.env.NODE_ENV!=="production"&&o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
|
|
266
|
+
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||oo(e.file),o;this.mapOpts.sourcesContent===!1?(o=new e0(e.text),o.sourcesContent&&(o.sourcesContent=null)):o=e.consumer(),this.map.applySourceMap(o,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(),n8&&r8&&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=ao.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ao({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 ao({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,r=1,n="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""},a,i;this.stringify(this.root,(s,u,l)=>{if(this.css+=s,u&&l!=="end"&&(o.generated.line=e,o.generated.column=r-1,u.source&&u.source.start?(o.source=this.sourcePath(u),o.original.line=u.source.start.line,o.original.column=u.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),i=s.match(/\n/g),i?(e+=i.length,a=s.lastIndexOf(`
|
|
267
|
+
`),r=s.length-a):r+=s.length,u&&l!=="start"){let c=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}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?oo(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=oo(Zf(n,this.mapOpts.annotation)));let o=Jf(n,e);return this.memoizedPaths.set(e,o),o}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 t8(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 o=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(o,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(Yl){let n=Yl(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;Qf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var t0=o8;const za=39,Xl=34,Wn=92,Kl=47,Gn=10,Kr=32,Yn=12,Xn=9,Kn=13,a8=91,i8=93,s8=40,u8=41,l8=123,c8=125,d8=59,f8=42,p8=58,h8=64,Jn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,m8=/.[\r\n"'(/\\]/,Jl=/[\da-f]/i;var b8=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,a,i,s,u,l,c,h,f,d,b,g=n.length,m=0,v=[],x=[];function C(){return m}function S(D){throw e.error("Unclosed "+D,m)}function j(){return x.length===0&&m>=g}function k(D){if(x.length)return x.pop();if(m>=g)return;let L=D?D.ignoreUnclosed:!1;switch(a=n.charCodeAt(m),a){case Gn:case Kr:case Xn:case Kn:case Yn:{u=m;do u+=1,a=n.charCodeAt(u);while(a===Kr||a===Gn||a===Xn||a===Kn||a===Yn);c=["space",n.slice(m,u)],m=u-1;break}case a8:case i8:case l8:case c8:case p8:case d8:case u8:{let $=String.fromCharCode(a);c=[$,$,m];break}case s8:{if(b=v.length?v.pop()[1]:"",d=n.charCodeAt(m+1),b==="url"&&d!==za&&d!==Xl&&d!==Kr&&d!==Gn&&d!==Xn&&d!==Yn&&d!==Kn){u=m;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(o||L){u=m;break}else S("bracket");for(f=u;n.charCodeAt(f-1)===Wn;)f-=1,h=!h}while(h);c=["brackets",n.slice(m,u+1),m,u],m=u}else u=n.indexOf(")",m+1),i=n.slice(m,u+1),u===-1||m8.test(i)?c=["(","(",m]:(c=["brackets",i,m,u],m=u);break}case za:case Xl:{l=a===za?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||L){u=m+1;break}else S("string");for(f=u;n.charCodeAt(f-1)===Wn;)f-=1,h=!h}while(h);c=["string",n.slice(m,u+1),m,u],m=u;break}case h8:{Jn.lastIndex=m+1,Jn.test(n),Jn.lastIndex===0?u=n.length-1:u=Jn.lastIndex-2,c=["at-word",n.slice(m,u+1),m,u],m=u;break}case Wn:{for(u=m,s=!0;n.charCodeAt(u+1)===Wn;)u+=1,s=!s;if(a=n.charCodeAt(u+1),s&&a!==Kl&&a!==Kr&&a!==Gn&&a!==Xn&&a!==Kn&&a!==Yn&&(u+=1,Jl.test(n.charAt(u)))){for(;Jl.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===Kr&&(u+=1)}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{a===Kl&&n.charCodeAt(m+1)===f8?(u=n.indexOf("*/",m+2)+1,u===0&&(o||L?u=n.length:S("comment")),c=["comment",n.slice(m,u+1),m,u],m=u):(Zn.lastIndex=m+1,Zn.test(n),Zn.lastIndex===0?u=n.length-1:u=Zn.lastIndex-2,c=["word",n.slice(m,u+1),m,u],v.push(c),m=u);break}}return m++,c}function _(D){x.push(D)}return{back:_,endOfFile:j,nextToken:k,position:C}};let g8=zs,v8=pa,y8=ha,x8=_n,Zl=Fs,w8=b8;const Ql={empty:!0,space:!0};function S8(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let C8=class{constructor(e){this.input=e,this.root=new x8,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 g8;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,a,i=!1,s=!1,u=[],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==="{"){s=!0;break}else if(n==="}"){if(u.length>0){for(a=u.length-1,o=u[a];o&&o[0]==="space";)o=u[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),i&&(e=u[u.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=""),s&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,a;for(let[i,s]of e.entries()){if(o=s,a=o[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return i}n=o}return!1}comment(e){let r=new v8;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 o=n.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}}createTokenizer(){this.tokenizer=w8(this.input)}decl(e,r){let n=new y8;this.init(n,e[0][2]);let o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(o[3]||o[2]||S8(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 a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(a=e[l],a[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(a[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=l;f>0;f--){let d=c[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=i.map(l=>l[1]).join(""),i=[]),this.raw(n,"value",i.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 Zl;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,o=!1,a=null,i=[],s=e[1].startsWith("--"),u=[],l=e;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")a||(a=l),i.push(n==="("?")":"]");else if(s&&o&&n==="{")a||(a=l),i.push("}");else if(i.length===0)if(n===";")if(o){this.decl(u,s);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(o=!0);else n===i[i.length-1]&&(i.pop(),i.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),i.length>0&&this.unclosedBracket(a),r&&o){if(!s)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,s)}else this.unknownWord(u)}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,o){let a,i,s=n.length,u="",l=!0,c,h;for(let f=0;f<s;f+=1)a=n[f],i=a[0],i==="space"&&f===s-1&&!o?l=!1:i==="comment"?(h=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!Ql[h]&&!Ql[c]?u.slice(-1)===","?l=!1:u+=a[1]:l=!1):u+=a[1];if(!l){let f=n.reduce((d,b)=>d+b[1],"");e.raws[r]={raw:f,value:u}}e[r]=u}rule(e){e.pop();let r=new Zl;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 o=r;o<e.length;o++)n+=e[o][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 E8=C8;let N8=ar,T8=ma,j8=E8;function Io(t,e){let r=new T8(t,e),n=new j8(r);try{n.parse()}catch(o){throw process.env.NODE_ENV!=="production"&&o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
|
|
268
268
|
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
|
|
269
269
|
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
|
|
270
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var Fs=_o;_o.default=_o;E8.registerParse(_o);let ki=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 t0=ki;ki.default=ki;let j8=t0,Pi=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 j8(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var qs=Pi;Pi.default=Pi;let Ql={};var r0=function(e){Ql[e]||(Ql[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let A8=or,O8=zs,k8=e0,P8=Fs,ec=qs,_8=Pn,R8=ca,{isClean:Ye,my:I8}=kn,D8=r0;const M8={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},L8={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},$8={Once:!0,postcssPlugin:!0,prepare:!0},Ar=0;function Jr(t){return typeof t=="object"&&typeof t.then=="function"}function n0(t){let e=!1,r=M8[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ar,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ar,r+"Exit"]:[r,r+"Exit"]}function tc(t){let e;return t.type==="document"?e=["Document",Ar,"DocumentExit"]:t.type==="root"?e=["Root",Ar,"RootExit"]:e=n0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function _i(t){return t[Ye]=!1,t.nodes&&t.nodes.forEach(e=>_i(e)),t}let Ri={},Or=class o0{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 o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=_i(r);else if(r instanceof o0||r instanceof ec)o=_i(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=P8;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(i){this.processed=!0,this.error=i}o&&!o[I8]&&A8.rebuild(o)}this.result=new ec(e,o,n),this.helpers={...Ri,postcss:Ri,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}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 o=n.postcssPlugin,a=n.postcssVersion,i=this.result.processor.version,s=a.split("."),u=i.split(".");(s[0]!==u[0]||parseInt(s[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!L8[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!$8[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);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(Jr(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ye];){e[Ye]=!0;let r=[tc(e)];for(;r.length>0;){let n=this.visitTick(r);if(Jr(n))try{await n}catch(o){let a=r[r.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(a=>n(a,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}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 Jr(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=R8;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new k8(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[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(Jr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ye];)e[Ye]=!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||D8("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,o]of e){this.result.lastPlugin=n;let a;try{a=o(r,this.helpers)}catch(i){throw this.handleError(i,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Jr(a))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[i,s]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let i=r.iterator,s;for(;s=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!s[Ye]){s[Ye]=!0,e.push(tc(s));return}r.iterator=0,delete n.indexes[i]}let a=r.events;for(;r.eventIndex<a.length;){let i=a[r.eventIndex];if(r.eventIndex+=1,i===Ar){n.nodes&&n.nodes.length&&(n[Ye]=!0,r.iterator=n.getIterator());return}else if(this.listeners[i]){r.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[Ye]=!0;let r=n0(e);for(let n of r)if(n===Ar)e.nodes&&e.each(o=>{o[Ye]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Or.registerPostcss=t=>{Ri=t};var a0=Or;Or.default=Or;_8.registerLazyResult(Or);O8.registerLazyResult(Or);let B8=e0,z8=Fs;const H8=qs;let F8=ca,q8=r0,Ii=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=z8;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 o,a=F8;this.result=new H8(this._processor,o,this._opts),this.result.css=r;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new B8(a,o,this._opts,r);if(s.isMap()){let[u,l]=s.generate();u&&(this.result.css=u),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.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||q8("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 U8=Ii;Ii.default=Ii;let V8=zs,W8=a0,G8=U8,Y8=Pn,wn=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 G8(this,e,r):new W8(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var X8=wn;wn.default=wn;Y8.registerProcessor(wn);V8.registerProcessor(wn);let i0=Bs,s0=fa,K8=or,J8=Ms,u0=pa,l0=zs,Z8=Q4,Q8=ha,e5=a0,t5=Yf,r5=da,n5=Fs,Us=X8,o5=qs,c0=Pn,d0=Hs,a5=ca,i5=t0;function ee(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Us(t)}ee.plugin=function(e,r){let n=!1;function o(...i){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
270
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var qs=Io;Io.default=Io;N8.registerParse(Io);let Pi=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 r0=Pi;Pi.default=Pi;let A8=r0,_i=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 A8(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Us=_i;_i.default=_i;let ec={};var n0=function(e){ec[e]||(ec[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let O8=ar,k8=Hs,P8=t0,_8=qs,tc=Us,R8=_n,I8=da,{isClean:Xe,my:D8}=Pn,M8=n0;const L8={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$8={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},B8={Once:!0,postcssPlugin:!0,prepare:!0},Ar=0;function Jr(t){return typeof t=="object"&&typeof t.then=="function"}function o0(t){let e=!1,r=L8[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ar,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ar,r+"Exit"]:[r,r+"Exit"]}function rc(t){let e;return t.type==="document"?e=["Document",Ar,"DocumentExit"]:t.type==="root"?e=["Root",Ar,"RootExit"]:e=o0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ri(t){return t[Xe]=!1,t.nodes&&t.nodes.forEach(e=>Ri(e)),t}let Ii={},Or=class a0{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 o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=Ri(r);else if(r instanceof a0||r instanceof tc)o=Ri(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=_8;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(i){this.processed=!0,this.error=i}o&&!o[D8]&&O8.rebuild(o)}this.result=new tc(e,o,n),this.helpers={...Ii,postcss:Ii,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}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 o=n.postcssPlugin,a=n.postcssVersion,i=this.result.processor.version,s=a.split("."),u=i.split(".");(s[0]!==u[0]||parseInt(s[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!$8[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!B8[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);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(Jr(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Xe];){e[Xe]=!0;let r=[rc(e)];for(;r.length>0;){let n=this.visitTick(r);if(Jr(n))try{await n}catch(o){let a=r[r.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(a=>n(a,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}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 Jr(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=I8;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new P8(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[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(Jr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Xe];)e[Xe]=!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||M8("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,o]of e){this.result.lastPlugin=n;let a;try{a=o(r,this.helpers)}catch(i){throw this.handleError(i,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Jr(a))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[i,s]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let i=r.iterator,s;for(;s=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!s[Xe]){s[Xe]=!0,e.push(rc(s));return}r.iterator=0,delete n.indexes[i]}let a=r.events;for(;r.eventIndex<a.length;){let i=a[r.eventIndex];if(r.eventIndex+=1,i===Ar){n.nodes&&n.nodes.length&&(n[Xe]=!0,r.iterator=n.getIterator());return}else if(this.listeners[i]){r.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[Xe]=!0;let r=o0(e);for(let n of r)if(n===Ar)e.nodes&&e.each(o=>{o[Xe]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Or.registerPostcss=t=>{Ii=t};var i0=Or;Or.default=Or;R8.registerLazyResult(Or);k8.registerLazyResult(Or);let z8=t0,H8=qs;const F8=Us;let q8=da,U8=n0,Di=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=H8;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 o,a=q8;this.result=new F8(this._processor,o,this._opts),this.result.css=r;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new z8(a,o,this._opts,r);if(s.isMap()){let[u,l]=s.generate();u&&(this.result.css=u),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.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||U8("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 V8=Di;Di.default=Di;let W8=Hs,G8=i0,Y8=V8,X8=_n,Sn=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 Y8(this,e,r):new G8(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var K8=Sn;Sn.default=Sn;X8.registerProcessor(Sn);W8.registerProcessor(Sn);let s0=zs,u0=pa,J8=ar,Z8=Ls,l0=ha,c0=Hs,Q8=e8,e5=ma,t5=i0,r5=Xf,n5=fa,o5=qs,Vs=K8,a5=Us,d0=_n,f0=Fs,i5=da,s5=r0;function te(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Vs(t)}te.plugin=function(e,r){let n=!1;function o(...i){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
271
271
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
272
|
-
https://www.w3ctech.com/topic/2226`));let s=r(...i);return s.postcssPlugin=e,s.postcssVersion=new
|
|
272
|
+
https://www.w3ctech.com/topic/2226`));let s=r(...i);return s.postcssPlugin=e,s.postcssVersion=new Vs().version,s}let a;return Object.defineProperty(o,"postcss",{get(){return a||(a=o()),a}}),o.process=function(i,s,u){return te([o(u)]).process(i,s)},o};te.stringify=i5;te.parse=o5;te.fromJSON=Q8;te.list=r5;te.comment=t=>new u0(t);te.atRule=t=>new s0(t);te.decl=t=>new l0(t);te.rule=t=>new f0(t);te.root=t=>new d0(t);te.document=t=>new c0(t);te.CssSyntaxError=Z8;te.Declaration=l0;te.Container=J8;te.Processor=Vs;te.Document=c0;te.Comment=u0;te.Warning=s5;te.AtRule=s0;te.Result=a5;te.Input=e5;te.Rule=f0;te.Root=d0;te.Node=n5;t5.registerPostcss(te);var u5=te;te.default=te;const l5=tf,nc=o4,{isPlainObject:c5}=Ds,oc=y4,d5=x4,{parse:f5}=u5,p5=["img","audio","video","picture","svg","object","map","iframe","embed"],h5=["script","style"];function pr(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function ht(t,e){return{}.hasOwnProperty.call(t,e)}function ac(t,e){const r=[];return pr(t,function(n){e(n)&&r.push(n)}),r}function m5(t){for(const e in t)if(ht(t,e))return!1;return!0}function b5(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 g5=Cn;const v5=/^[^\0\t\n\f\r /<=>]+$/;function Cn(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function a(N,O){const A=this;this.tag=N,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){const R=m[m.length-1];R.text+=A.text}},this.updateParentNodeMediaChildren=function(){m.length&&p5.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Cn.defaults,e),e.parser=Object.assign({},y5,e.parser);const i=function(N){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(N)>-1};h5.forEach(function(N){i(N)&&!e.allowVulnerableTags&&console.warn(`
|
|
273
273
|
|
|
274
274
|
⚠️ Your \`allowedTags\` option includes, \`${N}\`, which is inherently
|
|
275
275
|
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
276
276
|
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
277
277
|
and ensure you are accounting for this risk.
|
|
278
278
|
|
|
279
|
-
`)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},fr(e.allowedAttributes,function(N,O){u[O]=[];const A=[];N.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?A.push(rc(_).replace(/\\\*/g,".*")):u[O].push(_)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},f={};fr(e.allowedClasses,function(N,O){if(u&&(pt(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const A=[];c[O]=[],f[O]=[],N.forEach(function(_){typeof _=="string"&&_.indexOf("*")>=0?A.push(rc(_).replace(/\\\*/g,".*")):_ instanceof RegExp?f[O].push(_):c[O].push(_)}),A.length&&(h[O]=new RegExp("^("+A.join("|")+")$"))}});const d={};let g;fr(e.transformTags,function(N,O){let A;typeof N=="function"?A=N:typeof N=="string"&&(A=Sn.simpleTransform(N)),O==="*"?g=A:d[O]=A});let b,m,v,x,S,C,j=!1;R();const k=new u5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&R(),S){C++;return}const A=new a(N,O);m.push(A);let _=!1;const L=!!A.text;let q;if(pt(d,N)&&(q=d[N](N,O),A.attribs=O=q.attribs,q.text!==void 0&&(A.innerText=q.text),N!==q.tagName&&(A.name=N=q.tagName,x[b]=q.tagName)),g&&(q=g(N,O),A.attribs=O=q.attribs,N!==q.tagName&&(A.name=N=q.tagName,x[b]=q.tagName)),(!i(N)||e.disallowedTagsMode==="recursiveEscape"&&!h5(v)||e.nestingLimit!=null&&b>=e.nestingLimit)&&(_=!0,v[b]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(S=!0,C=1)),b++,_){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!L){const B=M(A.innerText);e.textFilter?n+=e.textFilter(B,N):n+=B,j=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),_&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?fr(O,function(B,z){n+=" "+z+'="'+M(B||"",!0)+'"'}):(!u||pt(u,N)||u["*"])&&fr(O,function(B,z){if(!b5.test(z)){delete A.attribs[z];return}if(B===""&&!e.allowedEmptyAttributes.includes(z)&&(e.nonBooleanAttributes.includes(z)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[z];return}let he=!1;if(!u||pt(u,N)&&u[N].indexOf(z)!==-1||u["*"]&&u["*"].indexOf(z)!==-1||pt(l,N)&&l[N].test(z)||l["*"]&&l["*"].test(z))he=!0;else if(u&&u[N]){for(const X of u[N])if(l5(X)&&X.name&&X.name===z){he=!0;let H="";if(X.multiple===!0){const Ne=B.split(" ");for(const ye of Ne)X.values.indexOf(ye)!==-1&&(H===""?H=ye:H+=" "+ye)}else X.values.indexOf(B)>=0&&(H=B);B=H}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(z)!==-1&&D(N,B)){delete A.attribs[z];return}if(N==="script"&&z==="src"){let X=!0;try{const H=$(B);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ne=(e.allowedScriptHostnames||[]).find(function(ge){return ge===H.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Ne||ye}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(N==="iframe"&&z==="src"){let X=!0;try{const H=$(B);if(H.isRelativeUrl)X=pt(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ne=(e.allowedIframeHostnames||[]).find(function(ge){return ge===H.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Ne||ye}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(z==="srcset")try{let X=c5(B);if(X.forEach(function(H){D("srcset",H.url)&&(H.evil=!0)}),X=oc(X,function(H){return!H.evil}),X.length)B=m5(oc(X,function(H){return!H.evil})),A.attribs[z]=B;else{delete A.attribs[z];return}}catch{delete A.attribs[z];return}if(z==="class"){const X=c[N],H=c["*"],Ne=h[N],ye=f[N],ge=f["*"],We=h["*"],lt=[Ne,We].concat(ye,ge).filter(function(Ge){return Ge});if(X&&H?B=I(B,nc(X,H),lt):B=I(B,X||H,lt),!B.length){delete A.attribs[z];return}}if(z==="style"){if(e.parseStyleAttributes)try{const X=d5(N+" {"+B+"}",{map:!1}),H=E(X,e.allowedStyles);if(B=T(H),B.length===0){delete A.attribs[z];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+B+`}", 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[z];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+z,B&&B.length?n+='="'+M(B,!0)+'"':e.allowedEmptyAttributes.includes(z)&&(n+='=""')}else delete A.attribs[z]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",A.innerText&&!L&&!e.textFilter&&(n+=M(A.innerText),j=!0)),_&&(n=o+M(n),o=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(N){if(S)return;const O=m[m.length-1];let A;if(O&&(A=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!i(A))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=N;else if(!j){const _=M(N,!1);e.textFilter?n+=e.textFilter(_,A):n+=_}if(m.length){const _=m[m.length-1];_.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),S)if(C--,!C)S=!1;else return;const A=m.pop();if(!A)return;if(A.tag!==N){m.push(A);return}S=e.enforceHtmlBoundary?N==="html":!1,b--;const _=v[b];if(_){if(delete v[b],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}o=n,n=""}if(x[b]&&(N=x[b],delete x[b]),e.exclusiveFilter){const L=e.exclusiveFilter(A);if(L==="excludeTag"){_&&(n=o,o=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(L){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!i(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){_&&(n=o,o="");return}n+="</"+N+">",_&&(n=o+M(n),o=""),j=!1}},e.parser);return k.write(t),k.end(),n;function R(){n="",b=0,m=[],v={},x={},S=!1,C=0}function M(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,"""))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,""")),N}function D(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const L=O.indexOf("<!--");if(L===-1)break;const q=O.indexOf("-->",L+4);if(q===-1)break;O=O.substring(0,L)+O.substring(q+3)}const A=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const _=A[1].toLowerCase();return pt(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(_)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(_)===-1}function $(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let L=0;L<100;L++)O+=`/${L}`;const A=new URL(N,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function E(N,O){if(!O)return N;const A=N.nodes[0];let _;return O[A.selector]&&O["*"]?_=nc(O[A.selector],O["*"]):_=O[A.selector]||O["*"],_&&(N.nodes[0].nodes=A.nodes.reduce(P(_),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function P(N){return function(O,A){return pt(N,A.prop)&&N[A.prop].some(function(L){return L.test(A.value)})&&O.push(A),O}}function I(N,O,A){return O?(N=N.split(/\s+/),N.filter(function(_){return O.indexOf(_)!==-1||A.some(function(L){return L.test(_)})}).join(" ")):N}}const v5={decodeEntities:!0};Sn.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};Sn.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let a;if(r)for(a in e)o[a]=e[a];else o=e;return{tagName:t,attribs:o}}};const f0=Ho(g5),y5=[{command:"bold",icon:nh,label:"Bold"},{command:"italic",icon:ch,label:"Italic"},{command:"underline",icon:xh,label:"Underline"},{command:"strikeThrough",icon:vh,label:"Strikethrough"},{command:"insertUnorderedList",icon:fh,label:"Bullet List"},{command:"insertOrderedList",icon:dh,label:"Numbered List"}],x5={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$/]}}},w5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,a]=w.useState(!1),[i,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=m=>{var v;document.execCommand(m,!1,null),(v=n.current)==null||v.focus(),c()},c=()=>{if(n.current){const m=n.current.innerHTML,v=f0(m,x5);r(v)}},h=()=>{const m=window.getSelection();m&&m.rangeCount>0&&(u.current=m.getRangeAt(0))},f=()=>{if(u.current){const m=window.getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(u.current)}},d=()=>{h(),a(!0)},g=()=>{var m;if(i){f();let v=i.trim();v&&!v.match(/^https?:\/\//i)&&(v="https://"+v);try{new URL(v),document.execCommand("createLink",!1,v),c()}catch{}}a(!1),s(""),(m=n.current)==null||m.focus()},b=m=>{try{return document.queryCommandState(m)}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(pn,{children:[y5.map(({command:m,icon:v,label:x})=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(m)},className:`p-1.5 rounded hover:bg-background transition-colors ${b(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(v,{className:"h-3.5 w-3.5"})})}),p.jsx(Kt,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:m=>{m.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Vi,{className:"h-3.5 w-3.5"})})}),p.jsx(Kt,{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"}}),o&&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:i,onChange:m=>s(m.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),g()),m.key==="Escape"&&(a(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{a(!1),s("")},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"})]})]})})]})},S5={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$/]}}},Vs=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:a={desktop:150},letterSpacing:i={desktop:0},textAlign:s="left",color:u="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:f=100})=>{const d=Ce(),g=Cn();let b,m,v;try{const{connectors:D,events:$}=ne(E=>({events:E.events}));b=D.connect,m=D.drag,v=$.selected}catch{}const x=Eo(t,g),S=D=>[D][d]||[D].desktop,C=typeof S("margin")=="object"?`${S("margin").top}px ${S("margin").right}px ${S("margin").bottom}px ${S("margin").left}px`:`${S("margin")}px`,j=gt(r,d,16),k=gt(a,d,150)/100,R=gt(i,d,0),M=/<[^>]+>/.test(x);return p.jsx("div",{ref:D=>D&&b&&m&&b(m(D)),className:`cursor-move ${v?"outline outline-blue-500":""}`,style:{fontSize:`${j}px`,fontWeight:n,fontFamily:o,lineHeight:k,letterSpacing:`${R}px`,textAlign:s,color:u,margin:C,textDecoration:c,textTransform:h,opacity:f/100},children:e||M?p.jsx("div",{dangerouslySetInnerHTML:{__html:f0(Eo(e||x,g),S5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):x})},C5=()=>{const{actions:{setProp:t},props:e}=ne(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(V,{title:"Content",defaultOpen:!0,children:p.jsx(w5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(o=>o.fontFamily=n)}),p.jsx(So,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(Co,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(So,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(vt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Hi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(J,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(o=>o.textTransform=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(o=>o.textDecoration=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(Co,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Qd,{})})]})};Vs.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:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:C5}};const on={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}},Ws=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:a="inherit",fontSize:i="auto",lineHeight:s={desktop:120},letterSpacing:u={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var M,D,$;const f=Ce(),d=Cn();let g,b,m;try{const{connectors:E,events:T}=ne(P=>({events:P.events}));g=E.connect,b=E.drag,m=T.selected}catch{}const v=Eo(t,d),x=`h${e}`;let S;i==="auto"?S=((M=on[e])==null?void 0:M[f])||((D=on[e])==null?void 0:D.desktop)||36:S=gt(i,f,(($=on[e])==null?void 0:$.desktop)||36);const C=gt(s,f,120)/100,j=gt(u,f,-.5),k=gt(h,f,100),R=typeof l[f]=="object"?`${l[f].top}px ${l[f].right}px ${l[f].bottom}px ${l[f].left}px`:`${l[f]}px`;return p.jsx(x,{ref:E=>E&&g&&b&&g(b(E)),className:`cursor-move ${m?"outline outline-blue-500":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:a,fontSize:`${S}px`,lineHeight:C,letterSpacing:`${j}px`,margin:R,textTransform:c,opacity:k/100},children:v})},E5=()=>{var a;const t=Ce(),{actions:{setProp:e},props:r}=ne(i=>({props:i.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var i;return r.fontSize==="auto"?((i=on[r.level||2])==null?void 0:i[t])||36:gt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx($t,{label:"Text",value:r.text,onChange:i=>e(s=>s.text=i)}),p.jsx(vt,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:i=>e(s=>{s.level=i,s.fontSize})})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:i=>e(s=>s.fontFamily=i)}),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(i=>i.fontSize=i.fontSize==="auto"?{desktop:o()}:"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(So,{label:"Size",values:r.fontSize,onChange:i=>e(s=>s.fontSize=i),min:12,max:120,defaultValue:((a=on[r.level||2])==null?void 0:a.desktop)||36})]}),p.jsx(J,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:i=>e(s=>s.fontWeight=i)}),p.jsx(Co,{label:"Line Height",values:r.lineHeight,onChange:i=>e(s=>s.lineHeight=i),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(So,{label:"Letter Spacing",values:r.letterSpacing,onChange:i=>e(s=>s.letterSpacing=i),min:-5,max:20,defaultValue:-.5}),p.jsx(vt,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Hi,{className:"h-3 w-3"})}],onChange:i=>e(s=>s.textAlign=i)}),p.jsx(J,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:i=>e(s=>s.textTransform=i)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Text Color",value:r.color||"#000000",onChange:i=>e(s=>s.color=i)}),p.jsx(Co,{label:"Opacity",values:r.opacity,onChange:i=>e(s=>s.opacity=i),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:n,onChange:i=>e(s=>s.margin={...s.margin,...i})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Qd,{})})]})};Ws.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:E5}};const Gs=({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:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ce();let h,f,d;try{const{connectors:b,events:m}=ne(v=>({events:v.events}));h=b.connect,f=b.drag,d=m.selected}catch{}const g=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:b=>b&&h&&f&&h(f(b)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:g,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},N5=()=>{const{actions:{setProp:t},props:e}=ne(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(V,{title:"Source",defaultOpen:!0,children:[p.jsx($t,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx($t,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Gs.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:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:N5}};const Ys=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:a=100})=>{const i=Ce();let s,u,l;try{const{connectors:h,events:f}=ne(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[i]=="object"?`${o[i].top}px ${o[i].right}px ${o[i].bottom}px ${o[i].left}px`:`${o[i]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:a/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},T5=()=>{const{actions:{setProp:t},props:e}=ne(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(V,{title:"Style",defaultOpen:!0,children:[p.jsx(J,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(o=>o.style=n)}),p.jsx(Qe,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(pe,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(J,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(o=>o.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(pe,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!0,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Ys.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:T5}};const Xs=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,a;try{const{connectors:i,events:s}=ne(u=>({events:u.events}));n=i.connect,o=i.drag,a=s.selected}catch{}return p.jsxs("div",{ref:i=>i&&n&&o&&n(o(i)),className:`cursor-move w-full relative group ${a?"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"})]})},j5=()=>{const{actions:{setProp:t},props:e}=ne(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(o=>o.height=n[r])}}),p.jsx(pe,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Xs.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:j5}};const A5=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function O5(){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 k5(t,e={}){const r=await fetch(`${A5}${t}`,{...e,headers:{...O5(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function P5(t,e){return(await k5(`/videos/${t}/${e||""}`)).data}function _5(t){const e=y.useRef({value:t,previous:t});return y.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var ma="Checkbox",[R5]=tr(ma),[I5,Ks]=R5(ma);function D5(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=Hr({prop:r,defaultProp:o??!1,onChange:u,caller:ma}),[g,b]=y.useState(null),[m,v]=y.useState(null),x=y.useRef(!1),S=g?!!i||!!g.closest("form"):!0,C={checked:f,disabled:a,setChecked:d,control:g,setControl:b,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:_t(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:v};return p.jsx(I5,{scope:e,...C,children:M5(h)?h(C):n})}var p0="CheckboxTrigger",h0=y.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:a,value:i,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:g}=Ks(p0,t),b=we(o,c),m=y.useRef(u);return y.useEffect(()=>{const v=a==null?void 0:a.form;if(v){const x=()=>h(m.current);return v.addEventListener("reset",x),()=>v.removeEventListener("reset",x)}},[a,h]),p.jsx(me.button,{type:"button",role:"checkbox","aria-checked":_t(u)?"mixed":u,"aria-required":l,"data-state":y0(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:b,onKeyDown:ue(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ue(r,v=>{h(x=>_t(x)?!0:!x),g&&d&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});h0.displayName=p0;var Js=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(D5,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(h0,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(v0,{__scopeCheckbox:r})]})})});Js.displayName=ma;var m0="CheckboxIndicator",g0=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,a=Ks(m0,r);return p.jsx(rr,{present:n||_t(a.checked)||a.checked===!0,children:p.jsx(me.span,{"data-state":y0(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});g0.displayName=m0;var b0="CheckboxBubbleInput",v0=y.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Ks(b0,t),g=we(r,d),b=_5(a),m=Rd(n);y.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(S,"checked").set,k=!o.current;if(b!==a&&j){const R=new Event("click",{bubbles:k});x.indeterminate=_t(a),j.call(x,_t(a)?!1:a),x.dispatchEvent(R)}},[f,b,a,o]);const v=y.useRef(_t(a)?!1:a);return p.jsx(me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:g,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});v0.displayName=b0;function M5(t){return typeof t=="function"}function _t(t){return t==="indeterminate"}function y0(t){return _t(t)?"indeterminate":t?"checked":"unchecked"}const x0=y.forwardRef(({className:t,...e},r)=>p.jsx(Js,{ref:r,className:Se("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(g0,{className:Se("flex items-center justify-center text-current"),children:p.jsx(Fi,{className:"h-4 w-4"})})}));x0.displayName=Js.displayName;const L5=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,a]=w.useState(!1),[i,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),a(!0),i&&window.parent.postMessage({type:"OPEN_POPUP",payload:"1"},"*"))};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(Xe,{disabled:!r||o||e,onClick:u,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Fi,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(sh,{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(x0,{checked:r,onCheckedChange:l=>n(l===!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"}),"."]})]})]})},qr=t=>{let e,r,n=!1,o;try{const{connectors:a,events:i}=ne(u=>({events:u.events}));e=a.connect,r=a.drag,n=i.selected;const{editorEnabled:s}=at(u=>({editorEnabled:u.options.enabled}));o=s}catch{}return p.jsx("div",{...t.id?{id:t.id}:{},ref:a=>a&&e&&r&&e(r(a)),style:Es(t),className:tt(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),...!o&&t.onClick?{onClick:a=>t.onClick(a)}:{},children:t.children})},$5={...hn,display:"flex",justifyContent:"center",alignItems:"center"};qr.craft={props:$5,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:ia}};const B5=(t,e)=>{if(typeof t!="object"||t===null)return t;const r=["mobile","tablet","small","desktop"],n=r.indexOf(e);for(let o=n;o>=0;o--)if(t[r[o]]!==void 0)return t[r[o]];return t.desktop??t.mobile??0},z5=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const o=w.useRef(null),{data:a,isLoading:i,error:s}=vp.useQuery({queryKey:["video",t,e],queryFn:()=>P5(t,e),enabled:!!t});if(i)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(s||!a)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(oh,{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:u}=a,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=u.mp4_hr_url,c.download=`${u.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(qr,{children:p.jsx(Nn,{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:[u.name," (",u.start_no,")"]}),p.jsxs("video",{ref:o,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[p.jsx("source",{src:u.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(L5,{onDownload:l,disabled:r})]})})})})},Zs=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:o="none"})=>{const a=Ce(),i=Cn();let s,u,l;try{const{connectors:m,events:v}=ne(x=>({events:x.events}));s=m.connect,u=m.drag,l=v.selected}catch{}let c=!1;try{let{options:m}=at(v=>({options:v.options}));c=m.enabled}catch{}const h=B5(t,a),f={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)"},d={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:f[o]||"none"},g=(i==null?void 0:i.videos)||[],b=g.length>0;return p.jsx("div",{ref:m=>m&&s&&u&&s(u(m)),style:d,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:b?p.jsx("div",{className:"space-y-6",children:g.map(m=>p.jsx(z5,{locationId:m.locationId,bibId:i==null?void 0:i.bibId,editorEnabled:c,videoTitle:m.name||m.locationId},m.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(Cc,{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."})]})]})})},H5=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:o,boxShadow:a}=ne(s=>({padding:s.data.props.padding,margin:s.data.props.margin,background:s.data.props.background,borderRadius:s.data.props.borderRadius,boxShadow:s.data.props.boxShadow})),i=[{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(V,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(V,{title:"Style",children:[p.jsx(pe,{unit:"px",label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:s=>t(u=>u.padding={...u.padding,desktop:s,mobile:s}),min:0,max:100}),p.jsx(pe,{unit:"px",label:"Border Radius",value:o,onChange:s=>t(u=>u.borderRadius=s),min:0,max:50}),p.jsx(Qe,{label:"Background",value:n,onChange:s=>t(u=>u.background=s)}),p.jsx(J,{label:"Shadow",value:a,options:i,onChange:s=>t(u=>u.boxShadow=s)})]}),p.jsx(V,{title:"Spacing",children:p.jsx(Me,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};Zs.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{desktop:{top:0,right:0,bottom:0,left:0}},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:H5}};const w0=({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:o="stretch",children:a})=>{const i=Ce();let s,u,l;try{const{connectors:d,events:g}=ne(b=>({events:b.events}));s=d.connect,u=d.drag,l=g.selected}catch{}const c=d=>[d][i]||[d].desktop,h=typeof c("padding")=="object"?`${c("padding").top}px ${c("padding").right}px ${c("padding").bottom}px ${c("padding").left}px`:`${c("padding")}px`,f=typeof c("margin")=="object"?`${c("margin").top}px ${c("margin").right}px ${c("margin").bottom}px ${c("margin").left}px`:`${c("margin")}px`;return p.jsx("div",{ref:d=>d&&s&&u&&(s==null?void 0:s(u==null?void 0:u(d))),className:`cursor-move w-full ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:h,margin:f,alignItems:o},children:a})},F5=()=>{const{actions:{setProp:t},props:e}=ne(o=>({props:o.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(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(vt,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:o=>t(a=>a.columns=o)}),p.jsx(pe,{unit:"px",label:"Gap",value:e.gap||16,onChange:o=>t(a=>a.gap=o),max:64}),p.jsx(J,{label:"Align Items",value:e.alignItems||"stretch",options:[{value:"stretch",label:"Stretch"},{value:"start",label:"Top"},{value:"center",label:"Center"},{value:"end",label:"Bottom"}],onChange:o=>t(a=>a.alignItems=o)})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!1,children:[p.jsx(Me,{label:"Padding",values:r,onChange:o=>t(a=>a.padding={...a.padding,...o})}),p.jsx(Me,{label:"Margin",values:n,onChange:o=>t(a=>a.margin={...a.margin,...o})})]})]})};w0.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},alignItems:"stretch"},related:{settings:F5}};const Qs=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:o="400",color:a="#0066cc",hoverColor:i="#0052a3",textDecoration:s="underline",textAlign:u="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const h=Ce();let f,d,g;try{const{connectors:m,events:v}=ne(x=>({events:x.events}));f=m.connect,d=m.drag,g=v.selected}catch{}const b=typeof l[h]=="object"?`${l[h].top}px ${l[h].right}px ${l[h].bottom}px ${l[h].left}px`:`${l[h]}px`;return p.jsx("a",{ref:m=>m&&f&&d&&f(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 ${g?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:o,color:a,textDecoration:s,textAlign:u,margin:b,opacity:c/100,display:"block"},children:t})},q5=()=>{const{actions:{setProp:t},props:e}=ne(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(V,{title:"Content",defaultOpen:!0,children:[p.jsx($t,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx($t,{label:"URL",value:e.url,onChange:n=>t(o=>o.url=n)}),p.jsx(J,{label:"Open in",value:e.target||"_self",options:[{value:"_self",label:"Same Tab"},{value:"_blank",label:"New Tab"}],onChange:n=>t(o=>o.target=n)})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize||16,onChange:n=>t(o=>o.fontSize=n),min:10,max:48}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(o=>o.textDecoration=n)}),p.jsx(vt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Hi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Qe,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Qs.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100},related:{settings:q5}};const S0=({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:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ce();let h,f,d;try{const{connectors:b,events:m}=ne(v=>({events:v.events}));h=b.connect,f=b.drag,d=m.selected}catch{}const g=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:b=>b&&h&&f&&h(f(b)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:g,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},U5=()=>{const{actions:{setProp:t},props:e}=ne(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(V,{title:"Source",defaultOpen:!0,children:[p.jsx($t,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx($t,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(aa,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Me,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};S0.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:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:U5}};function ac(t=12){const e="abcdefghijklmnopqrstuvwxyz",r=e+"0123456789";let n=e[Math.floor(Math.random()*e.length)];for(let o=1;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}const C0=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:s,events:u}=ne(l=>({events:l.events}));r=s.connect,n=s.drag,o=u.selected}catch{}const a=ac(),i=ac();return p.jsx("div",{ref:s=>{s&&r&&n&&r(n(s))},className:tt(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(Pt,{is:qr,id:`section-wrapper-${a}`,children:p.jsx(Pt,{is:Nn,canvas:!0,id:`section-container-${i}`,children:t})})})};C0.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const eu=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=ne(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{style:Es(t),className:tt(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e&&r&&e(r(o))},children:t.children})};eu.craft={isCanvas:!0,props:hn,related:{settings:ia}};const E0=({background:t="transparent",padding:e={top:16,right:16,bottom:16,left:16},margin:r={top:0,right:0,bottom:0,left:0},width:n="auto",minHeight:o=100,maxWidth:a="none",display:i="block",flexDirection:s="column",justifyContent:u="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:h=8,borderWidth:f=1,borderColor:d="transparent",borderStyle:g="dashed",boxShadow:b="none",children:m})=>{const v=Ce();let x,S,C;try{const{connectors:D,events:$}=ne(E=>({events:E.events}));x=D.connect,S=D.drag,C=$.selected}catch{}const j=D=>[D][v]||[D].desktop,k=typeof j("padding")=="object"?`${j("padding").top}px ${j("padding").right}px ${j("padding").bottom}px ${j("padding").left}px`:`${j("padding")}px`,R=typeof j("margin")=="object"?`${j("margin").top}px ${j("margin").right}px ${j("margin").bottom}px ${j("margin").left}px`:`${j("margin")}px`,M=[{url:"https://myracereel.com/privacy-data-privacy",name:"Privacy & Data Policy"},{url:"https://myracereel.com/terms-of-service",name:"Terms of Service"},{url:"https://myracereel.com/faq",name:"FAQ"},{url:"https://myracereel.com/contact",name:"Contact Us"}];return p.jsx(qr,{style:{backgroundColor:t,padding:k,margin:R,width:n==="auto"?"100%":n,minHeight:`${o}px`,maxWidth:a==="none"?"none":`${a}px`,display:i,flexDirection:i==="flex"?s:void 0,justifyContent:i==="flex"?u:void 0,alignItems:i==="flex"?l:void 0,gap:i==="flex"?`${c}px`:void 0,borderRadius:`${h}px`,borderWidth:`${f}px`,borderColor:d,borderStyle:g,boxShadow:b==="none"?"none":b},className:"bg-black",ref:D=>D&&x&&S&&x(S(D)),children:p.jsx("div",{className:"flex justify-center w-full",children:p.jsxs("div",{className:"w-full flex flex-col py-10 gap-y-3.5 ",children:[p.jsx("div",{className:"flex w-full gap-x-1 justify-center items-center",children:p.jsx("div",{className:"text-white text-sm",children:"Powered by MyRaceReel"})}),p.jsx("div",{className:"flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col",children:M.map(D=>p.jsx("a",{className:"text-white",href:D.url,target:"_blank",children:D.name},D.name))})]})})})};E0.craft={displayName:"Footer",props:{background:"transparent",padding:{desktop:{top:16,right:16,bottom:16,left:16}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:ia}};const V5=()=>{const{connectors:t}=at(),e=[{name:"Wrapper",icon:mh,element:p.jsx(Pt,{is:qr,canvas:!0})},{name:"Container",icon:bh,element:p.jsx(Pt,{is:Nn,canvas:!0})},{name:"Div",icon:qa,element:p.jsx(Pt,{is:eu,canvas:!0})}],r=[{name:"Heading",icon:Ec,element:p.jsx(Ws,{})},{name:"Text",icon:Oc,element:p.jsx(Vs,{})},{name:"Button",icon:jc,element:p.jsx(Cs,{})},{name:"Link",icon:Vi,element:p.jsx(Qs,{})}],n=[{name:"Image",icon:Nc,element:p.jsx(Gs,{})},{name:"Video",icon:Cc,element:p.jsx(Zs,{})}],o=[{name:"Divider",icon:Tc,element:p.jsx(Ys,{})},{name:"Spacer",icon:Ac,element:p.jsx(Xs,{})}],a=(i,s)=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("span",{className:"text-xs text-muted-foreground/70",children:i}),p.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:s.map(u=>p.jsxs(Xe,{variant:"outline",size:"sm",className:"flex flex-col items-center justify-center h-14 cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground",ref:l=>l&&t.create(l,u.element),children:[p.jsx(u.icon,{className:"h-4 w-4 mb-1"}),p.jsx("span",{className:"text-[10px]",children:u.name})]},u.name))})]});return p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Components"}),a("Layout",e),a("Basic",r),a("Media",n),a("Utility",o)]})};var W5=y.createContext(void 0);function tu(t){const e=y.useContext(W5);return t||e||"ltr"}function G5(t,[e,r]){return Math.min(r,Math.max(e,t))}function Y5(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var ru="ScrollArea",[N0]=tr(ru),[X5,Le]=N0(ru),T0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=t,[s,u]=y.useState(null),[l,c]=y.useState(null),[h,f]=y.useState(null),[d,g]=y.useState(null),[b,m]=y.useState(null),[v,x]=y.useState(0),[S,C]=y.useState(0),[j,k]=y.useState(!1),[R,M]=y.useState(!1),D=we(e,E=>u(E)),$=tu(o);return p.jsx(X5,{scope:r,type:n,dir:$,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:g,scrollbarXEnabled:j,onScrollbarXEnabledChange:k,scrollbarY:b,onScrollbarYChange:m,scrollbarYEnabled:R,onScrollbarYEnabledChange:M,onCornerWidthChange:x,onCornerHeightChange:C,children:p.jsx(me.div,{dir:$,...i,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});T0.displayName=ru;var j0="ScrollAreaViewport",A0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=t,i=Le(j0,r),s=y.useRef(null),u=we(e,s,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(me.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});A0.displayName=j0;var ut="ScrollAreaScrollbar",nu=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=t.orientation==="horizontal";return y.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?p.jsx(K5,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(J5,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(O0,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(ou,{...n,ref:e}):null});nu.displayName=ut;var K5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),[a,i]=y.useState(!1);return y.useEffect(()=>{const s=o.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),i(!0)},c=()=>{u=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(rr,{present:r||a,children:p.jsx(O0,{"data-state":a?"visible":"hidden",...n,ref:e})})}),J5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(ut,t.__scopeScrollArea),a=t.orientation==="horizontal",i=ba(()=>u("SCROLL_END"),100),[s,u]=Y5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,u]),y.useEffect(()=>{const l=o.viewport,c=a?"scrollLeft":"scrollTop";if(l){let h=l[c];const f=()=>{const d=l[c];h!==d&&(u("SCROLL"),i()),h=d};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,a,u,i]),p.jsx(rr,{present:r||s!=="hidden",children:p.jsx(ou,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:ue(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ue(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),O0=y.forwardRef((t,e)=>{const r=Le(ut,t.__scopeScrollArea),{forceMount:n,...o}=t,[a,i]=y.useState(!1),s=t.orientation==="horizontal",u=ba(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:c)}},10);return kr(r.viewport,u),kr(r.content,u),p.jsx(rr,{present:n||a,children:p.jsx(ou,{"data-state":a?"visible":"hidden",...o,ref:e})})}),ou=y.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Le(ut,t.__scopeScrollArea),a=y.useRef(null),i=y.useRef(0),[s,u]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=I0(s.viewport,s.content),c={...n,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function h(f,d){return nS(f,i.current,s,d)}return r==="horizontal"?p.jsx(Z5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollLeft,d=ic(f,s,o.dir);a.current.style.transform=`translate3d(${d}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=h(f,o.dir))}}):r==="vertical"?p.jsx(Q5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollTop,d=ic(f,s);a.current.style.transform=`translate3d(0, ${d}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=h(f))}}):null}),Z5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(ut,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=we(e,u,a.onScrollbarXChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(P0,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ga(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollLeft+c.deltaX;t.onWheelScroll(f),M0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Io(i.paddingLeft),paddingEnd:Io(i.paddingRight)}})}})}),Q5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(ut,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=we(e,u,a.onScrollbarYChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(P0,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ga(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollTop+c.deltaY;t.onWheelScroll(f),M0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Io(i.paddingTop),paddingEnd:Io(i.paddingBottom)}})}})}),[eS,k0]=N0(ut),P0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:c,onResize:h,...f}=t,d=Le(ut,r),[g,b]=y.useState(null),m=we(e,D=>b(D)),v=y.useRef(null),x=y.useRef(""),S=d.viewport,C=n.content-n.viewport,j=De(c),k=De(u),R=ba(h,10);function M(D){if(v.current){const $=D.clientX-v.current.left,E=D.clientY-v.current.top;l({x:$,y:E})}}return y.useEffect(()=>{const D=$=>{const E=$.target;(g==null?void 0:g.contains(E))&&j($,C)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[S,g,C,j]),y.useEffect(k,[n,k]),kr(g,R),kr(d.content,R),p.jsx(eS,{scope:r,scrollbar:g,hasThumb:o,onThumbChange:De(a),onThumbPointerUp:De(i),onThumbPositionChange:k,onThumbPointerDown:De(s),children:p.jsx(me.div,{...f,ref:m,style:{position:"absolute",...f.style},onPointerDown:ue(t.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),v.current=g.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),M(D))}),onPointerMove:ue(t.onPointerMove,M),onPointerUp:ue(t.onPointerUp,D=>{const $=D.target;$.hasPointerCapture(D.pointerId)&&$.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=x.current,d.viewport&&(d.viewport.style.scrollBehavior=""),v.current=null})})})}),Ro="ScrollAreaThumb",_0=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=k0(Ro,t.__scopeScrollArea);return p.jsx(rr,{present:r||o.hasThumb,children:p.jsx(tS,{ref:e,...n})})}),tS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,a=Le(Ro,r),i=k0(Ro,r),{onThumbPositionChange:s}=i,u=we(e,h=>i.onThumbChange(h)),l=y.useRef(void 0),c=ba(()=>{l.current&&(l.current(),l.current=void 0)},100);return y.useEffect(()=>{const h=a.viewport;if(h){const f=()=>{if(c(),!l.current){const d=oS(h,s);l.current=d,s()}};return s(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[a.viewport,c,s]),p.jsx(me.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:ue(t.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),g=h.clientX-d.left,b=h.clientY-d.top;i.onThumbPointerDown({x:g,y:b})}),onPointerUp:ue(t.onPointerUp,i.onThumbPointerUp)})});_0.displayName=Ro;var au="ScrollAreaCorner",R0=y.forwardRef((t,e)=>{const r=Le(au,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(rS,{...t,ref:e}):null});R0.displayName=au;var rS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Le(au,r),[a,i]=y.useState(0),[s,u]=y.useState(0),l=!!(a&&s);return kr(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),kr(o.scrollbarY,()=>{var h;const c=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(c),i(c)}),l?p.jsx(me.div,{...n,ref:e,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Io(t){return t?parseInt(t,10):0}function I0(t,e){const r=t/e;return isNaN(r)?0:r}function ga(t){const e=I0(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function nS(t,e,r,n="ltr"){const o=ga(r),a=o/2,i=e||a,s=o-i,u=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,h=n==="ltr"?[0,c]:[c*-1,0];return D0([u,l],h)(t)}function ic(t,e,r="ltr"){const n=ga(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-o,i=e.content-e.viewport,s=a-n,u=r==="ltr"?[0,i]:[i*-1,0],l=G5(t,u);return D0([0,i],[0,s])(l)}function D0(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function M0(t,e){return t>0&&t<e}var oS=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function o(){const a={left:t.scrollLeft,top:t.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&e(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function ba(t,e){const r=De(t),n=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(n.current),[]),y.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,e)},[r,e])}function kr(t,e){const r=De(e);Dt(()=>{let n=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(t),()=>{window.cancelAnimationFrame(n),o.unobserve(t)}}},[t,r])}var L0=T0,aS=A0,iS=R0;const iu=y.forwardRef(({className:t,children:e,...r},n)=>p.jsxs(L0,{ref:n,className:Se("relative overflow-hidden",t),...r,children:[p.jsx(aS,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx($0,{}),p.jsx(iS,{})]}));iu.displayName=L0.displayName;const $0=y.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(nu,{ref:n,orientation:e,className:Se("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:p.jsx(_0,{className:"relative flex-1 rounded-full bg-border"})}));$0.displayName=nu.displayName;const sS=()=>{const{selected:t,actions:e}=at(r=>{var a,i,s,u,l,c,h;const n=r.events.selected?Array.from(r.events.selected)[0]:null;let o;return n&&(o={id:n,name:((i=(a=r.nodes[n])==null?void 0:a.data)==null?void 0:i.displayName)||((u=(s=r.nodes[n])==null?void 0:s.data)==null?void 0:u.name),settings:(c=(l=r.nodes[n])==null?void 0:l.related)==null?void 0:c.settings,isDeletable:((h=r.nodes[n])==null?void 0:h.id)!=="ROOT"}),{selected:o}});return p.jsx("div",{className:"h-full flex flex-col",children:t?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-border mb-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"Selected"}),p.jsx("h3",{className:"text-sm font-semibold",children:t.name})]}),t.isDeletable&&p.jsx("button",{onClick:()=>e.delete(t.id),className:"p-1.5 rounded hover:bg-destructive/10 text-destructive transition-colors",title:"Delete element",children:p.jsx(yh,{className:"h-4 w-4"})})]}),p.jsx(iu,{className:"flex-1 -mr-4 pr-4",children:t.settings&&w.createElement(t.settings)})]}):p.jsx("div",{className:"text-center py-8",children:p.jsx("p",{className:"text-sm text-muted-foreground",children:"Select an element to edit its properties"})})})},uS=t=>{switch(t){case"Container":return qa;case"Text":return Oc;case"Heading":return Ec;case"Button":return jc;case"Image":return Nc;case"Divider":return Tc;case"Spacer":return Ac;case"Video":return Sh;case"Columns":return ah;case"Link":return Vi;default:return qa}},B0=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a})=>{const{node:i,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=at((T,P)=>{var _,L;const I=T.nodes[t],N=((_=I==null?void 0:I.data)==null?void 0:_.nodes)||[],O=T.events.selected?Array.from(T.events.selected)[0]:null,A=(L=I==null?void 0:I.data)==null?void 0:L.parent;return{node:I,childNodes:N,selectedNodeId:O,parentId:A}}),[h,f]=w.useState(!0),[d,g]=w.useState(!1);if(!i)return null;const b=i.data.displayName||i.data.name||"Unknown",m=l.length>0,v=u===t,x=t==="ROOT",S=uS(b),C=a===t,j=i.data.isCanvas,k=T=>{T.stopPropagation(),x||s.selectNode(t)},R=T=>{T.stopPropagation(),f(!h)},M=T=>{if(x){T.preventDefault();return}T.stopPropagation(),r(t,c)},D=T=>{T.preventDefault(),T.stopPropagation(),a&&a!==t&&j&&g(!0)},$=T=>{T.stopPropagation(),g(!1)},E=T=>{T.preventDefault(),T.stopPropagation(),g(!1),a&&a!==t&&o(t)};return p.jsxs("div",{className:"select-none",children:[p.jsxs("div",{className:`flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${v?"bg-primary/10 text-primary":"hover:bg-secondary/50"} ${C?"opacity-50":""} ${d?"bg-primary/20 ring-1 ring-primary":""}`,style:{paddingLeft:`${e*12+4}px`},onClick:k,draggable:!x,onDragStart:M,onDragOver:D,onDragLeave:$,onDrop:E,children:[!x&&p.jsx(lh,{className:"h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing"}),m?p.jsx("button",{onClick:R,className:"p-0.5 hover:bg-secondary rounded",children:h?p.jsx(qi,{className:"h-3 w-3"}):p.jsx(Ui,{className:"h-3 w-3"})}):p.jsx("span",{className:"w-4"}),p.jsx(S,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),p.jsx("span",{className:`truncate ${x?"font-medium":""}`,children:x?"Root":b})]}),m&&h&&p.jsx("div",{children:l.map(T=>p.jsx(B0,{nodeId:T,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a},T))})]})},lS=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:a}=at(l=>({nodeIds:Object.keys(l.nodes)})),i=(l,c)=>{e(l),n(c)},s=l=>{if(t&&l&&t!==l)try{a.move(t,l,0)}catch(c){console.log("Cannot move node:",c)}e(null),n(null)},u=()=>{e(null),n(null)};return p.jsxs("div",{className:"space-y-2",onDragEnd:u,children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Layers"}),p.jsx("div",{className:"border border-border rounded-lg p-2 max-h-[250px] overflow-y-auto bg-background",children:o.includes("ROOT")&&p.jsx(B0,{nodeId:"ROOT",onDragStart:i,onDrop:s,draggedId:t})}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Drag to containers to reorder"})]})};function sc(t){const e=cS(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(fS);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function cS(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=hS(o),s=pS(a,o.props);return o.type!==y.Fragment&&(s.ref=n?$o(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var dS=Symbol("radix.slottable");function fS(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===dS}function pS(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function hS(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function mS(t){const e=t+"CollectionProvider",[r,n]=tr(e),[o,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=b=>{const{scope:m,children:v}=b,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:m,itemMap:S,collectionRef:x,children:v})};i.displayName=e;const s=t+"CollectionSlot",u=sc(s),l=w.forwardRef((b,m)=>{const{scope:v,children:x}=b,S=a(s,v),C=we(m,S.collectionRef);return p.jsx(u,{ref:C,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=sc(c),d=w.forwardRef((b,m)=>{const{scope:v,children:x,...S}=b,C=w.useRef(null),j=we(m,C),k=a(c,v);return w.useEffect(()=>(k.itemMap.set(C,{ref:C,...S}),()=>void k.itemMap.delete(C))),p.jsx(f,{[h]:"",ref:j,children:x})});d.displayName=c;function g(b){const m=a(t+"CollectionConsumer",b);return w.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(m.itemMap.values()).sort((k,R)=>S.indexOf(k.ref.current)-S.indexOf(R.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},g,n]}var za="rovingFocusGroup.onEntryFocus",gS={bubbles:!1,cancelable:!0},_n="RovingFocusGroup",[Di,z0,bS]=mS(_n),[vS,H0]=tr(_n,[bS]),[yS,xS]=vS(_n),F0=y.forwardRef((t,e)=>p.jsx(Di.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Di.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(wS,{...t,ref:e})})}));F0.displayName=_n;var wS=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...h}=t,f=y.useRef(null),d=we(e,f),g=tu(a),[b,m]=Hr({prop:i,defaultProp:s??null,onChange:u,caller:_n}),[v,x]=y.useState(!1),S=De(l),C=z0(r),j=y.useRef(!1),[k,R]=y.useState(0);return y.useEffect(()=>{const M=f.current;if(M)return M.addEventListener(za,S),()=>M.removeEventListener(za,S)},[S]),p.jsx(yS,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:b,onItemFocus:y.useCallback(M=>m(M),[m]),onItemShiftTab:y.useCallback(()=>x(!0),[]),onFocusableItemAdd:y.useCallback(()=>R(M=>M+1),[]),onFocusableItemRemove:y.useCallback(()=>R(M=>M-1),[]),children:p.jsx(me.div,{tabIndex:v||k===0?-1:0,"data-orientation":n,...h,ref:d,style:{outline:"none",...t.style},onMouseDown:ue(t.onMouseDown,()=>{j.current=!0}),onFocus:ue(t.onFocus,M=>{const D=!j.current;if(M.target===M.currentTarget&&D&&!v){const $=new CustomEvent(za,gS);if(M.currentTarget.dispatchEvent($),!$.defaultPrevented){const E=C().filter(O=>O.focusable),T=E.find(O=>O.active),P=E.find(O=>O.id===b),N=[T,P,...E].filter(Boolean).map(O=>O.ref.current);V0(N,c)}}j.current=!1}),onBlur:ue(t.onBlur,()=>x(!1))})})}),q0="RovingFocusGroupItem",U0=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=t,u=xd(),l=a||u,c=xS(q0,r),h=c.currentTabStopId===l,f=z0(r),{onFocusableItemAdd:d,onFocusableItemRemove:g,currentTabStopId:b}=c;return y.useEffect(()=>{if(n)return d(),()=>g()},[n,d,g]),p.jsx(Di.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(me.span,{tabIndex:h?0:-1,"data-orientation":c.orientation,...s,ref:e,onMouseDown:ue(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:ue(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:ue(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const v=ES(m,c.orientation,c.dir);if(v!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let S=f().filter(C=>C.focusable).map(C=>C.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const C=S.indexOf(m.currentTarget);S=c.loop?NS(S,C+1):S.slice(C+1)}setTimeout(()=>V0(S))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:b!=null}):i})})});U0.displayName=q0;var SS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CS(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function ES(t,e,r){const n=CS(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return SS[n]}function V0(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function NS(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var TS=F0,jS=U0,W0="Toggle",su=y.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=t,[i,s]=Hr({prop:r,onChange:o,defaultProp:n??!1,caller:W0});return p.jsx(me.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...a,ref:e,onClick:ue(t.onClick,()=>{t.disabled||s(!i)})})});su.displayName=W0;var G0=su,Ft="ToggleGroup",[Y0]=tr(Ft,[H0]),X0=H0(),uu=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx(AS,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx(OS,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${Ft}\``)});uu.displayName=Ft;var[K0,J0]=Y0(Ft),AS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Hr({prop:r,defaultProp:n??"",onChange:o,caller:Ft});return p.jsx(K0,{scope:t.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(Z0,{...a,ref:e})})}),OS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Hr({prop:r,defaultProp:n??[],onChange:o,caller:Ft}),u=w.useCallback(c=>s((h=[])=>[...h,c]),[s]),l=w.useCallback(c=>s((h=[])=>h.filter(f=>f!==c)),[s]);return p.jsx(K0,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:u,onItemDeactivate:l,children:p.jsx(Z0,{...a,ref:e})})});uu.displayName=Ft;var[kS,PS]=Y0(Ft),Z0=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...u}=t,l=X0(r),c=tu(i),h={role:"group",dir:c,...u};return p.jsx(kS,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(TS,{asChild:!0,...l,orientation:a,dir:c,loop:s,children:p.jsx(me.div,{...h,ref:e})}):p.jsx(me.div,{...h,ref:e})})}),Do="ToggleGroupItem",Q0=w.forwardRef((t,e)=>{const r=J0(Do,t.__scopeToggleGroup),n=PS(Do,t.__scopeToggleGroup),o=X0(t.__scopeToggleGroup),a=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:a,disabled:i},u=w.useRef(null);return n.rovingFocus?p.jsx(jS,{asChild:!0,...o,focusable:!i,active:a,ref:u,children:p.jsx(uc,{...s,ref:e})}):p.jsx(uc,{...s,ref:e})});Q0.displayName=Do;var uc=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,a=J0(Do,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return p.jsx(su,{...s,...o,ref:e,onPressedChange:u=>{u?a.onItemActivate(n):a.onItemDeactivate(n)}})}),ep=uu,tp=Q0;const rp=Pc("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),_S=y.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(G0,{ref:o,className:Se(rp({variant:e,size:r,className:t})),...n}));_S.displayName=G0.displayName;const np=y.createContext({size:"default",variant:"default"}),op=y.forwardRef(({className:t,variant:e,size:r,children:n,...o},a)=>p.jsx(ep,{ref:a,className:Se("flex items-center justify-center gap-1",t),...o,children:p.jsx(np.Provider,{value:{variant:e,size:r},children:n})}));op.displayName=ep.displayName;const ap=y.forwardRef(({className:t,children:e,variant:r,size:n,...o},a)=>{const i=y.useContext(np);return p.jsx(tp,{ref:a,className:Se(rp({variant:i.variant||r,size:i.size||n}),t),...o,children:e})});ap.displayName=tp.displayName;var RS=t=>{switch(t){case"success":return MS;case"info":return $S;case"warning":return LS;case"error":return BS;default:return null}},IS=Array(12).fill(0),DS=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},IS.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),MS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),$S=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),BS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),zS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),HS=()=>{let[t,e]=w.useState(document.hidden);return w.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},Mi=1,FS=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,o=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Mi++,a=this.toasts.find(s=>s.id===o),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:i,title:r}):s):this.addToast({title:r,...n,dismissible:i,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),o=r!==void 0,a,i=n.then(async u=>{if(a=["resolve",u],w.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(US(u)&&!u.ok){o=!1;let l=typeof e.error=="function"?await e.error(`HTTP error! status: ${u.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${u.status}`):e.description;this.create({id:r,type:"error",message:l,description:c})}else if(e.success!==void 0){o=!1;let l=typeof e.success=="function"?await e.success(u):e.success,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"success",message:l,description:c})}}).catch(async u=>{if(a=["reject",u],e.error!==void 0){o=!1;let l=typeof e.error=="function"?await e.error(u):e.error,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"error",message:l,description:c})}}).finally(()=>{var u;o&&(this.dismiss(r),r=void 0),(u=e.finally)==null||u.call(e)}),s=()=>new Promise((u,l)=>i.then(()=>a[0]==="reject"?l(a[1]):u(a[1])).catch(l));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Mi++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Te=new FS,qS=(t,e)=>{let r=(e==null?void 0:e.id)||Mi++;return Te.addToast({title:t,...e,id:r}),r},US=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",VS=qS,WS=()=>Te.toasts,GS=()=>Te.getActiveToasts(),YS=Object.assign(VS,{success:Te.success,info:Te.info,warning:Te.warning,error:Te.error,custom:Te.custom,message:Te.message,promise:Te.promise,dismiss:Te.dismiss,loading:Te.loading},{getHistory:WS,getToasts:GS});function XS(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}XS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
280
|
-
`);function Zn(t){return t.label!==void 0}var KS=3,JS="32px",ZS="16px",lc=4e3,QS=356,eC=14,tC=20,rC=200;function He(...t){return t.filter(Boolean).join(" ")}function nC(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var oC=t=>{var e,r,n,o,a,i,s,u,l,c,h;let{invert:f,toast:d,unstyled:g,interacting:b,setHeights:m,visibleToasts:v,heights:x,index:S,toasts:C,expanded:j,removeToast:k,defaultRichColors:R,closeButton:M,style:D,cancelButtonStyle:$,actionButtonStyle:E,className:T="",descriptionClassName:P="",duration:I,position:N,gap:O,loadingIcon:A,expandByDefault:_,classNames:L,icons:q,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:Z}=t,[B,z]=w.useState(null),[he,X]=w.useState(null),[H,Ne]=w.useState(!1),[ye,ge]=w.useState(!1),[We,lt]=w.useState(!1),[Ge,Rn]=w.useState(!1),[va,In]=w.useState(!1),[ya,Ur]=w.useState(0),[ar,lu]=w.useState(0),Vr=w.useRef(d.duration||I||lc),cu=w.useRef(null),qt=w.useRef(null),lp=S===0,cp=S+1<=v,_e=d.type,ir=d.dismissible!==!1,dp=d.className||"",fp=d.descriptionClassName||"",Dn=w.useMemo(()=>x.findIndex(U=>U.toastId===d.id)||0,[x,d.id]),pp=w.useMemo(()=>{var U;return(U=d.closeButton)!=null?U:M},[d.closeButton,M]),du=w.useMemo(()=>d.duration||I||lc,[d.duration,I]),xa=w.useRef(0),sr=w.useRef(0),fu=w.useRef(0),ur=w.useRef(null),[hp,mp]=N.split("-"),pu=w.useMemo(()=>x.reduce((U,te,le)=>le>=Dn?U:U+te.height,0),[x,Dn]),hu=HS(),gp=d.invert||f,wa=_e==="loading";sr.current=w.useMemo(()=>Dn*O+pu,[Dn,pu]),w.useEffect(()=>{Vr.current=du},[du]),w.useEffect(()=>{Ne(!0)},[]),w.useEffect(()=>{let U=qt.current;if(U){let te=U.getBoundingClientRect().height;return lu(te),m(le=>[{toastId:d.id,height:te,position:d.position},...le]),()=>m(le=>le.filter($e=>$e.toastId!==d.id))}},[m,d.id]),w.useLayoutEffect(()=>{if(!H)return;let U=qt.current,te=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=te,lu(le),m($e=>$e.find(Be=>Be.toastId===d.id)?$e.map(Be=>Be.toastId===d.id?{...Be,height:le}:Be):[{toastId:d.id,height:le,position:d.position},...$e])},[H,d.title,d.description,m,d.id]);let Nt=w.useCallback(()=>{ge(!0),Ur(sr.current),m(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{k(d)},rC)},[d,k,m,sr]);w.useEffect(()=>{if(d.promise&&_e==="loading"||d.duration===1/0||d.type==="loading")return;let U;return j||b||Z&&hu?(()=>{if(fu.current<xa.current){let te=new Date().getTime()-xa.current;Vr.current=Vr.current-te}fu.current=new Date().getTime()})():Vr.current!==1/0&&(xa.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=d.onAutoClose)==null||te.call(d,d),Nt()},Vr.current)),()=>clearTimeout(U)},[j,b,d,_e,Z,hu,Nt]),w.useEffect(()=>{d.delete&&Nt()},[Nt,d.delete]);function bp(){var U,te,le;return q!=null&&q.loading?w.createElement("div",{className:He(L==null?void 0:L.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":_e==="loading"},q.loading):A?w.createElement("div",{className:He(L==null?void 0:L.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":_e==="loading"},A):w.createElement(DS,{className:He(L==null?void 0:L.loader,(le=d==null?void 0:d.classNames)==null?void 0:le.loader),visible:_e==="loading"})}return w.createElement("li",{tabIndex:0,ref:qt,className:He(T,dp,L==null?void 0:L.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,L==null?void 0:L.default,L==null?void 0:L[_e],(r=d==null?void 0:d.classNames)==null?void 0:r[_e]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:R,"data-styled":!(d.jsx||d.unstyled||g),"data-mounted":H,"data-promise":!!d.promise,"data-swiped":va,"data-removed":ye,"data-visible":cp,"data-y-position":hp,"data-x-position":mp,"data-index":S,"data-front":lp,"data-swiping":We,"data-dismissible":ir,"data-type":_e,"data-invert":gp,"data-swipe-out":Ge,"data-swipe-direction":he,"data-expanded":!!(j||_&&H),style:{"--index":S,"--toasts-before":S,"--z-index":C.length-S,"--offset":`${ye?ya:sr.current}px`,"--initial-height":_?"auto":`${ar}px`,...D,...d.style},onDragEnd:()=>{lt(!1),z(null),ur.current=null},onPointerDown:U=>{wa||!ir||(cu.current=new Date,Ur(sr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(lt(!0),ur.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,le,$e;if(Ge||!ir)return;ur.current=null;let Be=Number(((U=qt.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((te=qt.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Ut=new Date().getTime()-((le=cu.current)==null?void 0:le.getTime()),ze=B==="x"?Be:Tt,jt=Math.abs(ze)/Ut;if(Math.abs(ze)>=tC||jt>.11){Ur(sr.current),($e=d.onDismiss)==null||$e.call(d,d),X(B==="x"?Be>0?"right":"left":Tt>0?"down":"up"),Nt(),Rn(!0),In(!1);return}lt(!1),z(null)},onPointerMove:U=>{var te,le,$e,Be;if(!ur.current||!ir||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let Tt=U.clientY-ur.current.y,Ut=U.clientX-ur.current.x,ze=(le=t.swipeDirections)!=null?le:nC(N);!B&&(Math.abs(Ut)>1||Math.abs(Tt)>1)&&z(Math.abs(Ut)>Math.abs(Tt)?"x":"y");let jt={x:0,y:0};B==="y"?(ze.includes("top")||ze.includes("bottom"))&&(ze.includes("top")&&Tt<0||ze.includes("bottom")&&Tt>0)&&(jt.y=Tt):B==="x"&&(ze.includes("left")||ze.includes("right"))&&(ze.includes("left")&&Ut<0||ze.includes("right")&&Ut>0)&&(jt.x=Ut),(Math.abs(jt.x)>0||Math.abs(jt.y)>0)&&In(!0),($e=qt.current)==null||$e.style.setProperty("--swipe-amount-x",`${jt.x}px`),(Be=qt.current)==null||Be.style.setProperty("--swipe-amount-y",`${jt.y}px`)}},pp&&!d.jsx?w.createElement("button",{"aria-label":de,"data-disabled":wa,"data-close-button":!0,onClick:wa||!ir?()=>{}:()=>{var U;Nt(),(U=d.onDismiss)==null||U.call(d,d)},className:He(L==null?void 0:L.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(a=q==null?void 0:q.close)!=null?a:zS):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,_e||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:He(L==null?void 0:L.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||bp():null,d.type!=="loading"?d.icon||(q==null?void 0:q[_e])||RS(_e):null):null,w.createElement("div",{"data-content":"",className:He(L==null?void 0:L.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:He(L==null?void 0:L.title,(u=d==null?void 0:d.classNames)==null?void 0:u.title)},typeof d.title=="function"?d.title():d.title),d.description?w.createElement("div",{"data-description":"",className:He(P,fp,L==null?void 0:L.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},typeof d.description=="function"?d.description():d.description):null),w.isValidElement(d.cancel)?d.cancel:d.cancel&&Zn(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||$,onClick:U=>{var te,le;Zn(d.cancel)&&ir&&((le=(te=d.cancel).onClick)==null||le.call(te,U),Nt())},className:He(L==null?void 0:L.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,w.isValidElement(d.action)?d.action:d.action&&Zn(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||E,onClick:U=>{var te,le;Zn(d.action)&&((le=(te=d.action).onClick)==null||le.call(te,U),!U.defaultPrevented&&Nt())},className:He(L==null?void 0:L.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function cc(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function aC(t,e){let r={};return[t,e].forEach((n,o)=>{let a=o===1,i=a?"--mobile-offset":"--offset",s=a?ZS:JS;function u(l){["top","right","bottom","left"].forEach(c=>{r[`${i}-${c}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):u(s)}),r}w.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:i,className:s,offset:u,mobileOffset:l,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:g=KS,toastOptions:b,dir:m=cc(),gap:v=eC,loadingIcon:x,icons:S,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:j}=t,[k,R]=w.useState([]),M=w.useMemo(()=>Array.from(new Set([n].concat(k.filter(Z=>Z.position).map(Z=>Z.position)))),[k,n]),[D,$]=w.useState([]),[E,T]=w.useState(!1),[P,I]=w.useState(!1),[N,O]=w.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=w.useRef(null),_=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=w.useRef(null),q=w.useRef(!1),de=w.useCallback(Z=>{R(B=>{var z;return(z=B.find(he=>he.id===Z.id))!=null&&z.delete||Te.dismiss(Z.id),B.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Te.subscribe(Z=>{if(Z.dismiss){R(B=>B.map(z=>z.id===Z.id?{...z,delete:!0}:z));return}setTimeout(()=>{Li.flushSync(()=>{R(B=>{let z=B.findIndex(he=>he.id===Z.id);return z!==-1?[...B.slice(0,z),{...B[z],...Z},...B.slice(z+1)]:[Z,...B]})})})}),[]),w.useEffect(()=>{if(c!=="system"){O(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;let Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:B})=>{O(B?"dark":"light")})}catch{Z.addListener(({matches:z})=>{try{O(z?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{k.length<=1&&T(!1)},[k]),w.useEffect(()=>{let Z=B=>{var z,he;o.every(X=>B[X]||B.code===X)&&(T(!0),(z=A.current)==null||z.focus()),B.code==="Escape"&&(document.activeElement===A.current||(he=A.current)!=null&&he.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[o]),w.useEffect(()=>{if(A.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,q.current=!1)}},[A.current]),w.createElement("section",{ref:e,"aria-label":`${C} ${_}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((Z,B)=>{var z;let[he,X]=Z.split("-");return k.length?w.createElement("ol",{key:Z,dir:m==="auto"?cc():m,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":he,"data-lifted":E&&k.length>1&&!a,"data-x-position":X,style:{"--front-toast-height":`${((z=D[0])==null?void 0:z.height)||0}px`,"--width":`${QS}px`,"--gap":`${v}px`,...d,...aC(u,l)},onBlur:H=>{q.current&&!H.currentTarget.contains(H.relatedTarget)&&(q.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||q.current||(q.current=!0,L.current=H.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{P||T(!1)},onDragEnd:()=>T(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(H=>!H.position&&B===0||H.position===Z).map((H,Ne)=>{var ye,ge;return w.createElement(oC,{key:H.id,icons:S,index:Ne,toast:H,defaultRichColors:h,duration:(ye=b==null?void 0:b.duration)!=null?ye:f,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:r,visibleToasts:g,closeButton:(ge=b==null?void 0:b.closeButton)!=null?ge:i,interacting:P,position:Z,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,removeToast:de,toasts:k.filter(We=>We.position==H.position),heights:D.filter(We=>We.position==H.position),setHeights:$,expandByDefault:a,gap:v,loadingIcon:x,expanded:E,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const pr={mobile:{width:375,icon:Gi,label:"Mobile (375px)"},tablet:{width:768,icon:Yi,label:"Tablet (768px)"},small:{width:1024,icon:Wi,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Xi,label:"Desktop (Full)"}},iC=({handleSavePopup:t,setIsOpen:e,onSave:r,deviceSize:n,onDeviceSizeChange:o,setEditPopup:a,editPopup:i})=>{const{actions:s,query:u,canUndo:l,canRedo:c}=at((f,d)=>({canUndo:d.history.canUndo(),canRedo:d.history.canRedo()})),h=()=>{const f=u.serialize();i?t==null||t(f):r==null||r(f),YS.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(pn,{children:p.jsx(op,{type:"single",value:n,onValueChange:f=>f&&o(f),className:"bg-muted rounded-md p-1",children:Object.entries(pr).map(([f,{icon:d,label:g}])=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx(ap,{value:f,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(d,{className:"h-4 w-4"})})}),p.jsx(Kt,{side:"bottom",children:p.jsx("p",{children:g})})]},f))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>a(f=>!f),children:[i?"Edit page":"Edit popup"," ",p.jsx(gh,{className:"h-4 w-4"})]}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>s.history.undo(),disabled:!l,children:p.jsx(wh,{className:"h-4 w-4"})}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>s.history.redo(),disabled:!c,children:p.jsx(ph,{className:"h-4 w-4"})}),p.jsxs(Xe,{size:"sm",onClick:()=>e(!0),children:["Preview Page ",p.jsx(uh,{className:"ml-2 h-4 w-4"})]}),p.jsxs(Xe,{size:"sm",onClick:h,children:[p.jsx(hh,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},ip=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:a,events:i}=ne(s=>({events:s.events}));r=a.connect,n=a.drag,o=i.selected}catch{}return p.jsx("div",{ref:a=>{a&&r&&n&&(r==null||r(n(a)))},className:tt("relative min-h-[100vh]",e||""),children:t})};ip.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const dc=({htmlJson:t,editorState:e})=>{const{actions:r}=at();return w.useEffect(()=>{t?r.deserialize(t):e?r.deserialize(e):r.deserialize({ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body"}})},[]),p.jsx(fs,{})},sC=({htmlJson:t,enabled:e,popupEditorState:r})=>{const{actions:n}=at();return w.useEffect(()=>{if(t)n.deserialize(t);else if(r)n.deserialize(r);else{const o={ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body",nodes:["popupWrapperNode"],linkedNodes:{}},popupWrapperNode:{type:{resolvedName:"Wrapper"},isCanvas:!0,props:{...hn,width:{desktop:{type:"custom",value:"100",unit:"%"}},height:{desktop:{type:"custom",value:"100",unit:"vh"}},backgroundColor:"rgba(0,0,0,0.25)",position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",id:"popupWrapper",onClick:a=>{console.log("test"),a.target.id}},displayName:"Wrapper",nodes:["popupContainerNode"],parent:"ROOT",linkedNodes:{}},popupContainerNode:{type:{resolvedName:"Container"},isCanvas:!0,props:{...hn,width:{desktop:{type:"custom",value:"90",unit:"%"}},height:{desktop:{type:"custom",value:"60",unit:"%"}},backgroundColor:"white",id:"popupContainer"},displayName:"Container",nodes:[],parent:"popupWrapperNode",linkedNodes:{}}};n.deserialize(o)}},[]),p.jsx(fs,{})},Mo={Body:ip,Div:eu,Wrapper:qr,Section:C0,Container:Nn,Text:Vs,ButtonComponent:Cs,Heading:Ws,Image:Gs,Img:S0,Divider:Ys,Spacer:Xs,Video:Zs,Columns:w0,Link:Qs,Footer:E0},uC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,setIsOpen:o,initialData:a,onSave:i,onStateChange:s,enabled:u=!0})=>{var S;const l=Cn(),[c,h]=w.useState("desktop"),[f,d]=w.useState(!1),g=w.useRef(f);g.current=f;const[b,m]=w.useState(((S=pr[c])==null?void 0:S.width)||"100%");w.useEffect(()=>{if(!u){const C=()=>{const j=window.innerWidth;j<640?m(pr.mobile.width):j<1024?m(pr.tablet.width):j<1280?m(pr.small.width):m(pr.desktop.width)};return window.addEventListener("resize",C),()=>window.removeEventListener("resize",C)}},[u]);const v=C=>{if(console.log("handleStateChange"),s)try{const j=C.serialize();s(j)}catch(j){console.log(j)}},x=C=>{if(console.log("handleStateChange - popup"),r)try{const j=C.serialize();r(j)}catch(j){console.log(j)}};return u?p.jsx(ci,{resolver:Mo,enabled:u,onNodesChange:C=>{g.current?x(C):v(C)},children:p.jsx(ps,{value:c,children:p.jsx(Lo,{value:l,children:p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-border",children:[p.jsx("h2",{className:"text-lg font-semibold",children:f?"Popup Builder":"Page Builder"}),p.jsx(iC,{setIsOpen:o,onSave:i,handleSavePopup:t,deviceSize:c,onDeviceSizeChange:h,editPopup:f,setEditPopup:d})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(en,{className:"w-52",children:p.jsxs(tn,{className:"p-4 space-y-6",children:[p.jsx(V5,{}),p.jsx(lS,{})]})}),p.jsx(en,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 flex justify-center overflow-hidden",children:p.jsx(iu,{className:"h-full w-full",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",style:{width:typeof b=="number"?`${b}px`:b,maxWidth:"100%"},children:f?p.jsx(sC,{popupEditorState:e,enabled:u}):p.jsx(dc,{editorState:n,htmlJson:a})})})})})}),p.jsx(en,{className:"w-64 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(sS,{})})})]})]})})})}):p.jsx(ci,{resolver:Mo,enabled:u,children:p.jsx(dc,{htmlJson:a})})},Ha={mobile:{width:375,label:"Mobile",icon:Gi},tablet:{width:768,label:"Tablet",icon:Yi},small:{width:1024,label:"Small",icon:Wi},desktop:{width:1440,label:"Desktop",icon:Xi}},lC=({editorState:t,deviceSize:e})=>p.jsx(ci,{resolver:Mo,enabled:!1,children:p.jsx(ps,{value:e,children:p.jsx(cC,{editorState:t})})}),cC=({editorState:t})=>{const{actions:e}=at();return w.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(fs,{})},sp=({isOpen:t,onClose:e,eventData:r,editorState:n,popupEditorState:o})=>{var u,l;const[a,i]=w.useState("desktop");if(w.useEffect(()=>{const c=h=>{h.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,e]),!t)return null;const s=((u=Ha[a])==null?void 0:u.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col bg-white",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:["(",(l=Ha[a])==null?void 0:l.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Ha).map(([c,{label:h,icon:f}])=>p.jsxs(Xe,{variant:"ghost",size:"sm",onClick:()=>i(c),className:Ih("h-8 px-3 gap-2",a===c&&"bg-background shadow-sm"),children:[p.jsx(f,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:h})]},c))}),p.jsx(Xe,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(Ch,{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:`${s}px`,maxWidth:"100%"},children:p.jsx(Lo,{value:r,children:n?p.jsx(lC,{editorState:n,deviceSize:a}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},dC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,initialData:o,onSave:a,onStateChange:i,eventData:s,enabled:u=!0})=>{const[l,c]=w.useState(!1);return p.jsx(Lo,{value:s,children:p.jsxs(w.Suspense,{fallback:p.jsx(en,{children:p.jsx(tn,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Mn,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Mn,{className:"h-[500px] w-48"}),p.jsx(Mn,{className:"h-[500px] flex-1"}),p.jsx(Mn,{className:"h-[500px] w-64"})]})]})})}),children:[p.jsx(uC,{popupEditorState:e,handleStateChangePopup:r,editorState:n,enabled:u,setIsOpen:c,initialData:o,onSave:a,handleSavePopup:t,onStateChange:i}),u?p.jsx(sp,{popupEditorState:e,eventData:s,editorState:n,isOpen:l,onClose:()=>c(!1)}):null]})})},up=w.createContext({fetchVideoByLocation:null}),fC=({children:t,fetchVideoByLocation:e})=>p.jsx(up.Provider,{value:{fetchVideoByLocation:e},children:t}),pC=()=>w.useContext(up);exports.ApiConfigProvider=fC;exports.DEVICE_ORDER=Ie;exports.DeviceSizeProvider=ps;exports.EventDataProvider=Lo;exports.PageBuilder=dC;exports.PreviewModal=sp;exports.TEMPLATE_VARIABLES=W3;exports.getPlaceholderPaths=V3;exports.getResponsiveValue=gt;exports.hasTemplatePlaceholders=U3;exports.processTemplate=Eo;exports.resolver=Mo;exports.useApiConfig=pC;exports.useDeviceSize=Ce;exports.useEventData=Cn;
|
|
279
|
+
`)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},pr(e.allowedAttributes,function(N,O){u[O]=[];const A=[];N.forEach(function(R){typeof R=="string"&&R.indexOf("*")>=0?A.push(nc(R).replace(/\\\*/g,".*")):u[O].push(R)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},f={};pr(e.allowedClasses,function(N,O){if(u&&(ht(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const A=[];c[O]=[],f[O]=[],N.forEach(function(R){typeof R=="string"&&R.indexOf("*")>=0?A.push(nc(R).replace(/\\\*/g,".*")):R instanceof RegExp?f[O].push(R):c[O].push(R)}),A.length&&(h[O]=new RegExp("^("+A.join("|")+")$"))}});const d={};let b;pr(e.transformTags,function(N,O){let A;typeof N=="function"?A=N:typeof N=="string"&&(A=Cn.simpleTransform(N)),O==="*"?b=A:d[O]=A});let g,m,v,x,C,S,j=!1;_();const k=new l5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&_(),C){S++;return}const A=new a(N,O);m.push(A);let R=!1;const M=!!A.text;let q;if(ht(d,N)&&(q=d[N](N,O),A.attribs=O=q.attribs,q.text!==void 0&&(A.innerText=q.text),N!==q.tagName&&(A.name=N=q.tagName,x[g]=q.tagName)),b&&(q=b(N,O),A.attribs=O=q.attribs,N!==q.tagName&&(A.name=N=q.tagName,x[g]=q.tagName)),(!i(N)||e.disallowedTagsMode==="recursiveEscape"&&!m5(v)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(R=!0,v[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(C=!0,S=1)),g++,R){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!M){const B=D(A.innerText);e.textFilter?n+=e.textFilter(B,N):n+=B,j=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),R&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?pr(O,function(B,z){n+=" "+z+'="'+D(B||"",!0)+'"'}):(!u||ht(u,N)||u["*"])&&pr(O,function(B,z){if(!v5.test(z)){delete A.attribs[z];return}if(B===""&&!e.allowedEmptyAttributes.includes(z)&&(e.nonBooleanAttributes.includes(z)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[z];return}let me=!1;if(!u||ht(u,N)&&u[N].indexOf(z)!==-1||u["*"]&&u["*"].indexOf(z)!==-1||ht(l,N)&&l[N].test(z)||l["*"]&&l["*"].test(z))me=!0;else if(u&&u[N]){for(const X of u[N])if(c5(X)&&X.name&&X.name===z){me=!0;let H="";if(X.multiple===!0){const Te=B.split(" ");for(const xe of Te)X.values.indexOf(xe)!==-1&&(H===""?H=xe:H+=" "+xe)}else X.values.indexOf(B)>=0&&(H=B);B=H}}if(me){if(e.allowedSchemesAppliedToAttributes.indexOf(z)!==-1&&L(N,B)){delete A.attribs[z];return}if(N==="script"&&z==="src"){let X=!0;try{const H=$(B);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Te=(e.allowedScriptHostnames||[]).find(function(ge){return ge===H.url.hostname}),xe=(e.allowedScriptDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Te||xe}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(N==="iframe"&&z==="src"){let X=!0;try{const H=$(B);if(H.isRelativeUrl)X=ht(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Te=(e.allowedIframeHostnames||[]).find(function(ge){return ge===H.url.hostname}),xe=(e.allowedIframeDomains||[]).find(function(ge){return H.url.hostname===ge||H.url.hostname.endsWith(`.${ge}`)});X=Te||xe}}catch{X=!1}if(!X){delete A.attribs[z];return}}if(z==="srcset")try{let X=d5(B);if(X.forEach(function(H){L("srcset",H.url)&&(H.evil=!0)}),X=ac(X,function(H){return!H.evil}),X.length)B=b5(ac(X,function(H){return!H.evil})),A.attribs[z]=B;else{delete A.attribs[z];return}}catch{delete A.attribs[z];return}if(z==="class"){const X=c[N],H=c["*"],Te=h[N],xe=f[N],ge=f["*"],Ge=h["*"],ct=[Te,Ge].concat(xe,ge).filter(function(Ye){return Ye});if(X&&H?B=I(B,oc(X,H),ct):B=I(B,X||H,ct),!B.length){delete A.attribs[z];return}}if(z==="style"){if(e.parseStyleAttributes)try{const X=f5(N+" {"+B+"}",{map:!1}),H=E(X,e.allowedStyles);if(B=T(H),B.length===0){delete A.attribs[z];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+B+`}", 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[z];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+z,B&&B.length?n+='="'+D(B,!0)+'"':e.allowedEmptyAttributes.includes(z)&&(n+='=""')}else delete A.attribs[z]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",A.innerText&&!M&&!e.textFilter&&(n+=D(A.innerText),j=!0)),R&&(n=o+D(n),o=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(N){if(C)return;const O=m[m.length-1];let A;if(O&&(A=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!i(A))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=N;else if(!j){const R=D(N,!1);e.textFilter?n+=e.textFilter(R,A):n+=R}if(m.length){const R=m[m.length-1];R.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),C)if(S--,!S)C=!1;else return;const A=m.pop();if(!A)return;if(A.tag!==N){m.push(A);return}C=e.enforceHtmlBoundary?N==="html":!1,g--;const R=v[g];if(R){if(delete v[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}o=n,n=""}if(x[g]&&(N=x[g],delete x[g]),e.exclusiveFilter){const M=e.exclusiveFilter(A);if(M==="excludeTag"){R&&(n=o,o=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(M){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!i(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){R&&(n=o,o="");return}n+="</"+N+">",R&&(n=o+D(n),o=""),j=!1}},e.parser);return k.write(t),k.end(),n;function _(){n="",g=0,m=[],v={},x={},C=!1,S=0}function D(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,"""))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(N=N.replace(/"/g,""")),N}function L(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const M=O.indexOf("<!--");if(M===-1)break;const q=O.indexOf("-->",M+4);if(q===-1)break;O=O.substring(0,M)+O.substring(q+3)}const A=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const R=A[1].toLowerCase();return ht(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(R)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(R)===-1}function $(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let M=0;M<100;M++)O+=`/${M}`;const A=new URL(N,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function E(N,O){if(!O)return N;const A=N.nodes[0];let R;return O[A.selector]&&O["*"]?R=oc(O[A.selector],O["*"]):R=O[A.selector]||O["*"],R&&(N.nodes[0].nodes=A.nodes.reduce(P(R),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function P(N){return function(O,A){return ht(N,A.prop)&&N[A.prop].some(function(M){return M.test(A.value)})&&O.push(A),O}}function I(N,O,A){return O?(N=N.split(/\s+/),N.filter(function(R){return O.indexOf(R)!==-1||A.some(function(M){return M.test(R)})}).join(" ")):N}}const y5={decodeEntities:!0};Cn.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};Cn.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let a;if(r)for(a in e)o[a]=e[a];else o=e;return{tagName:t,attribs:o}}};const p0=Fo(g5),x5=[{command:"bold",icon:oh,label:"Bold"},{command:"italic",icon:dh,label:"Italic"},{command:"underline",icon:wh,label:"Underline"},{command:"strikeThrough",icon:yh,label:"Strikethrough"},{command:"insertUnorderedList",icon:ph,label:"Bullet List"},{command:"insertOrderedList",icon:fh,label:"Numbered List"}],w5={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$/]}}},S5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,a]=w.useState(!1),[i,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=m=>{var v;document.execCommand(m,!1,null),(v=n.current)==null||v.focus(),c()},c=()=>{if(n.current){const m=n.current.innerHTML,v=p0(m,w5);r(v)}},h=()=>{const m=window.getSelection();m&&m.rangeCount>0&&(u.current=m.getRangeAt(0))},f=()=>{if(u.current){const m=window.getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(u.current)}},d=()=>{h(),a(!0)},b=()=>{var m;if(i){f();let v=i.trim();v&&!v.match(/^https?:\/\//i)&&(v="https://"+v);try{new URL(v),document.execCommand("createLink",!1,v),c()}catch{}}a(!1),s(""),(m=n.current)==null||m.focus()},g=m=>{try{return document.queryCommandState(m)}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(hn,{children:[x5.map(({command:m,icon:v,label:x})=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:C=>{C.preventDefault(),l(m)},className:`p-1.5 rounded hover:bg-background transition-colors ${g(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(v,{className:"h-3.5 w-3.5"})})}),p.jsx(Jt,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:m=>{m.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Gi,{className:"h-3.5 w-3.5"})})}),p.jsx(Jt,{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"}}),o&&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:i,onChange:m=>s(m.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),b()),m.key==="Escape"&&(a(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{a(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:b,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},C5={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$/]}}},Ws=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:a={desktop:150},letterSpacing:i={desktop:0},textAlign:s="left",color:u="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:f=100})=>{const d=Ee(),b=En();let g,m,v;try{const{connectors:D,events:L}=oe($=>({events:$.events}));g=D.connect,m=D.drag,v=L.selected}catch{}const x=To(t,b),C=typeof ValueBasedOnDevice(l,d)=="object"?`${ValueBasedOnDevice(l,d).top}px ${ValueBasedOnDevice(l,d).right}px ${ValueBasedOnDevice(l,d).bottom}px ${ValueBasedOnDevice(l,d).left}px`:`${ValueBasedOnDevice(l,d)}px`,S=gt(r,d,16),j=gt(a,d,150)/100,k=gt(i,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:D=>D&&g&&m&&g(m(D)),className:`cursor-move ${v?"outline outline-blue-500":""}`,style:{fontSize:`${S}px`,fontWeight:n,fontFamily:o,lineHeight:j,letterSpacing:`${k}px`,textAlign:s,color:u,margin:C,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:p0(To(e||x,b),C5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):x})},E5=()=>{const{actions:{setProp:t},props:e}=oe(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(V,{title:"Content",defaultOpen:!0,children:p.jsx(S5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(o=>o.fontFamily=n)}),p.jsx(Eo,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(No,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Eo,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(yt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Fi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(qi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(J,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(o=>o.textTransform=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(o=>o.textDecoration=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(et,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(No,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Le,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(ef,{})})]})};Ws.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:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:E5}};const on={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}},Gs=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:a="inherit",fontSize:i="auto",lineHeight:s={desktop:120},letterSpacing:u={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var D,L,$;const f=Ee(),d=En();let b,g,m;try{const{connectors:E,events:T}=oe(P=>({events:P.events}));b=E.connect,g=E.drag,m=T.selected}catch{}const v=To(t,d),x=`h${e}`;let C;i==="auto"?C=((D=on[e])==null?void 0:D[f])||((L=on[e])==null?void 0:L.desktop)||36:C=gt(i,f,(($=on[e])==null?void 0:$.desktop)||36);const S=gt(s,f,120)/100,j=gt(u,f,-.5),k=gt(h,f,100),_=typeof Z(l,f)=="object"?`${Z(l,f).top}px ${Z(l,f).right}px ${Z(l,f).bottom}px ${Z(l,f).left}px`:`${Z(l,f)}px`;return p.jsx(x,{ref:E=>E&&b&&g&&b(g(E)),className:`cursor-move ${m?"outline outline-blue-500":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:a,fontSize:`${C}px`,lineHeight:S,letterSpacing:`${j}px`,margin:_,textTransform:c,opacity:k/100},children:v})},N5=()=>{var a;const t=Ee(),{actions:{setProp:e},props:r}=oe(i=>({props:i.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var i;return r.fontSize==="auto"?((i=on[r.level||2])==null?void 0:i[t])||36:gt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx(Bt,{label:"Text",value:r.text,onChange:i=>e(s=>s.text=i)}),p.jsx(yt,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:i=>e(s=>{s.level=i,s.fontSize})})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:i=>e(s=>s.fontFamily=i)}),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(i=>i.fontSize=i.fontSize==="auto"?{desktop:o()}:"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(Eo,{label:"Size",values:r.fontSize,onChange:i=>e(s=>s.fontSize=i),min:12,max:120,defaultValue:((a=on[r.level||2])==null?void 0:a.desktop)||36})]}),p.jsx(J,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:i=>e(s=>s.fontWeight=i)}),p.jsx(No,{label:"Line Height",values:r.lineHeight,onChange:i=>e(s=>s.lineHeight=i),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Eo,{label:"Letter Spacing",values:r.letterSpacing,onChange:i=>e(s=>s.letterSpacing=i),min:-5,max:20,defaultValue:-.5}),p.jsx(yt,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Fi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(qi,{className:"h-3 w-3"})}],onChange:i=>e(s=>s.textAlign=i)}),p.jsx(J,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:i=>e(s=>s.textTransform=i)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(et,{label:"Text Color",value:r.color||"#000000",onChange:i=>e(s=>s.color=i)}),p.jsx(No,{label:"Opacity",values:r.opacity,onChange:i=>e(s=>s.opacity=i),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Le,{label:"Margin",values:n,onChange:i=>e(s=>s.margin={...s.margin,...i})})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(ef,{})})]})};Gs.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:N5}};const Ys=({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:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ee();let h,f,d;try{const{connectors:g,events:m}=oe(v=>({events:v.events}));h=g.connect,f=g.drag,d=m.selected}catch{}const b=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:b,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},T5=()=>{const{actions:{setProp:t},props:e}=oe(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(V,{title:"Source",defaultOpen:!0,children:[p.jsx(Bt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Bt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(he,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(he,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(he,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(ia,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Le,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Ys.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:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:T5}};const Xs=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:a=100})=>{const i=Ee();let s,u,l;try{const{connectors:h,events:f}=oe(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[i]=="object"?`${o[i].top}px ${o[i].right}px ${o[i].bottom}px ${o[i].left}px`:`${o[i]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:a/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},j5=()=>{const{actions:{setProp:t},props:e}=oe(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(V,{title:"Style",defaultOpen:!0,children:[p.jsx(J,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(o=>o.style=n)}),p.jsx(et,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(he,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(J,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(o=>o.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(he,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!0,children:p.jsx(Le,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Xs.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:j5}};const Ks=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,a;try{const{connectors:i,events:s}=oe(u=>({events:u.events}));n=i.connect,o=i.drag,a=s.selected}catch{}return p.jsxs("div",{ref:i=>i&&n&&o&&n(o(i)),className:`cursor-move w-full relative group ${a?"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"})]})},A5=()=>{const{actions:{setProp:t},props:e}=oe(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(o=>o.height=n[r])}}),p.jsx(he,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Ks.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:A5}};const O5=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function k5(){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 P5(t,e={}){const r=await fetch(`${O5}${t}`,{...e,headers:{...k5(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function _5(t,e){return(await P5(`/videos/${t}/${e||""}`)).data}function R5(t){const e=y.useRef({value:t,previous:t});return y.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var ba="Checkbox",[I5]=rr(ba),[D5,Js]=I5(ba);function M5(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=Hr({prop:r,defaultProp:o??!1,onChange:u,caller:ba}),[b,g]=y.useState(null),[m,v]=y.useState(null),x=y.useRef(!1),C=b?!!i||!!b.closest("form"):!0,S={checked:f,disabled:a,setChecked:d,control:b,setControl:g,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Rt(o)?!1:o,isFormControl:C,bubbleInput:m,setBubbleInput:v};return p.jsx(D5,{scope:e,...S,children:L5(h)?h(S):n})}var h0="CheckboxTrigger",m0=y.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:a,value:i,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:b}=Js(h0,t),g=Se(o,c),m=y.useRef(u);return y.useEffect(()=>{const v=a==null?void 0:a.form;if(v){const x=()=>h(m.current);return v.addEventListener("reset",x),()=>v.removeEventListener("reset",x)}},[a,h]),p.jsx(be.button,{type:"button",role:"checkbox","aria-checked":Rt(u)?"mixed":u,"aria-required":l,"data-state":x0(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:g,onKeyDown:le(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:le(r,v=>{h(x=>Rt(x)?!0:!x),b&&d&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});m0.displayName=h0;var Zs=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(M5,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(m0,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(y0,{__scopeCheckbox:r})]})})});Zs.displayName=ba;var b0="CheckboxIndicator",g0=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,a=Js(b0,r);return p.jsx(nr,{present:n||Rt(a.checked)||a.checked===!0,children:p.jsx(be.span,{"data-state":x0(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});g0.displayName=b0;var v0="CheckboxBubbleInput",y0=y.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Js(v0,t),b=Se(r,d),g=R5(a),m=Id(n);y.useEffect(()=>{const x=f;if(!x)return;const C=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(C,"checked").set,k=!o.current;if(g!==a&&j){const _=new Event("click",{bubbles:k});x.indeterminate=Rt(a),j.call(x,Rt(a)?!1:a),x.dispatchEvent(_)}},[f,g,a,o]);const v=y.useRef(Rt(a)?!1:a);return p.jsx(be.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??v.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:b,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});y0.displayName=v0;function L5(t){return typeof t=="function"}function Rt(t){return t==="indeterminate"}function x0(t){return Rt(t)?"indeterminate":t?"checked":"unchecked"}const w0=y.forwardRef(({className:t,...e},r)=>p.jsx(Zs,{ref:r,className:Ce("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(g0,{className:Ce("flex items-center justify-center text-current"),children:p.jsx(Ui,{className:"h-4 w-4"})})}));w0.displayName=Zs.displayName;const $5=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,a]=w.useState(!1),[i,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),a(!0),i&&window.parent.postMessage({type:"OPEN_POPUP",payload:"1"},"*"))};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(Ke,{disabled:!r||o||e,onClick:u,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Ui,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(uh,{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(w0,{checked:r,onCheckedChange:l=>n(l===!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"}),"."]})]})]})},qr=t=>{let e,r,n=!1,o;try{const{connectors:a,events:i}=oe(u=>({events:u.events}));e=a.connect,r=a.drag,n=i.selected;const{editorEnabled:s}=it(u=>({editorEnabled:u.options.enabled}));o=s}catch{}return p.jsx("div",{...t.id?{id:t.id}:{},ref:a=>a&&e&&r&&e(r(a)),style:Ns(t),className:rt(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),...!o&&t.onClick?{onClick:a=>t.onClick(a)}:{},children:t.children})},B5={...mn,display:"flex",justifyContent:"center",alignItems:"center"};qr.craft={props:B5,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:sa}};const z5=(t,e)=>{if(typeof t!="object"||t===null)return t;const r=["mobile","tablet","small","desktop"],n=r.indexOf(e);for(let o=n;o>=0;o--)if(t[r[o]]!==void 0)return t[r[o]];return t.desktop??t.mobile??0},H5=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const o=w.useRef(null),{data:a,isLoading:i,error:s}=yp.useQuery({queryKey:["video",t,e],queryFn:()=>_5(t,e),enabled:!!t});if(i)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(s||!a)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(ah,{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:u}=a,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=u.mp4_hr_url,c.download=`${u.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(qr,{children:p.jsx(Tn,{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:[u.name," (",u.start_no,")"]}),p.jsxs("video",{ref:o,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[p.jsx("source",{src:u.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx($5,{onDownload:l,disabled:r})]})})})})},Qs=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:o="none"})=>{const a=Ee(),i=En();let s,u,l;try{const{connectors:m,events:v}=oe(x=>({events:x.events}));s=m.connect,u=m.drag,l=v.selected}catch{}let c=!1;try{let{options:m}=it(v=>({options:v.options}));c=m.enabled}catch{}const h=z5(t,a),f={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)"},d={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:f[o]||"none"},b=(i==null?void 0:i.videos)||[],g=b.length>0;return p.jsx("div",{ref:m=>m&&s&&u&&s(u(m)),style:d,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:g?p.jsx("div",{className:"space-y-6",children:b.map(m=>p.jsx(H5,{locationId:m.locationId,bibId:i==null?void 0:i.bibId,editorEnabled:c,videoTitle:m.name||m.locationId},m.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(Ec,{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."})]})]})})},F5=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:o,boxShadow:a}=oe(s=>({padding:s.data.props.padding,margin:s.data.props.margin,background:s.data.props.background,borderRadius:s.data.props.borderRadius,boxShadow:s.data.props.boxShadow})),i=[{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(V,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(V,{title:"Style",children:[p.jsx(he,{unit:"px",label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:s=>t(u=>u.padding={...u.padding,desktop:s,mobile:s}),min:0,max:100}),p.jsx(he,{unit:"px",label:"Border Radius",value:o,onChange:s=>t(u=>u.borderRadius=s),min:0,max:50}),p.jsx(et,{label:"Background",value:n,onChange:s=>t(u=>u.background=s)}),p.jsx(J,{label:"Shadow",value:a,options:i,onChange:s=>t(u=>u.boxShadow=s)})]}),p.jsx(V,{title:"Spacing",children:p.jsx(Le,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};Qs.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{desktop:{top:0,right:0,bottom:0,left:0}},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:F5}};const S0=({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:o="stretch",children:a})=>{const i=Ee();let s,u,l;try{const{connectors:f,events:d}=oe(b=>({events:b.events}));s=f.connect,u=f.drag,l=d.selected}catch{}const c=typeof Z(r,i)=="object"?`${Z(r,i).top}px ${Z(r,i).right}px ${Z(r,i).bottom}px ${Z(r,i).left}px`:`${Z(r,i)}px`,h=typeof Z(n,i)=="object"?`${Z(n,i).top}px ${Z(n,i).right}px ${Z(n,i).bottom}px ${Z(n,i).left}px`:`${Z(n,i)}px`;return p.jsx("div",{ref:f=>f&&s&&u&&(s==null?void 0:s(u==null?void 0:u(f))),className:`cursor-move w-full ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:c,margin:h,alignItems:o},children:a})},q5=()=>{const{actions:{setProp:t},props:e}=oe(o=>({props:o.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(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(yt,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:o=>t(a=>a.columns=o)}),p.jsx(he,{unit:"px",label:"Gap",value:e.gap||16,onChange:o=>t(a=>a.gap=o),max:64}),p.jsx(J,{label:"Align Items",value:e.alignItems||"stretch",options:[{value:"stretch",label:"Stretch"},{value:"start",label:"Top"},{value:"center",label:"Center"},{value:"end",label:"Bottom"}],onChange:o=>t(a=>a.alignItems=o)})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!1,children:[p.jsx(Le,{label:"Padding",values:r,onChange:o=>t(a=>a.padding={...a.padding,...o})}),p.jsx(Le,{label:"Margin",values:n,onChange:o=>t(a=>a.margin={...a.margin,...o})})]})]})};S0.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},alignItems:"stretch"},related:{settings:q5}};const eu=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:o="400",color:a="#0066cc",hoverColor:i="#0052a3",textDecoration:s="underline",textAlign:u="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const h=Ee();let f,d,b;try{const{connectors:m,events:v}=oe(x=>({events:x.events}));f=m.connect,d=m.drag,b=v.selected}catch{}const g=typeof l[h]=="object"?`${l[h].top}px ${l[h].right}px ${l[h].bottom}px ${l[h].left}px`:`${l[h]}px`;return p.jsx("a",{ref:m=>m&&f&&d&&f(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 ${b?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:o,color:a,textDecoration:s,textAlign:u,margin:g,opacity:c/100,display:"block"},children:t})},U5=()=>{const{actions:{setProp:t},props:e}=oe(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(V,{title:"Content",defaultOpen:!0,children:[p.jsx(Bt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx(Bt,{label:"URL",value:e.url,onChange:n=>t(o=>o.url=n)}),p.jsx(J,{label:"Open in",value:e.target||"_self",options:[{value:"_self",label:"Same Tab"},{value:"_blank",label:"New Tab"}],onChange:n=>t(o=>o.target=n)})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(he,{unit:"px",label:"Font Size",value:e.fontSize||16,onChange:n=>t(o=>o.fontSize=n),min:10,max:48}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(o=>o.textDecoration=n)}),p.jsx(yt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Fi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(qi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(et,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(ia,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Le,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};eu.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100},related:{settings:U5}};const C0=({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:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ee();let h,f,d;try{const{connectors:g,events:m}=oe(v=>({events:v.events}));h=g.connect,f=g.drag,d=m.selected}catch{}const b=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:b,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},V5=()=>{const{actions:{setProp:t},props:e}=oe(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(V,{title:"Source",defaultOpen:!0,children:[p.jsx(Bt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Bt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(he,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(he,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(he,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(ia,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(Le,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};C0.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:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:V5}};function ic(t=12){const e="abcdefghijklmnopqrstuvwxyz",r=e+"0123456789";let n=e[Math.floor(Math.random()*e.length)];for(let o=1;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}const E0=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:s,events:u}=oe(l=>({events:l.events}));r=s.connect,n=s.drag,o=u.selected}catch{}const a=ic(),i=ic();return p.jsx("div",{ref:s=>{s&&r&&n&&r(n(s))},className:rt(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(_t,{is:qr,id:`section-wrapper-${a}`,children:p.jsx(_t,{is:Tn,canvas:!0,id:`section-container-${i}`,children:t})})})};E0.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const tu=t=>{let e,r,n=!1;try{const{connectors:o,events:a}=oe(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{style:Ns(t),className:rt(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e&&r&&e(r(o))},children:t.children})};tu.craft={isCanvas:!0,props:mn,related:{settings:sa}};const N0=({background:t="transparent",padding:e={top:16,right:16,bottom:16,left:16},margin:r={top:0,right:0,bottom:0,left:0},width:n="auto",minHeight:o=100,maxWidth:a="none",display:i="block",flexDirection:s="column",justifyContent:u="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:h=8,borderWidth:f=1,borderColor:d="transparent",borderStyle:b="dashed",boxShadow:g="none",children:m})=>{Ee();let v,x,C;try{const{connectors:_,events:D}=oe(L=>({events:L.events}));v=_.connect,x=_.drag,C=D.selected}catch{}const S=typeof Z(e)=="object"?`${Z(e).top}px ${Z(e).right}px ${Z(e).bottom}px ${Z(e).left}px`:`${Z(e)}px`,j=typeof Z(r)=="object"?`${Z(r).top}px ${Z(r).right}px ${Z(r).bottom}px ${Z(r).left}px`:`${Z(r)}px`,k=[{url:"https://myracereel.com/privacy-data-privacy",name:"Privacy & Data Policy"},{url:"https://myracereel.com/terms-of-service",name:"Terms of Service"},{url:"https://myracereel.com/faq",name:"FAQ"},{url:"https://myracereel.com/contact",name:"Contact Us"}];return p.jsx(qr,{style:{backgroundColor:t,padding:S,margin:j,width:n==="auto"?"100%":n,minHeight:`${o}px`,maxWidth:a==="none"?"none":`${a}px`,display:i,flexDirection:i==="flex"?s:void 0,justifyContent:i==="flex"?u:void 0,alignItems:i==="flex"?l:void 0,gap:i==="flex"?`${c}px`:void 0,borderRadius:`${h}px`,borderWidth:`${f}px`,borderColor:d,borderStyle:b,boxShadow:g==="none"?"none":g},className:"bg-black",ref:_=>_&&v&&x&&v(x(_)),children:p.jsx("div",{className:"flex justify-center w-full",children:p.jsxs("div",{className:"w-full flex flex-col py-10 gap-y-3.5 ",children:[p.jsx("div",{className:"flex w-full gap-x-1 justify-center items-center",children:p.jsx("div",{className:"text-white text-sm",children:"Powered by MyRaceReel"})}),p.jsx("div",{className:"flex @md:flex-row @max-md:flex-col md:flex-row justify-center items-center gap-x-6 gap-y-2 w-full flex-col",children:k.map(_=>p.jsx("a",{className:"text-white",href:_.url,target:"_blank",children:_.name},_.name))})]})})})};N0.craft={displayName:"Footer",props:{background:"transparent",padding:{desktop:{top:16,right:16,bottom:16,left:16}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:sa}};const W5=()=>{const{connectors:t}=it(),e=[{name:"Wrapper",icon:bh,element:p.jsx(_t,{is:qr,canvas:!0})},{name:"Container",icon:vh,element:p.jsx(_t,{is:Tn,canvas:!0})},{name:"Div",icon:Ua,element:p.jsx(_t,{is:tu,canvas:!0})}],r=[{name:"Heading",icon:Nc,element:p.jsx(Gs,{})},{name:"Text",icon:kc,element:p.jsx(Ws,{})},{name:"Button",icon:Ac,element:p.jsx(Es,{})},{name:"Link",icon:Gi,element:p.jsx(eu,{})}],n=[{name:"Image",icon:Tc,element:p.jsx(Ys,{})},{name:"Video",icon:Ec,element:p.jsx(Qs,{})}],o=[{name:"Divider",icon:jc,element:p.jsx(Xs,{})},{name:"Spacer",icon:Oc,element:p.jsx(Ks,{})}],a=(i,s)=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("span",{className:"text-xs text-muted-foreground/70",children:i}),p.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:s.map(u=>p.jsxs(Ke,{variant:"outline",size:"sm",className:"flex flex-col items-center justify-center h-14 cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground",ref:l=>l&&t.create(l,u.element),children:[p.jsx(u.icon,{className:"h-4 w-4 mb-1"}),p.jsx("span",{className:"text-[10px]",children:u.name})]},u.name))})]});return p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Components"}),a("Layout",e),a("Basic",r),a("Media",n),a("Utility",o)]})};var G5=y.createContext(void 0);function ru(t){const e=y.useContext(G5);return t||e||"ltr"}function Y5(t,[e,r]){return Math.min(r,Math.max(e,t))}function X5(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var nu="ScrollArea",[T0]=rr(nu),[K5,$e]=T0(nu),j0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=t,[s,u]=y.useState(null),[l,c]=y.useState(null),[h,f]=y.useState(null),[d,b]=y.useState(null),[g,m]=y.useState(null),[v,x]=y.useState(0),[C,S]=y.useState(0),[j,k]=y.useState(!1),[_,D]=y.useState(!1),L=Se(e,E=>u(E)),$=ru(o);return p.jsx(K5,{scope:r,type:n,dir:$,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:b,scrollbarXEnabled:j,onScrollbarXEnabledChange:k,scrollbarY:g,onScrollbarYChange:m,scrollbarYEnabled:_,onScrollbarYEnabledChange:D,onCornerWidthChange:x,onCornerHeightChange:S,children:p.jsx(be.div,{dir:$,...i,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":C+"px",...t.style}})})});j0.displayName=nu;var A0="ScrollAreaViewport",O0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=t,i=$e(A0,r),s=y.useRef(null),u=Se(e,s,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(be.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});O0.displayName=A0;var lt="ScrollAreaScrollbar",ou=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=$e(lt,t.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=t.orientation==="horizontal";return y.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?p.jsx(J5,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(Z5,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(k0,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(au,{...n,ref:e}):null});ou.displayName=lt;var J5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=$e(lt,t.__scopeScrollArea),[a,i]=y.useState(!1);return y.useEffect(()=>{const s=o.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),i(!0)},c=()=>{u=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(nr,{present:r||a,children:p.jsx(k0,{"data-state":a?"visible":"hidden",...n,ref:e})})}),Z5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=$e(lt,t.__scopeScrollArea),a=t.orientation==="horizontal",i=va(()=>u("SCROLL_END"),100),[s,u]=X5("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,u]),y.useEffect(()=>{const l=o.viewport,c=a?"scrollLeft":"scrollTop";if(l){let h=l[c];const f=()=>{const d=l[c];h!==d&&(u("SCROLL"),i()),h=d};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,a,u,i]),p.jsx(nr,{present:r||s!=="hidden",children:p.jsx(au,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:le(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:le(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),k0=y.forwardRef((t,e)=>{const r=$e(lt,t.__scopeScrollArea),{forceMount:n,...o}=t,[a,i]=y.useState(!1),s=t.orientation==="horizontal",u=va(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:c)}},10);return kr(r.viewport,u),kr(r.content,u),p.jsx(nr,{present:n||a,children:p.jsx(au,{"data-state":a?"visible":"hidden",...o,ref:e})})}),au=y.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=$e(lt,t.__scopeScrollArea),a=y.useRef(null),i=y.useRef(0),[s,u]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=D0(s.viewport,s.content),c={...n,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function h(f,d){return oS(f,i.current,s,d)}return r==="horizontal"?p.jsx(Q5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollLeft,d=sc(f,s,o.dir);a.current.style.transform=`translate3d(${d}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=h(f,o.dir))}}):r==="vertical"?p.jsx(eS,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollTop,d=sc(f,s);a.current.style.transform=`translate3d(0, ${d}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=h(f))}}):null}),Q5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=$e(lt,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=Se(e,u,a.onScrollbarXChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(_0,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ga(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollLeft+c.deltaX;t.onWheelScroll(f),L0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Mo(i.paddingLeft),paddingEnd:Mo(i.paddingRight)}})}})}),eS=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=$e(lt,t.__scopeScrollArea),[i,s]=y.useState(),u=y.useRef(null),l=Se(e,u,a.onScrollbarYChange);return y.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(_0,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ga(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollTop+c.deltaY;t.onWheelScroll(f),L0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Mo(i.paddingTop),paddingEnd:Mo(i.paddingBottom)}})}})}),[tS,P0]=T0(lt),_0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:c,onResize:h,...f}=t,d=$e(lt,r),[b,g]=y.useState(null),m=Se(e,L=>g(L)),v=y.useRef(null),x=y.useRef(""),C=d.viewport,S=n.content-n.viewport,j=Me(c),k=Me(u),_=va(h,10);function D(L){if(v.current){const $=L.clientX-v.current.left,E=L.clientY-v.current.top;l({x:$,y:E})}}return y.useEffect(()=>{const L=$=>{const E=$.target;(b==null?void 0:b.contains(E))&&j($,S)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[C,b,S,j]),y.useEffect(k,[n,k]),kr(b,_),kr(d.content,_),p.jsx(tS,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Me(a),onThumbPointerUp:Me(i),onThumbPositionChange:k,onThumbPointerDown:Me(s),children:p.jsx(be.div,{...f,ref:m,style:{position:"absolute",...f.style},onPointerDown:le(t.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),v.current=b.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),D(L))}),onPointerMove:le(t.onPointerMove,D),onPointerUp:le(t.onPointerUp,L=>{const $=L.target;$.hasPointerCapture(L.pointerId)&&$.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=x.current,d.viewport&&(d.viewport.style.scrollBehavior=""),v.current=null})})})}),Do="ScrollAreaThumb",R0=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=P0(Do,t.__scopeScrollArea);return p.jsx(nr,{present:r||o.hasThumb,children:p.jsx(rS,{ref:e,...n})})}),rS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,a=$e(Do,r),i=P0(Do,r),{onThumbPositionChange:s}=i,u=Se(e,h=>i.onThumbChange(h)),l=y.useRef(void 0),c=va(()=>{l.current&&(l.current(),l.current=void 0)},100);return y.useEffect(()=>{const h=a.viewport;if(h){const f=()=>{if(c(),!l.current){const d=aS(h,s);l.current=d,s()}};return s(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[a.viewport,c,s]),p.jsx(be.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:le(t.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),b=h.clientX-d.left,g=h.clientY-d.top;i.onThumbPointerDown({x:b,y:g})}),onPointerUp:le(t.onPointerUp,i.onThumbPointerUp)})});R0.displayName=Do;var iu="ScrollAreaCorner",I0=y.forwardRef((t,e)=>{const r=$e(iu,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(nS,{...t,ref:e}):null});I0.displayName=iu;var nS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=$e(iu,r),[a,i]=y.useState(0),[s,u]=y.useState(0),l=!!(a&&s);return kr(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),kr(o.scrollbarY,()=>{var h;const c=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(c),i(c)}),l?p.jsx(be.div,{...n,ref:e,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Mo(t){return t?parseInt(t,10):0}function D0(t,e){const r=t/e;return isNaN(r)?0:r}function ga(t){const e=D0(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function oS(t,e,r,n="ltr"){const o=ga(r),a=o/2,i=e||a,s=o-i,u=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,h=n==="ltr"?[0,c]:[c*-1,0];return M0([u,l],h)(t)}function sc(t,e,r="ltr"){const n=ga(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-o,i=e.content-e.viewport,s=a-n,u=r==="ltr"?[0,i]:[i*-1,0],l=Y5(t,u);return M0([0,i],[0,s])(l)}function M0(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function L0(t,e){return t>0&&t<e}var aS=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function o(){const a={left:t.scrollLeft,top:t.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&e(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function va(t,e){const r=Me(t),n=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(n.current),[]),y.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,e)},[r,e])}function kr(t,e){const r=Me(e);Mt(()=>{let n=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(t),()=>{window.cancelAnimationFrame(n),o.unobserve(t)}}},[t,r])}var $0=j0,iS=O0,sS=I0;const su=y.forwardRef(({className:t,children:e,...r},n)=>p.jsxs($0,{ref:n,className:Ce("relative overflow-hidden",t),...r,children:[p.jsx(iS,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx(B0,{}),p.jsx(sS,{})]}));su.displayName=$0.displayName;const B0=y.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(ou,{ref:n,orientation:e,className:Ce("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:p.jsx(R0,{className:"relative flex-1 rounded-full bg-border"})}));B0.displayName=ou.displayName;const uS=()=>{const{selected:t,actions:e}=it(r=>{var a,i,s,u,l,c,h;const n=r.events.selected?Array.from(r.events.selected)[0]:null;let o;return n&&(o={id:n,name:((i=(a=r.nodes[n])==null?void 0:a.data)==null?void 0:i.displayName)||((u=(s=r.nodes[n])==null?void 0:s.data)==null?void 0:u.name),settings:(c=(l=r.nodes[n])==null?void 0:l.related)==null?void 0:c.settings,isDeletable:((h=r.nodes[n])==null?void 0:h.id)!=="ROOT"}),{selected:o}});return p.jsx("div",{className:"h-full flex flex-col",children:t?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-border mb-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"Selected"}),p.jsx("h3",{className:"text-sm font-semibold",children:t.name})]}),t.isDeletable&&p.jsx("button",{onClick:()=>e.delete(t.id),className:"p-1.5 rounded hover:bg-destructive/10 text-destructive transition-colors",title:"Delete element",children:p.jsx(xh,{className:"h-4 w-4"})})]}),p.jsx(su,{className:"flex-1 -mr-4 pr-4",children:t.settings&&w.createElement(t.settings)})]}):p.jsx("div",{className:"text-center py-8",children:p.jsx("p",{className:"text-sm text-muted-foreground",children:"Select an element to edit its properties"})})})},lS=t=>{switch(t){case"Container":return Ua;case"Text":return kc;case"Heading":return Nc;case"Button":return Ac;case"Image":return Tc;case"Divider":return jc;case"Spacer":return Oc;case"Video":return Ch;case"Columns":return ih;case"Link":return Gi;default:return Ua}},z0=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a})=>{const{node:i,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=it((T,P)=>{var R,M;const I=T.nodes[t],N=((R=I==null?void 0:I.data)==null?void 0:R.nodes)||[],O=T.events.selected?Array.from(T.events.selected)[0]:null,A=(M=I==null?void 0:I.data)==null?void 0:M.parent;return{node:I,childNodes:N,selectedNodeId:O,parentId:A}}),[h,f]=w.useState(!0),[d,b]=w.useState(!1);if(!i)return null;const g=i.data.displayName||i.data.name||"Unknown",m=l.length>0,v=u===t,x=t==="ROOT",C=lS(g),S=a===t,j=i.data.isCanvas,k=T=>{T.stopPropagation(),x||s.selectNode(t)},_=T=>{T.stopPropagation(),f(!h)},D=T=>{if(x){T.preventDefault();return}T.stopPropagation(),r(t,c)},L=T=>{T.preventDefault(),T.stopPropagation(),a&&a!==t&&j&&b(!0)},$=T=>{T.stopPropagation(),b(!1)},E=T=>{T.preventDefault(),T.stopPropagation(),b(!1),a&&a!==t&&o(t)};return p.jsxs("div",{className:"select-none",children:[p.jsxs("div",{className:`flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${v?"bg-primary/10 text-primary":"hover:bg-secondary/50"} ${S?"opacity-50":""} ${d?"bg-primary/20 ring-1 ring-primary":""}`,style:{paddingLeft:`${e*12+4}px`},onClick:k,draggable:!x,onDragStart:D,onDragOver:L,onDragLeave:$,onDrop:E,children:[!x&&p.jsx(ch,{className:"h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing"}),m?p.jsx("button",{onClick:_,className:"p-0.5 hover:bg-secondary rounded",children:h?p.jsx(Vi,{className:"h-3 w-3"}):p.jsx(Wi,{className:"h-3 w-3"})}):p.jsx("span",{className:"w-4"}),p.jsx(C,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),p.jsx("span",{className:`truncate ${x?"font-medium":""}`,children:x?"Root":g})]}),m&&h&&p.jsx("div",{children:l.map(T=>p.jsx(z0,{nodeId:T,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a},T))})]})},cS=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:a}=it(l=>({nodeIds:Object.keys(l.nodes)})),i=(l,c)=>{e(l),n(c)},s=l=>{if(t&&l&&t!==l)try{a.move(t,l,0)}catch(c){console.log("Cannot move node:",c)}e(null),n(null)},u=()=>{e(null),n(null)};return p.jsxs("div",{className:"space-y-2",onDragEnd:u,children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Layers"}),p.jsx("div",{className:"border border-border rounded-lg p-2 max-h-[250px] overflow-y-auto bg-background",children:o.includes("ROOT")&&p.jsx(z0,{nodeId:"ROOT",onDragStart:i,onDrop:s,draggedId:t})}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Drag to containers to reorder"})]})};function uc(t){const e=dS(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(pS);if(u){const l=u.props.children,c=s.map(h=>h===u?y.Children.count(l)>1?y.Children.only(null):y.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...i,ref:o,children:y.isValidElement(l)?y.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function dS(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=mS(o),s=hS(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Bo(n,i):i),y.cloneElement(o,s)}return y.Children.count(o)>1?y.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var fS=Symbol("radix.slottable");function pS(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===fS}function hS(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function mS(t){var n,o;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=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function bS(t){const e=t+"CollectionProvider",[r,n]=rr(e),[o,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:m,children:v}=g,x=w.useRef(null),C=w.useRef(new Map).current;return p.jsx(o,{scope:m,itemMap:C,collectionRef:x,children:v})};i.displayName=e;const s=t+"CollectionSlot",u=uc(s),l=w.forwardRef((g,m)=>{const{scope:v,children:x}=g,C=a(s,v),S=Se(m,C.collectionRef);return p.jsx(u,{ref:S,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=uc(c),d=w.forwardRef((g,m)=>{const{scope:v,children:x,...C}=g,S=w.useRef(null),j=Se(m,S),k=a(c,v);return w.useEffect(()=>(k.itemMap.set(S,{ref:S,...C}),()=>void k.itemMap.delete(S))),p.jsx(f,{[h]:"",ref:j,children:x})});d.displayName=c;function b(g){const m=a(t+"CollectionConsumer",g);return w.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(m.itemMap.values()).sort((k,_)=>C.indexOf(k.ref.current)-C.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},b,n]}var Ha="rovingFocusGroup.onEntryFocus",gS={bubbles:!1,cancelable:!0},Rn="RovingFocusGroup",[Mi,H0,vS]=bS(Rn),[yS,F0]=rr(Rn,[vS]),[xS,wS]=yS(Rn),q0=y.forwardRef((t,e)=>p.jsx(Mi.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Mi.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(SS,{...t,ref:e})})}));q0.displayName=Rn;var SS=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...h}=t,f=y.useRef(null),d=Se(e,f),b=ru(a),[g,m]=Hr({prop:i,defaultProp:s??null,onChange:u,caller:Rn}),[v,x]=y.useState(!1),C=Me(l),S=H0(r),j=y.useRef(!1),[k,_]=y.useState(0);return y.useEffect(()=>{const D=f.current;if(D)return D.addEventListener(Ha,C),()=>D.removeEventListener(Ha,C)},[C]),p.jsx(xS,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:g,onItemFocus:y.useCallback(D=>m(D),[m]),onItemShiftTab:y.useCallback(()=>x(!0),[]),onFocusableItemAdd:y.useCallback(()=>_(D=>D+1),[]),onFocusableItemRemove:y.useCallback(()=>_(D=>D-1),[]),children:p.jsx(be.div,{tabIndex:v||k===0?-1:0,"data-orientation":n,...h,ref:d,style:{outline:"none",...t.style},onMouseDown:le(t.onMouseDown,()=>{j.current=!0}),onFocus:le(t.onFocus,D=>{const L=!j.current;if(D.target===D.currentTarget&&L&&!v){const $=new CustomEvent(Ha,gS);if(D.currentTarget.dispatchEvent($),!$.defaultPrevented){const E=S().filter(O=>O.focusable),T=E.find(O=>O.active),P=E.find(O=>O.id===g),N=[T,P,...E].filter(Boolean).map(O=>O.ref.current);W0(N,c)}}j.current=!1}),onBlur:le(t.onBlur,()=>x(!1))})})}),U0="RovingFocusGroupItem",V0=y.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=t,u=wd(),l=a||u,c=wS(U0,r),h=c.currentTabStopId===l,f=H0(r),{onFocusableItemAdd:d,onFocusableItemRemove:b,currentTabStopId:g}=c;return y.useEffect(()=>{if(n)return d(),()=>b()},[n,d,b]),p.jsx(Mi.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(be.span,{tabIndex:h?0:-1,"data-orientation":c.orientation,...s,ref:e,onMouseDown:le(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:le(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:le(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const v=NS(m,c.orientation,c.dir);if(v!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let C=f().filter(S=>S.focusable).map(S=>S.ref.current);if(v==="last")C.reverse();else if(v==="prev"||v==="next"){v==="prev"&&C.reverse();const S=C.indexOf(m.currentTarget);C=c.loop?TS(C,S+1):C.slice(S+1)}setTimeout(()=>W0(C))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:g!=null}):i})})});V0.displayName=U0;var CS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ES(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function NS(t,e,r){const n=ES(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return CS[n]}function W0(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function TS(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var jS=q0,AS=V0,G0="Toggle",uu=y.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=t,[i,s]=Hr({prop:r,onChange:o,defaultProp:n??!1,caller:G0});return p.jsx(be.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...a,ref:e,onClick:le(t.onClick,()=>{t.disabled||s(!i)})})});uu.displayName=G0;var Y0=uu,qt="ToggleGroup",[X0]=rr(qt,[F0]),K0=F0(),lu=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx(OS,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx(kS,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${qt}\``)});lu.displayName=qt;var[J0,Z0]=X0(qt),OS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Hr({prop:r,defaultProp:n??"",onChange:o,caller:qt});return p.jsx(J0,{scope:t.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(Q0,{...a,ref:e})})}),kS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Hr({prop:r,defaultProp:n??[],onChange:o,caller:qt}),u=w.useCallback(c=>s((h=[])=>[...h,c]),[s]),l=w.useCallback(c=>s((h=[])=>h.filter(f=>f!==c)),[s]);return p.jsx(J0,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:u,onItemDeactivate:l,children:p.jsx(Q0,{...a,ref:e})})});lu.displayName=qt;var[PS,_S]=X0(qt),Q0=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...u}=t,l=K0(r),c=ru(i),h={role:"group",dir:c,...u};return p.jsx(PS,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(jS,{asChild:!0,...l,orientation:a,dir:c,loop:s,children:p.jsx(be.div,{...h,ref:e})}):p.jsx(be.div,{...h,ref:e})})}),Lo="ToggleGroupItem",ep=w.forwardRef((t,e)=>{const r=Z0(Lo,t.__scopeToggleGroup),n=_S(Lo,t.__scopeToggleGroup),o=K0(t.__scopeToggleGroup),a=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:a,disabled:i},u=w.useRef(null);return n.rovingFocus?p.jsx(AS,{asChild:!0,...o,focusable:!i,active:a,ref:u,children:p.jsx(lc,{...s,ref:e})}):p.jsx(lc,{...s,ref:e})});ep.displayName=Lo;var lc=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,a=Z0(Lo,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return p.jsx(uu,{...s,...o,ref:e,onPressedChange:u=>{u?a.onItemActivate(n):a.onItemDeactivate(n)}})}),tp=lu,rp=ep;const np=_c("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),RS=y.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(Y0,{ref:o,className:Ce(np({variant:e,size:r,className:t})),...n}));RS.displayName=Y0.displayName;const op=y.createContext({size:"default",variant:"default"}),ap=y.forwardRef(({className:t,variant:e,size:r,children:n,...o},a)=>p.jsx(tp,{ref:a,className:Ce("flex items-center justify-center gap-1",t),...o,children:p.jsx(op.Provider,{value:{variant:e,size:r},children:n})}));ap.displayName=tp.displayName;const ip=y.forwardRef(({className:t,children:e,variant:r,size:n,...o},a)=>{const i=y.useContext(op);return p.jsx(rp,{ref:a,className:Ce(np({variant:i.variant||r,size:i.size||n}),t),...o,children:e})});ip.displayName=rp.displayName;var IS=t=>{switch(t){case"success":return LS;case"info":return BS;case"warning":return $S;case"error":return zS;default:return null}},DS=Array(12).fill(0),MS=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},DS.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),LS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),$S=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),BS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),zS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),HS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},w.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),w.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FS=()=>{let[t,e]=w.useState(document.hidden);return w.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},Li=1,qS=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,o=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:Li++,a=this.toasts.find(s=>s.id===o),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:i,title:r}):s):this.addToast({title:r,...n,dismissible:i,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),o=r!==void 0,a,i=n.then(async u=>{if(a=["resolve",u],w.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(VS(u)&&!u.ok){o=!1;let l=typeof e.error=="function"?await e.error(`HTTP error! status: ${u.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${u.status}`):e.description;this.create({id:r,type:"error",message:l,description:c})}else if(e.success!==void 0){o=!1;let l=typeof e.success=="function"?await e.success(u):e.success,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"success",message:l,description:c})}}).catch(async u=>{if(a=["reject",u],e.error!==void 0){o=!1;let l=typeof e.error=="function"?await e.error(u):e.error,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"error",message:l,description:c})}}).finally(()=>{var u;o&&(this.dismiss(r),r=void 0),(u=e.finally)==null||u.call(e)}),s=()=>new Promise((u,l)=>i.then(()=>a[0]==="reject"?l(a[1]):u(a[1])).catch(l));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Li++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},je=new qS,US=(t,e)=>{let r=(e==null?void 0:e.id)||Li++;return je.addToast({title:t,...e,id:r}),r},VS=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",WS=US,GS=()=>je.toasts,YS=()=>je.getActiveToasts(),XS=Object.assign(WS,{success:je.success,info:je.info,warning:je.warning,error:je.error,custom:je.custom,message:je.message,promise:je.promise,dismiss:je.dismiss,loading:je.loading},{getHistory:GS,getToasts:YS});function KS(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}KS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
280
|
+
`);function Qn(t){return t.label!==void 0}var JS=3,ZS="32px",QS="16px",cc=4e3,eC=356,tC=14,rC=20,nC=200;function Fe(...t){return t.filter(Boolean).join(" ")}function oC(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var aC=t=>{var e,r,n,o,a,i,s,u,l,c,h;let{invert:f,toast:d,unstyled:b,interacting:g,setHeights:m,visibleToasts:v,heights:x,index:C,toasts:S,expanded:j,removeToast:k,defaultRichColors:_,closeButton:D,style:L,cancelButtonStyle:$,actionButtonStyle:E,className:T="",descriptionClassName:P="",duration:I,position:N,gap:O,loadingIcon:A,expandByDefault:R,classNames:M,icons:q,closeButtonAriaLabel:fe="Close toast",pauseWhenPageIsHidden:Q}=t,[B,z]=w.useState(null),[me,X]=w.useState(null),[H,Te]=w.useState(!1),[xe,ge]=w.useState(!1),[Ge,ct]=w.useState(!1),[Ye,In]=w.useState(!1),[ya,Dn]=w.useState(!1),[xa,Ur]=w.useState(0),[ir,cu]=w.useState(0),Vr=w.useRef(d.duration||I||cc),du=w.useRef(null),Ut=w.useRef(null),cp=C===0,dp=C+1<=v,Re=d.type,sr=d.dismissible!==!1,fp=d.className||"",pp=d.descriptionClassName||"",Mn=w.useMemo(()=>x.findIndex(U=>U.toastId===d.id)||0,[x,d.id]),hp=w.useMemo(()=>{var U;return(U=d.closeButton)!=null?U:D},[d.closeButton,D]),fu=w.useMemo(()=>d.duration||I||cc,[d.duration,I]),wa=w.useRef(0),ur=w.useRef(0),pu=w.useRef(0),lr=w.useRef(null),[mp,bp]=N.split("-"),hu=w.useMemo(()=>x.reduce((U,re,ce)=>ce>=Mn?U:U+re.height,0),[x,Mn]),mu=FS(),gp=d.invert||f,Sa=Re==="loading";ur.current=w.useMemo(()=>Mn*O+hu,[Mn,hu]),w.useEffect(()=>{Vr.current=fu},[fu]),w.useEffect(()=>{Te(!0)},[]),w.useEffect(()=>{let U=Ut.current;if(U){let re=U.getBoundingClientRect().height;return cu(re),m(ce=>[{toastId:d.id,height:re,position:d.position},...ce]),()=>m(ce=>ce.filter(Be=>Be.toastId!==d.id))}},[m,d.id]),w.useLayoutEffect(()=>{if(!H)return;let U=Ut.current,re=U.style.height;U.style.height="auto";let ce=U.getBoundingClientRect().height;U.style.height=re,cu(ce),m(Be=>Be.find(ze=>ze.toastId===d.id)?Be.map(ze=>ze.toastId===d.id?{...ze,height:ce}:ze):[{toastId:d.id,height:ce,position:d.position},...Be])},[H,d.title,d.description,m,d.id]);let Tt=w.useCallback(()=>{ge(!0),Ur(ur.current),m(U=>U.filter(re=>re.toastId!==d.id)),setTimeout(()=>{k(d)},nC)},[d,k,m,ur]);w.useEffect(()=>{if(d.promise&&Re==="loading"||d.duration===1/0||d.type==="loading")return;let U;return j||g||Q&&mu?(()=>{if(pu.current<wa.current){let re=new Date().getTime()-wa.current;Vr.current=Vr.current-re}pu.current=new Date().getTime()})():Vr.current!==1/0&&(wa.current=new Date().getTime(),U=setTimeout(()=>{var re;(re=d.onAutoClose)==null||re.call(d,d),Tt()},Vr.current)),()=>clearTimeout(U)},[j,g,d,Re,Q,mu,Tt]),w.useEffect(()=>{d.delete&&Tt()},[Tt,d.delete]);function vp(){var U,re,ce;return q!=null&&q.loading?w.createElement("div",{className:Fe(M==null?void 0:M.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":Re==="loading"},q.loading):A?w.createElement("div",{className:Fe(M==null?void 0:M.loader,(re=d==null?void 0:d.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":Re==="loading"},A):w.createElement(MS,{className:Fe(M==null?void 0:M.loader,(ce=d==null?void 0:d.classNames)==null?void 0:ce.loader),visible:Re==="loading"})}return w.createElement("li",{tabIndex:0,ref:Ut,className:Fe(T,fp,M==null?void 0:M.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,M==null?void 0:M.default,M==null?void 0:M[Re],(r=d==null?void 0:d.classNames)==null?void 0:r[Re]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:_,"data-styled":!(d.jsx||d.unstyled||b),"data-mounted":H,"data-promise":!!d.promise,"data-swiped":ya,"data-removed":xe,"data-visible":dp,"data-y-position":mp,"data-x-position":bp,"data-index":C,"data-front":cp,"data-swiping":Ge,"data-dismissible":sr,"data-type":Re,"data-invert":gp,"data-swipe-out":Ye,"data-swipe-direction":me,"data-expanded":!!(j||R&&H),style:{"--index":C,"--toasts-before":C,"--z-index":S.length-C,"--offset":`${xe?xa:ur.current}px`,"--initial-height":R?"auto":`${ir}px`,...L,...d.style},onDragEnd:()=>{ct(!1),z(null),lr.current=null},onPointerDown:U=>{Sa||!sr||(du.current=new Date,Ur(ur.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(ct(!0),lr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,re,ce,Be;if(Ye||!sr)return;lr.current=null;let ze=Number(((U=Ut.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jt=Number(((re=Ut.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Vt=new Date().getTime()-((ce=du.current)==null?void 0:ce.getTime()),He=B==="x"?ze:jt,At=Math.abs(He)/Vt;if(Math.abs(He)>=rC||At>.11){Ur(ur.current),(Be=d.onDismiss)==null||Be.call(d,d),X(B==="x"?ze>0?"right":"left":jt>0?"down":"up"),Tt(),In(!0),Dn(!1);return}ct(!1),z(null)},onPointerMove:U=>{var re,ce,Be,ze;if(!lr.current||!sr||((re=window.getSelection())==null?void 0:re.toString().length)>0)return;let jt=U.clientY-lr.current.y,Vt=U.clientX-lr.current.x,He=(ce=t.swipeDirections)!=null?ce:oC(N);!B&&(Math.abs(Vt)>1||Math.abs(jt)>1)&&z(Math.abs(Vt)>Math.abs(jt)?"x":"y");let At={x:0,y:0};B==="y"?(He.includes("top")||He.includes("bottom"))&&(He.includes("top")&&jt<0||He.includes("bottom")&&jt>0)&&(At.y=jt):B==="x"&&(He.includes("left")||He.includes("right"))&&(He.includes("left")&&Vt<0||He.includes("right")&&Vt>0)&&(At.x=Vt),(Math.abs(At.x)>0||Math.abs(At.y)>0)&&Dn(!0),(Be=Ut.current)==null||Be.style.setProperty("--swipe-amount-x",`${At.x}px`),(ze=Ut.current)==null||ze.style.setProperty("--swipe-amount-y",`${At.y}px`)}},hp&&!d.jsx?w.createElement("button",{"aria-label":fe,"data-disabled":Sa,"data-close-button":!0,onClick:Sa||!sr?()=>{}:()=>{var U;Tt(),(U=d.onDismiss)==null||U.call(d,d)},className:Fe(M==null?void 0:M.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(a=q==null?void 0:q.close)!=null?a:HS):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,Re||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:Fe(M==null?void 0:M.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||vp():null,d.type!=="loading"?d.icon||(q==null?void 0:q[Re])||IS(Re):null):null,w.createElement("div",{"data-content":"",className:Fe(M==null?void 0:M.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:Fe(M==null?void 0:M.title,(u=d==null?void 0:d.classNames)==null?void 0:u.title)},typeof d.title=="function"?d.title():d.title),d.description?w.createElement("div",{"data-description":"",className:Fe(P,pp,M==null?void 0:M.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},typeof d.description=="function"?d.description():d.description):null),w.isValidElement(d.cancel)?d.cancel:d.cancel&&Qn(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||$,onClick:U=>{var re,ce;Qn(d.cancel)&&sr&&((ce=(re=d.cancel).onClick)==null||ce.call(re,U),Tt())},className:Fe(M==null?void 0:M.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,w.isValidElement(d.action)?d.action:d.action&&Qn(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||E,onClick:U=>{var re,ce;Qn(d.action)&&((ce=(re=d.action).onClick)==null||ce.call(re,U),!U.defaultPrevented&&Tt())},className:Fe(M==null?void 0:M.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function dc(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function iC(t,e){let r={};return[t,e].forEach((n,o)=>{let a=o===1,i=a?"--mobile-offset":"--offset",s=a?QS:ZS;function u(l){["top","right","bottom","left"].forEach(c=>{r[`${i}-${c}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):u(s)}),r}w.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:i,className:s,offset:u,mobileOffset:l,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:b=JS,toastOptions:g,dir:m=dc(),gap:v=tC,loadingIcon:x,icons:C,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:j}=t,[k,_]=w.useState([]),D=w.useMemo(()=>Array.from(new Set([n].concat(k.filter(Q=>Q.position).map(Q=>Q.position)))),[k,n]),[L,$]=w.useState([]),[E,T]=w.useState(!1),[P,I]=w.useState(!1),[N,O]=w.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=w.useRef(null),R=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=w.useRef(null),q=w.useRef(!1),fe=w.useCallback(Q=>{_(B=>{var z;return(z=B.find(me=>me.id===Q.id))!=null&&z.delete||je.dismiss(Q.id),B.filter(({id:me})=>me!==Q.id)})},[]);return w.useEffect(()=>je.subscribe(Q=>{if(Q.dismiss){_(B=>B.map(z=>z.id===Q.id?{...z,delete:!0}:z));return}setTimeout(()=>{Bi.flushSync(()=>{_(B=>{let z=B.findIndex(me=>me.id===Q.id);return z!==-1?[...B.slice(0,z),{...B[z],...Q},...B.slice(z+1)]:[Q,...B]})})})}),[]),w.useEffect(()=>{if(c!=="system"){O(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;let Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:B})=>{O(B?"dark":"light")})}catch{Q.addListener(({matches:z})=>{try{O(z?"dark":"light")}catch(me){console.error(me)}})}},[c]),w.useEffect(()=>{k.length<=1&&T(!1)},[k]),w.useEffect(()=>{let Q=B=>{var z,me;o.every(X=>B[X]||B.code===X)&&(T(!0),(z=A.current)==null||z.focus()),B.code==="Escape"&&(document.activeElement===A.current||(me=A.current)!=null&&me.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[o]),w.useEffect(()=>{if(A.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,q.current=!1)}},[A.current]),w.createElement("section",{ref:e,"aria-label":`${S} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((Q,B)=>{var z;let[me,X]=Q.split("-");return k.length?w.createElement("ol",{key:Q,dir:m==="auto"?dc():m,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":me,"data-lifted":E&&k.length>1&&!a,"data-x-position":X,style:{"--front-toast-height":`${((z=L[0])==null?void 0:z.height)||0}px`,"--width":`${eC}px`,"--gap":`${v}px`,...d,...iC(u,l)},onBlur:H=>{q.current&&!H.currentTarget.contains(H.relatedTarget)&&(q.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||q.current||(q.current=!0,M.current=H.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{P||T(!1)},onDragEnd:()=>T(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(H=>!H.position&&B===0||H.position===Q).map((H,Te)=>{var xe,ge;return w.createElement(aC,{key:H.id,icons:C,index:Te,toast:H,defaultRichColors:h,duration:(xe=g==null?void 0:g.duration)!=null?xe:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:b,closeButton:(ge=g==null?void 0:g.closeButton)!=null?ge:i,interacting:P,position:Q,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:fe,toasts:k.filter(Ge=>Ge.position==H.position),heights:L.filter(Ge=>Ge.position==H.position),setHeights:$,expandByDefault:a,gap:v,loadingIcon:x,expanded:E,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const $i={mobile:{width:375,icon:Xi,label:"Mobile (375px)"},tablet:{width:768,icon:Ki,label:"Tablet (768px)"},small:{width:1024,icon:Yi,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Ji,label:"Desktop (Full)"}},sC=({handleSavePopup:t,setIsOpen:e,onSave:r,deviceSize:n,onDeviceSizeChange:o,setEditPopup:a,editPopup:i})=>{const{actions:s,query:u,canUndo:l,canRedo:c}=it((f,d)=>({canUndo:d.history.canUndo(),canRedo:d.history.canRedo()})),h=()=>{const f=u.serialize();i?t==null||t(f):r==null||r(f),XS.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(hn,{children:p.jsx(ap,{type:"single",value:n,onValueChange:f=>f&&o(f),className:"bg-muted rounded-md p-1",children:Object.entries($i).map(([f,{icon:d,label:b}])=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx(ip,{value:f,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(d,{className:"h-4 w-4"})})}),p.jsx(Jt,{side:"bottom",children:p.jsx("p",{children:b})})]},f))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(Ke,{variant:"outline",size:"sm",onClick:()=>a(f=>!f),children:[i?"Edit page":"Edit popup"," ",p.jsx(gh,{className:"h-4 w-4"})]}),p.jsx(Ke,{variant:"outline",size:"sm",onClick:()=>s.history.undo(),disabled:!l,children:p.jsx(Sh,{className:"h-4 w-4"})}),p.jsx(Ke,{variant:"outline",size:"sm",onClick:()=>s.history.redo(),disabled:!c,children:p.jsx(hh,{className:"h-4 w-4"})}),p.jsxs(Ke,{size:"sm",onClick:()=>e(!0),children:["Preview Page ",p.jsx(lh,{className:"ml-2 h-4 w-4"})]}),p.jsxs(Ke,{size:"sm",onClick:h,children:[p.jsx(mh,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},sp=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:a,events:i}=oe(s=>({events:s.events}));r=a.connect,n=a.drag,o=i.selected}catch{}return p.jsx("div",{ref:a=>{a&&r&&n&&(r==null||r(n(a)))},className:rt("relative min-h-[100vh]",e||""),children:t})};sp.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const fc=({htmlJson:t,editorState:e})=>{const{actions:r}=it();return w.useEffect(()=>{t?r.deserialize(t):e?r.deserialize(e):r.deserialize({ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body"}})},[]),p.jsx(hs,{})},uC=({htmlJson:t,enabled:e,popupEditorState:r})=>{const{actions:n}=it();return w.useEffect(()=>{if(t)n.deserialize(t);else if(r)n.deserialize(r);else{const o={ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body",nodes:["popupWrapperNode"],linkedNodes:{}},popupWrapperNode:{type:{resolvedName:"Wrapper"},isCanvas:!0,props:{...mn,width:{desktop:{type:"custom",value:"100",unit:"%"}},height:{desktop:{type:"custom",value:"100",unit:"vh"}},backgroundColor:"rgba(0,0,0,0.25)",position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",id:"popupWrapper",onClick:a=>{console.log("test"),a.target.id}},displayName:"Wrapper",nodes:["popupContainerNode"],parent:"ROOT",linkedNodes:{}},popupContainerNode:{type:{resolvedName:"Container"},isCanvas:!0,props:{...mn,width:{desktop:{type:"custom",value:"90",unit:"%"}},height:{desktop:{type:"custom",value:"60",unit:"%"}},backgroundColor:"white",id:"popupContainer"},displayName:"Container",nodes:[],parent:"popupWrapperNode",linkedNodes:{}}};n.deserialize(o)}},[]),p.jsx(hs,{})},$o={Body:sp,Div:tu,Wrapper:qr,Section:E0,Container:Tn,Text:Ws,ButtonComponent:Es,Heading:Gs,Image:Ys,Img:C0,Divider:Xs,Spacer:Ks,Video:Qs,Columns:S0,Link:eu,Footer:N0},lC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,setIsOpen:o,initialData:a,onSave:i,onStateChange:s,enabled:u=!0})=>{var C;const l=En(),[c,h]=w.useState("desktop"),[f,d]=w.useState(!1),b=w.useRef(f);b.current=f;const[g,m]=w.useState(((C=$i[c])==null?void 0:C.width)||"100%");w.useEffect(()=>{var j;const S=((j=$i[c])==null?void 0:j.width)||"100%";m(S)},[c]),w.useEffect(()=>{if(!u){const S=()=>{const j=window.innerWidth;j<640?h("mobile"):j<1024?h("tablet"):j<1280?h("small"):h("desktop")};return window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)}},[u]);const v=S=>{if(s)try{const j=S.serialize();s(j)}catch(j){console.log(j)}},x=S=>{if(r)try{const j=S.serialize();r(j)}catch(j){console.log(j)}};return u?p.jsx(di,{resolver:$o,enabled:u,onNodesChange:S=>{b.current?x(S):v(S)},children:p.jsx(yo,{value:c,children:p.jsx(an,{value:l,children:p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-border",children:[p.jsx("h2",{className:"text-lg font-semibold",children:f?"Popup Builder":"Page Builder"}),p.jsx(sC,{setIsOpen:o,onSave:i,handleSavePopup:t,deviceSize:c,onDeviceSizeChange:h,editPopup:f,setEditPopup:d})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(en,{className:"w-52",children:p.jsxs(tn,{className:"p-4 space-y-6",children:[p.jsx(W5,{}),p.jsx(cS,{})]})}),p.jsx(en,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 flex justify-center overflow-hidden",children:p.jsx(su,{className:"h-full w-full",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",style:{width:typeof g=="number"?`${g}px`:g,maxWidth:"100%"},children:f?p.jsx(uC,{popupEditorState:e,enabled:u}):p.jsx(fc,{editorState:n,htmlJson:a})})})})})}),p.jsx(en,{className:"w-64 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(uS,{})})})]})]})})})}):p.jsx(yo,{value:c,children:p.jsx(an,{value:l,children:p.jsx(di,{resolver:$o,enabled:u,children:p.jsx(fc,{htmlJson:a})})})})},Fa={mobile:{width:375,label:"Mobile",icon:Xi},tablet:{width:768,label:"Tablet",icon:Ki},small:{width:1024,label:"Small",icon:Yi},desktop:{width:1440,label:"Desktop",icon:Ji}},cC=({editorState:t,deviceSize:e})=>p.jsx(di,{resolver:$o,enabled:!1,children:p.jsx(yo,{value:e,children:p.jsx(dC,{editorState:t})})}),dC=({editorState:t})=>{const{actions:e}=it();return w.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(hs,{})},up=({isOpen:t,onClose:e,eventData:r,editorState:n,popupEditorState:o})=>{var u,l;const[a,i]=w.useState("desktop");if(w.useEffect(()=>{const c=h=>{h.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,e]),!t)return null;const s=((u=Fa[a])==null?void 0:u.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col bg-white",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:["(",(l=Fa[a])==null?void 0:l.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Fa).map(([c,{label:h,icon:f}])=>p.jsxs(Ke,{variant:"ghost",size:"sm",onClick:()=>i(c),className:Dh("h-8 px-3 gap-2",a===c&&"bg-background shadow-sm"),children:[p.jsx(f,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:h})]},c))}),p.jsx(Ke,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(Eh,{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:`${s}px`,maxWidth:"100%"},children:p.jsx(an,{value:r,children:n?p.jsx(cC,{editorState:n,deviceSize:a}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},fC=({handleSavePopup:t,popupEditorState:e,handleStateChangePopup:r,editorState:n,initialData:o,onSave:a,onStateChange:i,eventData:s,enabled:u=!0})=>{const[l,c]=w.useState(!1);return p.jsx(an,{value:s,children:p.jsxs(w.Suspense,{fallback:p.jsx(en,{children:p.jsx(tn,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Ln,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Ln,{className:"h-[500px] w-48"}),p.jsx(Ln,{className:"h-[500px] flex-1"}),p.jsx(Ln,{className:"h-[500px] w-64"})]})]})})}),children:[p.jsx(lC,{popupEditorState:e,handleStateChangePopup:r,editorState:n,enabled:u,setIsOpen:c,initialData:o,onSave:a,handleSavePopup:t,onStateChange:i}),u?p.jsx(up,{popupEditorState:e,eventData:s,editorState:n,isOpen:l,onClose:()=>c(!1)}):null]})})},lp=w.createContext({fetchVideoByLocation:null}),pC=({children:t,fetchVideoByLocation:e})=>p.jsx(lp.Provider,{value:{fetchVideoByLocation:e},children:t}),hC=()=>w.useContext(lp);exports.ApiConfigProvider=pC;exports.DEVICE_ORDER=De;exports.DeviceSizeProvider=yo;exports.EventDataProvider=an;exports.PageBuilder=fC;exports.PreviewModal=up;exports.TEMPLATE_VARIABLES=G3;exports.getPlaceholderPaths=W3;exports.getResponsiveValue=gt;exports.hasTemplatePlaceholders=V3;exports.processTemplate=To;exports.resolver=$o;exports.useApiConfig=hC;exports.useDeviceSize=Ee;exports.useEventData=En;
|