@tech_carthagos/page-builder 1.0.43 → 1.0.45
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 +60 -55
- package/dist/index.es.js +3012 -2914
- package/dist-types/CraftEditor.d.ts.map +1 -1
- package/dist-types/PopUpEditorFrame.d.ts +6 -0
- package/dist-types/PopUpEditorFrame.d.ts.map +1 -0
- package/dist-types/editor/Topbar.d.ts +3 -1
- package/dist-types/editor/Topbar.d.ts.map +1 -1
- package/dist-types/user/Container.d.ts +12 -7
- package/dist-types/user/Container.d.ts.map +1 -1
- package/dist-types/user/ContainerOld.d.ts +8 -0
- package/dist-types/user/ContainerOld.d.ts.map +1 -1
- package/dist-types/user/Div.d.ts +3 -0
- package/dist-types/user/Div.d.ts.map +1 -1
- package/dist-types/user/TermsDownload.d.ts.map +1 -1
- package/dist-types/user/Wrapper.d.ts +3 -0
- package/dist-types/user/Wrapper.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Mi=require("react-dom"),yp=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(Mi);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 Qe(){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 Li="-",xp=t=>{const e=Sp(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const s=i.split(Li);return s[0]===""&&s.length!==1&&s.shift(),mc(s,e)||wp(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(Li);return(i=e.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},mu=/^\[(.+)\]$/,wp=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}},Sp=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Ep(Object.entries(t.classGroups),r).forEach(([a,i])=>{za(i,n,a,e)}),n},za=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:bu(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(Cp(o)){za(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{za(i,bu(e,a),r,n)})})},bu=(t,e)=>{let r=t;return e.split(Li).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,Tp=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)}}},bc="!",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(bc),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:Tp(t.cacheSize),parseClassName:Np(t),...xp(t)}),Op=/\s+/,Pp=(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+bc:m,x=v+g;if(a.includes(x))continue;a.push(x);const S=o(g,b);for(let E=0;E<S.length;++E){const j=S[E];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=gc(e))&&(n&&(n+=" "),n+=r);return n}const gc=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=gc(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=Pp(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,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)\(.+\)$/,st=t=>mr(t)||Ip.has(t)||Rp.test(t),jt=t=>kr(t,"length",Gp),mr=t=>!!t&&!Number.isNaN(Number(t)),wa=t=>kr(t,"number",mr),Wr=t=>!!t&&Number.isInteger(Number(t)),Hp=t=>t.endsWith("%")&&mr(t.slice(0,-1)),W=t=>vc.test(t),At=t=>Dp.test(t),zp=new Set(["length","size","percentage"]),Fp=t=>kr(t,zp,yc),qp=t=>kr(t,"position",yc),Up=new Set(["image","url"]),Vp=t=>kr(t,Up,Xp),Wp=t=>kr(t,"",Yp),Gr=()=>!0,kr=(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},Gp=t=>Mp.test(t)&&!Lp.test(t),yc=()=>!1,Yp=t=>$p.test(t),Xp=t=>Bp.test(t),Kp=()=>{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"),b=ae("gradientColorStopPositions"),g=ae("inset"),m=ae("margin"),v=ae("opacity"),x=ae("padding"),S=ae("saturate"),E=ae("scale"),j=ae("sepia"),k=ae("skew"),_=ae("space"),D=ae("translate"),L=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",W,e],N=()=>[W,e],P=()=>["",st,jt],I=()=>["auto",mr,W],T=()=>["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"],de=()=>[mr,W];return{cacheSize:500,separator:":",theme:{colors:[Gr],spacing:[st,jt],blur:["none","",At,W],brightness:de(),borderColor:[t],borderRadius:["none","","full",At,W],borderSpacing:N(),borderWidth:P(),contrast:de(),grayscale:M(),hueRotate:de(),invert:M(),gap:N(),gradientColorStops:[t],gradientColorStopPositions:[Hp,jt],inset:C(),margin:C(),opacity:de(),padding:N(),saturate:de(),scale:de(),sepia:M(),skew:de(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[At]}],"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:[...T(),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:C()}],"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:[At]},At]}],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",At,jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wa]}],"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,wa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",st,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",st,jt]}],"underline-offset":[{"underline-offset":["auto",st,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:N()}],"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:[...T(),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":[st,W]}],"outline-w":[{outline:[st,jt]}],"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":[st,jt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",At,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",At,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:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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:[st,jt,wa]}],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=_p(Kp);function Se(...t){return xc(Qe(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 Jp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("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:Se("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:Se("text-sm text-muted-foreground",t),...e}));Qp.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 eh=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex items-center p-6 pt-0",t),...e}));eh.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),Mo=({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"),$i=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($i);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 tt(){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 Bi="-",xp=t=>{const e=Sp(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const s=i.split(Bi);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(Bi);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(Bi).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,Tp=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),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:Tp(t.cacheSize),parseClassName:Np(t),...xp(t)}),Op=/\s+/,Pp=(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 S=o(g,b);for(let E=0;E<S.length;++E){const j=S[E];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=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=Pp(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},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)\(.+\)$/,lt=t=>br(t)||Ip.has(t)||Rp.test(t),At=t=>_r(t,"length",Gp),br=t=>!!t&&!Number.isNaN(Number(t)),Ca=t=>_r(t,"number",br),Gr=t=>!!t&&Number.isInteger(Number(t)),Hp=t=>t.endsWith("%")&&br(t.slice(0,-1)),W=t=>yc.test(t),Ot=t=>Dp.test(t),zp=new Set(["length","size","percentage"]),Fp=t=>_r(t,zp,xc),qp=t=>_r(t,"position",xc),Up=new Set(["image","url"]),Vp=t=>_r(t,Up,Xp),Wp=t=>_r(t,"",Yp),Yr=()=>!0,_r=(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=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"),b=ae("gradientColorStopPositions"),g=ae("inset"),m=ae("margin"),v=ae("opacity"),x=ae("padding"),S=ae("saturate"),E=ae("scale"),j=ae("sepia"),k=ae("skew"),_=ae("space"),D=ae("translate"),L=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",W,e],N=()=>[W,e],P=()=>["",lt,At],I=()=>["auto",br,W],T=()=>["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"],de=()=>[br,W];return{cacheSize:500,separator:":",theme:{colors:[Yr],spacing:[lt,At],blur:["none","",Ot,W],brightness:de(),borderColor:[t],borderRadius:["none","","full",Ot,W],borderSpacing:N(),borderWidth:P(),contrast:de(),grayscale:M(),hueRotate:de(),invert:M(),gap:N(),gradientColorStops:[t],gradientColorStopPositions:[Hp,At],inset:C(),margin:C(),opacity:de(),padding:N(),saturate:de(),scale:de(),sepia:M(),skew:de(),space:N(),translate:N()},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:[...T(),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",Gr,W]}],basis:[{basis:C()}],"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",Gr,W]}],"grid-cols":[{"grid-cols":[Yr]}],"col-start-end":[{col:["auto",{span:["full",Gr,W]},W]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Yr]}],"row-start-end":[{row:["auto",{span:[Gr,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:[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",Ca]}],"font-family":[{font:[Yr]}],"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",br,Ca]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lt,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",lt,At]}],"underline-offset":[{"underline-offset":["auto",lt,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:N()}],"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:[...T(),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":[lt,W]}],"outline-w":[{outline:[lt,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":[lt,At]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",Ot,Wp]}],"shadow-color":[{shadow:[Yr]}],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:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Gr,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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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:[lt,At,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 Se(...t){return wc(tt(t))}const tn=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}));tn.displayName="Card";const Jp=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("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:Se("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:Se("text-sm text-muted-foreground",t),...e}));Qp.displayName="CardDescription";const rn=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("p-6 pt-0",t),...e}));rn.displayName="CardContent";const eh=y.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex items-center p-6 pt-0",t),...e}));eh.displayName="CardFooter";function Ln({className:t,...e}){return p.jsx("div",{className:Se("animate-pulse rounded-md bg-muted",t),...e})}const Sc=w.createContext(null),Lo=({children:t,value:e})=>p.jsx(Sc.Provider,{value:e,children:t}),Tn=()=>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 th=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),
|
|
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.
|
|
@@ -13,27 +13,27 @@
|
|
|
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 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:
|
|
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(nh,{ref:a,iconNode:e,className:
|
|
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 zi=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 Fi=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.
|
|
@@ -43,17 +43,17 @@
|
|
|
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 qi=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 Ui=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 Vi=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.
|
|
@@ -83,7 +83,7 @@
|
|
|
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.
|
|
@@ -93,12 +93,12 @@
|
|
|
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 Tc=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 Nc=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.
|
|
@@ -108,7 +108,7 @@
|
|
|
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 Wi=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.
|
|
@@ -123,22 +123,22 @@
|
|
|
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 Gi=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.
|
|
@@ -153,7 +153,7 @@
|
|
|
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 Yi=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.
|
|
@@ -163,113 +163,118 @@
|
|
|
163
163
|
*
|
|
164
164
|
* This source code is licensed under the ISC license.
|
|
165
165
|
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const gh=Y("
|
|
166
|
+
*/const gh=Y("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
167
167
|
* @license lucide-react v0.462.0 - ISC
|
|
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 Xi=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 Ki=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 Pc=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 wh=Y("
|
|
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 Sh=Y("
|
|
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 Ch=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function gu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Lo(...t){return e=>{let r=!1;const n=t.map(o=>{const a=gu(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():gu(t[o],null)}}}}function we(...t){return y.useCallback(Lo(...t),t)}var Eh=Symbol.for("react.lazy"),ao=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===Eh&&"_payload"in t&&Th(t._payload)}function Nh(t){const e=Ah(t),r=y.forwardRef((n,o)=>{let{children:a,...i}=n;Pc(a)&&typeof ao=="function"&&(a=ao(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 jh=Nh("Slot");function Ah(t){const e=y.forwardRef((r,n)=>{let{children:o,...a}=r;if(Pc(o)&&typeof ao=="function"&&(o=ao(o._payload)),y.isValidElement(o)){const i=_h(o),s=kh(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Lo(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 Ph(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Oh}function kh(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=Qe,kc=(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(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...a,...s}[g]):{...a,...s}[g]===m})?[...l,h,f]:l},[]);return yu(t,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},Rh=kc("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"}}),pt=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})});pt.displayName="Button";function Ih(...t){return xc(Qe(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 Wt(t){return!!t&&!!t[Q]}function et(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])||$o(t)||Bo(t))}function Gt(t,e,r){r===void 0&&(r=!1),kt(t)===0?(r?Object.keys:es)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function kt(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:$o(t)?2:Bo(t)?3:0}function an(t,e){return kt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qn(t,e){return kt(t)===2?t.get(e):t[e]}function _c(t,e,r){var n=kt(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 $o(t){return zh&&t instanceof Map}function Bo(t){return Fh&&t instanceof Set}function xe(t){return t.o||t.t}function Xi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vh(t);delete e[Q];for(var r=es(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 Ki(t,e){return e===void 0&&(e=!1),Ji(t)||Wt(t)||!et(t)||(kt(t)>1&&(t.set=t.add=t.clear=t.delete=Mh),Object.freeze(t),e&&Gt(t,function(r,n){return Ki(n,!0)},!0)),t}function Mh(){ce(2)}function Ji(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Xe(t){var e=Ua[t];return e||ce(18,t),e}function Rc(t,e){Ua[t]||(Ua[t]=e)}function io(){return process.env.NODE_ENV==="production"||yr||ce(0),yr}function Sa(t,e){e&&(Xe("Patches"),t.u=[],t.s=[],t.v=e)}function so(t){qa(t),t.p.forEach(Lh),t.p=null}function qa(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 Ca(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Xe("ES5").S(e,t,n),n?(r[Q].P&&(so(e),ce(4)),et(t)&&(t=uo(e,t),e.l||lo(e,t)),e.u&&Xe("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!==Qi?t:void 0}function uo(t,e,r){if(Ji(e))return e;var n=e[Q];if(!n)return Gt(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=Xi(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Gt(a,function(s,u){return wu(t,n,o,s,u,r,i)}),lo(t,o,!1),r&&t.u&&Xe("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),Wt(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),!Wt(s))return;t.m=!1}else i&&r.add(o);if(et(o)&&!Ji(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&&Ki(e,r)}function Ea(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 dt(t){t.P||(t.P=!0,t.l&&dt(t.l))}function Ta(t){t.o||(t.o=Xi(t.t))}function sn(t,e,r){var n=$o(e)?Xe("MapSet").F(e,r):Bo(e)?Xe("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=Va;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):Xe("ES5").J(e,r);return(r?r.A:io()).p.push(n),n}function $h(t){return Wt(t)||ce(22,t),function e(r){if(!et(r))return r;var n,o=r[Q],a=kt(r);if(o){if(!o.P&&(o.i<4||!Xe("ES5").K(o)))return o.t;o.I=!0,n=Cu(r,a),o.I=!1}else n=Cu(r,a);return Gt(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 Xi(t)}function Bh(){function t(n){if(!et(n))return n;if(Array.isArray(n))return n.map(t);if($o(n))return new Map(Array.from(n.entries()).map(function(i){return[i[0],t(i[1])]}));if(Bo(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 Wt(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=kt(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=kt(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:ce(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: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;Gt(s.R,function(d,b){var g=Qn(h,d),m=Qn(f,d),v=b?an(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 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(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===Qi?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(et(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),dt(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),dt(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),dt(l),l.R=new Map,Gt(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||!et(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),dt(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),dt(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),dt(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,Zi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",zh=typeof Map<"u",Fh=typeof Set<"u",Tu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Qi=Zi?Symbol.for("immer-nothing"):((Eu={})["immer-nothing"]=!0,Eu),rn=Zi?Symbol.for("immer-draftable"):"__$immer_draftable",Q=Zi?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,es=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 es(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ua={},Va={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||!et(n)?n:n===Ea(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=Ea(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),dt(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 Ea(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ta(t),dt(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={};Gt(Va,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),Va.set.call(this,t[0],e,r,t[0])};var Wh=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),S=1;S<v;S++)x[S-1]=arguments[S];return u.produce(g,function(E){var j;return(j=a).call.apply(j,[m,E].concat(x))})}}var l;if(typeof a!="function"&&ce(6),i!==void 0&&typeof i!="function"&&ce(7),et(o)){var c=xu(n),h=sn(n,o,void 0),f=!0;try{l=a(h),f=!1}finally{f?so(c):qa(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return Sa(c,i),Ca(g,c)},function(g){throw so(c),g}):(Sa(c,i),Ca(l,c))}if(!o||typeof o!="object"){if((l=a(o))===void 0&&(l=o),l===Qi&&(l=void 0),n.D&&Ki(l,!0),i){var d=[],b=[];Xe("Patches").M(o,l,d,b),i(d,b)}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){et(r)||ce(8),Wt(r)&&(r=$h(r));var n=xu(this),o=sn(this,r,void 0);return o[Q].C=!0,qa(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 Sa(a,n),Ca(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Tu&&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=Xe("Patches").$;return Wt(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},t}(),Pe=new Wh,Gh=Pe.produce,Nu=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 zo=Qh,em=zo,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=zo;function im(t){var e=this.__data__,r=am(e,t);return r<0?void 0:e[r][1]}var sm=im,um=zo;function lm(t){return um(this.__data__,t)>-1}var cm=lm,dm=zo;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,bm=sm,gm=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=bm;_r.prototype.has=gm;_r.prototype.set=vm;var Fo=_r,ym=Fo;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 Tm=Em;function Nm(t){return this.__data__.has(t)}var jm=Nm,Am=typeof F=="object"&&F&&F.Object===Object&&F,Dc=Am,Om=Dc,Pm=typeof self=="object"&&self&&self.Object===Object&&self,km=Om||Pm||Function("return this")(),rt=km,_m=rt,Rm=_m.Symbol,qo=Rm,Au=qo,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 Hm(t){return Bm.call(t)}var zm=Hm,Ou=qo,Fm=Lm,qm=zm,Um="[object Null]",Vm="[object Undefined]",Pu=Ou?Ou.toStringTag:void 0;function Wm(t){return t==null?t===void 0?Vm:Um:Pu&&Pu in Object(t)?Fm(t):qm(t)}var Uo=Wm;function Gm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Lc=Gm,Ym=Uo,Xm=Lc,Km="[object AsyncFunction]",Jm="[object Function]",Zm="[object GeneratorFunction]",Qm="[object Proxy]";function eb(t){if(!Xm(t))return!1;var e=Ym(t);return e==Jm||e==Zm||e==Km||e==Qm}var ts=eb;const tb=Ho(ts);var rb=rt,nb=rb["__core-js_shared__"],ob=nb,Na=ob,ku=function(){var t=/[^.]+$/.exec(Na&&Na.keys&&Na.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ab(t){return!!ku&&ku in t}var ib=ab,sb=Function.prototype,ub=sb.toString;function lb(t){if(t!=null){try{return ub.call(t)}catch{}try{return t+""}catch{}}return""}var $c=lb,cb=ts,db=ib,fb=Lc,pb=$c,hb=/[\\^$.*+?()[\]{}|]/g,mb=/^\[object .+?Constructor\]$/,bb=Function.prototype,gb=Object.prototype,vb=bb.toString,yb=gb.hasOwnProperty,xb=RegExp("^"+vb.call(yb).replace(hb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wb(t){if(!fb(t)||db(t))return!1;var e=cb(t)?xb:mb;return e.test(pb(t))}var Sb=wb;function Cb(t,e){return t==null?void 0:t[e]}var Eb=Cb,Tb=Sb,Nb=Eb;function jb(t,e){var r=Nb(t,e);return Tb(r)?r:void 0}var Zt=jb,Ab=Zt,Ob=rt,Pb=Ab(Ob,"Map"),rs=Pb,kb=Zt,_b=kb(Object,"create"),Vo=_b,_u=Vo;function Rb(){this.__data__=_u?_u(null):{},this.size=0}var Ib=Rb;function Db(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Mb=Db,Lb=Vo,$b="__lodash_hash_undefined__",Bb=Object.prototype,Hb=Bb.hasOwnProperty;function zb(t){var e=this.__data__;if(Lb){var r=e[t];return r===$b?void 0:r}return Hb.call(e,t)?e[t]:void 0}var Fb=zb,qb=Vo,Ub=Object.prototype,Vb=Ub.hasOwnProperty;function Wb(t){var e=this.__data__;return qb?e[t]!==void 0:Vb.call(e,t)}var Gb=Wb,Yb=Vo,Xb="__lodash_hash_undefined__";function Kb(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yb&&e===void 0?Xb:e,this}var Jb=Kb,Zb=Ib,Qb=Mb,eg=Fb,tg=Gb,rg=Jb;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=Zb;Rr.prototype.delete=Qb;Rr.prototype.get=eg;Rr.prototype.has=tg;Rr.prototype.set=rg;var ng=Rr,Ru=ng,og=Fo,ag=rs;function ig(){this.size=0,this.__data__={hash:new Ru,map:new(ag||og),string:new Ru}}var sg=ig;function ug(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var lg=ug,cg=lg;function dg(t,e){var r=t.__data__;return cg(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Wo=dg,fg=Wo;function pg(t){var e=fg(this,t).delete(t);return this.size-=e?1:0,e}var hg=pg,mg=Wo;function bg(t){return mg(this,t).get(t)}var gg=bg,vg=Wo;function yg(t){return vg(this,t).has(t)}var xg=yg,wg=Wo;function Sg(t,e){var r=wg(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Cg=Sg,Eg=sg,Tg=hg,Ng=gg,jg=xg,Ag=Cg;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=Eg;Ir.prototype.delete=Tg;Ir.prototype.get=Ng;Ir.prototype.has=jg;Ir.prototype.set=Ag;var Bc=Ir,Og=Fo,Pg=rs,kg=Bc,_g=200;function Rg(t,e){var r=this.__data__;if(r instanceof Og){var n=r.__data__;if(!Pg||n.length<_g-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new kg(n)}return r.set(t,e),this.size=r.size,this}var Ig=Rg,Dg=Fo,Mg=wm,Lg=Cm,$g=Tm,Bg=jm,Hg=Ig;function Dr(t){var e=this.__data__=new Dg(t);this.size=e.size}Dr.prototype.clear=Mg;Dr.prototype.delete=Lg;Dr.prototype.get=$g;Dr.prototype.has=Bg;Dr.prototype.set=Hg;var zg=Dr,Fg="__lodash_hash_undefined__";function qg(t){return this.__data__.set(t,Fg),this}var Ug=qg;function Vg(t){return this.__data__.has(t)}var Wg=Vg,Gg=Bc,Yg=Ug,Xg=Wg;function co(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Gg;++e<r;)this.add(t[e])}co.prototype.add=co.prototype.push=Yg;co.prototype.has=Xg;var Kg=co;function Jg(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 Zg=Jg;function Qg(t,e){return t.has(e)}var e1=Qg,t1=Kg,r1=Zg,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 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(!r1(e,function(v,x){if(!n1(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=i1,s1=rt,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=qo,Du=l1,h1=Ic,m1=Hc,b1=d1,g1=p1,v1=1,y1=2,x1="[object Boolean]",w1="[object Date]",S1="[object Error]",C1="[object Map]",E1="[object Number]",T1="[object RegExp]",N1="[object Set]",j1="[object String]",A1="[object Symbol]",O1="[object ArrayBuffer]",P1="[object DataView]",Mu=Iu?Iu.prototype:void 0,ja=Mu?Mu.valueOf:void 0;function k1(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 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 T1:case j1:return t==e+"";case C1:var s=b1;case N1:var u=n&v1;if(s||(s=g1),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(ja)return ja.call(t)==ja.call(e)}return!1}var _1=k1;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,ns=D1,M1=I1,L1=ns;function $1(t,e,r){var n=e(t);return L1(t)?n:M1(n,r(t))}var B1=$1;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 z1=H1;function F1(){return[]}var q1=F1,U1=z1,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 Go=Z1,Q1=Uo,ev=Go,tv="[object Arguments]";function rv(t){return ev(t)&&Q1(t)==tv}var nv=rv,$u=nv,ov=Go,zc=Object.prototype,av=zc.hasOwnProperty,iv=zc.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=rt,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 bv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=mv}var qc=bv,gv=Uo,vv=qc,yv=Go,xv="[object Arguments]",wv="[object Array]",Sv="[object Boolean]",Cv="[object Date]",Ev="[object Error]",Tv="[object Function]",Nv="[object Map]",jv="[object Number]",Av="[object Object]",Ov="[object RegExp]",Pv="[object Set]",kv="[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]",Hv="[object Uint8Array]",zv="[object Uint8ClampedArray]",Fv="[object Uint16Array]",qv="[object Uint32Array]",ie={};ie[Dv]=ie[Mv]=ie[Lv]=ie[$v]=ie[Bv]=ie[Hv]=ie[zv]=ie[Fv]=ie[qv]=!0;ie[xv]=ie[wv]=ie[Rv]=ie[Sv]=ie[Iv]=ie[Cv]=ie[Ev]=ie[Tv]=ie[Nv]=ie[jv]=ie[Av]=ie[Ov]=ie[Pv]=ie[kv]=ie[_v]=!1;function Uv(t){return yv(t)&&vv(t.length)&&!!ie[gv(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 os=po.exports,Yv=Vv,Xv=Gv,Bu=os,Hu=Bu&&Bu.isTypedArray,Kv=Hu?Xv(Hu):Yv,Uc=Kv,Jv=J1,Zv=uv,Qv=ns,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,by=hy,gy=Object.prototype,vy=gy.hasOwnProperty;function yy(t){if(!my(t))return by(t);var e=[];for(var r in Object(t))vy.call(t,r)&&r!="constructor"&&e.push(r);return e}var xy=yy,wy=ts,Sy=qc;function Cy(t){return t!=null&&Sy(t.length)&&!wy(t)}var Ey=Cy,Ty=iy,Ny=xy,jy=Ey;function Ay(t){return jy(t)?Ty(t):Ny(t)}var Oy=Ay,Py=B1,ky=X1,_y=Oy;function Ry(t){return Py(t,_y,ky)}var Iy=Ry,zu=Iy,Dy=1,My=Object.prototype,Ly=My.hasOwnProperty;function $y(t,e,r,n,o,a){var i=r&Dy,s=zu(t),u=s.length,l=zu(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),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 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)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var E=t.constructor,j=e.constructor;E!=j&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof j=="function"&&j instanceof j)&&(g=!1)}return a.delete(t),a.delete(e),g}var By=$y,Hy=Zt,zy=rt,Fy=Hy(zy,"DataView"),qy=Fy,Uy=Zt,Vy=rt,Wy=Uy(Vy,"Promise"),Gy=Wy,Yy=Zt,Xy=rt,Ky=Yy(Xy,"Set"),Jy=Ky,Zy=Zt,Qy=rt,ex=Zy(Qy,"WeakMap"),tx=ex,Wa=qy,Ga=rs,Ya=Gy,Xa=Jy,Ka=tx,Vc=Uo,Mr=$c,Fu="[object Map]",rx="[object Object]",qu="[object Promise]",Uu="[object Set]",Vu="[object WeakMap]",Wu="[object DataView]",nx=Mr(Wa),ox=Mr(Ga),ax=Mr(Ya),ix=Mr(Xa),sx=Mr(Ka),Ut=Vc;(Wa&&Ut(new Wa(new ArrayBuffer(1)))!=Wu||Ga&&Ut(new Ga)!=Fu||Ya&&Ut(Ya.resolve())!=qu||Xa&&Ut(new Xa)!=Uu||Ka&&Ut(new Ka)!=Vu)&&(Ut=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=Ut,Aa=zg,lx=Hc,cx=_1,dx=By,Gu=ux,Yu=ns,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 Aa),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__"),b=h&&Zu.call(e,"__wrapped__");if(d||b){var g=d?t.value():t,m=b?e.value():e;return a||(a=new Aa),o(g,m,r,n,a)}}return f?(a||(a=new Aa),dx(t,e,r,n,o,a)):!1}var bx=mx,gx=bx,Qu=Go;function Wc(t,e,r,n,o){return t===e?!0:t==null||e==null||!Qu(t)&&!Qu(e)?t!==t&&e!==e:gx(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 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 Nx=process.env.NODE_ENV==="production",Oa="Invariant failed";function oe(t,e){if(!t){if(Nx)throw new Error(Oa);var r=typeof e=="function"?e():e,n=r?"".concat(Oa,": ").concat(r):Oa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var mt="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> ',Px="Node cannot be dropped into target parent",kx="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.
|
|
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
|
+
* @license lucide-react v0.462.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
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 $o(...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 we(...t){return y.useCallback($o(...t),t)}var Th=Symbol.for("react.lazy"),io=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===Th&&"_payload"in t&&Nh(t._payload)}function jh(t){const e=Oh(t),r=y.forwardRef((n,o)=>{let{children:a,...i}=n;kc(a)&&typeof io=="function"&&(a=io(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 Ah=jh("Slot");function Oh(t){const e=y.forwardRef((r,n)=>{let{children:o,...a}=r;if(kc(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?$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 Ph=Symbol("radix.slottable");function kh(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ph}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=tt,_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"}}),Xe=y.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const i=n?Ah:"button";return p.jsx(i,{className:Se(Ih({variant:e,size:r,className:t})),ref:a,...o})});Xe.displayName="Button";function Dh(...t){return wc(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=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 Wt(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)===Vh}(t)||Array.isArray(t)||!!t[nn]||!!(!((e=t.constructor)===null||e===void 0)&&e[nn])||Bo(t)||Ho(t))}function Gt(t,e,r){r===void 0&&(r=!1),_t(t)===0?(r?Object.keys:rs)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function _t(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bo(t)?2:Ho(t)?3:0}function sn(t,e){return _t(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function eo(t,e){return _t(t)===2?t.get(e):t[e]}function Rc(t,e,r){var n=_t(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 Bo(t){return Fh&&t instanceof Map}function Ho(t){return qh&&t instanceof Set}function xe(t){return t.o||t.t}function Ji(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Wh(t);delete e[Q];for(var r=rs(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 Zi(t,e){return e===void 0&&(e=!1),Qi(t)||Wt(t)||!rt(t)||(_t(t)>1&&(t.set=t.add=t.clear=t.delete=Lh),Object.freeze(t),e&&Gt(t,function(r,n){return Zi(n,!0)},!0)),t}function Lh(){ce(2)}function Qi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Je(t){var e=Wa[t];return e||ce(18,t),e}function Ic(t,e){Wa[t]||(Wa[t]=e)}function so(){return process.env.NODE_ENV==="production"||xr||ce(0),xr}function Ea(t,e){e&&(Je("Patches"),t.u=[],t.s=[],t.v=e)}function uo(t){Va(t),t.p.forEach($h),t.p=null}function Va(t){t===xr&&(xr=t.l)}function wu(t){return xr={p:[],l:xr,h:t,m:!0,_:0}}function $h(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Ta(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&&(uo(e),ce(4)),rt(t)&&(t=lo(e,t),e.l||co(e,t)),e.u&&Je("Patches").M(r[Q].t,t,e.u,e.s)):t=lo(e,r,[]),uo(e),e.u&&e.v(e.u,e.s),t!==ts?t:void 0}function lo(t,e,r){if(Qi(e))return e;var n=e[Q];if(!n)return Gt(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=Ji(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Gt(a,function(s,u){return Su(t,n,o,s,u,r,i)}),co(t,o,!1),r&&t.u&&Je("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&&ce(5),Wt(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),!Wt(s))return;t.m=!1}else i&&r.add(o);if(rt(o)&&!Qi(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&&Zi(e,r)}function Na(t,e){var r=t[Q];return(r?xe(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 pt(t){t.P||(t.P=!0,t.l&&pt(t.l))}function ja(t){t.o||(t.o=Ji(t.t))}function un(t,e,r){var n=Bo(e)?Je("MapSet").F(e,r):Ho(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: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=Qr);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:so()).p.push(n),n}function Bh(t){return Wt(t)||ce(22,t),function e(r){if(!rt(r))return r;var n,o=r[Q],a=_t(r);if(o){if(!o.P&&(o.i<4||!Je("ES5").K(o)))return o.t;o.I=!0,n=Eu(r,a),o.I=!1}else n=Eu(r,a);return Gt(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 Ji(t)}function Hh(){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(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,nn)&&(o[nn]=n[nn]),o}function e(n){return Wt(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=_t(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=eo(u,h))!="object"&&ce(15,i.join("/"))}var f=_t(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:ce(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: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;Gt(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 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(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===ts?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=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&&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: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 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),pt(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),pt(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),pt(l),l.R=new Map,Gt(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=un(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={})[$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[Q]={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 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),pt(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),pt(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),pt(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[$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 Tu,xr,es=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Fh=typeof Map<"u",qh=typeof Set<"u",Nu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ts=es?Symbol.for("immer-nothing"):((Tu={})["immer-nothing"]=!0,Tu),nn=es?Symbol.for("immer-draftable"):"__$immer_draftable",Q=es?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,rs=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 rs(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Wa={},Ga={get:function(t,e){if(e===Q)return t;var r=xe(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||!rt(n)?n:n===Na(t.t,e)?(ja(t),t.o[e]=un(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=Cu(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(Mh(r,o)&&(r!==void 0||sn(t.t,e)))return!0;ja(t),pt(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,ja(t),pt(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)}},Qr={};Gt(Ga,function(t,e){Qr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Qr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ce(13),Qr.set.call(this,t,e,void 0)},Qr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ce(14),Ga.set.call(this,t[0],e,r,t[0])};var Gh=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(g){var m=this;g===void 0&&(g=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(g,function(E){var j;return(j=a).call.apply(j,[m,E].concat(x))})}}var l;if(typeof a!="function"&&ce(6),i!==void 0&&typeof i!="function"&&ce(7),rt(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),Ta(g,c)},function(g){throw uo(c),g}):(Ea(c,i),Ta(l,c))}if(!o||typeof o!="object"){if((l=a(o))===void 0&&(l=o),l===ts&&(l=void 0),n.D&&Zi(l,!0),i){var d=[],b=[];Je("Patches").M(o,l,d,b),i(d,b)}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),Wt(r)&&(r=Bh(r));var n=wu(this),o=un(this,r,void 0);return o[Q].C=!0,Va(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 Ea(a,n),Ta(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 Wt(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},t}(),Pe=new Gh,Yh=Pe.produce,ju=Pe.produceWithPatches.bind(Pe);Pe.setAutoFreeze.bind(Pe);Pe.setUseProxies.bind(Pe);var Au=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 zo(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 Fo=em,tm=Fo,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=Fo;function sm(t){var e=this.__data__,r=im(e,t);return r<0?void 0:e[r][1]}var um=sm,lm=Fo;function cm(t){return lm(this.__data__,t)>-1}var dm=cm,fm=Fo;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 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=mm;Rr.prototype.delete=bm;Rr.prototype.get=gm;Rr.prototype.has=vm;Rr.prototype.set=ym;var qo=Rr,xm=qo;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 Tm(t){return this.__data__.get(t)}var Nm=Tm;function jm(t){return this.__data__.has(t)}var Am=jm,Om=typeof F=="object"&&F&&F.Object===Object&&F,Mc=Om,Pm=Mc,km=typeof self=="object"&&self&&self.Object===Object&&self,_m=Pm||km||Function("return this")(),ot=_m,Rm=ot,Im=Rm.Symbol,Uo=Im,Ou=Uo,Lc=Object.prototype,Dm=Lc.hasOwnProperty,Mm=Lc.toString,Xr=Ou?Ou.toStringTag:void 0;function Lm(t){var e=Dm.call(t,Xr),r=t[Xr];try{t[Xr]=void 0;var n=!0}catch{}var o=Mm.call(t);return n&&(e?t[Xr]=r:delete t[Xr]),o}var $m=Lm,Bm=Object.prototype,Hm=Bm.toString;function zm(t){return Hm.call(t)}var Fm=zm,Pu=Uo,qm=$m,Um=Fm,Vm="[object Null]",Wm="[object Undefined]",ku=Pu?Pu.toStringTag:void 0;function Gm(t){return t==null?t===void 0?Wm:Vm:ku&&ku in Object(t)?qm(t):Um(t)}var Vo=Gm;function Ym(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var $c=Ym,Xm=Vo,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 ns=tb;const rb=zo(ns);var nb=ot,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=ns,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 Tb=Eb,Nb=Cb,jb=Tb;function Ab(t,e){var r=jb(t,e);return Nb(r)?r:void 0}var Zt=Ab,Ob=Zt,Pb=ot,kb=Ob(Pb,"Map"),os=kb,_b=Zt,Rb=_b(Object,"create"),Wo=Rb,Ru=Wo;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=Wo,Bb="__lodash_hash_undefined__",Hb=Object.prototype,zb=Hb.hasOwnProperty;function Fb(t){var e=this.__data__;if($b){var r=e[t];return r===Bb?void 0:r}return zb.call(e,t)?e[t]:void 0}var qb=Fb,Ub=Wo,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=Wo,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 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=Qb;Ir.prototype.delete=eg;Ir.prototype.get=tg;Ir.prototype.has=rg;Ir.prototype.set=ng;var og=Ir,Iu=og,ag=qo,ig=os;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 Go=fg,pg=Go;function hg(t){var e=pg(this,t).delete(t);return this.size-=e?1:0,e}var mg=hg,bg=Go;function gg(t){return bg(this,t).get(t)}var vg=gg,yg=Go;function xg(t){return yg(this,t).has(t)}var wg=xg,Sg=Go;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,Tg=ug,Ng=mg,jg=vg,Ag=wg,Og=Eg;function Dr(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])}}Dr.prototype.clear=Tg;Dr.prototype.delete=Ng;Dr.prototype.get=jg;Dr.prototype.has=Ag;Dr.prototype.set=Og;var Hc=Dr,Pg=qo,kg=os,_g=Hc,Rg=200;function Ig(t,e){var r=this.__data__;if(r instanceof Pg){var n=r.__data__;if(!kg||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=qo,Lg=Sm,$g=Em,Bg=Nm,Hg=Am,zg=Dg;function Mr(t){var e=this.__data__=new Mg(t);this.size=e.size}Mr.prototype.clear=Lg;Mr.prototype.delete=$g;Mr.prototype.get=Bg;Mr.prototype.has=Hg;Mr.prototype.set=zg;var Fg=Mr,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=Hc,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 zc=s1,u1=ot,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=Uo,Mu=c1,m1=Dc,b1=zc,g1=f1,v1=h1,y1=1,x1=2,w1="[object Boolean]",S1="[object Date]",C1="[object Error]",E1="[object Map]",T1="[object Number]",N1="[object RegExp]",j1="[object Set]",A1="[object String]",O1="[object Symbol]",P1="[object ArrayBuffer]",k1="[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 k1:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P1:return!(t.byteLength!=e.byteLength||!a(new Mu(t),new Mu(e)));case w1:case S1:case T1:return m1(+t,+e);case C1:return t.name==e.name&&t.message==e.message;case N1: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,as=M1,L1=D1,$1=as;function B1(t,e,r){var n=e(t);return $1(t)?n:L1(n,r(t))}var H1=B1;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 F1=z1;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 Yo=Q1,ev=Vo,tv=Yo,rv="[object Arguments]";function nv(t){return tv(t)&&ev(t)==rv}var ov=nv,Bu=ov,av=Yo,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=ot,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=Vo,yv=Uc,xv=Yo,wv="[object Arguments]",Sv="[object Array]",Cv="[object Boolean]",Ev="[object Date]",Tv="[object Error]",Nv="[object Function]",jv="[object Map]",Av="[object Number]",Ov="[object Object]",Pv="[object RegExp]",kv="[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]",Hv="[object Int32Array]",zv="[object Uint8Array]",Fv="[object Uint8ClampedArray]",qv="[object Uint16Array]",Uv="[object Uint32Array]",ie={};ie[Mv]=ie[Lv]=ie[$v]=ie[Bv]=ie[Hv]=ie[zv]=ie[Fv]=ie[qv]=ie[Uv]=!0;ie[wv]=ie[Sv]=ie[Iv]=ie[Cv]=ie[Dv]=ie[Ev]=ie[Tv]=ie[Nv]=ie[jv]=ie[Av]=ie[Ov]=ie[Pv]=ie[kv]=ie[_v]=ie[Rv]=!1;function Vv(t){return xv(t)&&yv(t.length)&&!!ie[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 is=ho.exports,Xv=Wv,Kv=Yv,Hu=is,zu=Hu&&Hu.isTypedArray,Jv=zu?Kv(zu):Xv,Vc=Jv,Zv=Z1,Qv=lv,ey=as,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=ns,Cy=Uc;function Ey(t){return t!=null&&Cy(t.length)&&!Sy(t)}var Ty=Ey,Ny=sy,jy=wy,Ay=Ty;function Oy(t){return Ay(t)?Ny(t):jy(t)}var Py=Oy,ky=H1,_y=K1,Ry=Py;function Iy(t){return ky(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 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)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var E=t.constructor,j=e.constructor;E!=j&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof j=="function"&&j instanceof j)&&(g=!1)}return a.delete(t),a.delete(e),g}var Hy=By,zy=Zt,Fy=ot,qy=zy(Fy,"DataView"),Uy=qy,Vy=Zt,Wy=ot,Gy=Vy(Wy,"Promise"),Yy=Gy,Xy=Zt,Ky=ot,Jy=Xy(Ky,"Set"),Zy=Jy,Qy=Zt,ex=ot,tx=Qy(ex,"WeakMap"),rx=tx,Ya=Uy,Xa=os,Ka=Yy,Ja=Zy,Za=rx,Wc=Vo,Lr=Bc,qu="[object Map]",nx="[object Object]",Uu="[object Promise]",Vu="[object Set]",Wu="[object WeakMap]",Gu="[object DataView]",ox=Lr(Ya),ax=Lr(Xa),ix=Lr(Ka),sx=Lr(Ja),ux=Lr(Za),Ut=Wc;(Ya&&Ut(new Ya(new ArrayBuffer(1)))!=Gu||Xa&&Ut(new Xa)!=qu||Ka&&Ut(Ka.resolve())!=Uu||Ja&&Ut(new Ja)!=Vu||Za&&Ut(new Za)!=Wu)&&(Ut=function(t){var e=Wc(t),r=e==nx?t.constructor:void 0,n=r?Lr(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=Ut,Pa=Fg,cx=zc,dx=R1,fx=Hy,Yu=lx,Xu=as,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 Pa),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 Pa),o(g,m,r,n,a)}}return f?(a||(a=new Pa),fx(t,e,r,n,o,a)):!1}var gx=bx,vx=gx,el=Yo;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=zo(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 Tx=zo(Ex);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 jx=process.env.NODE_ENV==="production",ka="Invariant failed";function oe(t,e){if(!t){if(jx)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",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",Px='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",_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.
|
|
217
222
|
|
|
218
|
-
More info: https://craft.js.org/r/docs/api/editor#props`,
|
|
223
|
+
More info: https://craft.js.org/r/docs/api/editor#props`,Hx=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
219
224
|
|
|
220
225
|
Available components in resolver: %availableComponents%
|
|
221
226
|
|
|
222
|
-
More info: https://craft.js.org/r/docs/api/editor#props`,
|
|
227
|
+
More info: https://craft.js.org/r/docs/api/editor#props`,zx=`You can only use useEditor in the context of <Editor />.
|
|
223
228
|
|
|
224
|
-
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 />.
|
|
225
230
|
|
|
226
|
-
Please only use useNode in components that are children of the <Editor /> component.`;function
|
|
227
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
228
|
-
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(Ce(a),Ce(e)),inversePatches:[].concat(Ce(r),Ce(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(Ce(n.patches),Ce(e)),inversePatches:[].concat(Ce(r),Ce(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,E){var j,k=r&&nl(r,function(){return S},a),_=Xc(Nu(S,function(C){var N,P;switch(E.type){case fe.UNDO:return a.undo(C);case fe.REDO:return a.redo(C);case fe.CLEAR:return a.clear(),_e({},C);case fe.IGNORE:case fe.MERGE:case fe.THROTTLE:var I,T=Kc(P=E.payload)||Jc(P)||as(P)||Zc(),O=T[0],A=T.slice(1);(I=o(C,k))[O].apply(I,Ce(A));break;default:(N=o(C,k))[E.type].apply(N,Ce(E.payload))}}),3),D=_[0],L=_[1],$=_[2];return j=D,x&&x(D,S,{type:E.type,params:E.payload,patches:L},k,function(C){var N=Nu(D,C);j=N[0],L=[].concat(Ce(L),Ce(N[1])),$=[].concat(Ce(N[2]),Ce($))}),[fe.UNDO,fe.REDO].includes(E.type)&&m&&(j=Gh(j,m)),[].concat(Ce(v),[fe.UNDO,fe.REDO,fe.IGNORE,fe.CLEAR]).includes(E.type)||(E.type===fe.THROTTLE?a.throttleAdd(L,$,E.config&&E.config.rate):E.type===fe.MERGE?a.merge(L,$):a.add(L,$)),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 b=w.useMemo(function(){return r?nl(r,function(){return l.current},a):[]},[a,r]),g=w.useMemo(function(){var m=Object.keys(o(null,null)),v=i.current;return _e(_e({},m.reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),k=0;k<E;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 _e({},m.filter(function(S){return!v.includes(S)}).reduce(function(S,E){return S[E]=function(){for(var j=arguments.length,k=new Array(j),_=0;_<j;_++)k[_]=arguments[_];return d({type:fe.THROTTLE,payload:[E].concat(k),config:{rate:x}})},S},{}))},ignore:function(){return _e({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),k=0;k<E;k++)j[k]=arguments[k];return d({type:fe.IGNORE,payload:[S].concat(j)})},x},{}))},merge:function(){return _e({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),k=0;k<E;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:g,query:b,history:a}},[g,b,f,h,a])}function nl(t,e,r){var n=Object.keys(t()).reduce(function(o,a){return _e(_e({},o),{},ve({},a,function(){var i;return(i=t(e()))[a].apply(i,arguments)}))},{});return _e(_e({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}Hh(),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 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 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 Tx(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 _e(_e({},i),{},ve({},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}(),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&&Ja(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=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 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(){Za(br(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?Mi.createPortal(n,r.ownerDocument.body):n};var _t=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=Zt;(function(){try{var t=t2(Object,"defineProperty");return t({},"",{}),t}catch{}})();var mo={exports:{}};mo.exports;(function(t,e){var r=rt,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=qo,il=al?al.prototype:void 0;il&&il.valueOf;var sl=os;sl&&sl.isMap;var ul=os;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){ge(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 ei(t){return ei=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},ei(t)}function Yo(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 Xo(t,e,r){return e&&r2(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ge(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 is(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&&ti(t,e)}function bo(t){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bo(t)}function ti(t,e){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ti(t,e)}function ss(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 us(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=bo(t);if(e){var o=bo(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.
|
|
229
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
230
|
-
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 ri(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)?ri(t,e):void 0}}function ri(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 ls=w.createContext(null);var ld=w.createContext(null),cd=function(){return w.useContext(ld)};function Qt(t){var e=cd(),r=w.useContext(ls);oe(r,Hx);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 Ko(t){var e=w.useContext(od);oe(e,zx);var r=e.id,n=e.related,o=Qt(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),a=o.actions,i=o.connectors,s=ss(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=Ko(t),r=e.id,n=e.related,o=e.actions,a=e.inNodeContext,i=e.connectors;return se(se({},ss(e,o2)),{},{actions:o,id:r,related:n,setProp:function(s,u){return _t("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}=Ko(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(cs,{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}=Ko(n=>({hidden:n.data.hidden})),{onRender:r}=Qt(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(i2,null)})},cs=({id:t,render:e})=>w.createElement(ad,{id:t},w.createElement(s2,{render:e})),ni={is:"div",canvas:!1,custom:{},hidden:!1},u2={is:"type",canvas:"isCanvas"};function bt({id:t,children:e,...r}){const{is:n}={...ni,...r},{query:o,actions:a}=Qt(),{id:i,inNodeContext:s}=Ko(),[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(bt,r,e),f=o.parseReactElement(h).toNodeTree();return a.history.ignore().addLinkedNodeFromTree(f,i,t),f.rootNodeId}return null});return u?w.createElement(cs,{id:u}):null}const dd=()=>_t("<Canvas />",{suggest:"<Element canvas={true} />"});function oi({...t}){return w.useEffect(()=>dd(),[]),w.createElement(bt,{...t,canvas:!0})}const l2=()=>{const{timestamp:t}=Qt(e=>({timestamp:e.nodes[mt]&&e.nodes[mt]._hydrationTimestamp}));return t?w.createElement(cs,{id:mt,key:t}):null},fd=({children:t,json:e,data:r})=>{const{actions:n,query:o}=Qt();e&&_t("<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=mt),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 ka=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:a,...i}=t;return i};function Lt(t){const{connectors:e,actions:r,query:n,store:o,...a}=Qt(t),i=ka(r);return{connectors:e,actions:w.useMemo(()=>({...i,history:{...i.history,ignore:(...s)=>ka(i.history.ignore(...s)),throttle:(...s)=>ka(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=id(r,2),o=n[0],a=n[1];return se(se({},e),{},ge({},o,a))},{})},ft=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]}:ei(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,go=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:go(e,t)},ai=(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:ai(u,e)):typeof s.type=="function"?ai(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{...ai({type:r,isCanvas:o,props:n},e),...i}};function ii(t,e){oe(typeof e=="string",Mx);var r=t.nodes[e],n=function(o){return ii(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===mt},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 _t("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(ii(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=ft(t.nodes,o),s=r;try{oe(this.isCanvas(),Rx),oe(s.rules.canMoveIn(i.map(function(l){return l.node}),s,n),kx);var u={};return i.forEach(function(l){var c=l.node,h=l.exists;if(oe(c.rules.canDrop(s,c,n),Px),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 _t("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 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===bt||n.data.type===oi){var o=se(se({},ni),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys(ni).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===oi&&(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 si=(t,e,r)=>{let{type:n,props:o}=t;const a=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?oi: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?si(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:si(c,e)):l,s},{});const i={...w.createElement(a,{...o})};return{...i,name:go(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}=si(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 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,...un(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 ft(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=>ii(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)),dl({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=go(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&&_t("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=mt);const i=go(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){_t(`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 b2=function(t){is(r,td);var e=us(r);function r(){return Yo(this,r),e.apply(this,arguments)}return Xo(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){is(r,Xx);var e=us(r);function r(){return Yo(this,r),e.apply(this,arguments)}return Xo(r)})();var fl=function(t){t.preventDefault()},ui=function(){function t(e,r){Yo(this,t),ge(this,"store",void 0),ge(this,"dragTarget",void 0),ge(this,"currentDropTargetId",void 0),ge(this,"currentDropTargetCanvasAncestorId",void 0),ge(this,"currentIndicator",null),ge(this,"currentTargetId",void 0),ge(this,"currentTargetChildDimensions",void 0),ge(this,"dragError",void 0),ge(this,"draggedNodes",void 0),ge(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 Xo(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(mt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return ft(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=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:se(se({},a),{},{currentNode:u}),error:i},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();ge(ui,"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},bd=function(t){is(r,b2);var e=us(r);function r(){var n;Yo(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return ge(Qr(n=e.call.apply(e,[this].concat(a))),"draggedElementShadow",void 0),ge(Qr(n),"dragTarget",void 0),ge(Qr(n),"positioner",null),ge(Qr(n),"currentSelectedElementIds",[]),n}return Xo(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=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 b=f.map(function(g){return c.node(g).get().dom});n.draggedElementShadow=pl(l,b,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new ui(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 ui(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&&tb(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 g2(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")}}ge(bd,"forceSingleDragShadow",e2()&&Qx());const v2=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=Qt(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:{...g2(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(ls),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 bd({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,b){var g=s.nodes[d];typeof g.data.type!="string"&&oe(r.options.resolver[g.data.name],ho.replace("%node_type%","".concat(g.data.type.name))),r.nodes[d]=se(se({},g),{},{data:se(se({},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!==mt){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,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)&&(_t("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:ge({},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){ft(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=mt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(pd(l))},move:function(s,u,l){var c=ft(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(E){throw new Error(E)}),r.options.onBeforeMoveEnd(g,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+b,0,m),r.nodes[m].data.parent=u}),f.forEach(function(d){var b=d.length;ln(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=ft(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){ft(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){ft(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=ft(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=ss(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}},md,e),li=({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(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(ls.Provider,{value:n},y.createElement(y2,null,t)):null},gd=w.createContext("desktop"),ds=({value:t,children:e})=>p.jsx(gd.Provider,{value:t,children:e}),er=()=>w.useContext(gd),Re=["mobile","tablet","small","desktop"],ht=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Re.indexOf(e);for(let o=n;o<Re.length;o++){const a=Re[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}for(let o=n-1;o>=0;o--){const a=Re[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,...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,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(N2);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?Lo(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 N2(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===T2}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 P2(t,e){t&&pc.flushSync(()=>t.dispatchEvent(e))}function Ie(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 k2(t,e=globalThis==null?void 0:globalThis.document){const r=Ie(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",ci="dismissableLayer.update",R2="dismissableLayer.pointerDownOutside",I2="dismissableLayer.focusOutside",ml,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=we(e,_=>h(_)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),x=c?g.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=v,j=L2(_=>{const D=_.target,L=[...l.branches].some($=>$.contains(D));!E||L||(o==null||o(_),i==null||i(_),_.defaultPrevented||s==null||s())},f),k=$2(_=>{const D=_.target;[...l.branches].some($=>$.contains(D))||(a==null||a(_),i==null||i(_),_.defaultPrevented||s==null||s())},f);return k2(_=>{x===l.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&s&&(_.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),bl(),()=>{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),bl())},[c,l]),y.useEffect(()=>{const _=()=>d({});return document.addEventListener(ci,_),()=>document.removeEventListener(ci,_)},[]),p.jsx(me.div,{...u,ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...t.style},onFocusCapture:ue(t.onFocusCapture,k.onFocusCapture),onBlurCapture:ue(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ue(t.onPointerDownCapture,j.onPointerDownCapture)})});yd.displayName=_2;var D2="DismissableLayerBranch",M2=y.forwardRef((t,e)=>{const r=y.useContext(vd),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=Ie(t),n=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){xd(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=Ie(t),n=y.useRef(!1);return y.useEffect(()=>{const o=a=>{a.target&&!n.current&&xd(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 bl(){const t=new CustomEvent(ci);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 Rt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},B2=y[" useId ".trim().toString()]||(()=>{}),H2=0;function wd(t){const[e,r]=y.useState(B2());return Rt(()=>{r(n=>n??String(H2++))},[t]),e?`radix-${e}`:""}const z2=["top","right","bottom","left"],It=Math.min,Ae=Math.max,vo=Math.round,Hn=Math.floor,Ke=t=>({x:t,y:t}),F2={left:"right",right:"left",bottom:"top",top:"bottom"},q2={start:"end",end:"start"};function di(t,e,r){return Ae(t,It(e,r))}function vt(t,e){return typeof t=="function"?t(e):t}function yt(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function fs(t){return t==="x"?"y":"x"}function ps(t){return t==="y"?"height":"width"}const U2=new Set(["top","bottom"]);function Ye(t){return U2.has(yt(t))?"y":"x"}function hs(t){return fs(Ye(t))}function V2(t,e,r){r===void 0&&(r=!1);const n=Br(t),o=hs(t),a=ps(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[fi(t),e,fi(e)]}function fi(t){return t.replace(/start|end/g,e=>q2[e])}const gl=["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:gl:e?gl:vl;case"left":case"right":return e?G2:Y2;default:return[]}}function K2(t,e,r,n){const o=Br(t);let a=X2(yt(t),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),e&&(a=a.concat(a.map(fi)))),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 Sd(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=Ye(e),i=hs(e),s=ps(i),u=yt(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={},b=0;for(let g=0;g<s.length;g++){const{name:m,fn:v}=s[g],{x,y:S,data:E,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],...E}},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}=yl(l,f,u)),g=-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}=vt(e,t),b=Sd(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)),E=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+b.top)/E.y,bottom:(j.bottom-v.bottom+b.bottom)/E.y,left:(v.left-j.left+b.left)/E.x,right:(j.right-v.right+b.right)/E.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}=vt(t,e)||{};if(l==null)return{};const h=Sd(c),f={x:r,y:n},d=hs(o),b=ps(d),g=await i.getDimensions(l),m=d==="y",v=m?"top":"left",x=m?"bottom":"right",S=m?"clientHeight":"clientWidth",E=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[S]:0;(!_||!await(i.isElement==null?void 0:i.isElement(k)))&&(_=s.floating[S]||a.floating[b]);const D=E/2-j/2,L=_/2-g[b]/2-1,$=It(h[v],L),C=It(h[x],L),N=$,P=_-g[b]-C,I=_/2-g[b]/2+D,T=di(N,I,P),O=!u.arrow&&Br(o)!=null&&I!==T&&a.reference[b]/2-(I<N?$:C)-g[b]/2<0,A=O?I<N?I-N:I-P:0;return{[d]:f[d]+A,data:{[d]:T,centerOffset:I-T-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:b="none",flipAlignment:g=!0,...m}=vt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=yt(o),x=Ye(s),S=yt(s)===s,E=await(u.isRTL==null?void 0:u.isRTL(l.floating)),j=f||(S||!g?[yo(s)]:W2(s)),k=b!=="none";!f&&k&&j.push(...K2(s,g,b,E));const _=[s,...j],D=await cn(e,m),L=[];let $=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&L.push(D[v]),h){const I=V2(o,i,E);L.push(D[I[0]],D[I[1]])}if($=[...$,{placement:o,overflows:L}],!L.every(I=>I<=0)){var C,N;const I=(((C=a.flip)==null?void 0:C.index)||0)+1,T=_[I];if(T&&(!(h==="alignment"?x!==Ye(T):!1)||$.every(R=>Ye(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:T}};let O=(N=$.filter(A=>A.overflows[0]<=0).sort((A,R)=>A.overflows[1]-R.overflows[1])[0])==null?void 0:N.placement;if(!O)switch(d){case"bestFit":{var P;const A=(P=$.filter(R=>{if(k){const M=Ye(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 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 z2.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}=vt(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{}}}}},Cd=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=yt(r),s=Br(r),u=Ye(r)==="y",l=Cd.has(i)?-1:1,c=a&&u?-1:1,h=vt(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 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}=vt(t,e),l={x:r,y:n},c=await cn(e,u),h=Ye(yt(o)),f=fs(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],S=d-c[v];d=di(x,d,S)}if(i){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",x=b+c[m],S=b-c[v];b=di(x,b,S)}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}}}}}},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}=vt(t,e),c={x:r,y:n},h=Ye(o),f=fs(h);let d=c[f],b=c[h];const g=vt(s,e),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const S=f==="y"?"height":"width",E=a.reference[f]-a.floating[S]+m.mainAxis,j=a.reference[f]+a.reference[S]-m.mainAxis;d<E?d=E:d>j&&(d=j)}if(l){var v,x;const S=f==="y"?"width":"height",E=Cd.has(yt(o)),j=a.reference[h]-a.floating[S]+(E&&((v=i.offset)==null?void 0:v[h])||0)+(E?0:m.crossAxis),k=a.reference[h]+a.reference[S]+(E?0:((x=i.offset)==null?void 0:x[h])||0)-(E?m.crossAxis:0);b<j?b=j:b>k&&(b=k)}return{[f]:d,[h]:b}}}},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}=vt(t,e),c=await cn(e,l),h=yt(o),f=Br(o),d=Ye(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,S=b-c.left-c.right,E=It(g-c[m],x),j=It(b-c[v],S),k=!e.middlewareData.shift;let _=E,D=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=x),k&&!f){const $=Ae(c.left,0),C=Ae(c.right,0),N=Ae(c.top,0),P=Ae(c.bottom,0);d?D=b-2*($!==0||C!==0?$+C:Ae(c.left,c.right)):_=g-2*(N!==0||P!==0?N+P:Ae(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 Jo(){return typeof window<"u"}function Hr(t){return Ed(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function nt(t){var e;return(e=(Ed(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ed(t){return Jo()?t instanceof Node||t instanceof Oe(t).Node:!1}function Fe(t){return Jo()?t instanceof Element||t instanceof Oe(t).Element:!1}function tt(t){return Jo()?t instanceof HTMLElement||t instanceof Oe(t).HTMLElement:!1}function Sl(t){return!Jo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot}const sw=new Set(["inline","contents"]);function En(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=qe(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(Hr(t))}const cw=[":popover-open",":modal"];function Zo(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 ms(t){const e=bs(),r=Fe(t)?qe(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=Dt(t);for(;tt(e)&&!wr(e);){if(ms(e))return e;if(Zo(e))return null;e=Dt(e)}return null}function bs(){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(Hr(t))}function qe(t){return Oe(t).getComputedStyle(t)}function Qo(t){return Fe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Dt(t){if(Hr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Sl(t)&&t.host||nt(t);return Sl(e)?e.host:e}function Td(t){const e=Dt(t);return wr(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&En(e)?e:Td(e)}function dn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Td(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),i=Oe(o);if(a){const s=pi(i);return e.concat(i,i.visualViewport||[],En(o)?o:[],s&&r?dn(s):[])}return e.concat(o,dn(o,[],r))}function pi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Nd(t){const e=qe(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=tt(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 gs(t){return Fe(t)?t:t.contextElement}function gr(t){const e=gs(t);if(!tt(e))return Ke(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 bw=Ke(0);function jd(t){const e=Oe(t);return!bs()||!e.visualViewport?bw:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function gw(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Oe(t)?!1:e}function Yt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=gs(t);let i=Ke(1);e&&(n?Fe(n)&&(i=gr(n)):i=gr(t));const s=gw(a,r,n)?jd(a):Ke(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=Oe(a),d=n&&Fe(n)?Oe(n):n;let b=f,g=pi(b);for(;g&&n&&d!==b;){const m=gr(g),v=g.getBoundingClientRect(),x=qe(g),S=v.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,E=v.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,h*=m.y,u+=S,l+=E,b=Oe(g),g=pi(b)}}return xo({width:c,height:h,x:u,y:l})}function ea(t,e){const r=Qo(t).scrollLeft;return e?e.left+r:Yt(nt(t)).left+r}function Ad(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-ea(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=nt(n),s=e?Zo(e.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=Ke(1);const c=Ke(0),h=tt(n);if((h||!h&&!a)&&((Hr(n)!=="body"||En(i))&&(u=Qo(n)),tt(n))){const d=Yt(n);l=gr(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!a?Ad(i,u):Ke(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=nt(t),r=Qo(t),n=t.ownerDocument.body,o=Ae(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ae(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+ea(t);const s=-r.scrollTop;return qe(n).direction==="rtl"&&(i+=Ae(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Cl=25;function ww(t,e){const r=Oe(t),n=nt(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=bs();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=ea(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<=Cl&&(a-=b)}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=Yt(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=tt(t)?gr(t):Ke(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(nt(t));else if(Fe(e))n=Cw(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 xo(n)}function Od(t,e){const r=Dt(t);return r===e||!Fe(r)||wr(r)?!1:qe(r).position==="fixed"||Od(r,e)}function Ew(t,e){const r=e.get(t);if(r)return r;let n=dn(t,[],!1).filter(s=>Fe(s)&&Hr(s)!=="body"),o=null;const a=qe(t).position==="fixed";let i=a?Dt(t):t;for(;Fe(i)&&!wr(i);){const s=qe(i),u=ms(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&Sw.has(o.position)||En(i)&&!u&&Od(t,i))?n=n.filter(c=>c!==i):o=s,i=Dt(i)}return e.set(t,n),n}function Tw(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?Zo(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=Ae(h.top,l.top),l.right=It(h.right,l.right),l.bottom=It(h.bottom,l.bottom),l.left=Ae(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 Nw(t){const{width:e,height:r}=Nd(t);return{width:e,height:r}}function jw(t,e,r){const n=tt(e),o=nt(e),a=r==="fixed",i=Yt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=Ke(0);function l(){u.x=ea(o)}if(n||!n&&!a)if((Hr(e)!=="body"||En(o))&&(s=Qo(e)),n){const d=Yt(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):Ke(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 _a(t){return qe(t).position==="static"}function Tl(t,e){if(!tt(t)||qe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return nt(t)===r&&(r=r.ownerDocument.body),r}function Pd(t,e){const r=Oe(t);if(Zo(t))return r;if(!tt(t)){let o=Dt(t);for(;o&&!wr(o);){if(Fe(o)&&!_a(o))return o;o=Dt(o)}return r}let n=Tl(t,e);for(;n&&lw(n)&&_a(n);)n=Tl(n,e);return n&&wr(n)&&_a(n)&&!ms(n)?r:n||hw(t)||r}const Aw=async function(t){const e=this.getOffsetParent||Pd,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 qe(t).direction==="rtl"}const Pw={convertOffsetParentRelativeRectToViewportRelativeRect:vw,getDocumentElement:nt,getClippingRect:Tw,getOffsetParent:Pd,getElementRects:Aw,getClientRects:yw,getDimensions:Nw,getScale:gr,isElement:Fe,isRTL:Ow};function kd(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function kw(t,e){let r=null,n;const o=nt(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),S={rootMargin:-b+"px "+-g+"px "+-m+"px "+-v+"px",threshold:Ae(0,It(1,u))||1};let E=!0;function j(k){const _=k[0].intersectionRatio;if(_!==u){if(!E)return i();_?i(!1,_):n=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!kd(l,t.getBoundingClientRect())&&i(),E=!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=gs(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?kw(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 b,g=u?Yt(t):null;u&&m();function m(){const v=Yt(t);g&&!kd(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 Rw=nw,Iw=ow,Dw=ew,Mw=iw,Lw=tw,Nl=Q2,$w=aw,Bw=(t,e,r)=>{const n=new Map,o={platform:Pw,...r},a={...o.platform,_c:n};return Z2(t,e,{...o,platform:a})};var Hw=typeof document<"u",zw=function(){},eo=Hw?w.useLayoutEffect:zw;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 _d(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function jl(t,e){const r=_d(t);return Math.round(e*r)/r}function Ra(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[b,g]=y.useState(null),[m,v]=y.useState(null),x=y.useCallback(R=>{R!==k.current&&(k.current=R,g(R))},[]),S=y.useCallback(R=>{R!==_.current&&(_.current=R,v(R))},[]),E=a||b,j=i||m,k=y.useRef(null),_=y.useRef(null),D=y.useRef(c),L=u!=null,$=Ra(u),C=Ra(o),N=Ra(l),P=y.useCallback(()=>{if(!k.current||!_.current)return;const R={placement:e,strategy:r,middleware:f};C.current&&(R.platform=C.current),Bw(k.current,_.current,R).then(M=>{const q={...M,isPositioned:N.current!==!1};I.current&&!wo(D.current,q)&&(D.current=q,pc.flushSync(()=>{h(q)}))})},[f,e,r,C,N]);eo(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[l]);const I=y.useRef(!1);eo(()=>(I.current=!0,()=>{I.current=!1}),[]),eo(()=>{if(E&&(k.current=E),j&&(_.current=j),E&&j){if($.current)return $.current(E,j,P);P()}},[E,j,P,$,L]);const T=y.useMemo(()=>({reference:k,floating:_,setReference:x,setFloating:S}),[x,S]),O=y.useMemo(()=>({reference:E,floating:j}),[E,j]),A=y.useMemo(()=>{const R={position:r,left:0,top:0};if(!O.floating)return R;const M=jl(O.floating,c.x),q=jl(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:T,elements:O,floatingStyles:A}),[c,P,T,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?Nl({element:n.current,padding:o}).fn(r):{}:n?Nl({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",Rd=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"})})});Rd.displayName=Jw;var Zw=Rd;function Id(t){const[e,r]=y.useState(void 0);return Rt(()=>{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 vs="Popper",[Dd,Md]=tr(vs),[Qw,Ld]=Dd(vs),$d=t=>{const{__scopePopper:e,children:r}=t,[n,o]=y.useState(null);return p.jsx(Qw,{scope:e,anchor:n,onAnchorChange:o,children:r})};$d.displayName=vs;var Bd="PopperAnchor",Hd=y.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=Ld(Bd,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})});Hd.displayName=Bd;var ys="PopperContent",[e3,t3]=Dd(ys),zd=y.forwardRef((t,e)=>{var z,Ee,ye,be,Ve,it;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(ys,r),[v,x]=y.useState(null),S=we(e,We=>x(We)),[E,j]=y.useState(null),k=Id(E),_=(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},C=Array.isArray(l)?l:[l],N=C.length>0,P={padding:$,boundary:C.filter(n3),altBoundary:N},{refs:I,floatingStyles:T,placement:O,isPositioned:A,middlewareData:R}=Fw({strategy:"fixed",placement:L,whileElementsMounted:(...We)=>_w(...We,{animationFrame:d==="always"}),elements:{reference:m.anchor},middleware:[Uw({mainAxis:o+D,alignmentAxis:i}),u&&Vw({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Ww():void 0,...P}),u&&Gw({...P}),Yw({...P,apply:({elements:We,rects:Rn,availableWidth:ga,availableHeight:In})=>{const{width:va,height:Ur}=Rn.reference,ar=We.floating.style;ar.setProperty("--radix-popper-available-width",`${ga}px`),ar.setProperty("--radix-popper-available-height",`${In}px`),ar.setProperty("--radix-popper-anchor-width",`${va}px`),ar.setProperty("--radix-popper-anchor-height",`${Ur}px`)}}),E&&Kw({element:E,padding:s}),o3({arrowWidth:_,arrowHeight:D}),f&&Xw({strategy:"referenceHidden",...P})]}),[M,q]=Ud(O),de=Ie(b);Rt(()=>{A&&(de==null||de())},[A,de]);const Z=(z=R.arrow)==null?void 0:z.x,B=(Ee=R.arrow)==null?void 0:Ee.y,H=((ye=R.arrow)==null?void 0:ye.centerOffset)!==0,[he,X]=y.useState();return Rt(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:A?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(be=R.transformOrigin)==null?void 0:be.x,(Ve=R.transformOrigin)==null?void 0:Ve.y].join(" "),...((it=R.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(e3,{scope:r,placedSide:M,onArrowChange:j,arrowX:Z,arrowY:B,shouldHideArrow:H,children:p.jsx(me.div,{"data-side":M,"data-align":q,...g,ref:S,style:{...g.style,animation:A?void 0:"none"}})})})});zd.displayName=ys;var Fd="PopperArrow",r3={top:"bottom",right:"left",bottom:"top",left:"right"},qd=y.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,a=t3(Fd,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"}})})});qd.displayName=Fd;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]=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 a3=$d,i3=Hd,s3=zd,u3=qd;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=zn(n.current);a.current=s==="mounted"?l:"none"},[s]),Rt(()=>{const l=n.current,c=o.current;if(c!==t){const f=a.current,d=zn(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]),Rt(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const g=zn(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=zn(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 zn(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()]||Rt;function zr({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=b3(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 b3(t){return typeof t=="function"}var g3=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",Vd=y.forwardRef((t,e)=>p.jsx(me.span,{...t,ref:e,style:{...g3,...t.style}}));Vd.displayName=v3;var y3=Vd,[ta]=tr("Tooltip",[Md]),ra=Md(),Wd="TooltipProvider",x3=700,hi="tooltip.open",[w3,xs]=ta(Wd),Gd=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})};Gd.displayName=Wd;var fn="Tooltip",[S3,na]=ta(fn),Yd=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=t,u=xs(fn,t.__scopeTooltip),l=ra(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]=zr({prop:n,defaultProp:o??!1,onChange:_=>{_?(u.onOpen(),document.dispatchEvent(new CustomEvent(hi))):u.onClose(),a==null||a(_)},caller:fn}),S=y.useMemo(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),E=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(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():E()},[u.isOpenDelayedRef,k,E]),onTriggerLeave:y.useCallback(()=>{b?j():(window.clearTimeout(d.current),d.current=0)},[j,b]),onOpen:E,onClose:j,disableHoverableContent:b,children:r})})};Yd.displayName=fn;var mi="TooltipTrigger",Xd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=na(mi,r),a=xs(mi,r),i=ra(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)})})});Xd.displayName=mi;var C3="TooltipPortal",[pC,E3]=ta(C3,{forceMount:void 0}),Sr="TooltipContent",Kd=y.forwardRef((t,e)=>{const r=E3(Sr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=t,i=na(Sr,t.__scopeTooltip);return p.jsx(rr,{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=na(Sr,t.__scopeTooltip),n=xs(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((b,g)=>{const m=b.currentTarget,v={x:b.clientX,y:b.clientY},x=P3(v,m.getBoundingClientRect()),S=k3(v,x),E=_3(g.getBoundingClientRect()),j=I3([...S,...E]);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)),S=!R3(v,i);x?f():S&&(f(),l())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[u,c,i,l,f]),p.jsx(Jd,{...t,ref:a})}),[N3,j3]=ta(fn,{isInside:!1}),A3=p3("TooltipContent"),Jd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=t,u=na(Sr,r),l=ra(r),{onClose:c}=u;return y.useEffect(()=>(document.addEventListener(hi,c),()=>document.removeEventListener(hi,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(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(N3,{scope:r,isInside:!0,children:p.jsx(y3,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Kd.displayName=Sr;var Zd="TooltipArrow",O3=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=ra(r);return j3(Zd,r).isInside?null:p.jsx(u3,{...o,...n,ref:e})});O3.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 k3(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=Gd,L3=Yd,$3=Xd,Qd=Kd;const pn=M3,Cr=L3,Er=$3,Xt=y.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Qd,{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}));Xt.displayName=Qd.displayName;const vr={mobile:{icon:Wi,label:"Mobile"},tablet:{icon:Gi,label:"Tablet"},small:{icon:Vi,label:"Small Desktop"},desktop:{icon:Yi,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(Fi,{className:"h-3 w-3"}):p.jsx(qi,{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)||0),min:n,max:o,className:Qe("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=er(),[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=Re.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(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||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(Xt,{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:Re.map(g=>{const m=vr[g].icon,v=c[g],x=v===void 0?Re.find(S=>Re.indexOf(S)>Re.indexOf(g)&&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 ${g===s?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Xt,{side:"left",children:p.jsx("p",{children:vr[g].label})})]})}),p.jsx("input",{type:"number",value:v??"",placeholder:x?`${c[x]??i}`:"",onChange:S=>{const E=S.target.value===""?void 0:parseInt(S.target.value)||0;f(g,E)},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})]})]})},De=({label:t,values:e,onChange:r})=>{const[n,o]=w.useState(!0),a=(i,s)=>{r(n?{top:s,right:s,bottom:s,left:s}:{...e,[i]:s})};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:()=>o(!n),className:`text-xs px-2 py-0.5 rounded ${n?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:n?"Linked":"Individual"})]}),n?p.jsx("input",{type:"number",value:e.top,onChange:i=>a("top",parseInt(i.target.value)||0),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"grid grid-cols-4 gap-1",children:["top","right","bottom","left"].map(i=>p.jsxs("div",{className:"text-center",children:[p.jsx("input",{type:"number",value:e[i],onChange:s=>a(i,parseInt(s.target.value)||0),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"}),p.jsx("span",{className:"text-[10px] text-muted-foreground",children:i[0].toUpperCase()})]},i))})]})},J=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:a=""})=>p.jsxs("div",{className:Qe("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:Qe("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))})]}),Je=({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"})]})]}),gt=({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))})]}),Mt=({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"})]}),oa=({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=er(),[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=Re.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(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(Xt,{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:Re.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"})]})},ws=({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})=>{let m,v,x;try{const{connectors:P,events:I}=ne(T=>({events:T.events}));m=P.connect,v=P.drag,x=I.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}},E=S[r]||S.md,j=h==="auto"?E.px:h,k=f==="auto"?E.py:f,_=l==="auto"?E.fs:l,D=typeof d=="object"?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:`${d}px`,L=e==="outline"?"transparent":n,$=e==="outline"?n:o,C=e==="outline"?2:i,N=e==="outline"?n:a;return p.jsx("button",{ref:P=>P&&m&&v&&(m==null?void 0:m(v==null?void 0:v(P))),className:`cursor-move transition-all hover:opacity-90 ${x?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:L,color:$,borderWidth:`${C}px`,borderColor:N,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${_}px`,padding:`${k}px ${j}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:b==="none"?"none":b,opacity:g/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(Mt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(gt,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(gt,{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(gt,{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(Je,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(Je,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(oa,{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(Je,{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(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};ws.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{top:0,right:0,bottom:0,left:0},boxShadow:"none",opacity:100},related:{settings:B3}};const cr=({label:t,value:e,onChange:r,max:n=1e4})=>{const o=(e==null?void 0:e.type)||"custom",a=(e==null?void 0:e.value)||100,i=(e==null?void 0:e.unit)||"%",s=c=>{r(c==="none"?{type:"none"}:c==="auto"?{type:"auto"}:{type:"custom",value:a,unit:i})},u=c=>{r({type:"custom",value:c,unit:i})},l=c=>{r({type:"custom",value:a,unit:c})};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:o,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:s}),o==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(pe,{inputClassName:"w-full h-8 rounded-l-lg",value:a,onChange:u,max:n})}),p.jsx("div",{className:"",children:p.jsx(J,{selectClassName:" h-8",value:i,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:l})})]})]})},dr=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",Ss=t=>{const e=typeof t.padding=="object"?`${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`:`${t.padding}px`,r=typeof t.margin=="object"?`${t.margin.top}px ${t.margin.right}px ${t.margin.bottom}px ${t.margin.left}px`:`${t.margin}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:e,margin:r,width:dr(t.width),height:dr(t.height),minHeight:dr(t.minHeight),maxHeight:dr(t.maxHeight),minWidth:dr(t.minWidth),maxWidth:dr(t.maxWidth),display:t.display,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow}},Cs={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},width:{type:"none"},height:{type:"none"},minHeight:{type:"custom",value:50,unit:"px"},maxHeight:{type:"none"},minWidth:{type:"none"},maxWidth:{type:"none"},display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"solid",boxShadow:"none"},aa=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(gt,{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=a),max:1e4}),p.jsx(cr,{label:"Min Width",value:r.minWidth,onChange:a=>e(i=>i.minWidth=a),max:1e4}),p.jsx(cr,{label:"Max Width",value:r.maxWidth,onChange:a=>e(i=>i.maxWidth=a),max:1e4}),p.jsx(cr,{label:"Height",value:r.height,onChange:a=>e(i=>i.height=a),max:1e4}),p.jsx(cr,{label:"Min Height",value:r.minHeight,onChange:a=>e(i=>i.minHeight=a),max:1e4}),p.jsx(cr,{label:"Max Height",value:r.maxHeight,onChange:a=>e(i=>i.maxHeight=a),max:1e4})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!0,children:[p.jsx(De,{label:"Padding",values:n,onChange:a=>e(i=>i.padding=a)}),p.jsx(De,{label:"Margin",values:o,onChange:a=>e(i=>i.margin=a)})]}),p.jsxs(V,{title:"Background",defaultOpen:!1,children:[p.jsx(Je,{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(Je,{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}=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:Ss(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})};Tn.craft={isCanvas:!0,props:Cs,displayName:"Container",related:{settings:aa},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const H3=/\{\{\s*([\w.]+)\s*\}\}/g,z3=(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=z3(e,o);return a==null?n:String(a)})},F3=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),q3=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(H3.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},U3={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"}},V3={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"}]}},W3=({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(zi,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(sh,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},G3=({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(Fi,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(qi,{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(W3,{variable:a},a.key))})]})},ef=({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(V3).map(([e,r],n)=>p.jsx(G3,{category:e,data:r,defaultOpen:n===0},e))})]});var tf={},hn={},Es={},mn={},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 Ns={};Object.defineProperty(Ns,"__esModule",{value:!0});Ns.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(C,N,P,I){I===void 0&&(I=P);var T=Object.getOwnPropertyDescriptor(N,P);(!T||("get"in T?!N.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return N[P]}}),Object.defineProperty(C,I,T)}:function(C,N,P,I){I===void 0&&(I=P),C[I]=N[P]}),r=F&&F.__setModuleDefault||(Object.create?function(C,N){Object.defineProperty(C,"default",{enumerable:!0,value:N})}:function(C,N){C.default=N}),n=F&&F.__importStar||function(C){if(C&&C.__esModule)return C;var N={};if(C!=null)for(var P in C)P!=="default"&&Object.prototype.hasOwnProperty.call(C,P)&&e(N,C,P);return r(N,C),N},o=F&&F.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};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(Ns);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(C){C[C.NUM=35]="NUM",C[C.SEMI=59]="SEMI",C[C.EQUALS=61]="EQUALS",C[C.ZERO=48]="ZERO",C[C.NINE=57]="NINE",C[C.LOWER_A=97]="LOWER_A",C[C.LOWER_F=102]="LOWER_F",C[C.LOWER_X=120]="LOWER_X",C[C.LOWER_Z=122]="LOWER_Z",C[C.UPPER_A=65]="UPPER_A",C[C.UPPER_F=70]="UPPER_F",C[C.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(C){C[C.VALUE_LENGTH=49152]="VALUE_LENGTH",C[C.BRANCH_LENGTH=16256]="BRANCH_LENGTH",C[C.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(C){return C>=l.ZERO&&C<=l.NINE}function d(C){return C>=l.UPPER_A&&C<=l.UPPER_F||C>=l.LOWER_A&&C<=l.LOWER_F}function b(C){return C>=l.UPPER_A&&C<=l.UPPER_Z||C>=l.LOWER_A&&C<=l.LOWER_Z||f(C)}function g(C){return C===l.EQUALS||b(C)}var m;(function(C){C[C.EntityStart=0]="EntityStart",C[C.NumericStart=1]="NumericStart",C[C.NumericDecimal=2]="NumericDecimal",C[C.NumericHex=3]="NumericHex",C[C.NamedEntity=4]="NamedEntity"})(m||(m={}));var v;(function(C){C[C.Legacy=0]="Legacy",C[C.Strict=1]="Strict",C[C.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function C(N,P,I){this.decodeTree=N,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 C.prototype.startEntity=function(N){this.decodeMode=N,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},C.prototype.write=function(N,P){switch(this.state){case m.EntityStart:return N.charCodeAt(P)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(N,P+1)):(this.state=m.NamedEntity,this.stateNamedEntity(N,P));case m.NumericStart:return this.stateNumericStart(N,P);case m.NumericDecimal:return this.stateNumericDecimal(N,P);case m.NumericHex:return this.stateNumericHex(N,P);case m.NamedEntity:return this.stateNamedEntity(N,P)}},C.prototype.stateNumericStart=function(N,P){return P>=N.length?-1:(N.charCodeAt(P)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(N,P+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(N,P))},C.prototype.addToNumericResult=function(N,P,I,T){if(P!==I){var O=I-P;this.result=this.result*Math.pow(T,O)+parseInt(N.substr(P,O),T),this.consumed+=O}},C.prototype.stateNumericHex=function(N,P){for(var I=P;P<N.length;){var T=N.charCodeAt(P);if(f(T)||d(T))P+=1;else return this.addToNumericResult(N,I,P,16),this.emitNumericEntity(T,3)}return this.addToNumericResult(N,I,P,16),-1},C.prototype.stateNumericDecimal=function(N,P){for(var I=P;P<N.length;){var T=N.charCodeAt(P);if(f(T))P+=1;else return this.addToNumericResult(N,I,P,10),this.emitNumericEntity(T,2)}return this.addToNumericResult(N,I,P,10),-1},C.prototype.emitNumericEntity=function(N,P){var I;if(this.consumed<=P)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(N===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&&(N!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},C.prototype.stateNamedEntity=function(N,P){for(var I=this.decodeTree,T=I[this.treeIndex],O=(T&h.VALUE_LENGTH)>>14;P<N.length;P++,this.excess++){var A=N.charCodeAt(P);if(this.treeIndex=E(I,T,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(T=I[this.treeIndex],O=(T&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},C.prototype.emitNotTerminatedNamedEntity=function(){var N,P=this,I=P.result,T=P.decodeTree,O=(T[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(N=this.errors)===null||N===void 0||N.missingSemicolonAfterCharacterReference(),this.consumed},C.prototype.emitNamedEntityData=function(N,P,I){var T=this.decodeTree;return this.emitCodePoint(P===1?T[N]&~h.VALUE_LENGTH:T[N+1],I),P===3&&this.emitCodePoint(T[N+2],I),I},C.prototype.end=function(){var N;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(N=this.errors)===null||N===void 0||N.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},C}();t.EntityDecoder=x;function S(C){var N="",P=new x(C,function(I){return N+=(0,s.fromCodePoint)(I)});return function(T,O){for(var A=0,R=0;(R=T.indexOf("&",R))>=0;){N+=T.slice(A,R),P.startEntity(O);var M=P.write(T,R+1);if(M<0){A=R+P.end();break}A=R+M,R=M===0?A+1:A}var q=N+T.slice(A);return N="",q}}function E(C,N,P,I){var T=(N&h.BRANCH_LENGTH)>>7,O=N&h.JUMP_TABLE;if(T===0)return O!==0&&I===O?P:-1;if(O){var A=I-O;return A<0||A>=T?-1:C[P+A]-1}for(var R=P,M=R+T-1;R<=M;){var q=R+M>>>1,de=C[q];if(de<I)R=q+1;else if(de>I)M=q-1;else return C[q+T]}return-1}t.determineBranch=E;var j=S(a.default),k=S(i.default);function _(C,N){return N===void 0&&(N=v.Legacy),j(C,N)}t.decodeHTML=_;function D(C){return j(C,v.Attribute)}t.decodeHTMLAttribute=D;function L(C){return j(C,v.Strict)}t.decodeHTMLStrict=L;function $(C){return k(C,v.Strict)}t.decodeXML=$})(mn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=mn,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})(Es);var Y3=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]}),X3=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),K3=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)&&Y3(e,t,r);return X3(e,t),e};Object.defineProperty(hn,"__esModule",{value:!0});hn.Parser=void 0;var Fn=K3(Es),Al=mn,fr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),re=new Set(["p"]),Ol=new Set(["thead","tbody"]),Pl=new Set(["dd","dt"]),kl=new Set(["rt","rp"]),J3=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",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",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",kl],["rp",kl],["tbody",Ol],["tfoot",Ol]]),Z3=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"]),Q3=/\s|\//,e6=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&&Z3.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&&J3.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(Q3),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}();hn.Parser=e6;var xt={},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={},$t=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 je=Fr,js=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),As(this,e)},t}();K.Node=js;var ia=function(t){$t(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}(js);K.DataNode=ia;var rf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(ia);K.Text=rf;var nf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(ia);K.Comment=nf;var of=function(t){$t(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=je.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(ia);K.ProcessingInstruction=of;var sa=function(t){$t(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}(js);K.NodeWithChildren=sa;var af=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(sa);K.CDATA=af;var sf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(sa);K.Document=sf;var uf=function(t){$t(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?je.ElementType.Script:r==="style"?je.ElementType.Style:je.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}(sa);K.Element=uf;function lf(t){return(0,je.isTag)(t)}K.isTag=lf;function cf(t){return t.type===je.ElementType.CDATA}K.isCDATA=cf;function df(t){return t.type===je.ElementType.Text}K.isText=df;function ff(t){return t.type===je.ElementType.Comment}K.isComment=ff;function pf(t){return t.type===je.ElementType.Directive}K.isDirective=pf;function hf(t){return t.type===je.ElementType.Root}K.isDocument=hf;function t6(t){return Object.prototype.hasOwnProperty.call(t,"children")}K.hasChildren=t6;function As(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?Ia(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?Ia(t.children):[],a=new af(n);n.forEach(function(l){return l.parent=a}),r=a}else if(hf(t)){var n=e?Ia(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=As;function Ia(t){for(var e=t.map(function(n){return As(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})(xt);var to={},Bt={},Nn={},mf={},Kt={},Os={};Object.defineProperty(Os,"__esModule",{value:!0});function qn(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}Os.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 To={};(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," "]]))})(To);var r6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.encodeNonAsciiHTML=Kt.encodeHTML=void 0;var n6=r6(Os),bf=To,o6=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function a6(t){return gf(o6,t)}Kt.encodeHTML=a6;function i6(t){return gf(bf.xmlReplacer,t)}Kt.encodeNonAsciiHTML=i6;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=n6.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=mn,r=Kt,n=To,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=To;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=Kt;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=mn;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 Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.attributeNames=Tr.elementNames=void 0;Tr.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]}));Tr.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)},s6=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]}),u6=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),l6=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)&&s6(e,t,r);return u6(e,t),e};Object.defineProperty(Nn,"__esModule",{value:!0});Nn.render=void 0;var ut=l6(Fr),No=mf,vf=Tr,c6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d6(t){return t.replace(/"/g,""")}function f6(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?d6:e.xmlMode||e.encodeEntities!=="utf8"?No.encodeXML:No.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 Il=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ua(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=p6(r[o],e);return n}Nn.render=ua;Nn.default=ua;function p6(t,e){switch(t.type){case ut.Root:return ua(t.children,e);case ut.Doctype:case ut.Directive:return g6(t);case ut.Comment:return x6(t);case ut.CDATA:return y6(t);case ut.Script:case ut.Style:case ut.Tag:return b6(t,e);case ut.Text:return v6(t,e)}}var h6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m6=new Set(["svg","math"]);function b6(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=vf.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&h6.has(t.parent.name)&&(e=hr(hr({},e),{xmlMode:!1}))),!e.xmlMode&&m6.has(t.name)&&(e=hr(hr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=f6(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+=ua(t.children,e)),(e.xmlMode||!Il.has(t.name))&&(n+="</".concat(t.name,">"))),n}function g6(t){return"<".concat(t.data,">")}function v6(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&c6.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,No.encodeXML)(n):(0,No.escapeText)(n)),n}function y6(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function x6(t){return"<!--".concat(t.data,"-->")}var w6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getOuterHTML=yf;Bt.getInnerHTML=E6;Bt.getText=ro;Bt.textContent=gi;Bt.innerText=vi;var Ze=xt,S6=w6(Nn),C6=Fr;function yf(t,e){return(0,S6.default)(t,e)}function E6(t,e){return(0,Ze.hasChildren)(t)?t.children.map(function(r){return yf(r,e)}).join(""):""}function ro(t){return Array.isArray(t)?t.map(ro).join(""):(0,Ze.isTag)(t)?t.name==="br"?`
|
|
231
|
-
`:ro(t.children):(0,Ze.isCDATA)(t)?ro(t.children):(0,Ze.isText)(t)?t.data:""}function gi(t){return Array.isArray(t)?t.map(gi).join(""):(0,Ze.hasChildren)(t)&&!(0,Ze.isComment)(t)?gi(t.children):(0,Ze.isText)(t)?t.data:""}function vi(t){return Array.isArray(t)?t.map(vi).join(""):(0,Ze.hasChildren)(t)&&(t.type===C6.ElementType.Tag||(0,Ze.isCDATA)(t))?vi(t.children):(0,Ze.isText)(t)?t.data:""}var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.getChildren=xf;ot.getParent=wf;ot.getSiblings=T6;ot.getAttributeValue=N6;ot.hasAttrib=j6;ot.getName=A6;ot.nextElementSibling=O6;ot.prevElementSibling=P6;var Ps=xt;function xf(t){return(0,Ps.hasChildren)(t)?t.children:[]}function wf(t){return t.parent||null}function T6(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 N6(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function j6(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function A6(t){return t.name}function O6(t){for(var e,r=t.next;r!==null&&!(0,Ps.isTag)(r);)e=r,r=e.next;return r}function P6(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=k6;Ht.appendChild=_6;Ht.append=R6;Ht.prependChild=I6;Ht.prepend=D6;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 k6(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 _6(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 R6(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 I6(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 D6(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 St={};Object.defineProperty(St,"__esModule",{value:!0});St.filter=M6;St.find=Sf;St.findOneChild=L6;St.findOne=Cf;St.existsOne=Ef;St.findAll=$6;var Jt=xt;function M6(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,Jt.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function L6(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,Jt.isTag)(a)&&t(a))return a;if(r&&(0,Jt.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,Jt.isTag)(r)&&t(r)||(0,Jt.hasChildren)(r)&&Ef(t,r.children)})}function $6(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,Jt.isTag)(a)&&t(a)&&r.push(a),(0,Jt.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.testElement=H6;Ct.getElements=z6;Ct.getElementById=F6;Ct.getElementsByTagName=q6;Ct.getElementsByClassName=U6;Ct.getElementsByTagType=V6;var Vt=xt,An=St,jo={tag_name:function(t){return typeof t=="function"?function(e){return(0,Vt.isTag)(e)&&t(e.name)}:t==="*"?Vt.isTag:function(e){return(0,Vt.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Vt.isText)(e)&&t(e.data)}:function(e){return(0,Vt.isText)(e)&&e.data===t}}};function ks(t,e){return typeof e=="function"?function(r){return(0,Vt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Vt.isTag)(r)&&r.attribs[t]===e}}function B6(t,e){return function(r){return t(r)||e(r)}}function Tf(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(jo,r)?jo[r](n):ks(r,n)});return e.length===0?null:e.reduce(B6)}function H6(t,e){var r=Tf(t);return r?r(e):!0}function z6(t,e,r,n){n===void 0&&(n=1/0);var o=Tf(t);return o?(0,An.filter)(o,e,r,n):[]}function F6(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,An.findOne)(ks("id",t),e,r)}function q6(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 U6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,An.filter)(ks("class",t),e,r,n)}function V6(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=W6;nr.compareDocumentPosition=Nf;nr.uniqueSort=G6;var Dl=xt;function W6(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 ze;(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"})(ze||(nr.DocumentPosition=ze={}));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 ze.DISCONNECTED;var s=r[i-1],u=s.children,l=r[i],c=n[i];return u.indexOf(l)>u.indexOf(c)?s===e?ze.FOLLOWING|ze.CONTAINED_BY:ze.FOLLOWING:s===t?ze.PRECEDING|ze.CONTAINS:ze.PRECEDING}function G6(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&ze.PRECEDING?-1:n&ze.FOLLOWING?1:0}),t}var _s={};Object.defineProperty(_s,"__esModule",{value:!0});_s.getFeed=X6;var Y6=Bt,On=Ct;function X6(t){var e=Ao(e4,t);return e?e.name==="feed"?K6(e):J6(e):null}function K6(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:jf(u)};Ne(l,"id","id",u),Ne(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=Ot("summary",u)||Ot("content",u);h&&(l.description=h);var f=Ot("updated",u);return f&&(l.pubDate=new Date(f)),l})};Ne(n,"id","id",r),Ne(n,"title","title",r);var o=(e=Ao("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Ne(n,"description","subtitle",r);var a=Ot("updated",r);return a&&(n.updated=new Date(a)),Ne(n,"author","email",r,!0),n}function J6(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:jf(s)};Ne(u,"id","guid",s),Ne(u,"title","title",s),Ne(u,"link","link",s),Ne(u,"description","description",s);var l=Ot("pubDate",s)||Ot("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};Ne(o,"title","title",n),Ne(o,"link","link",n),Ne(o,"description","description",n);var a=Ot("lastBuildDate",n);return a&&(o.updated=new Date(a)),Ne(o,"author","managingEditor",n,!0),o}var Z6=["url","type","lang"],Q6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function jf(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=Z6;o<a.length;o++){var i=a[o];r[i]&&(n[i]=r[i])}for(var s=0,u=Q6;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 Ot(t,e,r){return r===void 0&&(r=!1),(0,Y6.textContent)((0,On.getElementsByTagName)(t,e,r,1)).trim()}function Ne(t,e,r,n,o){o===void 0&&(o=!1);var a=Ot(r,n,o);a&&(t[e]=a)}function e4(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(Bt,t),r(ot,t),r(Ht,t),r(St,t),r(Ct,t),r(nr,t),r(_s,t);var n=xt;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,E){E===void 0&&(E=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,E,j)}:function(v,x,S,E){E===void 0&&(E=S),v[E]=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=hn,i=hn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return i.Parser}});var s=xt,u=xt;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 E=new s.DomHandler(v,x,S);return new a.Parser(E,x)}t.createDomStream=h;var f=Es;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(Fr);var d=to,b=to;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(to)})(tf);var t4=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Rs={};Object.defineProperty(Rs,"__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 _e(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){ve(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 $r(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 Br(t,e,r){return e&&qx(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(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 gr(t){return gr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gr(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=gr(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)||ss(t,e)||Qc()}function Ce(t){return function(e){if(Array.isArray(e))return ti(e)}(t)||Zc(t)||ss(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 ss(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 fe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Ux=function(){function t(){$r(this,t),ve(this,"timeline",[]),ve(this,"pointer",-1)}return Br(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(Ce(a),Ce(e)),inversePatches:[].concat(Ce(r),Ce(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(Ce(n.patches),Ce(e)),inversePatches:[].concat(Ce(r),Ce(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(S,E){var j,k=r&&ol(r,function(){return S},a),_=Kc(ju(S,function(C){var N,P;switch(E.type){case fe.UNDO:return a.undo(C);case fe.REDO:return a.redo(C);case fe.CLEAR:return a.clear(),_e({},C);case fe.IGNORE:case fe.MERGE:case fe.THROTTLE:var I,T=Jc(P=E.payload)||Zc(P)||ss(P)||Qc(),O=T[0],A=T.slice(1);(I=o(C,k))[O].apply(I,Ce(A));break;default:(N=o(C,k))[E.type].apply(N,Ce(E.payload))}}),3),D=_[0],L=_[1],$=_[2];return j=D,x&&x(D,S,{type:E.type,params:E.payload,patches:L},k,function(C){var N=ju(D,C);j=N[0],L=[].concat(Ce(L),Ce(N[1])),$=[].concat(Ce(N[2]),Ce($))}),[fe.UNDO,fe.REDO].includes(E.type)&&m&&(j=Yh(j,m)),[].concat(Ce(v),[fe.UNDO,fe.REDO,fe.IGNORE,fe.CLEAR]).includes(E.type)||(E.type===fe.THROTTLE?a.throttleAdd(L,$,E.config&&E.config.rate):E.type===fe.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 _e(_e({},m.reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),k=0;k<E;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 _e({},m.filter(function(S){return!v.includes(S)}).reduce(function(S,E){return S[E]=function(){for(var j=arguments.length,k=new Array(j),_=0;_<j;_++)k[_]=arguments[_];return d({type:fe.THROTTLE,payload:[E].concat(k),config:{rate:x}})},S},{}))},ignore:function(){return _e({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),k=0;k<E;k++)j[k]=arguments[k];return d({type:fe.IGNORE,payload:[S].concat(j)})},x},{}))},merge:function(){return _e({},m.filter(function(x){return!v.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),k=0;k<E;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: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 _e(_e({},o),{},ve({},a,function(){var i;return(i=t(e()))[a].apply(i,arguments)}))},{});return _e(_e({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}zh(),Hh();var Wx=function(){function t(e){$r(this,t),ve(this,"getState",void 0),ve(this,"subscribers",[]),this.getState=e}return Br(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];$r(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 Br(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 wr,td=function(){return Nx(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Xx=function(){function t(){$r(this,t),ve(this,"isEnabled",!0),ve(this,"elementIdMap",new WeakMap),ve(this,"registry",new Map)}return Br(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(Tx(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"})(wr||(wr={}));var rd=function(){function t(e){$r(this,t),ve(this,"options",void 0),ve(this,"registry",new Xx),ve(this,"subscribers",new Set),this.options=e}return Br(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(wr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(wr.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 _e(_e({},i),{},ve({},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=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 _a(u)}(this,a)});function o(a,i){var s;return $r(this,o),ve(_a(s=n.call(this,i)),"derived",void 0),ve(_a(s),"unsubscribeParentHandlerListener",void 0),s.derived=a,s.options=i,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case wr.HandlerEnabled:return s.enable();case wr.HandlerDisabled:return s.disable();default:return}}),s}return Br(o,[{key:"inherit",value:function(a){return this.createProxyHandlers(this.derived,a)}},{key:"cleanup",value:function(){ei(gr(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 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=>{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?$i.createPortal(n,r.ownerDocument.body):n};var Rt=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=Zt;(function(){try{var t=r2(Object,"defineProperty");return t({},"",{}),t}catch{}})();var bo={exports:{}};bo.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})(bo,bo.exports);bo.exports;var il=Uo,sl=il?il.prototype:void 0;sl&&sl.valueOf;var ul=is;ul&&ul.isMap;var ll=is;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 se(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){ge(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 Xo(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 Ko(t,e,r){return e&&n2(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ge(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 us(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 ls(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 en(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cs(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 en(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 ds=w.createContext(null);var cd=w.createContext(null),dd=function(){return w.useContext(cd)};function Qt(t){var e=dd(),r=w.useContext(ds);oe(r,zx);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 se(se({},n),{},{connectors:a,inContext:!!r,store:r})}var o2=["actions","query","connectors"];function Jo(t){var e=w.useContext(ad);oe(e,Fx);var r=e.id,n=e.related,o=Qt(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),a=o.actions,i=o.connectors,s=ls(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 se(se({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var a2=["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({},ls(e,a2)),{},{actions:o,id:r,related:n,setProp:function(s,u){return Rt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:a,connectors:i})}const i2=({render:t})=>{const{connectors:{connect:e,drag:r}}=ne();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},s2=()=>{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(fs,{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}=Jo(n=>({hidden:n.data.hidden})),{onRender:r}=Qt(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(s2,null)})},fs=({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 De({id:t,children:e,...r}){const{is:n}={...ai,...r},{query:o,actions:a}=Qt(),{id:i,inNodeContext:s}=Jo(),[u]=w.useState(()=>{oe(!!t,Px);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(De,r,e),f=o.parseReactElement(h).toNodeTree();return a.history.ignore().addLinkedNodeFromTree(f,i,t),f.rootNodeId}return null});return u?w.createElement(fs,{id:u}):null}const fd=()=>Rt("<Canvas />",{suggest:"<Element canvas={true} />"});function ii({...t}){return w.useEffect(()=>fd(),[]),w.createElement(De,{...t,canvas:!0})}const c2=()=>{const{timestamp:t}=Qt(e=>({timestamp:e.nodes[bt]&&e.nodes[bt]._hydrationTimestamp}));return t?w.createElement(fs,{id:bt,key:t}):null},ps=({children:t,json:e,data:r})=>{const{actions:n,query:o}=Qt();e&&Rt("<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(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 St(t){const{connectors:e,actions:r,query:n,store:o,...a}=Qt(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 se(se({},e),{},ge({},o,a))},{})},ht=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]}:ri(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,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 oe(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){oe(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===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 Rt("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(),rl),oe(ui(t,a.data.parent).isCanvas(),tl),oe(a.rules.canDrag(a,n),Mx),!0}catch(i){return o&&o(i),!1}},isDroppable:function(o,a){var i=ht(t.nodes,o),s=r;try{oe(this.isCanvas(),Ix),oe(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(oe(c.rules.canDrop(s,c,n),kx),h){oe(!n(c.id).isTopLevelNode(),rl);var f=n(c.id).descendants(!0);oe(!f.includes(s.id)&&s.id!==c.id,Dx);var d=c.data.parent&&t.nodes[c.data.parent];oe(d.data.isCanvas,tl),oe(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];oe(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 Rt("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 Hn=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:se({type:r,name:Hn(r),displayName:Hn(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===De||n.data.type===ii){var o=se(se({},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=Hn(r=n.data.type),n.data.displayName=Hn(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=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(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;oe(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,Hx.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 ht(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);oe(a.type,mo);const i=typeof o=="string"&&o;return i&&Rt("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=bt);const i=vo(t.options.resolver,a.data.type);oe(i!==null,mo),a.data.displayName=a.data.displayName||i,a.data.name=i,o&&o(a)})}),createNode(n,o){Rt(`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){us(r,rd);var e=cs(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){us(r,Kx);var e=cs(r);function r(){return Xo(this,r),e.apply(this,arguments)}return Ko(r)})();var pl=function(t){t.preventDefault()},ci=function(){function t(e,r){Xo(this,t),ge(this,"store",void 0),ge(this,"dragTarget",void 0),ge(this,"currentDropTargetId",void 0),ge(this,"currentDropTargetCanvasAncestorId",void 0),ge(this,"currentIndicator",null),ge(this,"currentTargetId",void 0),ge(this,"currentTargetChildDimensions",void 0),ge(this,"dragError",void 0),ge(this,"draggedNodes",void 0),ge(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 Ko(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(bt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return ht(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},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:se(se({},a),{},{currentNode:u}),error:i},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();ge(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){us(r,g2);var e=cs(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 ge(en(n=e.call.apply(e,[this].concat(a))),"draggedElementShadow",void 0),ge(en(n),"dragTarget",void 0),ge(en(n),"positioner",null),ge(en(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 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")}}ge(bd,"forceSingleDragShadow",t2()&&e2());const y2=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=Qt(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(ds),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 se(se({},function(r,n){var o=function(s,u,l){if(function f(d,b){var g=s.nodes[d];typeof g.data.type!="string"&&oe(r.options.resolver[g.data.name],mo.replace("%node_type%","".concat(g.data.type.name))),r.nodes[d]=se(se({},g),{},{data:se(se({},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!==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,Ax);var u=r.nodes[s];return oe(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)&&(Rt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:ge({},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){ht(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;oe(!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=bt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(pd(l))},move:function(s,u,l){var c=ht(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(E){throw new Error(E)}),r.options.onBeforeMoveEnd(g,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+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=ht(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){ht(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){ht(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=ht(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=ls(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&&oe(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([fe.IGNORE,fe.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(ds.Provider,{value:n},y.createElement(x2,null,t)):null},gd=w.createContext("desktop"),hs=({value:t,children:e})=>p.jsx(gd.Provider,{value:t,children:e}),er=()=>w.useContext(gd),Re=["mobile","tablet","small","desktop"],mt=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Re.indexOf(e);for(let o=n;o<Re.length;o++){const a=Re[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}for(let o=n-1;o>=0;o--){const a=Re[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,...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=T2(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 T2(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?$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 j2(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===N2}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 P2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=P2.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 k2(t,e){t&&hc.flushSync(()=>t.dispatchEvent(e))}function Ie(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=Ie(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=we(e,_=>h(_)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),x=c?g.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=v,j=$2(_=>{const D=_.target,L=[...l.branches].some($=>$.contains(D));!E||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(me.div,{...u,ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...t.style},onFocusCapture:ue(t.onFocusCapture,k.onFocusCapture),onBlurCapture:ue(t.onBlurCapture,k.onBlurCapture),onPointerDownCapture:ue(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=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})});L2.displayName=M2;function $2(t,e=globalThis==null?void 0:globalThis.document){const r=Ie(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=Ie(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?k2(o,a):o.dispatchEvent(a)}var It=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},H2=y[" useId ".trim().toString()]||(()=>{}),z2=0;function wd(t){const[e,r]=y.useState(H2());return It(()=>{r(n=>n??String(z2++))},[t]),e?`radix-${e}`:""}const F2=["top","right","bottom","left"],Dt=Math.min,Ae=Math.max,yo=Math.round,zn=Math.floor,Ze=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 Ae(t,Dt(e,r))}function vt(t,e){return typeof t=="function"?t(e):t}function yt(t){return t.split("-")[0]}function Hr(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 Ke(t){return V2.has(yt(t))?"y":"x"}function gs(t){return ms(Ke(t))}function W2(t,e,r){r===void 0&&(r=!1);const n=Hr(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=xo(i)),[i,xo(i)]}function G2(t){const e=xo(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=Hr(t);let a=K2(yt(t),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),e&&(a=a.concat(a.map(hi)))),a}function xo(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 wo(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=Ke(e),i=gs(e),s=bs(i),u=yt(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(Hr(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:S,data:E,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],...E}},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}=vt(e,t),b=Sd(d),m=s[f?h==="floating"?"reference":"floating":h],v=wo(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)),E=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=wo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:u}):x);return{top:(v.top-j.top+b.top)/E.y,bottom:(j.bottom-v.bottom+b.bottom)/E.y,left:(v.left-j.left+b.left)/E.x,right:(j.right-v.right+b.right)/E.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}=vt(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",S=m?"clientHeight":"clientWidth",E=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[S]:0;(!_||!await(i.isElement==null?void 0:i.isElement(k)))&&(_=s.floating[S]||a.floating[b]);const D=E/2-j/2,L=_/2-g[b]/2-1,$=Dt(h[v],L),C=Dt(h[x],L),N=$,P=_-g[b]-C,I=_/2-g[b]/2+D,T=pi(N,I,P),O=!u.arrow&&Hr(o)!=null&&I!==T&&a.reference[b]/2-(I<N?$:C)-g[b]/2<0,A=O?I<N?I-N:I-P:0;return{[d]:f[d]+A,data:{[d]:T,centerOffset:I-T-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}=vt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const v=yt(o),x=Ke(s),S=yt(s)===s,E=await(u.isRTL==null?void 0:u.isRTL(l.floating)),j=f||(S||!g?[xo(s)]:G2(s)),k=b!=="none";!f&&k&&j.push(...J2(s,g,b,E));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,E);L.push(D[I[0]],D[I[1]])}if($=[...$,{placement:o,overflows:L}],!L.every(I=>I<=0)){var C,N;const I=(((C=a.flip)==null?void 0:C.index)||0)+1,T=_[I];if(T&&(!(h==="alignment"?x!==Ke(T):!1)||$.every(R=>Ke(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:T}};let O=(N=$.filter(A=>A.overflows[0]<=0).sort((A,R)=>A.overflows[1]-R.overflows[1])[0])==null?void 0:N.placement;if(!O)switch(d){case"bestFit":{var P;const A=(P=$.filter(R=>{if(k){const M=Ke(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}=vt(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=yt(r),s=Hr(r),u=Ke(r)==="y",l=Cd.has(i)?-1:1,c=a&&u?-1:1,h=vt(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}=vt(t,e),l={x:r,y:n},c=await dn(e,u),h=Ke(yt(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],S=d-c[v];d=pi(x,d,S)}if(i){const m=h==="y"?"top":"left",v=h==="y"?"bottom":"right",x=b+c[m],S=b-c[v];b=pi(x,b,S)}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}=vt(t,e),c={x:r,y:n},h=Ke(o),f=ms(h);let d=c[f],b=c[h];const g=vt(s,e),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const S=f==="y"?"height":"width",E=a.reference[f]-a.floating[S]+m.mainAxis,j=a.reference[f]+a.reference[S]-m.mainAxis;d<E?d=E:d>j&&(d=j)}if(l){var v,x;const S=f==="y"?"width":"height",E=Cd.has(yt(o)),j=a.reference[h]-a.floating[S]+(E&&((v=i.offset)==null?void 0:v[h])||0)+(E?0:m.crossAxis),k=a.reference[h]+a.reference[S]+(E?0:((x=i.offset)==null?void 0:x[h])||0)-(E?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}=vt(t,e),c=await dn(e,l),h=yt(o),f=Hr(o),d=Ke(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,S=b-c.left-c.right,E=Dt(g-c[m],x),j=Dt(b-c[v],S),k=!e.middlewareData.shift;let _=E,D=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=x),k&&!f){const $=Ae(c.left,0),C=Ae(c.right,0),N=Ae(c.top,0),P=Ae(c.bottom,0);d?D=b-2*($!==0||C!==0?$+C:Ae(c.left,c.right)):_=g-2*(N!==0||P!==0?N+P:Ae(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 Zo(){return typeof window<"u"}function zr(t){return Ed(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function at(t){var e;return(e=(Ed(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ed(t){return Zo()?t instanceof Node||t instanceof Oe(t).Node:!1}function qe(t){return Zo()?t instanceof Element||t instanceof Oe(t).Element:!1}function nt(t){return Zo()?t instanceof HTMLElement||t instanceof Oe(t).HTMLElement:!1}function Cl(t){return!Zo()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot}const uw=new Set(["inline","contents"]);function Nn(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ue(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 Qo(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=qe(t)?Ue(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=Mt(t);for(;nt(e)&&!Sr(e);){if(vs(e))return e;if(Qo(e))return null;e=Mt(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 Sr(t){return bw.has(zr(t))}function Ue(t){return Oe(t).getComputedStyle(t)}function ea(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mt(t){if(zr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Cl(t)&&t.host||at(t);return Cl(e)?e.host:e}function Td(t){const e=Mt(t);return Sr(e)?t.ownerDocument?t.ownerDocument.body:t.body:nt(e)&&Nn(e)?e:Td(e)}function fn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Td(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),i=Oe(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 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=yo(r)!==a||yo(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function xs(t){return qe(t)?t:t.contextElement}function vr(t){const e=xs(t);if(!nt(e))return Ze(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:a}=Nd(e);let i=(a?yo(r.width):r.width)/n,s=(a?yo(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 jd(t){const e=Oe(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!==Oe(t)?!1:e}function Yt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=xs(t);let i=Ze(1);e&&(n?qe(n)&&(i=vr(n)):i=vr(t));const s=vw(a,r,n)?jd(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=Oe(a),d=n&&qe(n)?Oe(n):n;let b=f,g=mi(b);for(;g&&n&&d!==b;){const m=vr(g),v=g.getBoundingClientRect(),x=Ue(g),S=v.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,E=v.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,h*=m.y,u+=S,l+=E,b=Oe(g),g=mi(b)}}return wo({width:c,height:h,x:u,y:l})}function ta(t,e){const r=ea(t).scrollLeft;return e?e.left+r:Yt(at(t)).left+r}function Ad(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 yw(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const a=o==="fixed",i=at(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"||Nn(i))&&(u=ea(n)),nt(n))){const d=Yt(n);l=vr(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!a?Ad(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 xw(t){return Array.from(t.getClientRects())}function ww(t){const e=at(t),r=ea(t),n=t.ownerDocument.body,o=Ae(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ae(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+ta(t);const s=-r.scrollTop;return Ue(n).direction==="rtl"&&(i+=Ae(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const El=25;function Sw(t,e){const r=Oe(t),n=at(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=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,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=Yt(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=nt(t)?vr(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 Tl(t,e,r){let n;if(e==="viewport")n=Sw(t,r);else if(e==="document")n=ww(at(t));else if(qe(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 wo(n)}function Od(t,e){const r=Mt(t);return r===e||!qe(r)||Sr(r)?!1:Ue(r).position==="fixed"||Od(r,e)}function Tw(t,e){const r=e.get(t);if(r)return r;let n=fn(t,[],!1).filter(s=>qe(s)&&zr(s)!=="body"),o=null;const a=Ue(t).position==="fixed";let i=a?Mt(t):t;for(;qe(i)&&!Sr(i);){const s=Ue(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=Mt(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)?[]:Tw(e,this._c):[].concat(r),n],s=i[0],u=i.reduce((l,c)=>{const h=Tl(e,c,o);return l.top=Ae(h.top,l.top),l.right=Dt(h.right,l.right),l.bottom=Dt(h.bottom,l.bottom),l.left=Ae(h.left,l.left),l},Tl(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}=Nd(t);return{width:e,height:r}}function Aw(t,e,r){const n=nt(e),o=at(e),a=r==="fixed",i=Yt(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"||Nn(o))&&(s=ea(e)),n){const d=Yt(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):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 Ia(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 at(t)===r&&(r=r.ownerDocument.body),r}function Pd(t,e){const r=Oe(t);if(Qo(t))return r;if(!nt(t)){let o=Mt(t);for(;o&&!Sr(o);){if(qe(o)&&!Ia(o))return o;o=Mt(o)}return r}let n=Nl(t,e);for(;n&&cw(n)&&Ia(n);)n=Nl(n,e);return n&&Sr(n)&&Ia(n)&&!vs(n)?r:n||mw(t)||r}const Ow=async function(t){const e=this.getOffsetParent||Pd,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 Pw(t){return Ue(t).direction==="rtl"}const kw={convertOffsetParentRelativeRectToViewportRelativeRect:yw,getDocumentElement:at,getClippingRect:Nw,getOffsetParent:Pd,getElementRects:Ow,getClientRects:xw,getDimensions:jw,getScale:vr,isElement:qe,isRTL:Pw};function kd(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=at(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=zn(h),g=zn(o.clientWidth-(c+f)),m=zn(o.clientHeight-(h+d)),v=zn(c),S={rootMargin:-b+"px "+-g+"px "+-m+"px "+-v+"px",threshold:Ae(0,Dt(1,u))||1};let E=!0;function j(k){const _=k[0].intersectionRatio;if(_!==u){if(!E)return i();_?i(!1,_):n=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!kd(l,t.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(j,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,S)}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 S;(S=d)==null||S.observe(e)})),r()}),l&&!u&&d.observe(l),d.observe(e));let b,g=u?Yt(t):null;u&&m();function m(){const v=Yt(t);g&&!kd(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,Hw=(t,e,r)=>{const n=new Map,o={platform:kw,...r},a={...o.platform,_c:n};return Q2(t,e,{...o,platform:a})};var zw=typeof document<"u",Fw=function(){},to=zw?w.useLayoutEffect:Fw;function So(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(!So(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)&&!So(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);So(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))},[]),S=y.useCallback(R=>{R!==_.current&&(_.current=R,v(R))},[]),E=a||b,j=i||m,k=y.useRef(null),_=y.useRef(null),D=y.useRef(c),L=u!=null,$=Da(u),C=Da(o),N=Da(l),P=y.useCallback(()=>{if(!k.current||!_.current)return;const R={placement:e,strategy:r,middleware:f};C.current&&(R.platform=C.current),Hw(k.current,_.current,R).then(M=>{const q={...M,isPositioned:N.current!==!1};I.current&&!So(D.current,q)&&(D.current=q,hc.flushSync(()=>{h(q)}))})},[f,e,r,C,N]);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(E&&(k.current=E),j&&(_.current=j),E&&j){if($.current)return $.current(E,j,P);P()}},[E,j,P,$,L]);const T=y.useMemo(()=>({reference:k,floating:_,setReference:x,setFloating:S}),[x,S]),O=y.useMemo(()=>({reference:E,floating:j}),[E,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:T,elements:O,floatingStyles:A}),[c,P,T,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(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"})})});Rd.displayName=Zw;var Qw=Rd;function Id(t){const[e,r]=y.useState(void 0);return It(()=>{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]=tr(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",Hd=y.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=Ld(Bd,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})});Hd.displayName=Bd;var Ss="PopperContent",[t3,r3]=Dd(Ss),zd=y.forwardRef((t,e)=>{var z,Ee,ye,be,We,ut;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),S=we(e,Ge=>x(Ge)),[E,j]=y.useState(null),k=Id(E),_=(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},C=Array.isArray(l)?l:[l],N=C.length>0,P={padding:$,boundary:C.filter(o3),altBoundary:N},{refs:I,floatingStyles:T,placement:O,isPositioned:A,middlewareData:R}=qw({strategy:"fixed",placement:L,whileElementsMounted:(...Ge)=>Rw(...Ge,{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:Ge,rects:In,availableWidth:ya,availableHeight:Dn})=>{const{width:xa,height:Vr}=In.reference,ir=Ge.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",`${Vr}px`)}}),E&&Jw({element:E,padding:s}),a3({arrowWidth:_,arrowHeight:D}),f&&Kw({strategy:"referenceHidden",...P})]}),[M,q]=Ud(O),de=Ie(b);It(()=>{A&&(de==null||de())},[A,de]);const Z=(z=R.arrow)==null?void 0:z.x,B=(Ee=R.arrow)==null?void 0:Ee.y,H=((ye=R.arrow)==null?void 0:ye.centerOffset)!==0,[he,X]=y.useState();return It(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:A?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(be=R.transformOrigin)==null?void 0:be.x,(We=R.transformOrigin)==null?void 0:We.y].join(" "),...((ut=R.hide)==null?void 0:ut.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(t3,{scope:r,placedSide:M,onArrowChange:j,arrowX:Z,arrowY:B,shouldHideArrow:H,children:p.jsx(me.div,{"data-side":M,"data-align":q,...g,ref:S,style:{...g.style,animation:A?void 0:"none"}})})})});zd.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=Hd,u3=zd,l3=qd;function c3(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var rr=t=>{const{present:e,children:r}=t,n=d3(e),o=typeof r=="function"?r({present:n.isPresent}):y.Children.only(r),a=we(n.ref,f3(o));return typeof r=="function"||n.isPresent?y.cloneElement(o,{ref:a}):null};rr.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]),It(()=>{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]),It(()=>{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()]||It;function Fr({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(me.span,{...t,ref:e,style:{...v3,...t.style}}));Vd.displayName=y3;var x3=Vd,[ra]=tr("Tooltip",[Md]),na=Md(),Wd="TooltipProvider",w3=700,bi="tooltip.open",[S3,Cs]=ra(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,oa]=ra(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=na(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]=Fr({prop:n,defaultProp:o??!1,onChange:_=>{_?(u.onOpen(),document.dispatchEvent(new CustomEvent(bi))):u.onClose(),a==null||a(_)},caller:pn}),S=y.useMemo(()=>v?m.current?"delayed-open":"instant-open":"closed",[v]),E=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:S,trigger:c,onTriggerChange:h,onTriggerEnter:y.useCallback(()=>{u.isOpenDelayedRef.current?k():E()},[u.isOpenDelayedRef,k,E]),onTriggerLeave:y.useCallback(()=>{b?j():(window.clearTimeout(d.current),d.current=0)},[j,b]),onOpen:E,onClose:j,disableHoverableContent:b,children:r})})};Yd.displayName=pn;var gi="TooltipTrigger",Xd=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=oa(gi,r),a=Cs(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(s3,{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)})})});Xd.displayName=gi;var E3="TooltipPortal",[bC,T3]=ra(E3,{forceMount:void 0}),Cr="TooltipContent",Kd=y.forwardRef((t,e)=>{const r=T3(Cr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=t,i=oa(Cr,t.__scopeTooltip);return p.jsx(rr,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Jd,{side:o,...a,ref:e}):p.jsx(N3,{side:o,...a,ref:e})})}),N3=y.forwardRef((t,e)=>{const r=oa(Cr,t.__scopeTooltip),n=Cs(Cr,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((b,g)=>{const m=b.currentTarget,v={x:b.clientX,y:b.clientY},x=k3(v,m.getBoundingClientRect()),S=_3(v,x),E=R3(g.getBoundingClientRect()),j=D3([...S,...E]);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)),S=!I3(v,i);x?f():S&&(f(),l())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[u,c,i,l,f]),p.jsx(Jd,{...t,ref:a})}),[j3,A3]=ra(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=oa(Cr,r),l=na(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=Cr;var Zd="TooltipArrow",P3=y.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=na(r);return A3(Zd,r).isInside?null:p.jsx(l3,{...o,...n,ref:e})});P3.displayName=Zd;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 _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,Er=$3,Tr=B3,Xt=y.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Qd,{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}));Xt.displayName=Qd.displayName;const yr={mobile:{icon:Yi,label:"Mobile"},tablet:{icon:Xi,label:"Tablet"},small:{icon:Gi,label:"Small Desktop"},desktop:{icon:Ki,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(Ui,{className:"h-3 w-3"}):p.jsx(Vi,{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)||0),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]})]}),Co=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="px",defaultValue:i=16})=>{const s=er(),[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=Re.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(Er,{children:[p.jsx(Tr,{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(yr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Xt,{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:Re.map(g=>{const m=yr[g].icon,v=c[g],x=v===void 0?Re.find(S=>Re.indexOf(S)>Re.indexOf(g)&&c[S]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(hn,{children:p.jsxs(Er,{children:[p.jsx(Tr,{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(Xt,{side:"left",children:p.jsx("p",{children:yr[g].label})})]})}),p.jsx("input",{type:"number",value:v??"",placeholder:x?`${c[x]??i}`:"",onChange:S=>{const E=S.target.value===""?void 0:parseInt(S.target.value)||0;f(g,E)},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})]})]})},Me=({label:t,values:e,onChange:r})=>{const[n,o]=w.useState(!0),a=(i,s)=>{r(n?{top:s,right:s,bottom:s,left:s}:{...e,[i]:s})};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:()=>o(!n),className:`text-xs px-2 py-0.5 rounded ${n?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:n?"Linked":"Individual"})]}),n?p.jsx("input",{type:"number",value:e.top,onChange:i=>a("top",parseInt(i.target.value)||0),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"grid grid-cols-4 gap-1",children:["top","right","bottom","left"].map(i=>p.jsxs("div",{className:"text-center",children:[p.jsx("input",{type:"number",value:e[i],onChange:s=>a(i,parseInt(s.target.value)||0),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"}),p.jsx("span",{className:"text-[10px] text-muted-foreground",children:i[0].toUpperCase()})]},i))})]})},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"})]})]}),gt=({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))})]}),Lt=({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"})]}),Eo=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="",defaultValue:i=50})=>{const s=er(),[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=Re.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(Er,{children:[p.jsx(Tr,{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(yr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Xt,{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:Re.map(b=>{const g=yr[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:yr[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})=>{let m,v,x;try{const{connectors:P,events:I}=ne(T=>({events:T.events}));m=P.connect,v=P.drag,x=I.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}},E=S[r]||S.md,j=h==="auto"?E.px:h,k=f==="auto"?E.py:f,_=l==="auto"?E.fs:l,D=typeof d=="object"?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:`${d}px`,L=e==="outline"?"transparent":n,$=e==="outline"?n:o,C=e==="outline"?2:i,N=e==="outline"?n:a;return p.jsx("button",{ref:P=>P&&m&&v&&(m==null?void 0:m(v==null?void 0:v(P))),className:`cursor-move transition-all hover:opacity-90 ${x?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:L,color:$,borderWidth:`${C}px`,borderColor:N,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${_}px`,padding:`${k}px ${j}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:b==="none"?"none":b,opacity:g/100},children:t})},H3=()=>{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(Lt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(gt,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(gt,{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(gt,{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=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:{top:0,right:0,bottom:0,left:0},boxShadow:"none",opacity:100},related:{settings:H3}};const dr=({label:t,value:e,onChange:r,max:n=1e4})=>{const o=(e==null?void 0:e.type)||"custom",a=(e==null?void 0:e.value)||100,i=(e==null?void 0:e.unit)||"%",s=c=>{r(c==="none"?{type:"none"}:c==="auto"?{type:"auto"}:{type:"custom",value:a,unit:i})},u=c=>{r({type:"custom",value:c,unit:i})},l=c=>{r({type:"custom",value:a,unit:c})};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:o,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:s}),o==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(pe,{inputClassName:"w-full h-8 rounded-l-lg",value:a,onChange:u,max:n})}),p.jsx("div",{className:"",children:p.jsx(J,{selectClassName:" h-8",value:i,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:l})})]})]})},fr=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",Ts=t=>{const e=typeof t.padding=="object"?`${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`:`${t.padding}px`,r=typeof t.margin=="object"?`${t.margin.top}px ${t.margin.right}px ${t.margin.bottom}px ${t.margin.left}px`:`${t.margin}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:e,margin:r,width:fr(t.width),height:fr(t.height),minHeight:fr(t.minHeight),maxHeight:fr(t.maxHeight),minWidth:fr(t.minWidth),maxWidth:fr(t.maxWidth),display:t.display,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow,position:t.position||"relative",top:t.top||0,left:t.left||0}},mn={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},width:{type:"none"},height:{type:"none"},minHeight:{type:"custom",value:50,unit:"px"},maxHeight:{type:"none"},minWidth:{type:"none"},maxWidth:{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(gt,{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(dr,{label:"Width",value:r.width,onChange:a=>e(i=>i.width=a),max:1e4}),p.jsx(dr,{label:"Min Width",value:r.minWidth,onChange:a=>e(i=>i.minWidth=a),max:1e4}),p.jsx(dr,{label:"Max Width",value:r.maxWidth,onChange:a=>e(i=>i.maxWidth=a),max:1e4}),p.jsx(dr,{label:"Height",value:r.height,onChange:a=>e(i=>i.height=a),max:1e4}),p.jsx(dr,{label:"Min Height",value:r.minHeight,onChange:a=>e(i=>i.minHeight=a),max:1e4}),p.jsx(dr,{label:"Max Height",value:r.maxHeight,onChange:a=>e(i=>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=a)}),p.jsx(Me,{label:"Margin",values:o,onChange:a=>e(i=>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)})]})]})},qr=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:Ts(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})},z3={...mn,maxWidth:{type:"custom",value:"1024",unit:"px"},padding:{top:0,right:15,bottom:0,left:15}};qr.craft={isCanvas:!0,props:z3,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},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=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(qi,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(sh,{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(Ui,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Vi,{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))})]})},ef=({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 tf={},bn={},Ns={},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(C,N,P,I){I===void 0&&(I=P);var T=Object.getOwnPropertyDescriptor(N,P);(!T||("get"in T?!N.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return N[P]}}),Object.defineProperty(C,I,T)}:function(C,N,P,I){I===void 0&&(I=P),C[I]=N[P]}),r=F&&F.__setModuleDefault||(Object.create?function(C,N){Object.defineProperty(C,"default",{enumerable:!0,value:N})}:function(C,N){C.default=N}),n=F&&F.__importStar||function(C){if(C&&C.__esModule)return C;var N={};if(C!=null)for(var P in C)P!=="default"&&Object.prototype.hasOwnProperty.call(C,P)&&e(N,C,P);return r(N,C),N},o=F&&F.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};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(C){C[C.NUM=35]="NUM",C[C.SEMI=59]="SEMI",C[C.EQUALS=61]="EQUALS",C[C.ZERO=48]="ZERO",C[C.NINE=57]="NINE",C[C.LOWER_A=97]="LOWER_A",C[C.LOWER_F=102]="LOWER_F",C[C.LOWER_X=120]="LOWER_X",C[C.LOWER_Z=122]="LOWER_Z",C[C.UPPER_A=65]="UPPER_A",C[C.UPPER_F=70]="UPPER_F",C[C.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(C){C[C.VALUE_LENGTH=49152]="VALUE_LENGTH",C[C.BRANCH_LENGTH=16256]="BRANCH_LENGTH",C[C.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(C){return C>=l.ZERO&&C<=l.NINE}function d(C){return C>=l.UPPER_A&&C<=l.UPPER_F||C>=l.LOWER_A&&C<=l.LOWER_F}function b(C){return C>=l.UPPER_A&&C<=l.UPPER_Z||C>=l.LOWER_A&&C<=l.LOWER_Z||f(C)}function g(C){return C===l.EQUALS||b(C)}var m;(function(C){C[C.EntityStart=0]="EntityStart",C[C.NumericStart=1]="NumericStart",C[C.NumericDecimal=2]="NumericDecimal",C[C.NumericHex=3]="NumericHex",C[C.NamedEntity=4]="NamedEntity"})(m||(m={}));var v;(function(C){C[C.Legacy=0]="Legacy",C[C.Strict=1]="Strict",C[C.Attribute=2]="Attribute"})(v=t.DecodingMode||(t.DecodingMode={}));var x=function(){function C(N,P,I){this.decodeTree=N,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 C.prototype.startEntity=function(N){this.decodeMode=N,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},C.prototype.write=function(N,P){switch(this.state){case m.EntityStart:return N.charCodeAt(P)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(N,P+1)):(this.state=m.NamedEntity,this.stateNamedEntity(N,P));case m.NumericStart:return this.stateNumericStart(N,P);case m.NumericDecimal:return this.stateNumericDecimal(N,P);case m.NumericHex:return this.stateNumericHex(N,P);case m.NamedEntity:return this.stateNamedEntity(N,P)}},C.prototype.stateNumericStart=function(N,P){return P>=N.length?-1:(N.charCodeAt(P)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(N,P+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(N,P))},C.prototype.addToNumericResult=function(N,P,I,T){if(P!==I){var O=I-P;this.result=this.result*Math.pow(T,O)+parseInt(N.substr(P,O),T),this.consumed+=O}},C.prototype.stateNumericHex=function(N,P){for(var I=P;P<N.length;){var T=N.charCodeAt(P);if(f(T)||d(T))P+=1;else return this.addToNumericResult(N,I,P,16),this.emitNumericEntity(T,3)}return this.addToNumericResult(N,I,P,16),-1},C.prototype.stateNumericDecimal=function(N,P){for(var I=P;P<N.length;){var T=N.charCodeAt(P);if(f(T))P+=1;else return this.addToNumericResult(N,I,P,10),this.emitNumericEntity(T,2)}return this.addToNumericResult(N,I,P,10),-1},C.prototype.emitNumericEntity=function(N,P){var I;if(this.consumed<=P)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(N===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&&(N!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},C.prototype.stateNamedEntity=function(N,P){for(var I=this.decodeTree,T=I[this.treeIndex],O=(T&h.VALUE_LENGTH)>>14;P<N.length;P++,this.excess++){var A=N.charCodeAt(P);if(this.treeIndex=E(I,T,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(T=I[this.treeIndex],O=(T&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},C.prototype.emitNotTerminatedNamedEntity=function(){var N,P=this,I=P.result,T=P.decodeTree,O=(T[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(N=this.errors)===null||N===void 0||N.missingSemicolonAfterCharacterReference(),this.consumed},C.prototype.emitNamedEntityData=function(N,P,I){var T=this.decodeTree;return this.emitCodePoint(P===1?T[N]&~h.VALUE_LENGTH:T[N+1],I),P===3&&this.emitCodePoint(T[N+2],I),I},C.prototype.end=function(){var N;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(N=this.errors)===null||N===void 0||N.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},C}();t.EntityDecoder=x;function S(C){var N="",P=new x(C,function(I){return N+=(0,s.fromCodePoint)(I)});return function(T,O){for(var A=0,R=0;(R=T.indexOf("&",R))>=0;){N+=T.slice(A,R),P.startEntity(O);var M=P.write(T,R+1);if(M<0){A=R+P.end();break}A=R+M,R=M===0?A+1:A}var q=N+T.slice(A);return N="",q}}function E(C,N,P,I){var T=(N&h.BRANCH_LENGTH)>>7,O=N&h.JUMP_TABLE;if(T===0)return O!==0&&I===O?P:-1;if(O){var A=I-O;return A<0||A>=T?-1:C[P+A]-1}for(var R=P,M=R+T-1;R<=M;){var q=R+M>>>1,de=C[q];if(de<I)R=q+1;else if(de>I)M=q-1;else return C[q+T]}return-1}t.determineBranch=E;var j=S(a.default),k=S(i.default);function _(C,N){return N===void 0&&(N=v.Legacy),j(C,N)}t.decodeHTML=_;function D(C){return j(C,v.Attribute)}t.decodeHTMLAttribute=D;function L(C){return j(C,v.Strict)}t.decodeHTMLStrict=L;function $(C){return k(C,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})(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(bn,"__esModule",{value:!0});bn.Parser=void 0;var qn=Z3(Ns),Ol=gn,pr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),re=new Set(["p"]),Pl=new Set(["thead","tbody"]),kl=new Set(["dd","dt"]),_l=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",pr],["input",pr],["output",pr],["button",pr],["datalist",pr],["textarea",pr],["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",_l],["rp",_l],["tbody",Pl],["tfoot",Pl]]),e6=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"]),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: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&&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),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(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 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=r6;var xt={},Ur={};(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})(Ur);var K={},$t=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)}}(),on=F&&F.__assign||function(){return on=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},on.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 je=Ur,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),Ps(this,e)},t}();K.Node=Os;var sa=function(t){$t(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=sa;var rf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(sa);K.Text=rf;var nf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(sa);K.Comment=nf;var of=function(t){$t(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=je.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(sa);K.ProcessingInstruction=of;var ua=function(t){$t(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=ua;var af=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(ua);K.CDATA=af;var sf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(ua);K.Document=sf;var uf=function(t){$t(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?je.ElementType.Script:r==="style"?je.ElementType.Style:je.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=uf;function lf(t){return(0,je.isTag)(t)}K.isTag=lf;function cf(t){return t.type===je.ElementType.CDATA}K.isCDATA=cf;function df(t){return t.type===je.ElementType.Text}K.isText=df;function ff(t){return t.type===je.ElementType.Comment}K.isComment=ff;function pf(t){return t.type===je.ElementType.Directive}K.isDirective=pf;function hf(t){return t.type===je.ElementType.Root}K.isDocument=hf;function n6(t){return Object.prototype.hasOwnProperty.call(t,"children")}K.hasChildren=n6;function Ps(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,on({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=on({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=on({},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=Ps;function Ma(t){for(var e=t.map(function(n){return Ps(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=Ur,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})(xt);var ro={},Bt={},jn={},mf={},Kt={},ks={};Object.defineProperty(ks,"__esModule",{value:!0});function Un(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}ks.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 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(Kt,"__esModule",{value:!0});Kt.encodeNonAsciiHTML=Kt.encodeHTML=void 0;var a6=o6(ks),bf=No,i6=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function s6(t){return gf(i6,t)}Kt.encodeHTML=s6;function u6(t){return gf(bf.xmlReplacer,t)}Kt.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,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=Kt,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 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=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=Kt;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 mr=F&&F.__assign||function(){return mr=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},mr.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(jn,"__esModule",{value:!0});jn.render=void 0;var ct=d6(Ur),jo=mf,vf=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"?jo.encodeXML:jo.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 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}jn.render=la;jn.default=la;function m6(t,e){switch(t.type){case ct.Root:return la(t.children,e);case ct.Doctype:case ct.Directive:return y6(t);case ct.Comment:return S6(t);case ct.CDATA:return w6(t);case ct.Script:case ct.Style:case ct.Tag:return v6(t,e);case ct.Text:return x6(t,e)}}var b6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g6=new Set(["svg","math"]);function v6(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=vf.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&b6.has(t.parent.name)&&(e=mr(mr({},e),{xmlMode:!1}))),!e.xmlMode&&g6.has(t.name)&&(e=mr(mr({},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&&Dl.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=la(t.children,e)),(e.xmlMode||!Dl.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,jo.encodeXML)(n):(0,jo.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(Bt,"__esModule",{value:!0});Bt.getOuterHTML=yf;Bt.getInnerHTML=N6;Bt.getText=no;Bt.textContent=yi;Bt.innerText=xi;var et=xt,E6=C6(jn),T6=Ur;function yf(t,e){return(0,E6.default)(t,e)}function N6(t,e){return(0,et.hasChildren)(t)?t.children.map(function(r){return yf(r,e)}).join(""):""}function no(t){return Array.isArray(t)?t.map(no).join(""):(0,et.isTag)(t)?t.name==="br"?`
|
|
236
|
+
`:no(t.children):(0,et.isCDATA)(t)?no(t.children):(0,et.isText)(t)?t.data:""}function yi(t){return Array.isArray(t)?t.map(yi).join(""):(0,et.hasChildren)(t)&&!(0,et.isComment)(t)?yi(t.children):(0,et.isText)(t)?t.data:""}function xi(t){return Array.isArray(t)?t.map(xi).join(""):(0,et.hasChildren)(t)&&(t.type===T6.ElementType.Tag||(0,et.isCDATA)(t))?xi(t.children):(0,et.isText)(t)?t.data:""}var it={};Object.defineProperty(it,"__esModule",{value:!0});it.getChildren=xf;it.getParent=wf;it.getSiblings=j6;it.getAttributeValue=A6;it.hasAttrib=O6;it.getName=P6;it.nextElementSibling=k6;it.prevElementSibling=_6;var _s=xt;function xf(t){return(0,_s.hasChildren)(t)?t.children:[]}function wf(t){return t.parent||null}function j6(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 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 P6(t){return t.name}function k6(t){for(var e,r=t.next;r!==null&&!(0,_s.isTag)(r);)e=r,r=e.next;return r}function _6(t){for(var e,r=t.prev;r!==null&&!(0,_s.isTag)(r);)e=r,r=e.prev;return r}var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.removeElement=An;Ht.replaceElement=R6;Ht.appendChild=I6;Ht.append=D6;Ht.prependChild=M6;Ht.prepend=L6;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 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(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 D6(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 M6(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 L6(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 Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.filter=$6;Ct.find=Sf;Ct.findOneChild=B6;Ct.findOne=Cf;Ct.existsOne=Ef;Ct.findAll=H6;var Jt=xt;function $6(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,Jt.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function B6(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,Jt.isTag)(a)&&t(a))return a;if(r&&(0,Jt.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,Jt.isTag)(r)&&t(r)||(0,Jt.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,Jt.isTag)(a)&&t(a)&&r.push(a),(0,Jt.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 Vt=xt,On=Ct,Ao={tag_name:function(t){return typeof t=="function"?function(e){return(0,Vt.isTag)(e)&&t(e.name)}:t==="*"?Vt.isTag:function(e){return(0,Vt.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Vt.isText)(e)&&t(e.data)}:function(e){return(0,Vt.isText)(e)&&e.data===t}}};function Rs(t,e){return typeof e=="function"?function(r){return(0,Vt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Vt.isTag)(r)&&r.attribs[t]===e}}function z6(t,e){return function(r){return t(r)||e(r)}}function Tf(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Ao,r)?Ao[r](n):Rs(r,n)});return e.length===0?null:e.reduce(z6)}function F6(t,e){var r=Tf(t);return r?r(e):!0}function q6(t,e,r,n){n===void 0&&(n=1/0);var o=Tf(t);return o?(0,On.filter)(o,e,r,n):[]}function U6(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,On.findOne)(Rs("id",t),e,r)}function V6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,On.filter)(Ao.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,On.filter)(Rs("class",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)(Ao.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 Ml=xt;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,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 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 Is={};Object.defineProperty(Is,"__esModule",{value:!0});Is.getFeed=J6;var K6=Bt,Pn=Et;function J6(t){var e=Oo(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,Pn.getElementsByTagName)("entry",r).map(function(i){var s,u=i.children,l={media:jf(u)};Ne(l,"id","id",u),Ne(l,"title","title",u);var c=(s=Oo("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})};Ne(n,"id","id",r),Ne(n,"title","title",r);var o=(e=Oo("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Ne(n,"description","subtitle",r);var a=Pt("updated",r);return a&&(n.updated=new Date(a)),Ne(n,"author","email",r,!0),n}function Q6(t){var e,r,n=(r=(e=Oo("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,Pn.getElementsByTagName)("item",t.children).map(function(i){var s=i.children,u={media:jf(s)};Ne(u,"id","guid",s),Ne(u,"title","title",s),Ne(u,"link","link",s),Ne(u,"description","description",s);var l=Pt("pubDate",s)||Pt("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};Ne(o,"title","title",n),Ne(o,"link","link",n),Ne(o,"description","description",n);var a=Pt("lastBuildDate",n);return a&&(o.updated=new Date(a)),Ne(o,"author","managingEditor",n,!0),o}var e4=["url","type","lang"],t4=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function jf(t){return(0,Pn.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 Oo(t,e){return(0,Pn.getElementsByTagName)(t,e,!0,1)[0]}function Pt(t,e,r){return r===void 0&&(r=!1),(0,K6.textContent)((0,Pn.getElementsByTagName)(t,e,r,1)).trim()}function Ne(t,e,r,n,o){o===void 0&&(o=!1);var a=Pt(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(Bt,t),r(it,t),r(Ht,t),r(Ct,t),r(Et,t),r(nr,t),r(Is,t);var n=xt;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,S,E){E===void 0&&(E=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,E,j)}:function(v,x,S,E){E===void 0&&(E=S),v[E]=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=bn,i=bn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return i.Parser}});var s=xt,u=xt;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 E=new s.DomHandler(v,x,S);return new a.Parser(E,x)}t.createDomStream=h;var f=Ns;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(Ur);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 n4=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});/*!
|
|
232
237
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
233
238
|
*
|
|
234
239
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
235
240
|
* Released under the MIT License.
|
|
236
|
-
*/function
|
|
237
|
-
`||E==="\f"||E==="\r"}function n(E){var j,k=E.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,""),S()):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),S();return}else if(g==="(")d=d+g,b="in parens";else if(g===""){d&&f.push(d),S();return}else d=d+g;else if(b==="in parens")if(g===")")d=d+g,b="in descriptor";else if(g===""){f.push(d),S();return}else d=d+g;else if(b==="after descriptor"&&!r(g))if(g===""){S();return}else b="in descriptor",m-=1;m+=1}}function S(){var E=!1,j,k,_,D,L={},$,C,N,P,I;for(D=0;D<f.length;D++)$=f[D],C=$[$.length-1],N=$.substring(0,$.length-1),P=parseInt(N,10),I=parseFloat(N),l.test(N)&&C==="w"?((j||k)&&(E=!0),P===0?E=!0:j=P):c.test(N)&&C==="x"?((j||k||_)&&(E=!0),I<0?E=!0:k=I):l.test(N)&&C==="h"?((_||k)&&(E=!0),P===0?E=!0:_=P):E=!0;E?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
|
|
241
|
+
*/function Ll(t){return Object.prototype.toString.call(t)==="[object Object]"}function o4(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=o4;var a4=function(e){return i4(e)&&!s4(e)};function i4(t){return!!t&&typeof t=="object"}function s4(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||c4(t)}var u4=typeof Symbol=="function"&&Symbol.for,l4=u4?Symbol.for("react.element"):60103;function c4(t){return t.$$typeof===l4}function d4(t){return Array.isArray(t)?[]:{}}function vn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?jr(d4(t),t,e):t}function f4(t,e,r){return t.concat(e).map(function(n){return vn(n,r)})}function p4(t,e){if(!e.customMerge)return jr;var r=e.customMerge(t);return typeof r=="function"?r:jr}function h4(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function $l(t){return Object.keys(t).concat(h4(t))}function Af(t,e){try{return e in t}catch{return!1}}function m4(t,e){return Af(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function b4(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){m4(t,o)||(Af(t,o)&&r.isMergeableObject(e[o])?n[o]=p4(o,r)(t[o],e[o],r):n[o]=vn(e[o],r))}),n}function jr(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||f4,r.isMergeableObject=r.isMergeableObject||a4,r.cloneUnlessOtherwiseSpecified=vn;var n=Array.isArray(e),o=Array.isArray(t),a=n===o;return a?n?r.arrayMerge(t,e,r):b4(t,e,r):vn(e,r)}jr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return jr(n,o,r)},{})};var g4=jr,v4=g4,Of={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(F,function(){return function(e){function r(E){return E===" "||E===" "||E===`
|
|
242
|
+
`||E==="\f"||E==="\r"}function n(E){var j,k=E.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,""),S()):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),S();return}else if(g==="(")d=d+g,b="in parens";else if(g===""){d&&f.push(d),S();return}else d=d+g;else if(b==="in parens")if(g===")")d=d+g,b="in descriptor";else if(g===""){f.push(d),S();return}else d=d+g;else if(b==="after descriptor"&&!r(g))if(g===""){S();return}else b="in descriptor",m-=1;m+=1}}function S(){var E=!1,j,k,_,D,L={},$,C,N,P,I;for(D=0;D<f.length;D++)$=f[D],C=$[$.length-1],N=$.substring(0,$.length-1),P=parseInt(N,10),I=parseFloat(N),l.test(N)&&C==="w"?((j||k)&&(E=!0),P===0?E=!0:j=P):c.test(N)&&C==="x"?((j||k||_)&&(E=!0),I<0?E=!0:k=I):l.test(N)&&C==="h"?((_||k)&&(E=!0),P===0?E=!0:_=P):E=!0;E?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 y4=Of.exports,Ms={exports:{}},G=String,Pf=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=Pf();Ms.exports.createColors=Pf;var x4=Ms.exports;const w4={},S4=Object.freeze(Object.defineProperty({__proto__:null,default:w4},Symbol.toStringTag,{value:"Module"})),Ve=Xh(S4);let Bl=x4,Hl=Ve,wi=class kf 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,kf)}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),Hl&&(a=d=>Hl(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),S=n(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return o(">")+n(d)+a(x)+`
|
|
238
243
|
`+S+o("^")}let b=n(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(d)+a(c)+`
|
|
239
244
|
`+b+o("^")}return" "+n(d)+a(c)}).join(`
|
|
240
245
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
241
246
|
|
|
242
247
|
`+e+`
|
|
243
|
-
`),this.name+": "+this.message+e}};var
|
|
248
|
+
`),this.name+": "+this.message+e}};var Ls=wi;wi.default=wi;const zl={after:`
|
|
244
249
|
`,beforeClose:`
|
|
245
250
|
`,beforeComment:`
|
|
246
251
|
`,beforeDecl:`
|
|
247
252
|
`,beforeOpen:" ",beforeRule:`
|
|
248
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
249
|
-
`)){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 C4(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 zl[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"+C4(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=zl[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(`
|
|
250
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(`
|
|
251
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(`
|
|
252
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(`
|
|
253
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(`
|
|
254
|
-
`);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=
|
|
255
|
-
`?(r=1,n+=1):r+=1}return o}let
|
|
256
|
-
`?(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:lt(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:lt(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=r.slice(lt(r,this.source.start),lt(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:lt(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:lt(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 E4().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=T4){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 ca=Ci;Ci.default=Ci;let j4=ca,Ei=class extends j4{constructor(e){super(e),this.type="comment"}};var da=Ei;Ei.default=Ei;let A4=ca,Ti=class extends A4{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 fa=Ti;Ti.default=Ti;let Rf=da,If=fa,O4=ca,{isClean:Df,my:Mf}=Pn,Ms,Lf,$f,Ls;function Bf(t){return t.map(e=>(e.nodes&&(e.nodes=Bf(e.nodes)),delete e.source,e))}function Hf(t){if(t[Df]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Hf(e)}let wt=class zf extends O4{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 Ls(e)];else if(e.name)e=[new Ms(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]||zf.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[Df]&&Hf(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)}))}};wt.registerParse=t=>{Lf=t};wt.registerRule=t=>{Ls=t};wt.registerAtRule=t=>{Ms=t};wt.registerRoot=t=>{$f=t};var or=wt;wt.default=wt;wt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ms.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ls.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=>{wt.rebuild(e)})};let Ff=or,Oo=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 $s=Oo;Oo.default=Oo;Ff.registerAtRule(Oo);let P4=or,qf,Uf,gn=class extends P4{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new qf(new Uf,this,e).stringify()}};gn.registerLazyResult=t=>{qf=t};gn.registerProcessor=t=>{Uf=t};var Bs=gn;gn.default=gn;let k4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_4=(t=21)=>{let e="",r=t|0;for(;r--;)e+=k4[Math.random()*64|0];return e};var R4={nanoid:_4};let{existsSync:I4,readFileSync:D4}=Ue,{dirname:Da,join:M4}=Ue,{SourceMapConsumer:zl,SourceMapGenerator:Fl}=Ue;function L4(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Ni=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=Da(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new zl(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 L4(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=Da(e),I4(e))return this.mapFile=e,D4(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 zl)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=M4(Da(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=Ni;Ni.default=Ni;let{nanoid:$4}=R4,{isAbsolute:ji,resolve:Ai}=Ue,{SourceMapConsumer:B4,SourceMapGenerator:H4}=Ue,{fileURLToPath:ql,pathToFileURL:Un}=Ue,Ul=Ds,z4=Vf,Ma=Ue,La=Symbol("lineToIndexCache"),F4=!!(B4&&H4),Vl=!!(Ai&&ji);function Wl(t){if(t[La])return t[La];let e=t.css.split(`
|
|
257
|
-
`),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[
|
|
258
|
-
`," "];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 E4=_f;function Ci(t,e){new E4(e).stringify(t)}var ca=Ci;Ci.default=Ci;var kn={};kn.isClean=Symbol("isClean");kn.my=Symbol("my");let T4=Ls,N4=_f,j4=ca,{isClean:Kr,my:A4}=kn;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 dt(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 Ti=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Kr]=!1,this[A4]=!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[Kr]=!0}markDirty(){if(this[Kr]){this[Kr]=!1;let e=this;for(;e=e.parent;)e[Kr]=!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(dt(n,this.source.start),dt(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=dt(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:dt(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:dt(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=r.slice(dt(r,this.source.start),dt(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:dt(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:dt(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 N4().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=Ti;Ti.default=Ti;let O4=da,Ni=class extends O4{constructor(e){super(e),this.type="comment"}};var fa=Ni;Ni.default=Ni;let P4=da,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 pa=ji;ji.default=ji;let Rf=fa,If=pa,k4=da,{isClean:Df,my:Mf}=kn,$s,Lf,$f,Bs;function Bf(t){return t.map(e=>(e.nodes&&(e.nodes=Bf(e.nodes)),delete e.source,e))}function Hf(t){if(t[Df]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Hf(e)}let wt=class zf extends k4{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]||zf.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[Df]&&Hf(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)}))}};wt.registerParse=t=>{Lf=t};wt.registerRule=t=>{Bs=t};wt.registerAtRule=t=>{$s=t};wt.registerRoot=t=>{$f=t};var or=wt;wt.default=wt;wt.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=>{wt.rebuild(e)})};let Ff=or,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 Hs=Po;Po.default=Po;Ff.registerAtRule(Po);let _4=or,qf,Uf,yn=class extends _4{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 zs=yn;yn.default=yn;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:La,join:$4}=Ve,{SourceMapConsumer:Fl,SourceMapGenerator:ql}=Ve;function B4(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 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=La(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 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=$4(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}=D4,{isAbsolute:Oi,resolve:Pi}=Ve,{SourceMapConsumer:z4,SourceMapGenerator:F4}=Ve,{fileURLToPath:Ul,pathToFileURL:Vn}=Ve,Vl=Ls,q4=Vf,$a=Ve,Ba=Symbol("lineToIndexCache"),U4=!!(z4&&F4),Wl=!!(Pi&&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 ko=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=Pi(r.from)),Wl&&U4){let n=new q4(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:Pi(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 ha=ko;ko.default=ko;$a&&$a.registerInput&&$a.registerInput(ko);let Wf=or,Gf,Yf,Ar=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()}};Ar.registerLazyResult=t=>{Gf=t};Ar.registerProcessor=t=>{Yf=t};var _n=Ar;Ar.default=Ar;Wf.registerRoot(Ar);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=or,V4=Xf,_o=class extends Kf{get selectors(){return V4.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=_o;_o.default=_o;Kf.registerRule(_o);let W4=Hs,G4=fa,Y4=pa,X4=ha,K4=Vf,J4=_n,Z4=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__:X4.prototype};a.map&&(a.map={...a.map,__proto__:K4.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 J4(n);if(n.type==="decl")return new Y4(n);if(n.type==="rule")return new Z4(n);if(n.type==="comment")return new G4(n);if(n.type==="atrule")return new W4(n);throw new Error("Unknown node type: "+t.type)}var Q4=wn;wn.default=wn;let{dirname:oo,relative:Jf,resolve:Zf,sep:Qf}=Ve,{SourceMapConsumer:e0,SourceMapGenerator:ao}=Ve,{pathToFileURL:Yl}=Ve,e8=ha,t8=!!(e0&&ao),r8=!!(oo&&Zf&&Jf&&Qf),n8=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=`
|
|
259
264
|
`;this.css.includes(`\r
|
|
260
265
|
`)&&(r=`\r
|
|
261
|
-
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||
|
|
262
|
-
`),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(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 Z4(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;Qf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var t0=t8;const $a=39,Yl=34,Vn=92,Xl=47,Wn=10,Kr=32,Gn=12,Yn=9,Xn=13,r8=91,n8=93,o8=40,a8=41,i8=123,s8=125,u8=59,l8=42,c8=58,d8=64,Kn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Jn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,f8=/.[\r\n"'(/\\]/,Kl=/[\da-f]/i;var p8=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 S(){return m}function E(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 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 r8:case n8:case i8:case s8:case c8:case u8:case a8:{let $=String.fromCharCode(a);c=[$,$,m];break}case o8:{if(b=v.length?v.pop()[1]:"",d=n.charCodeAt(m+1),b==="url"&&d!==$a&&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||L){u=m;break}else E("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||f8.test(i)?c=["(","(",m]:(c=["brackets",i,m,u],m=u);break}case $a:case Yl:{l=a===$a?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||L){u=m+1;break}else E("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 d8:{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)===l8?(u=n.indexOf("*/",m+2)+1,u===0&&(o||L?u=n.length:E("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 _(D){x.push(D)}return{back:_,endOfFile:j,nextToken:k,position:S}};let h8=$s,m8=da,b8=fa,g8=kn,Jl=Hs,v8=p8;const Zl={empty:!0,space:!0};function y8(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let x8=class{constructor(e){this.input=e,this.root=new g8,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 h8;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 m8;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=v8(this.input)}decl(e,r){let n=new b8;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]||y8(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,b)=>d+b[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 w8=x8;let S8=or,C8=pa,E8=w8;function _o(t,e){let r=new C8(t,e),n=new E8(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(),r8&&t8&&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 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(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=n8;const Ha=39,Xl=34,Wn=92,Kl=47,Gn=10,Jr=32,Yn=12,Xn=9,Kn=13,o8=91,a8=93,i8=40,s8=41,u8=123,l8=125,c8=59,d8=42,f8=58,p8=64,Jn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,h8=/.[\r\n"'(/\\]/,Jl=/[\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,b,g=n.length,m=0,v=[],x=[];function S(){return m}function E(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 Jr:case Xn:case Kn:case Yn:{u=m;do u+=1,a=n.charCodeAt(u);while(a===Jr||a===Gn||a===Xn||a===Kn||a===Yn);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(b=v.length?v.pop()[1]:"",d=n.charCodeAt(m+1),b==="url"&&d!==Ha&&d!==Xl&&d!==Jr&&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 E("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||h8.test(i)?c=["(","(",m]:(c=["brackets",i,m,u],m=u);break}case Ha:case Xl:{l=a===Ha?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||L){u=m+1;break}else E("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 p8:{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!==Jr&&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)===Jr&&(u+=1)}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{a===Kl&&n.charCodeAt(m+1)===d8?(u=n.indexOf("*/",m+2)+1,u===0&&(o||L?u=n.length:E("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:S}};let b8=Hs,g8=fa,v8=pa,y8=_n,Zl=Fs,x8=m8;const Ql={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 b8;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 g8;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 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 C8=S8;let E8=or,T8=ha,N8=C8;function Ro(t,e){let r=new T8(t,e),n=new N8(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+=`
|
|
263
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+=`
|
|
264
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+=`
|
|
265
|
-
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var zs=_o;_o.default=_o;S8.registerParse(_o);let Oi=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=Oi;Oi.default=Oi;let T8=r0,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 T8(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Fs=Pi;Pi.default=Pi;let Ql={};var n0=function(e){Ql[e]||(Ql[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let N8=or,j8=Bs,A8=t0,O8=zs,ec=Fs,P8=kn,k8=la,{isClean:Ge,my:_8}=Pn,R8=n0;const I8={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},D8={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},M8={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=I8[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=o0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ki(t){return t[Ge]=!1,t.nodes&&t.nodes.forEach(e=>ki(e)),t}let _i={},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=ki(r);else if(r instanceof a0||r instanceof ec)o=ki(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=O8;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[_8]&&N8.rebuild(o)}this.result=new ec(e,o,n),this.helpers={..._i,postcss:_i,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(!D8[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!M8[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[Ge];){e[Ge]=!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=k8;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new A8(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[Ge];)e[Ge]=!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||R8("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[Ge]){s[Ge]=!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[Ge]=!0,r.iterator=n.getIterator());return}else if(this.listeners[i]){r.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[Ge]=!0;let r=o0(e);for(let n of r)if(n===Ar)e.nodes&&e.each(o=>{o[Ge]||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=>{_i=t};var i0=Or;Or.default=Or;P8.registerLazyResult(Or);j8.registerLazyResult(Or);let L8=t0,$8=zs;const B8=Fs;let H8=la,z8=n0,Ri=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=$8;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=H8;this.result=new B8(this._processor,o,this._opts),this.result.css=r;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new L8(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||z8("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 F8=Ri;Ri.default=Ri;let q8=Bs,U8=i0,V8=F8,W8=kn,xn=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 V8(this,e,r):new U8(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var G8=xn;xn.default=xn;W8.registerProcessor(xn);q8.registerProcessor(xn);let s0=$s,u0=da,Y8=or,X8=Ds,l0=fa,c0=Bs,K8=J4,J8=pa,Z8=i0,Q8=Xf,e5=ca,t5=zs,qs=G8,r5=Fs,d0=kn,f0=Hs,n5=la,o5=r0;function ee(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new qs(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=Ro;Ro.default=Ro;E8.registerParse(Ro);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 r0=ki;ki.default=ki;let j8=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 j8(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 A8=or,O8=zs,P8=t0,k8=qs,tc=Us,_8=_n,R8=ca,{isClean:Ye,my:I8}=kn,D8=n0;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},Or=0;function Zr(t){return typeof t=="object"&&typeof t.then=="function"}function o0(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,Or,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Or,r+"Exit"]:[r,r+"Exit"]}function rc(t){let e;return t.type==="document"?e=["Document",Or,"DocumentExit"]:t.type==="root"?e=["Root",Or,"RootExit"]:e=o0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ri(t){return t[Ye]=!1,t.nodes&&t.nodes.forEach(e=>Ri(e)),t}let Ii={},Pr=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=k8;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 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(!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(Zr(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=[rc(e)];for(;r.length>0;){let n=this.visitTick(r);if(Zr(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 Zr(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 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(Zr(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(Zr(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(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===Or){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=o0(e);for(let n of r)if(n===Or)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()}};Pr.registerPostcss=t=>{Ii=t};var i0=Pr;Pr.default=Pr;_8.registerLazyResult(Pr);O8.registerLazyResult(Pr);let B8=t0,H8=qs;const z8=Us;let F8=ca,q8=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=F8;this.result=new z8(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=Di;Di.default=Di;let V8=zs,W8=i0,G8=U8,Y8=_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 G8(this,e,r):new W8(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var X8=Sn;Sn.default=Sn;Y8.registerProcessor(Sn);V8.registerProcessor(Sn);let s0=Hs,u0=fa,K8=or,J8=Ls,l0=pa,c0=zs,Z8=Q4,Q8=ha,e5=i0,t5=Xf,r5=da,n5=qs,Vs=X8,o5=Us,d0=_n,f0=Fs,a5=ca,i5=r0;function ee(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Vs(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:
|
|
266
271
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
267
|
-
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 ee([o(u)]).process(i,s)},o};ee.stringify=a5;ee.parse=n5;ee.fromJSON=Z8;ee.list=t5;ee.comment=t=>new u0(t);ee.atRule=t=>new s0(t);ee.decl=t=>new l0(t);ee.rule=t=>new f0(t);ee.root=t=>new d0(t);ee.document=t=>new c0(t);ee.CssSyntaxError=J8;ee.Declaration=l0;ee.Container=K8;ee.Processor=Vs;ee.Document=c0;ee.Comment=u0;ee.Warning=i5;ee.AtRule=s0;ee.Result=o5;ee.Input=Q8;ee.Rule=f0;ee.Root=d0;ee.Node=r5;e5.registerPostcss(ee);var s5=ee;ee.default=ee;const u5=tf,nc=n4,{isPlainObject:l5}=Ds,oc=v4,c5=y4,{parse:d5}=s5,f5=["img","audio","video","picture","svg","object","map","iframe","embed"],p5=["script","style"];function hr(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function ft(t,e){return{}.hasOwnProperty.call(t,e)}function ac(t,e){const r=[];return hr(t,function(n){e(n)&&r.push(n)}),r}function h5(t){for(const e in t)if(ft(t,e))return!1;return!0}function m5(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 b5=Cn;const g5=/^[^\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(T,O){const A=this;this.tag=T,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&&f5.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Cn.defaults,e),e.parser=Object.assign({},v5,e.parser);const i=function(T){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(T)>-1};p5.forEach(function(T){i(T)&&!e.allowVulnerableTags&&console.warn(`
|
|
268
273
|
|
|
269
274
|
⚠️ Your \`allowedTags\` option includes, \`${T}\`, which is inherently
|
|
270
275
|
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
271
276
|
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
272
277
|
and ensure you are accounting for this risk.
|
|
273
278
|
|
|
274
|
-
`)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},pr(e.allowedAttributes,function(T,O){u[O]=[];const A=[];T.forEach(function(R){typeof R=="string"&&R.indexOf("*")>=0?A.push(rc(R).replace(/\\\*/g,".*")):u[O].push(R)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},f={};pr(e.allowedClasses,function(T,O){if(u&&(ct(u,O)||(u[O]=[]),u[O].push("class")),c[O]=T,Array.isArray(T)){const A=[];c[O]=[],f[O]=[],T.forEach(function(R){typeof R=="string"&&R.indexOf("*")>=0?A.push(rc(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(T,O){let A;typeof T=="function"?A=T:typeof T=="string"&&(A=wn.simpleTransform(T)),O==="*"?b=A:d[O]=A});let g,m,v,x,S,E,j=!1;_();const k=new i5.Parser({onopentag:function(T,O){if(e.onOpenTag&&e.onOpenTag(T,O),e.enforceHtmlBoundary&&T==="html"&&_(),S){E++;return}const A=new a(T,O);m.push(A);let R=!1;const M=!!A.text;let q;if(ct(d,T)&&(q=d[T](T,O),A.attribs=O=q.attribs,q.text!==void 0&&(A.innerText=q.text),T!==q.tagName&&(A.name=T=q.tagName,x[g]=q.tagName)),b&&(q=b(T,O),A.attribs=O=q.attribs,T!==q.tagName&&(A.name=T=q.tagName,x[g]=q.tagName)),(!i(T)||e.disallowedTagsMode==="recursiveEscape"&&!f5(v)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(R=!0,v[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(T)!==-1&&(S=!0,E=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,T):n+=B,j=!0}return}o=n,n=""}n+="<"+T,T==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),R&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?pr(O,function(B,H){n+=" "+H+'="'+D(B||"",!0)+'"'}):(!u||ct(u,T)||u["*"])&&pr(O,function(B,H){if(!m5.test(H)){delete A.attribs[H];return}if(B===""&&!e.allowedEmptyAttributes.includes(H)&&(e.nonBooleanAttributes.includes(H)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[H];return}let he=!1;if(!u||ct(u,T)&&u[T].indexOf(H)!==-1||u["*"]&&u["*"].indexOf(H)!==-1||ct(l,T)&&l[T].test(H)||l["*"]&&l["*"].test(H))he=!0;else if(u&&u[T]){for(const X of u[T])if(s5(X)&&X.name&&X.name===H){he=!0;let z="";if(X.multiple===!0){const Ee=B.split(" ");for(const ye of Ee)X.values.indexOf(ye)!==-1&&(z===""?z=ye:z+=" "+ye)}else X.values.indexOf(B)>=0&&(z=B);B=z}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(H)!==-1&&L(T,B)){delete A.attribs[H];return}if(T==="script"&&H==="src"){let X=!0;try{const z=$(B);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ee=(e.allowedScriptHostnames||[]).find(function(be){return be===z.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(be){return z.url.hostname===be||z.url.hostname.endsWith(`.${be}`)});X=Ee||ye}}catch{X=!1}if(!X){delete A.attribs[H];return}}if(T==="iframe"&&H==="src"){let X=!0;try{const z=$(B);if(z.isRelativeUrl)X=ct(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ee=(e.allowedIframeHostnames||[]).find(function(be){return be===z.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(be){return z.url.hostname===be||z.url.hostname.endsWith(`.${be}`)});X=Ee||ye}}catch{X=!1}if(!X){delete A.attribs[H];return}}if(H==="srcset")try{let X=u5(B);if(X.forEach(function(z){L("srcset",z.url)&&(z.evil=!0)}),X=oc(X,function(z){return!z.evil}),X.length)B=p5(oc(X,function(z){return!z.evil})),A.attribs[H]=B;else{delete A.attribs[H];return}}catch{delete A.attribs[H];return}if(H==="class"){const X=c[T],z=c["*"],Ee=h[T],ye=f[T],be=f["*"],Ve=h["*"],it=[Ee,Ve].concat(ye,be).filter(function(We){return We});if(X&&z?B=I(B,nc(X,z),it):B=I(B,X||z,it),!B.length){delete A.attribs[H];return}}if(H==="style"){if(e.parseStyleAttributes)try{const X=l5(T+" {"+B+"}",{map:!1}),z=C(X,e.allowedStyles);if(B=N(z),B.length===0){delete A.attribs[H];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+T+" {"+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[H];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+H,B&&B.length?n+='="'+D(B,!0)+'"':e.allowedEmptyAttributes.includes(H)&&(n+='=""')}else delete A.attribs[H]}),e.selfClosing.indexOf(T)!==-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(T){if(S)return;const O=m[m.length-1];let A;if(O&&(A=O.tag,T=O.innerText!==void 0?O.innerText:T),e.disallowedTagsMode==="completelyDiscard"&&!i(A))T="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=T;else if(!j){const R=D(T,!1);e.textFilter?n+=e.textFilter(R,A):n+=R}if(m.length){const R=m[m.length-1];R.text+=T}},onclosetag:function(T,O){if(e.onCloseTag&&e.onCloseTag(T,O),S)if(E--,!E)S=!1;else return;const A=m.pop();if(!A)return;if(A.tag!==T){m.push(A);return}S=e.enforceHtmlBoundary?T==="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]&&(T=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(T)!==-1||O&&!i(T)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){R&&(n=o,o="");return}n+="</"+T+">",R&&(n=o+D(n),o=""),j=!1}},e.parser);return k.write(t),k.end(),n;function _(){n="",g=0,m=[],v={},x={},S=!1,E=0}function D(T,O){return typeof T!="string"&&(T=T+""),e.parser.decodeEntities&&(T=T.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(T=T.replace(/"/g,"""))),T=T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(T=T.replace(/"/g,""")),T}function L(T,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 ct(e.allowedSchemesByTag,T)?e.allowedSchemesByTag[T].indexOf(R)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(R)===-1}function $(T){if(T=T.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),T.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(T,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function C(T,O){if(!O)return T;const A=T.nodes[0];let R;return O[A.selector]&&O["*"]?R=nc(O[A.selector],O["*"]):R=O[A.selector]||O["*"],R&&(T.nodes[0].nodes=A.nodes.reduce(P(R),[])),T}function N(T){return T.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function P(T){return function(O,A){return ct(T,A.prop)&&T[A.prop].some(function(M){return M.test(A.value)})&&O.push(A),O}}function I(T,O,A){return O?(T=T.split(/\s+/),T.filter(function(R){return O.indexOf(R)!==-1||A.some(function(M){return M.test(R)})}).join(" ")):T}}const b5={decodeEntities:!0};wn.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};wn.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=Ho(h5),g5=[{command:"bold",icon:oh,label:"Bold"},{command:"italic",icon:dh,label:"Italic"},{command:"underline",icon:xh,label:"Underline"},{command:"strikeThrough",icon:vh,label:"Strikethrough"},{command:"insertUnorderedList",icon:ph,label:"Bullet List"},{command:"insertOrderedList",icon:fh,label:"Numbered List"}],v5={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$/]}}},y5=({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,v5);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(pn,{children:[g5.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 ${g(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(v,{className:"h-3.5 w-3.5"})})}),p.jsx(Xt,{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(Ui,{className:"h-3.5 w-3.5"})})}),p.jsx(Xt,{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"})]})]})})]})},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$/]}}},Us=({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=er(),b=Cn();let g,m,v;try{const{connectors:D,events:L}=ne($=>({events:$.events}));g=D.connect,m=D.drag,v=L.selected}catch{}const x=Eo(t,b),S=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`,E=ht(r,d,16),j=ht(a,d,150)/100,k=ht(i,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:D=>D&&g&&m&&g(m(D)),className:`cursor-move ${v?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${E}px`,fontWeight:n,fontFamily:o,lineHeight:j,letterSpacing:`${k}px`,textAlign:s,color:u,margin:S,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:p0(Eo(e||x,b),x5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):p.jsx("p",{children:x})})},w5=()=>{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(y5,{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(gt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"center",label:p.jsx($i,{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(Je,{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(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(ef,{})})]})};Us.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{top:0,right:0,bottom:0,left:0},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:w5}};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}},Vs=({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=er(),d=Cn();let b,g,m;try{const{connectors:C,events:N}=ne(P=>({events:P.events}));b=C.connect,g=C.drag,m=N.selected}catch{}const v=Eo(t,d),x=`h${e}`;let S;i==="auto"?S=((D=on[e])==null?void 0:D[f])||((L=on[e])==null?void 0:L.desktop)||36:S=ht(i,f,(($=on[e])==null?void 0:$.desktop)||36);const E=ht(s,f,120)/100,j=ht(u,f,-.5),k=ht(h,f,100),_=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx(x,{ref:C=>C&&b&&g&&b(g(C)),className:`cursor-move ${m?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:a,fontSize:`${S}px`,lineHeight:E,letterSpacing:`${j}px`,margin:_,textTransform:c,opacity:k/100},children:v})},S5=()=>{var a;const t=er(),{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:ht(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx(Mt,{label:"Text",value:r.text,onChange:i=>e(s=>s.text=i)}),p.jsx(gt,{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(gt,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"center",label:p.jsx($i,{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(Je,{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(De,{label:"Margin",values:n,onChange:i=>e(s=>s.margin=i)})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(ef,{})})]})};Vs.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:S5}};const Ws=({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"})=>{let c,h,f;try{const{connectors:b,events:g}=ne(m=>({events:m.events}));c=b.connect,h=b.drag,f=g.selected}catch{}const d=typeof s=="object"?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`;return p.jsx("img",{ref:b=>b&&c&&h&&c(h(b)),src:t,alt:e,className:`cursor-move ${f?"ring-2 ring-primary ring-offset-2":""}`,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:d,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},C5=()=>{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(Mt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Mt,{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(oa,{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(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};Ws.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:C5}};const Gs=({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})=>{let i,s,u;try{const{connectors:c,events:h}=ne(f=>({events:f.events}));i=c.connect,s=c.drag,u=h.selected}catch{}const l=typeof o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}px`;return p.jsx("hr",{ref:c=>c&&i&&s&&(i==null?void 0:i(s==null?void 0:s(c))),className:`cursor-move border-0 ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:l,opacity:a/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},E5=()=>{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(Je,{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(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};Gs.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:E5}};const Ys=({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"})]})},T5=()=>{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})]})})};Ys.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:T5}};const N5=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function j5(){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 A5(t,e={}){const r=await fetch(`${N5}${t}`,{...e,headers:{...j5(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function O5(t,e){return(await A5(`/videos/${t}/${e||""}`)).data}function P5(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 ha="Checkbox",[k5]=tr(ha),[_5,Xs]=k5(ha);function R5(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]=zr({prop:r,defaultProp:o??!1,onChange:u,caller:ha}),[b,g]=y.useState(null),[m,v]=y.useState(null),x=y.useRef(!1),S=b?!!i||!!b.closest("form"):!0,E={checked:f,disabled:a,setChecked:d,control:b,setControl:g,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Pt(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:v};return p.jsx(_5,{scope:e,...E,children:I5(h)?h(E):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}=Xs(h0,t),g=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":Pt(u)?"mixed":u,"aria-required":l,"data-state":x0(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:g,onKeyDown:ue(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ue(r,v=>{h(x=>Pt(x)?!0:!x),b&&d&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});m0.displayName=h0;var Ks=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(R5,{__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})]})})});Ks.displayName=ha;var b0="CheckboxIndicator",g0=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,a=Xs(b0,r);return p.jsx(rr,{present:n||Pt(a.checked)||a.checked===!0,children:p.jsx(me.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}=Xs(v0,t),b=we(r,d),g=P5(a),m=Id(n);y.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(S,"checked").set,k=!o.current;if(g!==a&&j){const _=new Event("click",{bubbles:k});x.indeterminate=Pt(a),j.call(x,Pt(a)?!1:a),x.dispatchEvent(_)}},[f,g,a,o]);const v=y.useRef(Pt(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:b,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});y0.displayName=v0;function I5(t){return typeof t=="function"}function Pt(t){return t==="indeterminate"}function x0(t){return Pt(t)?"indeterminate":t?"checked":"unchecked"}const w0=y.forwardRef(({className:t,...e},r)=>p.jsx(Ks,{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(zi,{className:"h-4 w-4"})})}));w0.displayName=Ks.displayName;const D5=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,a]=w.useState(!1),i=()=>{r&&t&&!o&&(t(),a(!0))};return p.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[p.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:p.jsx(pt,{disabled:!r||o||e,onClick:i,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(zi,{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:s=>n(s===!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;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:Ss(t),className:Qe(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),children:t.children})},M5={...Cs,display:"flex",justifyContent:"center",alignItems:"center"};qr.craft={props:M5,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:aa}};const L5=(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},$5=({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:()=>O5(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(D5,{onDownload:l,disabled:r})]})})})})},Js=({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=er(),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}=Lt(v=>({options:v.options}));c=m.enabled}catch{}const h=L5(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($5,{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."})]})]})})},B5=()=>{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(Je,{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(De,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};Js.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{top:0,right:0,bottom:0,left:0},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:B5}};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})=>{let i,s,u;try{const{connectors:h,events:f}=ne(d=>({events:d.events}));i=h.connect,s=h.drag,u=f.selected}catch{}const l=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`,c=typeof n=="object"?`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`:`${n}px`;return p.jsx("div",{ref:h=>h&&i&&s&&(i==null?void 0:i(s==null?void 0:s(h))),className:`cursor-move w-full ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:l,margin:c,alignItems:o},children:a})},H5=()=>{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(gt,{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(De,{label:"Padding",values:r,onChange:o=>t(a=>a.padding=o)}),p.jsx(De,{label:"Margin",values:n,onChange:o=>t(a=>a.margin=o)})]})]})};S0.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},alignItems:"stretch"},related:{settings:H5}};const Zs=({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})=>{let h,f,d;try{const{connectors:g,events:m}=ne(v=>({events:v.events}));h=g.connect,f=g.drag,d=m.selected}catch{}const b=typeof l=="object"?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx("a",{ref:g=>g&&h&&f&&h(f(g)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:g=>g.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${d?"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})},z5=()=>{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(Mt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx(Mt,{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(gt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Bi,{className:"h-3 w-3"})},{value:"center",label:p.jsx($i,{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(Je,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(oa,{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(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};Zs.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{top:0,right:0,bottom:0,left:0},opacity:100},related:{settings:z5}};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"})=>{let c,h,f;try{const{connectors:b,events:g}=ne(m=>({events:m.events}));c=b.connect,h=b.drag,f=g.selected}catch{}const d=typeof s=="object"?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`;return p.jsx("img",{ref:b=>b&&c&&h&&c(h(b)),src:t,alt:e,className:`cursor-move ${f?"ring-2 ring-primary ring-offset-2":""}`,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:d,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},F5=()=>{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(Mt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Mt,{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(oa,{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(De,{label:"Margin",values:r,onChange:n=>t(o=>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:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:F5}};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 E0=({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:Qe(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(bt,{is:qr,id:`section-wrapper-${a}`,children:p.jsx(bt,{is:Tn,canvas:!0,id:`section-container-${i}`,children:t})})})};E0.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Qs=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:Ss(t),className:Qe(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e&&r&&e(r(o))},children:t.children})};Qs.craft={isCanvas:!0,props:Cs,related:{settings:aa}};const T0=({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})=>{let v,x,S;try{const{connectors:_,events:D}=ne(L=>({events:L.events}));v=_.connect,x=_.drag,S=D.selected}catch{}const E=typeof e=="object"?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:`${e}px`,j=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${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:E,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))})]})})})};T0.craft={displayName:"Footer",props:{background:"transparent",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:aa}};const q5=()=>{const{connectors:t}=Lt(),e=[{name:"Wrapper",icon:bh,element:p.jsx(bt,{is:qr,canvas:!0})},{name:"Container",icon:gh,element:p.jsx(bt,{is:Tn,canvas:!0})},{name:"Div",icon:Fa,element:p.jsx(bt,{is:Qs,canvas:!0})}],r=[{name:"Heading",icon:Ec,element:p.jsx(Vs,{})},{name:"Text",icon:Oc,element:p.jsx(Us,{})},{name:"Button",icon:jc,element:p.jsx(ws,{})},{name:"Link",icon:Ui,element:p.jsx(Zs,{})}],n=[{name:"Image",icon:Tc,element:p.jsx(Ws,{})},{name:"Video",icon:Cc,element:p.jsx(Js,{})}],o=[{name:"Divider",icon:Nc,element:p.jsx(Gs,{})},{name:"Spacer",icon:Ac,element:p.jsx(Ys,{})}],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(pt,{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 U5=y.createContext(void 0);function eu(t){const e=y.useContext(U5);return t||e||"ltr"}function V5(t,[e,r]){return Math.min(r,Math.max(e,t))}function W5(t,e){return y.useReducer((r,n)=>e[r][n]??r,t)}var tu="ScrollArea",[N0]=tr(tu),[G5,Me]=N0(tu),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),[S,E]=y.useState(0),[j,k]=y.useState(!1),[_,D]=y.useState(!1),L=we(e,C=>u(C)),$=eu(o);return p.jsx(G5,{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:E,children:p.jsx(me.div,{dir:$,...i,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});j0.displayName=tu;var A0="ScrollAreaViewport",O0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=t,i=Me(A0,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})})]})});O0.displayName=A0;var at="ScrollAreaScrollbar",ru=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Me(at,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(Y5,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(X5,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(P0,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(nu,{...n,ref:e}):null});ru.displayName=at;var Y5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Me(at,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(P0,{"data-state":a?"visible":"hidden",...n,ref:e})})}),X5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Me(at,t.__scopeScrollArea),a=t.orientation==="horizontal",i=ba(()=>u("SCROLL_END"),100),[s,u]=W5("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(nu,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:ue(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ue(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),P0=y.forwardRef((t,e)=>{const r=Me(at,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 Pr(r.viewport,u),Pr(r.content,u),p.jsx(rr,{present:n||a,children:p.jsx(nu,{"data-state":a?"visible":"hidden",...o,ref:e})})}),nu=y.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Me(at,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 tS(f,i.current,s,d)}return r==="horizontal"?p.jsx(K5,{...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(J5,{...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}),K5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Me(at,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(_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":ma(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:Io(i.paddingLeft),paddingEnd:Io(i.paddingRight)}})}})}),J5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Me(at,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(_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":ma(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:Io(i.paddingTop),paddingEnd:Io(i.paddingBottom)}})}})}),[Z5,k0]=N0(at),_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=Me(at,r),[b,g]=y.useState(null),m=we(e,L=>g(L)),v=y.useRef(null),x=y.useRef(""),S=d.viewport,E=n.content-n.viewport,j=Ie(c),k=Ie(u),_=ba(h,10);function D(L){if(v.current){const $=L.clientX-v.current.left,C=L.clientY-v.current.top;l({x:$,y:C})}}return y.useEffect(()=>{const L=$=>{const C=$.target;(b==null?void 0:b.contains(C))&&j($,E)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[S,b,E,j]),y.useEffect(k,[n,k]),Pr(b,_),Pr(d.content,_),p.jsx(Z5,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Ie(a),onThumbPointerUp:Ie(i),onThumbPositionChange:k,onThumbPointerDown:Ie(s),children:p.jsx(me.div,{...f,ref:m,style:{position:"absolute",...f.style},onPointerDown:ue(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:ue(t.onPointerMove,D),onPointerUp:ue(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})})})}),Ro="ScrollAreaThumb",R0=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(Q5,{ref:e,...n})})}),Q5=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,a=Me(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=rS(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(),b=h.clientX-d.left,g=h.clientY-d.top;i.onThumbPointerDown({x:b,y:g})}),onPointerUp:ue(t.onPointerUp,i.onThumbPointerUp)})});R0.displayName=Ro;var ou="ScrollAreaCorner",I0=y.forwardRef((t,e)=>{const r=Me(ou,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(eS,{...t,ref:e}):null});I0.displayName=ou;var eS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Me(ou,r),[a,i]=y.useState(0),[s,u]=y.useState(0),l=!!(a&&s);return Pr(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),Pr(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 D0(t,e){const r=t/e;return isNaN(r)?0:r}function ma(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 tS(t,e,r,n="ltr"){const o=ma(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 ic(t,e,r="ltr"){const n=ma(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=V5(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 rS=(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=Ie(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 Pr(t,e){const r=Ie(e);Rt(()=>{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,nS=O0,oS=I0;const au=y.forwardRef(({className:t,children:e,...r},n)=>p.jsxs($0,{ref:n,className:Se("relative overflow-hidden",t),...r,children:[p.jsx(nS,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx(B0,{}),p.jsx(oS,{})]}));au.displayName=$0.displayName;const B0=y.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(ru,{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(R0,{className:"relative flex-1 rounded-full bg-border"})}));B0.displayName=ru.displayName;const aS=()=>{const{selected:t,actions:e}=Lt(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(au,{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"})})})},iS=t=>{switch(t){case"Container":return Fa;case"Text":return Oc;case"Heading":return Ec;case"Button":return jc;case"Image":return Tc;case"Divider":return Nc;case"Spacer":return Ac;case"Video":return Sh;case"Columns":return ih;case"Link":return Ui;default:return Fa}},H0=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a})=>{const{node:i,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=Lt((N,P)=>{var R,M;const I=N.nodes[t],T=((R=I==null?void 0:I.data)==null?void 0:R.nodes)||[],O=N.events.selected?Array.from(N.events.selected)[0]:null,A=(M=I==null?void 0:I.data)==null?void 0:M.parent;return{node:I,childNodes:T,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",S=iS(g),E=a===t,j=i.data.isCanvas,k=N=>{N.stopPropagation(),x||s.selectNode(t)},_=N=>{N.stopPropagation(),f(!h)},D=N=>{if(x){N.preventDefault();return}N.stopPropagation(),r(t,c)},L=N=>{N.preventDefault(),N.stopPropagation(),a&&a!==t&&j&&b(!0)},$=N=>{N.stopPropagation(),b(!1)},C=N=>{N.preventDefault(),N.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"} ${E?"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:C,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(Fi,{className:"h-3 w-3"}):p.jsx(qi,{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":g})]}),m&&h&&p.jsx("div",{children:l.map(N=>p.jsx(H0,{nodeId:N,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a},N))})]})},sS=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:a}=Lt(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(H0,{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=uS(t),r=y.forwardRef((n,o)=>{const{children:a,...i}=n,s=y.Children.toArray(a),u=s.find(cS);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 uS(t){const e=y.forwardRef((r,n)=>{const{children:o,...a}=r;if(y.isValidElement(o)){const i=fS(o),s=dS(a,o.props);return o.type!==y.Fragment&&(s.ref=n?Lo(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 lS=Symbol("radix.slottable");function cS(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===lS}function dS(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 fS(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 pS(t){const e=t+"CollectionProvider",[r,n]=tr(e),[o,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:m,children:v}=g,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((g,m)=>{const{scope:v,children:x}=g,S=a(s,v),E=we(m,S.collectionRef);return p.jsx(u,{ref:E,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=sc(c),d=w.forwardRef((g,m)=>{const{scope:v,children:x,...S}=g,E=w.useRef(null),j=we(m,E),k=a(c,v);return w.useEffect(()=>(k.itemMap.set(E,{ref:E,...S}),()=>void k.itemMap.delete(E))),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 S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(m.itemMap.values()).sort((k,_)=>S.indexOf(k.ref.current)-S.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},b,n]}var Ba="rovingFocusGroup.onEntryFocus",hS={bubbles:!1,cancelable:!0},_n="RovingFocusGroup",[Ii,z0,mS]=pS(_n),[bS,F0]=tr(_n,[mS]),[gS,vS]=bS(_n),q0=y.forwardRef((t,e)=>p.jsx(Ii.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Ii.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(yS,{...t,ref:e})})}));q0.displayName=_n;var yS=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),b=eu(a),[g,m]=zr({prop:i,defaultProp:s??null,onChange:u,caller:_n}),[v,x]=y.useState(!1),S=Ie(l),E=z0(r),j=y.useRef(!1),[k,_]=y.useState(0);return y.useEffect(()=>{const D=f.current;if(D)return D.addEventListener(Ba,S),()=>D.removeEventListener(Ba,S)},[S]),p.jsx(gS,{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(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,D=>{const L=!j.current;if(D.target===D.currentTarget&&L&&!v){const $=new CustomEvent(Ba,hS);if(D.currentTarget.dispatchEvent($),!$.defaultPrevented){const C=E().filter(O=>O.focusable),N=C.find(O=>O.active),P=C.find(O=>O.id===g),T=[N,P,...C].filter(Boolean).map(O=>O.ref.current);W0(T,c)}}j.current=!1}),onBlur:ue(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=vS(U0,r),h=c.currentTabStopId===l,f=z0(r),{onFocusableItemAdd:d,onFocusableItemRemove:b,currentTabStopId:g}=c;return y.useEffect(()=>{if(n)return d(),()=>b()},[n,d,b]),p.jsx(Ii.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=SS(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(E=>E.focusable).map(E=>E.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const E=S.indexOf(m.currentTarget);S=c.loop?CS(S,E+1):S.slice(E+1)}setTimeout(()=>W0(S))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:g!=null}):i})})});V0.displayName=U0;var xS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function wS(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function SS(t,e,r){const n=wS(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return xS[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 CS(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var ES=q0,TS=V0,G0="Toggle",iu=y.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=t,[i,s]=zr({prop:r,onChange:o,defaultProp:n??!1,caller:G0});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)})})});iu.displayName=G0;var Y0=iu,zt="ToggleGroup",[X0]=tr(zt,[F0]),K0=F0(),su=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx(NS,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx(jS,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${zt}\``)});su.displayName=zt;var[J0,Z0]=X0(zt),NS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=zr({prop:r,defaultProp:n??"",onChange:o,caller:zt});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})})}),jS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=zr({prop:r,defaultProp:n??[],onChange:o,caller:zt}),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})})});su.displayName=zt;var[AS,OS]=X0(zt),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=eu(i),h={role:"group",dir:c,...u};return p.jsx(AS,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(ES,{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",ep=w.forwardRef((t,e)=>{const r=Z0(Do,t.__scopeToggleGroup),n=OS(Do,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(TS,{asChild:!0,...o,focusable:!i,active:a,ref:u,children:p.jsx(uc,{...s,ref:e})}):p.jsx(uc,{...s,ref:e})});ep.displayName=Do;var uc=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,a=Z0(Do,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return p.jsx(iu,{...s,...o,ref:e,onPressedChange:u=>{u?a.onItemActivate(n):a.onItemDeactivate(n)}})}),tp=su,rp=ep;const np=kc("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"}}),PS=y.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(Y0,{ref:o,className:Se(np({variant:e,size:r,className:t})),...n}));PS.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:Se("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:Se(np({variant:i.variant||r,size:i.size||n}),t),...o,children:e})});ip.displayName=rp.displayName;var kS=t=>{switch(t){case"success":return IS;case"info":return MS;case"warning":return DS;case"error":return LS;default:return null}},_S=Array(12).fill(0),RS=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},_S.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),IS=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"})),DS=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"})),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:"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"})),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:"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"})),$S=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"})),BS=()=>{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},Di=1,HS=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:Di++,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(FS(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)||Di++;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 HS,zS=(t,e)=>{let r=(e==null?void 0:e.id)||Di++;return Te.addToast({title:t,...e,id:r}),r},FS=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",qS=zS,US=()=>Te.toasts,VS=()=>Te.getActiveToasts(),WS=Object.assign(qS,{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:US,getToasts:VS});function GS(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))}GS(`: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%)}
|
|
275
|
-
`);function Zn(t){return t.label!==void 0}var YS=3,XS="32px",KS="16px",lc=4e3,JS=356,ZS=14,QS=20,eC=200;function He(...t){return t.filter(Boolean).join(" ")}function tC(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var rC=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:S,toasts:E,expanded:j,removeToast:k,defaultRichColors:_,closeButton:D,style:L,cancelButtonStyle:$,actionButtonStyle:C,className:N="",descriptionClassName:P="",duration:I,position:T,gap:O,loadingIcon:A,expandByDefault:R,classNames:M,icons:q,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:Z}=t,[B,H]=w.useState(null),[he,X]=w.useState(null),[z,Ee]=w.useState(!1),[ye,be]=w.useState(!1),[Ve,it]=w.useState(!1),[We,Rn]=w.useState(!1),[ga,In]=w.useState(!1),[va,Ur]=w.useState(0),[ar,lu]=w.useState(0),Vr=w.useRef(d.duration||I||lc),cu=w.useRef(null),Ft=w.useRef(null),cp=S===0,dp=S+1<=v,ke=d.type,ir=d.dismissible!==!1,fp=d.className||"",pp=d.descriptionClassName||"",Dn=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]),du=w.useMemo(()=>d.duration||I||lc,[d.duration,I]),ya=w.useRef(0),sr=w.useRef(0),fu=w.useRef(0),ur=w.useRef(null),[mp,bp]=T.split("-"),pu=w.useMemo(()=>x.reduce((U,te,le)=>le>=Dn?U:U+te.height,0),[x,Dn]),hu=BS(),gp=d.invert||f,xa=ke==="loading";sr.current=w.useMemo(()=>Dn*O+pu,[Dn,pu]),w.useEffect(()=>{Vr.current=du},[du]),w.useEffect(()=>{Ee(!0)},[]),w.useEffect(()=>{let U=Ft.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(Le=>Le.toastId!==d.id))}},[m,d.id]),w.useLayoutEffect(()=>{if(!z)return;let U=Ft.current,te=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=te,lu(le),m(Le=>Le.find($e=>$e.toastId===d.id)?Le.map($e=>$e.toastId===d.id?{...$e,height:le}:$e):[{toastId:d.id,height:le,position:d.position},...Le])},[z,d.title,d.description,m,d.id]);let Et=w.useCallback(()=>{be(!0),Ur(sr.current),m(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{k(d)},eC)},[d,k,m,sr]);w.useEffect(()=>{if(d.promise&&ke==="loading"||d.duration===1/0||d.type==="loading")return;let U;return j||g||Z&&hu?(()=>{if(fu.current<ya.current){let te=new Date().getTime()-ya.current;Vr.current=Vr.current-te}fu.current=new Date().getTime()})():Vr.current!==1/0&&(ya.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=d.onAutoClose)==null||te.call(d,d),Et()},Vr.current)),()=>clearTimeout(U)},[j,g,d,ke,Z,hu,Et]),w.useEffect(()=>{d.delete&&Et()},[Et,d.delete]);function vp(){var U,te,le;return q!=null&&q.loading?w.createElement("div",{className:He(M==null?void 0:M.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":ke==="loading"},q.loading):A?w.createElement("div",{className:He(M==null?void 0:M.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":ke==="loading"},A):w.createElement(RS,{className:He(M==null?void 0:M.loader,(le=d==null?void 0:d.classNames)==null?void 0:le.loader),visible:ke==="loading"})}return w.createElement("li",{tabIndex:0,ref:Ft,className:He(N,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[ke],(r=d==null?void 0:d.classNames)==null?void 0:r[ke]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:_,"data-styled":!(d.jsx||d.unstyled||b),"data-mounted":z,"data-promise":!!d.promise,"data-swiped":ga,"data-removed":ye,"data-visible":dp,"data-y-position":mp,"data-x-position":bp,"data-index":S,"data-front":cp,"data-swiping":Ve,"data-dismissible":ir,"data-type":ke,"data-invert":gp,"data-swipe-out":We,"data-swipe-direction":he,"data-expanded":!!(j||R&&z),style:{"--index":S,"--toasts-before":S,"--z-index":E.length-S,"--offset":`${ye?va:sr.current}px`,"--initial-height":R?"auto":`${ar}px`,...L,...d.style},onDragEnd:()=>{it(!1),H(null),ur.current=null},onPointerDown:U=>{xa||!ir||(cu.current=new Date,Ur(sr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(it(!0),ur.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,le,Le;if(We||!ir)return;ur.current=null;let $e=Number(((U=Ft.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((te=Ft.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qt=new Date().getTime()-((le=cu.current)==null?void 0:le.getTime()),Be=B==="x"?$e:Tt,Nt=Math.abs(Be)/qt;if(Math.abs(Be)>=QS||Nt>.11){Ur(sr.current),(Le=d.onDismiss)==null||Le.call(d,d),X(B==="x"?$e>0?"right":"left":Tt>0?"down":"up"),Et(),Rn(!0),In(!1);return}it(!1),H(null)},onPointerMove:U=>{var te,le,Le,$e;if(!ur.current||!ir||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let Tt=U.clientY-ur.current.y,qt=U.clientX-ur.current.x,Be=(le=t.swipeDirections)!=null?le:tC(T);!B&&(Math.abs(qt)>1||Math.abs(Tt)>1)&&H(Math.abs(qt)>Math.abs(Tt)?"x":"y");let Nt={x:0,y:0};B==="y"?(Be.includes("top")||Be.includes("bottom"))&&(Be.includes("top")&&Tt<0||Be.includes("bottom")&&Tt>0)&&(Nt.y=Tt):B==="x"&&(Be.includes("left")||Be.includes("right"))&&(Be.includes("left")&&qt<0||Be.includes("right")&&qt>0)&&(Nt.x=qt),(Math.abs(Nt.x)>0||Math.abs(Nt.y)>0)&&In(!0),(Le=Ft.current)==null||Le.style.setProperty("--swipe-amount-x",`${Nt.x}px`),($e=Ft.current)==null||$e.style.setProperty("--swipe-amount-y",`${Nt.y}px`)}},hp&&!d.jsx?w.createElement("button",{"aria-label":de,"data-disabled":xa,"data-close-button":!0,onClick:xa||!ir?()=>{}:()=>{var U;Et(),(U=d.onDismiss)==null||U.call(d,d)},className:He(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:$S):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,ke||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:He(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[ke])||kS(ke):null):null,w.createElement("div",{"data-content":"",className:He(M==null?void 0:M.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:He(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:He(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&&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),Et())},className:He(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&&Zn(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||C,onClick:U=>{var te,le;Zn(d.action)&&((le=(te=d.action).onClick)==null||le.call(te,U),!U.defaultPrevented&&Et())},className:He(M==null?void 0:M.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 nC(t,e){let r={};return[t,e].forEach((n,o)=>{let a=o===1,i=a?"--mobile-offset":"--offset",s=a?KS:XS;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=YS,toastOptions:g,dir:m=cc(),gap:v=ZS,loadingIcon:x,icons:S,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:j}=t,[k,_]=w.useState([]),D=w.useMemo(()=>Array.from(new Set([n].concat(k.filter(Z=>Z.position).map(Z=>Z.position)))),[k,n]),[L,$]=w.useState([]),[C,N]=w.useState(!1),[P,I]=w.useState(!1),[T,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),de=w.useCallback(Z=>{_(B=>{var H;return(H=B.find(he=>he.id===Z.id))!=null&&H.delete||Te.dismiss(Z.id),B.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Te.subscribe(Z=>{if(Z.dismiss){_(B=>B.map(H=>H.id===Z.id?{...H,delete:!0}:H));return}setTimeout(()=>{Mi.flushSync(()=>{_(B=>{let H=B.findIndex(he=>he.id===Z.id);return H!==-1?[...B.slice(0,H),{...B[H],...Z},...B.slice(H+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:H})=>{try{O(H?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{k.length<=1&&N(!1)},[k]),w.useEffect(()=>{let Z=B=>{var H,he;o.every(X=>B[X]||B.code===X)&&(N(!0),(H=A.current)==null||H.focus()),B.code==="Escape"&&(document.activeElement===A.current||(he=A.current)!=null&&he.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[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":`${E} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((Z,B)=>{var H;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":T,"data-y-position":he,"data-lifted":C&&k.length>1&&!a,"data-x-position":X,style:{"--front-toast-height":`${((H=L[0])==null?void 0:H.height)||0}px`,"--width":`${JS}px`,"--gap":`${v}px`,...d,...nC(u,l)},onBlur:z=>{q.current&&!z.currentTarget.contains(z.relatedTarget)&&(q.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||q.current||(q.current=!0,M.current=z.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(z=>!z.position&&B===0||z.position===Z).map((z,Ee)=>{var ye,be;return w.createElement(rC,{key:z.id,icons:S,index:Ee,toast:z,defaultRichColors:h,duration:(ye=g==null?void 0:g.duration)!=null?ye:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:b,closeButton:(be=g==null?void 0:g.closeButton)!=null?be:i,interacting:P,position:Z,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:de,toasts:k.filter(Ve=>Ve.position==z.position),heights:L.filter(Ve=>Ve.position==z.position),setHeights:$,expandByDefault:a,gap:v,loadingIcon:x,expanded:C,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const sp={mobile:{width:375,icon:Wi,label:"Mobile (375px)"},tablet:{width:768,icon:Gi,label:"Tablet (768px)"},small:{width:1024,icon:Vi,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Yi,label:"Desktop (Full)"}},oC=({setIsOpen:t,onSave:e,deviceSize:r,onDeviceSizeChange:n})=>{const{actions:o,query:a,canUndo:i,canRedo:s}=Lt((l,c)=>({canUndo:c.history.canUndo(),canRedo:c.history.canRedo()})),u=()=>{const l=a.serialize();e==null||e(l),WS.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(pn,{children:p.jsx(ap,{type:"single",value:r,onValueChange:l=>l&&n(l),className:"bg-muted rounded-md p-1",children:Object.entries(sp).map(([l,{icon:c,label:h}])=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx(ip,{value:l,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(c,{className:"h-4 w-4"})})}),p.jsx(Xt,{side:"bottom",children:p.jsx("p",{children:h})})]},l))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(pt,{variant:"outline",size:"sm",onClick:()=>o.history.undo(),disabled:!i,children:p.jsx(wh,{className:"h-4 w-4"})}),p.jsx(pt,{variant:"outline",size:"sm",onClick:()=>o.history.redo(),disabled:!s,children:p.jsx(hh,{className:"h-4 w-4"})}),p.jsxs(pt,{size:"sm",onClick:()=>t(!0),className:"mb-4",children:["Preview Page ",p.jsx(lh,{className:"ml-2 h-4 w-4"})]}),p.jsxs(pt,{size:"sm",onClick:u,children:[p.jsx(mh,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},uu=({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:Qe("relative min-h-[100vh] bg-white",e||""),children:t})};uu.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const dc=({htmlJson:t})=>{const{actions:e}=Lt();return w.useEffect(()=>{t&&e.deserialize(t)},[t]),p.jsx(fd,{children:p.jsx(bt,{id:"mainBody",is:uu,canvas:!0})})},Sn={Body:uu,Div:Qs,Wrapper:qr,Section:E0,Container:Tn,Text:Us,ButtonComponent:ws,Heading:Vs,Image:Ws,Img:C0,Divider:Gs,Spacer:Ys,Video:Js,Columns:S0,Link:Zs,Footer:T0},aC=({setIsOpen:t,initialData:e,onSave:r,onStateChange:n,enabled:o=!0})=>{var c;const a=Cn(),[i,s]=w.useState("desktop"),u=((c=sp[i])==null?void 0:c.width)||"100%",l=h=>{if(n)try{const f=h.serialize();n(f)}catch{}};return o?p.jsx(li,{resolver:Sn,enabled:o,onNodesChange:h=>l(h),children:p.jsx(ds,{value:i,children:p.jsx(Mo,{value:a,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:"Page Builder"}),p.jsx(oC,{setIsOpen:t,onSave:r,deviceSize:i,onDeviceSizeChange:s})]}),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(q5,{}),p.jsx(sS,{})]})}),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(au,{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 u=="number"?`${u}px`:u,maxWidth:"100%"},children:p.jsx(dc,{htmlJson:e})})})})})}),p.jsx(en,{className:"w-64 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(aS,{})})})]})]})})})}):p.jsx(li,{resolver:Sn,enabled:o,children:p.jsx(dc,{htmlJson:e})})},iC=Object.freeze(Object.defineProperty({__proto__:null,default:aC,resolver:Sn},Symbol.toStringTag,{value:"Module"})),Ha={mobile:{width:375,label:"Mobile",icon:Wi},tablet:{width:768,label:"Tablet",icon:Gi},small:{width:1024,label:"Small",icon:Vi},desktop:{width:1440,label:"Desktop",icon:Yi}},sC=({editorState:t,deviceSize:e})=>p.jsx(li,{resolver:Sn,enabled:!1,children:p.jsx(ds,{value:e,children:p.jsx(uC,{editorState:t})})}),uC=({editorState:t})=>{const{actions:e}=Lt();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(fd,{})},up=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var s,u;const[o,a]=w.useState("desktop");if(w.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t,e]),!t)return null;const i=((s=Ha[o])==null?void 0:s.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:["(",(u=Ha[o])==null?void 0:u.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Ha).map(([l,{label:c,icon:h}])=>p.jsxs(pt,{variant:"ghost",size:"sm",onClick:()=>a(l),className:Ih("h-8 px-3 gap-2",o===l&&"bg-background shadow-sm"),children:[p.jsx(h,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:c})]},l))}),p.jsx(pt,{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:`${i}px`,maxWidth:"100%"},children:p.jsx(Mo,{value:r,children:n?p.jsx(sC,{editorState:n,deviceSize:o}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},lC=w.lazy(()=>Promise.resolve().then(()=>iC)),cC=({editorState:t,initialData:e,onSave:r,onStateChange:n,eventData:o,enabled:a})=>{const[i,s]=w.useState(!1);return p.jsx(Mo,{value:o,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(lC,{enabled:a,setIsOpen:s,initialData:e,onSave:r,onStateChange:n}),a?p.jsx(up,{eventData:o,editorState:t,isOpen:i,onClose:()=>s(!1)}):null]})})},lp=w.createContext({fetchVideoByLocation:null}),dC=({children:t,fetchVideoByLocation:e})=>p.jsx(lp.Provider,{value:{fetchVideoByLocation:e},children:t}),fC=()=>w.useContext(lp);exports.ApiConfigProvider=dC;exports.DEVICE_ORDER=Re;exports.DeviceSizeProvider=ds;exports.EventDataProvider=Mo;exports.PageBuilder=cC;exports.PreviewModal=up;exports.TEMPLATE_VARIABLES=U3;exports.getPlaceholderPaths=q3;exports.getResponsiveValue=ht;exports.hasTemplatePlaceholders=F3;exports.processTemplate=Eo;exports.resolver=Sn;exports.useApiConfig=fC;exports.useDeviceSize=er;exports.useEventData=Cn;
|
|
279
|
+
`)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},hr(e.allowedAttributes,function(T,O){u[O]=[];const A=[];T.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={};hr(e.allowedClasses,function(T,O){if(u&&(ft(u,O)||(u[O]=[]),u[O].push("class")),c[O]=T,Array.isArray(T)){const A=[];c[O]=[],f[O]=[],T.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;hr(e.transformTags,function(T,O){let A;typeof T=="function"?A=T:typeof T=="string"&&(A=Cn.simpleTransform(T)),O==="*"?b=A:d[O]=A});let g,m,v,x,S,E,j=!1;_();const k=new u5.Parser({onopentag:function(T,O){if(e.onOpenTag&&e.onOpenTag(T,O),e.enforceHtmlBoundary&&T==="html"&&_(),S){E++;return}const A=new a(T,O);m.push(A);let R=!1;const M=!!A.text;let q;if(ft(d,T)&&(q=d[T](T,O),A.attribs=O=q.attribs,q.text!==void 0&&(A.innerText=q.text),T!==q.tagName&&(A.name=T=q.tagName,x[g]=q.tagName)),b&&(q=b(T,O),A.attribs=O=q.attribs,T!==q.tagName&&(A.name=T=q.tagName,x[g]=q.tagName)),(!i(T)||e.disallowedTagsMode==="recursiveEscape"&&!h5(v)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(R=!0,v[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(T)!==-1&&(S=!0,E=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,T):n+=B,j=!0}return}o=n,n=""}n+="<"+T,T==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),R&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?hr(O,function(B,H){n+=" "+H+'="'+D(B||"",!0)+'"'}):(!u||ft(u,T)||u["*"])&&hr(O,function(B,H){if(!g5.test(H)){delete A.attribs[H];return}if(B===""&&!e.allowedEmptyAttributes.includes(H)&&(e.nonBooleanAttributes.includes(H)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[H];return}let he=!1;if(!u||ft(u,T)&&u[T].indexOf(H)!==-1||u["*"]&&u["*"].indexOf(H)!==-1||ft(l,T)&&l[T].test(H)||l["*"]&&l["*"].test(H))he=!0;else if(u&&u[T]){for(const X of u[T])if(l5(X)&&X.name&&X.name===H){he=!0;let z="";if(X.multiple===!0){const Ee=B.split(" ");for(const ye of Ee)X.values.indexOf(ye)!==-1&&(z===""?z=ye:z+=" "+ye)}else X.values.indexOf(B)>=0&&(z=B);B=z}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(H)!==-1&&L(T,B)){delete A.attribs[H];return}if(T==="script"&&H==="src"){let X=!0;try{const z=$(B);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ee=(e.allowedScriptHostnames||[]).find(function(be){return be===z.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(be){return z.url.hostname===be||z.url.hostname.endsWith(`.${be}`)});X=Ee||ye}}catch{X=!1}if(!X){delete A.attribs[H];return}}if(T==="iframe"&&H==="src"){let X=!0;try{const z=$(B);if(z.isRelativeUrl)X=ft(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ee=(e.allowedIframeHostnames||[]).find(function(be){return be===z.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(be){return z.url.hostname===be||z.url.hostname.endsWith(`.${be}`)});X=Ee||ye}}catch{X=!1}if(!X){delete A.attribs[H];return}}if(H==="srcset")try{let X=c5(B);if(X.forEach(function(z){L("srcset",z.url)&&(z.evil=!0)}),X=ac(X,function(z){return!z.evil}),X.length)B=m5(ac(X,function(z){return!z.evil})),A.attribs[H]=B;else{delete A.attribs[H];return}}catch{delete A.attribs[H];return}if(H==="class"){const X=c[T],z=c["*"],Ee=h[T],ye=f[T],be=f["*"],We=h["*"],ut=[Ee,We].concat(ye,be).filter(function(Ge){return Ge});if(X&&z?B=I(B,oc(X,z),ut):B=I(B,X||z,ut),!B.length){delete A.attribs[H];return}}if(H==="style"){if(e.parseStyleAttributes)try{const X=d5(T+" {"+B+"}",{map:!1}),z=C(X,e.allowedStyles);if(B=N(z),B.length===0){delete A.attribs[H];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+T+" {"+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[H];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+H,B&&B.length?n+='="'+D(B,!0)+'"':e.allowedEmptyAttributes.includes(H)&&(n+='=""')}else delete A.attribs[H]}),e.selfClosing.indexOf(T)!==-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(T){if(S)return;const O=m[m.length-1];let A;if(O&&(A=O.tag,T=O.innerText!==void 0?O.innerText:T),e.disallowedTagsMode==="completelyDiscard"&&!i(A))T="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=T;else if(!j){const R=D(T,!1);e.textFilter?n+=e.textFilter(R,A):n+=R}if(m.length){const R=m[m.length-1];R.text+=T}},onclosetag:function(T,O){if(e.onCloseTag&&e.onCloseTag(T,O),S)if(E--,!E)S=!1;else return;const A=m.pop();if(!A)return;if(A.tag!==T){m.push(A);return}S=e.enforceHtmlBoundary?T==="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]&&(T=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(T)!==-1||O&&!i(T)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){R&&(n=o,o="");return}n+="</"+T+">",R&&(n=o+D(n),o=""),j=!1}},e.parser);return k.write(t),k.end(),n;function _(){n="",g=0,m=[],v={},x={},S=!1,E=0}function D(T,O){return typeof T!="string"&&(T=T+""),e.parser.decodeEntities&&(T=T.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(T=T.replace(/"/g,"""))),T=T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(T=T.replace(/"/g,""")),T}function L(T,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 ft(e.allowedSchemesByTag,T)?e.allowedSchemesByTag[T].indexOf(R)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(R)===-1}function $(T){if(T=T.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),T.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(T,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function C(T,O){if(!O)return T;const A=T.nodes[0];let R;return O[A.selector]&&O["*"]?R=oc(O[A.selector],O["*"]):R=O[A.selector]||O["*"],R&&(T.nodes[0].nodes=A.nodes.reduce(P(R),[])),T}function N(T){return T.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function P(T){return function(O,A){return ft(T,A.prop)&&T[A.prop].some(function(M){return M.test(A.value)})&&O.push(A),O}}function I(T,O,A){return O?(T=T.split(/\s+/),T.filter(function(R){return O.indexOf(R)!==-1||A.some(function(M){return M.test(R)})}).join(" ")):T}}const v5={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=zo(b5),y5=[{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"}],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=p0(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)},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:[y5.map(({command:m,icon:v,label:x})=>p.jsxs(Er,{children:[p.jsx(Tr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.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(Xt,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Er,{children:[p.jsx(Tr,{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(Wi,{className:"h-3.5 w-3.5"})})}),p.jsx(Xt,{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"})]})]})})]})},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$/]}}},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=er(),b=Tn();let g,m,v;try{const{connectors:D,events:L}=ne($=>({events:$.events}));g=D.connect,m=D.drag,v=L.selected}catch{}const x=To(t,b),S=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`,E=mt(r,d,16),j=mt(a,d,150)/100,k=mt(i,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:D=>D&&g&&m&&g(m(D)),className:`cursor-move ${v?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${E}px`,fontWeight:n,fontFamily:o,lineHeight:j,letterSpacing:`${k}px`,textAlign:s,color:u,margin:S,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:p0(To(e||x,b),S5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):p.jsx("p",{children: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(Co,{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(Eo,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Co,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(gt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Fi,{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(Eo,{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=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:{top:0,right:0,bottom:0,left:0},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:C5}};const an={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=er(),d=Tn();let b,g,m;try{const{connectors:C,events:N}=ne(P=>({events:P.events}));b=C.connect,g=C.drag,m=N.selected}catch{}const v=To(t,d),x=`h${e}`;let S;i==="auto"?S=((D=an[e])==null?void 0:D[f])||((L=an[e])==null?void 0:L.desktop)||36:S=mt(i,f,(($=an[e])==null?void 0:$.desktop)||36);const E=mt(s,f,120)/100,j=mt(u,f,-.5),k=mt(h,f,100),_=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx(x,{ref:C=>C&&b&&g&&b(g(C)),className:`cursor-move ${m?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:a,fontSize:`${S}px`,lineHeight:E,letterSpacing:`${j}px`,margin:_,textTransform:c,opacity:k/100},children:v})},E5=()=>{var a;const t=er(),{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=an[r.level||2])==null?void 0:i[t])||36:mt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx(Lt,{label:"Text",value:r.text,onChange:i=>e(s=>s.text=i)}),p.jsx(gt,{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(Co,{label:"Size",values:r.fontSize,onChange:i=>e(s=>s.fontSize=i),min:12,max:120,defaultValue:((a=an[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(Eo,{label:"Line Height",values:r.lineHeight,onChange:i=>e(s=>s.lineHeight=i),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Co,{label:"Letter Spacing",values:r.letterSpacing,onChange:i=>e(s=>s.letterSpacing=i),min:-5,max:20,defaultValue:-.5}),p.jsx(gt,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Fi,{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(Eo,{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=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:E5}};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"})=>{let c,h,f;try{const{connectors:b,events:g}=ne(m=>({events:m.events}));c=b.connect,h=b.drag,f=g.selected}catch{}const d=typeof s=="object"?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`;return p.jsx("img",{ref:b=>b&&c&&h&&c(h(b)),src:t,alt:e,className:`cursor-move ${f?"ring-2 ring-primary ring-offset-2":""}`,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:d,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},T5=()=>{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(Lt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Lt,{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=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:{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})=>{let i,s,u;try{const{connectors:c,events:h}=ne(f=>({events:f.events}));i=c.connect,s=c.drag,u=h.selected}catch{}const l=typeof o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}px`;return p.jsx("hr",{ref:c=>c&&i&&s&&(i==null?void 0:i(s==null?void 0:s(c))),className:`cursor-move border-0 ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:l,opacity:a/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},N5=()=>{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=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:N5}};const Ks=({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})]})})};Ks.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 P5(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 k5(t,e){return(await P5(`/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,Js]=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]=Fr({prop:r,defaultProp:o??!1,onChange:u,caller:ma}),[b,g]=y.useState(null),[m,v]=y.useState(null),x=y.useRef(!1),S=b?!!i||!!b.closest("form"):!0,E={checked:f,disabled:a,setChecked:d,control:b,setControl:g,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:kt(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:v};return p.jsx(I5,{scope:e,...E,children:M5(h)?h(E):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=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":kt(u)?"mixed":u,"aria-required":l,"data-state":x0(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:g,onKeyDown:ue(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:ue(r,v=>{h(x=>kt(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(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(m0,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(y0,{__scopeCheckbox:r})]})})});Zs.displayName=ma;var b0="CheckboxIndicator",g0=y.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,a=Js(b0,r);return p.jsx(rr,{present:n||kt(a.checked)||a.checked===!0,children:p.jsx(me.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=we(r,d),g=_5(a),m=Id(n);y.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(S,"checked").set,k=!o.current;if(g!==a&&j){const _=new Event("click",{bubbles:k});x.indeterminate=kt(a),j.call(x,kt(a)?!1:a),x.dispatchEvent(_)}},[f,g,a,o]);const v=y.useRef(kt(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:b,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});y0.displayName=v0;function M5(t){return typeof t=="function"}function kt(t){return t==="indeterminate"}function x0(t){return kt(t)?"indeterminate":t?"checked":"unchecked"}const w0=y.forwardRef(({className:t,...e},r)=>p.jsx(Zs,{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(qi,{className:"h-4 w-4"})})}));w0.displayName=Zs.displayName;const L5=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,a]=w.useState(!1),[i,s]=w.useState(!1);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(qi,{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"}),"."]})]})]})},ar=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:Ts(t),className:tt(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),children:t.children})},$5={...mn,display:"flex",justifyContent:"center",alignItems:"center"};ar.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},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:()=>k5(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(ar,{children:p.jsx(qr,{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})]})})})})},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=er(),i=Tn();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}=St(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"},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."})]})]})})},z5=()=>{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)})})]})};Qs.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{top:0,right:0,bottom:0,left:0},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:z5}};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})=>{let i,s,u;try{const{connectors:h,events:f}=ne(d=>({events:d.events}));i=h.connect,s=h.drag,u=f.selected}catch{}const l=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`,c=typeof n=="object"?`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`:`${n}px`;return p.jsx("div",{ref:h=>h&&i&&s&&(i==null?void 0:i(s==null?void 0:s(h))),className:`cursor-move w-full ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:l,margin:c,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(gt,{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=o)}),p.jsx(Me,{label:"Margin",values:n,onChange:o=>t(a=>a.margin=o)})]})]})};S0.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},alignItems:"stretch"},related:{settings:F5}};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})=>{let h,f,d;try{const{connectors:g,events:m}=ne(v=>({events:v.events}));h=g.connect,f=g.drag,d=m.selected}catch{}const b=typeof l=="object"?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx("a",{ref:g=>g&&h&&f&&h(f(g)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:g=>g.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${d?"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(Lt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx(Lt,{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(gt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(zi,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Hi,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Fi,{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=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:{top:0,right:0,bottom:0,left:0},opacity:100},related:{settings:q5}};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"})=>{let c,h,f;try{const{connectors:b,events:g}=ne(m=>({events:m.events}));c=b.connect,h=b.drag,f=g.selected}catch{}const d=typeof s=="object"?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`;return p.jsx("img",{ref:b=>b&&c&&h&&c(h(b)),src:t,alt:e,className:`cursor-move ${f?"ring-2 ring-primary ring-offset-2":""}`,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:d,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(Lt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Lt,{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=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:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:U5}};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}=ne(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:tt(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(De,{is:ar,id:`section-wrapper-${a}`,children:p.jsx(De,{is:qr,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}=ne(i=>({events:i.events}));e=o.connect,r=o.drag,n=a.selected}catch{}return p.jsx("div",{style:Ts(t),className:tt(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:ia}};const T0=({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})=>{let v,x,S;try{const{connectors:_,events:D}=ne(L=>({events:L.events}));v=_.connect,x=_.drag,S=D.selected}catch{}const E=typeof e=="object"?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:`${e}px`,j=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${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(ar,{style:{backgroundColor:t,padding:E,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))})]})})})};T0.craft={displayName:"Footer",props:{background:"transparent",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:ia}};const V5=()=>{const{connectors:t}=St(),e=[{name:"Wrapper",icon:bh,element:p.jsx(De,{is:ar,canvas:!0})},{name:"Container",icon:vh,element:p.jsx(De,{is:qr,canvas:!0})},{name:"Div",icon:Ua,element:p.jsx(De,{is:tu,canvas:!0})}],r=[{name:"Heading",icon:Tc,element:p.jsx(Gs,{})},{name:"Text",icon:Pc,element:p.jsx(Ws,{})},{name:"Button",icon:Ac,element:p.jsx(Es,{})},{name:"Link",icon:Wi,element:p.jsx(eu,{})}],n=[{name:"Image",icon:Nc,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(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 ru(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 nu="ScrollArea",[N0]=tr(nu),[X5,Le]=N0(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),[S,E]=y.useState(0),[j,k]=y.useState(!1),[_,D]=y.useState(!1),L=we(e,C=>u(C)),$=ru(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:b,scrollbarXEnabled:j,onScrollbarXEnabledChange:k,scrollbarY:g,onScrollbarYChange:m,scrollbarYEnabled:_,onScrollbarYEnabledChange:D,onCornerWidthChange:x,onCornerHeightChange:E,children:p.jsx(me.div,{dir:$,...i,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});j0.displayName=nu;var A0="ScrollAreaViewport",O0=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=t,i=Le(A0,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})})]})});O0.displayName=A0;var st="ScrollAreaScrollbar",ou=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(st,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(P0,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(au,{...n,ref:e}):null});ou.displayName=st;var K5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(st,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(P0,{"data-state":a?"visible":"hidden",...n,ref:e})})}),J5=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Le(st,t.__scopeScrollArea),a=t.orientation==="horizontal",i=ga(()=>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(au,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:ue(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ue(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),P0=y.forwardRef((t,e)=>{const r=Le(st,t.__scopeScrollArea),{forceMount:n,...o}=t,[a,i]=y.useState(!1),s=t.orientation==="horizontal",u=ga(()=>{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(au,{"data-state":a?"visible":"hidden",...o,ref:e})})}),au=y.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Le(st,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 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=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(Q5,{...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}),Z5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(st,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(_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":ba(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:Do(i.paddingLeft),paddingEnd:Do(i.paddingRight)}})}})}),Q5=y.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Le(st,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(_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":ba(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:Do(i.paddingTop),paddingEnd:Do(i.paddingBottom)}})}})}),[eS,k0]=N0(st),_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=Le(st,r),[b,g]=y.useState(null),m=we(e,L=>g(L)),v=y.useRef(null),x=y.useRef(""),S=d.viewport,E=n.content-n.viewport,j=Ie(c),k=Ie(u),_=ga(h,10);function D(L){if(v.current){const $=L.clientX-v.current.left,C=L.clientY-v.current.top;l({x:$,y:C})}}return y.useEffect(()=>{const L=$=>{const C=$.target;(b==null?void 0:b.contains(C))&&j($,E)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[S,b,E,j]),y.useEffect(k,[n,k]),kr(b,_),kr(d.content,_),p.jsx(eS,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Ie(a),onThumbPointerUp:Ie(i),onThumbPositionChange:k,onThumbPointerDown:Ie(s),children:p.jsx(me.div,{...f,ref:m,style:{position:"absolute",...f.style},onPointerDown:ue(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:ue(t.onPointerMove,D),onPointerUp:ue(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})})})}),Io="ScrollAreaThumb",R0=y.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=k0(Io,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(Io,r),i=k0(Io,r),{onThumbPositionChange:s}=i,u=we(e,h=>i.onThumbChange(h)),l=y.useRef(void 0),c=ga(()=>{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(),b=h.clientX-d.left,g=h.clientY-d.top;i.onThumbPointerDown({x:b,y:g})}),onPointerUp:ue(t.onPointerUp,i.onThumbPointerUp)})});R0.displayName=Io;var iu="ScrollAreaCorner",I0=y.forwardRef((t,e)=>{const r=Le(iu,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(rS,{...t,ref:e}):null});I0.displayName=iu;var rS=y.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Le(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(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 Do(t){return t?parseInt(t,10):0}function D0(t,e){const r=t/e;return isNaN(r)?0:r}function ba(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 nS(t,e,r,n="ltr"){const o=ba(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=ba(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 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 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 ga(t,e){const r=Ie(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=Ie(e);It(()=>{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,aS=O0,iS=I0;const su=y.forwardRef(({className:t,children:e,...r},n)=>p.jsxs($0,{ref:n,className:Se("relative overflow-hidden",t),...r,children:[p.jsx(aS,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx(B0,{}),p.jsx(iS,{})]}));su.displayName=$0.displayName;const B0=y.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(ou,{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(R0,{className:"relative flex-1 rounded-full bg-border"})}));B0.displayName=ou.displayName;const sS=()=>{const{selected:t,actions:e}=St(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"})})})},uS=t=>{switch(t){case"Container":return Ua;case"Text":return Pc;case"Heading":return Tc;case"Button":return Ac;case"Image":return Nc;case"Divider":return jc;case"Spacer":return Oc;case"Video":return Ch;case"Columns":return ih;case"Link":return Wi;default:return Ua}},H0=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a})=>{const{node:i,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=St((N,P)=>{var R,M;const I=N.nodes[t],T=((R=I==null?void 0:I.data)==null?void 0:R.nodes)||[],O=N.events.selected?Array.from(N.events.selected)[0]:null,A=(M=I==null?void 0:I.data)==null?void 0:M.parent;return{node:I,childNodes:T,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",S=uS(g),E=a===t,j=i.data.isCanvas,k=N=>{N.stopPropagation(),x||s.selectNode(t)},_=N=>{N.stopPropagation(),f(!h)},D=N=>{if(x){N.preventDefault();return}N.stopPropagation(),r(t,c)},L=N=>{N.preventDefault(),N.stopPropagation(),a&&a!==t&&j&&b(!0)},$=N=>{N.stopPropagation(),b(!1)},C=N=>{N.preventDefault(),N.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"} ${E?"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:C,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(Ui,{className:"h-3 w-3"}):p.jsx(Vi,{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":g})]}),m&&h&&p.jsx("div",{children:l.map(N=>p.jsx(H0,{nodeId:N,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a},N))})]})},lS=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:a}=St(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(H0,{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=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=g=>{const{scope:m,children:v}=g,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=uc(s),l=w.forwardRef((g,m)=>{const{scope:v,children:x}=g,S=a(s,v),E=we(m,S.collectionRef);return p.jsx(u,{ref:E,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,...S}=g,E=w.useRef(null),j=we(m,E),k=a(c,v);return w.useEffect(()=>(k.itemMap.set(E,{ref:E,...S}),()=>void k.itemMap.delete(E))),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 S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(m.itemMap.values()).sort((k,_)=>S.indexOf(k.ref.current)-S.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},b,n]}var za="rovingFocusGroup.onEntryFocus",bS={bubbles:!1,cancelable:!0},Rn="RovingFocusGroup",[Mi,z0,gS]=mS(Rn),[vS,F0]=tr(Rn,[gS]),[yS,xS]=vS(Rn),q0=y.forwardRef((t,e)=>p.jsx(Mi.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Mi.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(wS,{...t,ref:e})})}));q0.displayName=Rn;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),b=ru(a),[g,m]=Fr({prop:i,defaultProp:s??null,onChange:u,caller:Rn}),[v,x]=y.useState(!1),S=Ie(l),E=z0(r),j=y.useRef(!1),[k,_]=y.useState(0);return y.useEffect(()=>{const D=f.current;if(D)return D.addEventListener(za,S),()=>D.removeEventListener(za,S)},[S]),p.jsx(yS,{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(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,D=>{const L=!j.current;if(D.target===D.currentTarget&&L&&!v){const $=new CustomEvent(za,bS);if(D.currentTarget.dispatchEvent($),!$.defaultPrevented){const C=E().filter(O=>O.focusable),N=C.find(O=>O.active),P=C.find(O=>O.id===g),T=[N,P,...C].filter(Boolean).map(O=>O.ref.current);W0(T,c)}}j.current=!1}),onBlur:ue(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=xS(U0,r),h=c.currentTabStopId===l,f=z0(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(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(E=>E.focusable).map(E=>E.ref.current);if(v==="last")S.reverse();else if(v==="prev"||v==="next"){v==="prev"&&S.reverse();const E=S.indexOf(m.currentTarget);S=c.loop?TS(S,E+1):S.slice(E+1)}setTimeout(()=>W0(S))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:g!=null}):i})})});V0.displayName=U0;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 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 NS=q0,jS=V0,G0="Toggle",uu=y.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=t,[i,s]=Fr({prop:r,onChange:o,defaultProp:n??!1,caller:G0});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)})})});uu.displayName=G0;var Y0=uu,zt="ToggleGroup",[X0]=tr(zt,[F0]),K0=F0(),lu=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 \`${zt}\``)});lu.displayName=zt;var[J0,Z0]=X0(zt),AS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Fr({prop:r,defaultProp:n??"",onChange:o,caller:zt});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})})}),OS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=Fr({prop:r,defaultProp:n??[],onChange:o,caller:zt}),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=zt;var[PS,kS]=X0(zt),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(NS,{asChild:!0,...l,orientation:a,dir:c,loop:s,children:p.jsx(me.div,{...h,ref:e})}):p.jsx(me.div,{...h,ref:e})})}),Mo="ToggleGroupItem",ep=w.forwardRef((t,e)=>{const r=Z0(Mo,t.__scopeToggleGroup),n=kS(Mo,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(jS,{asChild:!0,...o,focusable:!i,active:a,ref:u,children:p.jsx(lc,{...s,ref:e})}):p.jsx(lc,{...s,ref:e})});ep.displayName=Mo;var lc=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,a=Z0(Mo,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"}}),_S=y.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(Y0,{ref:o,className:Se(np({variant:e,size:r,className:t})),...n}));_S.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:Se("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:Se(np({variant:i.variant||r,size:i.size||n}),t),...o,children:e})});ip.displayName=rp.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"})),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"})),zS=()=>{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,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: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(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)||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}},Te=new FS,qS=(t,e)=>{let r=(e==null?void 0:e.id)||Li++;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 Qn(t){return t.label!==void 0}var KS=3,JS="32px",ZS="16px",cc=4e3,QS=356,eC=14,tC=20,rC=200;function ze(...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:b,interacting:g,setHeights:m,visibleToasts:v,heights:x,index:S,toasts:E,expanded:j,removeToast:k,defaultRichColors:_,closeButton:D,style:L,cancelButtonStyle:$,actionButtonStyle:C,className:N="",descriptionClassName:P="",duration:I,position:T,gap:O,loadingIcon:A,expandByDefault:R,classNames:M,icons:q,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:Z}=t,[B,H]=w.useState(null),[he,X]=w.useState(null),[z,Ee]=w.useState(!1),[ye,be]=w.useState(!1),[We,ut]=w.useState(!1),[Ge,In]=w.useState(!1),[ya,Dn]=w.useState(!1),[xa,Vr]=w.useState(0),[ir,cu]=w.useState(0),Wr=w.useRef(d.duration||I||cc),du=w.useRef(null),Ft=w.useRef(null),cp=S===0,dp=S+1<=v,ke=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]=T.split("-"),hu=w.useMemo(()=>x.reduce((U,te,le)=>le>=Mn?U:U+te.height,0),[x,Mn]),mu=zS(),gp=d.invert||f,Sa=ke==="loading";ur.current=w.useMemo(()=>Mn*O+hu,[Mn,hu]),w.useEffect(()=>{Wr.current=fu},[fu]),w.useEffect(()=>{Ee(!0)},[]),w.useEffect(()=>{let U=Ft.current;if(U){let te=U.getBoundingClientRect().height;return cu(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(!z)return;let U=Ft.current,te=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=te,cu(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])},[z,d.title,d.description,m,d.id]);let Tt=w.useCallback(()=>{be(!0),Vr(ur.current),m(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{k(d)},rC)},[d,k,m,ur]);w.useEffect(()=>{if(d.promise&&ke==="loading"||d.duration===1/0||d.type==="loading")return;let U;return j||g||Z&&mu?(()=>{if(pu.current<wa.current){let te=new Date().getTime()-wa.current;Wr.current=Wr.current-te}pu.current=new Date().getTime()})():Wr.current!==1/0&&(wa.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=d.onAutoClose)==null||te.call(d,d),Tt()},Wr.current)),()=>clearTimeout(U)},[j,g,d,ke,Z,mu,Tt]),w.useEffect(()=>{d.delete&&Tt()},[Tt,d.delete]);function vp(){var U,te,le;return q!=null&&q.loading?w.createElement("div",{className:ze(M==null?void 0:M.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":ke==="loading"},q.loading):A?w.createElement("div",{className:ze(M==null?void 0:M.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":ke==="loading"},A):w.createElement(DS,{className:ze(M==null?void 0:M.loader,(le=d==null?void 0:d.classNames)==null?void 0:le.loader),visible:ke==="loading"})}return w.createElement("li",{tabIndex:0,ref:Ft,className:ze(N,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[ke],(r=d==null?void 0:d.classNames)==null?void 0:r[ke]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:_,"data-styled":!(d.jsx||d.unstyled||b),"data-mounted":z,"data-promise":!!d.promise,"data-swiped":ya,"data-removed":ye,"data-visible":dp,"data-y-position":mp,"data-x-position":bp,"data-index":S,"data-front":cp,"data-swiping":We,"data-dismissible":sr,"data-type":ke,"data-invert":gp,"data-swipe-out":Ge,"data-swipe-direction":he,"data-expanded":!!(j||R&&z),style:{"--index":S,"--toasts-before":S,"--z-index":E.length-S,"--offset":`${ye?xa:ur.current}px`,"--initial-height":R?"auto":`${ir}px`,...L,...d.style},onDragEnd:()=>{ut(!1),H(null),lr.current=null},onPointerDown:U=>{Sa||!sr||(du.current=new Date,Vr(ur.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(ut(!0),lr.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,le,$e;if(Ge||!sr)return;lr.current=null;let Be=Number(((U=Ft.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Nt=Number(((te=Ft.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qt=new Date().getTime()-((le=du.current)==null?void 0:le.getTime()),He=B==="x"?Be:Nt,jt=Math.abs(He)/qt;if(Math.abs(He)>=tC||jt>.11){Vr(ur.current),($e=d.onDismiss)==null||$e.call(d,d),X(B==="x"?Be>0?"right":"left":Nt>0?"down":"up"),Tt(),In(!0),Dn(!1);return}ut(!1),H(null)},onPointerMove:U=>{var te,le,$e,Be;if(!lr.current||!sr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let Nt=U.clientY-lr.current.y,qt=U.clientX-lr.current.x,He=(le=t.swipeDirections)!=null?le:nC(T);!B&&(Math.abs(qt)>1||Math.abs(Nt)>1)&&H(Math.abs(qt)>Math.abs(Nt)?"x":"y");let jt={x:0,y:0};B==="y"?(He.includes("top")||He.includes("bottom"))&&(He.includes("top")&&Nt<0||He.includes("bottom")&&Nt>0)&&(jt.y=Nt):B==="x"&&(He.includes("left")||He.includes("right"))&&(He.includes("left")&&qt<0||He.includes("right")&&qt>0)&&(jt.x=qt),(Math.abs(jt.x)>0||Math.abs(jt.y)>0)&&Dn(!0),($e=Ft.current)==null||$e.style.setProperty("--swipe-amount-x",`${jt.x}px`),(Be=Ft.current)==null||Be.style.setProperty("--swipe-amount-y",`${jt.y}px`)}},hp&&!d.jsx?w.createElement("button",{"aria-label":de,"data-disabled":Sa,"data-close-button":!0,onClick:Sa||!sr?()=>{}:()=>{var U;Tt(),(U=d.onDismiss)==null||U.call(d,d)},className:ze(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,ke||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:ze(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[ke])||RS(ke):null):null,w.createElement("div",{"data-content":"",className:ze(M==null?void 0:M.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:ze(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:ze(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 te,le;Qn(d.cancel)&&sr&&((le=(te=d.cancel).onClick)==null||le.call(te,U),Tt())},className:ze(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||C,onClick:U=>{var te,le;Qn(d.action)&&((le=(te=d.action).onClick)==null||le.call(te,U),!U.defaultPrevented&&Tt())},className:ze(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 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:b=KS,toastOptions:g,dir:m=dc(),gap:v=eC,loadingIcon:x,icons:S,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:j}=t,[k,_]=w.useState([]),D=w.useMemo(()=>Array.from(new Set([n].concat(k.filter(Z=>Z.position).map(Z=>Z.position)))),[k,n]),[L,$]=w.useState([]),[C,N]=w.useState(!1),[P,I]=w.useState(!1),[T,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),de=w.useCallback(Z=>{_(B=>{var H;return(H=B.find(he=>he.id===Z.id))!=null&&H.delete||Te.dismiss(Z.id),B.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Te.subscribe(Z=>{if(Z.dismiss){_(B=>B.map(H=>H.id===Z.id?{...H,delete:!0}:H));return}setTimeout(()=>{$i.flushSync(()=>{_(B=>{let H=B.findIndex(he=>he.id===Z.id);return H!==-1?[...B.slice(0,H),{...B[H],...Z},...B.slice(H+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:H})=>{try{O(H?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{k.length<=1&&N(!1)},[k]),w.useEffect(()=>{let Z=B=>{var H,he;o.every(X=>B[X]||B.code===X)&&(N(!0),(H=A.current)==null||H.focus()),B.code==="Escape"&&(document.activeElement===A.current||(he=A.current)!=null&&he.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[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":`${E} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((Z,B)=>{var H;let[he,X]=Z.split("-");return k.length?w.createElement("ol",{key:Z,dir:m==="auto"?dc():m,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-theme":T,"data-y-position":he,"data-lifted":C&&k.length>1&&!a,"data-x-position":X,style:{"--front-toast-height":`${((H=L[0])==null?void 0:H.height)||0}px`,"--width":`${QS}px`,"--gap":`${v}px`,...d,...aC(u,l)},onBlur:z=>{q.current&&!z.currentTarget.contains(z.relatedTarget)&&(q.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||q.current||(q.current=!0,M.current=z.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{P||N(!1)},onDragEnd:()=>N(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},k.filter(z=>!z.position&&B===0||z.position===Z).map((z,Ee)=>{var ye,be;return w.createElement(oC,{key:z.id,icons:S,index:Ee,toast:z,defaultRichColors:h,duration:(ye=g==null?void 0:g.duration)!=null?ye:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:b,closeButton:(be=g==null?void 0:g.closeButton)!=null?be:i,interacting:P,position:Z,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:de,toasts:k.filter(We=>We.position==z.position),heights:L.filter(We=>We.position==z.position),setHeights:$,expandByDefault:a,gap:v,loadingIcon:x,expanded:C,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const sp={mobile:{width:375,icon:Yi,label:"Mobile (375px)"},tablet:{width:768,icon:Xi,label:"Tablet (768px)"},small:{width:1024,icon:Gi,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Ki,label:"Desktop (Full)"}},iC=({setIsOpen:t,onSave:e,deviceSize:r,onDeviceSizeChange:n,setEditPopup:o,editPopup:a})=>{const{actions:i,query:s,canUndo:u,canRedo:l}=St((h,f)=>({canUndo:f.history.canUndo(),canRedo:f.history.canRedo()})),c=()=>{const h=s.serialize();e==null||e(h),YS.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:r,onValueChange:h=>h&&n(h),className:"bg-muted rounded-md p-1",children:Object.entries(sp).map(([h,{icon:f,label:d}])=>p.jsxs(Er,{children:[p.jsx(Tr,{asChild:!0,children:p.jsx(ip,{value:h,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(f,{className:"h-4 w-4"})})}),p.jsx(Xt,{side:"bottom",children:p.jsx("p",{children:d})})]},h))})}),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:()=>o(h=>!h),children:[a?"Edit page":"Edit popup"," ",p.jsx(gh,{className:"h-4 w-4"})]}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>i.history.undo(),disabled:!u,children:p.jsx(Sh,{className:"h-4 w-4"})}),p.jsx(Xe,{variant:"outline",size:"sm",onClick:()=>i.history.redo(),disabled:!l,children:p.jsx(hh,{className:"h-4 w-4"})}),p.jsxs(Xe,{size:"sm",onClick:()=>t(!0),children:["Preview Page ",p.jsx(lh,{className:"ml-2 h-4 w-4"})]}),p.jsxs(Xe,{size:"sm",onClick:c,children:[p.jsx(mh,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},va=({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] bg-white",e||""),children:t})};va.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const fc=({htmlJson:t})=>{const{actions:e}=St();return w.useEffect(()=>{t&&e.deserialize(t)},[t]),p.jsx(ps,{children:p.jsx(De,{id:"mainBody",is:va,canvas:!0})})},sC=({htmlJson:t,enabled:e})=>{const{actions:r}=St();w.useEffect(()=>{t&&r.deserialize(t)},[t]);const n={...mn,width:{type:"custom",value:"100",unit:e?"%":"vw"},height:{type:"custom",value:"100",unit:"vh"},backgroundColor:"rgba(0,0,0,0.25)",position:e?"abdolute":"fixed",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center"},o={...mn,backgroundColor:"white",width:{type:"custom",value:"90",unit:"%"},height:{type:"custom",value:"60",unit:"%"}};return p.jsx(ps,{children:p.jsx(De,{id:"mainBody",is:va,className:"bg-transparent",canvas:!1,children:p.jsx(De,{id:"popupWrapper",is:ar,canvas:!1,...n,children:p.jsx(De,{id:"popupContainer",is:qr,canvas:!0,...o})})})})},En={Body:va,Div:tu,Wrapper:ar,Section:E0,Container:qr,Text:Ws,ButtonComponent:Es,Heading:Gs,Image:Ys,Img:C0,Divider:Xs,Spacer:Ks,Video:Qs,Columns:S0,Link:eu,Footer:T0},uC=({setIsOpen:t,initialData:e,onSave:r,onStateChange:n,enabled:o=!0})=>{var f;const a=Tn(),[i,s]=w.useState("desktop"),[u,l]=w.useState(!1),c=((f=sp[i])==null?void 0:f.width)||"100%",h=d=>{if(n)try{const b=d.serialize();n(b)}catch{}};return o?p.jsx(di,{resolver:En,enabled:o,onNodesChange:d=>h(d),children:p.jsx(hs,{value:i,children:p.jsx(Lo,{value:a,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:u?"Popup Builder":"Page Builder"}),p.jsx(iC,{setIsOpen:t,onSave:r,deviceSize:i,onDeviceSizeChange:s,editPopup:u,setEditPopup:l})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(tn,{className:"w-52",children:p.jsxs(rn,{className:"p-4 space-y-6",children:[p.jsx(V5,{}),p.jsx(lS,{})]})}),p.jsx(tn,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(rn,{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 c=="number"?`${c}px`:c,maxWidth:"100%"},children:u?p.jsx(sC,{enabled:o}):p.jsx(fc,{htmlJson:e})})})})})}),p.jsx(tn,{className:"w-64 flex flex-col",children:p.jsx(rn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(sS,{})})})]})]})})})}):p.jsx(di,{resolver:En,enabled:o,children:p.jsx(fc,{htmlJson:e})})},lC=Object.freeze(Object.defineProperty({__proto__:null,default:uC,resolver:En},Symbol.toStringTag,{value:"Module"})),Fa={mobile:{width:375,label:"Mobile",icon:Yi},tablet:{width:768,label:"Tablet",icon:Xi},small:{width:1024,label:"Small",icon:Gi},desktop:{width:1440,label:"Desktop",icon:Ki}},cC=({editorState:t,deviceSize:e})=>p.jsx(di,{resolver:En,enabled:!1,children:p.jsx(hs,{value:e,children:p.jsx(dC,{editorState:t})})}),dC=({editorState:t})=>{const{actions:e}=St();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(ps,{})},up=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var s,u;const[o,a]=w.useState("desktop");if(w.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t,e]),!t)return null;const i=((s=Fa[o])==null?void 0:s.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:["(",(u=Fa[o])==null?void 0:u.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Fa).map(([l,{label:c,icon:h}])=>p.jsxs(Xe,{variant:"ghost",size:"sm",onClick:()=>a(l),className:Dh("h-8 px-3 gap-2",o===l&&"bg-background shadow-sm"),children:[p.jsx(h,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:c})]},l))}),p.jsx(Xe,{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:`${i}px`,maxWidth:"100%"},children:p.jsx(Lo,{value:r,children:n?p.jsx(cC,{editorState:n,deviceSize:o}):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=w.lazy(()=>Promise.resolve().then(()=>lC)),pC=({editorState:t,initialData:e,onSave:r,onStateChange:n,eventData:o,enabled:a})=>{const[i,s]=w.useState(!1);return p.jsx(Lo,{value:o,children:p.jsxs(w.Suspense,{fallback:p.jsx(tn,{children:p.jsx(rn,{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(fC,{enabled:a,setIsOpen:s,initialData:e,onSave:r,onStateChange:n}),a?p.jsx(up,{eventData:o,editorState:t,isOpen:i,onClose:()=>s(!1)}):null]})})},lp=w.createContext({fetchVideoByLocation:null}),hC=({children:t,fetchVideoByLocation:e})=>p.jsx(lp.Provider,{value:{fetchVideoByLocation:e},children:t}),mC=()=>w.useContext(lp);exports.ApiConfigProvider=hC;exports.DEVICE_ORDER=Re;exports.DeviceSizeProvider=hs;exports.EventDataProvider=Lo;exports.PageBuilder=pC;exports.PreviewModal=up;exports.TEMPLATE_VARIABLES=W3;exports.getPlaceholderPaths=V3;exports.getResponsiveValue=mt;exports.hasTemplatePlaceholders=U3;exports.processTemplate=To;exports.resolver=En;exports.useApiConfig=mC;exports.useDeviceSize=er;exports.useEventData=Tn;
|